Wykres commitów

1166 Commity (267d07f708bea7a6734129b469dc55fdddb5a3b5)

Autor SHA1 Wiadomość Data
Michael Black W9MDB 6f8100ffc0 Fix cppcheck warnings 2020-07-08 11:48:48 -05:00
Michael Black W9MDB 5e801fd2b5 astyle files 2020-07-07 11:39:26 -05: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 0fb7148172 Fix compilation warning in cachetest.c 2020-07-04 11:41:42 -05:00
Michael Black W9MDB 5ebb95bb43 Add testnet.c for testing IPV4/IPV6 address/port combinations 2020-07-04 07:21:02 -05:00
Michael Black W9MDB ed3a26296d Fix cppcheck warnings 2020-07-04 07:17:45 -05:00
Michael Black W9MDB b181c1720c Fix compile error on cachetest2.c 2020-07-03 08:37:17 -05:00
Michael Black W9MDB 88cf2f6da6 Fix compile error on cachetest.c 2020-07-03 08:35:39 -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 bda6d1d12d Fix make check compilation 2020-07-02 08:32:01 -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 65de309e70 Fix rigctlcom to work with Main/Sub rigs too
https://github.com/Hamlib/Hamlib/issues/302
2020-06-23 22:57:36 -05:00
Michael Black W9MDB a9d43a1fbe Remove rig_flush from rigctlcom.c -- OmniRig not happy being flushed
https://github.com/Hamlib/Hamlib/issues/273
2020-06-23 17:19:48 -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 ac1f990474 Remove AI_CANONNAME from rigctld.c
Didn't work with simple "rigctld" and no -T
https://github.com/Hamlib/Hamlib/issues/298
2020-06-22 09:52:08 -05:00
Michael Black W9MDB a3c4eb9ee0 Fix cppcheck warnings 2020-06-21 22:31:31 -05:00
Michael Black W9MDB e092a4a0a4 rigctld -T ::1 now works with rigctl -r ::1
More IPV6 testing needed on Windows and MacOS
Still not binding to link local addresses to be addressed next
https://github.com/Hamlib/Hamlib/issues/29
2020-06-21 17:47:04 -05:00
Michael Black W9MDB 542e227f85 Remove retries for rigctl.c rig_open as they were never used and didn't work 2020-06-19 06:55:56 -05:00
Michael Black W9MDB 8e7586b3b2 Fix meade Autostart clause 2020-06-10 08:16:02 -05:00
Michael Black W9MDB f71c12da94 astyle files 2020-06-09 22:37:03 -05:00
Michael Black W9MDB 490e05595a Fix debug statement warnings in cachetest.c 2020-06-09 14:57:29 -05:00
Michael Black W9MDB 1485a19e47 Fix testloc.c dmmm2dec function change
https://github.com/Hamlib/Hamlib/issues/286
2020-06-07 15:08:52 -05:00
Michael Black W9MDB 4a24f63f0f Undo readline change 2020-06-05 23:48:09 -05:00
Michael Black W9MDB 30d0335983 Fix rl_readline_name in rigctl.c 2020-06-05 23:40:52 -05:00
Bill Somerville 7d53c28ac2
Avoid 'echo -n' as macOS sh doesn't support it 2020-06-06 00:58:13 +01:00
Michael Black W9MDB 6fd6488d63 Add SHA to version info 2020-06-04 12:18:41 -05:00
Michael Black W9MDB 17b404a6c7 Add seconds to dmmm2dec
Change meade.c to support dmmm2dec seconds
https://github.com/Hamlib/Hamlib/issues/268
2020-06-03 22:33:56 -05:00
Michael Black W9MDB 207c50f36b Fix rigctlcom split indication in IF generation
Add some debug to see the cmd being requested by the client
https://github.com/Hamlib/Hamlib/issues/272
2020-06-01 12:11:15 -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 1dc461966d Fix rigctld ptt_type to correctly reflect DTR/RTS
Might need to do this with some other values too
github.com/Hamlib/Hamlib/issues/270
2020-05-31 16:42:56 -05:00
Nate Bargmann 0450345c81
Restyle tests/cachetest.sh for 4 space tabs 2020-05-31 12:52:17 -05:00
Nate Bargmann 7a549f5680
Merge branch 'remove_backticks' 2020-05-31 12:39:04 -05:00
Nate Bargmann 57e7f030bf
Really fix hamlibdatetime.h handling!
At least I hope so...
2020-05-31 07:42:02 -05:00
Nate Bargmann 2a1c11dae0
Remove backticks in tests/ 2020-05-30 21:41:58 -05:00
Nate Bargmann 682107e8df
Style and remove backticks in tests/cachetest.sh 2020-05-30 21:36:30 -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 ff4882f1cd Remove debug from rigctld.c 2020-05-30 11:13:40 -05:00
Nate Bargmann 9bafc86fec
Rename tests/hamlibdatetime.h
Rename tests/hamlibdatetime.h to tests/hamlibdatetime.h.in which is
tracked and ignore tests/hamlibdatetime.h which is not tracked and will
be generated or copied depending on whether the top source directory is
a Git working tree or not.
2020-05-30 09:18:19 -05:00
Nate Bargmann b534f1b36e
Generated hamlibdatetime.h time string is now in UTC 2020-05-30 08:03:44 -05:00
Nate Bargmann 83bfd4aabb
Restore tests/hamlibdatetime.h as a placeholder 2020-05-30 07:40:12 -05:00
Michael Black W9MDB b1f04aed62 Change fprintf to rig_debug in rigctl.c 2020-05-29 07:56:24 -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 19263cb249 Add last commit info to rigctld.c 2020-05-28 11:14:48 -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 443bc142a7 Streamline vfo_opt detectionin rigctl.c 2020-05-27 23:43:29 -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
Nate Bargmann 598cec94b4
Remove generated file from repository
tests/hamlibdatetime.h is a generated file and its content will change
locally so to avoid confusion do not keep an older copy in the
repository.
2020-05-27 07:54:41 -05:00
Nate Bargmann 2de3f95bcd
Ensure hamlibdatetime.h works with VPATH builds 2020-05-27 07:54:09 -05:00
Nate Bargmann 4395f540eb
Rename datebuilt.h to hamlibdatetime.h in tests/Makefile.am
The name conflict caused 'make dist' to fail.
2020-05-27 07:04:36 -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 07f1417881 Change vfo_mode to vfo_opt to distinguish it from rig mode 2020-05-26 11:59:50 -05:00
Michael Black W9MDB 48692b4bc9 Adding version control file for utilities 2020-05-23 10:59:29 -05:00
Michael Black W9MDB fb68d9f561 Add better version info to utilities 2020-05-23 10:58:25 -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 2813f0ef63 astyle files 2020-05-11 22:39:10 -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 f8321a36f4 Fix cppcheck warnings and fill out unused RIG_LEVEL items 2020-05-05 23:33:40 -05:00
mdblack98 a3b1b055b3 Fix cppcheck warnings 2020-05-05 11:32:09 -05:00
mdblack98 3794bc5a0a Fix cppcheck warnings 2020-05-05 09:38:36 -05:00
mdblack98 8c73836b48 Fix cppcheck warnings in rigctld.c 2020-05-05 09:29:30 -05:00
mdblack98 f0437aa575 Fix cppcheck warnings in rotctld.c 2020-05-05 09:26:40 -05:00
mdblack98 bf1a05084d astyle files 2020-05-03 17:24:42 -05:00
mdblack98 9b96c24ff1 Add some debug to rigctl_parse.c 2020-05-03 17:07:22 -05:00
mdblack98 0bd52c259d Add a bit more debug to rigctld.c 2020-05-03 17:06:34 -05:00
mdblack98 67f7bd91e0 clean up example.c and it now does a reopen test at the end 2020-05-03 16:55:04 -05:00
mdblack98 ef1d42d2e1 Add rig_close test and clean up example.c 2020-05-03 16:10:07 -05:00
mdblack98 d75272ddac Fix caching math and clean up cachetest.c
https://github.com/Hamlib/Hamlib/issues/228
2020-05-02 23:10:55 -05:00
mdblack98 2fcecd7d7f Remove debug from rigctld.c 2020-05-02 07:42:09 -05:00
mdblack98 c5f7857f6e Add cachetest and cachtest2 to make check 2020-05-01 16:28:48 -05:00
mdblack98 d4de834ee4 Fix compile warning in cachetest2.c 2020-05-01 16:28:30 -05:00
mdblack98 a124bcafb7 Remove compile warning in cachetest.c 2020-05-01 16:26:37 -05:00
mdblack98 ec180bdda8 Fix rig_get_channel in dumpmem.c 2020-05-01 16:26:05 -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 600a674891 Add cache invalidation for kenwood and yaesu
Reset all kenwood/yaesu backend versions to 0 since main backend is new
https://github.com/Hamlib/Hamlib/issues/226
2020-04-27 09:41:33 -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 b75a29f795 Fix braces in rigctld.c 2020-04-22 12:37:56 -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 cefa092350 Change rigctld main loop to continue on EOF 2020-04-21 11:31:22 -05:00
mdblack98 1aef1c6285 Let rigctl_parse return when EOF is detected 2020-04-21 10:34:42 -05:00
Michael Black W9MDB ff79dc800c Adding debug to chase down Flex problem disconnect on profile change 2020-04-21 07:51:47 -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 44b835bde5 Fix buffer overrun in rigmatrix.c 2020-04-09 17:51:52 -05:00
Michael Black 9a49167b69 Update long command for -Y rigctl option and man page 2020-04-05 23:35:20 -05:00
Michael Black 20d5209e3b Add -Y option to rigctl to ignore rig open error...good for testing rig commands on rigs you don't have 2020-04-05 23:29:47 -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 ee87d5e6df Fix buffer overrun in all utilities
Change MAXCONFLEN to 1024 bytes for some future proofing
2020-04-01 14:51:50 -05:00
Michael Black 8fd5e16363 astyle files 2020-03-26 11:11:46 -05:00
Michael Black 0c8130db00 Add range_list to xg3.c 2020-03-25 23:32:56 -05:00
Michael Black 9e89c4455a Add VFO & ANT definitions to rigs that were missing them 2020-03-25 23:07:42 -05:00
Michael Black e3cfdbd453 Fix cppcheck warnings in memcsv.c 2020-03-24 10:00:46 -05:00
Michael Black aa7e822d98 cppcheck-suppress rigctl_parse.c 2020-03-24 10:00:22 -05:00
Michael Black 73b4257cfb cppcheck-suppress rigctlcom.c 2020-03-24 09:58:04 -05:00
Michael Black bda5feb1bd More cppcheck changes 2020-03-23 10:13:02 -05:00
Michael Black 8eb09c2a38 More cppcheck fixes 2020-03-23 07:52:01 -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 6d9c81cf6a A couple minor edit changes 2020-03-17 22:54:29 -05:00
Michael Black 7f9bbde383 Improve vfo switch message a bit 2020-03-16 14:23:40 -05:00
Michael Black 3dbc411f5b Fix testfreq.c 2020-03-16 08:51:18 -05:00
Michael Black 4150f12f36 Suppress unimportant error in rigctld.c 2020-03-15 16:31:19 -05:00
Michael Black 33babeaeff Fix rigctdl multiple connections 2020-03-15 16:19:43 -05:00
Michael Black 35fffc4f38 astyle files 2020-03-15 15:32:46 -05:00
Michael Black ed4b77726a Add VFO None for available VFOS 2020-03-15 09:52:47 -05:00
Michael Black 39ba535c77 Add Date/Time to rigctl version 2020-03-15 09:50:03 -05:00
Michael Black e4058156b1 Change rigctld to keep the rig open all the time
When a single client connects/disconnecta/connects it takes a bit too long to open the rig sometimes
2020-03-12 12:06:06 -05:00
Michael Black 98e1316f11 Fix -L printout for rotctl south_zero 2020-03-10 17:00:44 -05:00
Michael Black f46067977a Fix rotctl set_conf 2020-03-10 08:43:42 -05:00
Michael Black e704f7783c Fix rotctl state printout to show az_offset and el_offset 2020-03-10 07:07:21 -05:00
Michael Black 57c7f2a19f astyle files 2020-03-05 23:49:22 -06: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 d856248178 Add RIG_MODEL macro and change all rigs to support it 2020-03-05 08:44:18 -06:00
Michael Black 18cc118443 Change -W switch to -X 2020-02-24 22:56:18 -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 657d329ed2 Comment out one line to eliminiate warnings for now 2020-02-23 09:50:23 -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 8f87c22995 Add ANT_UNKNOWN to antenna print 2020-02-17 23:02:25 -06:00
Michael Black 6d3dd3f014 Add dumpcaps for new 5-antenna range settings 2020-02-17 06:43:02 -06:00
Michael Black 48a89e72a7 Change Low Power and High Power in dumpcaps to show resolution of value 2020-02-11 23:39:08 -06:00
Michael Black 35eb5bfa5c Change sprintf_ant to print ant names instead of numbers 2020-02-11 23:32:19 -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
Bill Somerville 376b328ecb
Report unrecognised PTT and DCD types in rigctl and rigctld 2020-01-26 11:31:40 +00:00
Bill Somerville 99e1948cd3
Made PTT and DCD options consistent between rigctl and rigctld 2020-01-26 10:46:57 +00:00
Michael Black 4c9df1624b
Merge branch 'master' of https://github.com/Hamlib/Hamlib 2020-01-23 11:56:35 -06:00
Michael Black 1ea577e505
Merge pull request #182 from ra1nb0w/ic746
ic746.c: fix ic746pro_get_channel() and implement ic746pro_set_channel()
2020-01-23 11:40:19 -06:00
Michael Black 09df074570
Fix -ldl linking when --disable-winradio is used 2020-01-22 23:39:03 -06:00
Michael Black 2b96ab4907
Remove -ldl from tests/Makefile.am -- need to find another solution 2020-01-21 18:03:50 -06:00
Michael Black ebc951e05a
Merge branch 'master' of https://github.com/mdblack98/Hamlib 2020-01-21 18:02:11 -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 2ce7721506 Add -ldl to tests/Makefile.am 2020-01-21 11:58:25 -06:00
Davide Gerhard 38d76f33bf
tests/{memcsv.c,memsave.c}: partially revert commit 4072f9f4
this partially revert the commit 4072f9f4
because it introduced duplication of channel_desc
2020-01-21 10:52:48 +01:00
Nate Bargmann 9e88710f0b
Merge branch 'master' of https://github.com/malcolmh/Hamlib into malcolmh-master 2020-01-20 03:44:59 -06:00
Michael Black 4072f9f4a5
Fix ic746pro_get_channel and buffer overflow
Add channel_desc to dump_csv and dump_xml
2020-01-18 08:53:18 -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 ccaaa41d83
Merge branch 'master' of https://github.com/mdblack98/Hamlib 2020-01-15 15:58:11 -06:00
Michael Black 5646eb3fe4
Move hist_dir_stat 2020-01-15 15:58:04 -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
Michael Black c7ace4d7ad
Fix cppcheck warnings in uthash.h 2020-01-14 17:02:36 -06:00
Michael Black 4cc80fa603
Fix up some cppcheck warnings in rotctl_parse.c 2020-01-14 14:18:47 -06:00
Michael Black 0fd7278682
Fix cppcheck warning in rigswr.c 2020-01-14 12:20:06 -06:00
Michael Black e37b9d9a8b
Fix cppcheck warning in rigsmtr.c 2020-01-14 12:19:16 -06:00
Michael Black b6cfd63089
Fix cppcheck warning in rigmem.c 2020-01-14 11:44:49 -06:00
Michael Black 7a2dca368a
Fix cppcheck warnings in ampctl_parse.c 2020-01-14 10:04:08 -06:00
Michael Black 745090876b
Fix cppcheck warnings in uthash.h 2020-01-14 10:03:35 -06:00
Michael Black 578cad19bf
Fix cppcheck warnings in ampctld.c 2020-01-13 15:45:31 -06:00
Michael Black dc19f2820e
Fix cppcheck warning in ampctl_parse.c 2020-01-13 15:41:24 -06:00
Michael Black d04bc80ab6
Fix cppcheck warning in ampctl_parse.c 2020-01-13 15:33:46 -06:00
Michael Black 0c63e6efd3
Fix cppcheck warning in ampctl.c 2020-01-13 15:31:19 -06:00
Malcolm Herring a4295a224e Merge remote-tracking branch 'mdblack/master' 2020-01-09 07:54:15 +00:00
Michael Black 7ee3a702f5
Replace all usleep with hl_usleep
Several places where usleep max value could be overflowed
New hl_usleep can take values > 1000000
2020-01-07 23:18:56 -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 c8eaf13a3d
Readding rigctld.c accidental removal 2019-12-25 07:58:19 -06:00
Michael Black 4e5e533248
Fix cppcheck warnings 2019-12-24 15:48:36 -06:00
Michael Black 520066e3e7
Fix cppcheck warnings in rigctlcom.c 2019-12-24 15:41:57 -06:00
Michael Black 4dbe66193c
fix cppcheck warnings in sprintflst.c 2019-12-24 15:24:01 -06:00
Michael Black 2fca5f49b8
Remove hl_sleep.h as no longer needed 2019-12-24 15:21:06 -06:00
Michael Black 57952c5927
Fix cppcheck warnings in rotctl_parse.c 2019-12-24 15:12:05 -06:00
Michael Black 9012049a37
Fix cppcheck warnings in ampctl_parse.c 2019-12-24 15:11:41 -06:00
Michael Black 9b9a6c55f5
Fix cppcheck warning in testrig.c 2019-12-23 23:36:14 -06:00
Michael Black bd2149bd8a
Fix cppcheck warning in rotctl.c 2019-12-23 23:14:55 -06:00
Michael Black 17fb84044f
Fix cppcheck warning in rigsmtr.c 2019-12-23 23:13:40 -06:00
Michael Black 475012771b
Fix cppcheck warning in rigsmtr.c 2019-12-23 23:11:36 -06:00
Michael Black a401d3ac78
Fix memory leak in rigctld and cleanup debug 2019-12-20 11:22:09 -06:00
Michael Black 1dbd633d5a
Missed semicolon 2019-12-19 18:05:23 -06:00
Michael Black 2703423b72
Think I got the fd socket leak on windows fixed now 2019-12-19 18:03:02 -06:00
Michael Black bfe28e8032
Fix fd leak with fsockout 2019-12-19 17:09:18 -06:00
Michael Black 4b442dba94
Fix clang warning in rigctl_parse.c 2019-12-19 14:45:48 -06:00
Michael Black 9882448494
Fix cppcheck warnings in rigctlcom.c 2019-12-19 11:59:12 -06:00
Michael Black d81d60dfc1
Fix cppcheck warnings in rigctl_parse.c 2019-12-19 11:55:14 -06:00
Michael Black 776e21017b
Add rx_range example 2019-12-19 11:51:28 -06:00
Michael Black 0bae216af3
Fix cppcheck warnings in ampctl_parse.c 2019-12-19 11:50:30 -06:00
Michael Black 00d578074e
Remove Recommend statment from rigctl.c 2019-12-19 09:38:50 -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 011efe0452
Merge branch 'master' of https://github.com/Hamlib/Hamlib 2019-12-11 07:47:24 -06:00
Nate Bargmann 2c884a970a
Change ampctld default TCP port to 4531 2019-12-11 06:28:17 -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 8e0ddf743c
Fix cppcheck warnings in ampctl_parse.c 2019-12-08 23:43:01 -06:00
Michael Black 646900862b
Fix cppcheck warnings in dumpmem.c 2019-12-08 23:42:47 -06:00
Michael Black ddd5c43a71
Fix cppcheck warnings in rigmem.c 2019-12-08 23:42:32 -06:00
Michael Black 0207b45ff8
Fix cppcheck warnings in rigctlcom.c 2019-12-08 23:39:56 -06:00
Michael Black 2d94431848
Fix cppcheck warnings in rigctl_parse.c 2019-12-08 23:37:46 -06:00
Michael Black e56db8c985
Fix cppcheck warnings in rigctl.c 2019-12-08 23:33:51 -06:00
Michael Black f7399eb8df
Fix cppcheck warnings in example.c 2019-12-08 23:30:23 -06:00
Michael Black 8a3df9735e
Fix cppcheck warnings for ampctl_parse.c and redef amp_set_powerstat 2019-12-08 23:13:33 -06:00
Michael Black c9ace18daa
Fix hash sort comparison for models 2019-12-06 12:13:38 -06:00
Michael Black 68f5a7edd7
Fix cppcheck error in ampctl_parse.c 2019-12-06 10:25:28 -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 60cfecd5b4
Hopefully suppress arm compilation warning 2019-12-03 16:15:33 -06:00
Michael Black 5a9ab0b76d
Add retry to rigctl open 2019-12-03 08:22:35 -06:00
Michael Black a7335595de
Add az and el offset to rotctl & rotctld 2019-12-02 23:30:08 -06:00
Michael Black 72565fe621
Fix ic7300 VFOs and sprintflst to be more generic 2019-12-02 14:46:41 -06:00
Michael Black e6264c4f6f
Add PKT mode translations to rigctlcom 2019-12-02 12:23:04 -06:00
Michael Black 12494c92d5
Add MainA, MainB, SubA, and SubB vfo choices for icom rigs with SATMODE
Clean up debug statements in icom.c
2019-12-02 07:50:05 -06:00
Michael Black 1ceae3a3f3
Remove debug from rigctlcom.c 2019-12-01 09:13:35 -06:00
Michael Black dc3f33bc11
Change %z to %d with casts for portability 2019-11-30 13:05:21 -06:00
Michael Black c69502e11c
Fix rigctld for win32 build 2019-11-30 10:27:49 -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 46a9fff6ad
Fix rotctl C command 2019-11-23 23:11:27 -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 8028663ef9
Simplify unnecessary persistence of extended response state
The \chk_vfo  command to  rigctl_parse() accepts an  extended response
prefix but  does not act  upon it, instead it  is held over  until the
next command.  This seems unnecessary  as an extended  response prefix
can just as  easily be added to the following  command if required. By
removing this  carried over  state the processing  of commands  can be
greatly simplified as per this commit.
2019-08-29 14:27:22 +01: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 63fc56e9c8
Fix dumpmem.c channel structure 2019-08-23 08:16:51 -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 12fd5100d5
Adding amptest.sh 2019-07-31 15:47:50 -05:00
Michael Black d6a72d15bf
Remove redundant check in dumpcaps.c 2019-07-31 15:13:34 -05:00
Michael Black 436449211f
Make rigctld_vfo_mode a stack variable for threading 2019-07-31 10:56:21 -05:00
Nate Bargmann cf75f3fdf7
Merge branch 'master' of https://github.com/mdblack98/Hamlib into mdblack98-master 2019-06-25 18:59:21 -05:00
Bill Somerville 8465a76fd2
Ensure compilation works with a pre C11 compiler 2019-06-16 23:14:46 +01:00
Michael Black 7d8ad6f47c
Fix dumpcaps.c prntbuf warning 2019-06-12 16:25:13 -05:00
Michael Black b23734fb5b
Fix rig.h for merge 2019-06-12 16:13:56 -05:00
Michael Black 7e9c566944
Add first cut at amplifier control 2019-06-12 15:52:35 -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 ab7527d95a Fix compile warning in rotctl_parse.c 2019-05-22 11:15:30 -05:00
Michael Black a8b6ceebb5 Fix compile warning in rigctl_parse.c 2019-05-22 09:27:01 -05:00
Michael Black 5f43509d82 astyle format of rigctlcom.c 2019-02-13 15:23:27 -06:00
Michael Black 585e79bdf2 Add ability for rigctlcom to work with Ham Radio Deluxe 2019-02-13 15:22:54 -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 3937de0452 Fix segfault in rigctlcom with no args and improve usage 2019-01-21 08:10:43 -06:00
Michael Black ccd3ca48c6 New utility to allow non-hamlib-aware programs to use hamlib rigs via COM ports
Virtual com ports providing a TS-2000 Emulator
Example connecting N1MM or such to FLRig via COM5/COM6 virtual COM pair
rigctlcom -m 4 -R COM5 -S 115200
N1MM connects to COM6 TS-2000 115200 8N1
2019-01-20 19:33:22 -06:00
Michael Black d4f95010dc merge master 2019-01-14 09:36:35 -06:00
Michael Black 4b69188f67 Fix some 64bit items and add RIG_FUNC_NB2 for TS-890S 2018-12-23 17:41:10 -05: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 160c8f015d Fixup for 64-bit in memcsv.c 2018-12-21 17:19:22 -05:00
Michael Black 64b35ccbee Add PRXll macro for 64-bit use 2018-12-21 16:46:48 -05:00
Michael Black 422b266b9b Change RIG_MODE and RIG_FUNC to 64-bit values 2018-12-21 12:39:20 -05:00
Nate Bargmann a915f1e69e Quell clang6 warning of format string not a literal
The warning was:

  CC       rotctl_parse.o
../../hamlib/tests/rotctl_parse.c:1012:50: warning: format string is not a string literal (potentially insecure)
      [-Wformat-security]
            snprintf(cmd_name, sizeof(cmd_name), parsed_input[0] + 1);
                                                 ^~~~~~~~~~~~~~~~~~~
../../hamlib/tests/rotctl_parse.c:1012:50: note: treat the string as an argument to avoid this
            snprintf(cmd_name, sizeof(cmd_name), parsed_input[0] + 1);
                                                 ^
                                                 "%s",
1 warning generated.
2018-11-05 20:07:34 -06:00
Nate Bargmann b0ebeaeda4 Quell gcc 8.2.0 defined but not used warning
On Debian Buster gcc ((Debian 8.2.0-8) 8.2.0) was throwing the following
warning:

  CC       rigctl.o
../../hamlib/tests/rigctl.c:125:18: warning: ‘have_rl’ defined but not used [-Wunused-const-variable=]
 static const int have_rl = 0;
                  ^~~~~~~

and:

  CC       rotctl.o
../../hamlib/tests/rotctl.c:113:18: warning: ‘have_rl’ defined but not used [-Wunused-const-variable=]
 static const int have_rl = 0;
                  ^~~~~~~

Turns out I didn't have the readline-dev package installed.  As the have_rl
variable is wrapped in CPP macros, it indeed is not used when readline is not
available.
2018-10-25 18:26:25 -05:00
Nate Bargmann ac83428f7b Merge branch 'master' of https://github.com/JeroenVreeken/Hamlib 2018-08-05 21:11:40 -05:00
Nate Bargmann 478a7a25c1 Merge branch 'new_man_pages' 2018-07-29 22:11:31 -05:00
Nate Bargmann f9b2f27373 Correct the -l option output header text 2018-07-29 21:38:54 -05:00
Jeroen Vreeken 9108deab8b Merge branch 'master' of github.com:Hamlib/Hamlib 2018-06-30 16:11:31 +02:00
Michael Black W9MDB cd1fdfe6ce Allow rotctld to continue operationg aftr tcp or serial rig disappears 2018-05-09 07:31:42 -05:00
Michael Black W9MDB a91e85e9fa Allow rigctld to continue operating after tcp or serial rig disappears 2018-05-08 22:37:32 -05:00
Jeroen Vreeken 9c7ce6eacb Merge branch 'master' of github.com:Hamlib/Hamlib 2018-05-06 00:12:23 +02:00
Nate Bargmann 5f05a0491e Move utility man page files to doc/man1
Maintain manual page files in the doc directory rather than the source
directories.
2018-04-30 07:19:59 -05:00
Nate Bargmann 743f67edaa Update man pages for content and conformance
As some content was getting dated, refresh the content of the various
manual pages and while doing so, update the pages to conform more
closely to man-pages(7), man(7), and groff_man(7).
2018-04-29 22:41:50 -05:00
Michael Black W9MDB 35a28884f9 Fix -Z option on rigctld 2018-04-25 17:48:14 -05:00
Michael Black W9MDB abca0653fd Fix compile warnings for tests 2018-04-22 18:38:16 -05:00
Michael Black W9MDB 9ba1f1a972 Fix compile warning on strings in tests 2018-04-22 18:38:16 -05:00
Michael Black W9MDB 6c369109e6 Add debug time stamps via -Z and --debug-time-stamps 2018-04-15 15:06:52 -05:00
Jeroen Vreeken bfa948ebc5 Add GPIO and GPION options for DCD.
Also bump abi version since the config params struct needed resizing.
2018-03-29 23:55:25 +02:00
Michael Black W9MDB ca85f4740c Allow rigctld to reopen after error 2018-03-27 16:13:37 -05:00
Nate Bargmann b0485aa475 Merge branch 'lazy-rigctld' of git://git.code.sf.net/u/bsomervi/hamlib into g4wjs-lazy-rigctld 2018-03-16 13:58:46 -05:00
Michael Black W9MDB c1c5639c00 Fix morse send of a single space 2018-03-13 09:05:03 -04:00
Bill Somerville 489564a1af Make rig_open() call in rigctld lazy and add graceful termination
Because some  rigs lock their  front panel when  opened for CAT  it is
helpful  to   call  rig_close()  in   rigctld  when  no   clients  are
connected. This change does that.

A  CTRL+C handler  is also  added to  allow rig_close()  to be  called
during exit.
2018-03-12 19:47:45 +00:00
Nate Bargmann b692fb22ef Formatted tests/ to final coding guidelines 2017-10-06 18:58:42 -05:00
c vw d008ca6e5d Microham support. Use "uh-rig" for rig_pathname to talk to the
microHam device for CAT. If you want hardware PTT via the microham
device, use DTR method and ptt_pathname "uh-ptt".
2017-09-10 19:56:59 -05:00
Nate Bargmann d489b8bcb5 Apply formatting to 'tests/' directory
Format per style guide.
2017-08-10 05:46:12 -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 2828422e92 Stop rigctld and rotctld crashing when service threads cannot write to clients
Although there is  no reasonable recovery from SIGPIPE we  do not want
to terminate the server process,  just the client servicing thread. We
do this by setting the disposition for SIGPIPE to ignored, this causes
an EPIPE to be returned from blocked write() and send() calls that end
up trying to send to a broken pipe/socket.
2017-05-22 21:56:41 -05:00
Michael Black 35fda10dfd Fixed buffer overflow in rigctl_parse and rotctl_parse 2016-11-01 16:02:15 -05:00
Jeroen Vreeken 1bf736d650 Add support for GPIO PTT. 2016-05-28 16:00:03 +02:00
Bill Somerville fcb93b98fa Switch to POSIXLY_CORRECT mode for getopt_long()
This  makes the  first non-option  argument end  getopt_long() parsing
stop rather  than shuffling non-option  arguments to the end.  This is
necessary  so that  rig/rotator command  language arguments  can start
with a  '-' character and  also it enables  the '-' pseudo  command to
switch to reading commands from stdin work correctly.

