sdr-enthusiasts / docker-readsb-protobuf

Multi-architecture readsb-protobuf container with support for RTLSDR, bladeRF and plutoSDR (x86_64, arm32v7, arm64v8)
231 stars 37 forks source link

Synology Docker issue #59

Open mantis4 opened 2 years ago

mantis4 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

Banjer commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Perhaps my receptor is not compatible ?

https://www.amazon.fr/gp/product/B009U7WZCA/ref=ppx_yo_dt_b_asin_title_o01_s01?ie=UTF8&psc=1

florian987 commented 1 year ago

Same problem here, I tried to :

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 commented 1 year ago

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