OpenCPN Partial API docs
Loading...
Searching...
No Matches
Worker Class Reference

Manages reading the N2K data stream provided by some N2K gateways from the declared serial port. More...

Public Member Functions

 Worker (CommDriverN2KSocketCAN *parent, const wxString &PortName)
 
bool StartThread ()
 
void StopThread ()
 
int GetSocket ()
 

Detailed Description

Manages reading the N2K data stream provided by some N2K gateways from the declared serial port.

Commonly used raw format is actually inherited from an old paketizing format: <10><02><application data><CRC (1)><10><03>

Actisense application data, from NGT-1 to PC <data code=93>><length (1)><priority (1)><PGN (3)><destination(1)><source (1)><time (4)><len (1)><data (len)>

As applied to a real application data element, after extraction from packet format: 93 13 02 01 F8 01 FF 01 76 C2 52 00 08 08 70 EB 14 E8 8E 52 D2 BB 10

length (1): 0x13 priority (1); 0x02 PGN (3): 0x01 0xF8 0x01 destination(1): 0xFF source (1): 0x01 time (4): 0x76 0xC2 0x52 0x00 len (1): 0x08 data (len): 08 70 EB 14 E8 8E 52 D2 packet CRC: 0xBB

Definition at line 204 of file comm_drv_n2k_socketcan.cpp.

Constructor & Destructor Documentation

◆ Worker()

Worker::Worker ( CommDriverN2KSocketCAN parent,
const wxString &  PortName 
)

Definition at line 499 of file comm_drv_n2k_socketcan.cpp.

Member Function Documentation

◆ GetSocket()

int Worker::GetSocket ( )
inline

Definition at line 210 of file comm_drv_n2k_socketcan.cpp.

◆ StartThread()

bool Worker::StartThread ( )

Definition at line 708 of file comm_drv_n2k_socketcan.cpp.

◆ StopThread()

void Worker::StopThread ( )

Definition at line 715 of file comm_drv_n2k_socketcan.cpp.


The documentation for this class was generated from the following file: