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

Running on a pi5 #50

Closed
ghost opened this issue Aug 5, 2024 · 2 comments
Closed

Running on a pi5 #50

ghost opened this issue Aug 5, 2024 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 5, 2024

I recently switched operating systems on a laptop from Ubuntu to the current stable Debian. I cloned this repository yesterday. I built it for Debian on the Intel laptop. It works fine. Since bookworm requires that I use a virtual environment if I want to install python modules, I had to set PYTHONPATH for the venv:
export PYTHONPATH=/usr/lib/python3/dist-packages
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.11/dist-packages

I also built this on the pi5 the same way.

When I run my python program on the pi5 it works up to the point when a set() function is called. I've tried:
set_center_freq(freq)
set_gain(-20.0, 'IF')

either of these calls give this exception or similar:

exception: set_center_freq(): incompatible function arguments. The following argument types are supported:
1. (self: gnuradio.sdrplay3.sdrplay3_python.rsp, freq: float, synchronous: bool) -> float

Invoked with: <gnuradio.sdrplay3.sdrplay3_python.rsp1b object at 0x7ffefd14e7b0>, 1380000.0

I call 'getters' before this and they all work.

thank you,
Bob

@fventuri
Copy link
Owner

fventuri commented Aug 5, 2024

@BobSelf - good catch.

A month or so ago I added the new parameter synchronous to some of the those set() methods (for sample rate, center frequency, and gains; see discussion here: #45 (comment)).

I set the default for 'synchronous' to false (so it matches the current behavior) in the C++ code, but I completely forgot to do the same in the Python bindings.

I just pushed this commit d1351b1 to fix the problem with Python; I also ran a quick test here and it seems to work correctly.

Please give it a try and let me know if it works for you too.

Franco

@ghost ghost closed this as completed Aug 5, 2024
@ghost
Copy link
Author

ghost commented Aug 5, 2024

It seems to work fine now.

Thank you... I look forward to experimenting with gnuradio 'messages' (I think that's what I saw) on the 'synchronous' discussion.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant