Page 1 of 1

UDP Remote control

Posted: 18 Oct 2021, 10:06
by SP5NZF
Is it possible to control L4Ong 2.17 via UDP ?
I need to TELL L4Ong to:
a) set frequency to xx (or Up/Dn by xx) - MUST
b) change mode to CW (or USB/LSB) - NICE TO HAVE
c) change BAND to xx - NICE TO HAVE
Please point me to some reference and possibly examples (if exist).
Regards

Re: UDP Remote control

Posted: 18 Oct 2021, 10:09
by G4POP
Would help if you said what radio and/or software you are using to send band, mode and frequency to Log4om?

Re: UDP Remote control

Posted: 18 Oct 2021, 10:19
by SP5NZF
My setup is: L4Ong interfaces my RIG (G90 compatible with IC7100) via OMNIRIG and it works fine.
When I scroll mouse over VFO Freq L4Ong instructs RIG to change FREQ accordingly.
Now, I do not like mouse, I want to write UDP packet to L4Ong to set the FREQ.
Regards and thanks for swift reply.

Re: UDP Remote control

Posted: 18 Oct 2021, 11:11
by G4POP
But UDP packet from what, other software in which case what software, physical hardware again what hard ware?

Re: UDP Remote control

Posted: 18 Oct 2021, 13:15
by SP5NZF
I will write a program that will send UDP packets to L4Ong
Regards.

Re: UDP Remote control

Posted: 18 Oct 2021, 14:23
by G4POP
SP5NZF wrote: 18 Oct 2021, 13:15 I will write a program that will send UDP packets to L4Ong
Regards.

The best method would be to use the multithreading capability of Omnirig and send your commands to Omnirig then all connected programs would follow/synchronise - Full details are on the Afreet/Omnirig website

Re: UDP Remote control

Posted: 18 Oct 2021, 15:11
by SP5NZF
Thanks. I've looked into using omnirig but it has some con's (need to write intermediary as hamcockpit plugin or directly invoking omnirig dll). My use case (android app or micro controller app) will be better served if I can directly use UDP interface of L4Ong and this is why I try to ask for its specification- what commands can I "talk" to L4Ong UDP port - where can I find documentation ?
Is it possible to control L4Ong 2.17 via UDP ?
I need to TELL L4Ong to:
a) set frequency to xx (or Up/Dn by xx) - MUST
b) change mode to CW (or USB/LSB) - NICE TO HAVE
c) change BAND to xx - NICE TO HAVE
Please point me to some reference and possibly examples (if exist).
73, Kuba

Re: UDP Remote control

Posted: 18 Oct 2021, 16:17
by G4POP
I will ask Lele if he will consider this

Re: UDP Remote control

Posted: 18 Oct 2021, 17:56
by G4POP
Answer from Lele as follows:


"UDP remote commands... it's not complex... but i can't imagine the usage of this feature...

anyway the answer is "yes, when i put into rework the actual 'remote control' feature". Ext. first quarter of 2022 following the actual workplan."

So there is your answer, at some time next year..

Re: UDP Remote control

Posted: 18 Oct 2021, 20:57
by SP5NZF
Thanks for all the information. I understand you have your roadmap. Otherwise You would not build such a great software. On the other hand, if there is place to advocate for certain improvements to be considered for the roadmap: I believe exposing network API is good:
a) API offloads demand for features not on the roadmap as anyone can add his features and enrich ecosystem of the application (here L4Ong),
b) network API is good as it extends ecosystem to other languages and devices. For low latency realtime control UDP is fine. It can be written async so not to delay L4Ong itself.
c) if one could register to system events (like new call logged, radio parameters changed, QSL fetched, anything you now act on).
Another question is if omnirig shouldn't expose network API :(
So let me say I fully understand and support your idea on "later, maybe 2022 Q1". And thanks for great software.
73, Kuba