Wykres commitów

537 Commity (d84ac6ab5dcbe47cedae4647f919bc4da8a9dffa)

Autor SHA1 Wiadomość Data
Michael Black W9MDB ef451705b8 Clean up redundant code in rig.c 2020-06-11 22:29:00 -05:00
Michael Black W9MDB f71c12da94 astyle files 2020-06-09 22:37:03 -05:00
Michael Black W9MDB ee6703107f Fix 'f VFOB' staying on VFOB instead of reverting to VFOA when VFOA is current VFO 2020-06-07 23:31:20 -05:00
Michael Black W9MDB 1cbdc5a7ea Fix incorrect setting of VFOA when VFOB requested using vfo_opt mode
Only affected rigs that were not (caps->targetable_vfo & RIG_TARGETABLE_FREQ) like the dummy rig
https://github.com/Hamlib/Hamlib/issues/284
2020-06-06 16:03:16 -05:00
Michael Black W9MDB 2a05008bd4 Add vfo_fixup to rig_get_split_freq 2020-06-04 10:27:00 -05:00
Michael Black W9MDB 4502769c8d Add FT-DX101D as a rig that can't get VFOA freq while VFOB is transmitting
Move the IC910 of the same problem to rig.c instead of icom.c
Eventually this may become a backend flag
https://github.com/Hamlib/Hamlib/issues/279
2020-06-03 18:12:17 -05:00
Michael Black W9MDB 847b73cdb1 Merge branch 'master' of https://github.com/mdblack98/Hamlib 2020-06-03 11:35:16 -05:00
Michael Black W9MDB 52c3b1d3c9 Rigs with no set_vfo and asking for currVFO will have vfo changed to something sensible
https://github.com/Hamlib/Hamlib/issues/278
2020-06-03 11:27:45 -05:00
Michael Black W9MDB bf5e0e21af Rigs with no set_vfo capability will now have a logical VFO assigned to vfo_curr
https://github.com/Hamlib/Hamlib/issues/278
2020-06-03 11:27:23 -05:00
Michael Black W9MDB fa6b0c3d04 Rigs with no set_vfo capability will now have a logical VFO assigned to vfo_curr
https://github.com/Hamlib/Hamlib/issues/275
2020-06-03 07:20:48 -05:00
Michael Black 567cd7145e Fix VFO_CURR return from vfo_fixup
https://github.com/Hamlib/Hamlib/issues/274
2020-06-01 17:07:20 -05:00
Michael Black W9MDB e49f1a9df9 Change rig.c to use some sensible defaults when rig_get_vfo fails
https://github.com/Hamlib/Hamlib/issues/274
2020-06-01 14:08:45 -05:00
Michael Black W9MDB 79fdfe8425 Change vfo_fixup to just return when currVFO is requested
https://github.com/Hamlib/Hamlib/issues/274
2020-06-01 12:53:07 -05:00
Michael Black W9MDB cbe269077b Fix one more cache expire for caps->get_vfo
https://github.com/Hamlib/Hamlib/issues/270
2020-05-31 10:05:44 -05:00
Michael Black W9MDB 58b1c36d29 Remove VFO_CURR fixup
https://github.com/Hamlib/Hamlib/issues/271
2020-05-30 22:49:49 -05:00
Michael Black W9MDB f4fee7913f Fix caching of get_vfo to avoid caching error returns
https://github.com/Hamlib/Hamlib/issues/270
2020-05-30 22:45:43 -05:00
Michael Black W9MDB 9ecc14f897 Fix RIG_PTT_NONE detection from rigctl client by adding ptt_type to dumpcaps
https://github.com/Hamlib/Hamlib/issues/270
2020-05-30 16:59:36 -05:00
Michael Black W9MDB 353066a232 Fix rigctl/rigctld split ops/queries
Add vfo_fixup function.  We should be able to do all vfo corrections in rig.c instead of backends.  So we're migrating that way....
https://github.com/Hamlib/Hamlib/issues/269
2020-05-30 09:34:13 -05:00
Michael Black W9MDB 4af80d44c7 Add cache setting in another rig_get_freq return location 2020-05-27 23:40:14 -05:00
Michael Black W9MDB 677ccac4bc astyle files 2020-05-27 12:23:08 -05:00
Michael Black W9MDB 87a83ffbb1 rigctld now works with rigctl in vfo mode
https://github.com/Hamlib/Hamlib/issues/259
set_vfo_opt can now dynamically change vfo mode on rigctld
So this example now works...does some non-vfo stuff then switches to vfo mode
rigctl -m 2 F 14074000 V VFOB F 14076000 V VFOA f V VFOB f set_vfo_opt 1 f VFOA
rigctl commands v,V and S have been changed to not require VFO arguments
New API function rig_set_vfo_opt -- only implemented for Net rigctl as it doesn't apply to any other rigs
2020-05-27 12:21:41 -05:00
Bill Somerville c78b98d36b
Revert "Add debug to serial.c"
This reverts commit be439ea394.

