Template:Networking rutos manual canbus gateway
The information in this page is updated in accordance with firmware version .
Summary
The CAN Bus Gateway a CAN (Controller Area Network) Bus Gateway is a communication device used to connect and manage data exchange between multiple CAN networks or between CAN and other communication protocols. It acts as a bridge, router, or filter to ensure that messages move efficiently and securely across different segments of a system. This manual page provides an overview of the CAN Bus gateway page in {{{name}}} devices.
Status
Here's an example demonstrating CAN Bus Gateway in action, running in Client + Server Mode.
CAN Device Configuration
Configure CAN Bus communication parameters in the Device configuration section.
| Field | Value | Description |
|---|---|---|
| Enable | off | on; default: off | Enable service. |
| Bit rate | integer [256..10000000]; default: 50000 | Data transmission speed (bit/s). |
Configuration Settings
You can configure network related parameters of the device connection in the Configuration settings secion.
| Field | Value | Description |
|---|---|---|
| Mode | Server | Client | Client + server; default: Server | Possible modes:
|
| Protocol | TCP | UDP; default: TCP | Select which protocol to use for data transmission. |
| Client: Destination address | IP | Port; default: empty | Specify server address and port for client to connect to (e.g., first field for address second for port. 16 destination addresses are allowed if connect on data is not enabled). |
| Server: UDP: Predefined addresses | IP | Port; default: empty | Set predefined IP and port for UDP connection. |
| Listening port | [1..65535]; default: empty | Specify port number for server to listen. |
| Field | Value | Description |
|---|---|---|
| Use TLS/SSL | off | on; default: off | Enable TLS/SSL for secure connection. |
| TLS version | Support all | TLS 1.2 | TLS 1.3; default: TLS 1.2 | Minimum TLS version allowed to be used. |
| TLS type | Certificate based | Pre-Shared-Key based; default: Certificate based | Select the type of TLS encryption. |
| Require certificate | off | on; default: on | Demand certificate and key from peer and verify them against certificate authority. |
| Certificate files from device | off | on; default: off | Choose this option if you want to select certificate files from device. Certificate files can be generated [[{{{name}}} Administration#Certificates|here]]. |
| Certificate file | .crt file; default: none | Upload certificate file. |
| Key file | .key file; default: none | Upload key file. |
| CA file | .ca file; default: none | Upload CA file. |
| Pre-Shared-Key | string; default: none | The pre-shared-key in hex format with no leading “0x”. |
| Identify | string; default: none | Specify the identity. |
| Field | Value | Description |
|---|---|---|
| Raw mode | off | on; default: on | When enabled, all data will be transmitted transparently. |
| Remove all zeros | off | on; default: off | When checked, indicates that the first hex zeros should be skipped. |
| Inactivity timeout | integer [0..36000]; default: 300 | Specifies period of time in seconds, where server connection must be inactive, to disconnect client. To disable timeout input 0. |
| Serial timeout | integer [0..1000]; default: none | Specifies the maximum milliseconds to wait for serial data. |
| Max clients | integer [1..32]; default: 4 | Specify how many clients are allowed to connect simultaneously. |
| TCP echo | on | off; default: off | Enable software TCP echo. |
| Close connections | on | off; default: off | Close TCP connections everytime data is sent or received (might result in serial data loss). |
| Keep alive | on | off; default: off | Enable keep alive. |
| Keep alive time | integer [0..32000]; default: 0 | Close TCP connections everytime data is sent or received (might result in serial data loss). |
| Keep alive interval | integer [0..32000]; default: 0 | The interval between subsequential keepalive probes. |
| Keep alive probes | integer [0..32000]; default: 0 | The number of unacknowledged probes. |
[[Category:{{{name}}} Services section]]