The change  also make checking for  the '-', switch to  stdin, command
stricter in that it must be where a command is expected and it must be
a word containing exactly a single '-' character.

Overall this allows the following styles of use:

$ rigctl R -

$ rigctl - <<EOF
>R -
>EOF

R -

$ echo "R -" | rigctl -

R -
$ rigctl -m 1 M CW -1

$ rigctl F 434000000 - <<EOF
>M FM 15000
>f m
>EOF

M FM 15000
f 145000000

m FM
15000

$

as well  as the command  line interpreter operation where  no commands
nor '-' are provided:

$ rigctl

Rig command: R -

Rig command: r
Rptr Shift: -

Rig command: f
Frequency: 145000000

Rig command: m
Mode: FM
Passband: 15000

Rig command: F 434000000

Rig command: f
Frequency: 434000000

Rig command: q

$
2016-04-19 21:52:02 -05:00
Bill Somerville 21c346453a Implement combined split VFO frequency and mode setting.
CAT protocols that don't allow  direct addressing of VFOs require that
the  "other" VFO  be queried  or set  via a  select then  get/set then
select back  to original or  swap then  get/set then swap  again. When
both frequncy and  mode need to be set the  sequences can be optimized
if a single funciton is avaiable.

This enhancement adds those single functions rig_set_split_freq_mode()
and  rig_get_split_freq_mode()  with  a default  impelementation  that
calls the individual rig_{get,set}_split_{freq,mode}() functions. Back
ends  can choose  to  implement  an optimized  version  which is  used
instead of the default if present.

Using these  functions when  an optimized implementation  is available
allows the TX VFO's frequency and mode to be set in a single operation
with  only  one   VFO  exchange  or  selection  either   side  of  the
operation.  Many CAT  protocols  are very  efficient  when getting  or
setting both  frequency and mode  and some even  combine the two  in a
single command.

The letters 'K' and 'k' are used for the rigctl short command name for
these functions.
2016-03-23 17:09:26 +00:00
Nate Bargmann 4595f77f99 Touch up rigctld.c and rotctld.c with astyle
Prior reformat had only been a reindent with Emacs.  Now use astyle.
2016-02-14 18:05:55 -06:00
Nate Bargmann 9b45fce776 Reformat rigctld.c and rotctld.c
Several lines in each file benefitted from formatting so just reformat
the entire files into Linux C Style.
2016-02-12 20:46:38 -06:00
Bill Somerville e4e17ce862 Improve IPv6 portability and consistency
After  discussions with  Greg  N1DAM  I have  changed  the dual  stack
support to  explicitly allow IPv4  connections mapped to IPv6  for any
AF_INET6 address  since BSD  as well as  Windows defaults  this socket
option to on (disallowed).

