newbie problem with serial port

6 posts / 0 new
Last post
nm3s
newbie problem with serial port

Now I've got the program running nicely.  However, it won't control my radio.  I believe the problem is something to do with serial port permisisons, and I've been working on that for hours.  However, I'm still not there.  The port the radio is on is ttyUSB0.  And the port seems to work *IF* I logon with sudo.  I can run "sudo gtkterm" and the port opens fine, and I see input if I play with the radio.  But if I run gtkterm without sudo, it says something like "port ttyUSB0 permission denied."
 
So I found references to the dialout group and the need to be a member of it.  So I added myself, I thought, to the dialout group, but the port still won't open without sudo.  Is the problem a distinction between the usernames "$fred" and "fred"?
 
fred@Fred ~ $ groups $fred
fred adm cdrom sudo dip plugdev lpadmin sambashare
and then:
fred@Fred ~ $ groups fred
fred : fred dialout
I'm sure I'm doing something wrong here but I'm lost.  Can anyone help?

ok2cqr
ok2cqr's picture
Re: newbie problem with serial port

Hi Fred,
 
did you logged out after adding to dialout group? Please run cqrlog from console with --debug=1 parameter, there will be more information why CQRLOG can't open the serial port.
 
73 Petr, OK2CQR
 

nm3s
Port *seems* to be working - still no joy with rig control

Petr, it seems that the port is now working (I rebooted the machine -- if that didn't log me off, I don't know what would :-) ).
I still can't get the rig control to work at all.  I've included all the debug data below as well as a screenshot of the program.  I clicked on several options on the control, but the radio ignored everything.  Any ideas how I could get this working?
 
Here's the debug data from the terminal
**** 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
**************************MySQL version: 5.5**************************MySQL version assigned:  5.500000000000000000E+00**********************************
Loaded 86664 LoTW usersLoaded 93104 eQSL usersLoaded 46549 SCP callsIniFile:/home/fred/.config/cqrlog/cqrlog.cfgLocalIniFile:/home/fred/.config/cqrlog/local.cfg*User home directory:    /home/fred/Program home directory: /home/fred/.config/cqrlog/Data directory:         /home/fred/.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*Trying to connect to database150830 15:59:24 [Note] /usr/sbin/mysqld (mysqld 5.5.44-MariaDB-1ubuntu0.14.04.1) starting as process 13346 ...Server connect failed.Trying:1Trying to connect to databaseServer connect failed.Trying:2select * from tables where table_schema = 'cqrlog_common'SELECT log_nr,log_name FROM cqrlog_common.log_list order by log_nruse cqrlog001use cqrlog001use cqrlog001use cqrlog001SELECT * FROM cqrlog_configIniFile:/home/fred/.config/cqrlog/1cqrlog.cfgLocalIniFile:/home/fred/.config/cqrlog/1local.cfgLocalSections:select * from db_versionselect * from cqrlog_common.db_versionSELECT * FROM cqrlog_common.dxcc_ref ORDER BY ADIFSELECT * FROM cqrlog_common.dxcc_ref ORDER BY ADIFSettings:-----------------------------------------------------RigCtldPath:/usr/bin/rigctldRigCtldArgs:-m 363 -r /dev/ttyUSB0 -t 4532  RunRigCtld: TRUERigDevice:  /dev/ttyUSB0RigCtldPort:4532RigCtldHost:localhostRigPoll:    500RigSendCWR: FALSERigId:      363Starting RigCtld .../usr/bin/rigctld -m 363 -r /dev/ttyUSB0 -t 4532  rigctld started!Connected to localhost:4532Settings:-----------------------------------------------------RotCtldPath:/usr/bin/rotctldRotCtldArgs:RunRotCtld: FALSERotDevice:  RotCtldPort:4533RotCtldHost:localhostRotPoll:    500RotId:      1rotctld started!Connected to localhost:4533CW initSELECT * FROM profiles WHERE visible > 0 ORDER BY nrSELECT * FROM profiles WHERE visible > 0 ORDER BY nr11a23456Settings:-----------------------------------------------------RigCtldPath:/usr/bin/rigctldRigCtldArgs:-m 363 -r /dev/ttyUSB0 -t 4532  RunRigCtld: TRUERigDevice:  /dev/ttyUSB0RigCtldPort:4532RigCtldHost:localhostRigPoll:    500RigSendCWR: FALSERigId:      363Starting RigCtld .../usr/bin/rigctld -m 363 -r /dev/ttyUSB0 -t 4532  rigctld started!Connected to localhost:4532123456Settings:-----------------------------------------------------RotCtldPath:/usr/bin/rotctldRotCtldArgs:RunRotCtld: FALSERotDevice:  RotCtldPort:4533RotCtldHost:localhostRotPoll:    500RotId:      1rotctld started!Connected to localhost:4533Sending: M AM 3000Sending: M FM 2500Sending: M LSB 1800Sending: M LSB 1800Sending: M LSB 1800Sending: M LSB 1800Sending: M LSB 1800Sending: M FM 2500Sending: M LSB 180011a23456Settings:-----------------------------------------------------RigCtldPath:/usr/bin/rigctldRigCtldArgs:-m 363 -r /dev/ttyUSB0 -t 4532  RunRigCtld: TRUERigDevice:  /dev/ttyUSB0RigCtldPort:4532RigCtldHost:localhostRigPoll:    500RigSendCWR: FALSERigId:      363Starting RigCtld .../usr/bin/rigctld -m 363 -r /dev/ttyUSB0 -t 4532  rigctld started!Connected to localhost:4532123456Settings:-----------------------------------------------------RotCtldPath:/usr/bin/rotctldRotCtldArgs:RunRotCtld: FALSERotDevice:  RotCtldPort:4533RotCtldHost:localhostRotPoll:    500RotId:      1rotctld started!Connected to localhost:4533SELECT * FROM profiles WHERE visible > 0 ORDER BY nrSELECT * FROM profiles WHERE visible > 0 ORDER BY nrSELECT * FROM profiles WHERE visible > 0 ORDER BY nrDBPing - select * from cqrlog001.db_versionDBPing - select * from cqrlog001.db_versionDBPing - select * from cqrlog001.db_versionDBPing - select * from cqrlog001.db_versionSELECT * FROM profiles WHERE visible > 0 ORDER BY nrselect count(*) from cqrlog001.cqrlog_configSaving ini file to databaseOnCloseQuery - NewQSO11a23456
Closing Details windowselect count(*) from cqrlog001.cqrlog_configSaving ini file to databaseselect count(*) from cqrlog001.cqrlog_configSaving ini file to database123456Closing DXCluster windowClosing TRXControl windowClosing GrayLine windowClosing dDXCCDeleting config file: 1cqrlog.cfgDeleting config file: cqrlog.cfgClosing dData/home/fred/.config/cqrlog/database/Fred.pidCommand: kill 13346(cqrlog:13342): GLib-CRITICAL **: Source ID 11 was not found when attempting to remove it(cqrlog:13342): GLib-CRITICAL **: Source ID 10 was not found when attempting to remove it(cqrlog:13342): GLib-CRITICAL **: Source ID 43 was not found when attempting to remove it(cqrlog:13342): GLib-CRITICAL **: Source ID 42 was not found when attempting to remove it(cqrlog:13342): GLib-CRITICAL **: Source ID 48 was not found when attempting to remove it(cqrlog:13342): GLib-CRITICAL **: Source ID 47 was not found when attempting to remove itClosing ini file ...

 

ok2cqr
ok2cqr's picture
Re: Port *seems* to be working - still no joy with rig control

Thank you for the debug output. This part is interesting:
 
/usr/bin/rigctld -m 363 -r /dev/ttyUSB0 -t 4532
 
It seems you didn't set the serial port speed. HamLib used default value and it doesn't work.

nm3s
Fixed!

Thank you so very much for sorting that out for me!  I read a reply to someone else about leaving things at default which worked for him that I thought I should do the same.  But after reading your post, I changed (only) the port speed, and it worked perfectly!
 
Again, thanks!
 
73's

dd8mok
TRX Control doesnt work

Hello,

I try to control my Kenwood TS480 via an USB to RS232 Converter, I think the Converter works, but the TRX don´t connect to CQRLOG.

Has anyone an idea ?

knoppix@Microknoppix:~$ dmesg | grep tty

[ 2170.957446] usb 4-1: pl2303 converter now attached to ttyUSB0

Debug Message CQRLOG:

Starting RigCtld ...
/usr/bin/rigctld -m 228 -r /dev/ttyUSB0 -t 4532 -s 9600 --set-conf=data_bits=8,stop_bits=1,parity=None
Config parameter error: Feature not available
rigctld started!
Connected to localhost:4532

Thanks for your help !

73 de marCus, dd8mok