Trylo Posted March 20, 2023 Share Posted March 20, 2023 6 minutes ago, SimonF said: Do you need USBIP if not set enable USBIP to no in settings. If yes install the addon package via the settings page. I've got it 5 minutes after I posted it Thank you for the quick reply! Quote Link to comment
Trylo Posted March 27, 2023 Share Posted March 27, 2023 I'm having a problem. I can't get Windows 11 to connect to the USBIP on my Unraid. I'm trying to connect device 5-1. On Unraid side everything looks good: On Windows side I followed this guide: https://sourceforge.net/p/usbip/git-windows/ci/master/tree/trunk/driver/USAGE but I'm getting errors: C:\Users\andrz\Downloads>usbip -l 192.168.2.5 - 192.168.2.5 usbip err: usbip_network.c: 121 (usbip_recv_op_common) recv op_common, -1 usbip err: usbip.c: 216 (query_exported_devices) recv op_common usbip err: usbip.c: 288 (show_exported_devices) query Am I doing something wrong? Quote Link to comment
SimonF Posted March 27, 2023 Author Share Posted March 27, 2023 (edited) 6 hours ago, Trylo said: I'm having a problem. I can't get Windows 11 to connect to the USBIP on my Unraid. I'm trying to connect device 5-1. On Unraid side everything looks good: On Windows side I followed this guide: https://sourceforge.net/p/usbip/git-windows/ci/master/tree/trunk/driver/USAGE but I'm getting errors: C:\Users\andrz\Downloads>usbip -l 192.168.2.5 - 192.168.2.5 usbip err: usbip_network.c: 121 (usbip_recv_op_common) recv op_common, -1 usbip err: usbip.c: 216 (query_exported_devices) recv op_common usbip err: usbip.c: 288 (show_exported_devices) query Am I doing something wrong? Not loaded a client on windows before, but tested this one list works, but couldn't get the driver to work for attach. https://github.com/barbalion/usbip-win-client Edited March 27, 2023 by SimonF 1 Quote Link to comment
Snipe3000 Posted April 6, 2023 Share Posted April 6, 2023 I'm seeing a Virsh Error on one of the USB devices I'm passing into a VM, does anyone know what that means? Quote Link to comment
SimonF Posted April 6, 2023 Author Share Posted April 6, 2023 2 hours ago, Snipe3000 said: I'm seeing a Virsh Error on one of the USB devices I'm passing into a VM, does anyone know what that means? What error detail do you get if you hover over the message? This will show errors in the state file. cat /usr/local/emhttp/state/usb.ini | grep error Quote Link to comment
Snipe3000 Posted April 10, 2023 Share Posted April 10, 2023 On 4/5/2023 at 11:06 PM, SimonF said: What error detail do you get if you hover over the message? This will show errors in the state file. cat /usr/local/emhttp/state/usb.ini | grep error virsherror = "" virsherror = 1 virsh = "error: Failed to attach device from /tmp/libvirthotplugusbbybusHome Assistant-002-017.xml error: internal error: unable to execute QEMU command 'chardev-add': Failed to add chardev 'charua-serial002017': Could not open '/dev/serial/by-id/': Is a directory virsherror = 1 virsh = "error: Failed to attach device from /tmp/libvirthotplugusbbybusHome Assistant-002-016.xml error: internal error: unable to execute QEMU command 'chardev-add': Failed to add chardev 'charua-serial002016': Could not open '/dev/serial/by-id/': Is a directory I see that whenever I try to connect my two devices as serial Quote Link to comment
SimonF Posted April 10, 2023 Author Share Posted April 10, 2023 2 hours ago, Snipe3000 said: virsherror = "" virsherror = 1 virsh = "error: Failed to attach device from /tmp/libvirthotplugusbbybusHome Assistant-002-017.xml error: internal error: unable to execute QEMU command 'chardev-add': Failed to add chardev 'charua-serial002017': Could not open '/dev/serial/by-id/': Is a directory virsherror = 1 virsh = "error: Failed to attach device from /tmp/libvirthotplugusbbybusHome Assistant-002-016.xml error: internal error: unable to execute QEMU command 'chardev-add': Failed to add chardev 'charua-serial002016': Could not open '/dev/serial/by-id/': Is a directory I see that whenever I try to connect my two devices as serial You may not need to use the serial option, it is mainly for devices that dont work(Conbee II) if you pass as whole USB device. Try not using the serial option. want does ls /dev/serial/by-id show? Quote Link to comment
Snipe3000 Posted April 10, 2023 Share Posted April 10, 2023 13 minutes ago, SimonF said: You may not need to use the serial option, it is mainly for devices that dont work(Conbee II) if you pass as whole USB device. Try not using the serial option. want does ls /dev/serial/by-id show? Using lsusb I get this: The issues Im having is my zooz zwave stick works fine if I don't use the serial only option, but Z-Wave JS UI doesnt work unless I use serial only. If I do use serial only, zwave doesnt work in HA's integrations area anymore. Then theres my skyconnect stick, Ive never been able to get it work properly, it always fails configuation, been trying for weeks. Currently I flashed it with Multi-pan firmware, but not having much luck there either. This has all been very messy Quote Link to comment
SimonF Posted April 10, 2023 Author Share Posted April 10, 2023 12 hours ago, Snipe3000 said: Using lsusb I get this: The issues Im having is my zooz zwave stick works fine if I don't use the serial only option, but Z-Wave JS UI doesnt work unless I use serial only. If I do use serial only, zwave doesnt work in HA's integrations area anymore. Then theres my skyconnect stick, Ive never been able to get it work properly, it always fails configuation, been trying for weeks. Currently I flashed it with Multi-pan firmware, but not having much luck there either. This has all been very messy can you provide ls /dev/seria!/by-id/ and diagnostics Quote Link to comment
Snipe3000 Posted April 11, 2023 Share Posted April 11, 2023 On 4/10/2023 at 10:56 AM, SimonF said: can you provide ls /dev/seria!/by-id/ and diagnostics running "ls /dev/serial/by-id" says "No such file or directory" The diagnostics are attached unraid01-diagnostics-20230411-1649.zip Quote Link to comment
casperse Posted June 4, 2023 Share Posted June 4, 2023 just updated to 6.12.0RC6 and after this I am getting VIRSH errors? And connected outside? not sure what to do? Problem is that without these two USB - Home assistant dosent work 😞 Quote Link to comment
casperse Posted June 4, 2023 Share Posted June 4, 2023 Looks like the z-wave is working but the Zigbee isnt (Both have the Virsh error) HA logs: USB Logs Quote Link to comment
casperse Posted June 4, 2023 Share Posted June 4, 2023 I found the HA settings, not sure what to change: { "entry_id": "2bb51ca17b7fa61b8d997ce1d3f2c8a2", "version": 3, "domain": "zha", "title": "ConBee II, s/n: DE2421314 - dresden elektronik ingenieurtechnik GmbH", "data": { "device": { "path": "/dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.0-4-if00-port0" }, "radio_type": "deconz" }, The mappings now looks like this: Quote Link to comment
SimonF Posted June 4, 2023 Author Share Posted June 4, 2023 1 hour ago, casperse said: Looks like the z-wave is working but the Zigbee isnt (Both have the Virsh error) HA logs: USB Logs Connected out side means the device was connected outside USBM. Can you provide the output of cat /usr/local/emhttp/state/usb.ini | grep error or cat /usr/local/emhttp/state/usb.ini | grep vir Quote Link to comment
casperse Posted June 5, 2023 Share Posted June 5, 2023 (edited) On 6/4/2023 at 12:42 PM, SimonF said: Connected out side means the device was connected outside USBM. Can you provide the output of cat /usr/local/emhttp/state/usb.ini | grep error or cat /usr/local/emhttp/state/usb.ini | grep vir Thanks (Everything worked before the Unraid update) root@:~# cat /usr/local/emhttp/state/usb.ini | grep error virsherror = 1 virsh = "error: Failed to attach device from /tmp/libvirthotplugusbbybusHassio 1-001-059.xml error: XML error: Duplicate USB address bus 0 port 4 root@~# cat /usr/local/emhttp/state/usb.ini | grep vir virsherror = 1 virsh = "error: Failed to attach device from /tmp/libvirthotplugusbbybusHassio 1-001-059.xml root@:~# UPDATE (I am really trying to get this working not a happy house when Hassio isnt running 🙂 I have tried detach and attach and now get this: The one that says connected dosent work in HA? I Dont now what the correct configuration should be in HA? If anyone knows what the Blue line should be then let me know 🙂 Edited June 5, 2023 by casperse Quote Link to comment
SimonF Posted June 5, 2023 Author Share Posted June 5, 2023 1 hour ago, casperse said: Thanks (Everything worked before the Unraid update) root@:~# cat /usr/local/emhttp/state/usb.ini | grep error virsherror = 1 virsh = "error: Failed to attach device from /tmp/libvirthotplugusbbybusHassio 1-001-059.xml error: XML error: Duplicate USB address bus 0 port 4 root@~# cat /usr/local/emhttp/state/usb.ini | grep vir virsherror = 1 virsh = "error: Failed to attach device from /tmp/libvirthotplugusbbybusHassio 1-001-059.xml root@:~# Are you able to see what devices are mapped in the VM in HA? You may need to change the serial port Quote Link to comment
casperse Posted June 6, 2023 Share Posted June 6, 2023 14 hours ago, SimonF said: Are you able to see what devices are mapped in the VM in HA? You may need to change the serial port I finally took the courage to delete and re-add the ZHA integration in HA (Hoping it would recover all my devices again!) And the new path is: { "entry_id": "1c7ac4a53b85198687c853f65f3a7fa6", "version": 3, "domain": "zha", "title": "/dev/ttyUSB0", "data": { "device": { "path": "/dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.0-4-if00-port0" }, "radio_type": "deconz" }, "options": {}, "pref_disable_new_entities": false, "pref_disable_polling": false, "source": "user", "unique_id": null, "disabled_by": null } And it seem to be working for both USB now! 🙂 But only one is listed as connected? the other one still says "Virsh Error"? Both use the port 4 as "Connect as serial" I have not been able to change them. Can I just ignore this error? it looks like it working ok in HA Quote Link to comment
SimonF Posted June 6, 2023 Author Share Posted June 6, 2023 4 hours ago, casperse said: I finally took the courage to delete and re-add the ZHA integration in HA (Hoping it would recover all my devices again!) And the new path is: { "entry_id": "1c7ac4a53b85198687c853f65f3a7fa6", "version": 3, "domain": "zha", "title": "/dev/ttyUSB0", "data": { "device": { "path": "/dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.0-4-if00-port0" }, "radio_type": "deconz" }, "options": {}, "pref_disable_new_entities": false, "pref_disable_polling": false, "source": "user", "unique_id": null, "disabled_by": null } And it seem to be working for both USB now! 🙂 But only one is listed as connected? the other one still says "Virsh Error"? Both use the port 4 as "Connect as serial" I have not been able to change them. Can I just ignore this error? it looks like it working ok in HA You shouldnt need serial for Zwave switch off connect as serial. Both are trying to connect as port 4 Quote Link to comment
dopeytree Posted July 7, 2023 Share Posted July 7, 2023 (edited) Han anyone been able to get a usb esp32 to show up in this manager? I'm not sure if the CP2102drivers are definitely included in unraid. Thanks Edited July 7, 2023 by dopeytree Quote Link to comment
Kilrah Posted July 7, 2023 Share Posted July 7, 2023 (edited) For passing through no driver is needed. For Docker use yes, there are different variants of esp32 boards with various serial chips or even native USB... Personally all those I've used have been supported. Edited July 7, 2023 by Kilrah Quote Link to comment
SimonF Posted July 8, 2023 Author Share Posted July 8, 2023 10 hours ago, dopeytree said: Han anyone been able to get a usb esp32 to show up in this manager? I'm not sure if the CP2102drivers are definitely included in unraid. Thanks Does the device show is lsusb? Quote Link to comment
dopeytree Posted July 8, 2023 Share Posted July 8, 2023 Nothing was showing up but I'v found a workaround to add via my mac using esphome as a web app in chrome. Quote Link to comment
SimonF Posted July 8, 2023 Author Share Posted July 8, 2023 3 hours ago, dopeytree said: Nothing was showing up but I'v found a workaround to add via my mac using esphome as a web app in chrome. Just connected an esp32 + usb to serial to my system and both are detected. Jul 8 12:28:24 computenode kernel: usb 1-13.4: new full-speed USB device number 19 using xhci_hcd Jul 8 12:28:24 computenode usb_manager: Info: rc.usb_manager usb_add Prolific_Technology_Inc._USB-Serial_Controller_EPDPb109X16 /dev/bus/usb/001/019 001 019 Jul 8 12:28:24 computenode usb_manager: Info: rc.usb_manager Autoconnect Parent 1-13 Jul 8 12:28:24 computenode usb_manager: Info: rc.usb_manager Autoconnect No Mapping found Prolific_Technology_Inc._USB-Serial_Controller_EPDPb109X16 /dev/bus/usb/001/019 001 019 port 1-13.4 Jul 8 12:28:24 computenode kernel: usbcore: registered new interface driver pl2303 Jul 8 12:28:24 computenode kernel: usbserial: USB Serial support registered for pl2303 Jul 8 12:28:24 computenode kernel: pl2303 1-13.4:1.0: pl2303 converter detected Jul 8 12:28:24 computenode kernel: usb 1-13.4: pl2303 converter now attached to ttyUSB0 Jul 8 12:28:24 computenode usb_manager: Info: rc.usb_manager tty_add Prolific_Technology_Inc._USB-Serial_Controller_EPDPb109X16 /dev/ttyUSB0 Jul 8 12:28:24 computenode usb_manager: Info: rc.usb_manager Processing tty attach Prolific_Technology_Inc._USB-Serial_Controller_EPDPb109X16 /dev/ttyUSB0 Jul 8 12:28:24 computenode usb_manager: Info: rc.usb_manager Autoconnect No Mapping found Prolific_Technology_Inc._USB-Serial_Controller_EPDPb109X16 /dev/ttyUSB0 port Jul 8 12:31:03 computenode kernel: usb 1-13.4: USB disconnect, device number 19 Jul 8 12:31:03 computenode kernel: pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0 Jul 8 12:31:03 computenode kernel: pl2303 1-13.4:1.0: device disconnected Jul 8 12:31:03 computenode usb_manager: Info: rc.usb_manager usb_remove Prolific_Technology_Inc._USB-Serial_Controller_EPDPb109X16 /dev/bus/usb/001/019 001 019 Jul 8 12:31:03 computenode usb_manager: Info: rc.usb_manager Device Match 001/019 vm: 001 019 Jul 8 12:31:03 computenode usb_manager: Info: rc.usb_manager Removed 001/019 vm: nostate 001 019 Jul 8 12:31:12 computenode kernel: usb 1-13.4: new full-speed USB device number 20 using xhci_hcd Jul 8 12:31:12 computenode usb_manager: Info: rc.usb_manager usb_add Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001 /dev/bus/usb/001/020 001 020 Jul 8 12:31:12 computenode usb_manager: Info: rc.usb_manager Autoconnect Parent 1-13 Jul 8 12:31:12 computenode usb_manager: Info: rc.usb_manager Autoconnect No Mapping found Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001 /dev/bus/usb/001/020 001 020 port 1-13.4 Jul 8 12:31:12 computenode kernel: usbcore: registered new interface driver cp210x Jul 8 12:31:12 computenode kernel: usbserial: USB Serial support registered for cp210x Jul 8 12:31:12 computenode kernel: cp210x 1-13.4:1.0: cp210x converter detected Jul 8 12:31:12 computenode kernel: usb 1-13.4: cp210x converter now attached to ttyUSB0 Jul 8 12:31:12 computenode usb_manager: Info: rc.usb_manager tty_add Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001 /dev/ttyUSB0 Jul 8 12:31:12 computenode usb_manager: Info: rc.usb_manager Processing tty attach Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001 /dev/ttyUSB0 Jul 8 12:31:12 computenode usb_manager: Info: rc.usb_manager Autoconnect No Mapping found Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001 /dev/ttyUSB0 port Quote Link to comment
dopeytree Posted July 8, 2023 Share Posted July 8, 2023 Nice - next test do they just show up in home assistant VM? Quote Link to comment
dopeytree Posted July 8, 2023 Share Posted July 8, 2023 (edited) Ok my bad. Dodgy mini usb cable. 3 of 5 are power only. 🤪 it shows up in the manager and in the VM but still doesn't update properly. The working method is use the esphome web app in chrome on mac. Edited July 8, 2023 by dopeytree 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.