Serial Port access in docker container in TorizonCore

I have managed to execute the sample app of .NET UNO Platform application on TorizonCore inside a contaner started by the Visual Studio Code plugin.
Is it possible to access serial ports inside the container?
Can you please direct me to some documentation?
My configuration:

  • Colibri iMX6DL 512MB v1.1Y
  • Iris V2.0A
  • TorizonCore Upstream 5.6.0+build.13 (dunfell)
  • Toradex Torizon Support v1.4.0

Hi @Lorenzo ,

Yes, it is possible to access serial ports inside the container by adding the device path for them in our extension settings. Please refer to the section Add devices in this article: .NET Core Development and Debugging on Torizon Using Visual Studio Code | Toradex Developer Center. For a USB port the path is usually /dev/ttyUSB0.

Let me know if this helps you.

Best regards,
Lucas Akira

After a bit of research and testing, I found the solution.
I write it here for future reference…

appconfig_0 → devices → added a row with “/dev/ttyUSB0:/dev/ttyUSB0”

Thanks Lucas!

Glad you managed to solve your issue!

Best regards,
Lucas Akira