rig pathname error

12 posts / 0 new
Last post
N8NM
rig pathname error

Hi,

I'm not sure if this is a bug or something on my end, but I'm having a hard time getting the rig control working in CQRLOG. I can control the rigs using the cli command (rigctl -m 329 -r /dev/ttyS0 -s 9600), but the TRX window will not update.

If I launch CQRLOG from a terminal, I get the following message on start-up and when I refresh TRX:

An error has occured setting the rig pathname

I think I have all the configuration settings OK (ID: 329 for IC-765, 9600 N81).

Running Ubuntu 9.04, CQRLOG 0.8.2, and Hamlib V1.2.8.

Thanks for your help and please let me know if I can provide any additional info that might help resolve my problem.

Thanks and 73!

Steve N8NM

ok2cqr
ok2cqr's picture
Re: rig pathname error

Hi Steve,

please enable Debug level, run cqrlog from console and paste here what it writes down.

You can enable Debug level by editing cqrlog.cfg file which is located in log_data directory. Open it with text editor, find [Program section], change Degug=0 to Debug=1, save the file and run cqrlog.

Thank you.

73 Petr, OK2CQR

N8NM
Re: rig pathname error

I'll do that when I get home tonight. Thanks Petr!

73-Steve N8NM

ok2cqr
ok2cqr's picture
Re: rig pathname error

Hi Steve,

I'm sorry, my mistake.
I have a script which creates files for release. I've replace default cqrlog.cfg and I've forgetten to remove path to my radio port. So if you don't have /dev/ttyUSB0, cqrlog won't start.
Solution is easy.

Open cqrlog.cfg file, find [trx] section and delete this line:

port1=/dev/ttyUSB0

save the cfg file and run cqrlog again. It should work.

I'm sorry for this.

73 Petr, OK2CQR

N8NM
Re: rig pathname error

Ah ha!

I'll check it out tonight, I'll bet that fixes it!

No need to apologize; I'm having fun!

73, Steve N8NM

N8NM
rig pathname error

That took care of that, and I can now read the rig, but the TRX crashes if I try to write to it.

Here's the output of debug when opening the program:

steve@AMD:~/cqrlog$ ./cqrlog
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF
Starting CQRLOG ...
RootDirectory = /home/steve/cqrlog/
RootDirectory = /home/steve/cqrlog/
RootDirectory = /home/steve/cqrlog/
ExternalFileAccess = Restrict /home/steve/cqrlog/log_data
SELECT * FROM version

SELECT * FROM cqrlog_main ORDER BY qsodate,time_on
In inicializerig
Model:329
Port:/dev/ttyS1
Baudrate:9600
Databits:8
StopBits:2
Handshake:
Parity:None
DTR:ON
RTS:ON
Poll:200
Reloading rig configuration
SELECT * FROM profiles WHERE visible > 0 ORDER BY nr

SELECT * FROM profiles WHERE nr = 0

At this point, it has read the radio, and everything looks happy. Now, if I change frequency or mode, either using the TRX window or by selecting a "spot", I get the following message:

This is an invalid mode:RTTY
Removing Rig control thread from memory

The mode will be whatever is selected, in this case it is RTTY, but it could as well be CW, USB, LSB, etc.

The PC is an AMD 64, running the 32 bit installation of Ubuntu (9.04), could that be the problem? I'll post a copy of my .cfg file in another message.

N8NM
My cqrlog.cfg file

[NewQSO]
Height=666
Width=818
Top=206
Left=300
RST_S=599
RST_R=599
PWR=100 W
FREQ=7.025
Mode=CW
CloseAfterSave=1
OpenAfterRun=0
UseSpaceBar=1
RefreshAfterSave=0
SkipeModeFreq=1
SkipModeFreq=1
ShowDetails=0
AutoSearch=0
ShowRecentQSOs=0
RecQSOsNum=5
IgnoreQRZ=0
MvToRem=1

[Main]
Height=293
Width=817
Max=0
Toolbar=1
Buttons=1
Top=199
Left=43

