Wykres commitów

81 Commity (732309e9d97c7b6463e51e20410cc7dffa40a2fe)

Autor SHA1 Wiadomość Data
Michael Black a55a72cd2a Fix possible frequency overflow on Kenwood and Yaesu
This patch fixes a frequency overflow problem on kenwood and yaesu that
can occur with frequencies that over a 32-bit signed int.  This has been
shown to fix the problem on kenwood.

73
Mike W9MDB
2016-01-15 10:18:42 -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 0ab6d99ef5 Attempt to restore AI status on exit
Kenwood,  modern Yaesu  rigs and  many  SDRs use  an auto  information
mechanism that  broadcasts unsolicited rig state  changes, Hamlib does
not support this and turns  off the function.  Because several passive
devices rely  on this information  to detect band changes  for example
this change adds code to save the AI state on start up and restores it
on  exit. These  devices  do  no need  the  broadcasts  since when  an
application using Hamlib is running  as necessary state polling by the
application provides continuous rig state updates.
2015-11-29 18:26:39 +00:00
Bill Somerville 1a02431da5 Command validation for Yaesu set commands
As with  Kenwood, the new  style Yaesu rigs  do not ACK  set commands.
Rather than  wait for  an error,  it is  quicker to  send a  follow up
simple query (e.g. ID;) and read the  reply, if it is a valid response
then the original set command worked; if it is a NACK response e.g. ?;
then  the original  command  failed. Use  this  mechanism to  initiate
retries of the original command.
2015-10-21 21:57:27 +01:00
Michael Black f8ccebc694 FT-857 and FT-991 patches
Fixes S meter reporting for FT857 and FT991.

Fixes rig split for FT991.working now for WSJT-X rig split mode.

73

Mike W9MDB
2015-08-15 12:30:00 -05:00
Michael Black dffa130175 FT-991 patch
Attached fixes some problems with the Yaesu FT-991 exposed by recent
WSJT-x releases.

Made Yaesu newcat_get_cmd globally available.

Fixes a small bug in a debug print for frequency.

Adds a couple of TRACE debugs.

FT-991 now does split mode.

Tested and working on WSJT-X r5675  JT65/JT9 and WSPR mode.

73

Mike W9MDB
2015-07-16 21:44:04 -05:00
Michael Black 0a5b00c58d New backend for FT-991
Also, change from using malloc to calloc in Yaesu backend.
2015-04-13 21:02:41 -05:00
David Fannin 699db23393 Submission for new backend model (134) for Yaesu FT-DX1200
All,

attached is a git patch for adding the Yaesu FT-DX1200 radio  to the yaesu
backend as model 134.    I am humbly asking for this to be included in
hamlib.

I've tested this using a 1200 radio, using both rigctl and cqrlog.    The
ft-dx1200 cat commands are a mix of ft-950 and ft-2000 radio commands, so
neither of those models will work correctly with the 1200.  It was tested
and build against the master branch from github on 4/3/2015, on an Ubuntu
14.04 server.

Let me know if you have any questions.

thanks

Dave

kk6df at arrl.net

From cc0351fddc245b6223ae6c21dc6e29c5422fc822 Mon Sep 17 00:00:00 2001
From: David Fannin <dfannin@sushisoft.com>
Date: Sat, 4 Apr 2015 09:23:49 -0700
Subject: [PATCH 1/2] adding yaesu ft-dx1200 model to yaesu backend
2015-04-04 13:19:19 -05: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 cdb4c4a016 Yaesu newcat style command response reading improvements
After testing on an FT-450D which tends to send busy responses "?;" to
subsequent commands after a band  changing command it appears that the
undoumented "?;"  rig busy response  should be  treated as a  wait and
subsequent reads may return the  expected response i.e. the command is
still in progress and should not be resent.