Remove debugging code that breaks  the intended functionality. How did
this change pass even the most basic of tests?
2020-05-27 11:22:46 +01:00
Michael Black W9MDB be439ea394 Add debug to serial.c 2020-05-25 15:31:58 -05:00
Michael Black W9MDB 4f3ad4f3da Add debug for RTS PTT 2020-05-25 14:35:49 -05:00
Michael Black W9MDB a8fdcc146a Add a littld debug to rig.c 2020-05-25 09:10:40 -05:00
Michael Black W9MDB 89cd5c2c99 on rig_get_vfo ask for the real split mode 2020-05-25 07:38:03 -05:00
Michael Black W9MDB 1add89bd71 Add rules for setting VFO_RX and VFO_TX for different rig types
https://github.com/Hamlib/Hamlib/issues/261
2020-05-24 23:42:35 -05:00
Michael Black W9MDB a77a57ff38 Disallow requesting a vfo that the rig doesn't have.
This could be changed to automatically selecting a valid VFO so
VFOA=Main or Main=VFOA for example but not sure if we want to do this.
This is already being done for the IC-9700 for example since satmode
only has Main/Sub where non-satmode has MainA/MainB/SubA/SubB
So the question is do we emulate VFOA/B and Main/Sub for all rigs?
2020-05-21 15:51:41 +02:00
Michael Black W9MDB 9320bfb6ea Fix main/sub frequency saved values 2020-05-18 17:53:49 -05:00
Michael Black W9MDB dc389d7908 Change rig.c to utilize caps function 2020-05-16 21:33:52 +02:00
Michael Black W9MDB 545081c8d4 Fix rigctl/rigctld "V VFOA" protocol error
4.0 rigctld now works with 3.3 rigctl client and 4.0 rigctl client
https://github.com/Hamlib/Hamlib/issues/246
2020-05-15 14:17:59 -05:00
Michael Black W9MDB baf0ee7169 Add debug to rig.c 2020-05-13 17:40:36 -05:00
Michael Black W9MDB 28ce6d0b54 Fix ptt cache -- not specific to IC910 but was noticed during debugging this problem
https://github.com/Hamlib/Hamlib/issues/237
2020-05-12 13:19:33 -04:00
Michael Black W9MDB 3b2225e489 Fix IC-910 split mode operation with gpredict
https://github.com/Hamlib/Hamlib/issues/237
2020-05-11 19:00:52 -04:00
Michael Black W9MDB 1a4e61b2dd Fix several strerror that should be rigerror 2020-05-09 11:52:27 -05:00
Michael Black W9MDB 8e744a4ad7 Do not ask for freq in rig_set_vfo unless we can set the VFO succesfully 2020-05-09 10:22:46 -05:00
Michael Black W9MDB 3fecc5d91e Only update cache.vfo when RIG_OK is returned 2020-05-08 11:24:33 -05:00
mdblack98 d3ebdc5737 Update cache only when retcode=RIG_OK 2020-05-05 09:59:55 -05:00
mdblack98 d5d2650c2e Update cache only when retcode=RIG_OK 2020-05-05 09:59:28 -05:00
mdblack98 bf1a05084d astyle files 2020-05-03 17:24:42 -05:00
mdblack98 b244fe234c Fix caching math...helps when you get the units right...nanoseconds...not microseconds
https://github.com/Hamlib/Hamlib/issues/228
2020-05-02 17:32:37 -05:00
mdblack98 baa3787bc5 Add ELAPSED_INVALIDATE for caching use
Change rig_get_vfo to use ELAPSED_INVALIDATE
Change elapsed_ms code to make a little more sense
https://github.com/Hamlib/Hamlib/issues/231
2020-05-02 11:19:44 -05:00
mdblack98 4dd1b03d56 Add some debug to rig.c 2020-05-02 07:25:17 -05:00
mdblack98 c4430b7cb9 Fix split caching 2020-05-01 16:58:22 -05:00
mdblack98 9e710156e3 Add ability for rigctld client to turn vfo mode on/off with (,)
https://github.com/Hamlib/Hamlib/issues/232
Add caching of some limited rig information
Can be adjusted or turned off with rig_cache_set_timeout_ms or in rigctl with \set_cache_timeout
https://github.com/Hamlib/Hamlib/issues/228
2020-05-01 12:03:54 -05:00
Michael Black 2d0c157b09 Improve logic slightly in rig.c 2020-04-25 11:18:45 -05:00
c vw f6e3570e37 Allow device addresses of the form ":19000" to switch from serial to TCP
(not only aaa.bbb.ccc.ddd.port)
2020-04-25 17:44:07 +02:00
Michael Black 0267c1b7c9 astyle all files 2020-04-10 09:13:35 -05:00
Michael Black f1f0d7f129 Fix some of the documentation 2020-04-09 17:56:19 -05:00
Michael Black 46cb356f11 Fix numerous gcc v10 warnings 2020-04-04 22:49:27 -05:00
Michael Black 4f3ff0fc08 Fix compile error on last patch 2020-04-03 08:27:52 -05:00
Michael Black 67d09427d3 Add experimental network serial mode for network-based serial interfaces 2020-04-03 08:02:31 -05:00
Michael Black 8fd5e16363 astyle files 2020-03-26 11:11:46 -05:00
Michael Black 872d9b1f68 Add range_list2 to rig.c for setting available VFOs and modes 2020-03-23 16:22:54 -05:00
Michael Black c489f97624 More cppcheck changes 2020-03-20 07:51:32 -05:00
Michael Black 35fffc4f38 astyle files 2020-03-15 15:32:46 -05:00
Michael Black 8ef027c676 Fixes the default initialization of ranges by defaulting to range_list1.
Another step in migration of rigs to separate model numbers for variations in models
We default to using range_list1 now and eventually there will only be 1 range_list per model
We have enough room in the model numbers now to expand...so for example we will have
5 models for the IC-9700
IC-9700 USA
IC-9700 EUR
IC-9700 ITR
IC-9700 TPE
IC-9700 KOR
2020-03-06 08:49:21 -06:00
Michael Black d856248178 Add RIG_MODEL macro and change all rigs to support it 2020-03-05 08:44:18 -06:00
Michael Black 8b462a0242 Add set_twiddle and get_twiddle functions
Add -W switch to rigctld to set twiddle timeout..don't need switch for rigctl since it can set from there with \set_twiddle
2020-02-24 09:34:02 -06:00
Michael Black bceba85205 Temporarily disable twiddling detection in order to debug other stuff
Need to make this a switch
2020-02-24 00:03:42 -06:00
Michael Black 74b7900a52 Add get_freq to get_vfo to track freq for internal use
Move twiddling detection before set_vfo in set_freq
2020-02-23 23:20:33 -06:00
Michael Black ff8ddf018c astyle all C files 2020-02-23 11:26:09 -06:00
Michael Black 414b557b71 Add SCREENSAVER off to rig_open 2020-02-23 10:50:26 -06:00
Michael Black 81ea1efba2 Need to update rig->state.current_freq when twiddling 2020-02-23 08:45:25 -06:00
Michael Black 95986b9685 Add detection of VFO twiddling
In the case of gpredict there are times when one has to adjust the
VFO to dial in a frequency while gpredict is tracking.
We now detect this situation and have a 3-second delay every time
VFO twiddling is detected.  set_freq and set_vfo calls will be
ignored during this delay.
May make this a settable value if needed.
2020-02-23 08:28:19 -06:00
Michael Black e315f5e3ac Added skeleton for new get_ant function that will return ant_tx and ant_rx if known
Every rig will need to be reviewed to fill these in as appropriate
2020-02-18 23:10:14 -06:00
Michael Black c40ff7fce6 Re-enable -u modes and vfo lists using *_range_list1 entries for the moment
This logic needs to be overhauled as Icom (and probably others) are putting out
rigs with no way to tell what model you have from CAT control.
So we may end up having to explicitly list all rig models which is more user friendly anyways
and will work with WSJT-X and other user-space programs.
So, e.g., IC-9700 would be listed as 5 models: IC-9700-USA, IC_9700-EUR, IC_9700-ITR, IC-9700-TPE, IC-9700-KOR
2020-02-17 08:46:01 -06:00
Michael Black 8089e2c9d2 Remove region logic from rig.c 2020-02-17 06:43:41 -06:00
Michael Black fdef21f068
Merge pull request #193 from mdblack98/master
2020-02-05 Patches
2020-02-05 23:24:48 -06:00
Dawid Szymanski c6e06bfb01 ICOM Voice Keyer implemented. 2020-02-06 01:00:34 +01:00
Michael Black 7e8938ae65 Changed y command to now use mandatory antenna argument
Put a looplimit on icom_get_ant_count trying to get autodetect to work
Changes to icom_get_ant_count to try and get this working
Added dummy antenna # args to rigs that don't care i.e. only have 1 antenna
2020-02-02 08:38:10 -06:00
Bill Somerville e1e6969e9e
Simplify closing of device files
By treating PTT/DCD devices differently from rig control devices.
2020-01-26 19:06:27 +00:00
Bill Somerville be0f371bde
Remove duplication across GPIO and GPION handling of PTT and DCD 2020-01-26 14:46:21 +00:00
Bill Somerville 6573a283a8
Fixed erroneous messages in rig_close with GPIO(N) PTT or DCD types 2020-01-26 12:50:07 +00:00
Michael Black d853c36fb3
Change get_ant to add another option for icom rigs (and others if needed) 2020-01-21 17:53:12 -06:00
Michael Black b7e8f01701 Fix mingw32 DLL linkage of hl_sleep 2020-01-10 15:58:16 -06:00
Michael Black 6fe29ad942
Fix cppcheck warnings in rig.c 2019-12-24 15:47:06 -06:00
Michael Black ef5d2b7838
Fix cppcheck warnings in rig.c 2019-12-19 10:57:17 -06:00
Michael Black 8ff9a682cc
Add set_powerstat to icom.c and debug msg to rig.c 2019-12-16 10:51:36 -06:00
Michael Black fb73e5abd7
Fix some cppcheck warnings
Fix declarations after statements
Remove some !rig checks...we either don't need them or need them everywhere with a new error code
If you pass a NULL rig you get what you deserve :-)
2019-12-09 17:12:13 -06:00
Michael Black 6c0f101900
Fix cppcheck warnings in rig.c 2019-12-08 22:45:29 -06:00
Michael Black dddf63ca16
Fix cppcheck warnings in rig.c 2019-12-08 22:37:56 -06:00
Michael Black 0ec255366f
Fix gpio file descriptor leak in gpio.c 2019-12-08 16:54:15 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -06:00
Michael Black 73c1ecd165
Change freq & chan struct start/end to avoid colliding with LUA SWIG start/end 2019-08-17 23:20:48 -05:00
Michael Black cf2a551524
Fixup some amplifier code 2019-06-26 06:39:42 -05:00
Michael Black 7e9c566944
Add first cut at amplifier control 2019-06-12 15:52:35 -05:00
Michael Black 25736acd4b
Fix CM108 ptt_bitnum for pttport 2019-05-27 23:18:43 -05: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
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
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
Nate Bargmann ab3e6bb5a5 Formatted src/ to final coding guidelines 2017-10-04 21:32:08 -05: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
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
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
Michael Black 199111bcc4 Changed some modules to LGPL in lieu of GPL 2016-10-31 11:05:24 -05:00
Nate Bargmann 234122bb50 Merge pull request #25 from mdblack98/master
Expose version and licensing via function calls
2016-08-31 20:46:18 -05:00
Bill Somerville e44566e8a7 Release the serial port used for PTT when possible
When  using  separate  serial port  for  PTT  via  RTS  pr DTR  it  is
convienent to close  the port when the PTT line  is not asserted. This
allows other applications to share the PTT serial port.