[frmMain]
dbgrdMain QSODATE Width=108
dbgrdMain QSODATE Index=0
dbgrdMain TIME_ON Width=63
dbgrdMain TIME_ON Index=1
dbgrdMain TIME_OFF Width=72
dbgrdMain TIME_OFF Index=2
dbgrdMain CALL Width=107
dbgrdMain CALL Index=3
dbgrdMain FREQ Width=63
dbgrdMain FREQ Index=4
dbgrdMain MODE Width=72
dbgrdMain MODE Index=5
dbgrdMain RST_S Width=55
dbgrdMain RST_S Index=6
dbgrdMain RST_R Width=54
dbgrdMain RST_R Index=7
dbgrdMain NAME Width=134
dbgrdMain NAME Index=8
dbgrdMain QTH Width=222
dbgrdMain QTH Index=9
dbgrdMain QSL_S Width=48
dbgrdMain QSL_S Index=10
dbgrdMain QSL_R Width=47
dbgrdMain QSL_R Index=11
dbgrdMain QSL_VIA Width=65
dbgrdMain QSL_VIA Index=12
dbgrdMain IOTA Width=54
dbgrdMain IOTA Index=13
dbgrdMain PWR Width=41
dbgrdMain PWR Index=14
dbgrdMain ITU Width=90
dbgrdMain ITU Index=15
dbgrdMain WAZ Width=90
dbgrdMain WAZ Index=16
dbgrdMain LOC Width=54
dbgrdMain LOC Index=17
dbgrdMain MY_LOC Width=57
dbgrdMain MY_LOC Index=18
dbgrdMain REMARKS Width=1800
dbgrdMain REMARKS Index=21
dbgrdMain DXCC_REF Width=76
dbgrdMain DXCC_REF Index=22
dbgrdMain COUNTY Width=270
dbgrdMain COUNTY Index=19
dbgrdMain AWARD Width=450
dbgrdMain AWARD Index=20
dbgrdMain BAND Width=54
dbgrdMain BAND Index=23
dbgrdMain QSO_DXCC Width=77
dbgrdMain QSO_DXCC Index=24
dbgrdMain ID_CQRLOG Width=90
dbgrdMain ID_CQRLOG Index=25
dbgrdMain PROFILE Width=90
dbgrdMain PROFILE Index=26
dbgrdMain IDCALL Width=180
dbgrdMain IDCALL Index=27

[Program]
Debug=1
UseInternet=0
sort=0
offset=-4
ShowGrayline=0
ShowTRX=1
Options=5
ShowAll=1
ShowSince=0
Year=2007
Fixed=1
BandStatMHz=1
ShowDxcluster=1
GraylineOffset=-4
WebBrowser=firefox
ShowBandMap=1
CheckDXCCTabs=1
ShowDeleted=0
SunUTC=0
CheckQSLTabs=1
SunOffset=-4

[Debug]
Height=636
Width=1283
Top=25
Left=0
SQL=select * from cqrlog_main

[Columns]
Date=1
time_on=1
time_off=0
CallSign=1
Mode=1
Freq=1
RST_S=1
RST_R=1
Name=0
QTH=0
QSL_S=1
QSL_R=1
QSL_VIA=0
Locator=0
MyLoc=0
IOTA=0
Diplom=0
Power=1
DXCC=1
Remarks=0
WAZ=0
ITU=0
Award=0
County=0
State=1
LoTWQSLSDate=0
LoTWQSLRDate=0
LoTWQSLS=0
LOTWQSLR=0
Cont=0

[Bands]
137kHz=0
160m=1
80m=1
40m=1
30m=1
20m=1
17m=1
15m=1
12m=1
10m=1
6m=1
2m=1
70cm=0
23cm=0
13cm=0
8cm=0
5cm=0
3cm=0
1cm=0
47GHz=0
76GHz=0
60m=0
4m=0
1.25m=0

