• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] USB Serial device mapping into Container
#2
Hello Hannes,

one thing I have to mention here about using priviledge mode on netPI. On a standard Raspberry Pi utillizing Docker in mode "priviledged" ALL /dev devices are automatically mapped. Not so with netPI. netPI includes a special version Docker mapping not ALL available host devices into the container automatically. This is because of security reasons ... else you could easily get access to the netPI SD card drive and hack netPI's security software and root system. This is what we definitively not want.

So back to your problem. Yes indeed because of my explanation above you have to map the devices manually from the beginning and start of the container. Linux maps those units to host devices called /dev/ttyUSBx if they are serial port device and x for any next device starting with 0 then 1 etc.

So you have to insert the serial devices while netPI was booting. Then you have to map /dev/ttyUSB0 and /dev/ttyUSB1 and also the bus device /dev/bus.

This should work
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)



Messages In This Thread
RE: USB Serial device mapping into Container - by Armin@netPI - August-24th-2018, 09:34 AM
RE: USB Serial device mapping into Container - by hannes - August-24th-2018, 09:46 AM
RE: USB Serial device mapping into Container - by hannes - August-24th-2018, 10:31 AM
RE: USB Serial device mapping into Container - by hannes - August-24th-2018, 11:06 AM
RE: USB Serial device mapping into Container - by hannes - August-27th-2018, 04:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  USB Port Mapping DSongra 5 3,998 March-10th-2022, 09:20 AM
Last Post: Armin@netPI
  TOSILOCK for CONTAINER COswald 3 2,269 July-13th-2021, 11:32 AM
Last Post: Armin@netPI
  Access to RTC from my own container application tad 1 3,599 March-19th-2021, 02:58 PM
Last Post: Armin@netPI
  [SOLVED] Starting services/commands/scripts at startup of a container Jonas.Sellmann@outlook.de 9 6,271 March-9th-2021, 08:47 AM
Last Post: WalterSchaefer
  OpenVPN container Armin@netPI 0 1,668 January-3rd-2021, 12:13 PM
Last Post: Armin@netPI
  operating Console of a container on netPI connected to Wi-Fi tethering tad 3 2,706 December-3rd-2020, 12:32 PM
Last Post: tad
  NIOT-E-NPIX-4DI4DO with netpi-netx container WalterSchaefer 3 6,758 November-25th-2020, 01:06 PM
Last Post: zen89
  missing the menu items from IO Device Configurator tad 5 3,336 November-20th-2020, 07:41 AM
Last Post: Armin@netPI
  NPIX-4DI4DO and NetPi-Nodered container issues alhammi 4 7,913 November-16th-2020, 01:35 PM
Last Post: alhammi
  Get host MAC via REST API inside container bschandra 4 3,739 November-16th-2020, 09:26 AM
Last Post: bschandra

Forum Jump:


Users browsing this thread: 1 Guest(s)