This has been  achieved by ensuring that file descriptor  for the port
is set to -1 when the port  is closed, this then allows the invalid FD
to be used as a PTT surrogate for the rig_get_ptt API when the port is
only being used for PTT.
2016-08-31 22:34:09 +01:00
Michael Black da40941d7f Merge branch 'master' of https://github.com/N0NB/hamlib 2016-08-31 09:22:13 -05:00
Michael Black 15b3e73e7f Exposed constants via function calls 2016-08-31 09:05:47 -05:00
Jeroen Vreeken 3ee7b68d42 Add missing breaks and improve error messages 2016-05-30 14:12:01 +02:00
Jeroen Vreeken 1bf736d650 Add support for GPIO PTT. 2016-05-28 16:00:03 +02: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
Bill Somerville 21c346453a Implement combined split VFO frequency and mode setting.
CAT protocols that don't allow  direct addressing of VFOs require that
the  "other" VFO  be queried  or set  via a  select then  get/set then
select back  to original or  swap then  get/set then swap  again. When
both frequncy and  mode need to be set the  sequences can be optimized
if a single funciton is avaiable.

This enhancement adds those single functions rig_set_split_freq_mode()
and  rig_get_split_freq_mode()  with  a default  impelementation  that
calls the individual rig_{get,set}_split_{freq,mode}() functions. Back
ends  can choose  to  implement  an optimized  version  which is  used
instead of the default if present.