[frmNewQSO]
dbgrdQSOBefore QSODATE Width=90
dbgrdQSOBefore QSODATE Index=0
dbgrdQSOBefore TIME_ON Width=63
dbgrdQSOBefore TIME_ON Index=1
dbgrdQSOBefore TIME_OFF Width=72
dbgrdQSOBefore TIME_OFF Index=2
dbgrdQSOBefore CALL Width=95
dbgrdQSOBefore CALL Index=3
dbgrdQSOBefore FREQ Width=71
dbgrdQSOBefore FREQ Index=4
dbgrdQSOBefore MODE Width=72
dbgrdQSOBefore MODE Index=5
dbgrdQSOBefore RST_S Width=92
dbgrdQSOBefore RST_S Index=6
dbgrdQSOBefore RST_R Width=80
dbgrdQSOBefore RST_R Index=7
dbgrdQSOBefore NAME Width=73
dbgrdQSOBefore NAME Index=8
dbgrdQSOBefore QTH Width=147
dbgrdQSOBefore QTH Index=9
dbgrdQSOBefore QSL_S Width=48
dbgrdQSOBefore QSL_S Index=10
dbgrdQSOBefore QSL_R Width=47
dbgrdQSOBefore QSL_R Index=11
dbgrdQSOBefore QSL_VIA Width=270
dbgrdQSOBefore QSL_VIA Index=12
dbgrdQSOBefore IOTA Width=54
dbgrdQSOBefore IOTA Index=13
dbgrdQSOBefore PWR Width=90
dbgrdQSOBefore PWR Index=14
dbgrdQSOBefore ITU Width=90
dbgrdQSOBefore ITU Index=15
dbgrdQSOBefore WAZ Width=90
dbgrdQSOBefore WAZ Index=16
dbgrdQSOBefore LOC Width=54
dbgrdQSOBefore LOC Index=17
dbgrdQSOBefore MY_LOC Width=57
dbgrdQSOBefore MY_LOC Index=18
dbgrdQSOBefore COUNTY Width=270
dbgrdQSOBefore COUNTY Index=19
dbgrdQSOBefore AWARD Width=74
dbgrdQSOBefore AWARD Index=20
dbgrdQSOBefore REMARKS Width=1800
dbgrdQSOBefore REMARKS Index=21
dbgrdQSOBefore DXCC_REF Width=72
dbgrdQSOBefore DXCC_REF Index=22
dbgrdQSOBefore BAND Width=54
dbgrdQSOBefore BAND Index=23
dbgrdQSOBefore QSO_DXCC Width=77
dbgrdQSOBefore QSO_DXCC Index=24
dbgrdQSOBefore ID_CQRLOG Width=90
dbgrdQSOBefore ID_CQRLOG Index=25
dbgrdQSOBefore PROFILE Width=90
dbgrdQSOBefore PROFILE Index=26
dbgrdQSOBefore IDCALL Width=180
dbgrdQSOBefore IDCALL Index=27

[DXCCStat]
Height=788
Width=1194
Top=31
Left=0

[TRX]
Speed1=9600
DataBits1=8
StopBits1=1
Handshake1=0
Parity1=0
dtr1=1
rts1=1
Speed2=9600
DataBits2=8
StopBits2=2
Handshake2=0
Parity2=0
dtr2=0
rts2=0
device1=/dev/ttyS1
model1=329
poll1=200
Desc1=Radio 1
poll2=200
Desc2=Radio 2
Top=42
Left=347

[TR]
poll=1000
poll1=1000

[Band]
CW=250
SSB=1800
RTTY=500
AM=3000
FM=2500

[frmSelectDXCC]
dbgrdValid PREF Width=135
dbgrdValid PREF Index=0
dbgrdValid NAME Width=450
dbgrdValid NAME Index=1
dbgrdValid CONT Width=54
dbgrdValid CONT Index=2
dbgrdValid UTC Width=54
dbgrdValid UTC Index=3
dbgrdValid LAT Width=90
dbgrdValid LAT Index=4
dbgrdValid LONGIT Width=90
dbgrdValid LONGIT Index=5
dbgrdValid ITU Width=180
dbgrdValid ITU Index=6
dbgrdValid WAZ Width=180
dbgrdValid WAZ Index=7
dbgrdValid ADIF Width=90
dbgrdValid ADIF Index=8
dbgrdValid DELETED Width=90
dbgrdValid DELETED Index=9
dbgrdValid ID_REF_DXCC Width=99
dbgrdValid ID_REF_DXCC Index=10
dbgrdDeleted PREF Width=135
dbgrdDeleted PREF Index=0
dbgrdDeleted NAME Width=450
dbgrdDeleted NAME Index=1
dbgrdDeleted CONT Width=54
dbgrdDeleted CONT Index=2
dbgrdDeleted UTC Width=54
dbgrdDeleted UTC Index=3
dbgrdDeleted LAT Width=90
dbgrdDeleted LAT Index=4
dbgrdDeleted LONGIT Width=90
dbgrdDeleted LONGIT Index=5
dbgrdDeleted ITU Width=180
dbgrdDeleted ITU Index=6
dbgrdDeleted WAZ Width=180
dbgrdDeleted WAZ Index=7
dbgrdDeleted ADIF Width=90
dbgrdDeleted ADIF Index=8
dbgrdDeleted DELETED Width=90
dbgrdDeleted DELETED Index=9
dbgrdDeleted ID_REF_DXCC Width=99
dbgrdDeleted ID_REF_DXCC Index=10

