communication rigctl/cqrlog

18 posts / 0 new
Last post
F4EEI
communication rigctl/cqrlog

Hello,
I have a problem. RIGCTL listen TRX of information but they do not send the data to CQRLOG.

RigCtldPath:/usr/bin/rigctl
RigCtldArgs:-m 237 -r /dev/ttyUSB0 -t 4532 -s 115200
RunRigCtld: FALSE
RigDevice: /dev/ttyUSB0
RigCtldPort:4532
RigCtldHost:localhost
RigPoll: 300
RigSendCWR: FALSE
RigId: 237

rigctld started!
Connected to localhost:4532
1
2
3
4
5
6

73 Julien

ok2cqr
ok2cqr's picture
Re: communication rigctl/cqrlog

Hi Julien,

you've entered to preferences /usr/bin/rigctl but it has to be /usr/bin/rigctld - the d on the end is important. It means daemon. Rigctld is running on background and talks with CQRLOG. Rigctl doesn't do that.

73 Petr, OK2CQR

SQ7OVV
SQ7OVV's picture
Doesn't comunicate with the rig

Another problem....
I've connected my Elecraft K-2 to the computer and CQRlog doesn't work with.
Parameters in config:
Path=> /usr/bin/rigctld
Radio one => Elecraft
Host => localhost
Rig ID model=> 221
Device=> /dev/ttyUSB1
Poll rate=> 500
Port number=> 4532
Rest set as default

When I use console and write => rigctld -m 221 -r /dev/ttyUSB1 -t 4532
something is going on on the radio display, but log still works like without connection.

My Linux is Mint Mate 17.3 Rosa

Radio works with some logs in Windows, so I think radio is OK.

Best regards
Kuba

ok2cqr
ok2cqr's picture
Re: Doesn't comunicate with the rig

Hi Kuba,

please run cqrlog from console with --debug=1 parameter and paste here related part of rigctld messages. Thank you!

73 Petr, OK2CQR

SQ7OVV
SQ7OVV's picture
Thanks for answer, Petr

Thanks for answer, Petr
after I've opend in terminal window, I found text below:

**** DEBUG LEVEL 1 ****

Loading libssl: /usr/lib/i386-linux-gnu/libssl.so
Loading libcrypto: /usr/lib/i386-linux-gnu/libcrypto.so
Loading libmysqlclient: /usr/lib/i386-linux-gnu/libmysqlclient.so
**************************
MySQL version: 5.5
**************************
**********************************
MySQL version assigned: 5.500000000000000000E+00
**********************************
Loaded 90352 LoTW users
Loaded 96131 eQSL users
Loaded 46368 SCP calls
IniFile:/home/sq7ovv/.config/cqrlog/cqrlog.cfg
LocalIniFile:/home/sq7ovv/.config/cqrlog/local.cfg
/home/sq7ovv/.config/cqrlog/database/KOMP.pid
Command:
kill 2840
*
User home directory: /home/sq7ovv/
Program home directory: /home/sq7ovv/.config/cqrlog/
Data directory: /home/sq7ovv/.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 database
160127 20:58:27 [Note] /usr/sbin/mysqld (mysqld 5.5.46-MariaDB-1ubuntu0.14.04.2) starting as process 2965 ...
Server connect failed.
Trying:1
Trying to connect to database
Server connect failed.
Trying:2
select * from tables where table_schema = 'cqrlog_common'

SELECT log_nr,log_name FROM cqrlog_common.log_list order by log_nr

Than I've klicked my callsign in the database window of CQRlog.
That is what apeared in the terminal window:
use cqrlog002

use cqrlog002

use cqrlog002

use cqrlog002

SELECT * FROM cqrlog_config

IniFile:/home/sq7ovv/.config/cqrlog/2cqrlog.cfg
LocalIniFile:/home/sq7ovv/.config/cqrlog/2local.cfg
LocalSections:
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 221 -r /dev/ttyUSB1 -t 4532
RunRigCtld: FALSE
RigDevice: /dev/ttyUSB1
RigCtldPort:4532
RigCtldHost:localhost
RigPoll: 500
RigSendCWR: FALSE
RigId: 221

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
select * from view_cqrlog_main_by_qsodate LIMIT 500 OFFSET 0

LoadForm: frmMain
SELECT COUNT(*) FROM cqrlog_main

select count(*) from (select distinct adif from cqrlog_main where adif <> 0 and (adif not in (2,8,19,23,25,26,28,30,39,42,44,55,57,58,59,67,68,81,85,93,101,102,113,115,119,127,128,139,151,154,155,164,178,183,184,186,193,193,194,196,198,200,208,210,218,220,226,228,229,231,243,244,255,258,261,264,267,268,271,307,488,493))) as foo

select count(*) from (select distinct dxcc_id.dxcc_ref from dxcc_id left join cqrlog_main on dxcc_id.adif = cqrlog_main.adif WHERE cqrlog_main.adif<>0 and (dxcc_ref NOT LIKE '%*') AND (qsl_r = 'Q')) as foo

CW init
SELECT * FROM profiles WHERE visible > 0 ORDER BY nr