Using these  functions when  an optimized implementation  is available
allows the TX VFO's frequency and mode to be set in a single operation
with  only  one   VFO  exchange  or  selection  either   side  of  the
operation.  Many CAT  protocols  are very  efficient  when getting  or
setting both  frequency and mode  and some even  combine the two  in a
single command.

The letters 'K' and 'k' are used for the rigctl short command name for
these functions.
2016-03-23 17:09:26 +00:00
Bill Somerville cf65505511 Honour any error status from serial port calls
The  previous commit  introduced  a regression  that  masks any  error
return from  opening the serial  port used for  PTT when that  port is
different from the CAT serial port.
2015-04-22 22:16:35 +01:00
Bill Somerville de3fccf033 Lower both RTS and DTR on alternate PTT serial port
Before this  change only the  line used for  PTT was being  lowered on
open.   It is  necessary for  platforms  other than  Windows to  avoid
issues with other uses of the line not used for PTT such as interfaces
that wire-or RTS and DTR together or use it for CW or FSK keying. This
is because  platforms other  than Windows  raise both  DTR and  RTS on
serial port opening.

Also changed  code that opens CAT  port to lower  RTS or DTR if  it is
used for PTT. In this case there is no need to lower the other line of
DTR  or RTS  as there  is  already a  config parameter  to control  it
(dtr_state or rts_state). This change is necessary to maintain current
functionality.
2015-04-16 23:59:43 +01:00
Bill Somerville ddb0a12403 Use correct argument type for serial control line functions
The serial port  line control functions take a boolean  argument not a
ptt_t argument.   Changed usage in  rig_open() to use a  explicit zero
instead of RIG_PTT_OFF  value which only coincidentally  happens to be
zero.
2015-04-14 10:04:31 +01: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
Bill Somerville 4e2a6adf12 Move serial line control error checks to lower level routines
Moved in preference to introducing errno.h into rig.c.
2014-11-24 00:51:12 +00:00
Bill Somerville 0e0779877d Add more diagnostics and error checks to serial line control 2014-11-24 00:18:48 +00:00
Bill Somerville e1a0e9121c Always clear serial control lines when used for PTT
When a serial  control line (DTR or  RTS) is used for  PTT control the
rig_open()  function clears  the PTT  control line  after opening  the
port. This  is necessary on Linux  because opening the port  sets them
both as part  of the normal RS-232 protocol. The  lines were not being
cleared when the PTT port was the same port as the CAT control port.
2014-11-21 20:58:18 +00:00
Bill Somerville cd44a8d926 Only check for serial control line conflicts if PTT shares CAT port 2014-10-14 12:51:23 +01:00
Bill Somerville 19f131b1b8 Remove redundant RIG_PTT_SERIAL_CAT enum from ptt_t
The Icom IC-7100 back end added this enum instead of using the extant
RIG_PTT_RIG enum.  Also the rig_get_ptt() implementation didn't handle
it and errored out.

Note: RIG_PTT_SERIAL_CAT was added in commit
e9ee671149  - N0NB
2014-10-09 10:25:38 -05:00
Nate Bargmann 0fa8a5656c Quell warning from MinGW on setting CM108 pttbitnum
MinGW was issuing the following warning:

  CC     rig.lo
rig.c: In function 'rig_init':
rig.c:330:36: warning: assignment makes integer from pointer without a cast [enabled by default]
  rs->rigport.parm.cm108.ptt_bitnum = DEFAULT_CM108_PTT_BITNUM;
                                    ^

The constant DEFAULT_CM108_PTT_BITNUM was being defined as a string on
non-linux platforms.  Now defined to an integer on these platforms.  The
actual value may need to be corrected at some point in the future when
CM108 support is completed for those platforms.
2014-02-16 07:33:42 -06:00
mvcstroomer e9ee671149 Add Icom IC-7100 support.
From Martin, CT1IQI:

"Several programs under Linux rely on Hamlib for control. I wanted to
try WSJT-X (digital modes like JT65) and found that my new IC-7100 was
not yet supported, also after having compiled the current git version of
Hamlib and having compiled WSJT-X against that.

So I added a IC-7100 by taking the ic-7200 and 7420 rig files as
example, be it without going (yet) through all of the very many commands
the ic-7100 supports.

This produced the situation where there was communication, e.g. setting
and reading frequencies, but the PTT control did not work.  I debugged
that to actually the lack of a PTT mode in Hamlib that uses serial and
CAT at the same time; currently PTT per 'serial' seems equivalent to
toggling certain RS232 pins but not to any serial command level. So I
added a RIG_PTT_SERIAL_CAT mode for PTT control. Now the wsjt-x program
works nicely with the ic-7100 and controls both frequency and PTT via
the single USB cable."

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-10-25 08:40:36 -05:00
Bill Somerville efd1917e98 Fix rig_open not failing when PTT/DCD port is unavailable.
rig_open was giving RIG_DEBUG_ERR messsages if PTT or DCD
port was unavailable but the function was not returning an
error status.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-21 21:14:11 -05:00
Bill Somerville ef28e435d8 Patch to allow same serial port for PTT and CAT.
Hi,

patch attached to enable the above which was partially coded but not
quite working.

73
Bill
G4WJS.

