RPI3 and rig control

4 posts / 0 new
Last post
nh6hi
RPI3 and rig control

Wondering if someone could look at this for me and see any problems.

Raspberry pi3
Rig is TS570D 204
USB serial interface set /dev/ttyUSB0
Poll Rate 500
Port 4532
run rig control when program starts checked
57600 port speed

All works on Dell inspiron 530s

raspex@raspberry:~$ cqrlog --debug=1

**** DEBUG LEVEL 1 ****

Loading libssl:
Loading libcrypto:
Loading libmysqlclient:
**************************
MySQL version: 5.6
**************************
**********************************
MySQL version assigned: 5.600000000000000000E+00
**********************************
Loaded 92013 LoTW users
Loaded 97430 eQSL users
Loaded 46811 SCP calls
IniFile:/home/raspex/.config/cqrlog/cqrlog.cfg
LocalIniFile:/home/raspex/.config/cqrlog/local.cfg
*
User home directory: /home/raspex/
Program home directory: /home/raspex/.config/cqrlog/
Data directory: /home/raspex/.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.6
*
Trying to connect to database
2016-03-20 00:32:08 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-03-20 00:32:08 0 [Note] /usr/sbin/mysqld (mysqld 5.6.25-0ubuntu1) starting as process 2157 ...
Server connect failed.
Trying:1
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

use cqrlog001

SELECT * FROM cqrlog_config

IniFile:/home/raspex/.config/cqrlog/1cqrlog.cfg
LocalIniFile:/home/raspex/.config/cqrlog/1local.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 204 -r /dev/ttyUSB0 -t 4532 -s 57600
RunRigCtld: TRUE
RigDevice: /dev/ttyUSB0
RigCtldPort:4532
RigCtldHost:localhost
RigPoll: 500
RigSendCWR: FALSE
RigId: 204

Starting RigCtld ...
/usr/bin/rigctld -m 204 -r /dev/ttyUSB0 -t 4532 -s 57600
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 visible > 0 ORDER BY nr

^C
raspex@raspberry:~$ ^C
raspex@raspberry:~$

If I run below, NO PROBLEMO!.....

raspex@raspberry:~$ sudo rigctl -m 204 -r /dev/ttyUSB0 -s 57600 --set-conf=rts_state=ON -vvvvv
rigctl, Hamlib 1.2.15.3
Report bugs to

rig:rig_init called
rig: loading backend kenwood
initrigs2_kenwood called
rig_register (213)
rig_register (201)
rig_register (225)
rig_register (203)
rig_register (204)
rig_register (216)
rig_register (224)
rig_register (205)
rig_register (207)
rig_register (209)
rig_register (210)
rig_register (222)
rig_register (214)
rig_register (230)
rig_register (221)
rig_register (229)
rig_register (202)
rig_register (211)
rig_register (206)
rig_register (208)
rig_register (215)
rig_register (226)
rig_register (217)
rig_register (233)
rig_register (220)
rig_register (223)
rig_register (227)
rig_register (234)
rig_register (231)
rig_register (231)
rig_register (228)
rig_register (219)
rig_register (232)
kenwood_init called
kenwood_init: if_len = 38
rig_set_conf: rts_state='ON'
rig:rig_open called
kenwood_get_vfo_if called
kenwood_get_if called
kenwood_safe_transaction called
kenwood_transaction called
kenwood_transaction: cmdstr = IF
write_block(): TX 3 bytes
0000 49 46 3b IF;
read_string(): RX 38 characters
0000 49 46 30 30 30 30 37 31 36 35 30 30 30 20 20 20 IF00007165000
0010 20 20 20 30 30 32 33 30 30 20 30 30 30 31 30 30 002300 000100
0020 30 30 30 38 20 3b 0008 ;
Opened rig model 204, 'TS-570D'
Backend version: 0.8.2, Status: Stable

Rig command: f
write_block(): TX 3 bytes
0000 49 46 3b IF;
read_string(): RX 38 characters
0000 49 46 30 30 30 30 37 31 36 35 30 30 30 20 20 20 IF00007165000
0010 20 20 20 30 30 32 33 30 30 20 30 30 30 31 30 30 002300 000100
0020 30 30 30 38 20 3b 0008 ;
Frequency: 7165000

Aloha & Mahalo

Jim NH6HI

nh6hi
More RPI3 and rig control

Serial speed is set at 57600. Everything is set DEFAULT

ok2cqr
ok2cqr's picture
Re: RPI3 and rig control

Hi Jim,

it works as root because you are not member of dialout group. Please add raspex to dialout using this in terminal:

usermod -G dialout raspex

and logout & login again.

73 Petr, OK2CQR

nh6hi
Mahalo Petr.... That did the

Mahalo Petr.... That did the trick..Aloha & Mahalo Jim NH6HI