OpenCPN Partial API docs
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 94 of file comm_drv_n2k_socketcan.cpp.


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