>From 9dab3a250dfad7203772df91aadf79d38c108f04 Mon Sep 17 00:00:00 2001
From: Bill Somerville <bill@classdesign.com>
Date: Fri, 6 Sep 2013 01:13:34 +0100
Subject: [PATCH] Fix using same serail port for PTT and CAT

src/rig.c was coded to allow the same serial port for PTT and
CAT but them tried to open the port twice. I have added code
to share the file descriptor in this situation.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-18 12:34:20 -05:00
Kamal Mostafa 3466512dbd Fix spelling errors 2012-08-21 19:54:50 -07:00
Stephane Fillod 46033db165 CM108 GPIO PTT: do not break ABI
Move around the ptt_bitnum field in the union of hamlib_port_t.
Increase Hamlib frontend revision.
2012-01-11 23:28:01 +01:00
Andrew Errington 1a77ef9eb9 Initial support for CM108 GPIO contorl of PTT
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-01-11 06:16:51 -06:00
Nate Bargmann b31cc6ecd9 Assure NULL terminated strings in src files.
Various strncpy operations could result in a port pathname that is not a
NULL terminated string as the allowed string length is the same size as
the buffer per the strncpy manual page.  This is corrected by assuring
that the allowed length is FILPATHLEN - 1.
2012-01-07 20:50:34 -06:00
Stephane Fillod da80137819 Add support for RIG_PORT_UDP_NETWORK
Also some copyright year update,
and default serial device on MacOSX
2012-01-06 09:28:24 +01:00
Nate Bargmann dad27d1f69 Update LGPL header in src source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:37 -05:00
Stephane Fillod 421909bad2 Let set_ptt() select source, either TX mic or TX data 2011-07-20 00:09:50 +02:00
Stéphane Fillod, F8CFE 5c24ee2925 Workaround SF#3055689
* make sure the PTT is not set when configured as RTS/DTR at open()/close() time.
  It appears the Linux kernel force their value as explained here[1] during open.
  Also obvious when reading the source code[2], esp. in uart_startup() 
  and uart_update_termios() where uart_set_mctrl(port, TIOCM_DTR | TIOCM_RTS) 
  is called.

[1] http://books.google.fr/books?id=75eeBNcjcuIC&lpg=PA152&ots=Qvgi6VDLvm&pg=PA152#v=onepage&q&f=false
[2] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/serial/serial_core.c;hb=HEAD

