-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AEOTEC USB Zwave module not creating /dev/ttyACM0 #3027
Comments
Do you get the same lack of results in the USB2 and USB3 ports? |
Yes. I tried both usb2 and usb3 and I'm using a genuine pi 4 for power supply. |
Are there any relevant messages in the kernel log? Unplug the device, |
Hmm - i tried a fresh install of buster and got this: [ 398.804524] usb 1-1.1: new full-speed USB device number 4 using xhci_hcd and i see /dev/ttyACM0 something is odd about my original install, when i try it on that install i get nothing appearing. Let me reinstall HA over the weekend and i'll report back. Thanks! |
"HA"? |
HA - Home Assistant. It uses zwave via the serial port /dev/ttyACM0 |
ok so.... i tried my "fresh" install and i can't recreate that message above. Seems very temperamental. I wonder if its power related. |
Hmm - it could be power related, but I would expect some kind of response to a device insertion, not nothing. |
Hmm - I tried the MicroSD card which wouldnt work on the Pi4 on my Pi3B+ and works flawlessly, plugged in + out + in + out.... 81.081896] usb 1-1.3: new full-speed USB device number 6 using dwc_otg |
I thought I would check with aeotec as to the certification of the pi4 am I mentioned to check if a module is loaded, they said: We have tested using RPi V3 in this case, but we have not yet tested RPi 4. One item to absolutely make sure is that the cdc acm module is installed from the Linux kernel which is required to actuate as a ttyACM0 device. I'll look into acquiring a RPi V4 to see if i can find any issues here. Cheers,
|
The module is in Raspbian images - see your kernel logs above. Can you try connecting via a powered hub? |
I currently only have the official raspberry pi 4 power supply, can you recommend a powered hub? I'll buy one. Thanks! |
I wasn't expecting you to buy one, especially since I don't know if power is the cause of the problem, but the general rule of thumb round here is that Amazon Basics cables and adapters are safe bets. |
I had exactly same issue on RPi 3B after upgrade kernel to version raspberrypi-kernel_1.20181112-1 (November 4). Downgrade kernel fixed the issue. I haven't updated the kernel since then. |
interesting but but i am guessing i can't do that with the PI4? |
I think not. |
so... I found something interesting. If i connect it to one of the USB 2 ports (i tried all four actually) i get nothing in the dmesg logs. but then when i connect a four port hub (that could be powered - but isnt) i see these: [ 1269.486927] usb 1-1.4: new high-speed USB device number 15 using xhci_hcd then when i connect the Aeotec USB stick to one of the back two USB ports I then see: [ 1329.418219] usb 1-1.4.1.1: new full-speed USB device number 17 using xhci_hcd It now works 100% of the time. odd So your suggestion of using a hub @pelwell you might be onto something. |
I think the Pi budget will stretch to one of these - I'll get one on order. |
ok cool - I'm sure its something simple but from what i've read about this stick a few people have reported that updated BIOS on NUC PCs has fixed similar issues so maybe this is firmware related. i remember seeing something similat with the pi2s back in the day and @ghollingworth i think helped fix it - some kind of timing issue with usb (I sent my hub in and they put it into some kind of usb tool. anyway - i'm up and running with ZWave, Home Assistant and a super cool Pi4 now 💯 :) |
By the way I happend to notice this article which talked about new firmware changes to the USB chip, could this issue be fixed as part of those changes?.... https://www.tomshardware.com/news/raspberry-pi-4-firmware-update-tested,39791.html |
I'm expecting the ZWave module to arrive any day now so I'll be able to try the new firmware, but I wouldn't expect it to fix this issue. Plus, the power saving features are causing problems with some devices. However, that mainly seems to affect high throughput to SSDs, etc., and it is possible to revert to the original version, so feel free to try for yourself: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=243500&p=1490467#p1490467 |
I can confirm the new firmware doesn't help the issue. Mine exhibits the same behaviour as above, tho don't have a hub to test. |
Looking at some USB analyzer traces, the zwave module doesn't even signal a USB attach event. On a VLI expansion card in a PC, I see an attach event but spurious SE1s (illegal bus states) which makes me think that there's some oddness in the way the device is pulling D+/D-. Will require probing with a scope to find out what is happening. |
Not sure if its relevant but on the rpi3 my stick exhibits no issue. |
This is the USB hub that when I connect it to the pi 4 and the zwave USB device everything works fine: https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.ebay.co.uk%2Fulk%2Fitm%2F283514195231 |
|
There is something peculiar electrically about the Zwave dongle. When you plug it into the Pi 4 (through a USB analyser) the Pi tries to talk USB3 to it, and gets no response because the device is only USB2-capable. This shouldn't happen. Repeating the same test with a PC USB3 port as host you see the same USB3 chatter to start with, then after a few hundred milliseconds it falls back to USB3. This suggests that the dongle has the electrical signature of a USB3 device and the VIA USB3 host controller doesn't get past that to try USB2. (I'm not sure that behaviour is required by the USB3 spec but it seems sensible) |
|
|
Wouldn't that fit with those that have used a hub in between, if it's a USB2 hub, that it will not get confused, and just go to USB2? |
My experience & Fix: Sabrent 4 Port Portable USB 2.0 Hub (9.5" Cable) for Ultra Book, MacBook Air, Windows 8 Tablet PC (HB-MCRM) WORKS with my USB3.0 External SSD drive in ALL ports (blue=usb3, black=usb2) Onvian 3 Port USB Hub High Speed Splitter Plug and Play Bus Powered works if its the ONLY USB device. It does NOT work with my USB3.0 External SSD drive! |
Has anyone tried the pi4B? |
Everybody on this thread, I hope. |
oops. thought the B just came out |
On rpi4 work only with a hub between... |
@kelnos : did you find a way to get ride of the Z-stick disconnections? |
@rom1lenoir yes, I ended up getting this hub, which fixed the issue: https://smile.amazon.com/gp/product/B00L2442H0/ |
I am running Domoticz on the Pi4b. |
I can't agree more. All my Pi's are on a DinRplate on a DINrail. Putting the Aeotec stick on a 180 degree USB adaptor it all fits nicely in a cabinet. |
All the posts in the world won't stop the fault lying with the Aeotec dongle...it's simply not USB compliant. Yes, it does work on some other devices - more by luck than anything else judging by my reading on this entire thread. |
As @P33M has said clearly, the Aeotec stick is non-compliant hardware. The fact that it works in some other host doesn't make it correct. Using a USB hub as an intermediary is a workaround, but nothing will fix the problem until Aeotec change their hardware. |
As Github has helpfully collapsed the comment thread, including my comment immediately before I closed the issue where I detail what's wrong with the device, I'm posting it again:
[0] https://github.com/raspberrypi/linux/files/3634328/Z-Stick.RPi4.Electrical.Test.Results.pdf |
Any DIY solutions that one with soldering iron could attempt? |
On the gen 5 dongle, R33 is the pull-up from D+ to VBus. I tried removing it but apparently the MCU doesn't signal attach by itself. You could try soldering a replacement 1.5k resistor from the outermost pad of R33 to pin 8 of the on-board EEPROM as its vcc is 3.3v, but I don't recommend it. |
just moved to PI4 and had this issue, then found this thread. Quick question - It it the case I should be able to plug in the Zwave Stick (gen 5) to the PI4 and then immediately on a terminal look for it appearing using say "df"? So whilst nothing changes for me now when I run "df" and plug it in then run "df", if I find a USB hub that works around the issue I should be able to tell immediately if it works using this method? thanks |
Try |
|
A better command to use is So if you're trying to write a script, you would do something like this: |
got it (/dev/ttyACM0) thanks |
hi, one question... i read all but i understand not the problem, but i´m lucky to see i´m not the only one. i tried to migrate my fhem to pi4 last year and it ends in so many trouble, that i throw this project away... now i see, it is a bug... but which one... a bug from the stick or rp4? i heard this bug is fixed in a newer revision from rp4? thanks for feedback |
We have made no changes, this is a fault in the Aeotec module itself. They need to fix their device. |
From the looks of their tech spec ( https://aeotec.freshdesk.com/support/solutions/articles/6000167094-z-stick-gen5-technical-specifications- ) there probably are sticks around that might be changed.
|
Thanks - that's probably as close as we'll get to an admission from them. |
For anyone else looking into this problem, I contacted Aeotec based on the link posted above by @kmpm about different hardware revisions of the product. They told me that they do indeed have a new version that supports the Raspberry Pi 4. If you order it from Amazon or somewhere else you can’t be sure which revision you’re receiving, but you can order the latest one with Raspberry Pi 4 support directly from their online store here: https://popp.to/products/aeotec-z-stick-gen5-zw090 The product description notes:
|
Sorry for the late reply why but yes this is great news that there is a newer revision of the hardware which supports the pi 4. I also inquired about an upgrade procedure and involved a backup and restore of the existing operational on the same stick I was provided with the following steps: Finally I'll be able to get rid of my old USB hub! |
I just found this post on how to make a hardware mod. Basically re-routing R33 to get voltage from VCC so as you said. |
I have, and it works perfectly. It's found instantly after doing the mod, and it's 100% stable. However, the resistor is extremely small, so the soldering is difficult. I managed to desolder it, but when I tried to pick it up with some tweezers, being so small, it "slipped" and flew away. It was simply impossible to find once you have lost sight of it. I would recommend anyone that wants to try the fix to get hold of a 1.5kΩ resistor in "normal size" first, so that they have that as a backup when the tiny one disappears. I had to improvise and use what I could find, so I ended up with 3x 390Ω and 1x 330Ω resistor in soldered in series. Not pretty, but it works great. |
When i connect one of these:
https://www.amazon.co.uk/Aeotec-Z-Stick-Z-Wave-create-gateway/dp/B00YETCNOE
I normally get this device:
/dev/ttyACM0
which is used for serial comms to zwave home automation via home assistant.
Connecting it to the Pi4 + Buster i see no such device, infact when i connect via lsusb i see no change before / after connecting.
Any ideas?
The text was updated successfully, but these errors were encountered: