HASSOS in Hyper-V - Is it possible to install USB Rediector or something similar for USB support?

Haha ok, thanks a lot Dalong… I missed that part, despite so much readings and searches on the web.

This sounds so logical. I was very surprised not finding any free solution in the HA world.

I hope (many) others will find your post here and spare 50€ (one time fee, which is correct for the VH solution, unlike other where you ca pay a lot every year or so).

Thanks again,

Michel

You are welcome Michelob1.

I was also looking for the solution (when realize Hyper-V does not support USB path-through). I read that usbip is built into the linux kernel from 3.17 and for a while I only used the usbip client in Linux (and usbip server on windows). But then I saw quite a few people talking about using RPI as the usbip server and thought I might give it a try (since I remembered linux support both client and server). I have a old RPI 3B+ laying around and initially there was binding issues (after enable usbip-host). It turned out to be mismatch between kernel and usbip tools. After I did apt-get update & upgrade it finally binds and works.

Unfortunately there is no true free solution on Windows platform. This is niche market and vendors don’t mind charging a hefty price. Being a node locked license means I cannot easily migrate to a different computer, plus I almost have no use of usbip software out of this particular scenario. The closest I could find is open source driver that requires one to build and self-sign to use on Windows in Test Mode. Currently I am going through this route. If I finally decide to migrate everything to HA platform (I am currently on Hubitat and have 15+ Zwave, 10+ Zigbee, 15+ Wifi devices and handful of Lutron Pico remotes) I might spend extra $50 for VirtualHere solution. But for now I am fine with the test mode driver.

@aceindy Does the netburner still works?
I just got the Sonoff Zigbee dongle. Firmware updated.
My setup is HA 2022.6.6 running HASSOS 8.2 in a hyper-v VM. Server OS is WS2019 where I have the dongle installed. Running Z2M locally on the WS2019 with NPM, it works using the COM port, so the dongle works.
But running either locally on the server or as addon in HA using the netburner adress, it fails.
From Log:

 2022-06-20T17:05:00.868Z zigbee-herdsman:adapter:zStack:znp:log Opening TCP socket with 192.168.0.250:5656
 2022-06-20T17:05:00.881Z zigbee-herdsman:adapter:zStack:znp:log Socket connected
 2022-06-20T17:05:00.881Z zigbee-herdsman:adapter:zStack:znp:log Socket ready
 2022-06-20T17:05:00.882Z zigbee-herdsman:adapter:zStack:znp:log Writing CC2530/CC2531 skip bootloader payload
 2022-06-20T17:05:00.882Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239]
 2022-06-20T17:05:01.884Z zigbee-herdsman:adapter:zStack:znp:log Skip bootloader for CC2652/CC1352
 2022-06-20T17:05:01.885Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
 2022-06-20T17:05:01.886Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
 2022-06-20T17:05:07.888Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
 2022-06-20T17:05:07.889Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
 2022-06-20T17:05:13.895Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
 2022-06-20T17:05:13.896Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
 Zigbee2MQTT:error 2022-06-20 19:05:19: Error while starting zigbee-herdsman
 Zigbee2MQTT:error 2022-06-20 19:05:19: Failed to start zigbee
 Zigbee2MQTT:error 2022-06-20 19:05:19: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
 Zigbee2MQTT:error 2022-06-20 19:05:19: Exiting...
 Zigbee2MQTT:error 2022-06-20 19:05:19: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
     at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
     at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
     at Zigbee.start (/app/lib/zigbee.ts:58:27)
     at Controller.start (/app/lib/controller.ts:101:27)
     at start (/app/index.js:109:5)

From a client i’m able to telnet to the IP of the the netburner comport.

Config:

 data_path: /config/zigbee2mqtt
 socat:
   enabled: false
   master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
   slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
   options: '-d -d'
   log: false
 mqtt:
   base_topic: zigbee2mqtt
   server: mqtt://homeassistant
   user: user
   password: password
 serial:
   port: tcp://192.168.0.250:5656
 zigbee_herdsman_debug: true

Also to add: i can see in netburner that there is an active connection.
Any idea?

Thanks

Not sure if it helps, but i just switched to a ConBeeII stick, and it does not support serial2tcp, so i abandoned HyperV and use VMware nowadays….

For those of you wanting to use the NetBurner at another baudrate; it is possible to change the baudrate by changing the registry at

[HKEY_LOCAL_MACHINE\SOFTWARE\ELTIMA Software\SEC\Config]
<settings>38400,N,8,1</settings>

(after which you need to restart the eltima service

Can anyone help me with the config for this - got HASSOS in hyperv and netburner on the host machine with skyconnect plugged in. I’ve opened the firewall ports but can’t get a connect in the ZHA config. It could very well be that i have it all wrong so though i would ask for a pointer. Screengrabs below - i have created in and outbound firewall rules. 192.168.1.164 is the IP of the W11 machine which is running netburner (and on which HA is running in hyperv)




Can you test with Telnet if Netburner is working correct ?
Telnet 192.168.1.164 5001
(if the screen clears, it means the port is open and listening)

Anything in the logs of ZHA?

FYI, I used to use this with Zigbee2MQTT, but according the docs, it should also work with ZHA

Hmm no - but as you can see i also cannot ping the host machine from another PC on the network so something is up there. The second screengrab is the IPconfig of the machine with netburner on; clearly i need to look into that first. Will do that and report back.


Ok, temporarily i can now ping the host (firewall issue, works when turned off). No response on telnet though - is that my Netburner config that will be causing that? I tried it on the host machine (pinging itself, then the telnet) - ping was fine, same error for telnet.

At least it should not give that error, it will look something like this:
image
(from a previous post)

Did you check if the ‘Eltima’ service is running on W11?

I don’t have Eltima - maybe i have misunderstood how it works? I though Netburner (or HW-VSP3) would take the input from the skyconnect and transmit it over the network in a format (TCP) that ZHA could then pick up. Have i got that wrong?

Netburner uses Eltima :wink: hence is the service called ‘eltima’ :grin:

Now where is that ‘embarrassed face’ emoji?!
I checked and it is there:

It’s easier to check under ‘Services’ :stuck_out_tongue:

Next is to check if the port is open and listening…
You can use TCPView for that :wink:

OK, i think we are there and listening? Blue highlight mine in case its not obvious!

Looks like it…
Still not able to connect with telnet ?

Nope - same story! Do we think that, in theory, it should work then?
Edit - firewall is off on the host to try and eliminate blocks there.
Edit 2 - could there be a router level ‘thing’ blocking the port?

ah…you’re command is wrong…
it is 192.168.1.164 5001
(no : )

Ok, more embarrassed emojis :joy: - telnet confirmed, i got the blinking cursor.

Well, that means on Netburner side everything is ok…

Back to HA…anything in ZHA logs?