-
Notifications
You must be signed in to change notification settings - Fork 91
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."
|
|
Facing the same issue after upgrading to DSM 7.2.2-72806 yesterday.
is giving me the following output:
Any ideas what could have happend? |
@ElJaeger the modules aren't loaded. Try loading them manually to see if any errors are thrown:
|
sudo insmod /lib/modules/cdc-acm.ko sudo insmod /lib/modules/cp210x.ko sudo insmod /lib/modules/ch341.ko sudo insmod /lib/modules/pl2303.ko |
@ElJaeger are you sure you downloaded the files correctly? The error "Invalid module format" suggests otherwise. |
I just repeated the steps in your .readme. After that, I once verified that all 4 files are located in /lib/modules. But still, I get this error. I'm working on a Synology 220+ which should use Geminilake inside, so I downloaded the files like this: wget 'https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/geminilake/dsm-7.1/cp210x.ko' |
@ElJaeger since you're on DSM 7.2, you should try the 7.2 modules (you're downloading the 7.1 module now). |
Oops, I did not see that you are offering a 7.2 version... Problem solved, thank you for your support! |
@robertklep Similar issue after latest DSM-Update (DSM 7.2.2-72806 Update 1) which should fix some security issues: sudo insmod /lib/modules/cdc-acm.ko sudo insmod /lib/modules/cp210x.ko sudo insmod /lib/modules/ch341.ko sudo insmod /lib/modules/pl2303.ko
gives me the following [ 1422.128535] cp210x: module verification failed: signature and/or required key missing - tainting kernel Do you know if this is an issue on my system or are there some missing dependencies in your drivers? |
same error here on 620slim after DSM 7.2.2-72806 Update 1! |
I noticed that after updating the DSM version the USBSerial package was missing (or automatically uninstalled) but I was able to install it again without problems. https://synocommunity.com/package/synokernel-usbserial |
I think these errors mean the |
Seems like it's not missing on my side @excalibur25 @robertklep Any suggestions how to solve it? |
@ElJaeger load it:
Followed by the other modules you require. |
Thank you. Works again! :) |
I have something similar as well after an update. I build a script (with my two left hands). I do not have that much expertise on this one, but, maybe you guys can look at it. What I want to do after a reboot (most of the time it is after an update), I would like to ins mod the serial drivers automatically.
Do you have any. ideas how to make this more future proof? |
for me it is not working when trying to load the module. insmod: ERROR: could not insert module /lib/modules/usbserial.ko: File exists |
@Arie6414 that's the wrong URL for downloading the modules. Also, you can try the instructions provided in the README on how to load the modules at boot time. |
@excalibur25 it's loaded but you're still getting "Unknown symbol usb_serial_*" errors? |
oh ah, explains a lot. Just to be curious... What is the difference between raw and blob ? |
I checked again. There are no "Unknown symbol usb_serial_*" errors in my log file anymore but the ttyusb0 mapping is completly missing. If I try to access ttyusb0 I get a "no such file or directory" error EDIT: After now finally installing the modules again it worked. I hope this will persist after rebooting the NAS |
@Arie6414 "blob" is the HTML page that offers to download the (raw) |
Aah that explains a lot😅 thnx… still in the learning mode
Met vriendelijke groet,
Arjen van de Belt
Verstuurd vanaf mijn IPhone
Op 16 nov 2024 om 07:30 heeft Robert Klep ***@***.***> het volgende geschreven:
@Arie6414<https://github.com/Arie6414> "blob" is the HTML page that offers to download the (raw) .ko file. So instead of downloading the module, it downloads the downloadpage for the module 😄
—
Reply to this email directly, view it on GitHub<#121 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A65HXV6TDQEH3QLYA4BC4FD2A3Q67AVCNFSM6AAAAABQ556N62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQGQ2DSMRVGA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi robert & team i tried my best to follow the most recent procedure, have ingested the usb drivers for a syno918+ (appollolake) and the script to start, all good BUT still no /dev/ttyUSB not ACM available. heres what i have with the lsusb -cui cmd 3 options any idea/comment/clue is really welcomed :) thanks |
@h9seb the drivers in this repository aren't meant for anything else but serial-to-USB dongles, so WiFi dongles aren't supported at all. I don't know whether DSM will support them out-of-the-box, but if it does, you should look at Control Panel > Network > Network Interface. |
ah shue! thanks for your feedback robert. nope our beloved DSM doesn't support those out of the box at all unfortunatly. you think it could be feasible to tweak this ? not sure if we re lacking the driver here or purely the possibility to have a Wifi interface on the DSM os. |
@h9seb DSM runs Linux so with the right drivers it should work. Question is: are those drivers available? I don't know 🙁 An alternative could be to buy a cheap WiFi access point that can act as a repeater in your network. Such access points typically have an Ethernet port, so you would connect the NAS over Ethernet to the repeater (short cable), then add the repeater to your wireless network. |
sounds like a plan! will test if possible to add this driver first then, after failing as i will, i wil go to the WIFI ap meshed! |
@h9seb sorry, I have no idea if there even are WiFi driver packages available for DSM 🙁 |
it used to be supported in DSM 6.2 : https://www.synology.com/fr-fr/compatibility?search_by=category&category=usb_wifi_dongles&p=2 |
probably a good reason why they did this, but its a shame |
@h9seb with DSM 7, Synology removed a lot of USB device support (one of the reasons why I started this repository). |
and this initiative rocks. if you want to drive the wifi support on DSM7, i m all ears! |
@h9seb sorry, won't be me, I moved away from Synology some time ago already. I still have one that serves as a simple storage server, but everything else is now running on a Ubuntu server. |
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: