Wykres commitów

1179 Commity (e900b4f9dc7e6c9328d6726f1d66152595d6e2bc)

Autor SHA1 Wiadomość Data
Michael Black W9MDB 1f0c2a2e4f Change settings. set_level/get_level to use RIG_TARGETABLE_LEVEL instead of RIG_TARGEABLE_PURE
Deprecating RIG_LEVEL_PURE
https://github.com/Hamlib/Hamlib/issues/414
2020-10-12 09:56:24 -05:00
Michael Black W9MDB 34e9327446 Don't expire cache if we just read the freq 2020-10-11 23:40:29 -05:00
Michael Black W9MDB 6d51f65528 astyle files 2020-10-06 23:14:27 -05:00
Michael Black W9MDB fca4cc7903 Lots of changes to get Main/Sub recognized across rigctl/rigctld boundary
Needs lots of testing
https://github.com/Hamlib/Hamlib/issues/395
2020-10-06 21:50:37 +01:00
Michael Black W9MDB 86949c4ef7 Remove debug 2020-10-02 23:00:53 -05:00
Michael Black W9MDB 293a844c41 Fix W command speed by using bytes requested correctly
read_string now recognizes binary strings to read 5X more bytes
Fixed Reply: prompt double output and space after :
https://github.com/Hamlib/Hamlib/issues/387
2020-10-02 17:23:48 -05:00
Michael Black W9MDB 0576a01ec2 astyle files 2020-10-01 22:51:31 -05:00
Michael Black W9MDB 7455fa1b91 Clean up compile warning on iofunc.c 2020-09-30 12:59:44 -05:00
Michael Black W9MDB 49d24815b2 Undo last commit to serial.c 2020-09-30 12:57:31 -05:00
Michael Black W9MDB 73d947213f Reduce debug inj iofunc.c 2020-09-30 12:56:47 -05:00
Michael Black W9MDB 3c6ae62e59 Change get_kenwood_level to return both float 0-1.0 and raw value
Fix Elecraft K3/K3S/KX2/KX3 RF level get/set
Update other rigs for new get_kenwood_level call
https://github.com/Hamlib/Hamlib/issues/388
2020-09-30 12:46:54 -05:00
Michael Black W9MDB cfff76dae6 Add some debug to show ser_open error
https://github.com/Hamlib/Hamlib/issues/383
2020-09-28 16:13:08 -04:00
Michael Black W9MDB 1e1e2a5fbd Add debug to settings.c 2020-09-27 16:07:26 -05:00
Mikael Nousiainen 499d17cd20 Fix errors in Icom extcmd definitions and handling. Migrate more commands on Icom rigs to use extcmds. Add extfuncs to dummy rig for testing. 2020-09-16 22:33:39 +03:00
Mikael Nousiainen 23971f8e75 Fix issues with Icom extcmds definitions, some ext_tokens missing. Refactor custom level implementations to use extcmds definitions. Print out extfuncs in caps dump. 2020-09-16 18:10:35 +03:00
Michael Black W9MDB 2020f29185 Remove redundant RIG_LEVEL_BRIGHT 2020-09-10 10:07:11 -05:00
Mikael Nousiainen c3ca7ef3a6 Propagate variable read_only value to rig implementation of get_channel 2020-09-09 18:12:17 +03:00
Michael Black W9MDB 24fb47cbe0 Added IC-705
Added RIG_LEVEL_BRIGHT -- IC705 has this level
Fixed range printout
https://github.com/Hamlib/Hamlib/issues/364
2020-09-06 12:28:35 -05:00
Michael Black W9MDB d18196f685 Lower log level of debug statement 2020-09-04 17:42:11 -05:00
Michael Black W9MDB fade1681fa Fix cppcheck errors and warnings 2020-09-02 16:56:11 -05:00
Michael Black W9MDB 5639d49e48 Fix -Z time display
https://github.com/Hamlib/Hamlib/issues/360
2020-08-31 23:03:58 -05:00
Michael Black W9MDB bc1e0cc678 https://github.com/Hamlib/Hamlib/issues/358
Added 50ms wait after serial port is opened.
MicroKeyer was rejecting "ID" command as it was too fast.
Values at 20ms or less weren't working so doing 2* safety factor
This shouldn't harm any other things going on.
2020-08-18 17:13:02 -05:00
Michael Black W9MDB 59358564c7 Add 230400 serial speed 2020-08-10 22:46:08 -05:00
Michael Black W9MDB 675a3673a9 Change debug in serial.c to hex 2020-08-10 22:36:55 -05:00
Michael Black W9MDB 4e83c351e7 Add some more debug to serial.c 2020-08-10 22:34:12 -05:00
Michael Black W9MDB 65fbc1cd4b Add some debug to serial.c 2020-08-10 22:26:25 -05:00
Michael Black W9MDB 298a1be19a Merge branch 'master' of https://github.com/Hamlib/Hamlib 2020-07-24 08:52:29 -05:00
Michael Black W9MDB 0ed89a77c8 Remove time() from date_strget as monotonicity was broken using this 2020-07-24 08:52:21 -05:00
Daniele Forsi d7b332c3f7 Fix spelling errors
Fixed using the following command:
codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"
codespell --write-changes --summary --skip=aclocal.m4,lib --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"

