LSS-PRO CAN Bus

Last modified by Eric Nantel on 2025/03/24 07:17

LSS-PRO uses the extended CAN frame format to send and receive LSS command information.

Since LSS commands are character data (1 character 1 byte), they cannot be directly assigned to the CAN Data field (8 bytes). Therefore, it converts the LSS command and assigns the conversion information to the Identifier and Data field of the extended CAN frame format.

Extended CAN frame format (29-bit CAN ID)

Extended CAN 2.0 B has 29-bit identifier which means that there are 2^29 = 536,870,912 unique CAN-IDs. With a longer 29-bit identifier field, Extended CAN frames support a significantly larger address space. accommodating up to or over 500 million unique message identifiers.

Example: 10101010111000111010101011101 (binary 29 bits) i.e., 0x155C755D (hex).
 

CAN communication rate is set at 500kbps.

Assign LSS command information to the field in green in this image:

Extended-CAN-frame-structure.png

LSS-P CAN Bus - Command ID List.xlsx
Data format on USB-Serial Data format on CAN-Bus
 ID[28-20]Reserved 
Header# or *ID[19]Request/Response (0:Request 1:Response)# = 0, * = 1
 ID[18]Presence of command parametersSet to 1 if there are parameters such as D commands, set to 0 if there are parameters such as Query commands, etc.
ID[17]Presence of sub-command idSet to 1 if there is a Modifier command (SD/T), otherwise set to 0.
ID[16]Presence of sub-command parameterSet to 1 if there is a parameter for the Modifier command, otherwise set to 0.
(SD/T requires a parameter, so currently if ID[17] is 1, ID[16] will also be 1.)
ServoIDServo IDID[15-8]Source ID 
 ID[7-0]Destination ID 
CommandAction Command (ex. RESET, D, etc..)
Query Command (ex. QID, QD, etc...)
Configuration Command (ex. CID, etc...)
DATA0Command IDSee Command ID List.
ValueCommand ValueDATA1Command parameter0 
 DATA2Command parameter1 
DATA3Command parameter2 
DATA4Command parameter3 
ModifierModifier Command (ex. SD, T, etc...)DATA5Sub-command IDSee Command ID List.
Modifier ValueModifier Command ValueDATA6Sub-command parameter0 
 DATA7Sub-command parameter1 

 

Tags:
Created by Eric Nantel on 2024/11/25 14:06
Copyright RobotShop 2018