Wykres commitów

111 Commity (bcf08e2f99e8d80e104326bd93a72e20d472fe76)

Autor SHA1 Wiadomość Data
Michael Black aa7e822d98 cppcheck-suppress rigctl_parse.c 2020-03-24 10:00:22 -05:00
Michael Black bda5feb1bd More cppcheck changes 2020-03-23 10:13:02 -05:00
Michael Black ea728feb03 Add VFO to rigctl(d) 'f' command
On Icom rigs, for example you will see "currVFO" if no VFO has been set
Eventually we will start showing MainA/MainB SubA/SubB for rigs that have that capability
2020-03-18 17:40:30 -05:00
Michael Black d0f114b178 Add macro_name to caps structures for rig, rot, and amp devices 2020-03-05 23:48:14 -06:00
Michael Black 8b462a0242 Add set_twiddle and get_twiddle functions
Add -W switch to rigctld to set twiddle timeout..don't need switch for rigctl since it can set from there with \set_twiddle
2020-02-24 09:34:02 -06:00
Michael Black ff8ddf018c astyle all C files 2020-02-23 11:26:09 -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 7358cd02f8 Merge branch 'master' of https://github.com/Hamlib/Hamlib 2020-02-11 17:05:51 -06:00
Malcolm Herring e3cef196f7 add g/set_ext_func to API 2020-02-11 09:48:13 +00: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 b90d6daca8 Fix rigctl y command argument label 2020-02-10 08:03:19 -06:00
Michael Black fdef21f068
Merge pull request #193 from mdblack98/master
2020-02-05 Patches
2020-02-05 23:24:48 -06:00
Dawid Szymanski c6e06bfb01 ICOM Voice Keyer implemented. 2020-02-06 01:00:34 +01:00
Michael Black f9d4755cc0 Fix rig_get_ant to use bit settings 2020-02-04 07:40:24 -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 d853c36fb3
Change get_ant to add another option for icom rigs (and others if needed) 2020-01-21 17:53:12 -06:00
Malcolm Herring 85541cc257 Merge remote-tracking branch 'Hamlib/master' 2020-01-18 05:59:49 +00:00
Michael Black d57cdc1cbf
More mingw32 fixes 2020-01-15 17:21:20 -06:00
Michael Black 16f85be147
More mingw32 fixes 2020-01-15 17:05:31 -06:00
Michael Black c437bbc4d1 Fix mingw32 build 2020-01-15 16:10:35 -06:00
Michael Black 0d304ecf53 Fix mingw32 build 2020-01-15 16:06:56 -06:00
Michael Black e50f552e0f Fix mingw32 build 2020-01-15 15:57:01 -06:00
Michael Black 4be4b7033b
Clean up HAVE_LIBREADLINE mods 2020-01-15 07:04:40 -06:00
Michael Black 297bf9aa6b
Fix cppcheck warnings 2020-01-14 23:36:01 -06:00
Malcolm Herring c4e0696ee1 add token list for ext operations 2020-01-06 19:54:09 +00:00
Malcolm Herring f497f503d7 fix merge conflicts 2020-01-05 08:17:46 +00:00
Michael Black 84f27614be
Remove debug from rigctl_parse.c 2020-01-04 17:08:31 -06:00
Malcolm Herring 4975150611 Merge remote-tracking branch 'Hamlib/master'
merge latest upstream
2020-01-04 06:00:03 +00:00
Malcolm Herring fcde35815b more extended operations 2020-01-04 05:59:44 +00:00
Michael Black fb51f4f902
Fix compile warnings in rigctl.c and rigctl_parse.c 2020-01-03 12:18:27 -06:00
Michael Black 2fca5f49b8
Remove hl_sleep.h as no longer needed 2019-12-24 15:21:06 -06:00
Michael Black a401d3ac78
Fix memory leak in rigctld and cleanup debug 2019-12-20 11:22:09 -06:00
Michael Black 4b442dba94
Fix clang warning in rigctl_parse.c 2019-12-19 14:45:48 -06:00
Michael Black d81d60dfc1
Fix cppcheck warnings in rigctl_parse.c 2019-12-19 11:55:14 -06:00
Michael Black eac8077c60
Fix possible buf overrun in rigctl_parse.c 2019-12-17 08:08:39 -06:00
Michael Black f9bed84d8e
Got the w and W commands working much better
ICOM test via rigctl
Rig command: w \0xfe\0xfe\0x58\0xe0\0x03\0xfd
Reply:\0xFE\0xFE\0x58\0xE0\0x03\0xFD\0xFE\0xFE\0xE0\0x58\0x03\0x00\0x50\0x09\0x14\0x00\0xFD 17
Rig command: W \0xfe\0xfe\0x58\0xe0\0x03\0xfd 17
Reply:\0xFE\0xFE\0x58\0xE0\0x03\0xFD\0xFE\0xFE\0xE0\0x58\0x03\0x00\0x50\0x09\0x14\0x00\0xFD 17