Codespell home page: https://github.com/codespell-project/codespell
2020-07-24 09:02:48 +02:00
c vw d0bff25bb9 Corrections 2020-07-17 12:22:21 +02:00
Michael Black W9MDB 6f8100ffc0 Fix cppcheck warnings 2020-07-08 11:48:48 -05:00
Michael Black W9MDB 5e801fd2b5 astyle files 2020-07-07 11:39:26 -05:00
Bill Somerville 281febec62
New power on option rather than power on/off
Also fixes incorrect token name usage in token definition
2020-07-04 23:23:39 +01:00
Bill Somerville 3f40029720
Add missing config parameters for rig power on/off and screen-saver
Defaults set to by compatible with prior released versions to avoid
regressive behaviour.
2020-07-04 19:42:37 +01:00
Michael Black W9MDB 5007765d10 Make the escaped com port really work
https://github.com/Hamlib/Hamlib/issues/337
2020-07-04 12:43:46 -05:00
Michael Black W9MDB 65eab6c430 Allow for escaped COM ports like \\.\COM3
https://github.com/Hamlib/Hamlib/issues/337
2020-07-04 12:37:26 -05:00
Michael Black W9MDB 41230fabc2 Fix sleep.c #endif 2020-07-04 12:05:17 -05:00
Michael Black W9MDB 8e79561b73 Compile sleep replacement only when HAVE_SLEEP is not defined
https://github.com/Hamlib/Hamlib/issues/336
2020-07-04 11:33:11 -05:00
Michael Black W9MDB 699927b3e7 Add additional get_freq if freq > 100MHz to update cache
This covers rigs that round VHF/UHF freqs to different intervals
https://github.com/Hamlib/Hamlib/issues/334
2020-07-04 11:20:38 -05:00
Michael Black W9MDB 3d7ddc7e03 Fix cppcheck warnings 2020-07-03 17:14:09 -05:00
Michael Black W9MDB 2e0c5f5687 Fix cppcheck warnings 2020-07-03 16:20:23 -05:00
Michael Black W9MDB 0c2b39c2e0 small change to debug statement 2020-07-03 08:38:33 -05:00
Michael Black W9MDB 4bd024c238 Fix come valgrind errors 2020-07-03 08:05:13 -05:00
Michael Black W9MDB e31500842c Ensure cache invalidated before re-reading freq in set_freq 2020-07-02 15:54:26 -05:00
Michael Black W9MDB 1ad029bfb3 astyle rig.c 2020-07-02 11:18:33 -05:00
Michael Black W9MDB 4cb0f2917e Fix rig_debug in rig.c 2020-07-02 11:15:27 -05:00
Michael Black W9MDB fa08887471 Change hamlib_cache_t enums to HAMLIB namespace 2020-07-02 10:23:41 -05:00
Michael Black W9MDB 613b7a6830 Add get_freq to set_freq for confirmation if < 100Hz interval
Should correct incorrect cache reporting and doppler issues
https://github.com/Hamlib/Hamlib/issues/334
2020-07-02 09:40:48 -05:00
Michael Black W9MDB d42d837162 Normalize cache namespaces to hamlib_ and HAMLIB_ 2020-07-01 22:33:32 -05:00
Michael Black W9MDB 923700ea2f Add logic for port only call like rigctl -m 2 -r :4532
https://github.com/Hamlib/Hamlib/issues/331
2020-06-28 12:17:24 -05:00
Michael Black W9MDB a789cb06bb Remove unnecessary debug 2020-06-27 23:21:39 -05:00
Michael Black W9MDB 720c123be0 Add some debug to rig.c 2020-06-25 05:54:06 -05:00
Michael Black W9MDB b6a960d48e All conversions to rig_flush now done
https://github.com/Hamlib/Hamlib/issues/307
2020-06-23 09:01:46 -05:00
Michael Black W9MDB 2c64ba9bba First round of rigs switched over to new rig_flush function
When done this will allow all rigs to use network connections and stil flush properly
https://github.com/Hamlib/Hamlib/issues/307
2020-06-23 08:27:45 -05:00
Michael Black W9MDB 835caf34f9 Add rig_flush function
https://github.com/Hamlib/Hamlib/issues/307
2020-06-22 23:54:11 -05:00
Michael Black W9MDB 253a3d8643 Fix spelling error 2020-06-22 23:46:27 -05:00
Michael Black W9MDB 4ff31d008f Fix rigctl -o with rigctld
https://github.com/Hamlib/Hamlib/issues/287
2020-06-22 23:16:02 -05:00
Michael Black W9MDB fd1e72f009 Fix com port device opening
https://github.com/Hamlib/Hamlib/issues/298
2020-06-22 07:48:09 -05:00
Michael Black W9MDB f7f9653b97 Fix rig_open with device names 2020-06-22 07:10:43 -05:00
Michael Black W9MDB a88faf29c7 Fix IPV6 addresses with link local
https://github.com/Hamlib/Hamlib/issues/298
2020-06-22 00:00:33 -05:00
Michael Black W9MDB 0f97f33877 Had to mess with _WIN32_WINNT to get inet_pton defined
So we change it to 0x0600 and then back to 0x0502
https://github.com/Hamlib/Hamlib/issues/298
2020-06-21 23:51:02 -05:00
Michael Black W9MDB d27d84c44b Change AI_NUMERICSERV to NI_NUMERICSERV for Windows compatibility 2020-06-21 23:23:55 -05:00
Michael Black W9MDB bc77820fe2 Add parsing for full 8 byte IPV6 address
https://github.com/Hamlib/Hamlib/issues/298
2020-06-21 23:16:05 -05:00
Michael Black W9MDB a3c4eb9ee0 Fix cppcheck warnings 2020-06-21 22:31:31 -05:00
Michael Black W9MDB e092a4a0a4 rigctld -T ::1 now works with rigctl -r ::1
More IPV6 testing needed on Windows and MacOS
Still not binding to link local addresses to be addressed next
https://github.com/Hamlib/Hamlib/issues/29
2020-06-21 17:47:04 -05:00
Michael Black W9MDB 379caace7c update comm_state when port_close is called 2020-06-21 16:15:00 -05:00
Michael Black W9MDB 3b3c2abb00 On a 2nd rig_open call it would fail since port was still open.
We now force close the port during rig_open.
This should prevent the invalid configuration error WSJT-X sees on rig_open
2020-06-19 23:26:59 -05:00
Michael Black W9MDB b0a956df81 Clean up compile/cppcheck warnings 2020-06-14 10:35:44 -05:00
Michael Black W9MDB ad08ee02e1 Fix get_split behavior in rig.c
This needs a lot of testing on different rigs
https://github.com/Hamlib/Hamlib/issues/303
2020-06-14 17:29:18 +02:00
Michael Black W9MDB 815db24852 Fix MSVC compile by removing unistd.h and defining our own rig_useconds_t
https://github.com/Hamlib/Hamlib/issues/301
2020-06-13 17:40:47 -05:00
Michael Black W9MDB f323a54b5a Fix cppcheck warnings and compile error 2020-06-13 16:31:25 -05:00
Michael Black W9MDB c5388b9f37 In icom.c remove priv->curr_vfo and change to rig->state.current_vfo
https://github.com/Hamlib/Hamlib/issues/299
2020-06-13 15:53:37 -05:00
Michael Black W9MDB 31fdc8cc0c Add some debug to rig.c 2020-06-13 12:54:33 -05:00
Michael Black W9MDB 2611cad188 Fix spelling error in rig.c 2020-06-13 07:36:31 -05:00
Michael Black W9MDB a11cddfd24 Clean up network_open pathname logic
https://github.com/Hamlib/Hamlib/issues/298
2020-06-13 06:57:27 -05:00
Michael Black W9MDB e54bc7e860 Change variable name for clarity 2020-06-12 22:51:16 -05:00
Michael Black W9MDB de20cadc85 Allow localhost, hostnames, and IPV6 addresses to enable NETWORK rig type
network_open still does not recognize valid IPV6 addresses yet
https://github.com/Hamlib/Hamlib/pull/290
2020-06-12 17:40:10 -05:00
Michael Black W9MDB b15c73d2d2 Fix segmentation fault/endless loop for Icom rigs 2020-06-12 16:34:48 -05:00
Michael Black W9MDB 1317bb8034 Fix vfo_fixup link error
Make vfo_fixup a HAMLIB function so it can be used elsewhere
https://github.com/Hamlib/Hamlib/issues/299
2020-06-12 08:28:05 -05:00
Michael Black W9MDB ef451705b8 Clean up redundant code in rig.c 2020-06-11 22:29:00 -05:00
Michael Black W9MDB 8e7586b3b2 Fix meade Autostart clause 2020-06-10 08:16:02 -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 17b404a6c7 Add seconds to dmmm2dec
Change meade.c to support dmmm2dec seconds
https://github.com/Hamlib/Hamlib/issues/268
2020-06-03 22:33:56 -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 W9MDB ed8d9d9926 Change ENIMPL returns to ENAVAIL for correctness 2020-06-02 23:01:01 -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 9898ea9522 Fix ms timer reference in debug in misc.c 2020-05-27 23:38:29 -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 d540def11b Change return type of elapsed_ms 2020-05-16 21:33:14 +02:00
Michael Black W9MDB 8e2eba0a6d Fix elapsed_ms INVALIDATE 2020-05-16 21:32:34 +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 f8321a36f4 Fix cppcheck warnings and fill out unused RIG_LEVEL items 2020-05-05 23:33:40 -05:00
mdblack98 0d5547db35 Merge branch 'master' of https://github.com/Hamlib/Hamlib 2020-05-05 10:04:42 -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 3794bc5a0a Fix cppcheck warnings 2020-05-05 09:38:36 -05:00
mdblack98 bf1a05084d astyle files 2020-05-03 17:24:42 -05:00
mdblack98 d75272ddac Fix caching math and clean up cachetest.c
https://github.com/Hamlib/Hamlib/issues/228
2020-05-02 23:10:55 -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 54fd75ffe8 Reduce verbosity on rig_strvfo 2020-05-02 07:57:16 -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 d5d6c55439 Fix JTDSK compilation warnings
https://github.com/Hamlib/Hamlib/issues/233
2020-05-01 14:33:35 -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
mdblack98 20cc059600 Merge branch 'master' of https://github.com/Hamlib/Hamlib 2020-04-26 16:51:34 -05:00
mdblack98 eb7829bd06 Add caching for the Yaesu IF command
It should speed up the WSJT-X/JTDX sequence of v,f,m,t by a fair bit removing two unnecessary IF commands that should get cached
2020-04-26 15:44:38 -05:00
Michael Black ce882b9be7 merge udpate 2020-04-26 14:58:30 -05:00
mdblack98 5eb5b6f3d8 https://github.com/Hamlib/Hamlib/issues/227
Added read_only flag everywhere
2020-04-26 14:37:03 -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
mdblack98 75d9beaac2 Increase NET_BUFFER_SIZE for network.c 2020-04-22 12:26:08 -05:00
mdblack98 d8fc515460 astyle iofunc. 2020-04-22 09:54:18 -05:00
mdblack98 ded8b6873d Add debug to read_string 2020-04-22 09:53:37 -05:00
Michael Black 0267c1b7c9 astyle all files 2020-04-10 09:13:35 -05:00
Michael Black 106a68bbc9 Documentation updates 2020-04-09 23:35:22 -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 b04d49eca5 reduce some debub verbosity 2020-04-03 15:22:07 -05:00
Michael Black 1998c6302e Fix idx_builtin macros to cover 63 levels 2020-04-03 09:36:59 -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 9ad4f2638a Remove some verbosity from rig_strscan 2020-03-31 16:10:43 -05:00
Michael Black b83ecd9a5c Reduce verbosity for rig_strvfop 2020-03-31 15:40:54 -05:00
Michael Black 8fd5e16363 astyle files 2020-03-26 11:11:46 -05:00
Michael Black 9e89c4455a Add VFO & ANT definitions to rigs that were missing them 2020-03-25 23:07:42 -05:00
Michael Black 48a584cca4 Fix vfo_str[] to terminate correctly 2020-03-25 16:33:33 -05:00
Michael Black 1025af9590 Change LVL_VOX to LVL_VOXDELAY in idx_builtin.h 2020-03-24 12:33:04 -05:00
Michael Black 86159408a4 Add CtrlHandler to neverused.c 2020-03-24 10:01:47 -05:00
Michael Black ab77eea8b6 Fix cppcheck warnings in misc.c 2020-03-24 09:59:18 -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 bda5feb1bd More cppcheck changes 2020-03-23 10:13:02 -05:00
Michael Black 8eb09c2a38 More cppcheck fixes 2020-03-23 07:52:01 -05:00
Michael Black 43d16846ea Update idx_builtin to 64-bit indexes and fix cppcheck warning 2020-03-23 07:51:43 -05:00
Michael Black c489f97624 More cppcheck changes 2020-03-20 07:51:32 -05:00
Michael Black 6d9c81cf6a A couple minor edit changes 2020-03-17 22:54:29 -05:00
Michael Black b54d6a6205 Add a couple functions to neverused 2020-03-16 11:32:16 -05:00
Michael Black 7fb932b894 Remove debug from serial.c 2020-03-15 22:40:40 -05:00
Michael Black 35fffc4f38 astyle files 2020-03-15 15:32:46 -05:00
Michael Black ed4b77726a Add VFO None for available VFOS 2020-03-15 09:52:47 -05:00
Michael Black 4e606a054f Add some debug for timing in serial.c 2020-03-15 09:52:05 -05:00
Michael Black c3120638f6 Increase RIGLSTHASHSZ to 2X maximum rig# 2020-03-12 16:39:52 -05:00
Michael Black 30e4f472f5 Fix HASHSZ in register.c and make a hash collision fatal 2020-03-12 09:07:48 -05:00
Michael Black 98e1316f11 Fix -L printout for rotctl south_zero 2020-03-10 17:00:44 -05:00
Michael Black f46067977a Fix rotctl set_conf 2020-03-10 08:43:42 -05:00
Michael Black 82f47afed0 clean up compiler warning 2020-03-08 08:42:11 -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 c5b4a18cf5 Merge branch 'master' of https://github.com/mdblack98/Hamlib 2020-03-05 08:44:38 -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 W9MDB 4b4eeae35c Fix clang warning on unitialized var in mem.c 2020-03-03 22:15:12 -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 f4c1143959 Add SCREENSAVER parm...implemented for 9700 for now 2020-02-23 09:48:21 -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 d634f84ed0 Remove verbose debug 2020-02-17 08:44:50 -06:00
Michael Black 01f83804d0 Add new 5-range frequency logic 2020-02-17 06:46:03 -06:00
Michael Black 8089e2c9d2 Remove region logic from rig.c 2020-02-17 06:43:41 -06:00
Malcolm Herring e3cef196f7 add g/set_ext_func to API 2020-02-11 09:48:13 +00: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
Michael Black 6edc9e003b
Change port for ampctl to 4531 to match other code 2020-01-27 22:57:40 -06:00
Michael Black 87ff07d625
Merge branch 'master' of https://github.com/Hamlib/Hamlib 2020-01-27 17:12:03 -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
Bill Somerville 5edceddcea
Update i/o functions to support GPIO(N) port closure 2020-01-26 12:33:05 +00:00
Michael Black bece609aca
Remove noisy debug from misc.c -- showed up rigctld -l for some odd reason 2020-01-24 12:17:16 -06:00
Michael Black 3ea6aceb2e
Fix rig dependency in src/Makefile.am 2020-01-23 22:47:13 -06:00
Michael Black f143d8abd9
Fix cppcheck warnings 2020-01-23 17:20:41 -06:00
Michael Black 5903cda8c6
Fix DLL warning on debug.c 2020-01-22 17:04:25 -06: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 3631bb2bc8
export dump_hex for DLL linkage 2020-01-20 16:59:40 -06:00
Michael Black fcbb386fcd
Update comment on rig_mem_count 2020-01-19 11:14:51 -06:00
Michael Black 702535c218
Restore rig_mem_count used by rig.swg 2020-01-18 14:05:28 -06:00
Michael Black 8d6e2fc781
Directory migration to new layout 2020-01-17 09:22:44 -06:00
Michael Black 7c7ecef678
cppcheck v1.9 clean bill of health now
cppcheck.sh script added with some exceptions for some code notices
neverused.c added to resolve "never used" messages
2020-01-15 23:03:12 -06:00
Michael Black 9de3984af9
Fix cppcheck warning in parallel.c 2020-01-15 22:40:23 -06:00
Michael Black 07b7f31a52
Remove commenct in microham.c 2020-01-15 22:20:22 -06:00
Michael Black e50f552e0f Fix mingw32 build 2020-01-15 15:57:01 -06:00
Michael Black a1ec13fc14
Add C4FM mode for Yaesu FT-991 2020-01-15 08:15:29 -06:00
Michael Black 297bf9aa6b
Fix cppcheck warnings 2020-01-14 23:36:01 -06:00
Michael Black 360e3061d9
Fix up some cppcheck warnings in microham.c 2020-01-14 14:20:31 -06:00
Michael Black dc92ae7843
Fix cppcheck warnings 2020-01-13 15:12:56 -06:00
Michael Black 272803c64c
Add uh_wkey_close to microham.h 2020-01-13 07:27:41 -06:00
Michael Black be79b195b4
Fix cppcheck warning in parallel.c 2020-01-12 22:36:10 -06:00
Nate Bargmann 69e9469da3
Add sleep.h to src/Makefile.am 2020-01-10 20:05:22 -06:00
Michael Black b7e8f01701 Fix mingw32 DLL linkage of hl_sleep 2020-01-10 15:58:16 -06:00
Michael Black 5ae03f0eed
Possible fix for mingw Win32 dll linking of nanosleep 2020-01-08 22:50:37 -06:00
Michael Black 7ee3a702f5
Replace all usleep with hl_usleep
Several places where usleep max value could be overflowed
New hl_usleep can take values > 1000000
2020-01-07 23:18:56 -06:00
Michael Black f2f56558e7
Enclose sleep replacement in HAVE_NANOSLEEP 2020-01-07 17:33:37 -06:00
Michael Black 836e5f5c17
Move time.h include to sleep.c 2020-01-06 07:25:38 -06:00
Michael Black 70115f7efd
Replace sleep macros with hamlib custom functions 2020-01-05 15:37:33 -06:00
Michael Black d7e9bfd35c
Fix mingw warning on parallel.c 2019-12-30 22:24:19 -06:00
Michael Black 6fe29ad942
Fix cppcheck warnings in rig.c 2019-12-24 15:47:06 -06:00
Michael Black 72e934b67e Fix mingw32 compilation of usb_port.c 2019-12-24 15:35:37 -06:00
Michael Black ed339b1c2b
Add sleep and usleep macros so all sleeps use nanosleep 2019-12-22 11:17:22 -06:00
Michael Black ef5d2b7838
Fix cppcheck warnings in rig.c 2019-12-19 10:57:17 -06:00
Michael Black 1715bcf422
Fix compilation error on parallel.c 2019-12-19 09:55:57 -06:00
Michael Black eb19298003
Fix cppcheck warning in register.h 2019-12-19 09:40:14 -06:00
Michael Black 8baeb4d5cf
Fix cppcheck warnings in cm108.c 2019-12-19 08:48:02 -06:00
Michael Black c71bb35ab1
Fix cppcheck warnings in parallel.c 2019-12-19 08:47:40 -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 e91df87a8f
Fix hex_dump..was printing negative values 2019-12-12 10:14:42 -06:00
Michael Black 5e44f6637e
Fix mingw compile error on rig_strrmodes 2019-12-12 09:47:24 -06:00
Michael Black b3c6b9d707
Add rig_strrmodes function and fix flrig to print mode list correctly 2019-12-12 09:13:30 -06:00
Michael Black 011efe0452
Merge branch 'master' of https://github.com/Hamlib/Hamlib 2019-12-11 07:47:24 -06:00
Nate Bargmann f1d0340b8d
Merge branch 'ampctl_mans' 2019-12-11 07:17:44 -06:00
Nate Bargmann 2c884a970a
Change ampctld default TCP port to 4531 2019-12-11 06:28:17 -06:00
Michael Black 8f205c2237
Merge branch 'master' of https://github.com/Hamlib/Hamlib 2019-12-10 07:23:24 -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
Malcolm Herring 60bf986776 Merge remote-tracking branch 'Hamlib/master' 2019-12-09 05:34:44 +00:00
Malcolm Herring 5f6e0641ad Prepare for D-STAR implementation
Add 3 new rigs: ID-31, ID-51 & ID-4100
Update other D-STAR rigs: IC-R30, IC-R8600 & IC-7100
2019-12-09 05:33:20 +00:00
Michael Black 8a3df9735e
Fix cppcheck warnings for ampctl_parse.c and redef amp_set_powerstat 2019-12-08 23:13:33 -06:00
Michael Black bc94558fe3
Fix cppcheck warnings in usb_port.c 2019-12-08 22:48:02 -06:00
Michael Black ddfa154694
Fix cppcheck warnings in rotator.c 2019-12-08 22:47:51 -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 03b39da00b
Fix cppcheck warnings in parallel.c 2019-12-08 22:35:50 -06:00
Michael Black 9aa920a873
Fix cppcheck warnings in parallel.c 2019-12-08 22:35:33 -06:00
Michael Black 8f5ac2d68c
Fix cppcheck warnings in misc.c 2019-12-08 22:29:48 -06:00
Michael Black c90b1dd7c6
Fix cppcheck warnings in microham.c 2019-12-08 22:27:44 -06:00
Michael Black 6ba8f88e2f
Fix cppcheck warnings in network.c 2019-12-08 17:09:08 -06:00
Michael Black 7020aba16d
Fix cppcheck warnings in mem.c 2019-12-08 17:04:08 -06:00
Michael Black 5be9dfe161
Fix cppcheck warnings in locator.c 2019-12-08 16:58:18 -06:00
Michael Black 1011ea16e4
Fix cppcheck warnings in iofunc.c 2019-12-08 16:56:14 -06:00
Michael Black 0ec255366f
Fix gpio file descriptor leak in gpio.c 2019-12-08 16:54:15 -06:00
Michael Black 55e36895bf
Fix cppcheck warnings in extamp.c 2019-12-08 16:36:45 -06:00
Michael Black 314fe20f39
Fix cppcheck warnings in ext.c 2019-12-08 16:35:55 -06:00
Michael Black 67c3b56ccd
Fix cppcheck warnings in event.c 2019-12-08 16:32:13 -06:00
Michael Black 531782d339
Fix cppcheck warnings in debug.c 2019-12-08 16:30:33 -06:00
Michael Black 910d799494
Fix cppcheck warnings in cm108.c 2019-12-08 16:29:39 -06:00
Michael Black 91678ef573
Fix cppcheck warnings in amplifier.c 2019-12-08 16:27:46 -06:00
Michael Black 8e5dc87ffd
Fix cppcheck warnings in amp_conf.c 2019-12-08 16:06:58 -06:00
Michael Black 09aecd5ce9
Fix uninitialize waqrning in parallel.c 2019-12-06 10:20:38 -06:00
Malcolm Herring b12a3e31b3 Fix Icom DCS SQL funnctions
Copied get/set_dcs_code functions to get/set_dcs_sql
Re-mapped all receivers DCS functiosn to sql.
2019-12-05 08:01:59 +00:00
Michael Black 12494c92d5
Add MainA, MainB, SubA, and SubB vfo choices for icom rigs with SATMODE
Clean up debug statements in icom.c
2019-12-02 07:50:05 -06:00
Michael Black dc3f33bc11
Change %z to %d with casts for portability 2019-11-30 13:05:21 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -06:00
Michael Black 72087f1b10
Change all __FUNCTION__ to __func__ 2019-11-30 10:16:28 -06:00
Michael Black 2f4d62709e
Added a dummy snprintf to rig_debug to allow gcc to check format strings
This found tons of errors in rig_debug statements
So this patch cleans up all the files that were producing warnings or errors
This should fix a few segfaults when running with debug turned on
2019-11-30 10:04:31 -06:00
Michael Black 0c72d75b57
Add south_zero option to token.h 2019-11-23 23:10:21 -06:00
Michael Black fa2293be50
Add south_zero option to rotator.c 2019-11-23 23:09:59 -06:00
Michael Black cda5aa1b37
Add south_zero optiont to rot_conf.c 2019-11-23 23:08:27 -06:00
Michael Black dc3ae60e1c
silence some debug in misc.c 2019-11-19 11:32:39 -06:00
Michael Black fab30e07c1
Add some debug for flush 2019-09-09 12:49:11 -05: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 08df457ab2
Restore else clause in network.c -- mistakenly removed 2019-07-31 23:13:35 -05:00
Michael Black 0f404dea20
Remove unneeded debug in network_flush 2019-07-31 12:37:06 -05:00
Michael Black cf2a551524
Fixup some amplifier code 2019-06-26 06:39:42 -05:00
Michael Black b23734fb5b
Fix rig.h for merge 2019-06-12 16:13:56 -05:00
Michael Black 7e9c566944
Add first cut at amplifier control 2019-06-12 15:52:35 -05:00
Johan Ström af7bb1a0fc Backup serial options on open, restore on close
Before altering the serial port settings, make a copy of the settings
and track it by the fd. On serial port close, restore the original
settings for that port.

