Commit Graph

562 Commits

Author SHA1 Message Date
Brian G. Lucas
9dad962473 Some calls to thd72_get_menu_item where passing wrong values for range check. 2018-10-01 12:12:37 -05:00
Michael Black W9MDB
ee890449cd Fix kenwood SQ squelch set by adding rx# 2018-08-16 15:31:25 -05:00
c vw
80633e6d2e Fixes for the piHPSDR backend. 2018-06-27 17:11:35 +02:00
Michael Black W9MDB
30ec001057 Really fix TS590S/SG RIG_LEVEL_STRENGTH 2018-06-25 08:56:06 -05:00
Michael Black W9MDB
52ddbfd574 Add RAWSTR to ts590 2018-06-22 10:22:43 -05:00
Michael Black W9MDB
b0cd3ada11 Fix TS590S/SG RIG_STRENGTH readings 2018-06-15 10:32:57 -05:00
Michael Black W9MDB
ee13edb4e8 Improve emulation performance and promote TS2000 to stable 2018-05-18 07:29:55 -05:00
Brian G. Lucas
29e976878f Fix a format so that it works with Windows. Can't test it because
I have no Windows machines.
2018-05-10 11:55:55 -05:00
Brian G. Lucas
c35056ff15 Implement some more interfaces. Comment out get_chan_all_cb because
the block read routine doesn't work.
2018-05-09 16:12:49 -05:00
Brian G. Lucas
2e6877a196 WIP: thd72 driver. More interfaces implemented. Other cleanup. 2018-05-08 16:34:53 -05:00
Brian G. Lucas
ae072324dd WIP: thd72 driver. First cut at get_channel(). Other cleanup. 2018-05-04 16:56:06 -05:00
Brian G. Lucas
ef6a3bd8ed WIP: thd72 driver. Try to simplify the menu based interface. 2018-05-02 16:16:12 -05:00
Brian G. Lucas
84f9bfcfcf WIP: thd72 driver. More level, func, and parm stuff works. 2018-05-02 15:12:19 -05:00
Brian G. Lucas
e970be4350 Pretty much a complete re-write of thd72.c, since the old one didn't
work at all.  Many commands have been tested with real hardware.
But more work remains to be done.
2018-05-01 14:41:15 -05:00
Michael Black W9MDB
dcb8b3f91f Fix compile warnings for kenwood 2018-04-22 18:38:16 -05:00
Nate Bargmann
dd97dbefd2 Merge branch 'tmd710-rewrite' of https://github.com/mikaelnousiainen/Hamlib into mikaelnousiainen-tmd710-rewrite 2018-03-17 07:05:07 -05:00
Mikael Nousiainen
3eeea56bfc Remove incorrectly included file 2018-03-17 09:45:03 +02:00
Nate Bargmann
516a112678 Fix kenwood.c to compile with MinGW 2018-03-16 08:11:07 -05:00
Mikael Nousiainen
3cdbad1064 TM-D710: Rewrite the whole backend, since most of it was not working anyway. TM-D710 protocol is significantly different from TM-D700 or the TH handheld ones. Most features work, but the control protocol is quite limited: for example, it is not possible to change the selected frequency band of a VFO. Additionally, selecting MEM VFO uses the previously selected band (VFOA/VFOB), since there are no separate MEM VFO definitions for A/B bands. Added FMN mode to string constants, so that it can be used with the set_mode command. 2018-03-15 09:33:01 +02:00
Michael Black W9MDB
b455affe7f Fix K3 send_morse and change generic to 0x20 padding per manual. Tested on TS-2000 2018-03-12 17:22:52 -04:00
Adrian Chadd
9f9c03a5cb Upgrade TS-711 and TS-811 to work.
The TS-711 and TS-811 use an IF10 board just like the TS-140/TS-680/TS-590
and thus share a lot of the same commands with it.

Tested:

* TS-711A
* TS-811E
2018-01-18 00:17:41 -08:00
Michael Black W9MDB
f4629f6669 Add Flex 6400/6600 2017-12-25 10:24:08 -05:00
Bill Somerville
f9856c6b85 Take out unecessary delays in K(X)3(S) back end. 2017-08-12 22:09:39 +01:00
c vw
ed8a0fa5cd Get rid of compiler warnings, fix Kenwood RF get_level 2017-08-08 11:49:01 +02:00
Bill Somerville
3fade92c0d Fix some issues with commands not supported by TS-2000 CAT emulations
Various SDR  consoles are  supported by the  TS-2000 back  end, ensure
that commands  unsupported are  not sent  to them.  Added a  flag that
shows back end is talking to an emulation like SmartSDR or PowerSDR.
2017-08-03 06:26:27 -05:00
Bill Somerville
72a9bff55d Use snprintf throughout kenwood/kenwood.c for buffer safety
Also extend one short buffer.