As this is  all based on observations of failure  modes rater than any
doumentation from Yaesu, there may be further enhancements necessary.
2014-12-06 12:19:40 +00:00
Bill Somerville 7d01e0fc4d RIG_OK is zero and need not be negated and this will not change 2014-10-18 20:31:47 +01:00
Bill Somerville 013d9b4e4f Disable auto information mode on open
The current version  of hamlib cannot cope  with unsolicited responses
from rigs  therefore AI  mode should  be turned off  on any  rigs that
support it in case a previous program left it on.
2014-10-18 20:23:47 +01:00
Bill Somerville 3ad5f0c653 Add retry mechanism for Yaesu "newcat" backend
After some  testing with an  FT-450 it is  apparent that Yaesu  use at
least some of the busy/invalid  CAT responses that Kenwood document in
their current CAT protocol. The  response received from the FT-450 was
a "?;" from occasional "IF;" commands. In the Kenwood World this means
that  the  command  cannot  be   processed,  this  could  mean  it  is
unrecognized  or it  could  be  a transient  condition  while the  rig
processor is busy. The Kenwood backend  has the ability to retry after
this and some other error responses.

Since the  Kenwood error  response codes are  unambigous in  the Yaesu
language this change implements a  similar protocol for Yaesu "newcat"
backends.  Each  backend may  choose how many  reties by  defining the
'retry' parameter in the rig capabilities structure.

Also cleaned up a lot of code duplication.
2014-10-18 20:23:46 +01:00
Bill Somerville 419dc8540f Fix Yaesu newcat backend set_tx_vfo issue.
The newcat Yaesu backend was using a toggle command to set the TX VFO
where an explicit set command is avaiable.

This fix corrects the function for the FT-2000(D) and the FT-DX5000.

There is still an issue with the FT-450D which as far as I can see has
no definitive way of setting which VFO will be used for TX.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-10-01 03:15:48 -05:00
Bill Somerville bf539f052b Patch to fix broken Yaesu backend with FT-2000(D)
Hi All,

attached is a patch to correct the Yaesu backend to stop it sending the
SH1; command to teh FT-2000(D) radios where it is illegal.

73
Bill
G4WJS.

commit 8e60a966de140c14fe506f958de92a8e1b738d2c
Author: Bill Somerville <bill@classdesign.com>
Date:   Fri Sep 20 02:10:58 2013 +0100

    Fix Yaesu backend using illegal command on FT-2000

    The FT-2000 doesn't support the SH1; command used by
    the get_mode/set_mode function. This was causing a
    "Protocol error" return when trying to get/set the mode
    of VFO B.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-19 22:08:42 -05:00