On Mac OS the Prolific PL2032 kernel driver locks up if closing without
first restoring the options. When this happens, further usage of the port
is impossible until computer is rebooted, which cannot even be done
without a hard power-off.
With this fix, a clean close make sure we can re-open the port again.
2019-06-09 23:22:18 +02:00
Mikael Nousiainen 45a8c5c575 More fixes to many Icom HF rig backends: tuner function, VFO tune op, rig-specific AGC levels, basic set of filters where missing, get/set split, get/set powerstat, make get/set RIT/XIT commands shared functions, add new level for Noise Blanker level, fix RIG_MODE_PKTAM and add missing PKT modes for many rigs, add dual-watch function. Add RIT/XIT functions for TS-480 and TS-890. 2019-06-01 09:51:17 +03:00
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
Jeroen Vreeken 70127b6b9c Add Dorji DRA818 modules (VHF and UHF variants)
Also works with NiceRF SA818 modules
2017-02-22 12:14:50 +01:00
Jae Stutzman dfd969acd3 Use Windows ioctlsocket to avoid buffer overrun 2017-01-26 19:42:00 -06:00
Jae Stutzman 230430c4e9 Clears potential garbage data in read buffer prior to command being sent 2017-01-25 20:45:24 -06:00
Michael Tatarinov 7848d49a53 Fix typos. 2016-12-18 08:17:54 +04: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
Bill Somerville 4e53f99e51 Adjust rig_list_foreach to allow use for unregistering
This patch changes rig_list_foreach such  that the called function may
call rig_unregister without having to access freed memory. This avoids
a valgrind  MemCheck and makes  it possible  to clean up  teh rig_list
database.
2016-06-10 01:13:57 +01:00
Nate Bargmann bf2b5c80ba Merge branch 'master' of http://video.vreeken.net/~pe1rxq/hamlib-code 2016-06-05 11:43:53 -05:00
Michael Black W9MDB\n d5b3c049af Fixed SCAN_STOP for all rigs and implmented it plus SCOPE for ic7300 2016-06-02 23:08:22 -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
Nate Bargmann 0db862e560 Apply Linux C Style to parallel.c 2016-02-21 15:06:16 -06:00
Nate Bargmann 6a3214fd43 Apply Linux C style
Update files modified to support libusb-1.0.
2016-02-21 14:56:44 -06:00
Nate Bargmann 07353e1f80 Fix compiler warnings with x86_64-w64-mingw32-gcc
Compiling for Windows 64 resulted in several warnings.  Correct them by
using proper Windows function calls rather than casts.
2016-02-20 11:44:19 -06:00
Nate Bargmann 9ec98e0fe3 Check for libusb-1.0/libusb.h
Some distributions--Debian and Alpine tested--put libusb.h under the
libusb-1.0 directory.  Test for its presence and if found define
HAVE_LIBUSB_1_0_LIBUSB_H.  Also test for HAVE_LIBUSB or
HAVE_LIBUSB_1_0_LIBUSB_H and conditionally include the correct header
file in the sources.
2016-02-15 08:10:07 -06:00
Stephane Fillod 8d7697c3bd Migrating from libusb-0.1 to libusb-1.0 2016-02-14 18:02:26 +01:00
Michael Black 61a0e77110 Fix port->pathname checks
Was always true since it's statically allocated

