Re: [Hamlib-developer] rigctl send_cmd
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Jere S. <k4...@gm...> - 2018-02-06 14:04:24
|
Bill, Thank you for the info, do you have any suggestions on where to look in the rigctl code to determine why I see this? Rig command: w FA; rigctl_parse: input_line: w FA; write_block(): TX 0 bytes read_string(): Timed out 2.3858 seconds after 0 chars Reply: Rig command: This works ok: Rig command: f rigctl_parse: input_line: f newcat_get_freq called newcat_get_freq: passed vfo = 0x20000000 newcat_valid_command called newcat_valid_command FA newcat_set_vfo_from_alias: alias vfo = 0x20000000 newcat_valid_command called newcat_valid_command FA cmd_str = FA; cmd_str = FA; write_block(): TX 3 bytes 0000 46 41 3b FA; read_string(): RX 12 characters 0000 46 41 30 30 37 30 37 34 30 30 30 3b FA007074000; newcat_get_cmd: read count = 12, ret_data = FA007074000; newcat_get_freq: freq = 7074000.000000 Hz for vfo 0x01 Frequency: 7074000 Rig command: 73, Jere K4FUM > On Feb 6, 2018, at 4:45 AM, Bill Somerville <g4...@cl...> wrote: > > On 06/02/2018 02:26, Jere Sandidge wrote: >> I have been looking at the source code and I don't see any send_cmd functions in the Yaesu ft991.c code, however these functions are in the ft897.c file. Unless I am wrong, this might be why 'send_cmd FA;' outputs zero bytes. I will have to study the ft897.c file to see if I can modify the ft991.c source to include these functions. > > Hi Jere, > > the send command functionality is handled directly in the input parser (test/rigctl_parse.c) not by the individual back ends. It only makes sense for some rigs, others have binary protocols with fixed format input and output parameters. Only rigs with ASCII CAT protocols like the latest Yaesu and most Kenwood rigs can be used with the generic send_cmd (w) command. > > The code you see in the yaesu/ft897.c source is unrelated, it is just an internal function to send the low level commands used by the higher level back end implementations. > > 73 > Bill > G4WJS. > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Hamlib-developer mailing list > Ham...@li... > https://lists.sourceforge.net/lists/listinfo/hamlib-developer |