[Export]
Date=1
time_on=1
time_off=1
CallSign=1
Mode=1
Freq=1
RST_S=1
RST_R=1
Name=1
QTH=1
QSL_S=1
QSL_R=1
QSL_VIA=1
Locator=1
MyLoc=1
IOTA=1
Diplom=1
Power=1
DXCC=1
Remarks=1
WAZ=1
ITU=1
Note=1
Award=1
County=1
Profile=1
WDate=50
Wtime_on=30
Wtime_off=30
WCallSign=50
WMode=50
WFreq=50
WRST_S=50
WRST_R=30
WName=50
WQTH=80
WQSL_S=10
WQSL_R=10
WQSL_VIA=20
WLocator=30
WMyLoc=40
WIOTA=50
WAward=40
WCounty=40
WPower=40
WDXCC=50
WRemarks=100
WWAZ=20
WITU=50
WNote=40
State=0
LQSLS=0
LQSLSDate=0
LQSLR=0
LQSLRDate=0
Cont=0
WState=40
WLQSLS=50
WLQSLSDate=50
WLQSLR=50
WLQSLRDate=50

[DXCluster]
NewCountry=255
NewBand=16711680
NewMode=32896
NeedQSL=8388736
Show137=1
Show160=1
Show80=1
Show40=1
Show30=1
Show20=1
Show17=1
Show15=1
Show12=1
Show10=1
Show6=0
Show2=0
Show70=0
Show1300=0
Show2450=0
Show3475=0
Show5850=0
Show10500=0
Show24250=0
Show47000=0
Show84000=0
CW=1
SSB=1
Show60=1
Show4=0
Show220=0
ConAfterRun=0
Height=219
Width=564
Top=39
Left=868
Tab=1
Desc=N8NM
Addr=192.168.1.105
Port=7300
User=N8NM-6

[DXClusterList]
Height=389
Width=513

[QSLMgr]
Height=636
Width=728
Top=25
Left=0
Max=0

[frmQSLMgr]
dbgrdQSLMgr CALL Width=117
dbgrdQSLMgr CALL Index=0
dbgrdQSLMgr QSLINFO Width=900
dbgrdQSLMgr QSLINFO Index=1

[Grayline]
Height=248
Width=419
Top=259
Left=572

[QSODetails]
Height=210
Width=266
Top=31
Left=0

[Pref]
Top=296
Left=37

[Help]
Height=721
Width=806
Top=25
Left=0
Max=0

[Profiles]
Use=0
Selected=0
Locator=1
QTH=1
RIG=0

[Fonts]
UseDefault=1
Buttons=Sans 10
Edits=Sans 10
Grids=Monospace 8
QGrids=Sans 10
eSize=10
bSize=10
gSize=8
qSize=10

[Zones]
NewWAZ=0
NewBandWAZ=0
QSLWAZ=0
NewITU=0
NewBandITU=0
QSLITU=0
ShowWAZInfo=1
ShowITUInfo=1

[IOTA]
NewIOTA=0
QSLIOTA=0
ShowIOTAInfo=1

[BandMap]
BandFont=Monospace
FontSize=8
NewQSOColor=0
Save=0
FirstAging=5
SecondAging=8
Disep=12
ClusterColor=0
OnlyActiveMode=0
DeleteAfterQSO=1
UseDXCColors=1
wDXCC=*
wWAZ=*
wITU=*
wEU=1
wAS=1
wNA=1
wSA=1
wAF=1
wOC=1
wAN=1
wIOTA=1
Height=307
Width=236
Top=31
Left=0

[BnadMap]
in_kHz=1
OnlyActiveBand=1

[xplanet]
path=/usr/bin/xplanet
height=100
width=100
top=10
left=10
run=0
close=0
refresh=5
LastSpots=20
project=0
ShowFrom=0
color=16777215
UseDefColor=1

[ZipCode]
FirstPos=0
SecondPos=0
ThirdPos=0

