Version 17 (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;
List of responces from CAN transiver:
enum { ACK_SUBSCRIBE = 1, ACK_SUBSCRIBE_BITMASK, ACK_UNSUBSCRIBE, ACK_UNSUBSCRIBE_BITMASK, ACK_LIST, ACK_RESET, ACK_MSG } cmd_type;
Command message structure
Byte | Bitmask | Description | Values |
---|---|---|---|
0 | Command code | 1 - 7 | |
1 | Payload size | 0 - 254 | |
2 - 255 | Payload |
Examples
01:08:76:00:55:01:44:02:01:00 03:02:76:00 05:00 06:00 07:76:06:05:01:02:03:04:05
- 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.