Wykres commitów

76 Commity (d857f181635059fd6c227f758cffd0707f26ffe5)

Autor SHA1 Wiadomość Data
Mikael Nousiainen d857f18163 Initial implementation of: reader thread for async handling of rig data, UDP multicast publisher routine and rig state poll thread routine. The reader thread can correctly handle asynchronous data, such as transceive or spectrum data. Work in progress: multi-platform code for I/O routines still missing and the poll routine is not yet in use. Tested briefly on an IC-7300 so far. 2021-11-28 20:52:29 +02: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 9842cdb1f3 Some minor changes to serial.c as we progress to a faster method
https://github.com/Hamlib/Hamlib/issues/850
2021-11-02 11:17:19 -05: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 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 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 d90d3eb0d0 Use EAGAIN error to retry when serial port is unavailable
https://github.com/Hamlib/Hamlib/issues/818
2021-10-10 08:33:31 -05:00
Mike Black W9MDB 4b77fc1eb3 Allow for EBUSY return during port read and retry 10x5ms for 50ms total before returning an error
https://github.com/Hamlib/Hamlib/issues/818
2021-10-08 23:58:07 -05:00
Mike Black W9MDB 9032e3e58b Improve ser_open error message 2021-08-30 10:01:36 -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 45d1162362 Improve debug message in iofunc.c on serial port error 2021-08-09 08:46:05 -05:00
Mike Black W9MDB 53476dd14d Remove some more debug 2021-06-01 07:19:00 -05:00
Mike Black W9MDB 81e3e2e5d2 astyle files 2021-04-29 17:23:37 -05:00
Mike Black W9MDB 25eb70d90d In iofunc.c only call hl_sleep if needed 2021-04-25 14:59:47 -05:00
Mike Black W9MDB bbc8e00074 astyle files 2021-04-04 12:50:07 -05:00
Mike Black W9MDB f6dc32778b Reduce verbosity in iofunc.c 2021-03-29 13:01:26 -05:00
Michael Black W9MDB 6cc8e5a20f Change LIBUSB definitions to cover both conditions
https://github.com/Hamlib/Hamlib/issues/634
2021-03-27 15:35:12 -05:00
Michael Black W9MDB 753cd792d3 Add debug to iofunc.c
https://github.com/Hamlib/Hamlib/issues/635
2021-03-27 15:17:52 -05:00
Michael Black W9MDB ee60a68bec astyle files 2021-02-28 09:46:01 -06:00
Michael Black W9MDB 83c47fad42 Android NDK now builds -- check README.android for info on libusb
https://github.com/Hamlib/Hamlib/issues/546
2021-02-28 15:50:36 +01:00
Michael Black W9MDB 7b04640cea Fix read_string timeout display value 2021-01-28 12:22:52 -06:00
Michael Black W9MDB 6d51f65528 astyle files 2020-10-06 23:14:27 -05: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 7455fa1b91 Clean up compile warning on iofunc.c 2020-09-30 12:59:44 -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
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
mdblack98 d5d6c55439 Fix JTDSK compilation warnings
https://github.com/Hamlib/Hamlib/issues/233
2020-05-01 14:33:35 -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 f1f0d7f129 Fix some of the documentation 2020-04-09 17:56:19 -05: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 5edceddcea
Update i/o functions to support GPIO(N) port closure 2020-01-26 12:33:05 +00: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 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
Michael Black 1011ea16e4
Fix cppcheck warnings in iofunc.c 2019-12-08 16:56:14 -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 8f93173462 Reduce verbosity of rig_strrmode and read_string 2019-02-05 09:31:54 -06:00
Michael Black W9MDB aadd458b99 Ensure read_string value is terminated 2018-10-25 08:37:59 -05: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
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
Nate Bargmann f76b354588 Reformatted src directory 2017-08-09 06:14:31 -05: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
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
Andrew Errington 1a77ef9eb9 Initial support for CM108 GPIO contorl of PTT
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-01-11 06:16:51 -06:00
Stephane Fillod da80137819 Add support for RIG_PORT_UDP_NETWORK
Also some copyright year update,
and default serial device on MacOSX
2012-01-06 09:28:24 +01:00
Nate Bargmann 3dedd4404f Add elapsed time reporting to read_block()
Upon a read timeout, the elapsed time in seconds will be displayed in
the timeout error message.

Added function name to the beginning of all debug output messages.
2011-11-30 06:17:12 -06:00