I have downloaded your latest version 11.1.0.1 and it is working GREAT on the Raspberry PI....THANK YOU for all your effort on issue #29
Now, I am trying to run the application within a docker container. When the application first loads up, I list out all the connected devices. When the devices are listed they are missing all the meta data, but I need the device information when the container is first turned on for all the connected devices:
Within the container, if I unplug and plug in the device, the meta data shows up during the add event (but not until i remove and add the device):
However, when i run it directly on the PI, the data shows up immediately when the program starts.
Interestingly, in both scenarios (container and on pi directly) the existing device counts are 0 and then all the devices get "Added"
My containers Image is based on mcr.microsoft.com/dotnet/runtime:7.0.15-bullseye-slim-arm64v8
and then i install udev and setup some udev rules:
RUN apt-get update -y && \
apt-get install -y udev usbutils && \
echo '\
ACTION=="add", RUN+="mknod %N c %M %m"\n\
ACTION=="remove", RUN+="rm %N"\n\
' > /etc/udev/rules.d/99-togglePico.rules
The container is run in privilege mode. My understanding is that if i run in privilege mode, I dont have to map any devices or volumes but maybe i am wrong.
sudo docker run -it --privileged usb_test_image
and the udev service is restarted before my program is run:
cmd service udev restart && ./USBDetectionTesting
I suspect I am missing some basic dependency in the container but cant figure out what i am missing so your code can find the meta data of the existing devices.
Any help/insight would be appreciated.