Wykres commitów

3736 Commity (761dde7b8b4b4152e640c34d17366b6577836c6b)

Autor SHA1 Wiadomość Data
Nate Bargmann d22d83122b Merge branch 'alexschultze-master' 2015-04-03 21:18:22 -05:00
Nate Bargmann 013f30f826 Merge branch 'master' of git://github.com/alexschultze/hamlib into alexschultze-master 2015-04-03 21:16:46 -05:00
Alexander Schultze 895639c48f easycomm: include a new EasyComm3 to support move speed and infostring 2015-04-01 21:05:21 +02:00
Bill Somerville e7dc01827b Fix response lengths for the TT Jupiter 538
Rather than use an  oversize buffer and let the reads  time out I have
set the  expected length  to what  should come  back. This  means that
lengthy timeouts are not required every time a response is read.

Also added undocumented split set/get and PTT on/off.
2015-03-20 10:33:58 +00:00
Bill Somerville a1e39e11f0 Fix defect in Kenwood TS-940 IF command response parsing
A recent change  to implement command error detection  and retries for
this rig introduced a defect in  the expected length of the IF command
response.
2015-03-17 02:33:17 +00:00
Bill Somerville 9f9d74c504 Yaesu FT540 can only change the frequency of the current VFO
On the  FT450 one must  select the target  VFO using the  VSn; command
before attempting  to change the  frequency. Ths change does  that and
reverts the current VFO if necessary.
2015-03-15 23:11:00 +00:00
Bill Somerville ecc31cb1b4 Fix error with width in set mode for the TT argonaut
Also constrain Argonaut filter selections to valid values.
2015-03-15 16:30:28 +00:00
Bill Somerville f04793c833 Implement get PTT status for the TenTec Argonaut
Changed Argonaut  mode set command  to leave the width  unchanged when
passed RIG_PASSBAND_NORMAL.

Also tidied up response validity checks.
2015-03-15 11:41:16 +00:00
Bill Somerville f82493b957 Fix TenTec set split command 2015-03-15 01:23:40 +00:00
Bill Somerville 9713e60b42 Fix TenTec Argonaut message lengths and timeout
The TT Argonaut back end was falling over if the rate of returned data
varied because  some commands were  coded to have shorter  than actual
responses,  this is  not necessary  as by  increasing the  timeout all
characters can be read as expected.

Also fix direct reading and setting of mode per VFO.
2015-03-15 00:16:44 +00:00
Bill Somerville 4d6dacb92f Allow for PowerSDR ID in Kenwood TS2000 emulation mode
PowerSDR  accepts  a  ZZID;  command   which  changes  the  result  of
subsequent ID; commands to ID900;. Since there seems no way of telling
PowerSDR to revert to  the true TS2000 ID of ID019;  we have to accept
ID900; as a TS2000.

Allow for  SmartSDR Kenwood  compatible IDs  of 904  - 907  as TS-2000
synonyms.
2015-03-13 19:48:19 +00:00
Michael Black baa192ea05 Check TS-590S for EU or US firmware
Got a confirmation from Kenwood that the "TY" command returns "TYE 00"
or "TYK 00" for European or USA firmware.

So here's a patch that implements it for the TS590S.
2015-03-11 20:25:33 -05:00
Bill Somerville d1aee3e1a7 Enable data modes for the Icom IC-7100 2015-03-11 18:07:02 +00:00
Michael Black 6dbcaeb20a xg3 patch
Small patch so XG3 returns -RIG_EINVAL when trying to set anything other
than VFO_A.
2015-03-07 13:40:32 -06:00
Bill Somerville 3d99e9dbb6 Allow one extra byte in read_string() length to accomodate terminator
The kenwood_transaction()  function expects a buffer  large enough for
the  null  terminated  command   response  less  the  Kenwood  command
terminator (';') but  the read_string() call must allow  an extra byte
for that same terminator.
2015-03-06 19:48:47 +00:00
Bill Somerville 72f1e92be3 Allow for bad ID from DDUtil in TS-2000 mode 2015-03-01 21:59:50 +00:00
Bill Somerville a70ca71753 Call kenwood_open() for TS-2000 to ensure AI mode is disabled 2015-02-28 03:53:19 +00:00
Michael Black 1d41268e4c Fixes to termios.c on W32 targets
I was debugging termios.c and this patch fixes two small problems--two
debug printf format problems and another one that causes an extra char
to be read on timeout.