RRR
Mike W9MDB
2016-02-09 10:59:09 -06:00
Bill Somerville fca48348a6 Add missing configuration getters 2016-02-04 09:09:35 -06:00
Dario Ventura 46fe57190e New Prosistel rotor backend from IZ7CRX
This is patch adding prosistel rotator backend.
Simply reading and setting azimuth for now.

73,
Dario Iz7crx
2015-12-31 08:25:14 -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 ca7cbd89f4 Fix compiler warnings 2015-11-27 19:17:47 +00:00
Bill Somerville 181a3e9697 Proper IPv6 and dual stack networking
This means that rigctl & rigctld  now work with default arguments on a
modern Windows  machine with dual  stack and localhost being  [::1] as
the first interface returned by getaddrinfo().

Try all the interfaces return by DNS lookups to establish a connection
or listening  port. Handle  Windows network  errors correctly  so that
meaningful messages are printed.

The rigctl program now accepts  IPv6 numeric addresses in the portname
field like [<addr>}:<port> for example  the IPv6 loopback on port 4531
would be [::1]:4531.
2015-11-27 13:47:48 +00:00
Nate Bargmann ffe3126a85 Make cnctrk visible to rotctl
After all these years one would think I would remember to read the
directions for all the steps involved.  Ummm, nope!

