¿ªÔÆÌåÓý

Re: Writing the ICOM EMULATOR for the sBitx


 

¿ªÔÆÌåÓý

Any chance that one of you guys would write me a C code subroutine(s) that is able to connect to their telnet interface ?(or any other interface to the Sbitx) and issue a command to change the frequency? ?I have decoded the frequency into an unsigned long, at the moment. ?

Not python, not C++, not C-sharp, just C!?


It would take me far too long to learn how to write code to connect to the Telnet, but one of you probably knows how to do it in just seconds. ?

If I had that code, then I could leave my code as standalone and by running my code it would add an ICOM interface cleanly to the device. ?

Otherwise, I¡¯m going to shove my code into some of the actual sbitx code somewhere, get it working, and then let much brighter people sort it all out!!! ?I¡¯m so ignorant that GitHub is a problem for me. ? ?

Gordon Kx4z?




On Feb 12, 2024, at 06:49, Gordon Gibby via groups.io <docvacuumtubes@...> wrote:

?HOORAY!!
For the first time, I have properly decoded a "frequency set" command from WINLINK, issued to a mythical ICOM radio [replaced by the sbitx running my standalone code] and correctly recognized the "set frequency" command, and correctly decoded the frequency.? ?Oh mi gosh, the number of stupid mistakes and misunderstandings of hexadecimal, char, int, etc etc that had to be corrrected before this worked!!!? ?The ICOM commands quite frequently have the hexadecimal "0" in them....and so my foolish early plans to use null termination of their strings was a hindrance.....

Now it is time for BREAKFAST.

I'm not sure how many goofs I can make while either integrating this into the sbitx code.....or learning how to issue a "telnet" command to the interface others have built...but that is next step.? ?
Since I'm quite simple, probably just try to integrate into sbitx code somewhere for the moment.? ??
Having finally decoded the set frequency command (it is their hex 5 command)? adding additional commands is merely a matter of writing addtiional "case" statements.....

Big advance for a 3rd rate programmer like me!
Gordon KX4Z

Join [email protected] to automatically receive all group messages.