Wykres commitów

144 Commity (41c891251f4641d2aeb292e76654ed88b9f85a90)

Autor SHA1 Wiadomość Data
Mike Black W9MDB d72127f29a Fix cppcheck warnings 2023-10-11 23:22:42 -05:00
Mike Black W9MDB 2e3e0df4d6 Remove debug from serial.c 2023-08-29 07:45:42 -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 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 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 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
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 99baa872bf Move sleep for serial before the flush 2023-05-13 10:49:08 -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 e505ed37db Fix compile warning on mingw 2023-05-07 17:26:31 -05: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 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 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 df8b88072a Add all the baud rates to serial.c -- virtual serial ports can handle 4,000,000 baud 2022-12-11 23:18:38 -06:00
Mike Black W9MDB dc7e9bd7e9 Re-enable O_NDELAY -- slowed things down by about 2X
https://github.com/Hamlib/Hamlib/issues/1163
2022-11-30 12:01:46 -06:00
Mike Black W9MDB 2b487fe718 Move ser_set_rts/dtr to beggining of serial_setup
https://github.com/Hamlib/Hamlib/issues/1131
2022-11-16 15:29:36 -06:00
Mike Black W9MDB 31e40d2751 ser_open now sets rts and dtr low on startup
https://github.com/Hamlib/Hamlib/issues/1131
2022-11-16 13:26:48 -06:00
Mike Black W9MDB a83eb3bf42 astyle files for 4.5 release 2022-07-27 17:16:17 -05:00
Mike Black W9MDB 627ec83652 Change malloc to calloc 2022-07-27 10:26:08 -05:00
Daniele Forsi IU5HKX 7a132e2703 Remove unused includes
Removes includes of stdio.h stdlib.h string.h unistd.h
2022-07-24 17:08:57 +02:00
Daniele Forsi IU5HKX 4dfe46edbb Remove unused includes related to times and dates
Removes includes of time.h sys/time.h hamlibdatetime.h
2022-07-23 18:12:10 +02:00
Mike Black W9MDB 1b64214032 Reduce debug in serial.c 2022-05-03 12:12:25 -05:00
OK1CTR 83e5b14cf6 Manually applied diff from older HamLib version. 2022-02-23 22:36:57 +01:00
Mike Black W9MDB 8c34ce1a2d astyle source code 2022-02-05 15:27:43 -06:00
Mike Black W9MDB 68e121d82c Change all to remove HAVE_CONFIG dependency and include <hamlib/config.h> by default
This is necessary to keep alignment between the client view of rig->state and the shared libarary view
Including PTHREAD functions in rig->state necessitated this as HAVE_PTHREAD only defined during hamlib compilation.
Clients including hamlib/rig.h did not pick up all the HAVE* config variable that control what gets included
https://github.com/Hamlib/Hamlib/issues/947
2022-02-04 07:41:36 -06:00
Mike Black W9MDB 7b4b7ee630 Add a depth count to debug statements to help understand calling sequences
First call into rig functions is level 1
Top level like rigctl, rigctld is level 0
Non-depth calls are internal debug statements -- which can be modified to also show levels but that's a whole lot of statements not really necessary
Normal calls from other clients will be level 1
2022-01-30 23:37:01 -06:00
Mike Black W9MDB aa3daf4eda Change sprintf to SNPRINTF in serial.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 14:46:29 -06:00
Mike Black W9MDB 58b9e16099 Add debug for serial_handshake 2022-01-10 16:50:12 -06:00
Mike Black W9MDB 6d16f24157 CODAN promoted to stable
Re-enable serial flush
2021-12-28 12:55:50 -06:00
Mikael Nousiainen c764336e73 Fix build warnings caused by changes to I/O function signatures 2021-12-18 23:49:45 +02:00
Mikael Nousiainen 56c95b1529 Merge upstream changes and fix conflicts 2021-12-12 23:05:26 +02:00
Mike Black W9MDB 63a51c36a1 astyle files preparing for 4.4 release 2021-11-28 12:41:10 -06:00
Mike Black W9MDB d820ee9dbf Add expected_len to read_string function for potential serial I/O speedup
https://github.com/Hamlib/Hamlib/issues/850
2021-11-24 13:02:39 -06:00
Mikael Nousiainen 1f538ad7ec Started work on asynchronous reader thread to enable handling of rig tranceive and waterfall data (WIP) 2021-11-20 21:33:29 +02:00
Mike Black W9MDB 8fe190d622 Reduce error messages about RIG_VFO_OTHER which only applies to some rigs like Icom rigs with the 0x25 command
Add a flush_flag to read_string so that the new serial_flush will not produce a timeout value when flushing
https://github.com/Hamlib/Hamlib/issues/835
2021-11-01 23:43:45 -05:00
Mike Black W9MDB 84fb123202 Pass empty stopset to read_string so it can determine appropriate stopset for async data 2021-10-30 08:22:55 -05:00
Mike Black W9MDB 44871f7e9b Change serial_flush to read any buffered data instead of flushing.
Perhaps to support transceive mode
2021-10-29 17:48:43 -05:00
Mike Black W9MDB 1ed398466d Revert "Change serial_flush to read data instead of TCFLUSH"
Was causing timing problems
This reverts commit d28f440968.
2021-10-29 14:38:40 -05:00
Mike Black W9MDB f071adac8f Revert "Revert "Revert "Fix hex print in serial_flush"""
Straighening out these reverts
This reverts commit b2646f54a4.
2021-10-29 14:38:14 -05:00
Mike Black W9MDB b2646f54a4 Revert "Revert "Fix hex print in serial_flush""
Was causing timing problems
This reverts commit bf2867021e.
2021-10-29 14:33:31 -05:00
Mike Black W9MDB bf2867021e Revert "Fix hex print in serial_flush"
Was causing timing problems
This reverts commit 4a18fa2282.
2021-10-29 14:33:08 -05:00
Mike Black W9MDB 4a18fa2282 Fix hex print in serial_flush 2021-10-29 11:43:41 -05:00
Mike Black W9MDB d28f440968 Change serial_flush to read data instead of TCFLUSH
This is for the future to enable transceive mode on rigs
2021-10-29 11:24:16 -05:00
Mike Black W9MDB 283281c4cb astyle all files preparing for 4.3 release 2021-08-26 06:49:24 -05:00
Mike Black W9MDB b2acf0b6f5 Improve debug in ser_open 2021-08-21 22:38:44 -05:00
Mike Black W9MDB 0be978abcd Add more retries to PTT serial port open
https://github.com/Hamlib/Hamlib/issues/768
2021-08-21 22:31:15 -05:00
Mike Black W9MDB ad53f2f1e3 Fix typo in serial.c
https://github.com/Hamlib/Hamlib/issues/768
2021-08-21 07:41:48 -05:00
Mike Black W9MDB c6151c7110 Fix error in serial.c
https://github.com/Hamlib/Hamlib/issues/768
2021-08-20 22:31:11 -05:00
Mike Black W9MDB df40151d65 Add additional attempts to open serial port
K4 was failing on 1st open for some unknown reason but succeeds on 2nd try
https://github.com/Hamlib/Hamlib/issues/768
2021-08-20 22:29:12 -05:00