laest Posted May 12, 2020 Share Posted May 12, 2020 (edited) Hi everybody! I am trying to passthrough a CC2531 Zigbee USB stick for days now. As you might expect, without any success. My investigations led me to the following problem that might cause the initial problem with passing through the USB device. If I do a 'lsusb' to list the USB devices, the Zigbee stick shows up as "Texas Instruments ....." but as you can see from the attached screenshot, the Zigbee stick's device ID constantly changes every minute. The stick itself is plugged in the same USB port the whole time. Sometimes it even looses connection to UnRaid I guess, because it does not show up in the output. Is there any trick get UnRaid to not change the device ID every minute? I guess this would help a lot to get the Zigbee stick passed through to my VM or a Docker container in the future. Thanks in advance! P.S.: UnRaid is running on a Asrock J5005-ITX board. I tried multiple of the board's USB ports, 2.0 as well as 3.0 ports, with the same result. Also wanted to pass through the whole PCI controller, but since the board only seems to have one, this is not possible. Even if the output says there are two buses, the Zigbee stick always shows up below bus 001, no matter what USB port I plug it in. Edited May 12, 2020 by laest Quote Link to comment
laest Posted May 18, 2020 Author Share Posted May 18, 2020 Does nobody have any idea? Quote Link to comment
hova Posted May 23, 2020 Share Posted May 23, 2020 I am also seeing my device change ids, but only when I unplug it and plug it back in, forcing me to reconnect it to the VM. I also don't have this working, but I can see the device at /dev/ttyACM0 in the VM, but encounter errors when trying to use it. Quote Link to comment
laest Posted June 1, 2020 Author Share Posted June 1, 2020 My device ID is changing without the device being unplugged and reconnected. So I cannot use the USB Device at all :( Would be great if somebody could help us with a solution! :) Quote Link to comment
HectorG Posted June 3, 2020 Share Posted June 3, 2020 probably not of much help but usb controllers seem to be hit and miss for many (espeically amd ryzen owbers) and even then it feels usb controllers even when in seperate groups appear to still be sharing from the other usb controllers on the mobo causing other issues and instability. I see why space invader vid he just bought a usb controller card and passed that through so reduced the headache, gonna do same shortly. Quote Link to comment
laest Posted June 4, 2020 Author Share Posted June 4, 2020 I just re-flashed my cc2531 stick and the error does not occur again. Don‘t really know why this helped since the cc2531 worked well with the initial firmware on my old raspberry pi. Quote Link to comment
CS01-HS Posted June 5, 2020 Share Posted June 5, 2020 I'm stuck on the same "single USB controller" with my j5005. I've ordered this Key A-E to USB Extension Card as a potential work around but I won't get it for another month. I'll report back when I've tested it. Quote Link to comment
hova Posted June 11, 2020 Share Posted June 11, 2020 (edited) Update: I fixed my issue by abandoning my (possibly not genuine) CC2531. Full description here: https://github.com/Koenkk/zigbee2mqtt/issues/2997#issuecomment-640089394 I'm passing it through as a USB device, not an IOMMU group. Edited June 11, 2020 by hova Quote Link to comment
TRusselo Posted February 2, 2023 Share Posted February 2, 2023 (edited) for Dockers the best method to passthrough usb to docker is via device by-id open unraid terminal type ls -l /dev/serial/by-id you will get output of your devices with names copy the whole BLUE name of your device go to your docker and edit config add /dev/serial/by-id/ before pasting the name from above. eg /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_dcf756dbb712ec118bca20c7bd930c07-if00-port0 then add :/dev/zigbee to the end - this is the container mount point so you end up with this in your Docker Host config: /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_dcf756dbb712ec118bca20c7bd930c07-if00-port0:/dev/zigbee if anywere inside your docker program it asks for the device location you would set it to : /dev/zigbee Edited February 19, 2023 by TRusselo Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.