Wykres commitów

538 Commity (3dbbe02b78d18fb3a69c02995d035e2bc4dfc96f)

Autor SHA1 Wiadomość Data
Mikael Nousiainen 3dbbe02b78 Add new levels: RFPOWER_METER, COMP_METER, VD_METER and ID_METER, supported at least by most of recent Icom rigs. Add level NOTCHF_RAW for manual notch frequency without specified unit for Icom rigs. Add level MONITOR_GAIN. Add functions DUAL_WATCH and DIVERSITY, supported now by K3/K3S. Fix VOXDELAY level commands for many Icom rigs. Add MONITOR_GAIN level for Icom rigs. Fix and add many K3 commands and add specific rig models for K3S, KX2 and KX3 -- they are very similar to K3, but have slight differences. Extend dump_caps output for rigctl: add complete details of ext levels and frequency ranges. Tests have been performed on IC-7000, IC-756ProIII, IC-7300, IC-7600 and K3. 2019-05-30 09:37:49 +03:00
Michael Black 25736acd4b
Fix CM108 ptt_bitnum for pttport 2019-05-27 23:18:43 -05:00
Michael Black 8dae7db02c astyle debug.c 2019-05-22 08:52:50 -05:00
Michael Black ba712ce904 Fix compiler warning in debug.c 2019-05-22 08:52:14 -05:00
Michael Black 37f87c9b62 astyle parallel.c 2019-05-21 12:45:09 -05:00
Michael Black 151a7059c5 Fix compile warnings in parallel.c 2019-05-21 12:42:39 -05:00
Michael Black 9570d6c669 Add flush to serial open 2019-04-02 08:49:56 -05:00
c vw 9d927d3370 typo, also include NUM_UHTYPES 2019-02-22 10:23:30 +01:00
c vw 00ff1b2832 Included MicroKeyer-III 2019-02-22 10:21:40 +01:00
Michael Black eb9e59211a network.c astyle applied 2019-02-07 11:46:52 -06:00
Michael Black 48c8247a86 Fix network_flush as it was not actually flushing before
This was causing an infinite loop and WSJT-X to lock up using flex6xxx backend
2019-02-07 11:44:33 -06:00
Michael Black 2fa14476f6 Reduce verbosity of rig_strvfo 2019-02-05 09:44:19 -06:00
Michael Black 63570dd791 Improve error handling in network_flush when disconnect happens 2019-02-05 09:40:46 -06:00
Michael Black 8f93173462 Reduce verbosity of rig_strrmode and read_string 2019-02-05 09:31:54 -06:00
Michael Black 8b695bcc03 Add BC2 and NB2 functions for newer kenwoods
Change RIG_SETTING_MAX for 64-bit compatibility
2019-01-01 12:33:22 -06:00
Michael Black 772b1ba2c1 Fix rig_idx2settings for 64-bit sprintf_list functions 2018-12-31 15:39:49 -06:00
Malcolm Herring 2ccf99da04 icr30 updates 2018-12-26 08:25:38 +00:00
Malcolm Herring 1747595f10 ICR6 new functions 2018-12-24 11:00:12 +00:00
Michael Black ce3f6806d0 Fix RIG_MODE structure in src/msic.c 2018-12-23 17:37:27 -05:00
Michael Black 64b35ccbee Add PRXll macro for 64-bit use 2018-12-21 16:46:48 -05:00
Malcolm Herring 31cc85bf57 Add IC-R30 2018-12-21 07:07:41 +00:00
Ekki Plicht (DF4OR) 4e8ba3d6f3 Patch for Icom DCS code handling
* Change magic numbers in icom_set|get_ctcss|dcs_sql|code functions to
constants defined in src/tones.h

* fix a minor bug in icom_get_dcs_code (now ignoring polarity instead of
reporting invalid DCS code when sending reverse pol. DCS code)

* introduce DCS codes to IC-R8600 rig backend

73,
Ekki, DF4OR
2018-12-19 18:09:14 -06:00
Robert Benedict 3724ce87ee New iOptron rotator backend
I have an potential initial release of a backend for iOptron alt-az mounts.
I have tested it and it appears to work well both from the command line and
driven by Gpredict with my iEQ45Pro. I ran the source through astyle and I
think that it's OK. Compiling and testing was done under Unbuntu 18.

   Bob KD8CGH
