# 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

## 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%2FoKEPaWJ4NHtpbKk1CGUl%2Fimage.png?alt=media&#x26;token=044907e7-a24a-49f8-9649-f761582c32b6" alt=""><figcaption></figcaption></figure></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 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

```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 sends XML to the 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_Signal_to_CAN1">https://github.com/InfluxTechnology/Rexgen_XML_Examples/tree/main/GATEWAY_CAN0_Signal_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_Signal_to_CAN1/Gateway_CAN0_CAN1_Signal.xml">https://github.com/InfluxTechnology/Rexgen_XML_Examples/blob/main/GATEWAY_CAN0_Signal_to_CAN1/Gateway_CAN0_CAN1_Signal.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_Signal_to_CAN1/ReXgen_IMU_Out_V3.dbc">https://github.com/InfluxTechnology/Rexgen_XML_Examples/blob/main/GATEWAY_CAN0_Signal_to_CAN1/ReXgen_IMU_Out_V3.dbc</a></td></tr></tbody></table>