The extra char problem is easily duplicated by using the "w" command
under rigtctl.  Most all other commands use fixed-length response
strings which don't exhibit the problem.  But since "w" does not know
how long the response should be it loops until it times out.  Every time
it times out it would return 1 extra character (this was 100% repeatable
on two different rigs).

Turns out it was a simple typo in the code as the read was using the
write event instead of the read event.
2015-02-22 10:03:24 -06:00
Stephane Fillod 5b5386c711 rigctl: help "?" at set_vfo/set_split_vfo prompt 2015-02-19 23:52:13 +01:00
Nate Bargmann f0e17f7c8d Merge branch 'kenwood_strncpy_error' of git://git.code.sf.net/u/bsomervi/hamlib 2015-02-17 13:32:59 -06:00
Bill Somerville aa9ad54b94 Remove kenwood_simple_cmd as kenwood_transaction has that functionality 2015-02-16 18:16:10 +00:00
Bill Somerville 51b30a8ff2 Removed redundant precondition test 2015-02-16 14:18:27 +00:00
Bill Somerville 143f305b49 Further clarification in the implementation of kenwood_transaction()
Buffer size is  now an input parameter only as  the return data length
is  implicit since  a null  terminated C  string is  returned.  Better
precondition checks are impelmented.
2015-02-16 12:46:35 +00:00
Nate Bargmann 3e06fff221 Delete comment of unused parameter
Removed reference to cmd_len from comments of kenwood_transaction which
is no longer used.
2015-02-13 14:17:47 -06:00
Bill Somerville 4a74db654a Clarify the handling of Kenwood CAT message terminators
There was an inconsistency in  whether the CAT terminator character is
included  in  returned  messages.   It  now  follows  the  comment  in
kenwood_transaction()  i.e. strips  of  the terminator  and returns  a
message length that reflects that.
2015-02-13 18:07:10 +00:00
Bill Somerville 8359bab813 Use local buffer in kenwood transaction funciton
Using the priv->info buffer causes security checks on Mac OS X >= 10.9
because the source  and destination of an internal strncpy  can end up
being the same. It is bad practice anyway as it's undefined behaviour.
2015-02-13 18:07:09 +00:00
Nate Bargmann 5a57de16fb Merge branch 'bergerspencer-yaesu_cache_invalidation' 2015-02-09 15:16:13 -06:00
Spencer Berger 24ae62b4e5 Add forced cache timeouts for ft980. 2015-02-06 12:15:09 -08:00
Spencer Berger b45bc3055c Added forced cache timeouts for the ft817. 2015-02-06 11:58:21 -08:00
Spencer Berger 8bc10a9fed Added forced cache timeouts for the ft857. 2015-02-06 08:31:45 -08:00
Spencer Berger 58c75aa2fe Add forced cache timeouts to other setters that affect cached getters. 2015-02-06 08:13:13 -08:00
Spencer Berger e78e6d1d42 Invalidate frequency cache after setting frequency for ft897. 2015-02-04 07:59:47 -08:00
Nate Bargmann d4a22408f7 Merge branch 'master' of
ssh://git.code.sf.net/p/hamlib/code
2015-01-25 07:04:29 -06:00
Stephane Fillod c02e03f77e New Icom ID-5100 model 2015-01-25 13:42:08 +01:00
Nate Bargmann 16ea41d260 Merge branch 'k2-afsk-modes'
of git://git.code.sf.net/u/bsomervi/hamlib

Many changes to Kenwood backend rigs.
2015-01-25 06:39:54 -06:00
Stephane Fillod c61fe45b29 New IC-M710 and IC-M802 backends 2015-01-24 18:46:34 +01:00
Bill Somerville bfbb1adc44 Improve command verification for Kenwood & Elecraft
Allows for a single ';' for  verification with the Elecraft XG3 single
character commands.

Allow for rig specific instance data  (needed by the Elecraft XG3 that
is a bit different from the rest of the Kenwood/Elecraft group).

Do not send a startup command to  turn off AI mode to the Elecraft XG3
as it doesn't have that command or mode.