cnctrk is now visible to rotctl.
2015-08-22 11:21:23 -05:00
Michael Black e780f2dc66 Flush the debug stream
Testing under JTSDK MSYS environment debug info was not being seen while
running rigctl -vvvv

Adding a flush to the debug stream fixes it.

Mike W9MDB
2015-05-07 17:13:44 -05: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 143f305b49 Further clarification in the implementation of kenwood_transaction()
Buffer size is  now an input parameter only as  the return data length
is  implicit since  a null  terminated C  string is  returned.  Better
precondition checks are impelmented.
2015-02-16 12:46:35 +00:00
Stephane Fillod 80f921954b New IC-M700PRO backend
Backend for the ICOM IC-M700PRO marine transceiver.
2015-01-21 23:57:08 +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 82b8649030 Revert read_string() to partial results are a success status
The read_string() function was changed to return a -RIG_ETIMEOUT error
when timing out after having read  some characters. This caused a back
end to fail because it was  using a read_string() with an invalid stop
character  and relying  on the  timed out  read_string() to  fetch the
data. This  patch reverts to  the prior  behavior of returning  a null
terminated buffer and  read bytes count if at least  one byte has been
read.
2014-12-10 01:25:33 +00:00
Bill Somerville 849f1e1bf8 Fix serial i/o on Windows.
Fix bytes read count accumulation in Windows serial I/O.

