Commit graph

3860 commits

Author SHA1 Message Date
Bill Somerville
effbf680eb FT-817 status queries honour retries and timeout
This is  to help  with owners  of Arduino boards  like the  ubitx that
emulate an  FT-817 but respond badly  to a DTR signal  glitch which is
inevitable when opening a Linux  serial port.  The glitch triggers the
Arduino  boot-loader which  must be  allowed  to time  out before  the
FT-817 emulation starts.

(cherry picked from commit 09e6ab6ef1)
2018-03-11 18:39:54 -05:00
Michael Black W9MDB
8ee3c0ed9f Add Rohde&Schwarz xk2100 backend for W1AW
(cherry picked from commit 7806e467fb)
2018-03-07 17:59:04 -06:00
Nate Bargmann
c2bc93f06a Advance to 3.2~rc1 for pending release 2018-03-02 06:54:24 -06:00
Nate Bargmann
d3a4ea3fcf Update NEWS for 3.2 release 2018-03-02 06:25:34 -06:00
Dieter Röver
1a272f5b0e Fix bug in vfo_comp calculation in Hamlib
I tried to control my "FUNcube Dongle Pro" SDR with Hamlib. At first it
worked fine, but when I tried to correct the frequency divergence with
the vfo_comp parameter, I found a bug in the software.

Example:
$ ./rigctl -m 2513 -C vfo_comp=0.01
  Rig command: F 100000000
  Rig command: f
  Frequency: 102010000

The correction must toke place when setting the frequency and when it
is read back. But one time the correction must work in on direction,
the other time quite opposite.

I found the code in the file rig.c and could see, that both times the
same calculation is used.

