Version 13 (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
enum { CMD_SUBSCRIBE = 1, CMD_SUBSCRIBE_BITMASK, CMD_UNSUBSCRIBE, CMD_UNSUBSCRIBE_BITMASK, CMD_LIST, CMD_RESET, CMD_MSG } cmd_type;
Command message structure
Byte | Bitmask | Description | Values |
---|---|---|---|
0 | Command code | 1 - 7 | |
1 | Payload size | 0 - 254 | |
2 - 255 | Payload |
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.