arrow-left

Only this pageAll pages
gitbookPowered by GitBook
1 of 10

Rexgen_XML_Examples

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

GNSS Data Transmission Over CAN Bus.

This example shows how we can configure a ReXgen data logger to transmit the GNSS positioning data over the CAN Bus.

hashtag
Use Cases

  • Easily inject real-time location information into your CAN Bus.

  • Feed real-time location information to your CAN Dashboard or Instrument Cluster.

  • Use ReXgen as a GNSS module for your existing CAN data logger.

hashtag
Following GNSS Data will be transmitted via CAN 0 Bus:

  • Latitude

  • Longitude

  • Altitude

hashtag
Documentation

The below image shows how each element is linked in the XML file.

They are connected using Unique IDs (UIDs).

hashtag
Default Settings

  • CAN Baud Rate: 500 Kbps

  • GNSS Sampling Rate: 100ms

  • CAN ID For various signals:

hashtag
These parameters can be modified by editing the XML as required.

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 the CANBusSpeed element in the XML file under the CAN interface block. Value has to be specified in bps

Modifying GNSS Sampling Rate:

Edit the value of the SamplingRate element under the GNSSINTERFACE Block Value has to be specified in milliseconds

Modifying the CAN Identifier for the messages:

noteEdit the values of MessageIdentStart and MessageIdentEnd Elements under the CANMESSAGE block for the message you wish to edit. Please not 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

hashtag
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.

