SimonF Posted November 18, 2023 Author Share Posted November 18, 2023 8 hours ago, jzhvymetal said: Again no rush......I tried renaming the VM to "Windows_11" and remapping the dongle and sitll does not start. It might be that the device is casecaded with multiple USB hubs? Let me know if there anything else needed for testing. BR Here is my setup Unraid Server -> Active USB cable -> Powered USB Hub -> Powered KVM with switched USB HUB -> Logitech Keyboard/Mouse Dongle Thanks for testing it was nothing to do with a space, I had missed putting the logic in place for port mappings. This should be fixed in 2023.11.18 1 Quote Link to comment
jzhvymetal Posted November 18, 2023 Share Posted November 18, 2023 4 hours ago, SimonF said: Thanks for testing it was nothing to do with a space, I had missed putting the logic in place for port mappings. This should be fixed in 2023.11.18 Thanks it works perfect and as intended. Thanks for the great plugin and adding the additional feature. 1 Quote Link to comment
jzhvymetal Posted November 19, 2023 Share Posted November 19, 2023 (edited) On 11/18/2023 at 1:15 AM, SimonF said: Thanks for testing it was nothing to do with a space, I had missed putting the logic in place for port mappings. This should be fixed in 2023.11.18 Thanks again for the updates......Small request if possible. Everything works if the VM is in stop state but does not work if the VM is paused. Paused state is used when VM sleeps or hibernates. Other than that everything works correctly. Edited November 19, 2023 by jzhvymetal Quote Link to comment
SimonF Posted November 19, 2023 Author Share Posted November 19, 2023 2 hours ago, jzhvymetal said: Thanks again for the updates......Small request if possible. Everything works if the VM is in stop state but does not work if the VM is paused. Paused state is used when VM sleeps or hibernates. Other than that everything works correctly. Will look to add to next release. 1 Quote Link to comment
dopeytree Posted November 23, 2023 Share Posted November 23, 2023 My motherboard has this intel AX210 bluetooth & wifi chip built in. The bluetooth element shows up as usb. the wifi component shows up as a pcie system device. At the moment I'm using as esp32 as bluetooth proxy because I can't get the built in intel chip to work in docker containers. Works in VMs. I seem to have problems when passing it through to docker containers. Do you think I need to pass both through? Trying to get them into home-assistant container. The alternative method is run a lightweight VM and passthrough exclusively to that VM and run some kind of proxy through to home assistant. Quote Link to comment
SimonF Posted November 23, 2023 Author Share Posted November 23, 2023 1 hour ago, dopeytree said: My motherboard has this intel AX210 bluetooth & wifi chip built in. The bluetooth element shows up as usb. the wifi component shows up as a pcie system device. At the moment I'm using as esp32 as bluetooth proxy because I can't get the built in intel chip to work in docker containers. Works in VMs. I seem to have problems when passing it through to docker containers. Do you think I need to pass both through? Trying to get them into home-assistant container. The alternative method is run a lightweight VM and passthrough exclusively to that VM and run some kind of proxy through to home assistant. No the likely issue is the way dockers work compared to vm passthru. The bluetooth will need supporting firmware on the host where as the vm the driver/os is likely to have that support. Do you see any errors in the logs? Nov 23 20:17:02 computenode kernel: Bluetooth: Core ver 2.22 Nov 23 20:17:02 computenode kernel: NET: Registered PF_BLUETOOTH protocol family Nov 23 20:17:02 computenode kernel: Bluetooth: HCI device and connection manager initialized Nov 23 20:17:02 computenode kernel: Bluetooth: HCI socket layer initialized Nov 23 20:17:02 computenode kernel: Bluetooth: L2CAP socket layer initialized Nov 23 20:17:02 computenode kernel: Bluetooth: SCO socket layer initialized Nov 23 20:17:02 computenode kernel: usbcore: registered new interface driver btusb Nov 23 20:17:02 computenode kernel: Bluetooth: hci0: BCM: chip id 63 Nov 23 20:17:02 computenode kernel: Bluetooth: hci0: BCM: features 0x07 Nov 23 20:17:02 computenode kernel: Bluetooth: hci0: BCM20702A Nov 23 20:17:02 computenode kernel: Bluetooth: hci0: BCM20702A1 (001.002.014) build 0000 Nov 23 20:17:02 computenode kernel: Bluetooth: hci0: BCM: firmware Patch file not found, tried: Nov 23 20:17:02 computenode kernel: Bluetooth: hci0: BCM: 'brcm/BCM20702A1-0a5c-21e8.hcd' Nov 23 20:17:02 computenode kernel: Bluetooth: hci0: BCM: 'brcm/BCM-0a5c-21e8.hcd' Quote Link to comment
dopeytree Posted November 23, 2023 Share Posted November 23, 2023 (edited) Am also trying to use a newer 'sonoff v2 E' stick as I going to try and flash it with the multi protocol firmware for matter & thread plus zigbee. It's showing this in the logs Edited November 23, 2023 by dopeytree Quote Link to comment
SimonF Posted November 24, 2023 Author Share Posted November 24, 2023 7 hours ago, dopeytree said: Am also trying to use a newer 'sonoff v2 E' stick as I going to try and flash it with the multi protocol firmware for matter & thread plus zigbee. It's showing this in the logs Into a docker or VM. is docker you can add --device /dev/serial/by-id/xxxxxx or for a vm you may need to add as serial interface rather than the whole usb. Conbee II has this issue also. If using USBM then you need to enable the serial switch. root@computenode:/usr/local/emhttp/state# ls /dev/serial/by-id/ usb-0658_0200-if00@ root@computenode:/usr/local/emhttp/state# ls /dev/serial/by-id/ -l total 0 lrwxrwxrwx 1 root root 13 Nov 23 20:11 usb-0658_0200-if00 -> ../../ttyACM0 1 Quote Link to comment
dopeytree Posted November 27, 2023 Share Posted November 27, 2023 Thanks ok have flashed the new stick to multi protocol. (Silabs Multiprotocol) I now need to pull this GitHub container into unraid to enable the slabs multi protocol - https://github.com/b2un0/silabs-multipan-docker This would be useful to other unraid users too. It basically makes the stick send all traffic to the PC for processing instead of doing on chip and by doing this it turns the stick into an SDR and can receive zigbee + matter + thread. Quote Link to comment
NeoID Posted November 28, 2023 Share Posted November 28, 2023 (edited) Upgraded to Unraid 6.12.5 and got error messages that the "USB Manager Serial Options Addon" couldn't be installed. Trying to install it returns the following error. I assume it's not compatible? plugin: installing: usb_manager_serial_options_addon.plg Executing hook script: pre_plugin_checks plugin: downloading: usb_manager_serial_options_addon.plg ... done Executing hook script: pre_plugin_checks ---------------------Downloading usb serial options, please wait...!------------------------ -----------------This could take some time, please don't close this window!----------------- -----------ERROR - ERROR - ERROR - ERROR - ERROR - ERROR - ERROR - ERROR - ERROR--------------- ----------------------------Can't download usb serial options -------------------------------- plugin: run failed: '/bin/bash' returned 1 Executing hook script: post_plugin_checks Edited November 28, 2023 by NeoID Quote Link to comment
SimonF Posted November 28, 2023 Author Share Posted November 28, 2023 @NeoIDDo you need it as it is for gsm modems etc. I will get it build for the 6.12.5 kernel. Quote Link to comment
SimonF Posted November 28, 2023 Author Share Posted November 28, 2023 1 hour ago, NeoID said: Upgraded to Unraid 6.12.5 and got error messages that the "USB Manager Serial Options Addon" couldn't be installed. Trying to install it returns the following error. I assume it's not compatible? plugin: installing: usb_manager_serial_options_addon.plg Executing hook script: pre_plugin_checks plugin: downloading: usb_manager_serial_options_addon.plg ... done Executing hook script: pre_plugin_checks ---------------------Downloading usb serial options, please wait...!------------------------ -----------------This could take some time, please don't close this window!----------------- -----------ERROR - ERROR - ERROR - ERROR - ERROR - ERROR - ERROR - ERROR - ERROR--------------- ----------------------------Can't download usb serial options -------------------------------- plugin: run failed: '/bin/bash' returned 1 Executing hook script: post_plugin_checks Package has been build now you can reinstall. Sorry for the issue. 1 Quote Link to comment
NeoID Posted November 29, 2023 Share Posted November 29, 2023 (edited) 20 hours ago, SimonF said: Package has been build now you can reinstall. Sorry for the issue. Thanks a ton for the fast reply. It seems to work again now And yes, it seems I needed to install it in order to get my Huawei to work properly with USB modeswtich running in docker. Edited November 29, 2023 by NeoID Quote Link to comment
SimonF Posted November 29, 2023 Author Share Posted November 29, 2023 35 minutes ago, NeoID said: Thanks a ton for the fast reply. It seems to work again now And yes, it seems I needed to install it in order to get my Huawei to work properly with USB modeswtich running in docker. It will be included in 6.13 onwards so no need for the plugin in that version onwards. 1 Quote Link to comment
JonGH Posted December 13, 2023 Share Posted December 13, 2023 On 11/29/2023 at 5:33 PM, NeoID said: Thanks a ton for the fast reply. It seems to work again now And yes, it seems I needed to install it in order to get my Huawei to work properly with USB modeswtich running in docker. How did you use USB modeswitch? I'm trying to connect a USB Huawei modem to create a SMS gateway, but the USB device only shows up as a CD-ROM. My search has led me to believe that I either need to "hack" the modem or use USB modeswitch. I would like to use modeswitch Quote Link to comment
Muffins Posted December 18, 2023 Share Posted December 18, 2023 (edited) I've been trying to troubleshoot an issue where the usb page on the web ui won't load. Has anyone experienced this and/or have a fix for it? I've uninstalled/reinstalled, even went as far as restoring my flashdrive due to the drive being corrupt from a power outage. Any ports already previously configured for VMs still auto connect and work. I just cannot load the webpage to modify/add/remove port and usb device allocations to VMs. Also, the hotpatching in the VM tab still works and the display on the dashboard still shows correct and updating statuses/information Update: I've identified an issue with the config file not updating correctly when I submit changes in the plugin settings. It prints out as such start of file **** DASH = "enabled" USBIP = "enabled" VIRTIOISO = "" usbip_host = "yes" vhci_hcd = "yes" USBIPD = "disabled" HOTPLUG = "enabled" HUBPROC = "disabled" MENU = "enabled" USBIPHF = "manual" USBIPHFI = "*/1" USBIPHFA = "both" USBIPHFE = "yes" USBIPRC = "disabled" USBIPRCI = "*/1" [Config] DASH = "enabled" USBIP = "enabled" VIRTIOISO = "" usbip_host = "yes" vhci_hcd = "yes" USBIPD = "disabled" HOTPLUG = "enabled" HUBPROC = "enabled" MENU = "enabled" USBIPHF = "manual" USBIPHFI = "*/1" USBIPHFA = "both" USBIPHFE = "yes" USBIPRC = "disabled" USBIPRCI = "*/1" **** end of file No matter what the same addtional section is printed to the file. Even when deleting, manually editing the file, etc. Edited December 19, 2023 by Muffins Quote Link to comment
JonGH Posted December 19, 2023 Share Posted December 19, 2023 On 11/29/2023 at 5:33 PM, NeoID said: Thanks a ton for the fast reply. It seems to work again now And yes, it seems I needed to install it in order to get my Huawei to work properly with USB modeswtich running in docker. @NeoID: can you explain how you used USB modeswitch? I'm having the exact same problem (connecting a Huawei modem) 😐 Quote Link to comment
SimonF Posted December 19, 2023 Author Share Posted December 19, 2023 17 hours ago, Muffins said: I've been trying to troubleshoot an issue where the usb page on the web ui won't load. Has anyone experienced this and/or have a fix for it? I've uninstalled/reinstalled, even went as far as restoring my flashdrive due to the drive being corrupt from a power outage. Any ports already previously configured for VMs still auto connect and work. I just cannot load the webpage to modify/add/remove port and usb device allocations to VMs. Also, the hotpatching in the VM tab still works and the display on the dashboard still shows correct and updating statuses/information Update: I've identified an issue with the config file not updating correctly when I submit changes in the plugin settings. It prints out as such start of file **** DASH = "enabled" USBIP = "enabled" VIRTIOISO = "" usbip_host = "yes" vhci_hcd = "yes" USBIPD = "disabled" HOTPLUG = "enabled" HUBPROC = "disabled" MENU = "enabled" USBIPHF = "manual" USBIPHFI = "*/1" USBIPHFA = "both" USBIPHFE = "yes" USBIPRC = "disabled" USBIPRCI = "*/1" [Config] DASH = "enabled" USBIP = "enabled" VIRTIOISO = "" usbip_host = "yes" vhci_hcd = "yes" USBIPD = "disabled" HOTPLUG = "enabled" HUBPROC = "enabled" MENU = "enabled" USBIPHF = "manual" USBIPHFI = "*/1" USBIPHFA = "both" USBIPHFE = "yes" USBIPRC = "disabled" USBIPRCI = "*/1" **** end of file No matter what the same addtional section is printed to the file. Even when deleting, manually editing the file, etc. Thanks for reporting, I have fix this error but should not have stopped the page from loading. The cfg file is copied here any only updates the boot one when something is changed. /tmp/usb_manager/config/usb_manager.cfg Quote Link to comment
Muffins Posted December 22, 2023 Share Posted December 22, 2023 On 12/19/2023 at 10:20 AM, SimonF said: Thanks for reporting, I have fix this error but should not have stopped the page from loading. The cfg file is copied here any only updates the boot one when something is changed. /tmp/usb_manager/config/usb_manager.cfg Thank you for the reply! I've been busy. I went and adjusted the config in the tmp folder as well. Once I go to the plugin settings, the same issue to the config happens again there as well. This issue does not occur on my other server, having issues troubleshooting it. I'll try completely removing the plugin and all cfg files, reboot and reinstall. Maybe something got hung up after I recovered the flashdrive that corrupted Quote Link to comment
SimonF Posted December 22, 2023 Author Share Posted December 22, 2023 6 hours ago, Muffins said: Thank you for the reply! I've been busy. I went and adjusted the config in the tmp folder as well. Once I go to the plugin settings, the same issue to the config happens again there as well. This issue does not occur on my other server, having issues troubleshooting it. I'll try completely removing the plugin and all cfg files, reboot and reinstall. Maybe something got hung up after I recovered the flashdrive that corrupted If you are goto tool-> PHP settings are there any errors in the log? Is VM manager working ok? This are all the places for config files. Copy vm_mappings.cfg if you want to retain a copy of the mappings. Remove the plugin and delete all of the files below(some may not exist) and then reinstall. root@computenode:~# ls /boot/config/plugins/usb_manager packages/ remote_usbip.cfg usb_manager.cfg usb_rmt_connect.cfg v2 vm_mappings.cfg root@computenode:~# ls /tmp/usb_manager/config/ remote_usbip.cfg usb_manager.cfg usb_rmt_connect.cfg vm_mappings.cfg root@computenode:~# ls /usr/local/emhttp/state/usb.ini /usr/local/emhttp/state/usb.ini root@computenode:~# Quote Link to comment
Muffins Posted December 27, 2023 Share Posted December 27, 2023 On 12/22/2023 at 12:14 AM, SimonF said: If you are goto tool-> PHP settings are there any errors in the log? Is VM manager working ok? This are all the places for config files. Copy vm_mappings.cfg if you want to retain a copy of the mappings. Remove the plugin and delete all of the files below(some may not exist) and then reinstall. root@computenode:~# ls /boot/config/plugins/usb_manager packages/ remote_usbip.cfg usb_manager.cfg usb_rmt_connect.cfg v2 vm_mappings.cfg root@computenode:~# ls /tmp/usb_manager/config/ remote_usbip.cfg usb_manager.cfg usb_rmt_connect.cfg vm_mappings.cfg root@computenode:~# ls /usr/local/emhttp/state/usb.ini /usr/local/emhttp/state/usb.ini root@computenode:~# I have went a step further now after removing the emhttp usb.ini file. Right now I'm just combing through the config errors that showed up. I'll update following trying to comb through myself. Thank you so much! Quote Link to comment
SimonF Posted December 27, 2023 Author Share Posted December 27, 2023 If you have enabled this will stop the page loading correctly. But those messages are warnings so should not stop the page from loading. Quote Link to comment
Muffins Posted December 29, 2023 Share Posted December 29, 2023 On 12/27/2023 at 1:44 AM, SimonF said: If you have enabled this will stop the page loading correctly. But those messages are warnings so should not stop the page from loading. The selection has not made a difference in loading. I will share the php error when I have time to. Thank you again! Quote Link to comment
JonGH Posted December 29, 2023 Share Posted December 29, 2023 On 11/29/2023 at 5:33 PM, NeoID said: Thanks a ton for the fast reply. It seems to work again now And yes, it seems I needed to install it in order to get my Huawei to work properly with USB modeswtich running in docker. Please 🙂 Could somebody help me with directions on how to get this working. I have read the entire thread and searched the web, but I still can't figure out what to do 😞 I got it working on my Linux Mint laptop, but I cannot get my Unraid box to discover my Huawei USB stick (that I have tried flashing to work in "stick mode") as a modem. Nothing shows up in /dev/ttyUSB*, just a stupid CD-ROM device and a TF Card Storage - no modem When I plug the same USB modem into my Linux Mint laptop, it connects as a ttyUSB0 modem. Please provide me with some clues on how to continue 🙂 TIA /Jon [177973.037813] usb 3-6: new high-speed USB device number 9 using xhci_hcd [177973.275094] usb-storage 3-6:1.0: USB Mass Storage device detected [177973.275350] scsi host5: usb-storage 3-6:1.0 [177974.320796] scsi 5:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 [177974.321184] sr 5:0:0:0: Power-on or device reset occurred [177974.322018] sr 5:0:0:0: [sr0] scsi-1 drive [177974.322531] sr 5:0:0:0: Attached scsi CD-ROM sr0 [177974.322590] sr 5:0:0:0: Attached scsi generic sg4 type 5 [177974.336061] scsi 5:0:0:1: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2 [177974.336145] sd 5:0:0:1: Attached scsi generic sg5 type 0 [177974.337180] sd 5:0:0:1: Power-on or device reset occurred [177974.337577] sd 5:0:0:1: [sde] Media removed, stopped polling [177974.337725] sd 5:0:0:1: [sde] Attached SCSI removable disk [177976.380307] sr 5:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=DRIVER_OK cmd_age=0s [177976.380311] sr 5:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] [177976.380312] sr 5:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 [177976.380313] sr 5:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8d fc 00 00 02 00 [177976.380314] critical medium error, dev sr0, sector 145392 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2 [177976.494971] sr 5:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=DRIVER_OK cmd_age=0s [177976.494975] sr 5:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] [177976.494976] sr 5:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 [177976.494977] sr 5:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8c 80 00 00 3c 00 [177976.494978] critical medium error, dev sr0, sector 143872 op 0x0:(READ) flags 0x84700 phys_seg 16 prio class 2 [177976.501695] sr 5:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=DRIVER_OK cmd_age=0s [177976.501698] sr 5:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] [177976.501699] sr 5:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 [177976.501700] sr 5:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8c bc 00 00 04 00 [177976.501701] critical medium error, dev sr0, sector 144112 op 0x0:(READ) flags 0x80700 phys_seg 2 prio class 2 [177976.509105] sr 5:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=DRIVER_OK cmd_age=0s [177976.509110] sr 5:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] [177976.509110] sr 5:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 [177976.509112] sr 5:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8c 80 00 00 02 00 [177976.509112] critical medium error, dev sr0, sector 143872 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 [177976.509117] Buffer I/O error on dev sr0, logical block 17984, async page read [177976.516427] sr 5:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=DRIVER_OK cmd_age=0s [177976.516430] sr 5:0:0:0: [sr0] tag#0 Sense Key : 0x3 [current] [177976.516431] sr 5:0:0:0: [sr0] tag#0 ASC=0x11 ASCQ=0x0 [177976.516432] sr 5:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 00 8d fa 00 00 02 00 [177976.516433] critical medium error, dev sr0, sector 145384 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2 Quote Link to comment
BurntOC Posted January 8 Share Posted January 8 Greetings, all. I have a Home Assistant VM running and I've been passing my Z-wave and Zigbee dongles to it successfully for a long time. Now Zigbee2MQTT is getting twitchy, which appears to be an open issue with the newer versions and my hardware, but I am trying to minimize any hiccups. As passing both dongles seem to work whether or not I map them both as ports, both as devices, or one of each (even though they both show as CP210N UART Bridges in the USB Manager mapping, my question is this: Is one of those configurations preferable over the others? Even when I pass as port I set the devices /dev/serial/by-id in Home Assistant, so it doesn't seem to matter but I just wanted to double-check. 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.