> 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/gateway_can0_to_can1.md).

# 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

## Documentation

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

<div align="left"><img src="https://user-images.githubusercontent.com/122855530/223421344-baee66c2-ccb6-42d7-8fc0-94dd25ded313.png" alt="image" width="188"></div>

They are connected using Unique IDs (UID).

### Default Settings

* CAN Baud Rate: 500 Kbps
* All CAN IDs are Routed

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

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

#### 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/GATEWAY_CAN0_to_CAN1">https://github.com/InfluxTechnology/Rexgen_XML_Examples/tree/main/GATEWAY_CAN0_to_CAN1</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/GATEWAY_CAN0_to_CAN1/Gateway_CAN0_to_CAN1.xml">https://github.com/InfluxTechnology/Rexgen_XML_Examples/blob/main/GATEWAY_CAN0_to_CAN1/Gateway_CAN0_to_CAN1.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/GATEWAY_CAN0_to_CAN1/ReXgen_IMU_Out_V3.dbc">https://github.com/InfluxTechnology/Rexgen_XML_Examples/blob/main/GATEWAY_CAN0_to_CAN1/ReXgen_IMU_Out_V3.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/gateway_can0_to_can1.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.
