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
Commands via API always seem to use VFO mode #930
Comments
Try adding my_rig.set_vfo_opt(0) |
@mdblack98 If I try that command I get
it looks like that function is not defined in the rig object in the python bindings |
Please try the latest...hopefully fixed.
Mike W9MDB
On Tuesday, January 18, 2022, 01:57:38 AM CST, giordyb ***@***.***> wrote:
@mdblack98 If I try that command I get
AttributeError: 'Rig' object has no attribute 'set_vfo_opt'
it looks like that function is not defined in the rig object in the python bindings
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
After pulling & recompiling if I try set_vfo_opt(0) I now get an error:
|
Hi @mdblack98 sorry if I bother you with one last question: After your patch I was able to call the function and if I understand this correctly I have to call set_vfo_opt(0) in my code if I want to switch to the "old style" (non-vfo) command set, correct? What I don't understand is the following: this command actually sends a \set_vfo_opt command to rigctld but I don't see it implemented in the older code (I'm looking at 3.2). How is this supposed to work with an older rigctld if it doesn't understand that command? What I am trying to do here is have my python code (compiled with Hamlib master) talk to a "rigctld-compatible" backend that does not implement the "new style" of commands. Is that even possible? |
I don't think you need set_vfo_opt or you can just ignore the error returned in 3.2
I'm not 100% sure about that though.
Mike W9MDB
On Sunday, January 23, 2022, 01:12:51 PM CST, giordyb ***@***.***> wrote:
Hi @mdblack98 sorry if I bother you with one last question:
After your patch I was able to call the function and if I understand this correctly I have to call set_vfo_opt(0) in my code if I want to switch to the "old style" (non-vfo) command set, correct?
What I don't understand is the following: this command actually sends a \set_vfo_opt command to rigctld but I don't see it implemented in the older code (I'm looking at 3.2). How is this supposed to work with an older rigctld if it doesn't understand that command?
What I am trying to do here is have my python code (compiled with Hamlib master) talk to a "rigctld-compatible" backend that does not implement the "new style" of commands. Is that even possible?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
What rigctld compatible backend?
Mike
On Sunday, January 23, 2022, 01:12:51 PM CST, giordyb ***@***.***> wrote:
Hi @mdblack98 sorry if I bother you with one last question:
After your patch I was able to call the function and if I understand this correctly I have to call set_vfo_opt(0) in my code if I want to switch to the "old style" (non-vfo) command set, correct?
What I don't understand is the following: this command actually sends a \set_vfo_opt command to rigctld but I don't see it implemented in the older code (I'm looking at 3.2). How is this supposed to work with an older rigctld if it doesn't understand that command?
What I am trying to do here is have my python code (compiled with Hamlib master) talk to a "rigctld-compatible" backend that does not implement the "new style" of commands. Is that even possible?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi,
I'm trying to remotely control an SDR software (https://github.com/AlexandreRouma/SDRPlusPlus) that implements a rigctld compatible backend but without VFO mode.
I can connect and send commands just fine with rigctl, as you can see it sends the right command:
Rigctl command: 'F 146000000.000000'
but If I connect to the backend via the python bindings the command is always sent as with VFO mode ON
netrigctl_set_freq: cmd=F VFOA 145000000.000000
which breaks compatibility with the backend (that sends me a "protocol error").
if I run the dump caps command I can see that "Has targetable VFO: N", which I presume is how rigctl determines if it's supported or not.
here is the python code that I am using to connect to the rigctld backend of the sdr
any tips on how I can make my code compatible with non-vfo mode?
thanks,
Giordy
The text was updated successfully, but these errors were encountered: