-
Notifications
You must be signed in to change notification settings - Fork 82
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
/dev/ttyUSB0 is not there anymore (nothing else changed) #121
Comments
If it helps, here's how I installed the modules: #!/bin/bash
set -eo pipefail
echo "Make sure you runt his script as root or with sudo"
echo "Downloading modules"
cd /lib/modules || exit 1
wget 'https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/geminilake/dsm-7.2/ch341.ko'
wget 'https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/geminilake/dsm-7.2/cp210x.ko'
wget 'https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/geminilake/dsm-7.2/pl2303.ko'
wget 'https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/geminilake/dsm-7.2/rndis_host.ko'
wget 'https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/geminilake/dsm-7.2/ti_usb_3410_5052.ko'
echo "Downloading script to start usb modules"
cd /usr/local/etc/rc.d || exit 1
wget 'https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/usb-serial-drivers.sh'
chmod +x /usr/local/etc/rc.d/usb-serial-drivers.sh
echo "Starting usb modules"
/usr/local/etc/rc.d/usb-serial-drivers.sh start
exit 0 |
Can you check which modules are loaded?
|
Uuugh, I just ran the command again and now it's there?!? I didn't change a thing, except rebooting Synology 🤯. |
Oh! Just happened again! So, after the restart it was there, and I was playing with zigbee2mqtt addon via its Addon UI, inside home assistant, inside a VM, inside synology. Here's the output of
The reason I'm messing with zigbee2mqtt in the first place was that it stopped working out of the blue, apparently a known issue to be fixed on the next version. Do you think it could be either z2m, HA or Synology crashing the usb module somehow? Any other ideas? |
I have no idea, but I would suspect a hardware issue, either with your dongle or the cable. When it happens, are any relevant messages shown in the output of |
Oof, that's rough. Yeah, here it, grepped for "usb":
|
I think these two suggest that as far as the OS is concerned, the dongle has been disconnected physically:
So might be worthwhile to check if another cable (or even directly plugging it into the NAS, even though that's usually not a good idea due to interference issues) might solve it. |
Hmmm but in that case, if it got physically disconnected, shouldn't it NOT
appear on the lsusb command's output?
|
Fair point, but it doesn't change the fact that this looks like a hardware issue. Besides that, I only compile the modules and have no idea how they actually work or how to solve issues with them 😅 |
I'm stuck at the very same after installing DSM7.2.1-69057 Update 4 on my DS220+ (which was working totally fine with the Sonoff Zigbee 3.0 Stick. I followed all those steps and several variantions I found on the net, but no success: there is no /dev/ttyUSB0 any more. |
@mager33 what is the output of |
USBSERIAL is available
There is a port assigned, after 2x reboot (once with, once without the stick plugged in)
I did sudo chmod 777 /dev/ttyUSB0 and it worked again. |
@mager33 is the dongle connected through an extension lead? If not, it should be 😊 |
@robertklep you’re often mentioning to use the extension lead. So I bought AXAGON HUE-SA7BP 7-Port USB 3.0 CHARGING hub. My goal is to connect Jablotron 100+ and Home Assistant (running in Container on Synology 920+, version: DSM 7.2.1-69057 Update 5). I tried and read many topics about the issue - unfortunately I can’t still see
It seems that all drivers are loaded properly, the only weird thing is: |
@1uba I don't see any device connected in the output of Even if there's a device connected that isn't supported by any of the drivers, it should still be visible. |
Thank you for your quick reply @robertklep
|
@1uba it looks like it's presenting as two separate devices: a USB HID device (so it may act as a keyboard or a mouse or something similar) and a USB storage device (the drivers I provide only support USB serial devices). Since you're looking to add support for it to Home Assistant, take a look at this integration. |
I was originally planning to start with HACS Jablotron 100+ integration. Both - even the HASS-JablotronSystem integration are supposed to be configured with the serial port. It’s mentioned in their documentatoin: "Note: Because my serial cable presents as a HID device there format is /dev/hidraw[x], others that present as serial may be at /dev/ttyUSB0 or similar."
|
|
Type of device
Sonoff Dongle
DSM 7.2
Linux 4.4.302+ #69057 SMP Fri Jan 12 17:02:28 CST 2024 x86_64 GNU/Linux synology_geminilake_220+
Have the modules loaded?
Yes. Or I think they are. When i manually invoke
sudo insmod /lib/modules/usbserial.ko
, it returns:insmod: ERROR: could not insert module /lib/modules/usbserial.ko: File exists
. Should it have returned nothing at all?Output of lsusb
Note: it appears there isn't a device assigned as expected. It used to show
/dev/ttyUSB0
Other info:
I didn't change the dongle nor the cable it is connected to synology. Everything was working until my zigbee devices stopped working last night, and while investigating why i eventually saw
/dev/ttyUSB0
wasn't there as it used to. I've been trying to get it back there to no avail.Contents of my /usr/local/etc/rc.d/ (does it matter specific owners/groups? That user is admin. before it was root and it wasn't working too)
The text was updated successfully, but these errors were encountered: