> 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="/files/Ar65SwezsyMD72mqIi7R" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
