Connecting cqrlog to Radio (KX3)

5 posts / 0 new
Last post
ww9jd
Connecting cqrlog to Radio (KX3)

Hi -
This is not a question, just the result of my solution to a problem that I could find a direct answer to. I am running UBUNTU 20.10 on a Dell Inspiron 11-3162 using an Elecraft KX3. The problem I was having seemed to be that the USB port number changed on re-boot. Flrig never seemed to have any trouble, but it was being a real headache for me with cqrlog. If there is a way in the program to solve this issue, I never found it and would be appreciative of a comment telling me how it is supposed to work.

My solution was to search for a way to assign the radio to a port or device name that would not change on re-boot. Here is what I found:

Find the device vendor & product numbers:
$ lsusb
which returns several lines including:
Bus 001 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC

Knowing what devices I had plugged into the USB port, I decided that the above line was describing the serial interface for my Elecraft KX3.

I used that information to assign the it to a device name. I chose RADIO, but a name of your choice could v=be used instead.

edit:
$ sudo gedit /etc/udev/rules.d/50-usb.rules
using your favorite editor, to include the line:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="RADIO", MODE="0666"

If you want non-root users to be able to use these, then add
, MODE="0666"
to the end of the line.

Now, in cqrlog I set my device to
/dev/RADIO
and all of the radio parameters to "default"

After a reboot, communication is solid.

oh1kh
Connecting cqrlog to Radio (KX3)

Hi!

Thanks for sharing your knowledge about making symlink(s) to usb devices! It is the most common way to get rid of always changing serial port names.

If you have one of latest hamlib versions (>= 4.0) you can also try using device id for serial port. It is unique and can be found from "/dev/serial/by-id"-folder without doing anything.
For example my icom 7300 shows out there as "/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_IC-7300_03003483-if00-port0"

--
Saku
OH1KH

AA5FA
USB Ports in Linux

This is the absolute best bit of information on the entire Internet!!! Creating this 50-USB.rules file has save me countless hours of frustration with Linux. Thank you so much.

Wiley, AA5FA

oh1kh
USB Ports in Linux

Hi Wiley!

Nice to hear!

How ever in modern Linux you do not have to do anything for USB-rules, just find the right name to use.

Dive into "/dev/serial/by-id"-folder and see what is there when your radio is connected and powered.
Then remove radio connection and refresh the folder view.

You should notice what (file)name disappeared. That is your rig.
For example my Icom 7300 shows out there as "usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_IC-7300_03003483-if00-port0"

Now combine the name and the folder path together with text editor: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_IC-7300_03003483-if00-port0
Copy this long line and paste it to preferences/TRXControl/Device -column.
It and receive longer lines than the space shows. You can scroll the text with arrow left/right keys to see that it is ok.

This way there is no need to touch to USB-rules, but it is not forbidden to change them if you like so.

--
Saku
OH1KH

AA5FA
USB Ports in Linux

Pure genius you are! At first it didn't work, but then I checked and I was not a member of the dialout group. Once I added myself to the dialout group and rebooted, everything works just fine.
Thanks very much,
73, Wiley, AA5FA

Wiley, AA5FA