Nate Bargmann bff9f17f7e Update LGPL header in Yaesu source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:38 -05:00
Nate Bargmann 20c4203268 Use rig->state.current_vfo to store vfo value.
NewCAT was saving the VFO value in the private rig data structure which
is inaccessable to the front end library.  Tested currVFO in rigctl with
W0MDN's FT-450.
2011-07-08 22:27:06 -05:00
Stéphane Fillod, F8CFE aa24ca7ab6 clone FT-DX5000 after FT-2000
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2992 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-10-06 07:25:14 +00:00
Stéphane Fillod, F8CFE 1ea78092e7 return -RIG_EPROTO when command not understood by rig
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2954 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-08-20 21:58:43 +00:00
Terry Embry, KJ4EED c3d2625888 Moved internal function definition newcat_valid_command() from newcat.h to newcat.c.
Depreciated newcat_get_rx_vfo in newcat.c.
Depreciated newcat_set_rx_vfo in newcat.c.
newcat.h
newcat.c


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2802 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-01-04 23:52:43 +00:00
Terry Embry, KJ4EED 61db9776a7 Cleanup of memory and channel set functions.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2775 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-11-28 14:27:37 +00:00
Terry Embry, KJ4EED 6c7a40ea41 Replaced strcpy with snprintf.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2773 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-11-23 22:38:22 +00:00
Terry Embry, KJ4EED de833ae82d eplaced sprintf with snprintf
Reworked memory channels to use VM; command.
Added code to support Read only 60M memory channels.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2771 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-11-22 21:52:11 +00:00
Terry Embry, KJ4EED 6282f571eb changed time delay for mem channels
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2718 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-08-19 14:17:19 +00:00
Terry Embry, KJ4EED e8a9ba18bc Changed delay for memmory channels
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2691 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-04-30 22:38:47 +00:00
Terry Embry, KJ4EED a9bdb8feeb Adjusted backup, restore delay
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2669 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-26 23:04:26 +00:00
Stéphane Fillod, F8CFE 951c9acb74 old compilers don't like mixed variable declaration and code
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2662 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-23 21:52:56 +00:00
Terry Embry, KJ4EED 200a80217a Added delays for first time through mem write
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2636 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-15 09:54:17 +00:00
Terry Embry, KJ4EED fbd74141ab Cleanup returns on set commands
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2581 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-12 00:51:26 +00:00
Terry Embry, KJ4EED aced046e8d removed NFM NAM
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2578 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-11 17:39:26 +00:00
Terry Embry, KJ4EED 0297d64415 hanged get_mem and get_channel to leave channel_num
alone on an error.  get_mem should always be valid.
get_channel will return 0 Hz in freq on an empty channel.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2573 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-11 10:04:48 +00:00
Terry Embry, KJ4EED 067e7328a7 Added backup and restore to Memory Channel.
Added get_cmd and set_cmd.  Added get_vfo_mode for showing if rig is
in RIG_VFO_MEM at any time.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2572 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-10 14:52:49 +00:00
Terry Embry, KJ4EED 59b9885766 Change set_tx_vfo RIG_VFO_MEM logic
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2570 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-08 21:38:47 +00:00
Terry Embry, KJ4EED 4a4ebdf633 Added split_mode and split_freq tracking to restore_vfo, backup_vfo
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2568 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-08 12:57:31 +00:00
Terry Embry, KJ4EED 85ad7304dc Changes to vfo_restore, get_split_vfo
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2567 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-08 07:22:25 +00:00
Terry Embry, KJ4EED ec32850fd1 Fixed False Positive get_split_vfo in memory mode
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2566 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-07 23:09:12 +00:00
Terry Embry, KJ4EED 424e370409 Changed get_split_vfo to use passed vfo
Added split mode to vfo_backup and vfo_restore


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2565 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-07 20:59:12 +00:00
Terry Embry, KJ4EED d560c16f22 Added newcat_backup_vfo, newcat_restore_vfo
Updated FT9000 valid commands
Added valid command test to functions
Some code cleanup


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2564 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-07 00:50:53 +00:00
Terry Embry, KJ4EED 963a96f3cb Changed RIG_LEVEL_BKINDL to tenth_dots per second
Cleanup of set/get_mem and set/get_channel


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2563 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-05 23:03:15 +00:00
Terry Embry, KJ4EED 090fb246f7 Changed RIG_LEVEL_BKINDL math, 1 dot == 2UI (on time + off time)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2559 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-04 23:59:00 +00:00
Terry Embry, KJ4EED 7adc0f0824 Fixed newcat_set_channel bugs
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2555 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-04 14:01:02 +00:00
Terry Embry, KJ4EED 83f4d2cbb1 Added newcat_get_channel, newcat_set_channel
Added RIG_VFO_MEM support


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2552 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-04 00:05:25 +00:00
Terry Embry, KJ4EED 541fc7c2bc Fixed mW2power bug
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2541 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-01 17:16:07 +00:00
Terry Embry, KJ4EED f6dc85fdf4 Added debugging statements to mW2power and power2mW
Changed _nc_rigid to int because of potential enum bugs


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2539 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-31 18:17:56 +00:00
Terry Embry, KJ4EED 6071a61141 Added newcat_get/set_trn
Changed power2mW mW2power to work with different radio model versions


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2537 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-30 18:52:32 +00:00
Terry Embry, KJ4EED 41aa9c8dda Added get_ts, set_ts to rigs
Added newcat_is_id for future reference
Made Changes to newcat_valid_command


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2535 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-28 13:53:13 +00:00
Terry Embry, KJ4EED bc092bab7e Added more METERS to newcat_set_level RIG_LEVEL_METER
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2534 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-28 04:06:14 +00:00
Terry Embry, KJ4EED 7b751bff86 Added newcat_get_ts, newcat_set_ts
Added newcat_get_faststep, newcat_set_faststep


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2532 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-28 00:25:31 +00:00
Terry Embry, KJ4EED 0a21830680 Added newcat_get_powerstat, newcat_set_powerstat
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2531 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-27 08:08:47 +00:00
Terry Embry, KJ4EED 47eb68d232 Fixed newcat_set_ctcss_tone set bug
Added null pointer ctcss_list test
Changed newcat_set_mode width sets to after mode set
Changed newcat_power2mW, newcat_mW2power to allow all nc rigs


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2528 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-26 11:34:24 +00:00