开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: sBITX Toolbox - A great companion for the sBitx transceiver is now available for public release #file-notice #sBitx #sbitx_v2 #sBITX_v3 #wiki-notice


 

Ashhar, I'm not familiar with "Net Rig Conttrol"? ? Is this related?to "rigcat" which is one of the options in FLDGI?? ?Unfortunately I don't know if that is at all related to how N3FJP or WINLINK authors control radios.? ? However, emulation of any of several popular radios makes controlling from? any of these software products fairly easy.? ? ?I may be able to dig up the code that I wrote to have a uBitx do a tiny bit of emulation of an Icom just so frequency?control could be accomplished.? ? One of the yaesu's was already built into the uBitx (I'm sure your'e?more familiar with this than I)

Here is some code I found in an ancient .ino file that I think could read a single CAT command and change the frequency.? ?I had a raduino?controlling in a Heathkit vacuum tube radio, substituting for the vacuum tube VFO - it worked.


// --------------------------TRY TWO TO DO CAT---------------------------

// ?The minimum command we have to listen for is change frequency
// ?5 bytes: ? MM MK KK HH ?01 ? is the command
// ?where MMM are the megaherts ?(eg ?01 4
// ?and the KKK are the kilohertz ?(eg ? 234
// ?so for example ? 01, 42, 345, 56, 01 means
// ?change frequency to 14,234.56 kilohertz


void checkSerialData() {
? int packed;
? int i = Serial.available();
? // Note that the internal buffer on the arduino can hold up to 64 bytes
? ? if (i < 5) return;

?// if you got here then there are at least 5 ints (?bytes?) ?waiting: get it.

printLine(1, (char *)"5bytes");
? ? ? ? delay(10);
?
? ? for (i=0; i<5; i++) {
? ? ? ? receivedserial[i] = Serial.read();
? ? ? ? // Serial.read pulls exactly one byte
? ? }

? ? // now chek for the command in the last byte
? ? switch (receivedserial[4]) {

? ? ? ? ? ? ?
? ? ? ? case 1:

// frequency is in packed BCD; binary coded decimal;
// so left 4 bits give top decimal number 0-9 ?and right 4 bits give bottom decimal number 0-9


// ? ? ? ?case CAT_FREQ_SET:
? ? ? ? ? ? // convert the 4 bytes of numbers (tens of MHz), (hundreds of kHz), (kHz), (tens of hz)
? ? ? ? ? frequency = 0UL;
? ? ? ? ? packed = receivedserial[0];
? ? ? ? ? frequency = ? ? 10000000UL * ? (unsigned long) ( ((packed & 0xF0)>>4 )* 10 ?+ ? (packed & 0x0F) ) ;
? ? ? ? ? packed = receivedserial[1];
? ? ? ? ? frequency = frequency + ?100000UL * ? (unsigned long) ( ((packed & 0xF0)>>4 )* 10 ?+ ? (packed & 0x0F));
? ? ? ? ? packed = receivedserial[2];
? ? ? ? ? frequency = frequency + 1000UL * ? (unsigned long) ( ((packed & 0xF0)>>4 )* 10 ?+ ? (packed & 0x0F));
? ? ? ? ? packed = receivedserial[3];
? ? ? ? ? frequency = frequency -40 + 10UL * ?(unsigned long) ( ((packed & 0xF0)>>4 )* 10 ?+ ? (packed & 0x0F));

? ? ? ? ?
? ? ? ? ? ?
? ? ? ? ? ?setFrequency(frequency);
? ? ? ? ?
? ? ? ? ? ?Serial.write(ACK);
? ? ? ? ? ? break;
? ? ? ?
? ? ? ? default:
? ? ? ? ? ? printLine(1, (char *)"Othercmd");
? ? ? ? ? ? delay(10);
? ? ? ? ? ? Serial.write(ACK);
? ? ? ? ? ? break;
? ? }

}? ??


On Wed, Jan 31, 2024 at 1:23?AM Ashhar Farhan <farhanbox@...> wrote:
Net Rig Ctrl is already implemented on sbitx. That is how wsjtx and fldigi work with it



On Wed, Jan 31, 2024, 5:07 AM Dave, N1AI <n1ai@...> wrote:
My understanding is the classic generic radio to emulate via hamlib is the Kenwood TS-2000.

At least this is what the Flex product line does going back to the days of the Flex 1500 which I bought in the mid 2000s.

Seems this was a popular radio as hamlib was being developed.

I actually have one but have never attached it to any computer.

--
Regards,
Dave, N1AI

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