4 Protocol description
4 Protocol description
This chapter lists all commands supported by the adapter protocol. You can send the commands via the
COM port (e.g. using a terminal program).
The protocol is based on the specification CiA 309: Access from other networks - Part 3: ASCII mapping.
All commands are confirmed. You may start each command with a sequence number (UNSIGNED32), which
is then included in the response.
Example
// Request: Get name info, sequence=[1234]
[1234] info name
// Response: product name
[1234] name: ZK-USB-CAN-1
The token [net] is allowed to follow the [sequence] due to compatibility reasons, but it is ignored by the
adapter.
4.1 Configuration and initialization
4.1.1 Get Device Information: version, state, ticks, name
You use this command to read out the product information and e.g. carry out initial testing of the connection.
1. Version info
Syntax:
"info version"
You use this command to request the version of the CANopen gateway server.
Example
// Request: Get version info
info version
// Response:
620 690 2110.0 352977019 0 00.00 00.00
■
620: Vendor ID
■
690: Product Code
■
2110.0: Firmware Version, Year 2021, Week 10
■
352977019: Serial Number
2. State info
Request state of the CAN bus state.
Syntax:
"info state"
You use this command to query the state of the CAN bus.
Example
// Request: Get baudrate state info
info state
// Response: -1 if not initialized, >=0 -> baudrate; 0 = 1000kB
state:0
3. Ticks info
Syntax:
"info tick"
Version: 1.0.0
10