The simplest way to correct this is to go to the “rig_get_freq(“
subroutine and change it in the line 1188 from “+=” to “-=” , even that
is mathematically not correct.

Result:
$ ./rigctl -m 2513 -C vfo_comp=0.01
  Rig command: F 100000000
  Rig command: f
  Frequency: 99990000

$ ./rigctl -m 2513 -C vfo_comp=0.000022
  Rig command: F 100000000
  Rig command: f
  Frequency: 99999999

You can see, that the result is quite good for small divergences of
some ppm, but there is still an error for bigger divergences. So I
changed the line 1188 to the form I hope it is the mathematically
correct one:

*freq = (freq_t)(*freq/(1.0+(double)rig->state.vfo_comp));

Result:
$ ./rigctl -m 2513 -C vfo_comp=0.01
  Rig command: F 100000000
  Rig command: f
  Frequency: 100000000

$ ./rigctl -m 2513 -C vfo_comp=0.000022
  Rig command: F 100000000
  Rig command: f
  Frequency: 100000000

Now the result looks good for small and for bigger divergences.

Best regards
Dieter Röver (DK6OV)
2018-02-23 12:34:28 -06:00
Mikael Nousiainen
c8a8d18d18 Fix IC-7000 RIG_OP_TUNE command. The command requires an additional byte to specify operation type. 2018-02-22 22:23:14 +02:00
Max Lock
5b0a2d851d Addition of support for CM108B PTT 2018-02-19 06:42:08 -06:00
Nate Bargmann
aef1f6d1c3 Merge branch 'rshfiq' of https://github.com/dl1ksv/hamlib into dl1ksv-rshfiq 2018-01-28 14:51:28 -06:00
dl1ksv
87a5342a2f Switching from sprintf to snprintf to avoid possible seqfaults
Workaround for fldigi
fldigi treats zero frequency as error and disables hamlib.
So if the device rports zero frequency return 1 Hz instead,
so the user can switch to the favored frequency
2018-01-22 12:44:16 +01:00
Nate Bargmann
0c74f3b16a Merge branch 'dummy-rig-static-data' of https://github.com/mikaelnousiainen/hamlib into mikaelnousiainen-dummy-rig-static-data 2018-01-21 08:45:26 -06:00
Nate Bargmann
27e63e4274 Merge branch 'ic7300-fix-params-and-agc' of https://github.com/mikaelnousiainen/hamlib into mikaelnousiainen-ic7300-fix-params-and-agc 2018-01-21 08:31:36 -06:00
Mikael Nousiainen
d88881fecd Add an option to output static values for RIG_LEVEL_STRENGTH and RIG_LEVEL_RAWSTR for integration testing purposes 2018-01-21 16:00:37 +02:00
Mikael Nousiainen
9ad45cc5d3 IC-7300: Fix issues in Icom civ_version 1 parameters implementations. Add correct mappings for AGC settings. 2018-01-20 23:01:27 +02:00
Nate Bargmann
0ffb4588c0 Merge commit '9f9c03a5cb' into ahc_fix_ts711_811 2018-01-18 05:18:52 -06: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
3676cf376c Add IC-7610 2018-01-14 17:55:41 -06:00
Nate Bargmann
be4e882a19 Merge branch 'ic7300-fix-modes-ranges-smeter' of https://github.com/mikaelnousiainen/hamlib into mikaelnousiainen-ic7300-fix-modes-ranges-smeter 2017-12-25 14:56:24 -06:00
Mikael Nousiainen
8020682f37 Add 60m band for all 3 IARU regions and 4m band for region 1. IC-7300 fixes: create a more accurate S-meter calibration table, add missing FM mode and add 60m and 4m bands to transmit ranges. 2017-12-25 21:38:40 +02:00
Michael Black W9MDB
f4629f6669 Add Flex 6400/6600 2017-12-25 10:24:08 -05:00
Mikael Nousiainen
194c31c327 Fix IC-7300 S-meter calibration table length 2017-11-27 10:47:52 +02:00
Nate Bargmann
1dea67a656 Add --without-libusb option to configure script.
At the request of David Ranhc, KI6ZHD, add an option for the user to
disable the libusb backends.
2017-11-20 04:38:40 -06:00
Nate Bargmann
708ca78c77 Formatted amsat/ to final coding guidelines 2017-10-08 07:08:53 -05:00
Nate Bargmann
62309abd49 Formatted alinco/ to final coding guidelines 2017-10-08 06:20:45 -05:00
Nate Bargmann
c16a7d6f5f Formatted adat/ to final coding guidelines 2017-10-07 07:51:30 -05:00
Nate Bargmann
b692fb22ef Formatted tests/ to final coding guidelines 2017-10-06 18:58:42 -05:00
Nate Bargmann
ab3e6bb5a5 Formatted src/ to final coding guidelines 2017-10-04 21:32:08 -05:00
Nate Bargmann
ef3620defb Modified coding style to Allman
Revised astylerc to use allman brace style and to keep one-line blocks and
one-line statements.
2017-10-04 21:10:27 -05:00
c vw
028732bdfd Changes to make microHam support compile under MinGW 2017-09-21 17:55:21 +02:00
Jaroslav Skarvada
9693cce0b3 Fix serial_port DCD squelch
Hi,

I had trouble with CTS serial port squelch (on microHAM USB Interface III).
It seems there is a bug in the hamlib code and I think the similar thing
should be done as has been done for the pttport, i.e. if the dcdport is
the same as the rigport, do not reopen it. Otherwise the serial port will
be reset to its default and it will key the radio PTT forever (because
the RTS line is reset on the port reopen). Patch attached

73! Jaroslav, OK2JRQ
2017-09-10 21:04:55 -05:00
Nate Bargmann
987bbf6e78 Merge branch 'ic7100' of https://github.com/magnemahre/hamlib into magnemahre-ic7100 2017-09-10 20:43:16 -05:00
c vw
d008ca6e5d Microham support. Use "uh-rig" for rig_pathname to talk to the
microHam device for CAT. If you want hardware PTT via the microham
device, use DTR method and ptt_pathname "uh-ptt".
2017-09-10 19:56:59 -05:00
Jaroslav Skarvada
3709fcb982 Fix hardcoded pcconfig libdir
Hi,

on 64 bit distros with /usr/lib64 (e.g Fedora) the hardcoded libdir in
pcconfig is wrong. The attached patch tries to fix it. It also applies
to 3.1

73! Jaroslav, OK2JRQ

Expand variable substituion for hamlib.pc

Further testing showed that 'exec_prefix' and 'includedir' would benefit from
variable substitution by the configure script.

- N0NB
2017-09-03 12:33:00 -05:00
Magne Mæhre
a8a2a8ad41 Enable set_powerstat (turning radio on/off) for IC-7100. 2017-09-02 19:26:44 +02:00
Bill Somerville
f9856c6b85 Take out unecessary delays in K(X)3(S) back end. 2017-08-12 22:09:39 +01:00
Nate Bargmann
32dfa04e25 Format the 'barrett/' directory.
Apply formatting to Barrett.
2017-08-11 09:33:32 -05:00
Nate Bargmann
214ddfd22f Merge branch 'master' of https://github.com/dl1ycf/hamlib into dl1ycf-master 2017-08-10 21:59:26 -05:00
Nate Bargmann
7056aa7f69 Format the 'adat/' directory.
Apply formatting to Adat.
2017-08-10 20:41:48 -05:00
Nate Bargmann
d489b8bcb5 Apply formatting to 'tests/' directory
Format per style guide.
2017-08-10 05:46:12 -05:00
Bill Somerville
80a4097aba Add best guess transmit status to rig state structure
This flag can  be used by back  ends that need to  take special action
while the  rig is transmitting e.g.  the FT-747GX and similar  that do
not process CAT commands while transmitting.

The flag  is also used as  a default answer to  rig_get_ptt if nothing
better is available.

Deal with inaccurate CAT query for Rx/Tx on the Yaesu FT-847

This rig  doesn't set the Rx/Tx  status flag when PTT  is asserted via
the PTT pin on the rear PACKET  socket so we need to override which we
can do if we known we have asserted PTT via rig_set_ptt().

Adjust style and fix set PTT defects

Fix a warning from a declaration of a deleted function definition
2017-08-09 21:54:50 -05:00
Nate Bargmann
cedd914e68 Apply formatting to 'include/' directory.
Format public and private header files per new formatting guide.
2017-08-09 06:14:31 -05:00
Nate Bargmann
f76b354588 Reformatted src directory 2017-08-09 06:14:31 -05:00
Nate Bargmann
01bef2d158 New document detailing source code formatting
New indentation and alignment rules and recommended formatting style for
the C and C++ source code.
2017-08-09 06:14:31 -05: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
ffb9f21d3a Fix off-by-one issue in reading memory mode from IF command response 2017-08-03 11:17:45 +01:00
Nate Bargmann
a3522a627f Install certain top level files into docdir
Install generated Texinfo HTML manual into docdir/html.
2017-07-27 21:33:14 -05:00
Nate Bargmann
a8c56853d3 Rename autogen.sh to bootstrap to follow GNU guidelines
Update relevant document files to describe 'boostrap' and 'configure'.
2017-07-27 21:30:13 -05:00
Nate Bargmann
f1c0267867 Apply silent rules to LUA
Use $(LUA) to run luatest.lua.
2017-07-27 16:48:03 -05:00
Nate Bargmann
2ef6d5ce0e Apply silent rules to Perl to the extent possible
Run the perltest.pl script for the check-perl test.
2017-07-27 15:54:57 -05:00
Nate Bargmann
7f76171259 Apply silent rule variables to Python 2017-07-27 15:08:22 -05:00