Speed Over Ground
  • Ground Distance

  • Course Over Ground

  • Number Of Satellites

  • Quality

  • 0x12B – Altitude, GPS Speed
  • 0x12C – Longitude, Latitude

  • 0x12D – Ground Distance

  • 0x12E – Number Of Satellites, Course

  • 0x12F - Quality Example DBC provided with XML.

  • XML_Link

    GitHub Link

    XML file

    DBC file

    Rexgen_XML_Examples

    This space contains various examples explaining how users can modify the ReXgen XML configuration for various use cases.

    hashtag
    Gateway XML Examples

    For more details on these examples, visit our .

    <CANINTERFACE UID="1">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <CANINTERFACE UID="1">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <GNSSINTERFACE UID="2">
            <PhysicalNumber>0</PhysicalNumber>
            <SamplingRate>100</SamplingRate>
     </GNSSINTERFACE>
    
    <CANMESSAGE_LIST>
          <CANMESSAGE UID="3">
            <MessageIdentStart>299</MessageIdentStart>
            <MessageIdentEnd>299</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
    <CANMESSAGE_LIST>
          <CANMESSAGE UID="3">
            <MessageIdentStart>299</MessageIdentStart>
            <MessageIdentEnd>299</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
            <InterfaceUID>4</InterfaceUID>
            <Period>100</Period>
    XML Documentation

    GitHubarrow-up-right

    GNSS to CAN

    GNSS to CAN_SD

    ADC to CAN

    ADC to CAN_SD

    IMU to CAN

    IMU to CAN_SD

    RTC data to CAN

    Gateway CAN0 Signal to CAN1

    Gateway Routing CAN0 to CAN1.

    ADC Data Transmission Over CAN Bus.

    This example explains configuring a ReXgen data logger to transmit the ADC data over the CAN Bus.

    hashtag
    Following ADC Data will be transmitted via CAN 0 Bus:

    ADC 0 ADC 1

    Gateway Routing CAN0 to CAN1.

    In this example, we will see how we can configure a ReXgen data logger to route all the CAN traffic from CAN 0 Bus to CAN 1 Bus

    hashtag
    Documentation

    Below image shows how each element are linked in the XML file.

    They are connected using Unique IDs (UID).

    ADC Data Recording & Transmission Over CAN Bus.

    In this example, we will see how we can configure a ReXgen data logger to transmit the ADC data over the CAN Bus and record the ADC data in the internal storage.

    hashtag
    Following ADC Data will be transmitted via CAN 0 Bus and recorded in internal memory:

    ADC 0 ADC 1

    hashtag
    Documentation

    The below image shows how each element are linked in the XML file.

    They are connected using Unique IDs (UID).

    hashtag
    Default Settings

    • CAN Baud Rate: 500 Kbps

    • ADC Sampling Rate: 100ms

    • CAN ID For various signals:

    • 0x12A – ADC 0 & ADC 1

    • Example DBC provided with XML.

    hashtag
    Following parameters can be modified by editing the XML as required.

    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 ADC Sampling Rate:

    Edit the value of SamplingRate element under the ADC list Block Value has to be specified in milliseconds

    Specifying the ADC Factor and Offset:

    Par A specifies the Factor, and Par B specifies the Offset.

    Modifying the CAN Message transmission period:

    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

    hashtag
    User can load the XML file into the ReXgen logger using ReXdesk application/ReXdesk Convert application or the Rxlibrary DLL

    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

    hashtag
    Default Settings
    • CAN Baud Rate: 500 Kbps

    • All CAN IDs are Routed

    hashtag
    The following parameters can be modified by editing the XML as required.

    Modifying CAN Baud Rate:

    Edit the value of the CANBusSpeed element in the XML file under the CAN interface block. Value has to be specified in bps

    hashtag
    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.

    image
    hashtag
    Documentation

    The below image shows how each element is linked in the XML file.

    image

    They are connected using Unique IDs (UID).

    hashtag
    Default Settings

    • CAN Baud Rate: 500 Kbps

    • ADC Sampling Rate: 100ms

    • CAN ID For various signals:

    • 0x12A – ADC 0 & ADC 1

    • Example DBC provided with XML.

    hashtag
    The following parameters can be modified by editing the XML as required.

    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 the CANBusSpeed element in the XML file under the CAN interface block. Value has to be specified in bps

    Modifying ADC Sampling Rate:

    Edit the value of the SamplingRate element under the ADC list. Block Value has to be specified in milliseconds

    Specifying the ADC Factor and Offset:

    Par A specifies the Factor, and Par B specifies the Offset.

    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

    hashtag
    The user 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.

    GNSS Data Recording & Transmission Over CAN Bus.

    In this example, we will see how to configure a ReXgen data logger to transmit the GNSS positioning data over the CAN Bus and record the GNSS data in the internal storage.

    hashtag
    Following GNSS Data will be transmitted via CAN 0 Bus and recorded in internal memory:

    Latitude Longitude Altitude Speed Over Ground Ground Distance Course Over Ground Number Of Satellites Quality

    hashtag
    Documentation

    The image below shows how each element is linked in the XML file.

    They are connected using Unique IDs (UID).

    hashtag
    Default Settings

    • CAN Baud Rate: 500 Kbps

    • GNSS Sampling Rate: 100ms

    • CAN ID For various signals:

    Example DBC provided with XML.

    hashtag
    The following parameters can be modified by editing the XML as required.

    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 the CANBusSpeed element in the XML file under the CAN interface block. Value has to be specified in bps

    Modifying GNSS Sampling Rate:

    Edit the value of the SamplingRate element under the GNSSINTERFACE 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

    hashtag
    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.

    RTC Data To CAN Bus

    hashtag
    This example explains configuring a ReXgen data logger to transmit the RTC data over the CAN Bus.

    hashtag
    Documentation

    Gateway Routing CAN0 Signal to CAN1.

    In this example, we will see how we can configure a ReXgen data logger to route all the CAN traffic from CAN 0 Bus to CAN 1 Bus

    hashtag
    Documentation

    The below image shows how each element is linked in the XML file.

    They are connected using Unique IDs (UID).

    <CANINTERFACE UID="4">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <CANINTERFACE UID="4">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <ADC UID="2">
            <PhysicalNumber>0</PhysicalNumber>
            <Rate>100</Rate>
    		<ParA>1<ParA>
    		<ParB>0<ParB>
     </ADC>
    
    <ADC UID="6">
           <PhysicalNumber>0</PhysicalNumber>
            <Rate>100</Rate>
    		<ParA>1<ParA>
    		<ParB>0<ParB>
     </ADC>
    <CANMESSAGE_LIST>
          <CANMESSAGE UID="36">
            <MessageIdentStart>299</MessageIdentStart>
            <MessageIdentEnd>299</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
           
    <CANMESSAGE_LIST>
          <CANMESSAGE UID="36">
            <MessageIdentStart>299</MessageIdentStart>
            <MessageIdentEnd>299</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
            <InterfaceUID>4</InterfaceUID>
            <Period>100</Period>
    <CANINTERFACE UID="4">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <CANINTERFACE UID="4">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <CANINTERFACE UID="4">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <ADC UID="6">
            <PhysicalNumber>0</PhysicalNumber>
            <Rate>100</Rate>
    		<ParA>1<ParA>
    		<ParB>0<ParB>
     </ADC>
    
    <ADC UID="6">
           <PhysicalNumber>0</PhysicalNumber>
            <Rate>100</Rate>
    		<ParA>1<ParA>
    		<ParB>0<ParB>
     </ADC>
    <CANMESSAGE_LIST>
          <CANMESSAGE UID="36">
            <MessageIdentStart>299</MessageIdentStart>
            <MessageIdentEnd>299</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
           
    <CANMESSAGE_LIST>
          <CANMESSAGE UID="36">
            <MessageIdentStart>299</MessageIdentStart>
            <MessageIdentEnd>299</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
            <InterfaceUID>4</InterfaceUID>
            <Period>100</Period>
    0x12B – Altitude, GPS Speed
  • 0x12C – Longitude, Latitude

  • 0x12D – Ground Distance

  • 0x12E – Number Of Satellites, Course

  • 0x12F - Quality

  • image

    GitHub Link

    XML file

    DBC file

    The below image shows how each element is linked in the XML file.

    They are connected using Unique IDs (UID).

    hashtag
    Default Settings:

    CAN Baud Rate: 500 Kbps

    Example DBC provided with XML.

    hashtag
    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.

    hashtag
    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.

    hashtag
    Default Settings
    • CAN Baud Rate: 500 Kbps

    • All CAN IDs are Routed

    hashtag
    The following parameters can be modified by editing the XML as required.

    Modifying CAN Bus Channel:

    Edit the value of the CANBusSpeed element in the XML file under the CAN interface block.

    Value has to be specified in bps

    hashtag
    Users can load the XML file into the ReXgen logger using the ReXdesk application/ReXdesk Convert application or the Rxlibrary DLL.

    The process sends XML to the logger using ReXdesk. Click on Config Menu > Run > Run Config Using External File > Browse the XML file and click Open.

    GitHub Link

    XML

    Dbc file

    GitHub link

    XML file

    DBC file

    GitHub Link

    XML file

    DBC file

    IMU Data Transmission Over CAN Bus.

    This example shows configuring a ReXgen data logger to transmit IMU data over the CAN Bus.

    hashtag
    Following IMU Data will be transmitted via CAN 0 Bus:

    Accelerometer X Accelerometer Y Accelerometer Z

    Gyroscope X Gyroscope Y Gyroscope Z

    <CANINTERFACE UID="2">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <CANINTERFACE UID="2">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <GNSSINTERFACE UID="3">
            <PhysicalNumber>0</PhysicalNumber>
            <SamplingRate>100</SamplingRate>
     </GNSSINTERFACE>
    <CANMESSAGE_LIST>
          <CANMESSAGE UID="4">
            <MessageIdentStart>299</MessageIdentStart>
            <MessageIdentEnd>299</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
    <CANMESSAGE_LIST>
          <CANMESSAGE UID="4">
            <MessageIdentStart>299</MessageIdentStart>
            <MessageIdentEnd>299</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
            <InterfaceUID>4</InterfaceUID>
            <Period>100</Period>
    <SDINTERFACE_LIST>
          <SDINTERFACE UID="2">
            <MaxLogSize>104857600</MaxLogSize>
            <MaxLogTime>3600</MaxLogTime>
    <CANINTERFACE UID="4">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>    
    <CANMESSAGE UID="42">
            <MessageIdentStart>516</MessageIdentStart>
            <MessageIdentEnd>516</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
            <InterfaceUID>4</InterfaceUID>
            <Period>1000</Period>
    <INTERNAL_PARAMETER UID="1200">
                                  <InputUID>0</InputUID>
                       <Parameter_Type>RTC</Parameter_Type>
            <Value_Type>ULONG</Value_Type>
            <SamplingRate>1000</SamplingRate
    <CANSIGNAL UID="44">
            <InputType>COMMON</InputType>
            <InputUID>1200</InputUID>
            <MessageUID>42</MessageUID>
            <StartBit>7</StartBit>
            <BitCount>32</BitCount>  
    <CANINTERFACE UID="4">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>

    GitHub link

    XML file

    DBC file

    GitHub Link

    XML file

    DBC file

    hashtag
    Documentation

    The below image shows how each element is linked in the XML file.

    They are connected using Unique IDs (UID).

    hashtag
    Default Settings

    • CAN Baud Rate: 500 Kbps

    • ADC Sampling Rate: 100ms

    • CAN ID For various signals:

    • 0x128 – Accelerometer

    • 0x129 – Gyroscope

    • Example DBC provided with XML.

    hashtag
    Following parameters can be modified by editing the XML as required.

    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

    hashtag
    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.

    IMU Data Recording & Transmission Over CAN Bus.

    This example shows how to configure a ReXgen data logger to transmit IMU data over the CAN Bus and record the same in eMMC storage.

    hashtag
    Following IMU Data will be transmitted via CAN 0 Bus:

    Accelerometer X Accelerometer Y Accelerometer Z

    Gyroscope X Gyroscope Y Gyroscope Z

    hashtag
    Documentation

    The below image shows how each element is linked in the XML file.

    They are connected using Unique IDs (UID).

    hashtag
    Default Settings

    • CAN Baud Rate: 500 Kbps

    • ADC Sampling Rate: 100ms

    • CAN ID For various signals:

    hashtag
    The following parameters can be modified by editing the XML as required.

    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 the 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 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 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

    hashtag
    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.

    <CANINTERFACE UID="4">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <CANINTERFACE UID="4">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <ACCELEROMETER UID="4">
            <PhysicalNumber>0</PhysicalNumber>
            <Axis>X</Axis>
            <SamplingRate>10</SamplingRate>
    <GYRO UID="7">
            <PhysicalNumber>0</PhysicalNumber>
            <Axis>X</Axis>
            <SamplingRate>10</SamplingRate>
    <ACCELEROMETER UID="6">
            <PhysicalNumber>0</PhysicalNumber>
            <Axis>Z</Axis>
            <SamplingRate>10</SamplingRate>
            <RangeHi>16</RangeHi>
            <RangeLow>-16</RangeLow>
          </ACCELEROMETER>
    <GYRO UID="7">
            <PhysicalNumber>0</PhysicalNumber>
            <Axis>X</Axis>
            <SamplingRate>10</SamplingRate>
            <RangeHi>500</RangeHi>
            <RangeLow>-500</RangeLow>
          </GYRO>
    <CANMESSAGE_LIST>
          <CANMESSAGE UID="36">
            <MessageIdentStart>299</MessageIdentStart>
            <MessageIdentEnd>299</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
    <CANMESSAGE_LIST>
          <CANMESSAGE UID="36">
            <MessageIdentStart>299</MessageIdentStart>
            <MessageIdentEnd>299</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
            <InterfaceUID>4</InterfaceUID>
            <Period>100</Period>

    GitHub Link

    XML file

    DBC file

    0x128 – Accelerometer
  • 0x129 – Gyroscope

  • Example DBC provided with XML.

  • image

    GitHub link

    XML file

    DBC file

    <CANINTERFACE UID="4">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <CANINTERFACE UID="4">
            <Type>CAN</Type>
            <PhysicalNumber>0</PhysicalNumber>
            <CANBusSpeed>500000</CANBusSpeed>
            <CANFDBusSpeed>8000000</CANFDBusSpeed>
            <CANFDNonISO>false</CANFDNonISO>
    <ACCELEROMETER UID="4">
            <PhysicalNumber>0</PhysicalNumber>
            <Axis>X</Axis>
            <SamplingRate>10</SamplingRate>
    <GYRO UID="7">
            <PhysicalNumber>0</PhysicalNumber>
            <Axis>X</Axis>
            <SamplingRate>10</SamplingRate>
    <ACCELEROMETER UID="6">
            <PhysicalNumber>0</PhysicalNumber>
            <Axis>Z</Axis>
            <SamplingRate>10</SamplingRate>
            <RangeHi>16</RangeHi>
            <RangeLow>-16</RangeLow>
          </ACCELEROMETER>
    <GYRO UID="7">
            <PhysicalNumber>0</PhysicalNumber>
            <Axis>X</Axis>
            <SamplingRate>10</SamplingRate>
            <RangeHi>500</RangeHi>
            <RangeLow>-500</RangeLow>
          </GYRO>
    <CANMESSAGE_LIST>
          <CANMESSAGE UID="36">
            <MessageIdentStart>299</MessageIdentStart>
            <MessageIdentEnd>299</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
    <CANMESSAGE_LIST>
          <CANMESSAGE UID="36">
            <MessageIdentStart>299</MessageIdentStart>
            <MessageIdentEnd>299</MessageIdentEnd>
            <Direction>OutputPeriodic</Direction>
            <DLC>8</DLC>
            <IsExtended>false</IsExtended>
            <InterfaceUID>4</InterfaceUID>
            <Period>100</Period>