SELECT * FROM profiles WHERE visible > 0 ORDER BY nr

Tha is all.....

Best regards

Kuba SQ7OVV

ok2cqr
ok2cqr's picture
Re: Thanks for answer, Petr

Kuba,

problem is here:

RunRigCtld: FALSE

Go to Preferences -> TRX control and check "Run rigctld after program starts" option.

73 Petr, OK2CQR

SQ7OVV
SQ7OVV's picture
Done,

Done,
now is:
RunRigCtld: TRUE

Still doesn't work :(

73 de Kuba

ok2cqr
ok2cqr's picture
Re: Done,

Any other message from rigctld? Could you paste here rigctld related part of the output, please?

SQ7OVV
SQ7OVV's picture
Hallo Peter,

Hallo Peter,
Section rigctld looks like this:
RigCtldPath:/usr/bin/rigctld
RigCtldArgs:-m 221 -r /dev/ttyUSB0 -t 4532
RunRigCtld: TRUE
RigDevice: /dev/ttyUSB0
RigCtldPort:4532
RigCtldHost:localhost
RigPoll: 500
RigSendCWR: FALSE
RigId: 221

Starting RigCtld ...
/usr/bin/rigctld -m 221 -r /dev/ttyUSB0 -t 4532
rigctld started!
Connected to localhost:4532

best regards
Kuba SQ7OVV

ok2cqr
ok2cqr's picture
Re: Hallo Peter,

Hi Kuba,

you didn't set serial port speed. Please select the serial speed from the dropdown list and other serial parametes leave as default.

73 Petr

SQ7OVV
SQ7OVV's picture
Still nothing :(

Still nothing :(
I've tryied all kind of parameters.
In the manual of my K2 parameters are:
4800 baud, 8 data bits, no parity, 2 stop bits, hanshaking: None

Nest regards
Kuba

File: 

pa1mar
pa1mar's picture
Bandmap

In the bandmap you can not see split stations how split they work.
Perhaps can we get it in the future ?
73's
Marcel
Pa1mar

ok2cqr
ok2cqr's picture
Re: Bandmap

Hi Marcel,

it's already there http://imgur.com/3mtV4GV

73 Petr, OK2CQR

ok2cqr
ok2cqr's picture
Re: Bandmap

Trying to upload the picture directly to the forum...

File: 

PA1SBM
PA1SBM's picture
Kuba,

Kuba,

Did you make your user account in linux member of the dailout group ?
Also , try leaving all settings to default except for speed.

let us know if it works.

Alex

SQ7OVV
SQ7OVV's picture
yes, I am in the dilaup group

yes, I am in the dilaup group.
Making all TX properties to default exept port speed made nothing also....

Any other ideas?

Kuba

sq7iqi
I try to help to Kuba but

I try to help to Kuba but with no result.

When we start rigctld from terminal everything is ok, also with TLF contest log.

But when we try CQRlog then we hear that K2 change filters and .... nothing communication stuck.

I try GRIG in debug mode and get something like that :

2016/02/16 21:28:21;;HAMLIB;;4;;kenwood_transaction called
2016/02/16 21:28:21;;HAMLIB;;5;;kenwood_transaction: cmdstr = RA
2016/02/16 21:28:21;;HAMLIB;;5;;write_block(): TX 3 bytes
2016/02/16 21:28:21;;HAMLIB;;5;;0000 52 41 3b RA;
2016/02/16 21:28:21;;HAMLIB;;5;;read_string(): RX 5 characters
2016/02/16 21:28:21;;HAMLIB;;5;;0000 52 41 30 31 3b RA01;
2016/02/16 21:28:21;;HAMLIB;;2;;kenwood_safe_transaction: wrong answer; len for cmd RA: expected = 6, got 4

in this moment communication stucked and repeat same command.

Debug from CQRLOG looks like below :

Starting RigCtld ...
/usr/bin/rigctld -m 221 -r /dev/ttyUSB0 -t 4534 -s 4800
rigctld started!
Connected to localhost:4534

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

CWint connect to hamlib FAILED: Error on connect: connection refused

But when before running CQRLOG we start rigctld manually in termina :

$/usr/bin/rigctld -m 221 -r /dev/ttyUSB0 -t 4534 -s 4800

Then debug looks like this :

RigSendCWR: FALSE
RigId: 221

Starting RigCtld ...
/usr/bin/rigctld -m 221 -r /dev/ttyUSB0 -t 4534 -s 4800
rigctld started!
Connected to localhost:4534

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

CWint connected to hamlib
CW speed changed to:30
rig_open: error = Protocol error
Whole MSG:|3552040
|
Whole MSG:|LSB
2200
|
Whole MSG:|VFOA
|
Whole MSG:|RPRT 0
|

And communication runs normally, CQRLOG indicate frequency and keying CW via hamlib.

Any suggestions ??

ok2cqr
ok2cqr's picture
Re: I try to help to Kuba but

Could you try recent betaversion, please? https://www.cqrlog.com/node/1554

I made a few changes around rig control. Run CQRLOG in console WITHOUT debug parameter, go to preferences -> TRX control and check "Show comminication with TRX in console" option. Maybe there will be more information.