Author Topic: hamlib CAT drama  (Read 6067 times)

kindsvaters

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
hamlib CAT drama
« on: 2015-05-31, 16:22:23 »
I am having trouble getting CAT control working on Linux. Maybe somebody can help me. TIA.

My setup is RRC1258 Elecraft Twin bundle and K3/0 mini on the control side.
I am running Ubuntu 14.04 and CQRLOG (it does TRX control with hamlib rigctld) on a hacked chromebook.

I am able to get CAT working when using COM1 (set in mode 7 on the control box) connected with a null-modem cable via an FTDI USB adapter, I then can talk to /dev/ttyUSB0 without problems.

Once I connect the control box via the built-in mini USB, I am getting four ports /dev/ttyACM0 to ttyACM3. I enable usb for COM1 on the control box, but getting this from the hamlib:

kindsvaters@3peppy:~$ rigctld -vvvv -m 229 -r /dev/ttyACM0 -s 38400 -T 127.0.0.1 -t 4532 &
[1] 3016
rigctld, Hamlib 1.2.15.3

Report bugs to <hamlib-developer@lists.sourceforge.net>

rig:rig_init called
rig: loading backend kenwood
initrigs2_kenwood called
rig_register (213)
rig_register (201)
rig_register (225)
rig_register (203)
rig_register (204)
rig_register (216)
rig_register (224)
rig_register (205)
rig_register (207)
rig_register (209)
rig_register (210)
rig_register (222)
rig_register (214)
rig_register (230)
rig_register (221)
rig_register (229)
rig_register (202)
rig_register (211)
rig_register (206)
rig_register (208)
rig_register (215)
rig_register (226)
rig_register (217)
rig_register (233)
rig_register (220)
rig_register (223)
rig_register (227)
rig_register (234)
rig_register (231)
rig_register (231)
rig_register (228)
rig_register (219)
rig_register (232)
kenwood_init called
rig:rig_open called
elecraft_open called
verify_kenwood_id called
kenwood_get_id called
kenwood_transaction called
kindsvaters@3peppy:~$ read_string(): Timed out 0.600685 seconds without reading a character.
read_string(): Timed out 0.600688 seconds without reading a character.
read_string(): Timed out 0.600692 seconds without reading a character.
read_string(): Timed out 0.600692 seconds without reading a character.
verify_kenwood_id: cannot get identification
rig_open: error = Communication timed out

As said it works for COM1- serial-ftdi:

kindsvaters@3peppy:~$ rigctld -vvvv -m 229 -r /dev/ttyUSB0 -s 38400 -T 127.0.0.1 -t 4532 &
[1] 4496
rigctld, Hamlib 1.2.15.3
Report bugs to <hamlib-developer@lists.sourceforge.net>

rig:rig_init called
rig: loading backend kenwood
initrigs2_kenwood called
rig_register (213)
rig_register (201)
rig_register (225)
rig_register (203)
rig_register (204)
rig_register (216)
rig_register (224)
rig_register (205)
rig_register (207)
rig_register (209)
rig_register (210)
rig_register (222)
rig_register (214)
rig_register (230)
rig_register (221)
rig_register (229)
rig_register (202)
rig_register (211)
rig_register (206)
rig_register (208)
rig_register (215)
rig_register (226)
rig_register (217)
rig_register (233)
rig_register (220)
rig_register (223)
rig_register (227)
rig_register (234)
rig_register (231)
rig_register (231)
rig_register (228)
rig_register (219)
rig_register (232)
kenwood_init called
rig:rig_open called
elecraft_open called
verify_kenwood_id called
kenwood_get_id called
kenwood_transaction called
kindsvaters@3peppy:~$ verify_kenwood_id: Rig ID is ID017
elecraft_get_extension_level called
kenwood_safe_transaction called
kenwood_transaction called
elecraft_get_extension_level: K2 extension level is 0, K20
elecraft_open: K2 level is 0, K20
elecraft_get_extension_level called
kenwood_safe_transaction called
kenwood_transaction called
elecraft_get_extension_level: K3 extension level is 4, K30
elecraft_open: K3 level is 4, K30
elecraft_get_firmware_revision_level called
kenwood_transaction called
elecraft_get_firmware_revision_level: Elecraft firmware revision is
kenwood_get_vfo_if called
kenwood_get_if called
kenwood_safe_transaction called
kenwood_transaction called
Opened rig model 229, 'K3/KX3'
Backend version: 20120615, Status: Beta

kindsvaters@3peppy:~$ echo "+\get_mode" | nc -w 1 localhost 4532
Connection opened from 127.0.0.1:55863
k3_get_mode called
kenwood_get_mode called
kenwood_safe_transaction called
kenwood_transaction called
kenwood2rmode called
kenwood_safe_transaction called
kenwood_transaction called
get_mode:
Mode: CW
Passband: 1000
RPRT 0
fscanf: Success
Connection closed from 127.0.0.1:55863
kindsvaters@3peppy:~$

Jan (Microbit)

  • Software Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1829
    • View Profile
    • Email
Re: hamlib CAT drama
« Reply #1 on: 2015-06-01, 09:05:10 »
We do not have much experience using the RRC with Linux, but a possible cause could be that it seems the RRC and the FTDI adapter have different drivers. Also it should be possible to log what the kernel  'thinks' about the RRC and its ports.
Always include type of hard/software and version when asking for support.

kindsvaters

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: hamlib CAT drama
« Reply #2 on: 2015-06-02, 22:11:58 »
Thanks Jan. It does work though for the Winkey via COM3 USB. Hamlib uses /dev/ttyACM3 to access it.