[LoTW]
IncLoTWDXCC=0
NewQSOLoTW=0

[CW]
Type=0
PotSpeed=0
wk_speed=30
cw_address=localhost
cw_port=6789
cw_speed=30
wk_min=5
wk_max=60

[fldigi]
freq=1
deffreq=3.600
mode=1
defmode=RTTY
defrst=599
rst=0
interval=2
run=0
path=/usr/bin/fldigi

[Backup]
Enable=0
Compress=1
Path=/home/steve/cqrlog/log_data/

[Station]
Call=N8NM
Name=Steve Murphy
QTH=Waterford, MI USA
LOC=EN82HP

[Clubs]
First=WAS;List of US states

[WAZITUstat]
Height=587
Width=668
Top=31
Left=0
mode3=0
width3=140

[DefFreq]
160cw=1830
160ssb=1845
160rtty=1845
160am=1845
160fm=1845
80cw=3525
80ssb=3750
80rtty=3590
80am=3750
80fm=3750
40cw=7015
40ssb=7080
40rtty=7040
40am=7080
40fm=7080
30cw=10110
30ssb=10130
30rtty=10130
30am=10130
30fm=10130
20cw=14025
20ssb=14195
20rtty=14090
20am=14195
20fm=14195
17cw=18080
17ssb=18140
17rtty=18110
17am=18140
17fm=18140
15cw=21025
15ssb=21255
15rtty=21090
15am=21255
15fm=21255
12cw=24895
12ssb=24925
12rtty=24910
12am=24925
12fm=24925
10cw=28025
10ssb=28550
10rtty=28090
10am=28550
10fm=28550
6cw=50090
6ssb=51300
6rtty=51300
6am=51300
6fm=51300
2cw=144050
2ssb=144300
2rtty=144300
2am=145300
2fm=145300
70cw=3525
70ssb=3525
70rtty=3525
70am=3525
70fm=3525

There are some left-over lines in my TRX from a second IC-765 that I've disabled in "Preferences". I get the same results using either rig/port, so I just disabled the 2nd rig for the sake of simplicity.

Thanks for the help!

73 de Steve N8NM

N8NM
More info

Hi again, Petr!

I just went through and deleted everything, and started from scratch with V0.6.0, and rig control works. So, I removed that and did a fresh V0.7.0 install, and the rig control is not working (same message about invalid mode). So, I removed V07.0 and went back to V0.6.0, and rig control now works again.

Hope this helps!

73 - Steve N8NM

ok1rr
ok1rr's picture
Probably a hamlib issue

Hi Steve, I am pretty sure that this is a hamlib issue. I recommend a CVS version installed from the sources which can be found here:

http://n0nb.users.sourceforge.net/

You can also see my comments on hamlib and Ubuntu here.

N8NM
Updated hamlib

Hi,

I removed my "old" hamlib and installed the latest version from CVS, and verified the installed version (rigctl -V), but the results are still the same with CQRlog versions .7 and higher (message about invalid mode and rig control thread stops when writing to rig).

Version .6 and FLDigi run OK as do rigctl cli functions.

Your comments about Ubuntu and Debian are spot-on and well taken. If I have the time, I may install another distro on the same machine and see what happens. More than likely it would be Mandriva, since I'm already familiar with it. I'll keep you posted!

73

Steve N8NM

N8NM
Problem Solved!

I did some more poking around with the hamlib CLI and found the problem: I had never changed the filter settings in CQRlog (Preferences) from their defaults, which are incompatible with my old radios. So, when CQRlog told hamlib to set these filters, hamlib said "I can't do that" and the thread crashed. Setting all the filters in CQRlog to 0, or 2200 for CW, RTTY, USB and LSB and 6000 for AM and 15000 for FM fixed the problem.

Supposedly, hamlib can set the narrow filter on CW and RTTY, but it doesn't seem to work from the CLI.

So, if anyone is having trouble with TRX control crashing on older Icoms, try setting all of the filters in CQRlog to zero and see what happens.

73-
Steve N8NM

ki4lui
Seeing the same thing.

I am running centos 5.3, cqrlog 0.83, hamlib 1.2.10svn

I upgraded from 1.2.9 (I would get a "rig 250 error")

after upgrade I started getting rig path issues.

Shame is that I had it working and can't figure out what went wrong.