Goal: Send a command through a serial port to a moteĀ to make it send a 6P packet.
...
- set /dev/myAwesomeMote 6pAdd [6,7]
This would send the following bytes over the serial bus towards the mote:
- [67, 9, 2, 6, 7] in decimalĀ
Explanation:
- 67 indicates the char 'C', the mote can recognize this is a command, rather a packet send to mote. https://github.com/openwsn-berkeley/openwsn-sw/blob/develop/software/openvisualizer/openvisualizer/moteConnector/OpenParser.py#L22
- 9 is the commandId for 6pAdd https://github.com/openwsn-berkeley/openwsn-sw/blob/develop/software/openvisualizer/openvisualizer/moteState/moteState.py#L416
- 2 is the length of the payload of 6pAdd command (in bytes)
- 6 and 7 are the two bytes of data.
...