Wykres commitów

93 Commity (47cf24582626e44d028aaa66fe1ebc9b3d6fd760)

Autor SHA1 Wiadomość Data
Michael Black W9MDB 3bc39aaec1 astyle files is preparation for 4.2 release 2021-03-15 17:51:22 -05:00
Michael Black W9MDB c3a1b489b7 Add return code to debug statements
Remove some RETURNFUNC that don't work with this change
2021-03-05 11:51:56 -06:00
Michael Black W9MDB ee60a68bec astyle files 2021-02-28 09:46:01 -06:00
Michael Black W9MDB da5a4ddc6e Reduce debug in serial.c 2021-02-26 23:38:15 -06:00
Michael Black W9MDB 35cdf5fc3f Fix compilation error on serial.c 2021-02-25 11:07:08 -06:00
Michael Black W9MDB a3eaac9faf Change some return to RETURNFUNC in serial.c 2021-02-25 06:07:51 -06:00
Michael Black W9MDB fc890004f3 Fix too verbose debug in serial.c 2021-02-14 23:51:14 -06:00
Michael Black W9MDB ab34e83adc RETURNFUNC ENTERFUNC for serial.c
https://github.com/Hamlib/Hamlib/issues/514
2021-02-14 23:46:05 -06:00
Michael Black W9MDB 1fe2efb315 Reduce a debug level in serial.c 2021-01-22 08:26:03 -06:00
Michael Black W9MDB 5fc36df249 astyle files 2020-11-30 14:53:55 -06:00
Michael Black W9MDB d782fde5e5 Some notes about microham router 2020-11-28 22:34:15 -06:00
Michael Black W9MDB 8827f081dd Add flushx option for MicroHam devices to allow flushing by read instead of tcflush.
The special name of uh-rig only works on Linux and has other purposes apparently for ptt use
https://github.com/Hamlib/Hamlib/issues/446
2020-11-25 08:40:24 -06:00
Michael Black W9MDB 8ecf7b15ba clean up a couple of compile warnings 2020-11-18 16:31:09 -06:00
Michael Black W9MDB 49d24815b2 Undo last commit to serial.c 2020-09-30 12:57:31 -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
Michael Black W9MDB cfff76dae6 Add some debug to show ser_open error
https://github.com/Hamlib/Hamlib/issues/383
2020-09-28 16:13:08 -04:00
Michael Black W9MDB bc1e0cc678 https://github.com/Hamlib/Hamlib/issues/358
Added 50ms wait after serial port is opened.
MicroKeyer was rejecting "ID" command as it was too fast.
Values at 20ms or less weren't working so doing 2* safety factor
This shouldn't harm any other things going on.
2020-08-18 17:13:02 -05:00
Michael Black W9MDB 59358564c7 Add 230400 serial speed 2020-08-10 22:46:08 -05:00
Michael Black W9MDB 675a3673a9 Change debug in serial.c to hex 2020-08-10 22:36:55 -05:00
Michael Black W9MDB 4e83c351e7 Add some more debug to serial.c 2020-08-10 22:34:12 -05:00
Michael Black W9MDB 65fbc1cd4b Add some debug to serial.c 2020-08-10 22:26:25 -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
Michael Black W9MDB b6a960d48e All conversions to rig_flush now done
https://github.com/Hamlib/Hamlib/issues/307
2020-06-23 09:01:46 -05:00
Bill Somerville c78b98d36b
Revert "Add debug to serial.c"
This reverts commit be439ea394.

Remove debugging code that breaks  the intended functionality. How did
this change pass even the most basic of tests?
2020-05-27 11:22:46 +01:00
Michael Black W9MDB be439ea394 Add debug to serial.c 2020-05-25 15:31:58 -05:00
Michael Black f1f0d7f129 Fix some of the documentation 2020-04-09 17:56:19 -05:00
Michael Black 6d9c81cf6a A couple minor edit changes 2020-03-17 22:54:29 -05:00
Michael Black 7fb932b894 Remove debug from serial.c 2020-03-15 22:40:40 -05:00
Michael Black 35fffc4f38 astyle files 2020-03-15 15:32:46 -05:00
Michael Black 4e606a054f Add some debug for timing in serial.c 2020-03-15 09:52:05 -05:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -06:00
Michael Black fab30e07c1
Add some debug for flush 2019-09-09 12:49:11 -05:00
Johan Ström af7bb1a0fc Backup serial options on open, restore on close
Before altering the serial port settings, make a copy of the settings
and track it by the fd. On serial port close, restore the original
settings for that port.

