• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Static mapping of USB-devices
#11
Thanks for the clarification. Is it in the realm of possibility that you'll consider implementing a work-around with udev, script and yaml file containing udevadm info output on the host hilscher system?

Is it possible to mount bus devices under /dev/bus/usb/001/... directly with --device? The main problem is, that devices might get reconnected and get assigned different numbers under /dev/ttyUSB{0,1,...}. Even if they are connected on the same port physically but in different order. So the idea would be to just mount the physical location, assuming the logical usb device if exchanged is always connected to the same physical port on the bus. I'd then implement a check, if the device becomes unavailable to kill the container and the restart=always rule will then restart the container until the device becomes available again. If the application is designed as a microservice architecture with a second service monitoring the status of the first one, I'll still be able to react on situations, when a device is unreachable for some reason.
  Reply


Messages In This Thread
Static mapping of USB-devices - by deme - May-11th-2019, 10:55 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-11th-2019, 11:20 AM
RE: Static mapping of USB-devices - by deme - May-13th-2019, 09:23 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-13th-2019, 10:06 AM
RE: Static mapping of USB-devices - by deme - May-13th-2019, 10:51 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-13th-2019, 02:52 PM
RE: Static mapping of USB-devices - by Armin@netPI - May-13th-2019, 04:23 PM
RE: Static mapping of USB-devices - by deme - May-15th-2019, 10:06 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-15th-2019, 11:17 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-15th-2019, 11:29 AM
RE: Static mapping of USB-devices - by deme - May-15th-2019, 12:08 PM
RE: Static mapping of USB-devices - by Armin@netPI - May-15th-2019, 04:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  USB Port Mapping DSongra 5 3,873 March-10th-2022, 09:20 AM
Last Post: Armin@netPI
  Ethercat master mapping SteP 1 2,269 March-2nd-2020, 12:42 PM
Last Post: Armin@netPI
  [SOLVED] Faulty devices description file from Github Whatzittoya13 5 3,458 March-11th-2019, 11:58 AM
Last Post: Armin@netPI
  Updating of many devices remotely Johannes 6 4,601 November-1st-2018, 12:35 PM
Last Post: Johannes
  [SOLVED] USB Serial device mapping into Container hannes 12 13,447 August-27th-2018, 04:50 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)