Accessing RS485 Interface on Compulab IOTDIN-IMX8P with Balena

Hello Forum,

I am currently evaluating the Compulab IOTDIN-IMX8P device with Balena. The provisioning and flashing processes were straightforward. However, I am encountering an issue with accessing the RS485 interface within a container.

On other hardware, I typically map the device in the docker-compose.yml file (e.g., /dev/ttyRS485:/dev/ttyRS485 with privileged: true), and the interface becomes accessible inside the container. On this device, though, while /dev/ttyRS485 is available on the HostOS, it does not appear inside the container after being mapped in the compose file.

Is there a specific configuration or hardware label required for accessing the RS485 interface on the Compulab IOTDIN-IMX8P?

Any guidance would be greatly appreciated.

Best regards,
Timo

Hi @TimoAtMUV, if the device node is available in the hostOS, using the devices: field in your composition for a specific service should make it available to the container.

Could you provide the compose file you are using?

1 Like

Hardware interface is directly accessible via /dev/ttyRS485 now.

I’ve used the mappings:

devices: 
 \# ---- Logical serial ports ----

  - '/dev/ttymxc2:/dev/ttyRS232'

  - '/dev/ttymxc3:/dev/ttyRS485'

  \# ---- Modem / USB serial ----

  - '/dev/ttyUSB0:/dev/ttyModemQCDM'

  - '/dev/ttyUSB1:/dev/ttyModemGPS'

  - '/dev/ttyUSB2:/dev/ttyModemAT1'

  - '/dev/ttyUSB3:/dev/ttyModemAT2'

  \# ---- Input button ----

  - '/dev/input/event1:/dev/input/event1'

in my docker compose.