Mike Black W9MDB
f00661a8ae
Fix unused cppcheck warnings
...
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-01 12:01:38 -05:00
Mike Black W9MDB
e1e7112cb5
Fix redundant cppcheck warnings
...
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-01 11:54:44 -05:00
Mike Black W9MDB
8bb6a57548
Reduce debug in fifo.c
2023-09-30 15:43:52 -05:00
Mike Black W9MDB
6644afbf8d
Fix segfault with rigctld/rigctl -m 2 -u
...
https://github.com/Hamlib/Hamlib/issues/1386
2023-09-20 17:35:29 -05:00
Mike Black W9MDB
1fbb03fa92
Remove multicast.c from build
...
https://github.com/Hamlib/Hamlib/issues/695
2023-09-20 12:17:10 -05:00
Mike Black W9MDB
5f825aa0d4
Add modelist to multicast
...
Add time to multicast
Fix id to show rig+path
Remove sleep to speed up multicast packets to once per seconds
https://github.com/Hamlib/Hamlib/issues/695
2023-09-18 12:48:39 -05:00
Mike Black W9MDB
86df4001a1
Remove one more section from multicast to avoid compile warning fornow.
...
https://github.com/Hamlib/Hamlib/issues/695
2023-09-16 11:25:22 -05:00
Mike Black W9MDB
57c8819ce0
Remove multicast rx until we get it working
...
https://github.com/Hamlib/Hamlib/issues/695
2023-09-16 10:00:07 -05:00
Mike Black W9MDB
e9ef4c1a81
Add ModeList to multicast packet
...
https://github.com/Hamlib/Hamlib/issues/695
2023-09-16 09:47:30 -05:00
Mike Black W9MDB
0bee582095
Remove some more debug from multicast.c to get git build working again
2023-09-15 23:50:50 -05:00
Mike Black W9MDB
e972262e80
Remove some debug from multicast as github build was perhaps failing on it
2023-09-15 23:43:09 -05:00
Mike Black W9MDB
3e91601a0f
Fix JSON for multicast
2023-09-15 23:22:10 -05:00
Mike Black W9MDB
3cf5fab21d
Slow down multicast broadcast when no change has occurred
...
https://github.com/Hamlib/Hamlib/issues/1090
2023-09-14 09:44:50 -05:00
Mike Black W9MDB
ee807a7541
Prevent multicast from doing rig queries at all for now -- threading contention needs to be addressed
...
https://github.com/Hamlib/Hamlib/issues/695
2023-09-14 08:55:21 -05:00
Mike Black W9MDB
a00326161c
Phase I of rig multicast
...
https://github.com/Hamlib/Hamlib/issues/1090
2023-09-13 17:25:26 -05:00
Mike Black W9MDB
2e3e0df4d6
Remove debug from serial.c
2023-08-29 07:45:42 -05:00
Mike Black W9MDB
b40da0f6b0
Increase send_morse size to use maximum for rigs or 20 chars (if morse_qsize unknown)
...
This will still allow for up to 1023 characater to queue up.
No guarantees on which rigs allow for this queuing though.
Kenwood rigs can at least find the buffer status to wait for room but not all rigs do.
https://github.com/Hamlib/Hamlib/issues/1368
2023-08-19 12:36:07 -05:00
Mike Black W9MDB
af86f44eac
Fix CW morse infinite loop when error occurs RIG_EINVAL
2023-08-18 22:35:21 -05:00
Mike Black W9MDB
3814f2dadf
Add set_voice_mem and stop_voice_mem for K3/K3S/K4
...
https://github.com/Hamlib/Hamlib/issues/1367
2023-08-18 16:49:35 -05:00
Mike Black W9MDB
8c63fdeafc
Add KEYERTYPE for IC-7300, IC-705, IC-9700
...
https://github.com/Hamlib/Hamlib/issues/1363
2023-08-17 17:52:03 -05:00
Mike Black W9MDB
e887152407
Fix parm_gran
...
https://github.com/Hamlib/Hamlib/issues/1357
2023-08-17 16:04:45 -05:00
Mike Black W9MDB
5062d565a9
Add the ability to parse '1' in parse_vfo for gpredict 'S 1 1' and 'S 0 1' command
...
https://github.com/Hamlib/Hamlib/issues/1362
2023-08-14 16:15:03 -05:00
Mike Black W9MDB
ac5018a9a3
Update 60M band for BANDSELECT
2023-08-11 13:31:23 -05:00
Mike Black W9MDB
1f50b88320
Fill out BANDSELECT frequency table
...
https://github.com/Hamlib/Hamlib/issues/1353
2023-08-11 12:12:17 -05:00
Mike Black W9MDB
d7d450df49
Add parm BANDSELECT for Yaesu rigs
...
'p BANDSELECT' returns current band of VFOA
'P BANDSELECT BAND160M' example selects the 160M band
'P BANDSELECT ?' shows bands available for the rig
Kenwood rigs will be next
Icom rigs TBD when Icom explains the return from 0x1a 0x01 -- no bandselect possible so manual setting of rig values
https://github.com/Hamlib/Hamlib/issues/1353
2023-08-11 10:40:42 -05:00
Mike Black W9MDB
55370c1e64
Fix non-targetable VFO Icom rigs (e.g. IC7100) error during open routine by call get_freq first to establish echo on or off
...
https://github.com/Hamlib/Hamlib/issues/1358
2023-08-07 17:21:39 -05:00
Mike Black W9MDB
89797e5a54
Fix rig_set_freq to only set vfo at end when needed
...
https://github.com/Hamlib/Hamlib/issues/1126
2023-07-31 22:40:42 -05:00
Mike Black W9MDB
d9b1cfb404
Fix fifo.c mutex handling
2023-07-31 09:08:34 -05:00
Mike Black W9MDB
006f724dae
Make fifo.c thread safe
2023-07-30 07:53:17 -05:00
Mike Black W9MDB
b4ddf64b31
Assume rig is powered on if get_powerstat is not implemented
2023-07-30 07:25:57 -05:00
Mike Black W9MDB
21c5c3f419
Update comments in rig.c
2023-07-30 07:17:44 -05:00
George Baltz N3GB
192b5fe7a5
Fix segfault on rigctl exit
...
If rigctl does a recovery close/open cycle, a freed buffer gets reused.
This can cause segfault or worse.
2023-07-28 08:13:03 -04:00
Mike Black W9MDB
da96315dc5
Fix serial.c
...
https://github.com/Hamlib/Hamlib/issues/1123
2023-07-24 12:19:14 -05:00
Mike Black W9MDB
09143fcff9
Make find_port win32_serial_find_port so it can used elsewhere
...
Use WIN32 PurgeComm instead of polling chars
https://github.com/Hamlib/Hamlib/issues/1123
2023-07-24 12:15:37 -05:00
Mike Black W9MDB
557e9a71e5
Change fifo push to eliminate chars > x80
...
sending 0xff through rigctld was pushing -1 and causing peek to lock up
2023-07-24 09:44:40 -05:00
Mike Black W9MDB
d02b9f02b1
Force flush of rig when first opened
...
https://github.com/Hamlib/Hamlib/issues/1123
2023-07-23 16:04:31 -05:00
Mike Black W9MDB
9c246ed3fb
Disable use_cached_freq/mode for Icom rigs -- we can't tell which VFO we're on
...
https://github.com/Hamlib/Hamlib/issues/1221
2023-07-23 09:19:25 -05:00
Mike Black W9MDB
9ad070c33f
Add gpio command to rigctl(d) usable with pttport setting CM108
...
e.g. to set gpio2 on use 'gpio GPIO2 1" and off "gpio GPIO2 0"
Should work with GPIO1-4
New API funcions rig_cm108_get_bit rig_cm108_set_bit
https://github.com/Hamlib/Hamlib/issues/1121
2023-07-22 10:32:25 -05:00
Mike Black W9MDB
d28ce6b798
Bump up some 1024 buffers to 2048 to avoid overflow error
2023-07-21 11:46:58 -05:00
Mike Black W9MDB
f48f6152ff
Disallow CR/LF in fifo push
2023-07-21 09:50:42 -05:00
Mike Black W9MDB
c5cc47dcd1
Make fifo routines print hex when needed
2023-07-21 09:44:24 -05:00
Mike Black W9MDB
9b89e3fe23
Fix dtr/rts serial port set for amp and rot
2023-07-20 17:46:39 -05:00
Mike Black W9MDB
8fe3080139
Reduce debug level misc.c
2023-07-20 17:38:05 -05:00
Mike Black W9MDB
7adc91d0ea
Prevent segfault in fifo peek
2023-07-20 15:29:47 -05:00
Mike Black W9MDB
2da6c400f7
Add RTS/DTR capability to rotctl and ampctl
2023-07-20 11:58:26 -05:00
Mike Black W9MDB
2f838f2264
Fix make dist error
2023-07-20 11:23:06 -05:00
Mike Black W9MDB
c17b5da379
Move serial_cfg_params to common inlude fill as it is applicate to all serial devices
2023-07-20 11:12:24 -05:00
Mike Black W9MDB
d0eed2b412
Fix windows build dependency on version_dll.rc to hamlibdatetime.h
2023-07-20 09:06:21 -05:00
Mike Black W9MDB
64cb40f066
Fix segfault with testrig and fifo bad values
2023-07-19 12:30:21 -05:00
Mike Black W9MDB
3a3c51bcf6
Slow down morse_data_handler_stop a bit for RigPi
...
Make FIFO volatile
Disable keyspd change -- just doesn't work on most rigs
2023-07-19 11:05:17 -05:00
Mike Black W9MDB
1fdc3f3eaf
Disable wait_morse in send_morse loop -- was causing inter-char delays
2023-07-19 09:37:12 -05:00
Mike Black W9MDB
2395d37afd
Reduce debug in iofunc.c
2023-07-19 08:24:56 -05:00
Mike Black W9MDB
c1212b5bf3
Allow morse send to continue until fifo is flushed
2023-07-18 22:16:40 -05:00
Mike Black W9MDB
0a9796f2e7
Disallow send_morse when not in CW/CWR mode
2023-07-18 17:50:29 -05:00
Mike Black W9MDB
f7bed3320e
Fix set_split_mode for Icom rigs
...
Add some more send_morse fixes - still can't do speed change yet
2023-07-18 12:37:54 -05:00
Mike Black W9MDB
b58c0a0fa4
IC-9700 VFO selection now works for VFOA, VFOB, MainA, MainB, SubA, and SubB
...
WSJT-X does not set VFOB mode when VFOA mode is already selected...must change VFOA mode and back again to set VFOB
2023-07-18 10:20:53 -05:00
Mike Black W9MDB
015de3b5a4
Add fifo peek
2023-07-17 10:26:47 -05:00
Mike Black W9MDB
3814224c89
Moving CW speed change to morse thread
2023-07-17 07:36:03 -05:00
Mike Black W9MDB
902cfd708f
Improve Icom set_powerstat=1
...
Original 2023-07-16T09:28:43.323319-0600: 4:rig_set_powerstat: elapsed=10236ms
IC-7300 2023-07-16T09:46:48.814844-0600: 4:rig_set_powerstat: elapsed=4020ms
IC-9700 2023-07-16T10:36:27.239828-0600: 4:rig_set_powerstat: elapsed=5717ms
The goal is to tweak each rig for fastest result but need more testers for that
Slowest right now is IC-9700 which is the default value
Total timeout will be just over 10.5 seconds to allow rig to power on
https://github.com/Hamlib/Hamlib/issues/1325
2023-07-16 10:38:59 -05:00
Mike Black W9MDB
8cd135e2ce
Move morse handler after rig_open
2023-07-15 22:24:17 -05:00
Mike Black W9MDB
a360d2aaec
Return when +/- is send in send_morse
2023-07-15 08:42:13 -05:00
Mike Black W9MDB
f3941cdf62
send_morse should now accept + and - to increase/decrease KEYSPD by 5WPM
2023-07-15 07:55:27 -05:00
Mike Black W9MDB
2204ebef56
Add simic7100.c back
2023-07-15 07:46:01 -05:00
Mike Black W9MDB
8a99adc5eb
Merge branch 'master' of https://github.com/Hamlib/Hamlib
2023-07-13 12:09:40 -05:00
Mike Black W9MDB
c4aa3c51f9
async_data_enabled = 0
...
Until we get Windows serial I/O fixed
2023-07-13 12:09:11 -05:00
Mikael Nousiainen
c7e73ddf8f
Fix FIFO pop() sign issue and clean up morse data handler code
2023-07-12 10:52:42 +03:00
Mike Black W9MDB
5a8bd96427
Fix CPU usage problem in new morse data handler
...
https://github.com/Hamlib/Hamlib/issues/1334
2023-07-11 11:41:54 -05:00
Mike Black W9MDB
94cce72428
Add hamlib_version command to rigctl/rigctld and format version date as ISO8601
2023-07-11 11:13:04 -05:00
Mike Black W9MDB
79657a4b4d
Ensure bytes_read is updated when errors occur during Windows serial i/o
2023-07-11 11:02:03 -05:00
Mike Black W9MDB
a5034b88ab
Shutdown threads before the rig is closed
2023-07-11 08:36:09 -05:00
Mike Black W9MDB
fdc074e1b8
Rename FIFO to FIFO_RIG to avoid collision with freedv FIFO
2023-07-10 06:57:11 -05:00
Mike Black W9MDB
d22653a69d
Fix stop_morse to work with new send_morse
2023-07-09 17:04:39 -05:00
Mike Black W9MDB
e9fd0fba40
send_morse now uses a fifo queue and can send up to 1024 chars in one message
...
it relies on the rig backend returning an error when the rig's CW queue is full
2023-07-09 16:51:33 -05:00
Mike Black W9MDB
97c9cb1961
Add status for rigctl dumpcaps
2023-07-09 12:28:13 -05:00
Mike Black W9MDB
1ddaf63856
Fix model_name, mfg_name, version, and copyright for rigctld dumpcaps
2023-07-09 12:24:26 -05:00
Mike Black W9MDB
9218d208ef
Re-enable async
2023-07-08 09:46:54 -05:00
Mike Black W9MDB
0e25df0b4e
Remove timeout test code from iofunc.c
...
https://github.com/Hamlib/Hamlib/issues/1329
2023-07-08 08:01:05 -05:00
Mike Black W9MDB
ba9a1006e8
Fix rig.c
2023-07-07 22:39:05 -05:00
Mike Black W9MDB
af506f8e15
Implement next phase of threaded rig_send_morse
2023-07-07 22:23:28 -05:00
Mike Black W9MDB
fda5b984e7
Add current_vfo to cache debug statement
2023-07-07 22:22:57 -05:00
Mike Black W9MDB
8ebe230029
Comment out unused var
2023-07-07 22:12:55 -05:00
Mike Black W9MDB
4b43c755a6
Add fifo.h to Makefile.am
2023-07-07 15:37:06 -05:00
Mike Black W9MDB
4f3bdbdffe
Add fifo routine to be used for CW queueing
2023-07-07 15:26:36 -05:00
Mike Black W9MDB
4c02a70ea3
Fix IC-76XX rig_mW2power -- fixed any such rig
...
https://github.com/Hamlib/Hamlib/issues/1323
2023-06-29 09:17:46 -05:00
Mike Black W9MDB
4171598eaf
Initialize rig->state.targetable_vfo
2023-06-27 22:58:56 -05:00
Mike Black W9MDB
105cc6e3c6
Reduce unknown vfo in cache.c to WARNING
2023-06-20 10:05:47 -05:00
Mike Black W9MDB
3283c3b22f
Reduce no get_vfo message to WARNING
2023-06-20 10:03:35 -05:00
Mike Black W9MDB
c5937b23e5
Initialize rig->state_depth and remove one debug statement
2023-06-20 08:07:32 -05:00
Mike Black W9MDB
efb567f667
Make sure to unexport the GPIO port during close
...
https://github.com/Hamlib/Hamlib/issues/1316
2023-06-17 11:57:07 -05:00
Mike Black W9MDB
fa31975650
Allow RIG_PTT_NONE to run through the backend for PTT
...
This allows dummy rig to be used in WSJT-X with Tune and such
https://github.com/Hamlib/Hamlib/issues/1313
2023-06-16 09:50:40 -05:00
Mike Black W9MDB
33d13f7849
Remove HAMLIB_TRACE from iofunc.c
2023-06-10 00:01:24 -05:00
Mike Black W9MDB
ebedbbbfb5
Clean up debug a bit
2023-06-09 22:51:54 -05:00
Mike Black W9MDB
c640f66326
Balance RETURNFUNS2 in rig.c
2023-06-09 22:17:51 -05:00
Mike Black W9MDB
03e72c3a99
Add set_cache to rig_set_split_freq_mode
2023-06-09 14:48:34 -05:00
Mike Black W9MDB
224d68d1ac
Speed up Malachite normal operations with 125ms post write requirement instead of 400ms
...
400ms needs for band changes on Malachite
Fix BUILTINFUNC calls to compile correctly -- this is for debugging only
2023-06-08 17:34:39 -05:00
Mike Black W9MDB
6100bfdc11
Fix silly error in sleep.c
2023-06-08 09:03:04 -05:00
Mike Black W9MDB
8d8f224aff
Reduce debug in sleep.c -- seems stable now
2023-06-08 09:01:28 -05:00
Mike Black W9MDB
32569d4020
Do not allow cache hit for 55Hz and 56Hz values used by WSJT-X
2023-06-07 17:46:10 -05:00
Mike Black W9MDB
05cf554671
This seems to fix the DLL backwards compatiblity now -- more testing needed
...
Revert "Remove timeout_retry as it broke DLL compatibility"
This reverts commit 1c08cd7a64
.
2023-06-07 07:26:39 -05:00
Mike Black W9MDB
527dbaad34
Add LOCK in send_morse
2023-06-06 12:40:51 -05:00
Mike Black W9MDB
55cbf80719
Fix compile warning in rig.c
2023-06-04 17:44:31 -05:00
Mike Black W9MDB
4e4d8e39d8
Fix sleep.c function
2023-06-04 17:43:33 -05:00
Mike Black W9MDB
eb97c7c107
Change anytone.c to use bluetooth protocol
...
Update some things to keep debug quiet during thread operations in anytone.c
2023-06-04 15:56:01 -05:00
Mike Black W9MDB
48b01aa3ff
Add RIG_MODE_PKTLSB to FT817 even though it must be switched using Menu 26
...
Add a warning message to notify the user
https://github.com/Hamlib/Hamlib/issues/1308
2023-06-04 07:18:00 -05:00
Mike Black W9MDB
a6de41e206
rigctld can now see RIG_LEVEL values correctly
...
https://github.com/Hamlib/Hamlib/issues/1305
2023-06-03 16:50:30 -05:00
Mike Black W9MDB
fd86001ead
Revert "Remove multicast from rig_state structure as it breaks backwards compability on DLL with WSJT-X"
...
This didn't fix the DLL compatibility problem
This reverts commit 77d9d11f92
.
2023-05-31 07:27:34 -05:00
Mike Black W9MDB
2c8f8a9c29
Added rig_set_debug_filename due to Python not being able to pass a FILE*
...
https://github.com/Hamlib/Hamlib/issues/1307
2023-05-31 07:04:20 -05:00
Mike Black W9MDB
5745457d7f
Fix anytone thread deletion
2023-05-30 22:10:19 -05:00
Mike Black W9MDB
4ae3519c4e
Revert "Allow generic_read_string to terminate on expected_len"
...
This reverts commit 00b6e0ecd7
.
2023-05-27 15:13:22 -05:00
Mike Black W9MDB
08abfbe19a
Revert "Fix read_string_generic to only use expected_len when expected_len == 0"
...
This reverts commit 9b748bdb2e
.
2023-05-27 15:11:40 -05:00
Mike Black W9MDB
9b748bdb2e
Fix read_string_generic to only use expected_len when expected_len == 0
...
00b6e0ecd7 (commitcomment-115297173)
2023-05-27 14:58:07 -05:00
Mike Black W9MDB
3b45dfa4b8
Add AnyTone D578UVIII
...
https://github.com/Hamlib/Hamlib/issues/1303
2023-05-27 11:04:56 -05:00
Mike Black W9MDB
00b6e0ecd7
Allow generic_read_string to terminate on expected_len
...
https://github.com/Hamlib/Hamlib/issues/1303
2023-05-27 10:07:32 -05:00
Mike Black W9MDB
77d9d11f92
Remove multicast from rig_state structure as it breaks backwards compability on DLL with WSJT-X
...
This is due to the callbacks structure being realigned as the state structure expanded
https://github.com/Hamlib/Hamlib/issues/1299
2023-05-26 17:11:43 -05:00
Mike Black W9MDB
ccd832d4cb
Improve power on message in rig.c
2023-05-26 11:04:42 -05:00
Michael Black
f01a165ec7
Merge pull request #1302 from mikaelnousiainen/power-status-bug-fixes
...
Power status bug fixes
2023-05-26 10:47:35 -05:00
Mikael Nousiainen
fd68723da1
Fix issues with power status handling in rigctl+rigctld and the Yaesu backend
2023-05-26 18:03:20 +03:00
Mike Black W9MDB
657e41fd09
Add rig_date_strget to DLL for WSJTX use
2023-05-22 09:32:04 -05:00
Mike Black W9MDB
dbf1cacac6
Special version of misc.c for debugging
2023-05-22 09:10:42 -05:00
Mike Black W9MDB
15a01889cd
Prevent segfault in rig_get_caps_int/cptr calls
2023-05-22 08:47:01 -05:00
Mikael Nousiainen
9e1adcfdb8
Merge master and fix conflicts
2023-05-21 23:11:26 +03:00
Mikael Nousiainen
cce66d3257
Fix power on/off bugs: rig_open() should succeed even if rig is powered off, auto power-on should not be automatically enabled (prevents turning rig off), fix Kenwood and Yaesu power on/off sequences for all rigs
2023-05-21 23:01:03 +03:00
Mike Black W9MDB
52358d7922
Add some more debug to rig_get_caps_int
...
https://github.com/Hamlib/Hamlib/issues/1299
2023-05-21 10:15:22 -05:00
Mike Black W9MDB
082bf83daa
Add some debug to misc.c to figure out why WSJT-X is seeing ptt_type==0
2023-05-21 09:45:57 -05:00
Mike Black W9MDB
ece6a7ae1a
Add a slight delay after opening the rig port to allow serial port settling
2023-05-20 23:41:18 -05:00
George Baltz N3GB
e5f6b4e9d2
Fix the comment about float levels.
...
And now that the comment parses, fix the check to respect it.
I seriously doubt anyone will ever use this, but you never know.
2023-05-20 11:13:16 -04:00
Mike Black W9MDB
1c08cd7a64
Remove timeout_retry as it broke DLL compatibility
2023-05-19 23:50:57 -05:00
Mike Black W9MDB
e2a1a00f3a
Add some more LOCKs and astyle rig.c
2023-05-19 23:45:36 -05:00
Mike Black W9MDB
14c535a01b
Add RIG_VFO_CURR check to suppress bogus warning
2023-05-17 12:22:12 -05:00
Mike Black W9MDB
b607482651
Fix stupid error in rig_debug
2023-05-17 12:05:58 -05:00
Mike Black W9MDB
3c93d83848
Reduce debug in rig.c to CACHE for the lock function
2023-05-17 12:04:19 -05:00
Mike Black W9MDB
efc90d30de
Remove another temporary debug from iofunc.c
2023-05-17 11:45:50 -05:00
Mike Black W9MDB
84187e976d
Remove temporary DEBUG from iofunc.c
2023-05-17 11:36:09 -05:00
Mike Black W9MDB
445e5070c1
Fix 30-second timeout on Windows for the async thread to stop
...
https://github.com/Hamlib/Hamlib/issues/1295
2023-05-17 10:25:33 -05:00
Mike Black W9MDB
e02c42f629
Reduce hl_usleep debug to DEBUG_CACHE
2023-05-16 17:03:47 -05:00
Mike Black W9MDB
f691be94d9
Fix sleep.c conversion from usec to sec
2023-05-16 15:56:50 -05:00
Mike Black W9MDB
c14d6f0fa2
Add timeout value to debug in iofunc.c
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-16 07:54:17 -05:00
Mike Black W9MDB
1ad664be4c
Add line# to a couple of debug statements in iofunc.c to distinguish them
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-16 07:52:00 -05:00
Mike Black W9MDB
58655be355
Replace hl_usleep with monotonic sleep shamelessly stolen from FLRig
...
https://github.com/Hamlib/Hamlib/issues/1290
2023-05-15 11:45:54 -05:00
Mike Black W9MDB
31733cea22
Reduce lock debug to VERBOSE
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-15 07:49:02 -05:00
Mike Black W9MDB
647c5b37ef
Fix hl_usleep again to undo prior fix
...
Fix hl_usleep to not sleep if 1ms or less is called for -- speeds things up on Windows dramatically
2023-05-14 15:42:00 -05:00
Mike Black W9MDB
29d3833228
Fix nanosleep timing
2023-05-14 14:11:13 -05:00
Mike Black W9MDB
5e8de57f54
Allow using nanosleep in hl_usleep
2023-05-14 13:52:05 -05:00
Mikael Nousiainen
a43cd80799
Set default timeout_retry value to 1 and allow per-rig override of the setting. Disable timeout_retry during serial flush to avoid slowing down flushes.
2023-05-14 21:13:39 +03:00
Mike Black W9MDB
6651345065
Add SF command for TS-590S/SG
...
Still need to add bandwidth get/set
https://github.com/Hamlib/Hamlib/issues/1293
2023-05-14 11:06:22 -05:00
Mikael Nousiainen
eea12aff0a
Merge master
2023-05-14 12:08:15 +03:00
Mikael Nousiainen
93e8a2879d
Fix read timeout retry logic
2023-05-14 11:57:09 +03:00
Mikael Nousiainen
c75fdeb3e4
Make retries in case of read timeout optional and configurable via set-conf option. When not absolutely necessary, they will significantly slow down flushing and normal serial communications with a rig
2023-05-14 11:52:48 +03:00
Mike Black W9MDB
09c57dd961
Check multicast for null
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-13 16:26:46 -05:00
Mike Black W9MDB
c3cfb760bb
Align lock with depth check
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-13 16:24:52 -05:00
Mike Black W9MDB
7f4665723a
Add lock function affected rig_get_freq and rig_set_freq
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-13 16:20:55 -05:00
Mike Black W9MDB
12384c7796
Change rigctl_parse to use ENTERFUNC2 instead of ENTERFUNC
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-13 16:11:46 -05:00
Mike Black W9MDB
300c0c415a
Fix some state.depth values
2023-05-13 16:02:41 -05:00
Mike Black W9MDB
c4d0df1f86
Balance RETURNFUNC2 in cache.c
2023-05-13 15:22:31 -05:00
Mike Black W9MDB
14cdbcba31
Balance RETURNFUNC in cache.c
2023-05-13 15:11:11 -05:00
Mike Black W9MDB
99baa872bf
Move sleep for serial before the flush
2023-05-13 10:49:08 -05:00
Mike Black W9MDB
43b24caa01
Fix rigctld timeout on open
...
https://github.com/Hamlib/Hamlib/issues/1288
2023-05-13 10:41:41 -05:00
Mike Black W9MDB
fc96ec0874
Add new rig_lock function for eventual use in threading with new multicast
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-13 08:00:06 -05:00
Mikael Nousiainen
e89687668d
Add flushing of rig port, including async data pipes, after \send_raw and \send_cmd to drain any extra rig responses
2023-05-13 00:04:37 +03:00
Mikael Nousiainen
92215dfd2a
Fix bugs in \send_raw command and add possibility to specify any command terminator character. Add \stop_morse to Dummy rig.
2023-05-12 10:01:32 +03:00
Mike Black W9MDB
5f55b0ea48
Since we do two timeouts now for serial we can cut serial timeouts in half
...
https://github.com/Hamlib/Hamlib/issues/1282
2023-05-10 23:23:33 -05:00
Mike Black W9MDB
f03b03878e
Speed up timeout during rig_open by not doing any retries
...
https://github.com/Hamlib/Hamlib/issues/1282
2023-05-10 23:00:12 -05:00
Mikael Nousiainen
4b8de5f96d
Change float level granularity formatting to use %f to avoid E notation. Fix AGC_TIME level range for Icom rigs. Fix listing of AGC levels in \dump_caps. Add \stop_morse and \wait_morse in \dump_caps. Add simulation of responses in \send_cmd_rx and \send_raw for dummy rig (and if rig port type is NONE). Fix other minor issues.
2023-05-10 20:53:18 +03:00
Mike Black W9MDB
322ba6901c
Remove multicast.h from src/Makefile.am
2023-05-09 11:57:11 -05:00
Mike Black W9MDB
04e10da6e3
Move multicast.h to include/hamlib and fix some other things
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-09 11:46:54 -05:00
Mike Black W9MDB
b67803358c
Update multicast.c JSON
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-09 09:23:46 -05:00
Mike Black W9MDB
7985286208
Add PTT to multicast packet
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-09 09:15:41 -05:00
Mike Black W9MDB
7835329e32
Fix mingw build for multicast.c
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-09 07:00:03 -05:00
Mike Black W9MDB
ca763d4ff1
Clean up JSON
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-08 17:15:26 -05:00
Mike Black W9MDB
a4c10c3206
Fix cppcheck warnings
2023-05-08 12:16:51 -05:00
Mike Black W9MDB
dad55ef148
astyle files getting ready for WSJT-x-2.7.0rc1
2023-05-08 07:37:13 -05:00
Mike Black W9MDB
f55e7b8348
Rename multicast test routines and clean up things a bit
...
Now works on mingw32 and Linux
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 23:23:01 -05:00
Mike Black W9MDB
6fa16ea77f
Fix mingw compile warning
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 17:38:45 -05:00
Mike Black W9MDB
023a6bd3fb
Add EXPORT to multicast.h
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 17:32:36 -05:00
Mike Black W9MDB
9fd6af9699
Fix mingw compile warning
2023-05-07 17:28:08 -05:00
Mike Black W9MDB
b55a46a0f6
Fix mingw compile warnings
2023-05-07 17:27:31 -05:00
Mike Black W9MDB
e505ed37db
Fix compile warning on mingw
2023-05-07 17:26:31 -05:00
Mike Black W9MDB
62b9a12e89
Add multicastserver test
...
Fix compile warnings on mingw
2023-05-07 17:17:50 -05:00
Mike Black W9MDB
a8d9d90025
Fix multicast.c build on mingw
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 15:34:31 -05:00
Mike Black W9MDB
b0357025e6
Add multicast.c to hamlib build
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 15:32:43 -05:00
Mike Black W9MDB
b6f1cc4bc8
Attempt to get multicastclient working on mingw
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 10:59:43 -05:00
Mike Black W9MDB
95375a5587
Fix multicast test compile
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 09:45:27 -05:00
Mike Black W9MDB
6c6b1799f9
Fix make distcheck
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 07:42:13 -05:00
Mike Black W9MDB
58b01989b8
Fix mingw build some more
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 07:34:21 -05:00
Mike Black W9MDB
1022596f76
Fix mingw build again
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 07:29:59 -05:00
Mike Black W9MDB
60782af15a
Fix github build
...
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 07:27:44 -05:00
Mike Black W9MDB
e3c2a8d6ca
Add first implementation of multicast functions and multicastclient.c test program.
...
Next step will be to implement this when rig is opened.
This will turn Hamlib into a polling system in addition to polling -- caching will handle repeated requests
This should mean basic functions of freq, mode, split, ptt (and others when implemented) will have almost
immediate responses as only the cached values should be used.
https://github.com/Hamlib/Hamlib/issues/695
2023-05-07 06:50:35 -05:00
Mike Black W9MDB
41113de9a2
Reduce debug level in iofunc.c
2023-05-05 09:10:43 -05:00
Mike Black W9MDB
fd4b3eb103
Reduce read_string_generic timeout debug to TRACE level
2023-05-05 08:11:51 -05:00
Mike Black W9MDB
1e9ecb079a
Fix RT21 2nd device for elevation
...
https://github.com/Hamlib/Hamlib/issues/1257
https://github.com/Hamlib/Hamlib/issues/1258
2023-04-30 17:04:34 -05:00
Mike Black W9MDB
4ada211713
Do 1 retry when timing out in read_string_generic
2023-04-30 17:02:09 -05:00
Mike Black W9MDB
2b37e8b79b
Fix debug statement in rig.c
2023-04-29 17:10:25 -05:00
Mike Black W9MDB
e4acbac647
Try to reopen rig on hard error
...
https://github.com/Hamlib/Hamlib/issues/1282
2023-04-29 16:58:18 -05:00
Mike Black W9MDB
fdf1c3cdab
Fix auto_power_on with netrigctl when powered off but still responding to PS; command
...
https://github.com/Hamlib/Hamlib/issues/1282
2023-04-29 16:13:48 -05:00
Mike Black W9MDB
3f7cf2d0b3
Improve power on message
2023-04-29 16:07:05 -05:00
Mike Black W9MDB
6422bc51d5
Add version to rig_init debug info
2023-04-22 11:39:03 -05:00
Daniele Forsi IU5HKX
c3d06fd043
Add/fix Doxygen comments
2023-04-09 23:06:36 +02:00
Daniele Forsi IU5HKX
96bb604b12
Fix typos
2023-04-09 23:06:32 +02:00
Mike Black W9MDB
99170c1025
Add error message when rig is not turned on that mentions auto_power_on
2023-03-30 22:28:09 -05:00
Mike Black W9MDB
38d6858698
Progress on Expert ampctl
2023-03-28 17:23:54 -05:00
Mike Black W9MDB
7236942d89
Adding Expert Linear amplifier
2023-03-28 17:08:40 -05:00
Mike Black W9MDB
403ec07b6b
Fix auto_power_on from rigctl invocation with --set-conf=auto_power_on=1
...
https://github.com/Hamlib/Hamlib/issues/1220
2023-03-28 10:43:07 -05:00
Mike Black W9MDB
5aab96beff
Enable async by default -- this prevents WSJT-X from crashing when transceive mode is on for the IC9700
...
https://github.com/Hamlib/Hamlib/issues/1264
2023-03-27 10:04:59 -05:00
Daniele Forsi IU5HKX
2db37fe7db
Fix typos
2023-03-26 11:01:51 +02:00
Daniele Forsi IU5HKX
26d3e79cf5
Fix Doxygen comments
2023-03-19 23:15:49 +01:00
Daniele Forsi IU5HKX
8e24746a3e
Fix typos
2023-03-19 22:20:28 +01:00
Daniele Forsi IU5HKX
6de5aa7838
Fix Doxygen unmatched directives \cond and \endcond
2023-03-19 18:42:24 +01:00
Daniele Forsi IU5HKX
52d41236a7
Enable --show-conf for ampctl and ampctld
2023-03-18 10:25:36 +01:00
Matthew J. Wolf
f5c26bf235
Inital add of rotator saebrtrack
2023-03-10 13:03:14 -05:00
Mikael Nousiainen
f17f6f0f42
Disable rig port flushing when async I/O is enabled. Improve validation of Icom frames.
2023-03-08 23:35:08 +02:00
Mike Black W9MDB
0591aee8e6
Remove dead code
2023-03-06 11:32:58 -06:00
Mike Black W9MDB
edc18103f0
Move semicolon removal after complete string is read.
...
xg3 was expecting single ; response and old way was causing timeouts
2023-03-06 11:27:41 -06:00
Mike Black W9MDB
a8aba7c13b
Add tcflush back into flush routine
...
https://github.com/Hamlib/Hamlib/issues/1241
2023-03-06 11:26:35 -06:00
Mike Black W9MDB
decc056662
Remove caps->get_ptt from DTR/RTS get_ptt -- seems we should not need query via CAT when using DTR/RTS
...
https://github.com/Hamlib/Hamlib/issues/1241
2023-03-04 11:17:14 -06:00
George Baltz N3GB
14aa095362
Do the check for min=max=0 the right way.
...
Avoids possible compiler/arch/endian weirdness.
2023-02-26 13:12:52 -05:00
George Baltz N3GB
f161ae7b35
Add routine to check input to <brand>_set_level
...
See https://github.com/Hamlib/Hamlib/issues/1144
2023-02-26 13:12:52 -05:00
Mike Black W9MDB
fb12668f06
Allow single semicolon characaters to be skipped
2023-02-20 22:49:27 -06:00
Mike Black W9MDB
3d38f8b214
Add offset_vfoa and offset_vfob configuraiton parameters for adding freq offsets to VFOA/Main and VFOB/Sub
2023-02-17 12:33:14 -06:00
Mike Black W9MDB
4078fa9248
Fix ID5100 S Main 1 Sub
...
https://github.com/Hamlib/Hamlib.git
2023-02-10 16:49:37 -06:00
Mike Black W9MDB
111627533f
Changes to support ID-5100 in gpredict.
...
Can now set set freq/mode on VFOA/B or Main/Sub correctly automatically switching dual watch mode as needed
2023-02-10 08:02:48 -06:00
Mike Black W9MDB
cbd5f9ad3e
Future-proof 32/64/128-bit detection
2023-02-07 10:47:38 -06:00
Mike Black W9MDB
1e1abaccbc
Add 64/32-bit information to version
2023-02-07 10:43:22 -06:00
Mike Black W9MDB
44e8389e00
Fix suppression of setting frequency on nontargetable rigs when in split mode
...
That is, do not set TX VFO when receiving and do not set RX VFO when transmitting
Should allow gpredict to work much better
2023-02-04 23:54:40 -06:00
Mike Black W9MDB
8c0bb2034d
Fix VFO A/B swapping for gpredict -- hopefully better behavior for VFO swapping rigs
...
Should avoid setting RX freq while TX and avoid TX freq while RX
https://github.com/Hamlib/Hamlib/issues/1230
2023-02-02 23:15:26 -06:00
Mike Black W9MDB
6fbb098612
Fix segfault using python Hamlib.rig_parse_mode(None)
...
Argument really needed to be 'None' but now prints out better error message
https://github.com/Hamlib/Hamlib/issues/1227
2023-01-29 15:50:27 -06:00
Mike Black W9MDB
0177d85a5d
Forgot to also checking rig.c to allow get_powerstat failing to just keep going
...
https://github.com/Hamlib/Hamlib/issues/1226
2023-01-26 09:32:19 -06:00
Mike Black W9MDB
a47eba7ce4
Revert "Update NEWS"
...
This reverts commit 76a3ab19eb
.
2023-01-24 11:25:49 -06:00
Mike Black W9MDB
76a3ab19eb
Update NEWS
2023-01-24 11:23:47 -06:00
Mike Black W9MDB
52bed765ef
Clean up rig power on/off sequencing for Kenwood/Elecraft rigs
...
Note that the K3/K3S cannot power on via CAT control
https://github.com/Hamlib/Hamlib/issues/1225
2023-01-22 23:41:21 -06:00
Mike Black W9MDB
cfde2c8a92
Add ability for set_vfo_opt 0/1 so rigctl can control VFO option
2023-01-20 16:53:42 -06:00
Mike Black W9MDB
57b063a44c
Balance ENTER/RETURN in rig.c
2023-01-18 12:25:05 -06:00
Mike Black W9MDB
f392cc4c18
Fix AGC level display in rigctld
...
https://github.com/Hamlib/Hamlib/issues/1155
2023-01-17 23:54:05 -06:00
Mike Black W9MDB
c02370d279
Allow rigctld to continue when an invalid set_conf parameter is used
2023-01-17 09:19:39 -06:00
Mike Black W9MDB
3f8da23bb6
Improved set_conf error when serial_handshake is invalid
2023-01-17 08:50:47 -06:00
Mike Black W9MDB
cb1c98fa85
Fix xdgpath in settings.c
2023-01-16 09:24:00 -06:00
Mike Black W9MDB
9c48ec785c
Improve serial port timeout when permission proble or does not exist
...
https://github.com/Hamlib/Hamlib/issues/1216
2023-01-12 11:23:11 -06:00
Mike Black W9MDB
00dce998ae
Fix Elecraft power2mW precision/accuracy
...
Should fix any others too
https://github.com/Hamlib/Hamlib/issues/1205
2023-01-09 23:26:15 -06:00
Mike Black W9MDB
5ebde1ca34
Really fix CM108 ptt_bitnum usage
...
https://github.com/Hamlib/Hamlib/issues/1203
2023-01-09 22:53:01 -06:00
Mike Black W9MDB
7cc477869f
Revert "Close rig on set_powerstat 0 -- Linux was unable to reconnect to IC-7300"
...
This reverts commit 93e3aec588
.
2023-01-09 12:21:33 -06:00
Mike Black W9MDB
56c87cfa9a
Fix CM108 ptt setting
...
https://github.com/Hamlib/Hamlib/issues/1203
2023-01-09 11:03:50 -06:00
Mike Black W9MDB
93e3aec588
Close rig on set_powerstat 0 -- Linux was unable to reconnect to IC-7300
...
https://github.com/Hamlib/Hamlib/issues/1212
2023-01-08 16:48:35 -06:00
Mike Black W9MDB
4a487ffdcc
Fix rigctld agc level readings -- allow for rig backedn to specify "RIG_AGC_NONE" now for clarity if desired
...
https://github.com/Hamlib/Hamlib/issues/1155
2023-01-06 16:21:58 -06:00
Mike Black W9MDB
bbd0f856ca
Fix rig_getpower2mW so it checks all range lists
...
https://github.com/Hamlib/Hamlib/issues/1205
2023-01-05 23:31:15 -06:00
Mike Black W9MDB
c7b33ef0b3
Fix ID5100 ID4100 ID31 ID51 get/set freq
...
Remove get_powerstat from ID4100 ID31 ID51 as it they are not capable
Add new rig_is_model function to help with Icom rig identification checks
https://github.com/Hamlib/Hamlib/issues/1202
https://github.com/Hamlib/Hamlib/issues/1200
2023-01-02 11:30:52 -06:00
Mike Black W9MDB
c1662ce886
Remove set_rts and set_dtr low from serial.c
...
This was causing hardward flow control to fail on Linux and MacOS
https://github.com/Hamlib/Hamlib/issues/1198
https://github.com/Hamlib/Hamlib/issues/1199
2022-12-31 09:30:25 -06:00
Mike Black W9MDB
bc6c14e430
Add Apex Shared Loop rotator
...
https://github.com/Hamlib/Hamlib/issues/1159
2022-12-25 17:07:26 -06:00
Mike Black W9MDB
c59b5383e9
Remove echo from Makefile.am
2022-12-24 22:20:28 -06:00
Mike Black W9MDB
e70465a9c0
Fix grep error on mingw build
2022-12-24 11:31:12 -06:00
Mike Black W9MDB
bfa4bbd50d
Full version info now available for Windows File/Properties/Details
...
Will show git version until released
https://github.com/Hamlib/Hamlib/issues/1168
2022-12-23 17:44:44 -06:00
Mike Black W9MDB
17f88dccbf
Fix version_dll.c
...
https://github.com/Hamlib/Hamlib/issues/1168
2022-12-22 12:14:29 -06:00