On Mac OS the Prolific PL2032 kernel driver locks up if closing without
first restoring the options. When this happens, further usage of the port
is impossible until computer is rebooted, which cannot even be done
without a hard power-off.
With this fix, a clean close make sure we can re-open the port again.
2019-06-09 23:22:18 +02:00
Michael Black 9570d6c669 Add flush to serial open 2019-04-02 08:49:56 -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 e44566e8a7 Release the serial port used for PTT when possible
When  using  separate  serial port  for  PTT  via  RTS  pr DTR  it  is
convienent to close  the port when the PTT line  is not asserted. This
allows other applications to share the PTT serial port.

This has been  achieved by ensuring that file descriptor  for the port
is set to -1 when the port  is closed, this then allows the invalid FD
to be used as a PTT surrogate for the rig_get_ptt API when the port is
only being used for PTT.
2016-08-31 22:34:09 +01:00
Bill Somerville 4e2a6adf12 Move serial line control error checks to lower level routines
Moved in preference to introducing errno.h into rig.c.
2014-11-24 00:51:12 +00:00
Bill Somerville 0e0779877d Add more diagnostics and error checks to serial line control 2014-11-24 00:18:48 +00:00
Stephane Fillod 212f2c97b2 serial: round up VTIME
Round up the VTIME setting in case the rig timeout is less than 100 ms,
which would make the termios timeout infinite.
2013-05-07 07:59:49 +02:00
Stephane Fillod 6c370dd36d serial: fix blocking call on ports, esp. on win32
Summary from Lada:

On Win7, good testing command is:
C:\hamlib> rigctl -vvvvv -m 214 -r COM1 -s 4800 -C data_bits=8 -C
stop_bits=2 -C serial_handshake=Hardware -C timeout=1000

Behavior of this command differs on COM port. On hardware ports
(onboard, PCI NetMos, all probably 16550-compatible) rigctl freeze in
data write. It is correct, no hardware handshake is estabilished. On
FT232 USB port initialization failed by timeout. I think it is not
correct but this is not subject of this e-mail.

Looked into hamlib source and found, that timeout argument is no
longer handled. SetCommTimeouts takes timeout from c_cc[VTIME] which
is not filled.

Signed-off-by: Ladislav Vaiz <spam@nagano.cz>
2013-05-06 23:47:56 +02:00
Nate Bargmann dad27d1f69 Update LGPL header in src source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:37 -05:00
Stéphane Fillod, F8CFE 9de8e3f1d2 Add Mark/Space serial parity
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2996 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-10-26 19:31:09 +00:00
Stéphane Fillod, F8CFE 5c24ee2925 Workaround SF#3055689
* make sure the PTT is not set when configured as RTS/DTR at open()/close() time.
  It appears the Linux kernel force their value as explained here[1] during open.
  Also obvious when reading the source code[2], esp. in uart_startup() 
  and uart_update_termios() where uart_set_mctrl(port, TIOCM_DTR | TIOCM_RTS) 
  is called.

[1] http://books.google.fr/books?id=75eeBNcjcuIC&lpg=PA152&ots=Qvgi6VDLvm&pg=PA152#v=onepage&q&f=false
[2] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/serial/serial_core.c;hb=HEAD

* don't let the OS change modem signals at close() time


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2983 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-17 14:46:16 +00:00
Stéphane Fillod, F8CFE 299aba9233 While we're at it, add support for 150 bps serial devices
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2703 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-06-01 17:02:58 +00:00
Stéphane Fillod, F8CFE 38b3425646 Add support for 600 bps serial devices, SF ID: 2793000, patch by Magne, LA1BFA
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2698 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-05-18 18:39:59 +00:00
Martin Ewing, AA6E f6ddc3edad documentation
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2145 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-10-15 00:27:52 +00:00
Stéphane Fillod, F8CFE 9fae198566 renamed port_t as hamlib_port_t
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1957 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-03 12:27:17 +00:00