IPv4 mapped to IPv6 makes sense  for Hamlib servers since starting two
servers  one  for each  protocol  family  (the  other option)  is  not
possible  since there  is only  a single  rig/rotator which  cannot be
shared between two servers.
2016-02-12 20:20:25 -06:00
Bill Somerville 04c545b9b9 Only use IPv6 features on Windows versions that support it (>=XP) 2016-02-12 15:30:41 +00:00
Nate Bargmann cc21c64662 Advise on use of int64_t cast
Advise on testing with clang compiler and using int64_t cast with PRIll
macro.

Fix GCC warning when 'make distcheck' is run.
2016-02-09 11:26:23 -06:00
Michael Black 95a99fa37d Quell clang warnings in tests directory
Remove unnecessary parentheses in memcsv.c.

Fix cfp->u.c.combostr as old check was always true since it's statically
allocated.

RRR
Mike W9MDB
2016-02-09 11:12:28 -06:00
Nate Bargmann efb7860e4d Install daemon man files to man1
As the rigctld and rotctld programs are actually user programs and
installed in ${prefix}/bin, it was erroneous to install the associated
manual pages into the man8 directory.  Correct this error going forward
and install them into man1 with the other manual pages.
2016-01-12 15:53:53 -06:00
Bill Somerville aebe52a45e Add a new command line option '--no-restore-ai' ('-n') to rigctl
As Hamlib now restores the rig auto information state (AI) on exit
there is now a need to disable that functionality so that rigctl can
be used to set/reset AI mode on the rig explicitly.

A new  public API  function 'rig_no_restore_ai()'  is also  added that
allows any  client to  disable this auto  AI restore  functionality if
required. Most  clients should do nothing  as restoring AI state  is a
good thing.
2015-12-04 00:22:01 +00:00
Bill Somerville 6061cae8df Proper IPv6 and dual stack networking for rotator net daemon
This means that rigctl & rigctld  now work with default arguments on a
modern Windows  machine with dual  stack and localhost being  [::1] as
the first interface returned by getaddrinfo().

Try all the interfaces return by DNS lookups to establish a connection
or listening  port. Handle  Windows network  errors correctly  so that
meaningful messages are printed.

The rigctl program now accepts  IPv6 numeric addresses in the portname
field like [<addr>}:<port> for example  the IPv6 loopback on port 4531
would be [::1]:4531.
2015-11-27 19:41:04 +00:00
Bill Somerville ca7cbd89f4 Fix compiler warnings 2015-11-27 19:17:47 +00:00
Bill Somerville 181a3e9697 Proper IPv6 and dual stack networking
This means that rigctl & rigctld  now work with default arguments on a
modern Windows  machine with dual  stack and localhost being  [::1] as
the first interface returned by getaddrinfo().

Try all the interfaces return by DNS lookups to establish a connection
or listening  port. Handle  Windows network  errors correctly  so that
meaningful messages are printed.

The rigctl program now accepts  IPv6 numeric addresses in the portname
field like [<addr>}:<port> for example  the IPv6 loopback on port 4531
would be [::1]:4531.
2015-11-27 13:47:48 +00:00
Nate Bargmann 81775bc03d Add library paths for tests.
Richard Sahw, KF5OIM, reported a failure in the C++ test when attempting
to build an RPM package in a clean environment.  This patch amends the
LD_LIBRARY_PATH in the generated shell scripts in the c++ and tests
directories.
2015-09-03 12:03:53 -05:00
Stephane Fillod 5b5386c711 rigctl: help "?" at set_vfo/set_split_vfo prompt 2015-02-19 23:52:13 +01:00
Bill Somerville 182a014597 Fix manpage errors. 2014-05-02 20:06:35 +01:00
Bill Somerville e939279c4c Add read commands from stdin and pause command features to rotctl.
The capability to read commands from  standard input and the new pause
command allow regression tests to be written for rotctl as well as for
rigctl.
2014-05-02 19:44:29 +01:00
Bill Somerville 68ec5b272f Corrected typos in rigctl.1 manpage. 2014-05-02 19:43:35 +01:00
Bill Somerville 6e17923dd4 Prefix action function names so as not to clash with system names.
The prefix rigctl_ is added to all parser action routine names so that
they do not clash with system names.
2014-05-02 19:16:28 +01:00
Bill Somerville 2fe2587ee5 Add a pause command to the rigctl command set.
This allows repeatable regression testing where a command has a finite
"settling" time.  This will  probably be  of most  use in  the related
rotctl command set.
2014-05-02 18:41:50 +01:00
Bill Somerville f9ad2c21d9 Facility for rigctl to read commands from standard input.
In order to write regression tests before making disruptive changes to
back ends I have added a new command to the rigctl parser which is '-'
that causes it  to read commands from stdin until  they are exhausted.
The commands  must be white  space separated and can  include comments
from a '#' character until the end of the current line.
2014-04-30 03:05:34 +01:00
Nate Bargmann fafbb772c5 rigctl.c/rotctl.c: fix closing brace placement
A closing brace was improperly placed before a pair of CPP #endif
directives rather than between them.  Caught by a cppcheck audit.
2014-03-07 05:55:54 -06:00
Nate Bargmann 6ea09a138a Clean up build system, fix test programs
Clean up various left over commented lines from dlopen to single
libhamlib transition.  Remove unneeded configure variables.

Correct minor inconsistencies in Makefile.am files.

Define a new variable, READLINE_LIBS, so that only programs that offer
Readline support are linked against it.

Fix various compilation warnings and errors in test files revealed with
'make check' on MinGW.

Define rig and rotor backends to (mostly) be built in alphabetical
order.
2013-12-10 20:14:22 -06:00
Nate Bargmann f66da71719 Honor LIBUSB_LIBS when set by user
LIBUSB_LIBS was not passed to the LDADD variable for the Hamlib test
utilities.  This fix permits the user invoking 'configure' to specify a
static libusb to include the libusb symbols in libhamlib:

	./configure LIBUSB_LIBS="/usr/lib/i386-linux-gnu/libusb.a"

Note that the actual path will vary from system to system.
2013-09-23 14:27:31 -05:00
Nate Bargmann c39b51327b Revise test for MinGW with sleep()
Revise the preprocessor conditional test for MinGW variables.  Tested on
all of my MinGW installations.  The prior test was broken by MinGW 3.0
on Debian Unstable.
2013-09-19 21:59:42 -05: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 36f5f4cf6a Revert to previous handling of getaddrinfo()
Use the system gettaddrinfo function when possible as before.  Tested on
GNU, Cygwin, MinGW on Linux, and MinGW on Windows.  Under MinGW the
replacement getaddrinfo is used.  Perhaps this is an area for
investigation to be certain MinGW really doesn't supply getaddrinfo.
This reverts some of the patches from Remi Chateauneu in commit
60019c9.  This fixes build issues encountered building the Windows
binary daily snapshots.

Enabled static library build by default at configure time.