read_string  from  communications  port   doesn't  handle  timeout  on
anything but the first character read.

Honour VMIN tty parameter correctly.
2014-11-30 11:22: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
Nate Bargmann 870da0a422 Merge branch 'serial-contro-line-error-fix'
of git://git.code.sf.net/u/bsomervi/hamlib
2014-10-18 07:37:20 -05:00
Bill Somerville cd44a8d926 Only check for serial control line conflicts if PTT shares CAT port 2014-10-14 12:51:23 +01:00
Nate Bargmann c38dfb97aa Quell compiler warning--missing parens
Got too quick on the trigger on the previous commit.  Added compiler
requested parentheses around AND test for previous commit.
2014-10-12 09:17:31 -05:00
Veijo Arponen 89ebe6bc84 Add support for DMK Engineering URI
I have a problem with the CM119A GPIO. The PTT line of the DMK
Engineering URI was not activated by the hamlib  when using fldigi or
rigctl.

I fiddled with the source code and managed to edit the code in cm108.c
to get the PTT-line activate on my URI-box.
A successful rigctl command is:

rigctl -p /dev/hidraw0 -C ptt_pathname=/dev/hidraw0,ptt_type=CM108,ptt_bitnum=2
Attached is the modified source code file and a patch in 'git diff'
format.

