Version 8 (modified by 12 years ago) ( diff ) | ,
---|
Communication protocol between CAN and CC2540 chip.
List of commands from CC2540 to CAN transiver:
- Subscribe to a message
- Subscribe to a message with a bitmask
- Unsubscribe from messages
- Unsubscribe from messages with a bitmask
- List of all subscriptions
- Reset filter state
- Passthrough message
Command message structure
- Command code (1 byte)
- Payload size (1 byte)
- Payload (0 - 255 bytes)
enum { CMD_SUBSCRIBE = 1, CMD_SUBSCRIBE_BITMASK, CMD_UNSUBSCRIBE, CMD_UNSUBSCRIBE_BITMASK, CMD_LIST, CMD_RESET, CMD_MSG } cmd_type;
Examples
0x01:0x08:0x00:0x00:0x07:0x06:0x00:0x01:0x05:0x05
- byte - subsribe command
- byte - payload size 8 byte = 2 CAN message IDs * 4 byte each
- - 10. bytes 0076h & 0155h
Attachments (3)
- Capture1.PNG (141.4 KB ) - added by 12 years ago.
- Capture3.PNG (20.9 KB ) - added by 12 years ago.
- Boris_Trace.trc (8.3 KB ) - added by 12 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.