Fixed pthread library linking for the ars backend on MinGW.
2013-09-15 19:47:49 -05:00
Remi Chateauneu 60019c9444 Monolitic libraries. 2013-09-08 14:56:28 +01:00
Nate Bargmann 1fd85febee MinGW build: Fix sleep() substitution
MinGW does not natively support the POSIX sleep() function so we have
had an override that was a part of the GR_PWIN32 macro and included in
the generated config.h file.  When compiling for Windows on POSIX using
MinGW, Autotools will detect sleep() and set HAVE_SLEEP which prevented
the substitution from being included in the source.  Adding a test for
_WIN32 (set by MinGW's gcc) then caused a warning from src/network.c on
POSIX about winsock2.h needing to be included before windows.h.  As
config.h needed to be included first, the solution to break out the
substitution that includes windows.h into its own file.  This patch
provides that solution and allows the code to compile cleanly on POSIX,
using MinGW on both POSIX and Windows, and on Cygwin.
2013-07-29 12:38:22 -05:00
Nate Bargmann ea97c7c3e9 Preserve CFLAGS & CXXFLAGS for the configure user
The Automake manual makes it clear that certain user variables such as
CC, CFLAGS, CXXFLAGS, CPPFLAGS, and so on are to be preserved for the
user running configure.  This patch cleans up such assignments and
assures that PTHREAD_CFLAGS and so forth are applied to those targets
that require it.
2013-05-25 06:00:36 -05:00
Nate Bargmann b9ff04abf0 Fix W2k 'freeaddrinfo' error
Trying to run the pthread enabled binaries on W2k resulted in an error
dialog with the text, "The procedure entry point freeaddrinfo could not be
located in ws2_32.dll".  A Microsoft support page
(http://support.microsoft.com/kb/955045) hints that when 'ws2tcpip.h' is
included that 'wspiapi.h' should be included as well.  Since MinGw
includes both files, this patch corrects the runtime error on W2k
2013-05-18 07:31:40 -05:00
Nate Bargmann 2d6361397b Link to Pthread-win32 library in MinGW
The AX_PTHREAD macro sets the PTHREAD_LIBS variable, however we were not
providing this variable to the needed *_LDFLAGS variable.  With the
addition of PTHREAD_LIBS, rigctld and rotctld are now multi-threaded on
MS Windows.  Tested on Windows 2000, Windows XP, and Windows 7.
2013-05-17 21:34:24 -05:00
Nate Bargmann 245ab86441 Quell compiler warnings on Cygwin
Quell mostly harmless warnings from the older GCC installed in Cygwin.
Produces a quiet compilation.
2013-05-09 22:06:39 -05:00
Nate Bargmann 69c2ceb957 Set LD_LIBRARY_PATH for test programs
Setting LD_LIBRARY_PATH for testcpp and testrig in the generated test
shell scripts corrects a long-standing bug that broke 'make check'.

Add Hamlib_design.eps to allow 'make dvi' to succeed when running
'make distcheck'.
2013-05-07 22:22:07 -05:00
Nate Bargmann 2f8b6c8d51 Quell compiler warnings in test programs 2013-05-07 21:35:06 -05:00
Nate Bargmann 911497ba85 man page corrections 2013-03-13 15:02:43 -05:00
Nate Bargmann 7ebe65fee8 rotctl.1: Document Readline and history additions
Document Readline and history additions to rotctl along with new
-i/--read-history and -I/--save-history options.

Document use of ROTCTL_HIST_DIR environment variable to set an alternate
path for the .rotctl_history file.

Other minor edits.
2013-02-22 21:35:54 -06:00
Nate Bargmann 275acd2a60 rotctl.c: Add options to save/read command history
As commands from a previous session may not be desired, make reading the
history file at rotctl start and writing to it at rotctl close optional
by use of the -i/--read_history or -I/--save-history options.
Compilation is conditional on having Readline and Readline History
support detected at build system configuration time.

History is stored in '$HOME/.rotctl_history' by default.  An alternate
path may be specified by setting the ROTCTL_HIST_DIR environment
variable:

$ ROTCTL_HIST_DIR=~/.rotctl rotctl -iI

will temporarily set the history directory to /home/USER/.rotctl and
create .rotctl_history if it does not exist.  If the file cannot be read
or written a warning message will be given on stderr.
2013-02-22 21:06:30 -06:00
Nate Bargmann e34a94ad66 rotctl_parse.c: Implement history recall
Implement first cut at storing and recalling history.  At this point
history is retained for the current session only.

History is stored as complete command lines even if values are entered
at separate prompts.  Readline allows editing and even deleting recalled
history lines.
2013-02-22 21:06:30 -06:00
Nate Bargmann e549fee11a rotctl_parse.c: Implement readline interactive mode
Initial implementation of Readline input handling.  Only if 'configure'
finds Readline will it be enabled and when enabled it will only be used
by rotctl in interactive mode.  Passing rotator commands from the rotctl
command line and rotctld use the original input handling which has not
been modified.
2013-02-22 21:06:30 -06:00
Nate Bargmann 991d1ea24c rigctl.1: Document Readline and history additions
Document Readline and history additions to rigctl along with new
-i/--read-history and -I/--save-history options.

Document use of RIGCTL_HIST_DIR environment variable to set an alternate
path for the .rigctl_history file.

Other minor edits.
2013-02-22 21:06:30 -06:00
Nate Bargmann 9f342cfd23 rigctl.c: Add options to save/read command history
As commands from a previous session may not be desired, make reading the
history file at rigctl start and writing to it at rigctl close optional
by use of the -i/--read_history or -I/--save-history options.
Compilation is conditional on having Readline and Readline History
support detected at build system configuration time.

History is stored in '$HOME/.rigctl_history' by default.  An alternate
path may be specified by setting the RIGCTL_HIST_DIR environment
variable:

$ RIGCTL_HIST_DIR=~/.rigctl rigctl -iI

will temporarily set the history directory to /home/USER/.rigctl and
create .rigctl_history if it does not exist.  If the file cannot be read
or written a warning message will be given on stderr.
2013-02-22 21:06:30 -06:00
Nate Bargmann 978a269689 rigctl_parse.c: Implement history recall
Implement first cut at storing and recalling history.  At this point
history is retained for the current session only.

History is stored as complete command lines even if values are entered
at separate prompts.  Readline allows editing and even deleting recalled
history lines.
2013-02-22 17:26:32 -06:00
Nate Bargmann d54d737ba5 rigctl_parse.c: Implement readline interactive mode
Initial implementation of Readline input handling.  Only if 'configure'
finds Readline will it be enabled and when enabled it will only be used
by rigctl in interactive mode.  Passing rig commands from the rigctl
command line and rigctld use the original input handling which has not
been modified.
2013-02-22 17:26:32 -06:00
Nate Bargmann 7e9f628648 rigctld/rotctld: Remove -e|--end-marker option
Remove support for deprecated "End Marker" protocol in rigctld and
rotctld.
2013-02-05 14:40:41 -06:00
Nate Bargmann 477c9c7b28 Update rigctl/d man pages for querying certain parameters
The rigctl and rigctld programs support a so far undocumented feature of
being able to query supported modes in set_mode and set_split_mode,
Funcs in set_func and get_func, Levels in set_level and get_level, Parms
in set_parm and get_parm, as well as the vfo_op, scan, ans set_trn
functions.  The query may be used to get a list of supported tokens for
a given function by a rig backend.
2013-01-23 18:42:10 -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 e2bb0106a2 rigctl.1, rotctl.1: Document Q and q commands
Document expected behavior when the Q or q command is given.

Thanks to Jim, N2ADR, for the report.
2012-10-27 22:30:05 -05:00
Nate Bargmann 3bb0556f9f rigmatrix.html target is conditional in tests/Makefile
If libgd-dev is not installed, an Automake conditional will disable the
rigmatrix.html target in tests/Makefile.  Optionally, this target may
also be disabled by use of the '--disable-html-matrix' option passed to
the configure script.  By default the configure script will enable the
target if the libgd development files are found and disable it when they
are not.
2012-10-17 21:06:03 -05:00
Nate Bargmann 02ef0d7ce0 Merge branch 'master' of ssh://hamlib.git.sourceforge.net/gitroot/hamlib/hamlib
Conflicts:
	macros/ax_python_devel.m4

Kamal's update was corrected by a newer version of
macros/ax_python_devel.m4 I had applied earlier.
2012-10-05 12:38:02 -05:00
Nate Bargmann 55d034c834 Build system: Syntax and formatting cleanup
Cleaned up M4sh syntax for variable quoting, replaced shell 'if'
conditionals with M4sh AS_IF macro and shell 'case' with AS_CASE macro.
Properly quoted macro variables.  Added comments to configure.ac
describing actions, commented out obsolete macros, commented obsolecent
macros, and added comments for major sections.

Corrected a Mingw linker error on the .EXE files adding
'--enable-auto-import' to their LD flags.  Testing this commit on win32
shows that rigctld is now working properly.  Will need to port this to
the Stable branch and test.

Replaced older local macros with newer replacements from GNU Autoconf
archive.
2012-09-27 14:22:07 -05:00
Kamal Mostafa 3466512dbd Fix spelling errors 2012-08-21 19:54:50 -07:00
Nate Bargmann e8d429fc45 Minor edits to clarify shell commands. 2012-05-12 21:11:52 -05:00
Nate Bargmann 47ec7efdb3 Update man pages for sorted -l output
The output from [rig|rot]ctl[d] using the -l|--list option is now sorted
by model number in ascending order.  Document it.
(cherry picked from commit 45def7bbcf)
2012-03-01 21:22:49 -06:00
Nate Bargmann 417cb98d2e Tidy up rigctl --list output
Implemented hash table to temporarily store and sort the rig models by ID
to print the --list by model numbers.  Hash is implemented using
uthash.h, see http://uthash.sourceforge.net/

Suppressed rig backend register output by setting rig_debug_level to 0
for list output.

Removed riglist definition of RPC backend.
2012-02-13 15:28:42 -06:00
Nate Bargmann c3bc66eafc Tidy up rotctl --list output
Implemented hash table to temporarily store and sort the rot models by ID
to print the --list by model numbers.  Hash is implemented using
uthash.h, see http://uthash.sourceforge.net/

Suppressed rot backend register output by setting rig_debug_level to 0
for list output.

Removed rotlist definition of RPC backend.
2012-02-13 15:28:03 -06:00
Nate Bargmann 8c145cfc6b Merge branch 'API_3'
Conflicts:
	.gitignore
	Makefile.am
	NEWS
	c++/Makefile.am
	configure.ac
	hamlib.spec.in
	rpcrig/rpcrig.x
	rpcrig/rpcrig_backend.c
	rpcrig/rpcrig_backend.h
	rpcrig/rpcrig_proc.c
	rpcrig/rpcrigd.c
	rpcrot/rpcrot.x
	rpcrot/rpcrot_backend.c
	rpcrot/rpcrot_backend.h
	rpcrot/rpcrot_proc.c
	rpcrot/rpcrotd.c
	src/Makefile.am
	tests/rigctl.1
	tests/rotctl.1
2012-02-03 15:03:39 -06:00
Stephane Fillod 8b26904aa5 Quell cppcheck warnings 2012-01-29 23:37:59 +01:00
Nate Bargmann 5f3226c2aa Remove ASCII degree symbol
If a degree symbol is needed in the text output, UTF-8 will need to be
used.
2012-01-12 15:40:48 -06:00
Nate Bargmann cb1732fc2a Fix error for 'make check'
Implement several simple shell scripts to exercise various aspects of
Hamlib.  The previous implementation relied on the installation of
DejaGNU and the tests/config and tests/*.test directories were not
distributed.  Also, later Autotools documenation seems to suggest that
DejaGNU is to be replaced by Autotest.  The generation and use of simple
scripts was chosen to provide a usable check target until Autotest can
be supported.
2012-01-12 15:34:38 -06:00
Andrew Errington 1a77ef9eb9 Initial support for CM108 GPIO contorl of PTT
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-01-11 06:16:51 -06:00
Nate Bargmann 1229a0a42a Assure NULL terminated strings in tests programs.
Various strncpy operations could result in a port pathname that is not a
NULL terminated string as the allowed string length is the same size as
the buffer per the strncpy manual page.  This is corrected by assuring
that the allowed length is FILPATHLEN - 1.
2012-01-07 20:36:50 -06:00
Nate Bargmann 59516cbb26 Man page edits. 2012-01-07 20:36:18 -06:00
Nate Bargmann f409370200 Update rigctl/rigctld man pages.
Document maximum pathname length for -r, -p, and -d options.
Note that -r and -m options are not optional.
Bump copyright date to 2012.
2012-01-06 23:21:31 -06:00
Nate Bargmann b54932ec96 Assure NULL terminated strings in rigctl/rigctld
The -r, -p , and -d options could result in a port pathname that is
not a NULL terminated string as the allowed string length is the same
size as the buffer per the strncpy manual page.  This is corrected by
assuring that the allowed length is FILPATHLEN - 1.
2012-01-06 23:11:35 -06:00
Stephane Fillod da80137819 Add support for RIG_PORT_UDP_NETWORK
Also some copyright year update,
and default serial device on MacOSX
2012-01-06 09:28:24 +01:00
Dariusz Bismor, SQ9KEJ 90f44c2b73 rigmem: implement CSV file loading
Patch SF#3406922 from Dariusz, SQ9KEJ, allowing for loading csv
(comma-separated values) files with rigmem.

Signed-off-by: Stephane Fillod <fillods@users.sf.net>
2011-09-11 15:25:36 +02:00
Nate Bargmann 96b1460e24 Remove set but unused variable errors in tests. 2011-08-26 15:07:40 -05:00
Nate Bargmann 0882cd696d Update GPL/LGPL header in tests source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:37 -05:00
Stephane Fillod 23c28e84e8 Kill RPC backends and rpc.rigd/rpc.rotd 2011-08-21 13:23:01 +02:00
Stephane Fillod 421909bad2 Let set_ptt() select source, either TX mic or TX data 2011-07-20 00:09:50 +02:00
Nate Bargmann 9ebd14decd Fix man page typos
Somehow RPTR snuck in where RPRT should be.  Oops!
2011-07-08 22:55:54 -05:00
Nate Bargmann dfc6db399b Add Win32 port usage to man pages. 2011-06-21 13:42:43 -05:00
Stephane Fillod 4e24dd6eee set_level/get_level: Improved help "?" to show already supported ext_levels
Author: Nirgal Vourgère <contact_hamlib@nirgal.com>
2011-06-14 23:18:27 +02:00
Stephane Fillod 0bfec55f10 set_trn/get_trn: more helpful/coherent args
* set_trn: Added help "?"
* get_trn: Returns OFF/RIG/POLL rather than 0/1/2, so that it matches

Author: Nirgal Vourgère <contact_hamlib@nirgal.com>
2011-06-14 23:10:47 +02:00
Stephane Fillod bf1b3b982d add a command to halt rigctld 2011-06-14 23:09:33 +02:00
Stephane Fillod cd5950c2ac Emulate get/set channel through vfo_op (FROM/TO_VFO) 2011-06-01 09:19:55 +02:00
Stephane Fillod 07bc66e7ab Port rigctld/rotctld to Mingw32
Sockets under Windows require specific startup and cleanup calls.
Besides, the standard fdopen() does no work on socket descriptors,
and has to be worked around thanks to _open_osfhandle().
2011-03-27 19:13:22 +02:00
Kamal Mostafa, KA6MAL cf276991f2 Fix segfault on improper -C syntax
Avoid null pointer segfault when -C param is specified with no '=' e.g.
"rigctl -C foo".

Thanks to Charles Suprin <hamaa1vs@gmail.com> for the report.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3058 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-21 19:32:00 +00:00
Nate Bargmann, N0NB ab6ef4c4fb Improve description of -t command option and w command and provided
command line invocation example.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3014 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-12-09 01:27:50 +00:00
Stéphane Fillod, F8CFE 6897781c5f fix previous commit, which was preventing the parsing of ext_levels/ext_parms
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3011 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-12-02 22:23:57 +00:00
Stéphane Fillod, F8CFE 8690fb0594 Implement exit status according to manual page:
1 if there was an invalid command line option or argument;
  2 if an error was returned by Hamlib.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3009 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-12-01 21:41:55 +00:00
Stéphane Fillod, F8CFE 9de8e3f1d2 Add Mark/Space serial parity
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2996 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-10-26 19:31:09 +00:00
Stéphane Fillod, F8CFE 34862ff7cd fix in the example, thanks to Pino ZP4KFX
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2946 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-06-29 20:59:05 +00:00
Stéphane Fillod, F8CFE a702f4a8ae - Tx VFO arg checking in set_split_vfo()
- get/set channel improvements (stdout flushing, ext_levels, ..)


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2928 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-28 19:47:35 +00:00
Stéphane Fillod, F8CFE a7c37f8a69 necessary stdout flushing in interactive mode with prompt, under win/wine
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2909 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-05 20:11:55 +00:00
Stéphane Fillod, F8CFE c3bb49d5c5 Only dump serial specs for serial type rigs
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2896 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-25 17:30:52 +00:00
Stéphane Fillod, F8CFE ecda326342 - allow litteral command for \move
- added dump-caps option to rotctl


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2895 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-25 17:29:53 +00:00
Stéphane Fillod, F8CFE 6ee58f0bff get ready for IPv6
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2883 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-16 20:50:14 +00:00
Stéphane Fillod, F8CFE 1404b754fe portability of long long
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2880 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-16 19:04:00 +00:00
Stéphane Fillod, F8CFE 2a15ba8d4b details for AGC level
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2879 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-14 20:08:22 +00:00
Stéphane Fillod, F8CFE a4ceac893e mode listing
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2871 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-13 18:36:29 +00:00
Stéphane Fillod, F8CFE d8d60cd2e7 error checking when parsing
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2867 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-05 10:15:36 +00:00
Stéphane Fillod, F8CFE 453995e7c0 fix segfault and allow mode listing in rigctl
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2865 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-05 10:01:09 +00:00
Stéphane Fillod, F8CFE 462ebd1df4 Copyright date update
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2851 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-03-07 14:00:34 +00:00
Stéphane Fillod, F8CFE 5be226561b fix mixup
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2844 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-03-03 08:34:00 +00:00
Stéphane Fillod, F8CFE 12609c8f97 fix warning
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2843 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-03-03 08:33:27 +00:00
Nate Bargmann, N0NB b261cea22e Reserve '#' for comments in Extended Response Protocol
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2842 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-03-01 22:37:06 +00:00
Nate Bargmann, N0NB 1f6604b188 Complete addition of Extended Response Protocol to rigctld
Update and synchronize rig and rot ctl(d) man pages
Update testctld.pl for ERp.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2837 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-18 00:18:54 +00:00
Nate Bargmann, N0NB 61b0062547 Correct command section for rotctld in POD
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2836 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-15 01:37:39 +00:00
Nate Bargmann, N0NB e6f311cdd0 Really set rotctl/rotctld to follow debug level set on command line.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2835 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-14 23:58:54 +00:00
Nate Bargmann, N0NB cba52fadf5 Remove default verbose setting of 2, call it when needed.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2834 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-14 23:41:19 +00:00
Nate Bargmann, N0NB 162c7533b2 New file for rotctl/rotctld dump_caps support.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2833 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-14 23:20:07 +00:00
Nate Bargmann, N0NB f6abb91e0f Synchronize rotctl and rotctld man pages.
Give "NET rotctl" example in roctl man page.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2832 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-14 23:01:53 +00:00
Nate Bargmann, N0NB 121f4a996b Implement and document Extended Response Protocol for rotctld
New test program, testrotctld.pl for rotctld
Implemented locator.c functions in rotctl and rotctld



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2831 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-14 22:18:00 +00:00
Nate Bargmann, N0NB 67c2ecfefb Rewritten to support Extended Response protocol
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2828 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-08 23:38:08 +00:00
Nate Bargmann, N0NB 14841cf118 Removed -b|--block option in favor of using '+' prepended to a command
from the client to request Extended Response protocol.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2827 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-08 23:37:07 +00:00
Nate Bargmann, N0NB 7adf24115f Added support for set/get _split_vfo, _split_freq, and _split_mode,
power2mW and mW2power and tested with rigctld.

Refactored regexps for user entry tests.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2825 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-06 15:07:28 +00:00
Nate Bargmann, N0NB fb4f7258bc Rewrote power2mW to work with modern rigctl and rigctld.
Added mW2power for conversion the other way from power2mW.

Text label edits to dumpcaps



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2824 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-06 15:05:17 +00:00
Nate Bargmann, N0NB bc35b7df95 Added \dump_caps as tested
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2822 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-04 01:00:22 +00:00
Nate Bargmann, N0NB bfba07889b Now tests for state of "block" and "vfo" in rigctld and acts accordingly.
More rewrites to consolidate separate set_ and get_ functions into rig_cmd
Added support for handling \dump_caps in a limited fashion



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2821 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-04 00:58:44 +00:00
Nate Bargmann, N0NB 5e47dcf8d3 Added two new commands to rigctl_parse.c, \chk_blk and \chk_vfo to allow
clients to query the state of the -b|--block or -o|--vfo options from rigctld

Cleaned up strings in dumpcaps.c to remove duplicates to facilite
their use as key:value pairs

Updated rigctld man page for new commands



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2820 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-04 00:53:56 +00:00
Nate Bargmann, N0NB f698692e83 First cut as rewrite to make testctld.pl interactice ala rigctl.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2816 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-01-28 12:26:45 +00:00
Nate Bargmann, N0NB ef4fea6522 Add info about 'rigctld', 'rotctld', and 'testctld.pl
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2815 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-01-25 12:20:35 +00:00
Nate Bargmann, N0NB af20dcae80 Upload correct version this time...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2814 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-01-25 03:44:25 +00:00
Nate Bargmann, N0NB 52a87d096c Added initial support for Block protocol in rigctld and documented same.
Rewrote testctld.pl for new block protocol and included it with 
source distribution.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2813 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-01-24 23:24:20 +00:00
Terry Embry, KJ4EED bad429c950 Eliminated "warning: ignoring return value of scanf"
for functions set_channel() and power2mW()

 line, and those below, will be ignored--

M    rigctl_parse.c


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2780 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-12-06 21:07:23 +00:00
Stéphane Fillod, F8CFE 45e49fc24c missing R&S backend
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2763 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-11-03 21:04:36 +00:00
Stéphane Fillod, F8CFE 5f4a438b62 fix syntax, thanks to debian qa for noticing
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2762 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-11-03 20:47:15 +00:00
Stéphane Fillod, F8CFE eaf810ea3a check for memory support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2724 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-09-14 07:27:58 +00:00
Stéphane Fillod, F8CFE 3f7d602f56 copyright clarification
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2709 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-06-23 20:30:22 +00:00
Stéphane Fillod, F8CFE c14de60c41 Use pkg-config check for libxml2 instead of ancient m4 macro, patch by Priit Laes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2677 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-03-21 11:19:02 +00:00
Stéphane Fillod, F8CFE 3aeba72501 copyright year
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2647 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-20 12:26:13 +00:00
Stéphane Fillod, F8CFE 17a23e0f55 typo
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2638 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-17 08:03:52 +00:00
Stéphane Fillod, F8CFE bef812b7e4 report hamlib version upon startup
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2637 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-17 08:03:22 +00:00
Stéphane Fillod, F8CFE 303b617827 added RIG_CONF_BUTTON
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2623 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-06 17:28:38 +00:00
Stéphane Fillod, F8CFE 17c07cc3af fix segfault with extra levels
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2598 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-28 22:49:58 +00:00
Nate Bargmann, N0NB 081831054f Minor documentation updates.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2586 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-15 03:45:08 +00:00
Terry Embry, KJ4EED bdd0bf3e25 memset channel_t chan in get_channel
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2560 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-05 02:20:59 +00:00
Stéphane Fillod, F8CFE 025c1f4dd1 flexible command termination for send_cmd
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2557 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-04 14:49:17 +00:00
Terry Embry, KJ4EED a18e75470f Partially implemented set_channel
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2556 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-04 14:23:43 +00:00
Martin Ewing, AA6E 0cc33fb486 Example updates
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2553 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-04 01:27:43 +00:00
Terry Embry, KJ4EED dec970e047 Adjusted Bandwidths: to see NFM, NAM modes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2549 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-03 14:16:49 +00:00
Martin Ewing, AA6E 5af5c82996 use rawstrength.i which matters in PPC compile
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2545 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-02 03:51:40 +00:00
Stéphane Fillod, F8CFE be4c171328 fix send_cmd bug, patch by Rob Frohne, KL7NA
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2544 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-01 18:19:26 +00:00
Terry Embry, KJ4EED f2aac246f2 Added mw2power testing into power2mW test
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2542 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-01 17:21:02 +00:00
Terry Embry, KJ4EED f4aca76ff0 Adjusted Bandwidths: loop to see all modes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2520 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-23 22:32:43 +00:00
Stéphane Fillod, F8CFE b68f1d1baf dump CTCSS/DCS list
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2501 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-14 19:01:16 +00:00
Terry Embry, KJ4EED 22a0167a81 Changed vfo to txvfo = RIG_VFO_TX in set_split_freq(), get_split_freq()
Changed vfo to txvfo = RIG_VFO_TX in set_split_mode(), get_split_mode()
RIG_VFO_TX is "split or uplink vfo";
This may/will break code, maybe we want a vfo option instead?
Terry  KJ4EED


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2499 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-13 22:51:36 +00:00
Stéphane Fillod, F8CFE 6686489197 fix 'vfo_mode stuck to 0' bug found by Zhang Bo
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2496 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-10 08:37:35 +00:00
Thomas Beierlein, DL1JBE 207d485b6b Made a comment that 'make check' needs an installed hamlib library.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2474 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-09 14:26:04 +00:00
Stéphane Fillod, F8CFE c436bdcd46 exit in case of socket creation error
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2455 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-02 12:39:36 +00:00