The version of origin is 1.2.15.3.

73 de Veijo OH3NFC

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2014-10-12 09:05:25 -05: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
Nate Bargmann 6ea09a138a Clean up build system, fix test programs
Clean up various left over commented lines from dlopen to single
libhamlib transition.  Remove unneeded configure variables.

Correct minor inconsistencies in Makefile.am files.

Define a new variable, READLINE_LIBS, so that only programs that offer
Readline support are linked against it.

Fix various compilation warnings and errors in test files revealed with
'make check' on MinGW.

Define rig and rotor backends to (mostly) be built in alphabetical
order.
2013-12-10 20:14:22 -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
Nate Bargmann 9cd11ebe27 Force libhamlib to be relinked when a backend is updated
Add the rig and rotor backends to the list of dependencies for
libhamlib.la so that updating a given backend will force libhamlib.la to
be relinked as well.  Thanks to Bill Sommerville, G4WJS, for reporting
this.

Removed obsolete references and variables related to LTDL.
2013-09-26 21:57:04 -05:00
Nate Bargmann 1f0590dfbe Fix conditional build of winradio backend
With the new registration code set the HAVE_WINRADIO preprocessor
conditional if the winradio backend is to be built and test this
conditional in src/register.c whether to build winradio support.
2013-09-22 20:45:49 -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
Nate Bargmann 1bac099494 Remove remaining references to rpc
As rpc backends were removed some time ago, remove all remaining
documentation and other references to rpc.
2013-09-19 15:24:52 -05:00
Ladislav Vaiz f632695131 Android build updates for monolithic build
Android is now built as a static library.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-19 07:25:08 -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
Nate Bargmann 332a04b7cd Clean up backend Makefile.am files
Moved all backend *.h files into the SOURCES primary as Automake
documentation states all source file types should be listed.  This
causes Automake to include *.h files in rebuild rules for the targets.

