Commit Graph

3848 Commits

Author SHA1 Message Date
Nate Bargmann
547fa410ef Merge branch 'bindings'
Fixed int[10] type variables (and other int[FIXLEN] type) handling in bindings

There is a bug in (all) bindings: the attenuator list is inaccessible.
The different languages (interpreters) shows it in different modes.  The
problem is that the necessary typemaps are missed in current master tree
(for SWIG). You  can check it if you grab the
bindings/pytest.py|perltest.pl|tcltest.tcl from my bindings branch
(https://sourceforge.net/u/airween/hamlib/ci/bindings/tree/bindings/),
and run with the current tree. You can see the results:

Python:
Attenuators:            <Swig Object of type 'rot_reset_t *' at 0x7f4170341990>
(note, that there is an another bug in SWIG, but it doesn't affects this
issue (the type of attenuator isn't 'rot_reset_t *'))

Perl:
Not an ARRAY reference at ./perltest.pl line 69.

Tcl:
Attenuators:    _b8c1a3c20e7f0000_p_int

After the apply the patch, the results will these:

Python:
Attenuators:            [10, 20, 30, 0, 0, 0, 0, 0]

Perl:
Attenuators:            10 20 30 0 0 0 0 0

Tcl:
Attenuators:    10 20 30 0 0 0 0 0

73, Ervin
HA2OS
2016-08-28 05:46:57 -05:00
Nate Bargmann
50ff9f91a0 Correct open error for ts850 backend
Like the ts570 backend, the ts850 backend did not define a function for
rig_open in its rig_caps.  This is now fixed.  Confirmed by Ervin,
HA2OS.
2016-08-28 05:27:43 -05:00
Hegedüs Ervin
37cac121f4 Fixed int[10] type variable error in bindings 2016-08-27 21:24:17 +02:00
Nate Bargmann
27cc91292b Fix issue with TS-570S|D open in rig_caps
If the ts570 backend was called without the radio being turned on or the
wrong IO port specified, the library would generate a number of timeouts
and then fall through to behaving as though the communications channel
were opened.  Discovered that the backend did not specify a function for
rig_open in the rig_caps structure.

Thanks to Volker Schroer, DL1KSV, for reporting this issue.
2016-08-27 07:05:35 -05:00
Bill Somerville
4e76780242 Fix an issue presenting on the Yaesu FT-450(D)
this rig is prone to giving transitory busy responses to CAT commands,
the retry mechanism for set commands was looping rather than accepting
the results of  a successful command verification read.  This is fixed
and the notification trace message is reduced to a warning.
2016-08-23 09:44:19 +01:00
Nate Bargmann
e1afcbd292 Merge pull request #24 from mdblack98/master
Updated smeter calibration for ic7300
2016-07-16 06:24:04 -05:00
Nate Bargmann
6a6dd6059e Merge pull request #23 from dh1tw/fast_set_commands
Yaesu Fast Set Commands (High throughput for commands)
2016-06-10 22:03:09 -05:00
Nate Bargmann
f8ee65357e Merge branch 'mutable-rig_list_foreach' of git://git.code.sf.net/u/bsomervi/hamlib 2016-06-10 21:53:18 -05:00
dh1tw
fd4dfd37fe Merge branch 'fast_set_commands' of github.com:dh1tw/hamlib into fast_set_commands 2016-06-10 23:06:19 +02:00
dh1tw
0b900c0b47 added get/set_conf for FT1200, FT2000, FT450, FT5000 and FT9000 2016-06-10 23:04:27 +02:00
dh1tw
7b75196a12 added get/set_conf for FT1200, FT2000, FT450, FT5000 and FT9000 2016-06-10 23:03:56 +02:00
dh1tw
092cad3112 small tab rectification 2016-06-10 23:00:43 +02:00
dh1tw
7ca35814c1 slightly improved documentation / comments 2016-06-10 22:58:14 +02:00
dh1tw
ef89d52738 Removed I/O flush ask commented by Bill, G4WJS 2016-06-10 22:56:14 +02:00
Michael Black W9MDB\n
cbe6698410 Updated smeter cal for ic7300 2016-06-10 07:45:35 -05:00
Nate Bargmann
3f28b3c58c Merge branch 'master' of https://github.com/mdblack98/hamlib 2016-06-09 21:19:08 -05:00
Bill Somerville
4e53f99e51 Adjust rig_list_foreach to allow use for unregistering
This patch changes rig_list_foreach such  that the called function may
call rig_unregister without having to access freed memory. This avoids
a valgrind  MemCheck and makes  it possible  to clean up  teh rig_list
database.
2016-06-10 01:13:57 +01:00
Michael Black W9MDB\n
5e9961309f Added send_morse and civ_version to ic7100/ic7600 2016-06-09 09:09:54 -05:00
Tobias Wellnitz
9603244910 changed token name to 'fast_commands_token' 2016-06-05 22:02:10 +00:00
Tobias Wellnitz
431e884a87 improved & hardend newcat_set_conf and newcat_get_conf;
implemented confparams array with TOK_FAST_SET_CMD for 'fast_set_commands';
implemented .cfgparams for Yaesu FT950;
2016-06-05 21:46:55 +00:00
Nate Bargmann
bf2b5c80ba Merge branch 'master' of http://video.vreeken.net/~pe1rxq/hamlib-code 2016-06-05 11:43:53 -05:00
dh1tw
eff99058d6 implemented set_conf, get_conf and Token fast_set_commands for max throughput 2016-06-05 16:26:21 +02:00
Nate Bargmann
115efc625c Merge pull request #21 from mdblack98/master
Fixed SCAN_STOP for all rigs and implmented it plus SCOPE for ic7300
2016-06-03 05:26:00 -05:00
Michael Black W9MDB\n
d5b3c049af Fixed SCAN_STOP for all rigs and implmented it plus SCOPE for ic7300 2016-06-02 23:08:22 -05:00
Jeroen Vreeken
3ee7b68d42 Add missing breaks and improve error messages 2016-05-30 14:12:01 +02:00
Jeroen Vreeken
1bf736d650 Add support for GPIO PTT. 2016-05-28 16:00:03 +02:00
Nate Bargmann
2dae9a1970 Merge pull request #19 from dh1tw/master
added instructions how to compile on OSX
2016-05-26 18:52:02 -05:00
Nate Bargmann
00fb911ce7 Merge pull request #20 from mdblack98/master
Changes for IC-7300 and IC-7200
2016-05-26 18:40:50 -05:00
unknown
8326250e07 Changes for IC-7300 and IC-7200
Added civ_version for newer rigs to use the newer command structures e.g. IC7200, IC7300, see icom.c and ic7300.c
Added ic7300_set_xit
Added ic7300_set_rit
Added ic7300_get_rit
Added ic7300_get_func
Added ic7300_set_func
Added RIG_LEVEL_KEYSPD
Fixed RIG_LEVEL_VOXDELAY
Fixed RIG_FUNC_FAGC
Fixed RIG_FUNC_VOX
Fixed RIG_FUNC_BACKLIGHT
Fixed RIG_PARM_BEEP
Fixed RIG_PARM_TIME
Fixed RIG_OP_TUNE
Removed unused items
2016-05-26 00:01:27 -05:00
Bill Somerville
06dc9ca5d6 Some more Kenwood rigs with no AI query 2016-05-21 15:17:06 +01:00
Bill Somerville
72673e323f Do not attempt to query AI state on the TS-450s as it is not supported
This change also avoids a long delay  on start up with the TS-450s due
to retries while trying to save the AI state before disabling it.
2016-05-21 03:29:58 +01:00
Hegedüs Ervin
cef8c2d157 Leave off multiply 'typedef const char * const_char_string' definition (in rig.swg and rotator.swg) 2016-05-20 22:46:23 +02:00
Hegedüs Ervin
c7476de364 Check SWIG string functions for some languages 2016-05-20 22:08:10 +02:00
Hegedüs Ervin
10fc2c295b Merge branch 'master' of http://git.code.sf.net/p/hamlib/code 2016-05-20 22:05:34 +02:00
Michael Black
1767cb5c43 Icom frame patch
I'm implementing several changes to support some functionality for the
IC7300.  In order to minimize the review process I'm submitting this
small one separately (still working on finish the IC7300 but it's some
fairly extensive changes since ICOM has changed the protocol for several
things).

For the IC7300 turning power on requires ~150 0xfe's be sent to wake up
the rig.  This causes a buffer overflow condition in icom/frame.c.  This
patch increases the buffer size and ensures no overflow.

73
Mike W9MDB
2016-05-16 16:45:23 -05:00
Ervin Hegedus
cc8b4337f9 Merge branch 'master' of http://git.code.sf.net/p/hamlib/code 2016-05-15 10:16:58 +02:00
Michael Black
f3ccfb855f tmd710 patch
Adds some functionality to the tmd710 and some notes on unknown
parameters.

73
Mike W9MDB
2016-05-08 21:38:19 -05:00
dh1tw
f5f35800ec added instructions how to compile on OSX 2016-05-09 02:15:36 +02:00
Ervin Hegedus
3b981f4b31 Merged from upstream 2016-05-08 22:00:35 +02:00
Michael Black
62a90596dc Add send_morse to icom rigs
Add send_morse to ic7300 -- now works with CQRLog CW mode

73
Mike W9MDB
2016-04-23 21:05:15 -05:00
Bill Somerville
7ddb7841f6 Do not crash if expected CTCSS tones not sepcified
Also added expected CTCSS tones to Icom IC-7300 capabilities.
2016-04-21 11:04:04 +01:00
Bill Somerville
5c947caf53 Fix a regression introduced in 222ad74 2016-04-20 15:03:05 +01:00
Nate Bargmann
a18512ccaa Merge branch 'do-not-change-bandwidth' of git://git.code.sf.net/u/bsomervi/hamlib 2016-04-19 21:54:36 -05: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
222ad74de7 Add RIG_PASSBAND_NOCHANGE as possible set_{split_,split_freq_,}mode argument
This change  allows the set_mode  functions to leave the  rig passband
unchanged  if required.  For the  few rigs  that do  not have  explcit
passband width control either current state is read and rewritten or a
"normal" width  is chosen e.g. select  a normal width when  there is a
choice like CW and CW-NARROW.
2016-04-19 21:27:52 +01:00
Nate Bargmann
22218fed79 Merge pull request #17 from mmcco/master
Fix erroneous boolean logic
2016-04-18 20:51:08 -05:00
Michael McConville
875d0fcdfb Fix erroneous boolean logic
It seems like || was used where && was intended here. Currently, the
conditions are always true, and there's no reason for them to be written
this way.

Found with Coccinelle.
2016-04-14 12:47:46 -04:00
Michael Black
bd7510315e Initial support for the IC-7300
Attached is a patch + file for the ic7300.
Has not been tested...but it's very close to the ic7200 so I have high
hopes.

73
Mike W9MDB
2016-04-09 06:56:11 -05:00
Bill Somerville
47a808dcf8 Further attempts to simplify and improve Icom CAT for split operating 2016-04-02 19:07:02 +01:00
Nate Bargmann
badeb6542d Merge branch 'config-retry' of git://git.code.sf.net/u/bsomervi/hamlib 2016-04-02 07:24:19 -05:00