Skip to main content

Enabling USB Serial Support on my EVVR Container

This can be useful for accessing RDC or USB GPS

Updated this week

The container can make use of a USB serial port from the host OS. The device path for the usb serial port must be set in an environment variable. An additional permission is also required to allow the container to access USB serial devices.

You can determine the path to your USB serial device by listing devices in /dev/ or looking at dmesg output.

The environment variable is called EV_USB_SERIAL_PORT

Did you install using the .DEB file?

You'll need to edit your docker compose file using these instructions.

The compose.yml file should needs an two extra lines added:

  • 'c 188:* rmw'

  • EV_USB_SERIAL_PORT=/dev/ttyUSB3

This example shows you where they should be placed. If you do not have an environment section, add it below the restart: unless-stopped line:

services:
edgevis-encoder:
...
device_cgroup_rules:
- 'c 81:* rmw'
- 'c 116:* rmw'
- 'c 188:* rmw'
...
restart: unless-stopped
environment:
- EV_USB_SERIAL_PORT=/dev/ttyUSB3

Now enable RDC in the usual way from Encoder local web or EdgeVis Server

Similarly, GPS can be enabled from the Server web page.


​
​

Did this answer your question?