Giter Site home page Giter Site logo

Comments (12)

darksidelemm avatar darksidelemm commented on September 26, 2024 1

Supported in f887711

from radiosonde_auto_rx.

darksidelemm avatar darksidelemm commented on September 26, 2024

This might be a bit harder actually... how do we find the right dongle to reset when we run reset_usb? At the moment we just reset all of them...

from radiosonde_auto_rx.

Keskebeu avatar Keskebeu commented on September 26, 2024

lsusb will tell you which usb is connected and what actually running.

from radiosonde_auto_rx.

Keskebeu avatar Keskebeu commented on September 26, 2024

https://github.com/soldair/reset-usb/blob/master/README.md

You can use this tool to restart a particular one

from radiosonde_auto_rx.

darksidelemm avatar darksidelemm commented on September 26, 2024

Understood - already do this with a single dongle.

The issue is tying the RTLSDR 'device index' to the USB bus and device index.

It's possible that the more detailed output that can be provided by lsusb will tell us this information.

from radiosonde_auto_rx.

Keskebeu avatar Keskebeu commented on September 26, 2024

Is your question running this softwate in multiple dongles?

from radiosonde_auto_rx.

darksidelemm avatar darksidelemm commented on September 26, 2024

The eventual aim (and one of the reasons this issue was created) was to eventually allow use of multiple SDR dongles, which which would allow for a few different use-cases. For example, with two dongles, one could be continually scanning, and the other tasked onto a detected radiosonde.

Part of the move toward this kind of functionality is to enable the user to define which SDR dongle to use, hence this issue.
As we know there are common issues with RTLSDR devices glitching and requiring a reset, we need to make sure we can determine the usb bus/device number of the RTLSDR currently in use, and only reset that single device - not another RTLSDR which may be in use tracking another radiosonde.

from radiosonde_auto_rx.

Keskebeu avatar Keskebeu commented on September 26, 2024

You can run lsusb -v or lsusb -D and will give you more info about the device.

usb-devices is also another option. You can always do : cat /sys/bus/usb/devices/*/product

Or go directly to usb directory.

from radiosonde_auto_rx.

Keskebeu avatar Keskebeu commented on September 26, 2024

https://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line

This is also really good.

from radiosonde_auto_rx.

Keskebeu avatar Keskebeu commented on September 26, 2024

@darksidelamm (sudo) ./reset_usb /dev/bus/usb/001/006
*/

This is found at the scan file. It tells you to execute lsusb and than the command to reset a particular dongle depending what you using you need to change the info.

from radiosonde_auto_rx.

ED6E0F17 avatar ED6E0F17 commented on September 26, 2024

It's possible that the more detailed output that can be provided by lsusb will tell us this information.

lsusb can read the serial number on a dongle, which can be matched to the output of rtl_power, or used as an input to rtl_power.

pi@localhost:~$ lsusb -d 0bda:2838 -v |grep Serial -B2
  iManufacturer           1 Realtek
  iProduct                2 RTL2838UHIDIR
  iSerial                 3 2
pi@localhost:~$ rtl_test -p -d 2
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 2

Using device 0: Generic RTL2832U OEM

Some people might want to have multiple dongles on different antenna running adsb, aprs etc, so being able to choose a device by serial number would be an advantage.

from radiosonde_auto_rx.

darksidelemm avatar darksidelemm commented on September 26, 2024

As an update, use of multiple RTLSDR dongles will be supported in a major update to the auto_rx codebase which should be ready in a few week.
The update is essentially a re-write, and makes handling multiple sdrs much much easier. You will be able to specify a list of RTLSDR device IDs to use (each with individual gain/ppm/bias settings), and they will be tasked either either scanning, or decoding a sonde signal.
I'm working on this update here: https://github.com/darksidelemm/radiosonde_auto_rx/blob/restructure/auto_rx/

from radiosonde_auto_rx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.