Skip to content

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…8
CANview Ethernet: 0…7
CANlink 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 enable
bit 1: 0 = receive 11-bit ID, 1 = receive 29-bit ID
bit 2: 0 = change 11-bit ID, 1 = change 29-bit ID

Byte 2-3: 11-bit ID if byte 1, bit 2 = 0
Byte 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…8
CANview Ethernet: 0…7
CANlink 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 enable
bit 1: 0 = receive 11-bit mask, 1 = receive 29-bit mask
bit 2: 0 = change 11-bit mask, 1 = change 29-bit mask

Byte 2-3: 11-bit mask if byte 1, bit 2 = 0
Byte 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/s
0x01: 20 kBit/s
0x02: 50 kBit/s
0xFE: 100 kBit/s
0x03: 125 kBit/s
0x04: 250 kBit/s
0x05: 500 kBit/s
0x06: 800 kBit/s
0x07: 1 MBit/s
0xFF: BTR values are used

Byte 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 mode
0x01: 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…7
CANlink 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.

  1. This message also supports the extended PDU format. ↩↩↩↩↩↩↩