Wykres commitów

97 Commity (f401d6dd942c5a69f21e16201a7165921f92fc18)

Autor SHA1 Wiadomość Data
Mikael Nousiainen 499d17cd20 Fix errors in Icom extcmd definitions and handling. Migrate more commands on Icom rigs to use extcmds. Add extfuncs to dummy rig for testing. 2020-09-16 22:33:39 +03:00
Michael Black W9MDB fade1681fa Fix cppcheck errors and warnings 2020-09-02 16:56:11 -05:00
Michael Black W9MDB 5e801fd2b5 astyle files 2020-07-07 11:39:26 -05:00
Michael Black W9MDB db3ead4399 Fix dummy to return VFOA for i command when not in split mode 2020-06-07 15:45:06 -05:00
Michael Black W9MDB aeddc1eaec Fix get split on dummy rig
https://github.com/Hamlib/Hamlib/issues/284
2020-06-06 23:44:41 -05:00
Michael Black W9MDB 4fc306ce08 Fix dummy device default frequency
https://github.com/Hamlib/Hamlib/issues/283
2020-06-05 15:05:10 -05:00
Michael Black W9MDB 653d7d1030 Add dummy_no_vfo device for emulating rigs with no set_vfo or get_vfo
https://github.com/Hamlib/Hamlib/issues/277
2020-06-03 11:35:31 -05:00
Michael Black W9MDB 677ccac4bc astyle files 2020-05-27 12:23:08 -05:00
Michael Black W9MDB d2f63c41e6 remove sleep from dummy set_ptt 2020-05-27 06:37:51 -05:00
Bill Somerville 2a3bb20672
Repair a regression with the dummy get PTT functionality 2020-05-26 13:02:34 +01:00
mdblack98 f8321a36f4 Fix cppcheck warnings and fill out unused RIG_LEVEL items 2020-05-05 23:33:40 -05:00
mdblack98 12320d451f Add a short sleep to dummy_open and dummy_close 2020-05-03 16:04:59 -05:00
mdblack98 e8ee703605 Change hl_sleep to usleep in dummy.c 2020-04-27 17:31:44 -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 ee562ddd03 Add some sleeps to the dummy emulator for more realistic behavior 2020-04-22 09:03:14 -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 a6631a412e Fix cppcheck warning in dummy.c 2020-03-19 09:19:06 -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 849bc5412b Add ANT3&4 to dummy rig and promote to stable 2020-02-17 23:13:22 -06:00
Michael Black 164c2d3798 Add range labels to dummy 2020-02-17 06:44:24 -06:00
Michael Black feba5ac89a Change rigctl Y and y commands to be 1-based
Added simulation of 4 antennas to dummy device
Examples testing 4 antennas with option value=ant#
Rig command: y 0
Antenna: 1
Option: 0

Rig command: Y 1 1

Rig command: Y 2 2

Rig command: Y 3 3

Rig command: Y 4 4

Rig command: Y 5 5
set_ant: error = Invalid parameter

Rig command: y 0
Antenna: 4
Option: 4

Rig command: Y 1 1

Rig command: y 0
Antenna: 1
Option: 1

Rig command: y 1
Antenna: 1
Option: 1

Rig command: y 2
Antenna: 2
Option: 2
2020-02-10 12:17:30 -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
Bill Somerville caed2d73a1
Improved get PTT state handling in dummy backend 2020-01-26 14:53:04 +00: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 a43193c6a4
Fix cppcheck warning in dummy.c 2020-01-13 22:57:59 -06:00
Michael Black 444fcfa575 Replace XOPEN with AC_USE_SYSTEM_EXTENSIONS 2019-12-10 15:54:12 -06:00
Michael Black 3220c37ff2
Change XOPEN to 600 2019-12-10 14:50:24 -06:00
Michael Black 3a3d66d52d Now compiles with -std=c99 and no c99 warnings 2019-12-09 22:45:37 -06:00
Michael Black 5414d18a57
Clean up cppcheck warnings in dummy 2019-12-06 16:25:49 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -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
Michael Black 777eb94825
astyle dummy.c 2019-10-29 22:27:12 -05:00
Michael Black de418729cf
Typical sequence
RX/TX will show correct answers at startup based on rig current status
This sequence is for the dummy device

Rig command: F RX
Frequency: 14500000

Rig command: F TX
Frequency: 14500000

Rig command: V VFOB

Rig command: F 16000000

Rig command: V VFOA

Rig command: S 1 VFOB

Rig command: V TX

Rig command: f
Frequency: 16000000

Rig command: S 0 VFOA

Rig command: f
Frequency: 145000000