* don't let the OS change modem signals at close() time


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2983 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-17 14:46:16 +00:00
Stéphane Fillod, F8CFE b818045a0a - better portability check with HAVE_SIGACTION
- fix segfault when doing rig_set_trn(POLL->OFF->POLL)
- implement remove_trn_rig()/remove_trn_poll_rig() for rig_set_trn(TRN_OFF)


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2956 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-08-21 11:37:58 +00:00
Stéphane Fillod, F8CFE 6feb18f611 use ptt port pathname same as rig port pathname when unset and rig is type serial
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2915 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-17 22:20:58 +00:00
Stéphane Fillod, F8CFE 453995e7c0 fix segfault and allow mode listing in rigctl
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2865 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-05 10:01:09 +00:00
Kamal Mostafa, KA6MAL 5e21991a28 Hard-code length of hamlib_version and hamlib_copyright strings
to stay compliant with hamlib 1.2 ABI and avoid spurious "consider
relinking" warnings from dynamic loader.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2839 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-27 16:09:07 +00:00
Nate Bargmann, N0NB 6763e8e750 Fixed long path calculation in azimuth_long_path() in locator.c
Spelling edits and removal of space at the end of lines in rig.c



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2829 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-14 21:47:49 +00:00
Stéphane Fillod, F8CFE 46289ed58e convert parallel ptt to cwdaemon interface(STROBE+INIT)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2747 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-11-01 18:48:27 +00:00
Stéphane Fillod, F8CFE bbafe261fd factorize port_open/port_close, fix a bug when setting RTS/DTR
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2729 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-09-14 07:49:04 +00:00
Stéphane Fillod, F8CFE 976540de77 set/get_split_{freq,mode} assisted by frontend
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2655 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-20 14:14:31 +00:00
Stéphane Fillod, F8CFE b3037797c8 fix error code in rig_mW2power()
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2515 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-16 22:40:32 +00:00
Stéphane Fillod, F8CFE ab24cf45e3 MinGW network fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2472 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-05 23:02:00 +00:00
Stéphane Fillod, F8CFE 30245bf73a resolve normal passband where available in rig_get_mode/rig_get_split_mode
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2445 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-10-31 23:08:59 +00:00
Stéphane Fillod, F8CFE 2492903ea9 accept partial 'pathname' for PORT_NETWORK
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2406 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-09-23 22:02:40 +00:00
Stéphane Fillod, F8CFE 0e7d1eacea implementation of PORT_NETWORK
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2395 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-09-21 19:30:35 +00:00
Stéphane Fillod, F8CFE 6f4705fc20 BUG#2106524: allow backend specific override get_ptt even if RIG_PTT_SERIAL_DTR (e.g. FT757GXII)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2379 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-09-12 11:49:32 +00:00
Stéphane Fillod, F8CFE 74495d7dfb default serial device on BSD systems
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2343 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-05-04 15:36:23 +00:00
Nate Bargmann, N0NB ec79e3cfb3 Documentation edits and additions for doxygen generated documentation.
Add missing enum to string definitions in settings.c


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2257 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-11-26 20:54:12 +00:00
Martin Ewing, AA6E f6ddc3edad documentation
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2145 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-10-15 00:27:52 +00:00
Alexandru Csete OZ9AEC 8798d79045 Cast constant caps to variable caps in order to avoid compiler warnings.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2118 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-10-07 13:08:19 +00:00
Stéphane Fillod, F8CFE f3fba54375 bump (c) date, add delay if RTS/DTR is set
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2076 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-02-26 19:28:04 +00:00
Stéphane Fillod, F8CFE 36c62542ae added usb port type support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2046 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-11-01 23:02:02 +00:00
Stéphane Fillod, F8CFE 15acf131b2 rig_mW2power fix reported by Brian Mury VE7NGR
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2037 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-06-20 21:15:48 +00:00
Stéphane Fillod, F8CFE 20f5e6fc3c tab reformat
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1989 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-04 18:31:00 +00:00
Stéphane Fillod, F8CFE 8c5dc8e225 fix targetable all
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1984 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-03 22:33:08 +00:00
Stéphane Fillod, F8CFE 9fae198566 renamed port_t as hamlib_port_t
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1957 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-03 12:27:17 +00:00
Stéphane Fillod, F8CFE c806c7e40c added emulated split operation through RIG_OP_TOGGLE
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1949 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-03-26 17:57:14 +00:00
Stéphane Fillod, F8CFE af21fced51 initial parallel port support for *BSD
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1924 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-02-20 02:38:29 +00:00
Chuck Hemker, N2POR 4270967938 Use RIG_TARGETABLE_MODE in rig_set_mode and rig_get_mode
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1897 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-01-12 01:55:38 +00:00
Stéphane Fillod, F8CFE 3e43344263 Split parallel port primitives in separate file from serial
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1862 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-10-02 20:37:24 +00:00
Stéphane Fillod, F8CFE 643fb5feae * ser_ptt*/ser_dcd* are gone. Try to not mix low level serial stuff with
high level Hamlib stuff. Added ser_get_cts,ser_get_dsr,ser_get_car.
* better error code cascading


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1861 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-10-02 20:18:16 +00:00
Stéphane Fillod, F8CFE f23efe3a7c prepare work for Win32 systems which have 2 possible ABI: _stdcall and _cdecl
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1858 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-10-02 10:32:09 +00:00
Stéphane Fillod, F8CFE 7bac83a841 year stuff
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1781 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-01 23:12:58 +00:00
Stéphane Fillod, F8CFE b1017566bc added new error codes, as suggested by Nate
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1605 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-11-19 07:32:10 +00:00
Stéphane Fillod, F8CFE 6985ec78ca converted RIG_LEVEL_STRENGTH to RIG_LEVEL_RAWSTR. RIG_LEVEL_STRENGTH is then derived from calibration table
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1583 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-11-16 17:14:44 +00:00
Stéphane Fillod, F8CFE 7ec6ee0b12 remove unused buffered mode stuff
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1555 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-10-01 19:44:00 +00:00
Stéphane Fillod, F8CFE 88fb6a6330 Default device name (OS dependant)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1525 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-08-25 22:33:38 +00:00
Stéphane Fillod, F8CFE 343deb6f59 Support for pipelined tuning, including DCD on CD line.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1510 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-08-17 22:39:07 +00:00
Stéphane Fillod, F8CFE dc4564b4ff fix previous commit(rig_close) and default parallel port
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1492 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-06-22 21:37:42 +00:00
Stéphane Fillod, F8CFE 73655ad83b handle RIG_PORT_PARALLEL ports in open/close
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1484 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-06-22 19:41:59 +00:00
Stéphane Fillod, F8CFE f8135d52df Implemented emulation of rig transceive mode using polling (based on SIGALRM),
moved all transceive and event related functions from rig.c to event.c.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1468 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-05-03 13:17:25 +00:00
Stéphane Fillod, F8CFE 484235b463 doxygen fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1459 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-27 22:15:06 +00:00
Stéphane Fillod, F8CFE 026428e1b7 upgrade to libtool 1.5
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1447 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-19 13:47:57 +00:00
Stéphane Fillod, F8CFE a07a4a336e Adopt new split_vfo handling. Basically, rename set_split/get_split
to set_split_vfo/get_split_vfo, and take an extra transmit vfo arg.
Ascending compatibility is retained at the API frontend level.
NOTE: only function name has changed. The backends do not implement
necessarily the new semantic (the extra tx vfo is just ignored).


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1425 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-06 18:40:36 +00:00
Stéphane Fillod, F8CFE fdabf14513 allow discovery(probe) of more than one rig attached to a port, fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1405 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-03-10 08:26:09 +00:00
Stéphane Fillod, F8CFE 8d707be2a4 added support for set DTR/RTS state, useful to power external device from the serial port
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1378 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-02-23 22:38:54 +00:00
Stéphane Fillod, F8CFE f6c7db3e03 fix a potential seg fault on backend open failure, initialize state.current_vfo appropriately
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1356 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-01-29 22:31:18 +00:00
Stéphane Fillod, F8CFE aeb4d70336 misc update
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1299 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-28 22:32:42 +00:00
Stéphane Fillod, F8CFE e2f54e9d10 split rig.c
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1242 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-04 22:22:30 +00:00
Stéphane Fillod, F8CFE c69f9b4168 cleanup doxygen warnings
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1191 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-09-24 21:42:56 +00:00
Stéphane Fillod, F8CFE a6162272fa fixed typo
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1143 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-09-01 22:23:49 +00:00
Stéphane Fillod, F8CFE b024552a03 fix dangerous typo in case of get_channel emulation
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1118 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-07-10 21:30:47 +00:00
Stéphane Fillod, F8CFE 7bf3972b30 - removed rig_save_channel and rig_restore_channel from API
- rig_set_channel and rig_get_channel can now target VFO, besides memories
- emulation of set_channel and get_channel has been kept in generic routines.
  Added in these routines the support for ext_levels.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1113 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-07-09 22:17:14 +00:00
