Skip to content
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

Synology Docker issue #59

Open
mantis4 opened this issue Dec 19, 2021 · 7 comments
Open

Synology Docker issue #59

mantis4 opened this issue Dec 19, 2021 · 7 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@mantis4
Copy link

mantis4 commented Dec 19, 2021

Hello.

I am trying to launch a container in Docker on Synology and I get an error:
rtlsdr: no supported devices found

But on a laptop with Debian, the container starts correctly.

@dervogt
Copy link

dervogt commented Dec 23, 2021

You probably did not share the device with your docker container, this needs to be explicitly done or the container is unable to "see" the rtlssdr stick in its own little docker bubble.

To check you could run the "lsusb" command on your synology to see if the rtlsdr stick has been recognized properly and find out about the device path:
image

when you got the device path, you can add this to the docker run command, taken from mike's example on the front page of this github:
--device /dev/bus/usb/USB_BUS_NUMBER/USB_DEVICE_NUMBER:/dev/bus/usb/USB_BUS_NUMBER/USB_DEVICE_NUMBER \

Where USB_BUS_NUMBER can be taken from the lsusb command from the Bus NNN part, the USB_BUS_DEVICE_NUMBER should be replaced with the number listed after the device part, before the double quotation

This is an example from my portainer/docker environment:

image

ON the command line / docker run command, this then would look like this:
'--device /dev/bus/usb/001/006:/dev/bus/usb/001/006'

if you got these basics right, then you should have a working container with readsb connecting to the rtlsdr and see your first planes being reported.

@mikenye mikenye self-assigned this Jan 18, 2022
@mikenye
Copy link
Member

mikenye commented Jan 18, 2022

Thanks @dervogt, this is the correct answer. :)

@Banjer
Copy link

Banjer commented Mar 2, 2022

Synology removed a large part of USB support in DSM 7, so if you are running that you will need to enable that support again.
https://mariushosting.com/synology-how-to-add-usb-support-on-dsm-7/#:~:text=Synology%20DSM%207%20does%20not,be%20disconnected%20after%20the%20update.

@Bimnomercy
Copy link

Bimnomercy commented Apr 23, 2022

I've got the same problem. Here is lsusb result :

|__usb1 1d6b:0002:0404 09 2.00 480MBit/s 0mA 1IF (Linux 4.4.180+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__1-1 1a40:0101:0111 09 2.00 480MBit/s 100mA 1IF ( ffffffd6ffffffa3ffffffebffffffcb) hub
|__1-1.1 0463:ffff:0100 00 1.10 1.5MBit/s 20mA 1IF (EATON Ellipse PRO P354J21TJ7)
|__1-1.3 0403:6001:0600 00 2.00 12MBit/s 90mA 1IF (RFXCOM RFXtrx433 A12IS8Y7)
|__1-1.4 0bda:2838:0100 00 2.00 480MBit/s 500mA 2IFs (Realtek RTL2838UHIDIR 00000001)
|__1-4 f400:f400:0100 00 2.00 480MBit/s 200mA 1IF (Synology DiskStation 7F008AE9B73A7D58)
|__usb2 1d6b:0003:0404 09 3.00 5000MBit/s 0mA 1IF (Linux 4.4.180+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub

I'm on Synology DSM 7 and the path to /dev/bus/usb is reachable from the container.

The first time I plugged the receiver, the path was /dev/bus/usb/001/012, if I unplugged and plugg agin, tha path change, /dev/bus/usb/001/014 actually.

In all case the parameter device /dev/bus/usb/001/014:/dev/bus/usb/001/014 do not work and I everytime got rtlsdr: no supported devices found error
parametres
log
terminal
.

@Bimnomercy
Copy link

@florian987
Copy link

Same problem here, I tried to :

  • add bus number and device number in the docker compose file like @dervogt suggested
  • install USB serial drivers like @Banjer suggested
  • cross-compile dvb-usb-rtl28xxu.ko, because it is the driver used when testing on my laptop (working fine)

But I cannot get this USB RTL2838 DVB-T working on my synology nas (ds218+ on apollolake)

Any help, hint, anything, greatly appreciated on how to debug / make it working !

Thanks a lot !

@mikenye mikenye added the help wanted Extra attention is needed label Jan 23, 2023
@mikenye
Copy link
Member

mikenye commented Jan 23, 2023

I've marked this as Help Wanted, as I don't have experience with Synology.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants