TRX Control with TS-480

21 posts / 0 new
Last post
KW4G
KW4G's picture
TRX Control with TS-480

I am running a Kenwood TS-480SAT with a RigExpert Standard interface. I am unable to get TRX Control to work. I am a member of the 'DIALOUT' group. Here is what debug lists:
RigCtldPath:/usr/bin/rigctld
RigCtldArgs:-m 228 -r /dev/ttyusb0 -t 4532  -s 38400  --set-conf=data_bits=8,stop_bits=1,parity=None,serial_handshake=None
RunRigCtld: TRUE
RigDevice:  /dev/ttyusb0
RigCtldPort:4532
RigCtldHost:localhost
RigPoll:    500
RigSendCWR: FALSE
RigId:      228
 
Starting RigCtld ...
/usr/bin/rigctld -m 228 -r /dev/ttyusb0 -t 4532  -s 38400  --set-conf=data_bits=8,stop_bits=1,parity=None,serial_handshake=None
Config parameter error: Feature not available
rigctld started!
Connected to localhost:4532
Here is what I see when I type lsusb:
 

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 013: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
Bus 005 Device 012: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
Bus 005 Device 011: ID 08bb:2904 Texas Instruments PCM2904 Audio Codec
Bus 005 Device 010: ID 03eb:3301 Atmel Corp. at43301 4-Port Hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 045e:00d1 Microsoft Corp. Optical Mouse with Tilt Wheel
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 
I have no idea what most of this means. Any help?
Thanks.
 
Roy KW4G

PA1SBM
PA1SBM's picture
Hi Roy,

Hi Roy,
 
For as far i see the problem is a typo :)
you have /dev/ttyusb0 but it should be /dev/ttyUSB0
Linux is caps sensitive.
Also, just keep all other options to default, usualy there is no need to set those.
I also run with a ts-480 , and i leave all to default
Give it a try and tell what happens.
 
I asumed her that ttyUSB0 is indeed the port your 480 is connected to.....
If you want to know what usb ports you have type: ls /dev/ttyUSB* in a terminal window
 
good luck
Alex,
PA1SBM

KW4G
KW4G's picture
TRX Control with TS-480

Thanks for your reply, Alex. I tried capitalizing USB, but no joy. If I run ls /dev/ttyUSB* I get 4 ports, USB0, USB1, USB2 and USB3. I tried them all. I am running at 38400, but the radio and program are both set to that speed. I tried connecting the radio and the computer through a real COM port (COM 1). Still no luck. I went to Windows 7, on the same machine. I set up FLDigi to use COM 1 at 38400, with everything else set to 'DEFAULT'. I had to switch to an .xml file, as I could not get hamlib to work. TRX control in FLDigi worked fine. Without touching the cabling, I rebooted to Ubuntu 10.13. I ran FLDigi, set it up for /dev/ttyS0 at 38400, and no joy. I tried both hamlib and xml. I ran CQRlog, set it up for /dev/ttyS0 at 38400, and no joy. I don't know what I could be doing wrong, but I'm sure it's something simple.
Roy KW4G

Roy, KW4G Naples, Florida USA

k8wdx
My settings for the TS-480

My settings for the TS-480 are now as this:
Rig ID model: 214Device: /dev/ttyS0 (because I have connected the radio to the computer with RS232, if you use USB, then the settings should be: /dev/ttyUSB0 or what ever port it is, might have to try several #Poll rate: 500Port number: 4532Serial speed: 9600 
This worked for a Ham who I help out before, your results may very, I have a 480 but have not connected it yet, maybe today or tomorrow, I will let you know, by the way everything in the boxes should be default except the serial speed... make sure the rig is at 9600 as well... HTH Tom K8WDX

Tom K8WDX

ZL2APV
Re: My settings for the TS-480

Hi Roy and all,
 
Be aware that if you unplug your usb port and plug it back again it may not re-connect as USB0 but could be USB1 etc. It is a problem with polling the port and has caught a lot of people out who can't understand why that which worked a few minutes ago does not work now..
ls /dev/ttyUSB* is your friend here.
 
73, Graeme ZL2APV

KW4G
KW4G's picture
TRX Control with TS-480

Hello, Graeme, and thanks for your reply. Yes, I am aware of this problem with USB ports. I did run ls /dev/ttyUSB*. I show 4 USB ports, USB0-USB3. I tried them all. Finally connected the rig to the real serial port on the computer. Still no go.
Roy KW4G

Roy, KW4G Naples, Florida USA

KW4G
KW4G's picture
TRX Control with TS-480

Hi, tom, and thanks for your reply. I'm confused, though. 214 is the setting for the Kenwood TS-2000, which I also have. The 480 is listed as 228. I did try 214, just in case. I reset all of the boxes to DEFAULT, except speed, which is set at 38400 to match the 480's setting. I tried connecting to the real serial port on my computer to eliminate the RigExpert as the problem. Still no luck. I know it's something simple that I am missing. I am a Windows guy who has been playing with Linux for a long time for email and web surfing. I haven't quite figured out setting up devices, etc. yet. I'm stumped
Roy KW4G

Roy, KW4G Naples, Florida USA

ok2cqr
ok2cqr's picture
Re: TRX Control with TS-480

Hi Roy,
 
could you paste here the output when you run cqrlog from command line with --debug parameter, please? It should work when you set all other parameters to default and set only serial speed.
 
73 Petr, OK2CQR

KW4G
KW4G's picture
OK, Petr, here it is. Please

OK, Petr, here it is. Please note that I changed the speed to 9600 on both the rig and the program, since others seemed to be able to get their 480's to work at 9600. I see there is an IO error, but don't know what is causing it. Thanks for taking a look.
Roy KW4G
 
**** DEBUG LEVEL 1 ****
 
Loading libssl: /usr/lib/x86_64-linux-gnu/libssl.so
Loading libcrypto: /usr/lib/x86_64-linux-gnu/libcrypto.so
Loading libmysqlclient: /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18
Loaded 69867 LoTW users
Loaded 79826 eQSL users
Loaded 43156 SCP calls
*
User home directory:    /home/roy/
Program home directory: /home/roy/.config/cqrlog/
Data directory:         /home/roy/.config/cqrlog/database/
Memebers directory:     /usr/share/cqrlog/members/
ZIP code directory:     /usr/share/cqrlog/zipcodes/
Binary dir:             /usr/bin/
Share dir:              /usr/share/cqrlog/
TConnection to MySQL:   5.5
*
140218  5:06:46 [Note] Plugin 'FEDERATED' is disabled.
140218  5:06:46 InnoDB: The InnoDB memory heap is disabled
140218  5:06:46 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140218  5:06:46 InnoDB: Compressed tables use zlib 1.2.8
140218  5:06:46 InnoDB: Using Linux native AIO
140218  5:06:46 InnoDB: Initializing buffer pool, size = 128.0M
140218  5:06:46 InnoDB: Completed initialization of buffer pool
140218  5:06:46 InnoDB: highest supported file format is Barracuda.
140218  5:06:46  InnoDB: Waiting for the background threads to start
140218  5:06:47 InnoDB: 5.5.35 started; log sequence number 1595675
140218  5:06:47 [Note] Server hostname (bind-address): '0.0.0.0'; port: 64000
140218  5:06:47 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
140218  5:06:47 [Note] Server socket created on IP: '0.0.0.0'.
140218  5:06:47 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them
140218  5:06:47 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
140218  5:06:47 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'events_waits_history' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'setup_consumers' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'setup_instruments' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'setup_timers' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'performance_timers' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'threads' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure
140218  5:06:47 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure
140218  5:06:47 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.35-0ubuntu0.13.10.2'  socket: '/home/roy/.config/cqrlog/database/sock'  port: 64000  (Ubuntu)
select * from tables where table_schema = 'cqrlog_common'
 
SELECT log_nr,log_name FROM cqrlog_common.log_list order by log_nr
 
use cqrlog001
 
use cqrlog001
 
use cqrlog001
 
SELECT * FROM cqrlog_config
 
select * from db_version
 
select * from cqrlog_common.db_version
 
SELECT * FROM cqrlog_common.dxcc_ref ORDER BY ADIF
 
SELECT * FROM cqrlog_common.dxcc_ref ORDER BY ADIF
 
 
Settings:
-----------------------------------------------------
RigCtldPath:/usr/bin/rigctld
RigCtldArgs:-m 228 -r /dev/ttyS0 -t 4532  -s 9600 
RunRigCtld: TRUE
RigDevice:  /dev/ttyS0
RigCtldPort:4532
RigCtldHost:localhost
RigPoll:    500
RigSendCWR: FALSE
RigId:      228
 
Starting RigCtld ...
/usr/bin/rigctld -m 228 -r /dev/ttyS0 -t 4532  -s 9600 
rig_open: error = IO error 
rigctld started!
Connected to localhost:4532
 
Settings:
-----------------------------------------------------
RotCtldPath:/usr/bin/rotctld
RotCtldArgs:
RunRotCtld: FALSE
RotDevice:  
RotCtldPort:4533
RotCtldHost:localhost
RotPoll:    500
RotId:      1
 
rotctld started!
Connected to localhost:4533
CW init
SELECT * FROM profiles WHERE visible > 0 ORDER BY nr
 
SELECT * FROM profiles WHERE nr = 1
 
SELECT * FROM profiles WHERE visible > 0 ORDER BY nr
 
SELECT * FROM profiles WHERE nr = 1
 
select locator from profiles where nr = 1
 
select locator from profiles where nr = 1
 
1-EL96CH;Home
Naples, Florida
USA;
select * from view_cqrlog_main_by_qsodate where qsodate >= '2014-02-13' order by qsodate,time_on
 
LoadForm: frmNewQSO
 

Roy, KW4G Naples, Florida USA

ok2cqr
ok2cqr's picture
Re: OK, Petr, here it is. Please

Roy,
 
it seems that I/O error message will be the problem. What distribution are you using? Do you have rights to access the port? If you are using Ubuntu, open the terminal and enter this command:
 
sudo useradd -G dialout roy
 
Now log out and log in again. TRX control should work.
 
 Petr

KW4G
KW4G's picture
Petr,

Petr,
I am already a member of the 'dialout' group. When I typed in the command you suggested, it told me I was already a member. I just can't get radio control to work under Linux. I would like to use a Linux logger (preferably CQRlog with FLDigi for digital modes), but I won't be doing so without rig control. I am too spoiled. Any other suggestions? I have not been able to get rig control to work with FLDigi under Linux either, so I don't think it is your software. Thanks for your help.
Roy KW4G

Roy, KW4G Naples, Florida USA

ok2cqr
ok2cqr's picture
Re: Petr,

Roy,
are you sure you have radio connected to real serial port and not to serial to USB converter? I know you tried also /dev/ttyUSB* and it didn't work.
To what port is radio connected?
 
73 Petr
 

KW4G
KW4G's picture
Petr,

Petr,
Yes, I tried connecting the radio to a 'real' serial port. I had the program set up to use /dev/ttyS0. I still could not get radio control to work. I tried using the USB/serial adapter. I tried /dev/ttyUSB0-3, all of which showed up when I type the 'ls usb' command. I am not happy with the RigExpert, and will probably be putting it on eBay. I don't think my USB Interface III from microHAM will work with Linux, so I will be trying COM 1 for any furture efforts. I know COM 1 translates to /dev/ttyS0 in Linux. I just don't know what else to try.
73, Roy KW4G

Roy, KW4G Naples, Florida USA

KW4G
KW4G's picture
There is joy in Mudville! I

There is joy in Mudville! I don't know what changed, but rig control is now working. I know that I rebooted the machine a few days ago. I can't remember if I have tried it since then or not. Thanks for all your suggestions.
Roy KW4G

Roy, KW4G Naples, Florida USA

k8wdx
Hi Petr 480 series rig control

If you have some time this weekend, we can get together on skype and try to get the 480 working, I have one as well and I cant get it to work with Fldigi or CQRlog, so it is not CQRlog, I am part of the dialout because the FTDX 5000 works perfect, I used the cable for the Yaesu so the port and the cable are good. so far no go, not with any of the settings that kenwood offers, I have not had time to put a great deal of effort into this yet  Tom K8WDX
BTW I use a serial port...

Tom K8WDX

KW4G
KW4G's picture
I had been part of the

I had been part of the dialout group for some time, Tom. I have been working
on this problem, off and on, for some time. I'm sure I have rebooted the
machine in that time. I do believe that is what made the difference this
time, though. Not sure what changed. May be one of those forever computer
mysteries! Did you get your '480 working with CQRLog?

73,
Roy KW4G

Roy, KW4G Naples, Florida USA

k8wdx
 

 
Roy, that did not work anyway, sometimes you have to use other radio settings, like in fldigi, I have touse the ft 2000 sttings, althougj I have the ftdx 5000, so try some other settings, I have one of these 480, L will try tomorrow and see if I can get it to work, so far, no, but I had limited time today and did not try to hard. Tom K8WDX
 

Tom K8WDX

k8wdx
Sorry about the typing, I am

Sorry about the typing, I am using this tablet, It sucks for sending text.. Tom K8WDX
 

Tom K8WDX

KW4G
KW4G's picture
Tom,

Tom,
Sorry I have not gotten back to you. I have been away from this problem for a while. Have you had any luck getting your TS-480 controlled with a Linux program? I don't use Skype, so can't meet you there.
Roy KW4G

Roy, KW4G Naples, Florida USA

k8wdx
Glad you got it working, I

Glad you got it working, I almost dont want to ask, but when you made yourself part of the dial out group, did you reboot the machine? because this needs to be done when adding yourself to the dialout group. de Tom K8WDX

Tom K8WDX

ok2cqr
ok2cqr's picture
Glad you got it working, I

There is no need to reboot machine, only logout and login again ...