> For the complete documentation index, see [llms.txt](https://docs.influxtechnology.com/support_guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.influxtechnology.com/support_guides/rexgen_xml_examples/rtc_data_to_can_bus.md).

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

<div align="left"><figure><img src="https://2544578235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8STQYjBXujxMObsXNadL%2Fuploads%2F7Ht4iLAHVOButLGMM2Im%2Fimage.png?alt=media&amp;token=27863935-01f6-44d4-9cb3-85c8ca823d41" alt="" width="226"><figcaption></figcaption></figure></div>

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.

```xml
<SDINTERFACE_LIST>
      <SDINTERFACE UID="2">
        <MaxLogSize>104857600</MaxLogSize>
        <MaxLogTime>3600</MaxLogTime>
```

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

```xml
<CANINTERFACE UID="4">
        <Type>CAN</Type>
        <PhysicalNumber>0</PhysicalNumber>
        <CANBusSpeed>500000</CANBusSpeed>
        <CANFDBusSpeed>8000000</CANFDBusSpeed>    
```

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

```xml
<CANMESSAGE UID="42">
        <MessageIdentStart>516</MessageIdentStart>
        <MessageIdentEnd>516</MessageIdentEnd>
        <Direction>OutputPeriodic</Direction>
        <DLC>8</DLC>
        <IsExtended>false</IsExtended>
        <InterfaceUID>4</InterfaceUID>
        <Period>1000</Period>
```

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

```xml
<INTERNAL_PARAMETER UID="1200">
                              <InputUID>0</InputUID>
                   <Parameter_Type>RTC</Parameter_Type>
        <Value_Type>ULONG</Value_Type>
        <SamplingRate>1000</SamplingRate
```

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

```xml
<CANSIGNAL UID="44">
        <InputType>COMMON</InputType>
        <InputUID>1200</InputUID>
        <MessageUID>42</MessageUID>
        <StartBit>7</StartBit>
        <BitCount>32</BitCount>  
```

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

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;">GitHub Link</mark></td><td><a href="https://github.com/InfluxTechnology/Rexgen_XML_Examples/tree/main/RTC_DATA_TO_CAN_BUS">https://github.com/InfluxTechnology/Rexgen_XML_Examples/tree/main/RTC_DATA_TO_CAN_BUS</a></td></tr><tr><td><mark style="color:blue;">XML file</mark></td><td><a href="https://github.com/InfluxTechnology/Rexgen_XML_Examples/blob/main/RTC_DATA_TO_CAN_BUS/RTC2CAN.xml">https://github.com/InfluxTechnology/Rexgen_XML_Examples/blob/main/RTC_DATA_TO_CAN_BUS/RTC2CAN.xml</a></td></tr><tr><td><mark style="color:blue;">DBC file</mark></td><td><a href="https://github.com/InfluxTechnology/Rexgen_XML_Examples/blob/main/RTC_DATA_TO_CAN_BUS/RTC2CAN.dbc">https://github.com/InfluxTechnology/Rexgen_XML_Examples/blob/main/RTC_DATA_TO_CAN_BUS/RTC2CAN.dbc</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.influxtechnology.com/support_guides/rexgen_xml_examples/rtc_data_to_can_bus.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