What should this behavior be?  Return VFOA or VFOB or error?
Rig command: S 0 VFOB

Rig command: f
Frequency: 16000000
2019-10-29 08:03:03 -05: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
Mikael Nousiainen 3dbbe02b78 Add new levels: RFPOWER_METER, COMP_METER, VD_METER and ID_METER, supported at least by most of recent Icom rigs. Add level NOTCHF_RAW for manual notch frequency without specified unit for Icom rigs. Add level MONITOR_GAIN. Add functions DUAL_WATCH and DIVERSITY, supported now by K3/K3S. Fix VOXDELAY level commands for many Icom rigs. Add MONITOR_GAIN level for Icom rigs. Fix and add many K3 commands and add specific rig models for K3S, KX2 and KX3 -- they are very similar to K3, but have slight differences. Extend dump_caps output for rigctl: add complete details of ext levels and frequency ranges. Tests have been performed on IC-7000, IC-756ProIII, IC-7300, IC-7600 and K3. 2019-05-30 09:37:49 +03:00
Michael Black W9MDB 776f9ea2f6 Added TRXManager backend 2018-05-08 06:42:40 -05:00
Mikael Nousiainen d88881fecd Add an option to output static values for RIG_LEVEL_STRENGTH and RIG_LEVEL_RAWSTR for integration testing purposes 2018-01-21 16:00:37 +02:00
Michael Black W9MDB 8978d0ab9b Add FLRig backend 2017-07-06 22:53:58 +01:00
Michael Black W9MDB 0b1a58d308 Fixed indentation warnings detected by newer gcc
Fixed one error discovered by these warnings in easycomm.c
2017-06-28 18:00:20 +01:00
Bill Somerville e44566e8a7 Release the serial port used for PTT when possible
When  using  separate  serial port  for  PTT  via  RTS  pr DTR  it  is
convienent to close  the port when the PTT line  is not asserted. This
allows other applications to share the PTT serial port.

This has been  achieved by ensuring that file descriptor  for the port
is set to -1 when the port  is closed, this then allows the invalid FD
to be used as a PTT surrogate for the rig_get_ptt API when the port is
only being used for PTT.
2016-08-31 22:34:09 +01:00
Bill Somerville 222ad74de7 Add RIG_PASSBAND_NOCHANGE as possible set_{split_,split_freq_,}mode argument
This change  allows the set_mode  functions to leave the  rig passband
unchanged  if required.  For the  few rigs  that do  not have  explcit
passband width control either current state is read and rewritten or a
"normal" width  is chosen e.g. select  a normal width when  there is a
choice like CW and CW-NARROW.
2016-04-19 21:27:52 +01:00
Bill Somerville fde6174a6f Dummy get_ptt function needs to read RTS/DTR/PARALLEL
Because the dummy rig provides a  get_ptt function it must look at the
hardware PTT if that is being used  and or that state into its result.
This  issimilar to  a real  rig that  would be  in tx  because of  the
control line.
2015-04-25 13:24:22 +01:00
Nate Bargmann 59160c5d03 dummy.c: Make all setting_t bitmasks unsigned long
To assure the correct types, the DUMMY_FUNC/LEVEL/PARM/VFO_OP/SCAN
bit mask macros are defined as unsigned long integers.
2013-01-31 18:03:50 -06:00
Nate Bargmann f82184cbf5 Add RIT and XIT as rig_set/get_func() members
In response to a long standing request from Tor, N4OGW, and others, RIT
and XIT are added as members for the rig_set/get_func() members.
"RIT"/"XIT" have been added as tokens.  The dummy rig backend and
testrig.c have been updated for these new functions.

Applications should test a backend with the rig_has_set/get_func() and
test for RIG_FUNC_RIT or RIG_FUNC_XIT.  A non-zero result indicates
these functions are implemented by a given rig backend.  It will take
some time for all backends to migrate to this new implementation.  Once
implemented, RIT or XIT should be set to '0' to 'clear' the value
without deactivating the rig's RIT/XIT function.  The dummy/dummy.c file
can be used as a simple guide for backend authors implementing this
behavior.
2013-01-15 12:47:47 -06: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 20bfa6f080 ext_levels in get_channel(), and fix func list
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2934 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-31 08:42:01 +00:00
Stéphane Fillod, F8CFE 05d191cc8b * fix mem leak/double free of ext_levels when copying channels
* fix bug in set/get_func
* better range checking of memory channel number
* implemented RIG_OP_TOGGLE
* frequency dependent LEVEL_STRENGTH
* some caps update


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2911 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-10 20:25:47 +00:00