Mike Black W9MDB
604516ed8f
Clean up mingw compiler warning for tones.h
...
https://github.com/Hamlib/Hamlib/issues/659
2021-04-29 17:16:51 -05:00
Mike Black W9MDB
386b08dc4f
Add ctcss_list and dcs_list to rigctld so rigcctld caps reflects the connected rig
...
https://github.com/Hamlib/Hamlib/issues/659
2021-04-29 10:49:29 -05:00
Mike Black W9MDB
5473249e9a
Add power2mW and mW2power to netrigctl.c
2021-04-28 17:39:08 -05:00
Mike Black W9MDB
af499a979e
Fix freqB on rig_get_rig_info
...
https://github.com/Hamlib/Hamlib/milestone/7
2021-04-27 12:13:15 -05:00
Mike Black W9MDB
6b13c6c3a3
New rig_get_rig_info function
...
Also get_rig_info in rigctld too
Example output with rig in split mode
This is a string return to allow for easy future expansion without changing the API
New tokens may be introduced and can be skipped if not used by clients
VFOA Freq=10133000 Mode=LSB Width=0 RX=1 TX=0
VFOB Freq=10134000 Mode=LSB Width=0 RX=0 TX=1
Split=1 SatMode=0
https://github.com/Hamlib/Hamlib/issues/682
2021-04-27 11:51:43 -05:00
Mike Black W9MDB
6c13951da8
Add satmode to rig_get_vfo_info
...
Add prototype for rig_get_rig_info
https://github.com/Hamlib/Hamlib/issues/682
2021-04-27 10:32:12 -05:00
Mike Black W9MDB
b0e006ce6c
astyle files
2021-04-21 23:48:29 -05:00
Mike Black W9MDB
778758200e
A more robust rigctld that can survive the rig disappearing and coming back again.
...
This means when a rigctld client sees RIG_EIO it can keep polling and will reconnect when the rig reappears.
2021-04-10 14:22:53 -05:00
Mike Black W9MDB
c4e37ef277
Add timeout to dump_state so rigctld will use the rig's timeout value plus 200ms for additional network delays
2021-04-09 15:35:30 -05:00
Michael Black W9MDB
dd156f74e2
astyle files in preparation for 4.2 release
2021-03-26 14:26:56 -05:00
Michael Black W9MDB
0ba0b55b87
Remove debug from rigctl_parse.c
2021-03-20 23:19:01 -05:00
Michael Black W9MDB
8c11f888a3
Fix rigctld return blank mode for rig_get_vfo_info
2021-03-20 16:58:38 -05:00
Michael Black W9MDB
bb43078b25
More work on SATMODE for rigctlcom.c
...
https://github.com/Hamlib/Hamlib/issues/620
2021-03-20 11:21:11 -05:00
Michael Black W9MDB
6eee309b56
Improve rig_get_version and hamlib_version2 information to include commit information
...
https://github.com/Hamlib/Hamlib/issues/617
2021-03-19 22:56:18 -05:00
Mikael Nousiainen
90112b5769
First attempt at fixing rigctl_parse return values and unnecessary rig re-open cycles
2021-03-16 23:39:35 +02:00
Michael Black W9MDB
3bc39aaec1
astyle files is preparation for 4.2 release
2021-03-15 17:51:22 -05:00
Michael Black W9MDB
be3748d383
https://github.com/Hamlib/Hamlib/issues/514
2021-03-08 09:54:24 -06:00
Michael Black W9MDB
1fcb9404b9
More changes to support macro renaming
2021-03-06 14:59:57 -06:00
Michael Black W9MDB
635372ae84
Remove debug from rigctl_parse.c
2021-03-04 15:29:57 -06:00
Michael Black W9MDB
247c90d4b0
Should fix icom power on
...
A little more cleanup to come
https://github.com/Hamlib/Hamlib/issues/583
2021-03-04 12:18:00 -06:00
Michael Black W9MDB
82126a4f09
Phase 1 of changing sprintflst functions to use buffer length
...
https://github.com/Hamlib/Hamlib/issues/580
2021-03-03 08:03:18 -06:00
Michael Black W9MDB
10fbe9bd4a
Change get_vfo_info to also return split
...
Since this is still a new call in 4.2 not considering this an API breakage
since it shouldn't be in common use yet
2021-03-01 14:56:21 -06:00
Michael Black W9MDB
ee60a68bec
astyle files
2021-02-28 09:46:01 -06:00
Michael Black W9MDB
636d64d114
Fix compile warning try#2 in rigctl_parse.c
2021-02-18 07:11:03 -06:00
Michael Black W9MDB
bd2384e55e
Fix compile warning in rigctl_parse.c
2021-02-18 07:04:21 -06:00
Michael Black W9MDB
64b0b37d49
Move comma correct to outer level to apply in both usage cases
2021-02-11 15:52:29 -06:00
Michael Black W9MDB
4f73d24666
Correct for commas in set_level values done by Java in international mode
2021-02-11 15:25:44 -06:00
Michael Black W9MDB
6ffbf168d0
Add get_vfo_list command so rigctl can see available vfos
...
Should allow Log4OM to query VFOB/Sub freq now
Another fix to argumenet prompting with rigctl/rigctld
Add 2nd line of return for rigerror -- we well gradually be improving error info
https://github.com/Hamlib/Hamlib/issues/530
2021-02-10 17:32:59 -06:00
Michael Black W9MDB
9251dfa909
FIx rigctl/rigctl parsing of extended commands and arg prompting
...
https://github.com/Hamlib/Hamlib/issues/530
2021-02-10 12:35:50 -06:00
Michael Black W9MDB
306345442c
Fix 2nd argument parsing in rigctl_parse.c
2021-02-08 16:59:07 -06:00
Michael Black W9MDB
b3c23f82ef
Fix extra VFO: print out when rigctl --vfo is used and VFO argument is given
...
https://github.com/Hamlib/Hamlib/issues/535
2021-02-08 10:42:24 -06:00
Michael Black W9MDB
418e963c86
Add \get_vfo_info to rigctl and rigctld to allow geting freq/mode/width by vfo in one call
...
Overcomes limitation of f command where vfo swapping is needed if not in --vfo mode
rig_get_vfo_info function added
Log4OM should be able to get VFOB frequency on most rigs
https://github.com/Hamlib/Hamlib/issues/530
2021-02-07 12:45:59 -06:00
Michael Black W9MDB
1d8a010493
Fix 2nd arg prompt for rigctl
...
https://github.com/Hamlib/Hamlib/issues/447
https://github.com/Hamlib/Hamlib/issues/339
2021-02-05 17:40:10 -06:00
Michael Black W9MDB
ca8ed30f8f
astyle files
2021-01-09 10:13:17 -06:00
Michael Black W9MDB
0089964af7
Add some dumpcaps values to allow for set/get_freq and set/get_vfo functions
...
https://github.com/Hamlib/Hamlib/issues/490
2021-01-08 16:37:53 -06:00
Mikael Nousiainen
bb315270bf
Merge branch 'master' into rotator-speed-control-and-status
2020-12-02 21:46:23 +02:00
Michael Black W9MDB
c70d841b83
Add NOCHANGE_PASSBAND to icom...cascading effect on adding vfo elsewhere...which is needed anyways
...
https://github.com/Hamlib/Hamlib/issues/448
2020-11-29 23:32:14 -06:00
Mikael Nousiainen
a48f149955
Implement funcs, levels and parms + the ext variants for rotators. Add option to not change rotator speed when using the move command. Add rotator status flags. Work in progress.
2020-11-24 21:51:10 +02:00
Michael Black W9MDB
a70e45413a
Expand argument sizes for rigctl in order to accommodate Yaesu BS command reponse length
...
https://github.com/Hamlib/Hamlib/issues/424
2020-10-25 06:43:48 -05:00
Michael Black W9MDB
4e748df12b
Add -x/--uplink switch for GPredict. Will avoid reading freq from the uplink VFO 1=Sub, 2=Main
...
This will likely deprecate the twiddle option
https://github.com/Hamlib/Hamlib/issues/404
2020-10-23 11:34:42 -05:00
Michael Black W9MDB
4c43689d6c
Add wait_morse to rigctl_parse.c
...
https://github.com/Hamlib/Hamlib/issues/422
2020-10-18 14:22:42 -05:00
Michael Black W9MDB
f5e22acbaf
Shorten wording on mw2power to clean up menu alignment
2020-10-18 12:28:15 -05:00
Michael Black W9MDB
5add4b343d
Add rig_stop_morse to API and stop_morse command for rigctl
...
No rigs implemented yet
https://github.com/Hamlib/Hamlib/issues/240
2020-10-16 08:41:57 -05:00
Daniele Forsi
1e00e4e8db
Fix typos
...
Command line:
codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor,objext,ans
2020-10-11 18:03:50 +02:00
Michael Black W9MDB
6d51f65528
astyle files
2020-10-06 23:14:27 -05:00
Michael Black W9MDB
fca4cc7903
Lots of changes to get Main/Sub recognized across rigctl/rigctld boundary
...
Needs lots of testing
https://github.com/Hamlib/Hamlib/issues/395
2020-10-06 21:50:37 +01:00
Michael Black W9MDB
293a844c41
Fix W command speed by using bytes requested correctly
...
read_string now recognizes binary strings to read 5X more bytes
Fixed Reply: prompt double output and space after :
https://github.com/Hamlib/Hamlib/issues/387
2020-10-02 17:23:48 -05:00
Michael Black W9MDB
119f5e6eb9
Remove itu_region from rigctl_paparse.c and replace with constant 0 -- it's not used at all by any rig
2020-07-24 12:57:33 -05:00
Daniele Forsi
d7b332c3f7
Fix spelling errors
...
Fixed using the following command:
codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"
codespell --write-changes --summary --skip=aclocal.m4,lib --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"
Codespell home page: https://github.com/codespell-project/codespell
2020-07-24 09:02:48 +02:00
Michael Black W9MDB
0db3eafe66
Fix rigctl argument prompt for non-readline capable system
...
https://github.com/Hamlib/Hamlib/issues/339
2020-07-06 10:15:57 -05:00
Michael Black W9MDB
fa08887471
Change hamlib_cache_t enums to HAMLIB namespace
2020-07-02 10:23:41 -05:00
Michael Black W9MDB
f454cff0b7
Add check for -s switch on all utils to ensure integer is entered
2020-07-01 08:52:44 -05:00
Michael Black W9MDB
dfef8770cd
Move chk_vfo_executed so it will work without readline support
...
https://github.com/Hamlib/Hamlib/issues/326
2020-06-23 11:21:22 -05:00
Michael Black W9MDB
1fa84652f4
Fix compatibility between 3.3 rigctl and 4.0 rigctld
...
https://github.com/Hamlib/Hamlib/issues/326
2020-06-23 11:12:15 -05:00
Michael Black W9MDB
055ac839c0
Add debug to rigctl_parse.c to show full command
...
https://github.com/Hamlib/Hamlib/issues/326
2020-06-23 10:14:10 -05:00
Michael Black W9MDB
1be5c71e76
More conversions to rig_flush
...
https://github.com/Hamlib/Hamlib/issues/307
2020-06-23 08:39:11 -05:00
Michael Black W9MDB
a3c4eb9ee0
Fix cppcheck warnings
2020-06-21 22:31:31 -05:00
Bill Somerville
d9ab62445c
Deal with remote PTT type at the client end
...
Remote PTT must always be either RIG_PTT_RIG_MICDATA or
RIG_PTT_NONE. Also take care not to override any locally set PTT type
as it is feasible to use a local hardware PTT at the client end with
remote CAT control. Maybe an odd arrangement but Hamlib does not
preclude it. This is all done while preserving the accuracy of the
ptt_type value in dump_state requests.
2020-06-01 13:51:44 +01:00
Michael Black W9MDB
afeb77e6d2
rigctld will now return either PTT_NONE or PTT_RIG_MICDATA to rigctl client
...
https://github.com/Hamlib/Hamlib/issues/259
2020-05-31 22:33:56 -05:00
Michael Black W9MDB
9ecc14f897
Fix RIG_PTT_NONE detection from rigctl client by adding ptt_type to dumpcaps
...
https://github.com/Hamlib/Hamlib/issues/270
2020-05-30 16:59:36 -05:00
Michael Black W9MDB
ad4033dbfc
reduce debug level in rigctl_parse.c
2020-05-29 07:54:30 -05:00
Michael Black W9MDB
986ca4896d
Removed unsed var in rigctl_parse.c
2020-05-28 11:26:41 -05:00
Michael Black W9MDB
b8e315a526
Fix up rigctl_parse set_vfo_opt
...
https://github.com/Hamlib/Hamlib/issues/259
2020-05-27 23:44:18 -05:00
Michael Black W9MDB
677ccac4bc
astyle files
2020-05-27 12:23:08 -05:00
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
796d71dddf
Change vfo_mode to vfo_opt to distinguish it from rig mode
2020-05-26 12:01:44 -05:00
Michael Black W9MDB
823f97cf12
Some rigctld clients like Log4OM don't like the extra VFO argument being returned from the "f" command so we are removing it for now
...
https://github.com/Hamlib/Hamlib/issues/255Z
2020-05-20 09:39:43 -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
Michael Black W9MDB
0354f8b738
Ensure ptt defaults to 0 for rigctl
2020-05-13 07:22:46 -05:00
Michael Black W9MDB
d76de484a7
In rigctl_parse.c change default YAESU to be non-binary for 'w' command
...
https://github.com/Hamlib/Hamlib/issues/239
2020-05-12 08:33:36 -05:00
Michael Black W9MDB
74cdd96eda
Fix merge of icom.c
2020-05-11 18:05:11 -05:00
mdblack98
067f95dda8
Fix rigctl w command with semicolon ending
...
https://github.com/Hamlib/Hamlib/issues/239
2020-05-06 17:45:02 -05:00
mdblack98
e9ffb2991d
Fix rigctl interactive prompt
2020-05-06 08:54:34 -05:00
mdblack98
8ad431a344
Change #warn on get_channel to RIG_ENIMPL errors
...
This needs to be validated on the rigs to see the individual behavior
It only gives an error when read_only=0, read_only=1 does not give any error
We want the behavior of actually setting the rig display to be based on this flag
https://github.com/Hamlib/Hamlib/issues/227
2020-05-06 08:06:14 -05:00
mdblack98
9b96c24ff1
Add some debug to rigctl_parse.c
2020-05-03 17:07:22 -05:00
mdblack98
9e710156e3
Add ability for rigctld client to turn vfo mode on/off with (,)
...
https://github.com/Hamlib/Hamlib/issues/232
Add caching of some limited rig information
Can be adjusted or turned off with rig_cache_set_timeout_ms or in rigctl with \set_cache_timeout
https://github.com/Hamlib/Hamlib/issues/228
2020-05-01 12:03:54 -05:00
mdblack98
81c21ee314
Reduce debug info in rigctl_parse.c and rigctld.c
2020-04-30 16:52:11 -05:00
mdblack98
4cac924a3e
Remove command not found for space in rigctl_parse.c
2020-04-27 11:29:03 -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
7dcb0ae88e
astyle updates
2020-04-25 11:28:38 -05:00
mdblack98
ce2502e2f6
Change rigctl_parse.c debug to only use printable chars
2020-04-23 17:35:50 -05:00
mdblack98
9bf214fee3
Add debug to rigctl_parse.c chasing down Flex problem
2020-04-23 10:25:47 -05:00
mdblack98
3feaddfd73
Still working on Flex problem...
...
Adding debug to figure out why vfo_mode doesn't work with rigctl/rigctld
2020-04-22 11:47:56 -05:00
mdblack98
cae85c6dbe
Improve debugstatement in rigctl_parse.c
2020-04-21 12:52:40 -05:00
mdblack98
1aef1c6285
Let rigctl_parse return when EOF is detected
2020-04-21 10:34:42 -05:00
Michael Black W9MDB
9b040dc0d8
Add debug to rigctld...chasing down Flex bug
2020-04-20 17:26:57 -05:00
Michael Black
32082a14d6
Add debug to rigctl_parse.c chasing down Flex bug
2020-04-19 12:08:08 -05:00
Michael Black
774cb9d25c
More testing on Flex problem allow rigctld to continue executing
2020-04-15 12:28:42 -05:00
Michael Black
819be74317
Testing continuation of rigctld when nothing to scan
2020-04-15 11:55:07 -05:00
Michael Black
32a8ba45ae
Allow empty line for noninteractive rigctld
2020-04-15 11:33:09 -05:00
Michael Black
9f3fbc07fd
Add debug to rigctl_parse.c
2020-04-15 09:57:08 -05:00
Michael Black
ba8f56dfbb
Change sync_cb to encompass the entire transaction
...
Testing to see if the fixes the problem with Flex rigs
2020-04-15 09:37:22 -05:00
Michael Black
36ce07639b
Fix 32-bit compilation on Raspian
2020-04-05 14:37:19 -05:00
Michael Black
643be3ccbe
Fix rigctl_parse.c compile warning
2020-04-05 07:07:18 -05:00
Michael Black
c48a28a98d
Add comment to rigctl_parse.c
2020-04-04 15:49:26 -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
ae45740da8
Fix rigctl pause command
2020-04-03 13:01:22 -05:00
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
Michael Black
3dce8b01d1
Make rigctld thread safe for vfo_mode and ext_resp and change other globals to thread_local for future reference
2019-07-31 16:03:46 -05:00
Michael Black
a8b6ceebb5
Fix compile warning in rigctl_parse.c
2019-05-22 09:27:01 -05:00