RTC Data To CAN Bus
This example explains configuring a ReXgen data logger to transmit the RTC data over the CAN Bus.
Documentation
The below image shows how each element is linked in the XML file.
They are connected using Unique IDs (UID).
Default Settings:
CAN Baud Rate: 500 Kbps
Example DBC provided with XML.
The following parameters can be modified by editing the XML as required.
Modifying MaxlogSize and MaxLogTime:
Edit the values of MaxLogSize and MaxLogTime (in seconds) Elements under the SDINTERFACE block for the message you wish to edit.
Modifying CAN Bus Channel:
Edit the value of the PhysicalNumber to change the channel number to 0, 1, 2 or 3
Modify the CANBusSpeed element in the XML file under the CAN interface block to modify the CAN bus baud rate.
Value has to be specified in bps
Modifying the CAN Message and Transmission period:
Edit the MessageIdentStart and MessageIdentEnd Elements values under the CANMESSAGE block for the message ID you wish to transmit to the RTC.
Modify the Transmission period by editing the value of the Period in the XML.
Please note that the example DBC will be invalid after this change.
Modifying the Sampling Rate:
Edit the values of the Sampling Rate under the INTERNAL_PARAMETER block for the message you wish to edit. Please note that the example DBC will be invalid after this change.
Modifying the CAN Signal:
Edit the StartBit and Bit Count Elements values under the CANSIGNAL block for the message you wish to edit. Please note that the example DBC will be invalid after this change.
Users can load the XML file into the ReXgen logger using the ReXdesk application/ReXdesk Convert application or the Rxlibrary DLL.
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.
Last updated