Mike Black W9MDB
37c0f07ecb
Add some debug for https://github.com/Hamlib/Hamlib/issues/1461
2023-12-23 00:01:56 -06:00
Mikael Nousiainen
1cc08d2f00
Merge upstream and fix conflicts
2023-12-19 18:03:12 +02:00
Mikael Nousiainen
3a414c3221
Allow split passband width changes without changing the mode
2023-12-19 10:16:27 +02:00
Mike Black W9MDB
935cebed6e
Remove some debug and fix debug indendation
2023-12-18 16:44:57 -06:00
Mike Black W9MDB
af5ea58350
Add -# --skip_init option to rigctl
2023-12-18 15:26:46 -06:00
Mike Black W9MDB
48b6b4910c
Allow compilation for systems without pthreads
...
https://github.com/Hamlib/Hamlib/issues/1373
2023-12-18 11:56:41 -06:00
Mike Black W9MDB
3a6073d401
astyle files
2023-12-18 08:25:15 -06:00
Mike Black W9MDB
bc6f874675
Fix wireless detection
2023-12-17 23:13:32 -06:00
Mike Black W9MDB
dbb8f4d5a7
Remove some debug statements
2023-12-17 22:29:21 -06:00
Mike Black W9MDB
1f38d59153
Fix Windows rigctl shutdown
...
https://github.com/Hamlib/Hamlib/issues/1448
2023-12-17 17:38:28 -06:00
Mike Black W9MDB
e267c62764
astyle files
2023-12-16 11:37:58 -06:00
Mike Black W9MDB
5dc55ff9e1
Fix some double entries
2023-12-12 12:11:31 -06:00
Mike Black W9MDB
27d7e8bd2d
Revert "Speed up shutdown of multicast thread"
...
This broke Windows rigctl quit
This reverts commit b25b496051
.
2023-12-09 15:57:47 -06:00
Mike Black W9MDB
b25b496051
Speed up shutdown of multicast thread
2023-12-09 09:45:21 -06:00
Mike Black W9MDB
f6eed23494
Ignore RIG_VFO_NONE in cache.c
2023-12-08 08:24:29 -06:00
Mike Black W9MDB
cf973c9b0a
Ignorie RIG_VFO_OTHER cache request
2023-12-08 07:53:21 -06:00
George Baltz N3GB
f4d40e0d79
Restore shared library ABI compatibility with previous hamlibs
...
No need for post_ptt_delay to be in hamlib_port - move it to misc
rig_state data.
Update references to post_ptt_delay
Fix a couple of typos
Add code to actually set post_ptt_delay
Fixes issue #1412
2023-12-04 10:47:52 -05:00
Mike Black W9MDB
7973db52de
Remove debug from network.c
2023-11-29 14:53:39 -06:00
Mike Black W9MDB
001dd01a10
Fix more compile errors for mingw
2023-11-29 12:53:16 -06:00
Mike Black W9MDB
756fad1c72
Fix compile error on mingw with network.c
2023-11-29 12:47:38 -06:00
Mike Black W9MDB
07f57cfc18
Fix error on ctrl-c of rigctld
2023-11-29 12:45:11 -06:00
Mike Black W9MDB
09ab2819b3
Add better error info to serial error
2023-11-27 11:39:09 -06:00
Mike Black W9MDB
46c16b22a0
Fix compile warning
2023-11-26 12:41:26 -06:00
Mike Black W9MDB
698cb10ff3
Re-enable extra get_freq so see if it fixes timeout problem on IC-7100
2023-11-25 22:33:07 -06:00
Mike Black W9MDB
9c01045356
Fix HOMEPATH for Windows hamlib_settings file
2023-11-25 15:05:42 -06:00
Mikael Nousiainen
0dea8ed8bb
Print integer level range
2023-11-24 00:17:48 +02:00
Mike Black W9MDB
9841e500b9
Fix ptt_share segmentation fault
...
https://github.com/Hamlib/Hamlib/issues/1433
Fix ID5100 0x25 and simplex VFO actions
https://github.com/Hamlib/Hamlib/issues/1429
2023-11-23 15:00:05 -06:00
Mike Black W9MDB
f28d674211
Remove unnecessary rig_get_freq
2023-11-22 23:44:15 -06:00
Mikael Nousiainen
8185a3562b
Merge branch 'master' into streamline-vfo-targeting-and-split-functionality
2023-11-22 18:52:37 +02:00
Mikael Nousiainen
00cb0eccdc
Fix multicast publisher write commands to use a mutex lock to prevent corruption in (spectrum) data written with multiple write() calls. Remove unnecessary hl_usleep() calls in Icom backend, as the frame parser will correctly detect transceive messages.
2023-11-22 18:41:55 +02:00
Mike Black W9MDB
5d51e29d44
Fix conf.c to detect const structure
2023-11-22 07:28:05 -06:00
Mike Black W9MDB
15729dfafd
Fix segfault in conf.c on TOK_PTT_TYPE
2023-11-22 07:18:55 -06:00
Mikael Nousiainen
7b341a2ad6
Merge branch 'master' into streamline-vfo-targeting-and-split-functionality
2023-11-20 10:16:15 +02:00
Mike Black W9MDB
41a1da795c
Fix build for Apple
...
https://github.com/Hamlib/Hamlib/issues/1430
2023-11-16 15:42:52 -06:00
Mike Black W9MDB
43545e171a
Fix debug statement for mingw
2023-11-16 14:40:25 -06:00
Mike Black W9MDB
c1780b19f4
Add wireless detection for multicast address -- possible fix for UDP error messages by using 127.0.0.1 instead of IN_ADDR_ANY
...
https://github.com/Hamlib/Hamlib/issues/1409
2023-11-16 09:05:29 -06:00
Mike Black W9MDB
c348632b26
Add ptt_type to rig->caps when set so it can be queried correctly
2023-11-14 17:03:40 -06:00
Mikael Nousiainen
b78fa43b56
Fix issues in VFO targeting. Allow IC-9700 to target Sub receiver (requires VFO swapping).
2023-11-14 23:00:37 +02:00
Mike Black W9MDB
8478367223
Improve rigctld printout when TCP session is aborted
2023-11-14 10:23:14 -06:00
Mikael Nousiainen
dd974a2536
Merge branch 'master' into streamline-vfo-targeting-and-split-functionality
2023-11-14 10:05:52 +02:00
Mikael Nousiainen
e2e723ec60
Simplify/streamline split VFO handling, especially in the Icom backend. Detect reverse split automatically at startup for Icom rigs.
2023-11-14 10:05:17 +02:00
Mike Black W9MDB
e19bdc3d56
Update vfo_fixup for ID5100 dual watch mode
...
https://github.com/Hamlib/Hamlib/issues/1425
2023-11-13 10:26:00 -06:00
Mike Black W9MDB
e7786cee4c
Fix TS990S SWR read -- strange behavior of RM command reading first RM turned on for read
...
New SWR table too for TS990S
https://github.com/Hamlib/Hamlib/issues/1423
2023-11-12 13:22:02 -06:00
Mike Black W9MDB
9832fba797
Add null check in rig_get_function_ptr
2023-11-11 22:21:38 -06:00
Mikael Nousiainen
4a926ec503
Fix issues found during testing
2023-11-10 20:32:59 +02:00
Mike Black W9MDB
1f9d3a63d4
Fix PTT status for multicast
2023-11-09 11:26:56 -06:00
Mikael Nousiainen
c90c675add
Unify and streamline Icom backend logic for freq/mode and split commands. Allow use of targeted freq/mode whenever possible. Move certain Icom-specific caps to the icom_priv_caps struct to remove rig-specific conditions in generic backend code.
2023-11-09 09:57:23 +02:00
Mikael Nousiainen
0ece468b49
Merge branch 'hamlib-multicast-4' into streamline-vfo-targeting-and-split-functionality
2023-11-09 09:54:16 +02:00
Mikael Nousiainen
3a08bbe3d8
Detect also VFO changes in poll routine and allow detection of multiple changes at once. Remove old unused code.
2023-11-09 09:53:48 +02:00
Mikael Nousiainen
4fa61a9a32
Merge branch 'master' into streamline-vfo-targeting-and-split-functionality
2023-11-07 15:59:49 +02:00
Mikael Nousiainen
afdb26093e
List all available VFOs in multicast state snapshot packets
2023-11-07 09:55:30 +02:00
Mikael Nousiainen
89abbfeb3a
Merge master and fix conflicts
2023-11-07 09:41:29 +02:00
Mike Black W9MDB
02ffc6d6dc
More set_conf/get_conf work
...
https://github.com/Hamlib/Hamlib/issues/971
2023-11-05 17:03:21 -06:00
Mikael Nousiainen
43d1fbb323
Add more detailed rig communication status to rig_state and multicast state data packets. Handle SIGINT and SIGTERM in a consistent way in both rigctl and rigctld.
2023-11-06 00:42:02 +02:00
Mikael Nousiainen
f8814732a2
Merge master and fix conflicts
2023-11-05 13:23:35 +02:00
Mikael Nousiainen
41c891251f
Fix multicast receiver shutdown by using non-blocking sockets and select(). Use the same port number 4532 for both state snapshots and commands -- it is enough to have different multicast groups for them. Publish multicast state snapshots more often (change detection interval now set to 50ms), but at least at interval defined by poll_interval.
2023-11-03 17:18:49 +02:00
Mikael Nousiainen
5b86d4efff
Bind multicast receiver to INADDR_ANY on Windows, because binding to multicast group IPs doesn't seem to work. Use a different port number for (4351) multicast receiver commands to avoid multicast publisher packets ending up in the receiver (loopback issue).
2023-11-02 18:00:16 +02:00
Mikael Nousiainen
88e86fb62a
Comment out SO_REUSEADDR for now
2023-11-02 00:35:47 +02:00
Mikael Nousiainen
53ff60d981
Fix socket option again
2023-11-02 00:32:05 +02:00
Mikael Nousiainen
5fb2e68e07
Fix warning
2023-11-02 00:20:15 +02:00
Mikael Nousiainen
f36822ac20
Fix socket option
2023-11-02 00:18:27 +02:00
Mikael Nousiainen
f618540f22
Join multicast group to enable UDP packet reception
2023-11-02 00:11:57 +02:00
Mike Black W9MDB
0dbe24ff42
Restore vfo offset lines accidentally removed in rig.c
2023-11-01 16:25:09 -05:00
Mike Black W9MDB
f4f4d122a8
Improve post_ptt_delay behavior
...
https://github.com/Hamlib/Hamlib/issues/1412
2023-11-01 15:54:36 -05:00
Mike Black W9MDB
6cb17e49dc
Add post_ptt_delay for situations where more time is needed for external relay operations
...
Detect Doppler frequency changes for Kenwood rigs and avoid querying frequency...just set it...to provide stable timing
https://github.com/Hamlib/Hamlib/issues/1412
2023-10-31 17:34:31 -05:00
Mikael Nousiainen
c8c8869a3c
Refactor multicast publisher and rig poll routine. Create skeleton for multicast command server.
2023-11-01 00:26:37 +02:00
Mikael Nousiainen
f89e0f0388
Cleaning up and unifying the Icom backend
2023-10-31 22:38:43 +02:00
Mike Black W9MDB
fb03d095df
Add recvfrom for client to send commands to multicast server
...
https://github.com/Hamlib/Hamlib/issues/695
2023-10-30 22:53:13 -05:00
Mike Black W9MDB
012534a628
Add nonblock mode to multicast for recv_from use
...
https://github.com/Hamlib/Hamlib/issues/695
2023-10-30 10:23:13 -05:00
Mike Black W9MDB
6b558c5d2a
Revert "Add nonblocking mode to multicast for recv_from use"
...
This reverts commit f9bd07bbf5
.
2023-10-30 10:21:58 -05:00
Mike Black W9MDB
f9bd07bbf5
Add nonblocking mode to multicast for recv_from use
...
https://github.com/Hamlib/Hamlib/issues/695
2023-10-30 10:20:52 -05:00
Mikael Nousiainen
8ab8aafe48
Streamline VFO targeting and split functionality. Rewrite Icom backend routines to always avoid VFO swapping is the rig supports the 'targetable' commands 0x25 and 0x26. Work in progress.
2023-10-29 10:28:36 +02:00
Mike Black W9MDB
7c5d4db2fe
Fix ptt status for multicast object to show ptt correct VFO
2023-10-27 15:11:19 -05:00
Mike Black W9MDB
192822417b
Fix segfault for Kenwood L MICGAIN
...
Fix potential segfault in iofunc.c when stopset is null
2023-10-23 09:33:32 -05:00
Mike Black W9MDB
a8f224e660
Reduce debug for multicast
...
https://github.com/Hamlib/Hamlib/issues/695
2023-10-22 22:48:36 -05:00
Mike Black W9MDB
541c1e1de2
Send out immediate multicast packet on freq,mode,split,ptt,width changes
...
https://github.com/Hamlib/Hamlib/issues/695
2023-10-22 16:58:44 -05:00
Mike Black W9MDB
84875071a9
Change modelist to modes array
...
Change id: to 3-elements
1 packet per second right now -- but will soon send out a packet upon any change of data
https://github.com/Hamlib/Hamlib/issues/695
2023-10-22 13:18:51 -05:00
Mike Black W9MDB
9b6d1565f1
More disabling of spectrum until it works well on Windows too
...
Maybe can enable for Linux only.
https://github.com/Hamlib/Hamlib/issues/695
2023-10-22 08:34:13 -05:00
Mike Black W9MDB
46bfe24a62
Disable SPECTRUM from multicast until we get it working well with CAT control
...
https://github.com/Hamlib/Hamlib/issues/695
2023-10-21 15:57:30 -05:00
Mike Black W9MDB
00d69f63ef
stop multicast during rig_close
...
https://github.com/Hamlib/Hamlib/issues/1405
2023-10-21 15:55:59 -05:00
Mike Black W9MDB
464fa3f478
Revert "Promote token_t to unsigned long long"
...
This broke several things -- have to do this inside kenwood.c instead
This reverts commit 01292b261f
.
2023-10-21 12:39:47 -05:00
Mike Black W9MDB
344f06382c
Fix sprintflst mode to skip empty modes
2023-10-21 12:10:16 -05:00
Mike Black W9MDB
65caf427f0
Fix sprintflst mode extra space
2023-10-21 11:46:31 -05:00
Mike Black W9MDB
b609eb0085
Make multicast a little quieter so one can run rigctl -vvvvv
...
https://github.com/Hamlib/Hamlib/issues/695
2023-10-20 16:25:21 -05:00
Mike Black W9MDB
df413d0dc4
Enable multicast by default on 224.0.0.1 port 4532
...
Does not allow for rig control yet -- just rig info
https://github.com/Hamlib/Hamlib/issues/695
2023-10-20 15:18:23 -05:00
Mike Black W9MDB
d87671b54b
Add a TRACE function to network.c
2023-10-20 11:52:59 -05:00
Mike Black W9MDB
289585388b
Allow network_init to succeed when already initialized
...
https://github.com/Hamlib/Hamlib/issues/695
2023-10-20 11:25:20 -05:00
Mike Black W9MDB
01292b261f
Promote token_t to unsigned long long
...
https://github.com/Hamlib/Hamlib/issues/1402
2023-10-19 23:35:20 -05:00
Mike Black W9MDB
f5f8694a70
Add RIG_LEVEL_USB_AF_INPUT
...
Add RIG_LEVEL_USB_AF and RIG_LEVEL_USB_AF_INPUT to ts590.c
More rigs to be updated for this
2023-10-18 16:47:29 -05:00
Mike Black W9MDB
8a006db51d
Hopefully fix network.c build warning
2023-10-15 08:09:19 -05:00
Mike Black W9MDB
534fe449a2
Fix more cppcheck items
2023-10-13 17:36:29 -05:00
Mike Black W9MDB
d72127f29a
Fix cppcheck warnings
2023-10-11 23:22:42 -05:00
Mike Black W9MDB
501c4b62c9
cppcheck fixes
2023-10-11 09:01:15 -05:00
Mike Black W9MDB
e2d03ea581
Fix Icom error
...
https://github.com/Hamlib/Hamlib/issues/1395
2023-10-05 17:22:19 -05:00
Mike Black W9MDB
6957c15ec3
Remove the last 2 bytes of an FLRig packet
2023-10-05 16:32:23 -05:00
Mike Black W9MDB
d4cf8a04d7
Change iofunc.c to read FLRig more efficiently
...
https://github.com/Hamlib/Hamlib/issues/1394
2023-10-04 17:30:02 -05:00
Mike Black W9MDB
e0c4988e6a
Fix some more cppcheck items
...
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-04 15:50:24 -05:00
Mike Black W9MDB
3b5f7a6dcf
Add and fix some cppcheck suppress items
...
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-03 17:11:09 -05:00
Mike Black W9MDB
5ac1e50b80
Fix always true conditions found by cppcheck
...
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-02 23:10:58 -05:00
Mike Black W9MDB
717a451d9c
Fix possible null pointer warning from cppcheck
...
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-02 12:32:20 -05:00