Stéphane Fillod, F8CFE e8403d542d added "extra" level and "extra" parm support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1111 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-07-09 20:40:28 +00:00
Stéphane Fillod, F8CFE 0ca66e37bb added new error codes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1033 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-03-18 22:59:30 +00:00
Stéphane Fillod, F8CFE 8ff300fd56 various fixes associated with get_channel and set_channel
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1028 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-03-14 23:06:02 +00:00
Stéphane Fillod, F8CFE ce5e6a57c7 added functions to install event callbacks with its private data pointer
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@978 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-02-27 23:34:02 +00:00
Stéphane Fillod, F8CFE 9b245477da token defines moved to token.h
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@924 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-27 14:55:30 +00:00
Stéphane Fillod, F8CFE e8e8084222 check communication is opened
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@887 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-21 08:30:31 +00:00
Francois Retief 8803970e9b check trn state of rig in rig_open.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@855 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-07 18:18:15 +00:00
Stéphane Fillod, F8CFE 32bdc73f20 backend init time failure fix and other misc fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@816 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-27 22:00:27 +00:00
Stéphane Fillod, F8CFE 95ac29fbdf fix with backend open failure case, and misc update
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@806 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-26 23:47:07 +00:00
Stéphane Fillod, F8CFE 170644f6e5 removed useless vfo arg to set_trn/get_trn funcs
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@780 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-20 07:46:13 +00:00
Stéphane Fillod, F8CFE 83377f40ad tones fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@774 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-19 03:35:27 +00:00
Stéphane Fillod, F8CFE 3d6b1e5131 finer grained targetable vfo cap
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@746 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-16 11:17:42 +00:00
Stéphane Fillod, F8CFE b75b5e6613 fix double close() issue
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@701 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-10-25 21:22:49 +00:00
Stéphane Fillod, F8CFE 39f604062f added open/not open flag
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@690 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-10-16 21:18:02 +00:00
Stéphane Fillod, F8CFE 197d62af6b do not export ctcss and dcs data lists if dll does not support it (eg. win32), and then, workaround this
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@682 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-10-16 19:19:46 +00:00
Stéphane Fillod, F8CFE fe388a8784 various cleanup of old stuff (mv_ctl)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@614 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-08-08 06:04:49 +00:00
Stéphane Fillod, F8CFE bdfe0b969a 'path' field renamed in port_t
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@608 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-25 21:59:55 +00:00
Stéphane Fillod, F8CFE 99b10b1aef added set/get_conf support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@599 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-21 13:00:03 +00:00
Stéphane Fillod, F8CFE 1f01081335 converted to LGPL
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@582 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-13 19:08:15 +00:00
Stéphane Fillod, F8CFE c9dc785aaa renamed xet_ctcss to xet_ctcss_tone and xet_dcs to xet_dcs_code to make it less ambiguous in regards to the squelch functions
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@576 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-01 11:46:17 +00:00
Stéphane Fillod, F8CFE f3b44939b0 converted from hamlib-doc to doxygen style API commenting
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@569 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-30 12:36:43 +00:00
Stéphane Fillod, F8CFE 16b77c5b31 simplified xet_split_freq/xet_split_mode, now handles only tx freq/mode
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@568 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-27 17:32:47 +00:00
Stéphane Fillod, F8CFE c3be2e3aef added scan function
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@567 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-26 20:55:29 +00:00
Stéphane Fillod, F8CFE c74995b05f further win32 porting
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@556 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-15 07:08:37 +00:00
Stéphane Fillod, F8CFE 9c32855611 more portability stuff
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@541 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-11 00:41:28 +00:00
Stéphane Fillod, F8CFE ed6bbc95a6 better error handling in serial comm, fix a bug in stream openning
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@536 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-10 22:19:08 +00:00
Stéphane Fillod, F8CFE e968f8e7be misc update for port_t support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@533 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-05 18:08:30 +00:00
Stéphane Fillod, F8CFE c1cb77c643 new automatic backend loading and sparse rig_model scheme
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@529 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-04 21:17:53 +00:00
Stéphane Fillod, F8CFE da19dd9a47 new port_t design
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@523 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-04 17:01:21 +00:00
Stéphane Fillod, F8CFE 7ffe3fbe22 mv_ctl replaced by vfo_op, added RIG_VFO_MEM support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@522 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-03 19:54:05 +00:00
Stéphane Fillod, F8CFE 3c3d5373df misc update
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@512 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-02 18:05:14 +00:00
Stéphane Fillod, F8CFE a4b66f55e1 * misc update
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@494 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-05-24 22:24:18 +00:00
Stéphane Fillod, F8CFE aa864ba239 * added common_ctcss_list table (50 tones)
* added support for XIT
* misc updates
* started work on rig_save_channel/rig_restore_channel
  to emulate rig_get_channel/rig_set_channel. Seems to work on my IC706MkIIG.
  see tests/dumpmem.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@478 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-05-04 22:44:10 +00:00
Stéphane Fillod, F8CFE 5a882344e3 * added rig_set_split_mode, rig_get_split_mode, and rig_send_morse
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@470 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-04-28 12:49:12 +00:00
Stéphane Fillod, F8CFE 29166df172 * fixed a bug in rig_init
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@458 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-04-24 19:55:29 +00:00
Stéphane Fillod, F8CFE 7933f49405 * added rig_reset() support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@444 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-03-04 23:06:30 +00:00
Stéphane Fillod, F8CFE 799b18dd8b * misc define renamed
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@440 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-03-04 13:06:36 +00:00
Stéphane Fillod, F8CFE cc52bc5495 * set_poweron is gone in favor of set_powerstat
* added send_dtmf and recv_dtmf wrappers


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@429 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-03-02 18:41:46 +00:00
Stéphane Fillod, F8CFE 8a11b41479 * added rig_set_parm/rig_get_parm and rig_has_set_parm/rig_has_get_parm
* added full_ctcss_list, dcs_ctcss_list, supposed to be complete (TBC)


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@412 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-03-01 00:30:58 +00:00
Stéphane Fillod, F8CFE 59ce5b695a * misc rewrite
* new fields in caps: vfo_list, priv
* shadowed tuning_steps
* coded in rig_passband_normal,rig_passband_narrow and rig_passband_wide
  as examples. Not activated yet.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@407 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-02-27 23:10:12 +00:00
