-
Notifications
You must be signed in to change notification settings - Fork 17
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
two devices on same machine #12
Comments
With nearly all of these drivers, you should be able to pass the serial as one of the keyword arguments to filter for a specific device. However for some reason this was copied from another device and commented out: https://github.com/pothosware/SoapyAirspyHF/blob/master/Registration.cpp#L68 It does use a "device_id" count which is not something that stays consistent from run to run, and I would argue that is wrong. If you happen to have a setup to test this on, I would absolutely appreciate a pull request to support selection by serial. |
Thanks you for your response.
I won’t be able to test it before the next week-end but I keep you posted as soon as I did the test.
I never did a pull request on GitHub but of course I will try if test is a success !
;-)
… On 22 Sep 2019, at 19:36, Josh Blum ***@***.***> wrote:
With nearly all of these drivers, you should be able to pass the serial as one of the keyword arguments to filter for a specific device. However for some reason this was copied from another device and commented out: https://github.com/pothosware/SoapyAirspyHF/blob/master/Registration.cpp#L68 <https://github.com/pothosware/SoapyAirspyHF/blob/master/Registration.cpp#L68>
It does use a "device_id" count which is not something that stays consistent from run to run, and I would argue that is wrong.
If you happen to have a setup to test this on, I would absolutely appreciate a pull request to support selection by serial.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#12?email_source=notifications&email_token=AFY26PY4GMREGMSPJMOZ3JTQK6UJPA5CNFSM4IY5DE4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7JLBUA#issuecomment-533901520>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFY26P5YLA2RZSORCXIDXGDQK6UJPANCNFSM4IY5DE4A>.
|
looks like this was resolved with #13 which is awesome! I was wondering if there is any way to catch the "unable to open device" error that is thrown when the serial number is not found. I tried catching it in python but I get a seg fault before python has a chance to catch it. I assume this is because the CPP is throwing the error. Any solutions available? |
It might be the case that python is not handling the error. I will have to look into that. You should be able to avoid the error by making sure the device is found first with SoapySDR.Device.enumerate(args) before opening it. That way you can tell if the device is available or not without the exception. |
hello
Yesterday I try to connect two Airspy HF on the same machine.
With SoapySDRUtil --probe="driver=airspyhf" there is only one device detected by SoapyAirspyHF even if airspyhf_info is detecting two devices.
Is it possible to have more than one device with SoapyAirspyHF ?
Thanks
The text was updated successfully, but these errors were encountered: