SierraWireless / octave-orp

Octave Resource Protocol
MIT License
1 stars 4 forks source link

Added decoding of SYNC packet to C client example #4

Closed imorrisonca closed 3 years ago

imorrisonca commented 3 years ago

Resolves BROOKLYN-3489 Signed-off-by: imorrison imorrison@sierrawireless.com

Testing:

imorrison@carmd-ed-11193:~/ws/imorrisonca/octave-orp/clients/c$ ./bin/orp -d /dev/ttyUSB3 -b 115200
ORP Serial Client - "h" for help, "q" to exit
using device: /dev/ttyUSB3, Baud: 115200
Protocol codec initialized

orp >  
Received: 'Y13031T1607992228.000000', (28 bytes)                                                          
        Type     : 13 (Synchronization, sync)                                                             
        Data type: -1
        Sequence : 12337                            
        Timestamp: 1607992228.000000            

orp > r synack
Sending: '~y1205~', (8 bytes)
        Type     : 14 (Synchronization, sync-ack)
        Data type: 0
        Sequence : 2