Rig command: w FA;
send_cmd: error = Invalid parameter
Rig command: W FA; 14
send_cmd_rx: error = Invalid parameter

ICOM test via rigctld
Rig command: w \0xfe\0xfe\0x58\0xe0\0x03\0xfd
Reply:\0xFE\0xFE\0x58\0xE0\0x03\0xFD\0xFE\0xFE\0xE0\0x58\0x03\0x00\0x50\0x09\0x14\0x00\0xFD 17
Rig command: W \0xfe\0xfe\0x58\0xe0\0x03\0xfd 17
Reply:\0xFE\0xFE\0x58\0xE0\0x03\0xFD\0xFE\0xFE\0xE0\0x58\0x03\0x00\0x50\0x09\0x14\0x00\0xFD 17

Rig command: w FA;
Reply:RPRT -1
Rig command: W FA; 14
Reply:RPRT -1

Kenwood test via rigctl
Rig command: w FA;
Reply:FA00014074000;
Rig command: W FA; 14
Reply:FA00014074000;

Rig command: w \0x46\0x41\0x3b
Reply:FA00014074000;
Rig command: W \0x46\0x41\0x3b 14
Reply:FA00014074000;

Kenwood test via rigctld
Rig command: w FA;
Reply:FA00014074000;
Rig command: W FA; 14
Reply:FA00014074000;

Rig command: w \0x46\0x41\0x3b
Reply:FA00014074000;

Rig command: W \0x46\0x41\0x3b 14
Reply:FA00014074000;
2019-12-12 22:29:13 -06:00
Michael Black 9eae761579
Added 'W' command for reading a fixed number of bytes
So we can now do this...write once to see how many bytes you get back
Rig command: w \0xfe\0xfe\0x58\0xe0\0x03\0xfd
Cmd:\0xFE\0xFE\0x58\0xE0\0x03\0xFD\0xFE\0xFE\0xE0\0x58\0x03\0x00\0x00\0x09\0x14\0x00\0xFD 17

Then use 'W' to write the command with the # of bytes to expect -- no timeout this way
Rig command: W \0xfe\0xfe\0x58\0xe0\0x03\0xfd 17
Cmd:\0xFE\0xFE\0x58\0xE0\0x03\0xFD\0xFE\0xFE\0xE0\0x58\0x03\0x00\0x00\0x09\0x14\0x00\0xFD 17
2019-12-09 23:37:14 -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 2d94431848
Fix cppcheck warnings in rigctl_parse.c 2019-12-08 23:37:46 -06:00
Michael Black c9ace18daa
Fix hash sort comparison for models 2019-12-06 12:13:38 -06:00
Michael Black 1e889006b4
Minor change to rigctl_parse.c for ASCII print 2019-12-06 08:34:31 -06:00
Michael Black 9531f730b1
Change behavior of 'w' command in rigctld for binary commands
Now responds with hex string just like the input and the # of bytes
Will get hex string response for any binary data from rig from any command
Next step is to implement W command for known # of bytes in response to avoid the timeout
2019-12-06 07:58:19 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -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 ca034f4c93
Fix rigctl_parse to allow NULL in binary data the right way 2019-10-21 16:00:41 -05:00
Michael Black 99945e87cf
Fix rigctl_parse to allow NULL in binary data 2019-10-21 15:41:38 -05:00
Michael Black 44a20c6a1e
Fix chk_vfo response 2019-09-09 22:45:55 -05:00
Bill Somerville d931bd4e18
Move unnecessary global and file static variables to the stack 2019-08-29 00:39:39 +01:00
Michael Black 5d16de90ee
Fix start/end names 2019-08-23 22:53:25 -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