Some Icom rigs use USB for the CI-V connection. This can be set to echo or not. This mod permits a check of the echo state on start-up & flags the frame handling accordingly.
A new member of the icom_priv_caps is defined to flag that this check should be done. A new icom_rig_open function performs this check & sets a flag in priv_data which frame.c then uses to process the input accordingly.
I'm implementing several changes to support some functionality for the
IC7300. In order to minimize the review process I'm submitting this
small one separately (still working on finish the IC7300 but it's some
fairly extensive changes since ICOM has changed the protocol for several
things).
For the IC7300 turning power on requires ~150 0xfe's be sent to wake up
the rig. This causes a buffer overflow condition in icom/frame.c. This
patch increases the buffer size and ensures no overflow.
73
Mike W9MDB
This change allows the set_mode functions to leave the rig passband
unchanged if required. For the few rigs that do not have explcit
passband width control either current state is read and rewritten or a
"normal" width is chosen e.g. select a normal width when there is a
choice like CW and CW-NARROW.
Only ask Icom rigs once then desist if bandwidth request returns
command rejected. This avoids sending the request with every mode
query and possibly retrying 'retries' times for rigs that do not
suport the '1a 03' command which wastes much time at slow baud rates.
icom/icom.c - Initialize ack_len to the size of the response buffer
since it is an input to icom_transaction as well as an output.
Thanks to David Hagood, N0YKG
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2176 7ae35d74-ebe9-4afe-98af-79ac388436b8
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
includes the passband, since most rigs tie these parameters together
quite often. For exemple, WFM is (RIG_MODE_FM,RIG_PASSBAND_WIDE) in Hamlib.
Another set of functions will be needed to fine tune aditional
frequency response/filters.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@280 7ae35d74-ebe9-4afe-98af-79ac388436b8
* added read_icom_frame which read a whole CI-V frame (until receiving EOM),
* added hamlib2icom_modeand icom2hamlib_mode functions to convert from one representation to another
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@188 7ae35d74-ebe9-4afe-98af-79ac388436b8