Icom users, who use the K9JM CI-V router to protect their PW-1
amplifiers from damage due to Icom's broken CI-V protocol handling,
require a 1s delay after opening the serial port. This is due to the
router using an Arduino & Arduino USB adapter that employs a
bootloader which holds the RS-232 interface for 1s after reset (DTR
releases reset). Hamlib already has a retry and timeout mechanism
which was set to 3 and 200ms respectively for most Icom rigs. This
change increses that timeout to 1s. The increaased timeout will have
little or no impact on clients as it only comes into play if there is
a problem.
With Icom rigs that use MAIN?SUB VFOs there is a trade off when
setting the mode or frequency of the "other" VFO. Untill now Hamlib
uses the XCHG VFO command to address the "other" VFO. This has some
advantages, particularly it preserves the selected VFO and it
preserves memory mode of either VFO. The disadvantage is that any
split command causes the Rx to glitch when the VFO/MEMs are exchanged.
I have added a config parameter for Icom rigs called "no_xchg" which
forces the direct addressing of VFOs to set split mode/frequency. It
is a boolean option with a default of "0" (false) which equates to
prior behaviour. Setting it to "1" (true) will make the backend use
change VFO commands to set the "other" VFO. This means that TX on
"SUB" in split is assumed, that both are in VFO mode (not MEM), and
set/get split functions will leave the MAIN VFO selected.
The code should work on IC-751 and IC-751A, both with the original Icom
UX-14 board (an option needed to be able to use CI-V) and the Piexx
UX-14px-board.
The Piexx UX-14px board have the same capabilities as the Icom one, but
adds S-meter reading, and PTT (can not read if the PTT is set though.)
The Icom IC-751 had FM as an option, the IC-751A had FM built in.
I had to add an extra if-statement in frame.c for the CW-narrow to work.
The bandwidth numbers used by Icom seem to be a jungle...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2070 7ae35d74-ebe9-4afe-98af-79ac388436b8