Stéphane Fillod, F8CFE 8e69eb6033 * added rig_get_dcd support
* added port_type and filters proper shadowing


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@394 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-02-14 23:59:09 +00:00
Stéphane Fillod, F8CFE 8c9880b0dd * added RIG_PORT_NONE propoer support in rig_open
* added rig_set_ann/rig_get_ann and rig_set_ant/rig_get_ant wrappers


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@384 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-02-14 01:08:12 +00:00
Stéphane Fillod, F8CFE da3ff63df3 * updated after caps changes, see rig.h changelog
* fixed a potential divide by zero bug in rig_mW2power
* misc updates


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@365 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-02-11 23:09:16 +00:00
Stéphane Fillod, F8CFE f5c725c75c * added hamlib_version constant
* reworked serial/parallel PTT handling. Split functions so it'll be
  easier to add support for different architectures.
  This has been tested, and it works at least with my IC706 and
  PTT signaling on parallel port (using Data/Packet connector)


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@357 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-02-09 23:06:32 +00:00
Stéphane Fillod, F8CFE 3e910d3a3e * added rig_get_resolution and RIG_PORT_DEVICE support in rig_open
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@345 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-02-07 23:44:08 +00:00
Stéphane Fillod, F8CFE 50576d9502 * started some work on PTT signaling through serial/parallel ports.
RIG_PTT_SERIAL is no more, it is replaced by RIG_PTT_SERIAL_RTS and
  RIG_PTT_SERIAL_DTR.
* added comments for rig_get_level and RIG_LEVEL_STRENGTH


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@331 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-01-28 22:17:12 +00:00
Stéphane Fillod, F8CFE 327be0cce7 * added targetable_vfo support in wrappers for rigs that cannot address directly VFOs
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@318 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-01-05 18:24:20 +00:00
Frank Singleton, VK3FCS a069fad9f8 rig_cleanup and rig_close not calling backend
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@300 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-12-22 00:56:00 +00:00
Stéphane Fillod, F8CFE b864758580 * all the API functions are now targetted to a particular VFO.
This is a major change in the library interface, and the implementation
  is not complete yet (especially in the backends), but the API should
  be fine. Anyway, at this stage of developement, interface design
  experimenting matters more than completeness.
* added new shortfreq_t type for frequencies on 31bits (up to 2GHz)
  for use by offset/shifts/etc.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@285 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-12-05 22:01:03 +00:00
Stéphane Fillod, F8CFE d0e751257d * removed [sg]et_passband in favor of an enhanced [sg]et_mode which
includes the passband, since most rigs tie these parameters together
  quite often. For exemple, WFM is (RIG_MODE_FM,RIG_PASSBAND_WIDE) in Hamlib.
  Another set of functions will be needed to fine tune aditional
  frequency response/filters.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@280 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-12-04 23:39:18 +00:00
Stéphane Fillod, F8CFE b71c8da45e * cleanup, removed "not implemented" misleading comments
* added added squelch primitives of DCS/CTCSS
* added set/get_RIT and rig_get_info wrappers


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@274 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-11-28 22:33:37 +00:00
Stéphane Fillod, F8CFE 0f1150cd6b * addded wrapper for rig_set_bank
* misc fixups


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@252 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-29 16:30:43 +00:00
Stéphane Fillod, F8CFE 6c20d2ba20 * misc comments update about CTCSS & DCS
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@242 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-23 19:56:29 +00:00
Stéphane Fillod, F8CFE ae3c017e4c * Added "hamlib-doc" source comments, ala kernel-doc,gnome-doc.
See doc/ subdirectory for more info. The work is still in progress,
  the current comments are pretty shallow rigth now, they're still
  lacking the valuable information like semantics, side effects,
  special cases, error definitions, etc. that makes a good API documention.
  Please help commenting, fixing typos and mispellings!
* renamed rig_*_rpt_* functions to rig_*_rptr_* to be more uniform
* made use of setting_t type in *_has_* functions
* removed set_volume, get_volume, set_squelch, get_squelch,
  get_squelch_status, set_ant, get_ant, int et_att, get_att,
  set_preamp, get_preamp, set_power, and get_power
  in favor of set_level/get_level.
* set_func takes one more arg for the status (activate or desactivate)


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@234 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-22 16:08:23 +00:00
Stéphane Fillod, F8CFE 6f081b5c2e * Added rig_[sg]et_passband to [sg]et narrow/normal/wide filter. These are a good companions to rig_[sg]et_mode. Maybe they should be merged?
* Added rig_[sg]et_rpt_offs to set/get repeater offset

* Added rig_split functions: rig_[sg]et_split_freq (set RX and TX freq) and rig_[sg]et_split to activate split mode

* Added rig_[gs]et_level, however rig_set_preamp/rig_set_att/rig_set_ant et al. will be removed very soon.

* Added Memory/VFO handling routines (actually wrappers, like the rest)


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@219 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-16 22:08:51 +00:00
Stéphane Fillod, F8CFE 9a2c4dc7d0 * added support for set_trn to activate on the fly the transceive mode
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@208 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-10 22:11:48 +00:00
Frank Singleton, VK3FCS a5bcaa48ca added post_write_delay
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@204 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-09 01:17:20 +00:00
Stéphane Fillod, F8CFE 566ad55505 * added dynamic loading support with new data struct for known rig list,
* keep track of opened rigs (add_opened_rig/remove_opened_rig/foreach_opened_rig),
* misunderstanding on RIG_ENIMPL, this is RIG_ENAVAIL in most cases,
* added support for file buffered access (opt.),
* added rig_set_trn to turn on/off transceive support


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@196 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-08 21:45:20 +00:00
Stéphane Fillod, F8CFE 192c9dfe3e Moved from ../common
Added more wrappers, coded in mW2power power2mW
Added rig_set_debug/rig_need_debug/rig_debug
Various fixes


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@166 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-01 12:29:12 +00:00