Removed the '-DIN_HAMLIB' assignment from the CFLAGS primary in each
backend and assigned it to AM_CPPFLAGS in configure.ac.  The effect is
the same and it simplifies the backend Makefile.am files.

Removed all commented lines.
2013-09-16 21:51:39 -05:00
Nate Bargmann 36f5f4cf6a Revert to previous handling of getaddrinfo()
Use the system gettaddrinfo function when possible as before.  Tested on
GNU, Cygwin, MinGW on Linux, and MinGW on Windows.  Under MinGW the
replacement getaddrinfo is used.  Perhaps this is an area for
investigation to be certain MinGW really doesn't supply getaddrinfo.
This reverts some of the patches from Remi Chateauneu in commit
60019c9.  This fixes build issues encountered building the Windows
binary daily snapshots.

Enabled static library build by default at configure time.

Fixed pthread library linking for the ars backend on MinGW.
2013-09-15 19:47:49 -05:00
Remi Chateauneu 60019c9444 Monolitic libraries. 2013-09-08 14:56:28 +01:00
Nate Bargmann b9ff04abf0 Fix W2k 'freeaddrinfo' error
Trying to run the pthread enabled binaries on W2k resulted in an error
dialog with the text, "The procedure entry point freeaddrinfo could not be
located in ws2_32.dll".  A Microsoft support page
(http://support.microsoft.com/kb/955045) hints that when 'ws2tcpip.h' is
included that 'wspiapi.h' should be included as well.  Since MinGw
includes both files, this patch corrects the runtime error on W2k
2013-05-18 07:31:40 -05:00
Nate Bargmann df64a49428 Specify libhamlib.la dependencies 2013-05-09 22:11:01 -05:00