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

Add get_rig_info function #682

Closed
mdblack98 opened this issue Apr 26, 2021 · 0 comments
Closed

Add get_rig_info function #682

mdblack98 opened this issue Apr 26, 2021 · 0 comments
Labels
enhancement needs test Patches have been submitted but need testing to close issue

Comments

@mdblack98
Copy link
Contributor

mdblack98 commented Apr 26, 2021

Add get_rig_info to return satellite mode, and RX TX flags for each VFO
Examples:
Normal non-split ops
VFO=VFOA Freq=10133000 Mode=LSB Width=0 RX=1 TX=1
VFOB Freq=10134000 Mode= LSB Width=0 RX=0 TX=0
Split=0 SatMode=0
Or
VFO=Main Freq=10133000 Mode=LSB Width=0 RX=1 TX=1
VFO=Sub Freq=10134000 Mode=LSB Width=0 RX=0 TX=0
Split=0 SatMode=0

In split mode -- 9700 for example uses VFOA/B in split mode
VFO=VFOA Freq=10133000 Mode=LSB Width=0 RX=1 TX=0
VFO=VFOB Freq=10134000 Mode=LSB Width=0 RX=0 TX=1
Split=1 SatMode=0

In satellite mode -- 9700 for examples uses Main/Sub in sat mode
VFO=Main Freq=10133000 Mode=LSB Width=0 RX=1 TX=0
VFO=Sub Freq=10134000 Mode=LSB Width=0 RX=0 TX=1
Split=0 SatMode=1

VFOB is active
VFO=VFOA Freq=10133000 Mode=LSB Width=0 RX=0 TX=0
VFO=VFOB Feq=10134000 Mode=LSB Width=0 RX=1 TX=1
Split=0 SatMode=0

Would also show reverse split or reverse uplink/downlink in satmode if supported.
VFO=VFOA Freq=10133000 Mode=LSB Width=0 RX=0 TX=1
VFO=VFOB Feq=10134000 Mode=LSB Width=0 RX=1 TX=0
Split=1 SatMode=0

@mdblack98 mdblack98 added this to the 4.2 milestone Apr 26, 2021
@mdblack98 mdblack98 changed the title Add get_radio_info function Add get_rig_info function Apr 27, 2021
mdblack98 added a commit that referenced this issue Apr 27, 2021
Add prototype for rig_get_rig_info
#682
mdblack98 added a commit that referenced this issue Apr 27, 2021
Also get_rig_info in rigctld too
Example output with rig in split mode
This is a string return to allow for easy future expansion without changing the API
New tokens may be introduced and can be skipped if not used by clients
VFOA Freq=10133000 Mode=LSB Width=0 RX=1 TX=0
VFOB Freq=10134000 Mode=LSB Width=0 RX=0 TX=1
Split=1 SatMode=0
#682
@mdblack98 mdblack98 added the needs test Patches have been submitted but need testing to close issue label Apr 27, 2021
mdblack98 added a commit that referenced this issue Apr 28, 2021
…string

Should make parsing easier ensuring all are token pairs
#682
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement needs test Patches have been submitted but need testing to close issue
Projects
None yet
Development

No branches or pull requests

1 participant