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

Kenwood rit not working #677

Closed
mdblack98 opened this issue Apr 24, 2021 · 3 comments
Closed

Kenwood rit not working #677

mdblack98 opened this issue Apr 24, 2021 · 3 comments
Labels
bug needs test Patches have been submitted but need testing to close issue

Comments

@mdblack98
Copy link
Contributor

Mike

Me again, and again RIT. A friend asked me to look at hamlib and RIT on
the TS2000, as it appeared to be a bit odd.

I agree with him - Hamlib follows what the spec APPEARS to say, but I
think the spec is wrong.

For RD and RU, P1 says 00000-99999 (The offset frequency in Hz)

What it appears to actually DO is to apply that offset to the RIT as an
increment.

Attached output from a rigctl run.

I'd fix it and send a pull request, but I suspect the problem applies
to ALL Kenwood rigs, and the TS2000 is the only one I have access to.

Mike G0GJV

@mdblack98 mdblack98 added the bug label Apr 24, 2021
@mdblack98 mdblack98 added this to the 4.2 milestone Apr 24, 2021
@mdblack98 mdblack98 added the needs test Patches have been submitted but need testing to close issue label Apr 24, 2021
@mikaelnousiainen
Copy link
Contributor

mikaelnousiainen commented Apr 24, 2021

Btw I'm just working on extending the TS-480 backend significantly and noticed the same. I ended up implementing RIT/XIT for it specifically because it cannot execute RC command if RIT/XIT is not active (so it toggles RIT during RC if it's not active). Anyway this is otherwise good.

Mainly thinking if TS-2000 has the same limitation. I'll be adding some infrastructure for handling slope filters (SL/SH) and filter width (FW) too.

@mdblack98
Copy link
Contributor Author

mdblack98 commented Apr 24, 2021 via email

mdblack98 added a commit that referenced this issue Apr 26, 2021
If this works should be able to change get_rit in TS480 to the generic kenwood get_rit
#677
@mdblack98
Copy link
Contributor Author

May need a short sleep after setting rit this way...

kenwood_transaction called
kenwood_transaction: cache invalidated
kenwood_transaction: cmdstr = RU01200
rig_flush: called for serial device
serial.c(629):serial_flush entered
tcflush
serial.c(661):serial_flush return(0)
write_block called
write_block(): TX 8 bytes
0000 52 55 30 31 32 30 30 3b RU01200;
write_block called
write_block():493 failed -1 - Resource temporarily unavailable
kenwood_transaction: returning retval=-6
kenwood.c(563):kenwood_transaction return(-6)
kenwood.c(1814):kenwood_set_rit return(-6)
rig.c(4463):rig_set_rit return(-6)
rigctl_parse.c(2024):rigctl_set_rit return(-6)
rigctl_parse: vfo_opt=0
rigctl_parse: RIG_EIO?
rigctl_parse.c(1684):rigctl_parse return(-6)
main: i/o error
rig.c(1086):rig_close entered
kenwood_close called

mdblack98 added a commit that referenced this issue Apr 27, 2021
On the TS-2000 at least it caused Resource temporarily unavailable when sending ID right after RU/RD
#677
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs test Patches have been submitted but need testing to close issue
Projects
None yet
Development

No branches or pull requests

2 participants