Also read current VFO when asked to set something on it when we do not
already know which VFO is current.
2017-07-16 15:12:09 +01:00
c vw
555197a9a5 Getting rid of compiler warnings, especially
- using "abs" function for long or double arguments
 - passing data which is not initialized
2017-07-10 09:55:45 +02:00
Michael Black W9MDB
0b1a58d308 Fixed indentation warnings detected by newer gcc
Fixed one error discovered by these warnings in easycomm.c
2017-06-28 18:00:20 +01:00
c vw
e156ef65fb fixes for kenwood backends 2017-05-22 19:09:47 +02:00
Jae Stutzman
22cdd4f5bd Added new AGC control for PiHPSDR 2017-02-10 06:07:46 -06:00
Jae Stutzman
a8af27a8ce Updated PiHPSDR backend defaults 2017-01-25 20:45:24 -06:00
Jae Stutzman
230430c4e9 Clears potential garbage data in read buffer prior to command being sent 2017-01-25 20:45:24 -06:00
Jae Stutzman
c9fb98b214 Added HPSDR backend
Added HPSDR backend which emulates TS-2000 over the network on TCP
2017-01-21 20:58:00 -06:00
Bill Somerville
08adaf2079 Add get and set split functions for the TS450S 2017-01-20 00:22:37 +00:00
Bill Barker
10eb19e92a Add test for Flex 6300 ID
Adds test for ID 907 for the Flex 6300.
2016-12-23 21:06:47 -06:00
Bill Somerville
ce8189f029 Revised kenwood rig busy response handling
The TS-790  is very prone  to slow  command responses, this  change no
longer  retries  the sending  of  the  original  command when  a  busy
response "?;"  is seen, instead  it simply  waits one retry  delay and
tries response  read again. It  may be that  this has always  been the
correct action  but most rigs do  not return busy responses  or behave
better when a command is retried.
2016-11-20 10:55:51 +00:00
Bill Somerville
5b8e56c8ef Add rig_{open,close} functions to TS-790 backend 2016-11-20 10:55:50 +00:00
Nate Bargmann
3f903cbc64 Fixup rig caps pointer in K3 patch 2016-11-19 12:53:31 -06:00
Michael Black
1e462e10e0 Move K3 DT0 before mode switch, add version info to electraft rig open, WSJT-X VOX rig split now works 2016-11-19 10:38:54 -06:00
Dario Ventura
74b33af1b5 TS2000 Satellite mode and Gpredict
Hi,
Gpredict issues set_vfo commands on sat track engage to switch a/b vfo
and set downlink/uplink frequency.

Although this generally works, Kenwood TS2000 has its own style during
satellite operation:
1) vfo B is *always* for uplink
2) vfo A is *always* for downlink
so vfo selection (FR command) doesn't work: kenwood firmware doesn't
recognize it in Satellite mode.

When Gpredict is trying to set_vfo on TS2000 in Satellite mode it loops
on unrecognized FR command and freezes.

Attached patch checks for TS2000 Satellite mode status and if ON
"disables" set_vfo command.
This allows Gpredict to track downlink/uplink frequency on TS2000 (you
need to configure manually downlink/uplink band on the rig before
engaging)

Please be aware this isn't a "Gpredict patch": it fixes set_vfo behavior
in satellite mode according to ts2000 firmware.

73, Ciao

Dario Ventura, IZ7CRX
2016-10-28 08:02:09 -05:00
Stephane Fillod
f778fe1677 xg3: fix buffer overflow
The issue was found by dcb314.
2016-09-04 18:10:27 +02: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
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
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
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
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
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
Bill Somerville
6fb4f72b2a Use a sensible port timeout value for the Kenwood TS-850
This  back end  used a  480  second timeout  which effectively  blocks
retries.  The  long timeout  claimed to  be for  something to  do with
tuning  which I  assume is  related to  an auto  ATU blocking  rig CAT
responses.  The standard retry mechanism should cope with this without
resorting to an artificially extended timeout.
2016-03-29 22:00:53 +01:00
Bill Somerville
50a739fa81 Use rig state rig port retry option rather than from capabilities
The   rig->state.rigport  retry   option  can   be  overridden   by  a
configuration  option and  therefore should  be used  rather than  the
initial capabilities default value.

Thanks to Ervin HA2OS for finding this defect.
2016-03-29 21:59:49 +01:00