Re: [Hamlib-developer] input buffer cleanup
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Black M. <mdb...@ya...> - 2025-01-05 12:41:39
|
Most any character should do what you want. rigctld was never designed for random input. Mike W9MDB On Sunday, January 5, 2025 at 01:41:12 AM CST, Sakari Nylund <sak...@ni...> wrote: Hi! Is there or could it be possible to get a character, or string, that would clean up the rigctld input buffer? Read through man pages did not give any hint that it already exists. What I mean is that if we get a telnet connection to rigctld and send for example: f (+linefeed) But if rigctld is started with --vfo parameter then there is no answer to plain "f". It is kind of an error, but there is no indication about it. Rigctld just waits and waits... if there is timeout loop waiting for "RPRT" that does not appear at all we could send a "cleanup" character (or string) to get rigctld ready for next command. If there is no cleanup then also next command after that kind of situation will fail and that causes a snowball effect where several commands will fail. It could be even so that the "cleanup" could be sent always before any real command to ensure the rigctld input buffer is clean. As far as I can imagine that kind of cleanup character would not break any backwards compatibility. -- Saku OH1KH _______________________________________________ Hamlib-developer mailing list Ham...@li... https://lists.sourceforge.net/lists/listinfo/hamlib-developer |