Wykres commitów

54 Commity (87a83ffbb196fa9c16a779d7a6d79104ca7fbdf7)

Autor SHA1 Wiadomość Data
Michael Black W9MDB 87a83ffbb1 rigctld now works with rigctl in vfo mode
https://github.com/Hamlib/Hamlib/issues/259
set_vfo_opt can now dynamically change vfo mode on rigctld
So this example now works...does some non-vfo stuff then switches to vfo mode
rigctl -m 2 F 14074000 V VFOB F 14076000 V VFOA f V VFOB f set_vfo_opt 1 f VFOA
rigctl commands v,V and S have been changed to not require VFO arguments
New API function rig_set_vfo_opt -- only implemented for Net rigctl as it doesn't apply to any other rigs
2020-05-27 12:21:41 -05:00
Michael Black W9MDB 545081c8d4 Fix rigctl/rigctld "V VFOA" protocol error
4.0 rigctld now works with 3.3 rigctl client and 4.0 rigctl client
https://github.com/Hamlib/Hamlib/issues/246
2020-05-15 14:17:59 -05:00
Michael Black W9MDB ee5af14b13 Restore backwards compatibility of rigctld
Need to figure out how to make "F" command with VFO backwards compatible probably by dynamic detection of newer rigctld
https://github.com/Hamlib/Hamlib/issues/246
2020-05-13 17:44:17 -05:00
mdblack98 a3b1b055b3 Fix cppcheck warnings 2020-05-05 11:32:09 -05:00
mdblack98 bf1a05084d astyle files 2020-05-03 17:24:42 -05:00
mdblack98 85ecc848f8 Make netrigctl_close synchronous
There was a race condition where closing and reopening quickly could cause rigctld to fail
2020-05-03 17:08:29 -05:00
mdblack98 5eb5b6f3d8 https://github.com/Hamlib/Hamlib/issues/227
Added read_only flag everywhere
2020-04-26 14:37:03 -05:00
mdblack98 a444e6eb20 Add one more retry to netrigctl.c 2020-04-22 14:36:27 -05:00
mdblack98 dc29c94a76 Allow netrigctl 1 retry 2020-04-22 10:03:26 -05:00
Michael Black fa101ae467 Add comment to netrigctl.c 2020-04-04 15:48:53 -05:00
Michael Black 6a2e675216 Added new protocol 1 for dumpcaps with vfo_ops as the first one implemented
Protocol 1 is setting=value.  Order does not matter.  Can be multiline.
And is forward compatible as new values will just generate warnings on older versions
2020-04-04 09:38:50 -05:00
Michael Black b040803765 Standard all version numbers to YYYYMMDD.N where n is intended for multiple versions in one day.
So typically .N will be .0
2020-03-29 23:03:21 -05:00
Michael Black 679db60483 Fix some more cppcheck warnings 2020-03-19 12:10:20 -05:00
Michael Black d856248178 Add RIG_MODEL macro and change all rigs to support it 2020-03-05 08:44:18 -06:00
Michael Black ff8ddf018c astyle all C files 2020-02-23 11:26:09 -06:00
Michael Black 296c10a616 Increase size of vfostr object in netrigctl 2020-02-20 14:54:50 -06:00
Michael Black e315f5e3ac Added skeleton for new get_ant function that will return ant_tx and ant_rx if known
Every rig will need to be reviewed to fill these in as appropriate
2020-02-18 23:10:14 -06:00
Michael Black 7e8938ae65 Changed y command to now use mandatory antenna argument
Put a looplimit on icom_get_ant_count trying to get autodetect to work
Changes to icom_get_ant_count to try and get this working
Added dummy antenna # args to rigs that don't care i.e. only have 1 antenna
2020-02-02 08:38:10 -06:00
Michael Black 60215785e1
Changes to get antenna calls working in rigctld
Change to ic785x.c to get antenna calls working
Added automatic detection of # of antennas for Icom rigs
Note that rig_get_ant returns a zero-based antenna# and not RIG_ANT1/2/3/4....
rig_set_ant on the other hand takes RIG_ANT1/2/3/4 as the argument for antenna
These RIG_ANT settings are a bit mask
This may have to be converted in the rig back end to whatever the rig expects
2020-01-30 12:12:13 -06:00
Michael Black bf8e90d214
Remove unused var in netrigctl.c 2020-01-21 18:08:05 -06:00
Michael Black d853c36fb3
Change get_ant to add another option for icom rigs (and others if needed) 2020-01-21 17:53:12 -06:00
Michael Black 9c16b55337
Fix cppcheck warning in netrigctl.c 2020-01-12 22:45:31 -06:00
Michael Black 98a7b825ab
Fix cppcheck warning in netrigctl.c 2020-01-05 17:07:09 -06:00
Michael Black eec16fa625
Fix cppcheck warnings in netrigctl.c 2019-12-18 22:34:37 -06:00
Michael Black fb73e5abd7
Fix some cppcheck warnings
Fix declarations after statements
Remove some !rig checks...we either don't need them or need them everywhere with a new error code
If you pass a NULL rig you get what you deserve :-)
2019-12-09 17:12:13 -06:00
Michael Black fa42f54a4a
Clean up cppcheck warnings in netrigctl.c 2019-12-06 16:32:39 -06:00
Michael Black de01f4768a
change retry and timeout for netrigctl to allow binary cmds from w command to work 2019-12-06 07:57:44 -06:00
Michael Black 72087f1b10
Change all __FUNCTION__ to __func__ 2019-11-30 10:16:28 -06:00
Michael Black 2f4d62709e
Added a dummy snprintf to rig_debug to allow gcc to check format strings
This found tons of errors in rig_debug statements
So this patch cleans up all the files that were producing warnings or errors
This should fix a few segfaults when running with debug turned on
2019-11-30 10:04:31 -06:00
Bill Somerville c0b375c20b
Fix misunderstanding of netrigctl_transaction() return value
netrigctl_transaction()  returns  either  an  error  code  (-ve  int),
RIG_OK, or the number of characters read from the protocol stream. +ve
return  values indicate  successful  parsing of  stream  data, not  an
error.
2019-08-31 00:38:25 +01:00
Michael Black 73c1ecd165
Change freq & chan struct start/end to avoid colliding with LUA SWIG start/end 2019-08-17 23:20:48 -05:00
Michael Black 1688d103c9 astyle for netrigctl.c 2019-03-01 07:32:05 -06:00
Michael Black 51fa6f57ba Relax chk_vfo requirement for backward compatibility 2019-03-01 07:30:02 -06:00
Michael Black ad8a01f18d netrigctl can now do vfo mode -- has automatic detection of rigctld vfo mode
rigctl automatically detects vfo mode of rigctld
rigctli and rigctld recommend vfo mode if not selected
2019-02-05 12:05:51 -06:00
Michael Black 7123bb4403 Change rmode_t to uint64_t and remove unneeded casts 2018-12-22 23:56:30 -05:00
Michael Black 2b5f01fb75 64 bit mods to netrigctl.c testrig.c 2018-12-21 23:51:54 -05:00
Michael Black 422b266b9b Change RIG_MODE and RIG_FUNC to 64-bit values 2018-12-21 12:39:20 -05:00
Ervin Hegedus 354ae39adc Change variable length argument handling in affected functions 2018-11-20 10:31:52 +01:00
Michael Black W9MDB d1b545beac Fix netrigctl.c returning wrong value 2018-05-25 11:01:38 -05:00
Michael Black W9MDB ae30a9fb3a Fix read_string terminator length parameters 2018-05-09 08:14:04 -05:00
Michael Black W9MDB 446210914d Fix compile warnings for dummy 2018-04-22 18:38:16 -05:00
c vw 4838a349a6 This enables netrigctld to trigger two different CAT commands (Mic or DATA)
on the real rig. In rigctl_parse.c, we make sure that invalid attempts to
so so are mapped on a safe variant.

