Byte Command Manual
Page Contents
General¶
The Byte Command Manual describes the structure and commands of Protocol Data Units (PDU) used by the Proemion Byte Command Protocol. All CAN to PC gateways from Proemion GmbH support this protocol for communication with a remote host over the interface the device provides.
This manual extends the device-specific manuals. Refer to the device manual of your specific gateway for hardware details, see Document Library.
CAN to PC gateways connect a CAN network to a remote host using a specific interface such as RS232, USB, Ethernet, Bluetooth, or Wi-Fi®. The Proemion Byte Command Protocol provides bi-directional transparent CAN message transmission between the host and the CAN network, as well as the transfer of commands between host and gateway. Because all Proemion CAN to PC gateways share the same protocol, an application can switch between communication interfaces by exchanging only the basic communication routines.
Most commands work across all gateways, though some special commands are not supported by every device. See Commands and Devices for an overview of which commands each gateway type supports.
Note
Commands that change device settings are normally only stored in the gateway's volatile RAM. After a reset, the device falls back to the settings stored in its non-volatile memory, with one exception: the CAN baud rate command is stored permanently. Change these persistent settings with the device-specific configurator software or, if the device supports it, via CANopen.
On some gateways, the configurator software allows changing the start byte (default: 0x43) and stop byte (default: 0x0D).
All descriptions in this manual assume that the default values are used.
For further information and support, fill out the support form, see Service and Support. The latest drivers, software, firmware, and documentation are available in the Download Center.
Byte Mode Commands¶
The Byte Command Protocol defines two Protocol Data Unit (PDU) formats: the standard PDU format and the extended PDU format, used for commands that address additional CAN channels or vendor-specific modules. The following sections describe both formats, and the subsequent pages describe the individual commands built on top of them.
PDU Format (Byte Mode)¶
A PDU consists of a set of fields (bytes) that define which command to communicate. The command can request or return a value or configuration.
The following sections describe how to structure the data field for each command. The overall PDU structure looks as follows:
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU.C (0x43) is the default setting. For some devices this value can be changed. This manual always shows the default setting. |
| Length | 0x00-0xFF |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x00-0xFF |
Command byte. Values 0x00 to 0xFE are direct commands, the value 0xFF means that the next byte contains a command extension. |
| Data | xx |
Data content |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU.0x0D (Carriage Return) is the default setting. For some devices this value can be changed. This manual always shows the default setting. |
-- means that this value is not of interest.
xx means that the field contains the configuration or reply value.
Every message that changes or requests the settings of the Proemion CAN device gets a reply with the same command byte, containing the new settings.
Note
Request commands normally do not require additional parameters (no Data field). Exceptions are mentioned in the command description.
Example¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | 0x0B |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x00 |
11-bit ID CAN message |
| Data | 0x07, 0x89, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18 |
ID (0x789) (MSB first), followed by the CAN message data content |
| Checksum | 0xCE |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Extended PDU Format (Byte Mode)¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU.C (0x43) is the default setting. For some devices this value can be changed. This manual always shows the default setting. |
| Length | 0x00-0xFF |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Extended Command | 0xD0-0xDF |
Command byte, values 0xD0 to 0xDF are extended commands. |
| Data | xx |
Byte 0: CAN channel (starting at 0 for CAN 1), 128…255 reserved for a module (Wi-Fi® / GSM / GPS…)Byte 1: Command Byte 2: Data content |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
-- means that this value is not of interest.
xx means that the field contains the configuration or reply value.
Example: Extended Command¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | 0x0D |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0xD0 |
Extended Command |
| Data | 0x010x000x07, 0x89,0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18 |
CAN channel: 2 Command: 11-bit ID CAN message, ID ( 0x789, MSB first)CAN message data content |
| Checksum | 0x19 |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Process Data Messages¶
These messages transmit received CAN messages to the host, or send CAN messages from the host to the CAN network.
CAN data frame reception¶
The gateway transfers CAN data frame messages received from the CAN bus to the host interface in the following format.1
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x00 |
11-bit ID CAN message received |
0x01 |
11-bit ID CAN message received, the message contains an additional 32-bit timestamp value. | |
0x02 |
29-bit ID CAN message received | |
0x03 |
29-bit ID CAN message received, the message contains an additional 32-bit timestamp value. | |
| Data (11-bit ID messages) | 0x00-0xFF |
Byte 0-1: 11-bit CAN ID (MSB first) Additional data bytes: up to 8 CAN data bytes, plus an additional 32-bit timestamp value if the timestamp option is enabled.2 |
| Data (29-bit ID messages) | 0x00-0xFF |
Byte 0-3: 29-bit CAN ID (MSB first) Additional data bytes: up to 8 CAN data bytes, plus an additional 32-bit timestamp value if the timestamp option is enabled.2 |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Transmit CAN data frame¶
To transmit CAN data frame messages to the CAN bus, the host interface sends data to the gateway in the following format.1
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x00 |
Transmit 11-bit ID CAN data frame |
0x02 |
Transmit 29-bit ID CAN data frame | |
| Data (11-bit ID messages) | 0x00-0xFF |
Byte 0-1: 11-bit CAN ID (MSB first) Additional data bytes: up to 8 CAN data bytes |
| Data (29-bit ID messages) | 0x00-0xFF |
Byte 0-3: 29-bit CAN ID (MSB first) Additional data bytes: up to 8 CAN data bytes |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
CAN remote frame reception¶
The gateway transfers CAN remote frame messages received from the CAN bus to the host interface in the following format.1
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x04 |
11-bit ID CAN remote frame received |
0x05 |
11-bit ID CAN remote frame received, the message contains an additional 32-bit timestamp value. | |
0x06 |
29-bit ID CAN remote frame received | |
0x07 |
29-bit ID CAN remote frame received, the message contains an additional 32-bit timestamp value. | |
| Data (11-bit ID remote frames) | 0x00-0xFF |
Byte 0-1: 11-bit CAN ID (MSB first) Additional data bytes: DLC (CAN remote frame Data Length Code), plus an additional 32-bit timestamp value if the timestamp option is enabled.2 |
| Data (29-bit ID remote frames) | 0x00-0xFF |
Byte 0-3: 29-bit CAN ID (MSB first) Additional data bytes: DLC (CAN remote frame Data Length Code), plus an additional 32-bit timestamp value if the timestamp option is enabled.2 |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Transmit CAN remote frame¶
To transmit CAN remote frame messages to the CAN bus, the host interface sends data to the gateway in the following format.1
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x04 |
Transmit 11-bit ID CAN remote frame |
0x06 |
Transmit 29-bit ID CAN remote frame | |
| Data (11-bit ID remote frames) | 0x00-0xFF |
Byte 0-1: 11-bit CAN ID (MSB first) Additional data byte: DLC (CAN remote frame Data Length Code) |
| Data (29-bit ID remote frames) | 0x00-0xFF |
Byte 0-3: 29-bit CAN ID (MSB first) Additional data byte: DLC (CAN remote frame Data Length Code) |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
RS232 data frame transmit and reception¶
The gateway transfers RS232 data received on its serial interface to the host, and transmits RS232 data sent from the host to the gateway's serial interface, in the following format.
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x09 |
RS232 data frame |
| Data | xx |
RS232 data |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Receive Optimization Block¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x08 |
Receive Optimization Block |
| Data | xx |
Receive Optimization data |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
-
This message also supports the extended PDU format. ↩↩↩↩
-
Enable this option with Change Timestamp settings to receive a timestamp. ↩↩↩↩
Feedback Messages¶
These messages contain feedback data that lets the user check the correct transmission of CAN messages.
CAN message transmission feedback¶
The gateway sends this feedback to the host interface in the following format.1
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x20 |
11-bit ID CAN message transmitted |
0x21 |
11-bit ID CAN message transmitted, feedback contains an additional timestamp of the transmission time | |
0x22 |
29-bit ID CAN message transmitted | |
0x23 |
29-bit ID CAN message transmitted, feedback contains an additional timestamp of the transmission time | |
0x24 |
11-bit ID CAN remote frame transmitted | |
0x25 |
11-bit ID CAN remote frame transmitted, feedback contains an additional timestamp of the transmission time | |
0x26 |
29-bit ID CAN remote frame transmitted | |
0x27 |
29-bit ID CAN remote frame transmitted, feedback contains an additional timestamp of the transmission time | |
0x28 |
11-bit ID Transmit Server message transmitted | |
0x29 |
11-bit ID Transmit Server message transmitted, feedback contains an additional timestamp of the transmission time | |
0x2A |
29-bit ID Transmit Server message transmitted | |
0x2B |
29-bit ID Transmit Server message transmitted, feedback contains an additional timestamp of the transmission time | |
| Data (11-bit ID messages / remote frames) | 0x00-0xFF |
Byte 0-1: 11-bit CAN ID (MSB first) Additional data bytes (not on remote frame feedback): up to 8 CAN data bytes, plus an additional 32-bit timestamp value if the timestamp option is enabled.2 |
| Data (29-bit ID messages / remote frames) | 0x00-0xFF |
Byte 0-3: 29-bit CAN ID (MSB first) Additional data bytes (not on remote frame feedback): up to 8 CAN data bytes, plus an additional 32-bit timestamp value if the timestamp option is enabled.2 |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Note
These feedback messages are only sent once the feedback option is enabled by the corresponding command.
-
This message also supports the extended PDU format. ↩
-
Enable this option with Change Timestamp settings to receive a timestamp. ↩↩
Diagnosis Data Messages¶
Device ID¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x40 |
Device ID string (request: no additional data bytes) |
| Data (only on reply) | 0x00-0xFF |
ID string (only on response) |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Hardware / Software version¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x41 |
Hardware / Software version (request: no additional data bytes) |
| Data (only on reply) | 0x00-0xFF |
Byte 0-1: hardware version of the device Byte 2-3: software version of the firmware Byte 4-5: software version of the bootloader |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Error status¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x42 |
Error status (request: no additional data bytes)1 |
0x43 |
Error status message which contains an additional timestamp value2 (no request command, only response message) | |
| Data (only on reply) | 0x00-0xFF |
Byte 0: bit 0: CAN receive buffer overflow bit 1: CAN transmit timeout bit 2: CAN error counter overflow bit 3: CAN bus-off error bit 4: host interface syntax error bit 5: host interface format error bit 6: host interface transmit buffer overflow bit 7: not used Byte 1 (last error code of the CAN controller): 0: no error1: more than 5 equal bits occurred in a sequence2: received message does not have the correct format3: transmitted message was not acknowledged4: not possible to set recessive level during transmission5: not possible to set dominant level during transmission6: received CRC checksum was incorrect |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Note
The device generates an error status message automatically every time the error status changes.
Interfaces version¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x44 |
Interfaces version (e.g. Bluetooth module, Wi-Fi®-module, …), request: no additional data bytes1 |
| Data (only on reply) | 0x00-0xFF |
ASCII coded version string |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Note
The module is selectable.
Current CAN busload¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x47 |
Current busload in messages per second (request: no additional data bytes)1 |
| Data (only on reply) | 0x00-0xFF |
Byte 0-1: unsigned integer value, size 16 bit (MSB first) |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Device busy / command not supported¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x48 |
Device cannot execute command (only response on other commands)1 |
| Data | 0x00-0xFF |
Reserved for future use |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Set CAN transmit delay time¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x49 |
Set CAN transmit delay time1 |
| Data | 0x00-0xFF |
Unsigned integer value, size 16 bit (MSB first); the RAM parameter is reset to 0 after a device reset.Delay time until the next command is evaluated, in 10 ms steps; this value only applies once. |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
-
Enable this option with Change Timestamp settings to receive a timestamp. ↩
CAN Controller Setup Messages¶
Change / request receive channel ID settings¶
Note
If the change message contains no ID information (length byte < 4), the last ID setting remains, and byte 1, bit 2 is ignored in this case.1
Request receive channel ID settings¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x50 |
Request receive channel ID settings (needs one additional data byte: the channel number) |
| Data | 0x00-0xFF |
Byte 0: receive object number (range depends on the gateway device) CANview USB / RS232: 0…8CANview Ethernet: 0…7CANlink Bluetooth / Wi-Fi®: 0…15 |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Change receive channel ID settings¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x51 |
Change receive channel ID settings (needs at least two additional data bytes: the channel number and the channel settings) |
| Data | 0x00-0x07 |
Byte 1: bit 0: 0 = channel disable, 1 = channel enablebit 1: 0 = receive 11-bit ID, 1 = receive 29-bit IDbit 2: 0 = change 11-bit ID, 1 = change 29-bit IDByte 2-3: 11-bit ID if byte 1, bit 2 = 0Byte 2-5: 29-bit ID if byte 1, bit 2 = 1 |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Change / request receive channel mask settings¶
Note
If the change message contains no mask information (length byte < 4), the last mask setting remains, and byte 1, bit 2 is ignored in this case.
If the device does not support individual masks for each channel (CANview RS232), the mask settings for channel 1 to 7 are ignored, and the device replies with the setting of channel 0.1
Request receive channel mask settings¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x52 |
Request receive channel mask settings (needs one additional data byte: the channel number) |
| Data | 0x00-0xFF |
Byte 0: receive object number (range depends on the gateway device) CANview USB / RS232: 0…8CANview Ethernet: 0…7CANlink Bluetooth / Wi-Fi®: 0…15 |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Change receive channel mask settings¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x53 |
Change receive channel mask settings (needs at least two additional data bytes: the channel number and the channel settings) |
| Data | 0x00-0x07 |
Byte 1: bit 0: 0 = channel disable, 1 = channel enablebit 1: 0 = receive 11-bit mask, 1 = receive 29-bit maskbit 2: 0 = change 11-bit mask, 1 = change 29-bit maskByte 2-3: 11-bit mask if byte 1, bit 2 = 0Byte 2-5: 29-bit mask if byte 1, bit 2 = 1 |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
CAN baud rate¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x56 |
Request CAN baud rate parameters (no additional data bytes) |
0x57 |
Set CAN baud rate parameters | |
| Data | 0x00-0xFF |
Byte 0: 0xFF if no CIA-conform standard baud rate is used, otherwise:0x00: 10 kBit/s0x01: 20 kBit/s0x02: 50 kBit/s0xFE: 100 kBit/s0x03: 125 kBit/s0x04: 250 kBit/s0x05: 500 kBit/s0x06: 800 kBit/s0x07: 1 MBit/s0xFF: BTR values are usedByte 1: BTR0 value (device dependent, only if byte 0 = 0xFF)Byte 2: BTR1 value (device dependent, only if byte 0 = 0xFF)Byte 3: BTR2 value (device dependent, only if byte 0 = 0xFF)Byte 4: BTR3 value (device dependent, only if byte 0 = 0xFF) |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Note
If data byte 0 is set to 0xFF, the device uses the BTR values to set a nonstandard baud rate.
If a standard baud rate is used, the BTR values are not necessary; if they are provided anyway, the device ignores them.
For a baud rate that the device's standard settings do not support, contact support for further information, see Service and Support.1
CAN controller reset¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x58 |
CAN controller reset (no additional data bytes) |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Note
The CAN Controller Reset command performs a complete reset of the CAN controller, including the timestamp value, and the receive and transmit buffers.
The CAN controller reset also resets the error status of the device. The device therefore generates an error status message after the CAN controller reset, to update the error status.1
Set CAN interface Auto Baud Mode¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x59 |
Set auto baud mode (no additional data bytes) |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Note
Auto Baud Mode only works with the standard baud rates the device supports, and requires a working communication on the bus for auto baud detection. While baud rate detection is active, the Proemion CAN devices stay in passive mode and have no influence on the CAN bus traffic.1
The auto baud command sets the gateway device to Auto Baud Mode.
The device listens to the traffic on the CAN bus and configures the baud rate automatically; only the standard baud rates the device supports are detectable.
After the device finds the correct baud rate setting, it generates a reply containing the detected baud rate.
The format of this message is identical to the CAN baud rate request message, except that the command byte is 0x59.
When the device detects no baud rate, it uses the last configured baud rate for operation. In this case, the baud rate reply is the same as if a nonstandard baud rate is requested.
Set / request active / passive mode¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x5A |
Request active / passive mode (no additional data bytes)1 |
0x5B |
Set active / passive mode | |
| Data | 0x00-0x01 |
0x00: device = active mode0x01: device = passive mode |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Change / request receive channel cycle time¶
Request receive channel cycle time¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x5C |
Request receive channel cycle time (needs one additional data byte: the channel number)1 |
| Data | 0x00-0xFF |
Byte 0: receive object number (range depends on the gateway device) CANview Ethernet: 0…7CANlink Bluetooth / Wi-Fi®: 0…15 |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Change receive channel cycle time¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x5D |
Change receive channel cycle time (needs at least two additional data bytes: the channel number and the channel settings) |
| Data | 0x00-0xFF |
Byte 1: cycle time in 10 ms steps |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Host Interface Configuration Messages¶
Feedback / output settings¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0x60 |
Request feedback settings (no additional data bytes)1 |
0x61 |
Set feedback settings | |
| Data | 0x00-0x07 |
Byte 0: bit 0: 1 = CAN output on, 0 = CAN output offbit 1: 1 = transmit CAN message feedback on, 0 = feedback offbit 2: 1 = server feedback on, 0 = server feedback offbit 3: 1 = RS232 interface on, 0 = RS232 interface off |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Note
If the serial output is disabled, the Proemion CAN device stores received CAN messages in RAM. If this buffer fills up, the device indicates a buffer overflow error. Once the output is enabled again, the device immediately transmits all stored messages to the host interface.
-
This message also supports the extended PDU format. ↩
Device Parameter Settings¶
Change / request Timestamp settings¶
When Timestamp Mode is selected, the device inserts a 32-bit counter value (100 µs resolution) after the last data byte of each received CAN message, so that all timestamped messages on the host interface side appear in the correct chronological order.
To also add a timestamp to echoed messages (server feedback or transmit CAN message feedback, see Feedback / output settings) and to error messages, additionally activate the Error and Echo Feedback timestamp.
In relative mode, the counter value resets after each received message; in absolute mode, it does not.
Note
The device only transmits the Error and Echo Feedback timestamp if timestamp mode is enabled.1
Request Timestamp settings¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0xA0 |
Request timestamp settings |
| Data | no additional data bytes | |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Change Timestamp settings¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0xA1 |
Set timestamp settings |
| Data | 0x00-0x13 |
Byte 0: bit 0: 1 = timestamp on, 0 = timestamp offbit 1: 1 = relative timestamp, 0 = absolute timestampbit 4: 1 = Error and Echo Feedback timestamp on, 0 = Error and Echo Feedback timestamp off |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Change CAN transmit delay time¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0xA2 |
Set CAN transmit delay time |
| Data (only on reply) | 0x00-0xFF |
Unsigned integer value, size 16 bit; the RAM parameter is reset to 0 after a device reset. |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Note
This delay is inserted before each CAN message, which slows down the CAN transmission.
Set IP-block wait time¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0xA3 |
Set IP-block wait time (for better use of bandwidth) |
| Data | 0x00-0xFF |
Interval in 10 ms steps |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Set baud rate calculation interval¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0xA4 |
Set CAN baud rate calculation interval1 |
| Data | 0x00-0xFF |
Interval in milliseconds, unsigned integer value, size 16 bit (MSB first) |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
CANopen object dictionary access¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0xA5 |
Read / write in the object dictionary |
| Data | 0x00-0xFF |
Request: Byte 0: command, 0x01 write, 0x00 read (no additional data bytes)Byte 1-2: index (LSB first) Byte 3: sub-index Additional data bytes: data (LSB first) Response: Byte 0: result, 0x40 read success, 0x80 read failure (no additional data bytes), 0x41 write success (no additional data bytes), 0x81 write failure (no additional data bytes)Byte 1-2: index (LSB first) Byte 3: sub-index Additional data bytes: data (LSB first) |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
-
This message also supports the extended PDU format. ↩↩
Hardware Access Commands¶
Reset Device¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0xC0 |
Set reset device |
| Data | -- |
|
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
The device replies to this command with the Device ID command.
Warning
For some devices, this command does not trigger a hardware reset, since that would also disconnect the host communication:
- CANview Ethernet
- CANlink Bluetooth / Wi-Fi®
Request analog channel value¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0xC2 |
Request analog channel value (needs 1 additional data byte containing the channel number) |
| Data | 0x00-0x03 |
Byte 0 (channel number):0x00: supply voltage0x01: CAN Low line0x02: CAN High line0x03: analog inputs 1 and 2 |
0x00-0xFF |
Byte 1: analog value (for channel 0-2, see the voltage table below) Byte 1-4 (for channel 3): analog input 1 voltage, IEEE 754 coded, LSB first Byte 5-8 (for channel 3): analog input 2 voltage, IEEE 754 coded, LSB first |
|
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
The analog value for channel 0-2 (supply voltage, CAN Low line, CAN High line) maps to voltage as follows:
| Channel | Value 0x00 |
Value 0xFF |
|---|---|---|
| VCC | 0 V | 39 V |
| CANH / CANL | 0 V | 5 V |
Note
Only the CANview RS232 can measure the CAN line voltage levels, and only for CAN baud rates of 125 kBit/s and slower.
Set / request digital channel value¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0xC4 |
Request digital channel value (needs 1 additional data byte containing the channel number) |
0xC5 |
Set digital channel value (needs 2 additional data bytes containing the channel number and the value) | |
| Data | 0x00-0xFF |
Byte 0 (channel number): 0x00 = bus termination resistor |
0x00-0x01 |
Byte 1: digital value (1 = on, 0 = off) |
|
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
The device replies to each set command with the actual values.
Set Communication password¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0xC6 |
Request communication password check |
| Data | xx |
Command: Byte 0…n: password string (default: GSMONLIN)Response: Byte 0: 0 = password checked and OK; if the password check fails, the device sends no response. |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Note
This message is required to unlock the full functionality of the byte mode interface on CANlink GSM/UMTS devices. A session only starts after a successful communication password check.
Reset Communication password¶
| Field | Value | Description |
|---|---|---|
| SOF (Start of Frame) | 0x43 |
SOF marks the beginning of the PDU. |
| Length | xx |
The Length field indicates the length (in bytes) of the Command + Data fields. |
| Command | 0xC7 |
Reset communication password check |
| Checksum | xx |
XOR checksum of SOF, Length, Command, and Data fields. |
| EOF (End of Frame) | 0x0D |
EOF byte marks the end of the PDU. |
Note
This message locks the byte mode interface. Send this command at the end of a communication session.
Commands and Devices¶
The table below summarizes all existing commands and which Proemion device supports them. The usability of a command for a Proemion device is marked with S, E, or S / E:
- S: the Proemion device supports this command only in the standard command format.
- E: the Proemion device supports this command only in the extended command format.
- S / E: the Proemion device supports this command in both the standard and the extended command format.
Note
The CANlink® mobile 10000 does not support Byte Command Protocol commands.
| Message Type | Command | CANview USB | CANlink Bluetooth 2000 | CANlink Wi-Fi® 2000 | CANlink wireless 3000 | CANlink wireless 4000 | CANview Ethernet | CANlink mobile 5000 | CANlink mobile 3000 | CANview RS232 |
|---|---|---|---|---|---|---|---|---|---|---|
| Process Data Messages | 0x00 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E1 | S / E |
0x01 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E1 | S / E | |
0x02 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E1 | S / E | |
0x03 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E1 | S / E | |
0x04 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E1 | S / E | |
0x05 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E1 | ||
0x06 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E1 | ||
0x07 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E1 | ||
0x08 |
S / E | S / E | ||||||||
0x09 |
S | |||||||||
| Feedback Messages | 0x20 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E |
0x21 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
0x22 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
0x23 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
0x24 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
0x25 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
0x26 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | ||
0x27 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | ||
0x28 |
S / E | S / E | ||||||||
0x29 |
S / E | S / E | ||||||||
0x2A |
S / E | S / E | ||||||||
0x2B |
S / E | S / E |
| Message Type | Command | CANview USB | CANlink Bluetooth 2000 | CANlink Wi-Fi® 2000 | CANlink wireless 3000 | CANlink wireless 4000 | CANview Ethernet | CANlink mobile 5000 | CANlink mobile 3000 | CANview RS232 |
|---|---|---|---|---|---|---|---|---|---|---|
| Diagnosis Data Messages | 0x40 |
S | S | S | S | S | S | S | S | S |
0x41 |
S | S | S | S | S | S | S | S | S | |
0x42 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
0x43 |
S / E | S / E | S / E | S / E | S / E | |||||
0x44 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | |||
0x47 |
S / E | S / E | S / E | |||||||
0x48 |
S / E | S / E | S / E | S / E | ||||||
0x49 |
S / E | S / E | S / E | S / E | ||||||
| CAN Controller Setup Messages | 0x50 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E |
0x51 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
0x52 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
0x53 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
0x56 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
0x57 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
0x58 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | ||
0x59 |
S / E | S / E | ||||||||
0x5A |
S / E | S / E | S / E | S / E | S / E | |||||
0x5B |
S / E | S / E | S / E | S / E | S / E | |||||
0x5C |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | |||
0x5D |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | |||
| Host Interface Configuration Messages | 0x60 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E |
0x61 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
| Device Parameter Settings | 0xA0 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E |
0xA1 |
S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | S / E | |
0xA2 |
S | |||||||||
0xA3 |
S | |||||||||
0xA4 |
S / E | S / E | S / E | |||||||
0xA5 |
S | S | S | S | ||||||
| Hardware Access Commands | 0xC0 |
S | S | S | S | S | S | S | S | S |
0xC2 |
S | S | S | S | ||||||
0xC4 |
S | |||||||||
0xC5 |
S | |||||||||
0xC6 |
S | S | S | |||||||
0xC7 |
S | S | S |
Service and Support¶
The latest versions of the drivers, software, firmware, and documentation are available at Document Library.
Do you need help or want to report a bug?
Visit Proemion for more information, or raise a ticket via Support.
Firmware Updates and Support¶
To ensure the best performance and security of your devices, we strongly recommend always installing the latest firmware provided by Proemion.
Please note:
We do not provide technical support for issues caused by outdated firmware.
Errors resulting from outdated firmware are considered non-qualified errors and are not covered by warranty or support.
Regular firmware updates are essential to maintaining the functionality of your devices.
If you need assistance with the update process, please contact our Service and Support.
For more information on the Firmware Update, check the device manual of your device at the Document Library.