IMU Data Transmission Over CAN Bus.
Last updated
Last updated
This example shows configuring a ReXgen data logger to transmit IMU data over the CAN Bus.
Accelerometer X Accelerometer Y Accelerometer Z
Gyroscope X Gyroscope Y Gyroscope Z
The below image shows how each element is linked in the XML file.
They are connected using Unique IDs (UID).
CAN Baud Rate: 500 Kbps
ADC Sampling Rate: 100ms
CAN ID For various signals:
0x128 – Accelerometer
0x129 – Gyroscope
Example DBC provided with XML.
Modifying CAN Bus Channel:
Edit the value of the PhysicalNumber element in the XML file under the CAN interface block. 0 for CAN 0, 1 for CAN 1, 2 for CAN 2 and 3 for CAN 3
Modifying CAN Baud Rate:
Edit the value of CANBusSpeed element in the XML file under the CAN interface block.
Value has to be specified in bps
Modifying Accelerometer Sampling Rate:
Edit the value of SamplingRate element under the ACCELEROMETER list Block.
Value has to be specified in milliseconds
Modifying Gyroscope Sampling Rate:
Edit the value of the SamplingRate element under the GYRO LIST Block
Value has to be specified in milliseconds
Modifying Accelerometer High Low Range:
Edit the value of the SamplingRate element under the ACCELEROMETER LIST Block
Value has to be specified in milliseconds
Modifying Gyroscope Sampling Rate:
Edit the value of the SamplingRate element under the GYRO LIST Block
Value has to be specified in milliseconds
Modifying the CAN Identifier for the messages:
Edit the values of MessageIdentStart and MessageIdentEnd Elements under the CANMESSAGE block for the message you wish to edit. Please note that the example DBC will be invalid after this change.
Value has to be entered in Decimal
Modifying the CAN Message transmission period:
Edit the values of Period Elements under the CANMESSAGE block for the message you wish to edit.
Value has to be entered in milliseconds
The process to send XML to logger using ReXdesk. Click on Config Menu > Run > Run Config Using External File > Browse the XML file and click Open.
GitHub Link
XML file
DBC file