2018-12-13 15:23:46 -06:00
C-Elegans d8f010cfa3
Add ability to have rigctld display transverter frequency
Use -C lo_freq=xxxxx to have rigctld add x to your vfo frequency
internally
2018-11-07 11:49:06 -05:00
Nate Bargmann 1ecadcc594 Quell various defined but not used warnings from MinGW
Enclose various variable and function definitions in CPP macro blocks to quell
warnings when cross-compiling for Microsoft Windows using MinGW.
2018-10-27 20:49:20 -05:00
Nate Bargmann ac540c82cc Quell gcc 8.2.0 warning of possible truncation
On Debian Buster gcc ((Debian 8.2.0-8) 8.2.0) was throwing the following
warning:

  CC       network.lo
../../hamlib/src/network.c: In function ‘network_open’:
../../hamlib/src/network.c:245:46: warning: ‘%s’ directive output may be truncated writing up to 511 bytes into a region of size 139 [-Wformat-truncation=]
         snprintf(msg,sizeof(msg),"connect to %s failed, (trying next interface)",rp->pathname);
                                              ^~
../../hamlib/src/network.c:245:9: note: ‘snprintf’ output between 44 and 555 bytes into a destination of size 150
         snprintf(msg,sizeof(msg),"connect to %s failed, (trying next interface)",rp->pathname);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Raising the size of the msg buffer to 1024 quelled the warning.
2018-10-25 16:58:51 -05:00
Michael Black W9MDB aadd458b99 Ensure read_string value is terminated 2018-10-25 08:37:59 -05:00
phl0 b2b20af07e
Ass support for CM108AH chipsets 2018-09-08 21:57:25 +02:00
HB9EIK bde028485a Update build system for ELAD backend 2018-08-21 06:07:09 -05:00
Nate Bargmann ac83428f7b Merge branch 'master' of https://github.com/JeroenVreeken/Hamlib 2018-08-05 21:11:40 -05:00
andz 75228aa974 Added Meade LX200 Protocol to Rotors
* Added new rotor module (18) for Meade telescope rotors
* Implemented all needed rotor functions
* Added README.md

* Tested with DS-2000 Rotor with Autostar 494 and 506 serial cable
* Tested on Linux (Debian) with rotctl and gpredict
2018-07-17 08:57:05 -05:00
Jeroen Vreeken 0057b2f8b1 GPIO working after debugging 2018-06-30 16:09:56 +02:00
Jeroen Vreeken 9c7ce6eacb Merge branch 'master' of github.com:Hamlib/Hamlib 2018-05-06 00:12:23 +02:00
Michael Black W9MDB 1e883d0195 Fix compile warnings for src 2018-04-22 18:38:16 -05:00
Michael Black W9MDB 2dae3ae8fe Reverse bad patch for Android 2018-04-15 16:10:27 -05:00
Michael Black W9MDB 6c369109e6 Add debug time stamps via -Z and --debug-time-stamps 2018-04-15 15:06:52 -05:00
Michael Black W9MDB 841acdf011 Improve network connect error message 2018-04-14 10:46:13 -05:00
Jeroen Vreeken bfa948ebc5 Add GPIO and GPION options for DCD.
Also bump abi version since the config params struct needed resizing.
2018-03-29 23:55:25 +02: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
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
Max Lock 5b0a2d851d Addition of support for CM108B PTT 2018-02-19 06:42:08 -06:00
Nate Bargmann ab3e6bb5a5 Formatted src/ to final coding guidelines 2017-10-04 21:32:08 -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
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
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 f76b354588 Reformatted src directory 2017-08-09 06:14:31 -05:00
Michael Black W9MDB 21a6909a9a Add Barrett 2050 backend 2017-07-04 12:50:23 -05:00
c vw fc6d87addf Do not set DTR/RTS on dedicated PTT port if it is already closed. 2017-05-29 09:37:32 +02:00
Bill Somerville 62fb76019f Fix a state machine defect with repeated PTT reset calls
When the PTT serial  port is not the control port  the intention is to
free the port  when PTT is reset so that  other applications can share
it. This logic  was faulty with attempts to call  port functions on an
unopened port when repeatedly calling the rig_set_ptt API.

Thanks to Christoph van Wullen, DL1YCF, for finding and analyzing this
defect.
2017-02-27 13:02:04 +00:00