Restore the positive RTTY mode enabled  check to the Elecraft K2 as it
appears that the MD6; and MD9;  comamnds are valid even when RTTY mode
is disabled on the rig.
2015-01-24 14:59:59 +00:00
Bill Somerville d92bea9538 Switch Kenwood TS940 to generic kenwood CAT functions 2015-01-24 14:59:59 +00:00
Bill Somerville f672cc1bff Increase Elecraft K2 comms timeout and retries 2015-01-24 14:59:58 +00:00
Bill Somerville a970d8b035 Switch to "ID;" command for verification as no "AI;" on TS-840s 2015-01-24 14:59:57 +00:00
Bill Somerville 42af7ab657 Kenwood TS-570 series IF returns current frequency
For Kenwood transceivers  the FA/FB/FC command smust be used  to get a
VFO  frequency,  the   IF  command  returns  the   Tx  frequency  when
transmitting. The function kenwood_get_freq_if() doesn't adjust for Tx
status or assign the frequency to a specific VFO.
2015-01-24 14:59:57 +00:00
Bill Somerville b1e41d2d2c Elecraft K3 has 1 stop bit 2015-01-24 14:59:56 +00:00
Bill Somerville 5ef9bde498 Allow for failed test command on the K2
The  K2 initialization  was checking  if  RTTY mode  was available  by
sending an  MD6; command  and they  querying the mode  to check  if it
worked. The latest kenwood routines now  fail if an invalid command is
sent to the K2 initialization need only try the MD6; command to see if
RTTY is available on the rig.
2015-01-24 14:59:56 +00:00
Bill Somerville 64d080af2e Removed kenwood_cmd function and replaced uses of it
The function kenwood_cmd doesn't add value  and it uses a reply buffer
that is  not required.  Also  the use of  a reply buffer  disables the
verification  of commands  that  have no  reply feature.   Substituted
kenwood_simple_cmd calls  that do  the job  correctly without  a reply
buffer.

Added delay to busy retry loop when sending commands to rig.

Implemented retries on wrong length repies from rig also with a delay.
2015-01-24 14:59:55 +00:00
Bill Somerville a2f24678ca Kenwood and Elecraft rigs sometimes ignore commands
These  rigs  can  opt  to  ignore set  type  commands  when  they  are
busy. This means  that sending a set command like  FAnnnnnnnnn; to set
the frequency can  fail. The rig should send "?;"  when busy but since
no reply is normally expected it is not convenient to read for a reply
after a  set command since it  will block until timeout.   This change
sends an "AI;" command after a  command that is not expected to reply,
this should guarantee a reply of  some sort allowing any busy reply to
be read  without blocking  and initiate  a retry  of the  original set
command. The  "AI;" command is chosen  because it is available  on all
rigs AFAIK and at least on Elecraft is guaranteed to be processed even
when the rig is busy.
2015-01-24 14:59:54 +00:00
Bill Somerville 3ffbb69638 Elecraft K2 RTTY modes are not FSK
The K2  RTTY and RTTY-R modes  should be modeled as  PKTLSB and PKTUSB
respectively since they are AFSK modes.

Also ensured that  Kenwood mode sets do not try  and set RIG_MODE_NONE
as it makes no sense.
2015-01-24 14:59:54 +00:00
Stephane Fillod 80f921954b New IC-M700PRO backend
Backend for the ICOM IC-M700PRO marine transceiver.
2015-01-21 23:57:08 +01:00
Michael Black 716fc0fcab New XG3 backend
Backend for the Elecraft XG3 signal generator.
2015-01-08 17:45:29 -06:00
Bill Somerville 36b8a972cf Error checks on simulated direct VFO addressing
Many APIs  emulate direct VFO  addressing by using  caps->set_vfo() or
caps->vfo_op(..., RIG_OP_TOGGLE)  to simulate  direct addressing  of a
non-current  VFO. The  mirrored function  call to  revert back  to the
original  current  VFO was  not  checking  for  errors.  This  is  not
unreasonable but it turns out that some rigs can arbitarily fail doing
VFO changes or swaps (e.g. Yaesu FT-450).

I have added checks to these calls but only fail with the error if the
API call being wrapped does not fail itself. This allows the mirroring
VFO  operation to  be  completed,  if possible,  even  if the  wrapped
function could not be completed,  hence as before, making every effort
not to change the rig state unnecessarily.
2014-12-11 17:14:58 +00:00
Michael Black c3997235da TenTec Omni VII update from W9MDB
Implement all current TenTec Omni VII commands.
2014-12-10 18:21:53 -06:00