Second change to netrigctl: drain the input line before sending a new
command, to reach sync again after a timeout.
2017-07-07 11:52:35 +02:00
Michael Black W9MDB cab7eb1647 Fix FT-891/991 behavior with WSJT-X
Separate FT-891 features
Fix rigctl and rigctld to not abort on function not available
Change Yaesu detection of FA length to automatic method instead of rig specific
2017-06-27 16:48:44 +01:00
Bill Somerville 2d6bb183f2 Allow RIG_LEVEL_STRENGTH queries over the network link
The rig  frontend may be  able to emulate RIG_LEVEL_STRENGTH  by using
RIG_LEVEL_RAWSTR and an S-meter  calibration curve.  The netrig client
doesn't know  this so it must  pass STRENGTH queries regardless  if it
knows a RIG_LEVEL_RAWSTR query is allowed. If the server cannot oblige
it will return a -RIG_EINVAL error which should be fine.
2017-03-31 18:17:16 +01:00
Michael Tatarinov 533531c631 netrigctl.c: Fill mode_list from rx_range_list/tx_range_list.
The 'NET rigctl' doesn't contain correct rig_caps and mode_list is
empty.
2016-10-26 10:59:44 +04:00
Nate Bargmann 1bac099494 Remove remaining references to rpc
As rpc backends were removed some time ago, remove all remaining
documentation and other references to rpc.
2013-09-19 15:24:52 -05:00
Nate Bargmann e942ab0a8e netrigctld.c: Add missing Set Split param--N2ADR
From the SourceForge tracker:

I am using version hamlib-1.2.15.2~rc3.  Start rigctl and specify rig 2
(rigctld). The command "s" (get_split_vfo) will return two parameters,
the spilt state (0 or 1) and the TX VFO name. The command "S"
(set_split_vfo) will send one parameter, the TX VFO name, but will not
send the split state (0 or 1).  This is incorrect. In the file
dummy/netrigctl.c change netrigctl_set_split_vfo() line 782:

len = sprintf(cmd, "S %s\n", rig_strvfo(tx_vfo));

to include the "split" paramater; perhaps:

len = sprintf(cmd, "S %d %s\n", split, rig_strvfo(tx_vfo));

Thanks to Jim, N2ADR for reporting this.
2012-10-27 08:56:15 -05:00
Nate Bargmann a01d5986cf Remove set but unused variable errors in dummy. 2011-08-25 11:21:05 -05:00
Nate Bargmann 088edb3735 Update LGPL header in Dummy source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:34 -05:00
Stéphane Fillod, F8CFE 62e7f69db7 status/version update
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2939 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-31 21:41:13 +00:00