Add support for DMK Engineering URI

I have a problem with the CM119A GPIO. The PTT line of the DMK
Engineering URI was not activated by the hamlib  when using fldigi or
rigctl.

I fiddled with the source code and managed to edit the code in cm108.c
to get the PTT-line activate on my URI-box.
A successful rigctl command is:

rigctl -p /dev/hidraw0 -C ptt_pathname=/dev/hidraw0,ptt_type=CM108,ptt_bitnum=2
Attached is the modified source code file and a patch in 'git diff'
format.

The version of origin is 1.2.15.3.

73 de Veijo OH3NFC

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
Hamlib-3.0
Veijo Arponen 2014-10-12 12:25:58 +03:00 zatwierdzone przez Nate Bargmann
rodzic 19f131b1b8
commit 89ebe6bc84
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -102,9 +102,10 @@ int cm108_open(hamlib_port_t *port)
if (!ioctl(fd, HIDIOCGRAWINFO, &hiddevinfo)
&&
(
(hiddevinfo.vendor == 0x0d8c // CM108/109/119
&& hiddevinfo.product >= 0x0008
&& hiddevinfo.product <= 0x000f
(hiddevinfo.vendor == 0x0d8c && // CM108/109/119/119A
(hiddevinfo.product >= 0x0008 &&
hiddevinfo.product <= 0x000f ||
hiddevinfo.product == 0x013a)
)
||
(hiddevinfo.vendor == 0x0c76 && // SSS1621/23