Wykres commitów

2042 Commity (master)

Autor SHA1 Wiadomość Data
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
Mike Black W9MDB a469823028 Fix cppcheck unused warning 2023-10-01 13:28:29 -05:00
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