• 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
#12
Hello Dennis,

extensions to our Linux OS are not that easy to implement and to get an approval for a "go" since the single Linux OS build process we established builds the OSs for all our IOT devices we offer next to netPI at the same time. There are devices with Intel processor, our netX4000 controller and of course the ARM BCM of netPI. We are speaking about multiple Hilscher devices + all custom derivatives that are built during one process and they share in 99% of all cases the same build code.

This fact and in addition to the fact how docker behaves with /dev/ and shadow copies /dev/ in the container and a udev rule we have to define so commonly that it fits always to all devices in the "whole world" I came to the conclusion that we cannot implement such a udev rule by ourselves.

Sorry for having no better answer for you right now. How about a possibility to implement the udev by yourself ... send me a private message.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


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

Forum Jump:


Users browsing this thread: 2 Guest(s)