Wykres commitów

402 Commity (0527fdd45531efc6b0891db8cadd8936e6868648)

Autor SHA1 Wiadomość Data
Nate Bargmann 0527fdd455 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.

(cherry picked from commit 417cb98d2e)
2012-02-28 17:58:53 -06:00
Nate Bargmann 9b1ce8fd50 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.

(cherry picked from commit c3bc66eafc)
2012-02-28 17:56:30 -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 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