XMLRPC - CQRLog and FLRig on another Machine

12 posts / 0 new
Last post
KA3NAM
XMLRPC - CQRLog and FLRig on another Machine

Here's my config:

Flex3k (Power SDR) on Win10 ---> FLRig on Win10 ----> Local Network ---> Linux Box with CQRLog

I can run FLDigi on the Linux box and point it to the FLRig running on the windows box and all works well... When I attempt to configure CQRLog to use FLRig and point it to the same IP address, CQRLog is unable to read the frequency of the radio... Wireshark shows packets flowing between the Linux box and the Windows machine on TCP port 12345. I see the initial SYN handshake but only ACKs that seem to coincide with the configured polling interval in CQRLog. Looking at the Wireshark packets there seems to be no "payload" data. I do not see anything being sent over HTTP/XML protocol like I see when FLDigi is connected...

A rigctld --version reveals the following: rigctl Hamlib 4.6

Anyone else have this type of setup working that might have some pointers?

KA3NAM

oh1kh
XMLRPC - CQRLog and FLRig on another Machine

HI!

Open two command consoles in Linux.
In the first one type:
rigctld -m4 -r192.168.60.222:12345 -vvvv

Replace the IP with your windoze's IP
In second one type:
telnet localhost 4532
When it opens give f
and see the first console what it shows. You can add up to 5 "v" to increase debug print.
It should show you how linux box talks with windoze.

If it works just put the rig model #4 flrig to Cqrlog radio1 settings with device as 192.168.60.222:12345 (where IP is your IP in use). Other settings can be defaults.

Remember that you must open firewall in windoze to get connected.

--
Saku
OH1KH

KA3NAM
Hi -- Thank you for your

Hi -- Thank you for your response, below is what is received when I perform the commands you suggested:

I'm not sure why rigctld is looking for files in the directory where the git pull was downloaded? Also a little confused about why it is looking for the loopback address when the destination address is defined (192.168.1.3). Those questions may be best for the hamlib forum... If ya happen to have any advice, it would sure be appreciated. Additionally, I have successfully connected to FLRig on the windows box while running both FLDigi and WSJT-X on the Linux box. That would indicate no issues with a firewall on the windows box... I did explicitly set FLRig to "allow" in the windows firewall... No other firewalls exist (at this time) between the two boxes...

sudo rigctld -m4 192.168.1.3:12345 -vvvv

rigctld.c(653) Startup: rigctld -m4 -vvvv 192.168.1.3:12345
rigctld Hamlib 4.6~git Wed Dec 07 05:27:28 2022 +0000 SHA=2fc634
Report bugs to

Max# of rigctld client services=32
initrigs4_dummy: _init called
rig_init: rig_model=FLRig FLRig
rig_init: rig does not have tx_range!!
rig_init: rig has VFO_A
rig_init: rig has VFO_B
1:flrig.c(616):flrig_init entered
1:flrig.c(659):flrig_init returning(0)
1:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/root/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
1:rig.c(1018):rig_open returning(-6) IO error

Opened rig model 4, 'FLRig'
rig_open: error = rig_init: rig has VFO_A
rig_init: rig has VFO_B
1:flrig.c(616):flrig_init entered
flrig_init version 20221109.0
1:flrig.c(659):flrig_init returning(0)
main: twiddle=0, uplink=0, twiddle_rit=0
1:rig.c(812):rig_open entered
rig_settings_get_path: path=/root/.config/hamlib_settings
rig_settings_load_all: settings_file (/root/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
rig_open: async_data_enable=0, async_data_supported=0
rig_open: using network address 127.0.0.1:12345
network_open: hoststr=127.0.0.1, portstr=12345
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
1:rig.c(1018):rig_open returning(-6) IO error

IO error
(null) Connection refused
Backend version: 20221109.0, Status: Stable
1:network.c(977):network_multicast_publisher_start entered
network.c(979):multicast address=0.0.0.0, port=4532
Connection opened from 127.0.0.1:33830
mutex_rigctld: client lock engaged
mutex_rigctld: client lock disengaged
mutex_rigctld: client lock engaged
2:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/root/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
2:rig.c(1018):rig_open returning(-6) IO error

handle_socket: rig_open reopened retcode=-6
mutex_rigctld: client lock disengaged
handle_socket: i/o error
mutex_rigctld: client lock engaged
2:rig.c(1388):rig_close entered
2:rig.c(1400):rig_close returning(-1) Invalid parameter

mutex_rigctld: client lock disengaged
handle_socket: rig_close retcode=-1
mutex_rigctld: client lock engaged
2:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/root/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
2:rig.c(1018):rig_open returning(-6) IO error

handle_socket: rig_open retcode=-6, opened=0
mutex_rigctld: client lock disengaged
mutex_rigctld: client lock engaged
2:rig.c(1388):rig_close entered
2:rig.c(1400):rig_close returning(-1) Invalid parameter

mutex_rigctld: client lock disengaged
handle_socket: rig_close retcode=-1
mutex_rigctld: client lock engaged
2:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/root/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
2:rig.c(1018):rig_open returning(-6) IO error

handle_socket: rig_open retcode=-6, opened=0
mutex_rigctld: client lock disengaged
mutex_rigctld: client lock engaged
2:rig.c(1388):rig_close entered
2:rig.c(1400):rig_close returning(-1) Invalid parameter

mutex_rigctld: client lock disengaged
handle_socket: rig_close retcode=-1
mutex_rigctld: client lock engaged
2:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/root/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
2:rig.c(1018):rig_open returning(-6) IO error

handle_socket: rig_open retcode=-6, opened=0
mutex_rigctld: client lock disengaged
mutex_rigctld: client lock engaged
2:rig.c(1388):rig_close entered
2:rig.c(1400):rig_close returning(-1) Invalid parameter

mutex_rigctld: client lock disengaged
handle_socket: rig_close retcode=-1
mutex_rigctld: client lock engaged
2:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/root/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
2:rig.c(1018):rig_open returning(-6) IO error

handle_socket: rig_open retcode=-6, opened=0
mutex_rigctld: client lock disengaged
Connection closed from 127.0.0.1:33830

oh1kh
XMLRPC - CQRLog and FLRig on another Machine

Hi!
You should not need to run rigctld with sudo. Please use normal linux user instead of sudo(root).

"sudo rigctld -m4 192.168.1.3:12345 -vvvv"

Is this typo above?

"Open two command consoles in Linux."
"In the first one type:"
"rigctld -m4 -r192.168.60.222:12345 -vvvv"

Do not forget "-r" if you leave it off it defaults to localhost:12345

Please try again.

--
Saku
OH1KH

KA3NAM
XMLRPC - CQRLog and FLRig on another Machine

I recompiled with the permissions fixed. Now it'll run without sudo... Still no change in behavior... WSJT-X and FLDigi still connect to FLRig and operate as expected.

rigctld -m4 192.168.1.3:12345 -vvvv
rigctld.c(653) Startup: rigctld -m4 -vvvv 192.168.1.3:12345
rigctld Hamlib 4.6~git Wed Dec 07 05:27:28 2022 +0000 SHA=2fc634
Report bugs to

Max# of rigctld client services=32
initrigs4_dummy: _init called
rig_init: rig_model=FLRig FLRig
rig_init: rig does not have tx_range!!
rig_init: rig has VFO_A
rig_init: rig has VFO_B
1:flrig.c(616):flrig_init entered
1:flrig.c(659):flrig_init returning(0)
1:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/home/hamuser/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
1:rig.c(1018):rig_open returning(-6) IO error

Opened rig model 4, 'FLRig'
rig_open: error = rig_init: rig has VFO_A
rig_init: rig has VFO_B
1:flrig.c(616):flrig_init entered
flrig_init version 20221109.0
1:flrig.c(659):flrig_init returning(0)
main: twiddle=0, uplink=0, twiddle_rit=0
1:rig.c(812):rig_open entered
rig_settings_get_path: path=/home/hamuser/.config/hamlib_settings
rig_settings_load_all: settings_file (/home/hamuser/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
rig_open: async_data_enable=0, async_data_supported=0
rig_open: using network address 127.0.0.1:12345
network_open: hoststr=127.0.0.1, portstr=12345
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
1:rig.c(1018):rig_open returning(-6) IO error

IO error
(null) Connection refused
Backend version: 20221109.0, Status: Stable
1:network.c(977):network_multicast_publisher_start entered
network.c(979):multicast address=0.0.0.0, port=4532
Connection opened from 127.0.0.1:42160
mutex_rigctld: client lock engaged
mutex_rigctld: client lock disengaged
mutex_rigctld: client lock engaged
2:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/home/hamuser/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
2:rig.c(1018):rig_open returning(-6) IO error

handle_socket: rig_open reopened retcode=-6
mutex_rigctld: client lock disengaged
handle_socket: i/o error
mutex_rigctld: client lock engaged
2:rig.c(1388):rig_close entered
2:rig.c(1400):rig_close returning(-1) Invalid parameter

mutex_rigctld: client lock disengaged
handle_socket: rig_close retcode=-1
mutex_rigctld: client lock engaged
2:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/home/hamuser/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
2:rig.c(1018):rig_open returning(-6) IO error

handle_socket: rig_open retcode=-6, opened=0
mutex_rigctld: client lock disengaged
mutex_rigctld: client lock engaged
2:rig.c(1388):rig_close entered
2:rig.c(1400):rig_close returning(-1) Invalid parameter

mutex_rigctld: client lock disengaged
handle_socket: rig_close retcode=-1
mutex_rigctld: client lock engaged
2:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/home/hamuser/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
2:rig.c(1018):rig_open returning(-6) IO error

handle_socket: rig_open retcode=-6, opened=0
mutex_rigctld: client lock disengaged
mutex_rigctld: client lock engaged
2:rig.c(1388):rig_close entered
2:rig.c(1400):rig_close returning(-1) Invalid parameter

mutex_rigctld: client lock disengaged
handle_socket: rig_close retcode=-1
mutex_rigctld: client lock engaged
2:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/home/hamuser/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
2:rig.c(1018):rig_open returning(-6) IO error

handle_socket: rig_open retcode=-6, opened=0
mutex_rigctld: client lock disengaged
mutex_rigctld: client lock engaged
2:rig.c(1388):rig_close entered
2:rig.c(1400):rig_close returning(-1) Invalid parameter

mutex_rigctld: client lock disengaged
handle_socket: rig_close retcode=-1
mutex_rigctld: client lock engaged
2:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/home/hamuser/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/hamuser/Hamlib
rig_open: /home/hamuser/Hamlib/hamlib_settings does not exist
connect to 127.0.0.1:12345 failed, (trying next interface): Network error 111: Connection refused
network_open: failed to connect to 127.0.0.1:12345
rig_open: rs->comm_state==0?=0
2:rig.c(1018):rig_open returning(-6) IO error

handle_socket: rig_open retcode=-6, opened=0
mutex_rigctld: client lock disengaged
Connection closed from 127.0.0.1:42160
^Cmain: select() failed: Interrupted system call
main: ctrl_c when retcode==-1
main: while loop done
mutex_rigctld: client lock engaged
2:rig.c(1388):rig_close entered
2:rig.c(1400):rig_close returning(-1) Invalid parameter

mutex_rigctld: client lock disengaged
2:network.c(1092):network_multicast_publisher_stop entered
2:network.c(1101):network_multicast_publisher_stop returning(0)
flrig.c(1110):flrig_cleanup returning2(0)

KA3NAM
XMLRPC - CQRLog and FLRig on another Machine

Not sure if it helps but this is what I get when I do not telnet in to localhost and give it an "f" command:

rigctld -m4 192.168.1.3:12345 -vvvv
rigctld.c(653) Startup: rigctld -m4 -vvvv 192.168.1.3:12345
rigctld Hamlib 4.6~git Wed Dec 07 05:27:28 2022 +0000 SHA=2fc634
Report bugs to

Max# of rigctld client services=32
initrigs4_dummy: _init called
rig_init: rig_model=FLRig FLRig
rig_init: rig does not have tx_range!!
rig_init: rig has VFO_A
rig_init: rig has VFO_B
1:flrig.c(616):flrig_init entered
1:flrig.c(659):flrig_init returning(0)
1:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (home/hamuser/.config/hamlib_settings): No such file or directory
rig_open: cwd=home/hamuser/Hamlib
rig_open: home/hamuser/Hamlib/hamlib_settings does not exist
2:rig.c(7401):async_data_handler_start entered
2:rig.c(7408):async_data_handler_start returning(0)
rig.c(254):add_opened_rig returning2(0)
rig_open: 0x55a3923f075c rs->comm_state==1?=1
2:flrig.c(794):flrig_open entered
flrig_open version 20221109.0
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
read_string_generic(): Timed out 5.002 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=1
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=0
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: did not get
4:flrig.c(501):read_transaction returning(-109) ERR_OUT_OF_RANGE
flrig_transaction: cmd=main.get_version, retry=2
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=1
read_string_generic(): Timed out 5.004 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=0
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: did not get
4:flrig.c(501):read_transaction returning(-109) ERR_OUT_OF_RANGE
flrig_transaction: cmd=main.get_version, retry=1
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=1
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=0
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: did not get
4:flrig.c(501):read_transaction returning(-109) ERR_OUT_OF_RANGE
flrig_transaction: cmd=main.get_version, retry=0
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
read_string_generic(): Timed out 5.001 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=1
read_string_generic(): Timed out 5.001 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=0
read_string_generic(): Timed out 5.005 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: did not get
4:flrig.c(501):read_transaction returning(-109) ERR_OUT_OF_RANGE
flrig_transaction: no value returned
3:flrig.c(600):flrig_transaction returning(8)
flrig_open: get_version failed: read_string_generic called, rxmax=8192 direct=1, expected_len=1
read_string_generic(): Timed out 5.001 seconds after 0 chars, direct=1
read_transaction: string=''
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=1
read_string_generic called, rxmax=8192 direct=1, expected_len=1
read_string_generic(): Timed out 5.001 seconds after 0 chars, direct=1
read_transaction: string=''
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=0
read_string_generic called, rxmax=8192 direct=1, expected_len=1
read_string_generic(): Timed out 5.005 seconds after 0 chars, direct=1
read_transaction: string=''
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: did not get
4:flrig.c(501):read_transaction returning(-109) ERR_OUT_OF_RANGE
flrig_transaction: no value returned
3:flrig.c(600):flrig_transaction returning(8)
Protocol error
Protocol error

Assuming version < 1.3.54flrig_open: version='000000000000'=0
flrig_open FlRig version
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
read_string_generic(): Timed out 5.005 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=1
read_string_generic(): Timed out 5.004 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=0
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: did not get
4:flrig.c(501):read_transaction returning(-109) ERR_OUT_OF_RANGE
flrig_transaction: cmd=rig.get_xcvr, retry=2
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
read_string_generic(): Timed out 5.005 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=1
read_string_generic(): Timed out 5.002 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=0
read_string_generic(): Timed out 5.005 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: did not get
4:flrig.c(501):read_transaction returning(-109) ERR_OUT_OF_RANGE
flrig_transaction: cmd=rig.get_xcvr, retry=1
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=1
read_string_generic(): Timed out 5.004 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=0
read_string_generic(): Timed out 5.001 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: did not get
4:flrig.c(501):read_transaction returning(-109) ERR_OUT_OF_RANGE
flrig_transaction: cmd=rig.get_xcvr, retry=0
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=1
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=0
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: did not get
4:flrig.c(501):read_transaction returning(-109) ERR_OUT_OF_RANGE
flrig_transaction: no value returned
3:flrig.c(600):flrig_transaction returning(8)
flrig_open: get_xcvr failed,,,not fatal: read_string_generic called, rxmax=8192 direct=1, expected_len=1
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: string=''
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=1
read_string_generic called, rxmax=8192 direct=1, expected_len=1
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: string=''
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=0
read_string_generic called, rxmax=8192 direct=1, expected_len=1
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: string=''
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: did not get
4:flrig.c(501):read_transaction returning(-109) ERR_OUT_OF_RANGE
flrig_transaction: no value returned
3:flrig.c(600):flrig_transaction returning(8)
Protocol error
Protocol error

Transceiver=
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
read_string_generic(): Timed out 5.005 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=1
read_string_generic(): Timed out 5.000 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=0
read_string_generic(): Timed out 5.005 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: did not get
4:flrig.c(501):read_transaction returning(-109) ERR_OUT_OF_RANGE
flrig_transaction: cmd=rig.get_pwrmeter_scale, retry=2
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
^[[1;2B^[[1;2Aread_string_generic(): Timed out 5.005 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=1
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: retry needed? retry=0
read_string_generic(): Timed out 5.003 seconds after 0 chars, direct=1
read_transaction: Expected 'HTTP/1.1 200 OK', got ''
read_transaction: did not get
4:flrig.c(501):read_transaction returning(-109) ERR_OUT_OF_RANGE
flrig_transaction: cmd=rig.get_pwrmeter_scale, retry=1
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered

KA3NAM
XMLRPC - CQRLog and FLRig on another Machine

OK... Yes your are correct and I apologize. I have not been including the -r... Here is the result after adding the -r and telneting to localhost 4352. This looks to be what I would think is a "normal" response that we should be getting:

rigctld -m4 -r 192.168.1.3:12345 -vvvv
rigctld.c(653) Startup: rigctld -m4 -r 192.168.1.3:12345 -vvvv
rigctld Hamlib 4.6~git Wed Dec 07 05:27:28 2022 +0000 SHA=2fc634
Report bugs to

Max# of rigctld client services=32
initrigs4_dummy: _init called
rig_init: rig_model=FLRig FLRig
rig_init: rig does not have tx_range!!
rig_init: rig has VFO_A
rig_init: rig has VFO_B
1:flrig.c(616):flrig_init entered
1:flrig.c(659):flrig_init returning(0)
1:rig.c(812):rig_open entered
rig_settings_load_all: settings_file (/home/hamuser/.config/hamlib_settings): No such file or directory
rig_open: cwd=/home/joe
rig_open: /home/hamuser/hamlib_settings does not exist
2:rig.c(7401):async_data_handler_start entered
2:rig.c(7408):async_data_handler_start returning(0)
rig.c(254):add_opened_rig returning2(0)
rig_open: 0x55bf16fd575c rs->comm_state==1?=1
2:flrig.c(794):flrig_open entered
flrig_open version 20221109.0
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
4:flrig.c(501):read_transaction returning(0)
3:flrig.c(605):flrig_transaction returning(0)
flrig_open: version='001004007000'=1004007000
flrig_open: set_vfoA/ptt is available
flrig_open FlRig version 1.4.7
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
4:flrig.c(501):read_transaction returning(0)
3:flrig.c(605):flrig_transaction returning(0)
Transceiver=PowerSDR
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
4:flrig.c(501):read_transaction returning(0)
3:flrig.c(605):flrig_transaction returning(0)
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
4:flrig.c(501):read_transaction returning(0)
3:flrig.c(605):flrig_transaction returning(0)
flrig_open: getmodeA is available
3:flrig.c(1122):flrig_get_freq entered
4:flrig.c(550):flrig_transaction entered
5:flrig.c(517):write_transaction entered
network_flush called
5:flrig.c(541):write_transaction returning(0)
5:flrig.c(432):read_transaction entered
5:flrig.c(501):read_transaction returning(0)
4:flrig.c(605):flrig_transaction returning(0)
3:flrig.c(1175):flrig_get_freq returning(0)
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
4:flrig.c(501):read_transaction returning(0)
3:flrig.c(605):flrig_transaction returning(0)
flrig_open: get_bwA is available=500
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
4:flrig.c(501):read_transaction returning(0)
3:flrig.c(587):flrig_transaction returning(11)
flrig_open: set_bwA is not available=
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
4:flrig.c(501):read_transaction returning(0)
3:flrig.c(605):flrig_transaction returning(0)
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
4:flrig.c(501):read_transaction returning(0)
3:flrig.c(605):flrig_transaction returning(0)
flrig_open: modes=LSB|USB|DSB|CWL|CWU|FM|AM|DIGU|SPEC|DIGL|SAM|DRM
flrig_open: no mapping for mode DRM
flrig_open: hamlib modes=LSB AM CW USB LSB FM CWR CW-R PKTLSB PKTUSB LSB-D USB-D
3:rig.c(5065):rig_get_split_vfo entered
4:flrig.c(1974):flrig_get_split_vfo entered
5:flrig.c(550):flrig_transaction entered
6:flrig.c(517):write_transaction entered
network_flush called
6:flrig.c(541):write_transaction returning(0)
6:flrig.c(432):read_transaction entered
6:flrig.c(501):read_transaction returning(0)
5:flrig.c(605):flrig_transaction returning(0)
4:flrig.c(1989):flrig_get_split_vfo returning(0)
3:rig.c(5130):rig_get_split_vfo returning(0)
2:flrig.c(1054):flrig_open returning(0)
2:rig.c(2864):rig_get_vfo entered
3:flrig.c(1816):flrig_get_vfo entered
4:flrig.c(550):flrig_transaction entered
5:flrig.c(517):write_transaction entered
network_flush called
5:flrig.c(541):write_transaction returning(0)
5:flrig.c(432):read_transaction entered
5:flrig.c(501):read_transaction returning(0)
4:flrig.c(605):flrig_transaction returning(0)
3:flrig.c(1856):flrig_get_vfo returning(0)
2:rig.c(2926):rig_get_vfo returning(0)
rig_get_freq(1969) called vfo=VFOA
rig.c(1978) vfo=VFOA, curr_vfo=VFOA
rig_get_freq(2065): vfo_opt=0, model=4
2:flrig.c(1122):flrig_get_freq entered
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
4:flrig.c(501):read_transaction returning(0)
3:flrig.c(605):flrig_transaction returning(0)
2:flrig.c(1175):flrig_get_freq returning(0)
rig_get_freq(1969) called vfo=VFOB
rig.c(1978) vfo=VFOB, curr_vfo=VFOA
rig_get_freq(2065): vfo_opt=0, model=4
2:flrig.c(1122):flrig_get_freq entered
3:flrig.c(550):flrig_transaction entered
4:flrig.c(517):write_transaction entered
network_flush called
4:flrig.c(541):write_transaction returning(0)
4:flrig.c(432):read_transaction entered
4:flrig.c(501):read_transaction returning(0)
3:flrig.c(605):flrig_transaction returning(0)
2:flrig.c(1175):flrig_get_freq returning(0)
2:rig.c(5065):rig_get_split_vfo entered
2:rig.c(5105):rig_get_split_vfo returning(0)
rig_open(1346): Current split=0, tx_vfo=VFOA
2:rig.c(2389):rig_get_mode entered
3:flrig.c(1596):flrig_get_mode entered
4:flrig.c(550):flrig_transaction entered
5:flrig.c(517):write_transaction entered
network_flush called
5:flrig.c(541):write_transaction returning(0)
5:flrig.c(432):read_transaction entered
5:flrig.c(501):read_transaction returning(0)
4:flrig.c(605):flrig_transaction returning(0)
4:flrig.c(550):flrig_transaction entered
5:flrig.c(517):write_transaction entered
network_flush called
5:flrig.c(541):write_transaction returning(0)
5:flrig.c(432):read_transaction entered
5:flrig.c(501):read_transaction returning(0)
4:flrig.c(605):flrig_transaction returning(0)
3:flrig.c(1738):flrig_get_mode returning(0)
3:cache.c(35):rig_set_cache_mode entered
3:cache.c(108):rig_set_cache_mode returning(0)
2:rig.c(2522):rig_get_mode returning(0)
1:rig.c(1366):rig_open returning(0)
Opened rig model 4, 'FLRig'
Backend version: 20221109.0, Status: Stable
1:network.c(977):network_multicast_publisher_start entered
network.c(979):multicast address=0.0.0.0, port=4532
Connection opened from 127.0.0.1:37176
mutex_rigctld: client lock engaged
mutex_rigctld: client lock disengaged
mutex_rigctld: client lock engaged
mutex_rigctld: client lock disengaged
mutex_rigctld: client lock engaged
2:rigctl_parse.c(2094):rigctl_get_freq entered
rig_get_freq(1969) called vfo=currVFO
rig.c(1978) vfo=currVFO, curr_vfo=VFOA
rig_get_freq(2065): vfo_opt=0, model=4
3:flrig.c(1122):flrig_get_freq entered
4:flrig.c(550):flrig_transaction entered
5:flrig.c(517):write_transaction entered
network_flush called
5:flrig.c(541):write_transaction returning(0)
5:flrig.c(432):read_transaction entered
5:flrig.c(501):read_transaction returning(0)
4:flrig.c(605):flrig_transaction returning(0)
3:flrig.c(1175):flrig_get_freq returning(0)
2:rigctl_parse.c(2120):rigctl_get_freq returning(0)
mutex_rigctld: client lock disengaged
mutex_rigctld: client lock engaged
mutex_rigctld: client lock disengaged
mutex_rigctld: client lock engaged
mutex_rigctld: client lock disengaged

oh1kh
XMLRPC - CQRLog and FLRig on another Machine

OK!
And when you put 192.168.1.3:12345 to "preferences/TRXContorol/radio1/device" and select "run rigctld when program starts" it should get connected to flrig.

--
Saku
OH1KH

KA3NAM
XMLRPC - CQRLog and FLRig on another Machine

Unfortunately no... I have tried to attach some screenshots but the forum just errors out with this error:

The specified file temporary://file9i0Bn4 could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
The file could not be uploaded.

Doing wireshark and tcpdump captures on port 12345 shows that no connection is requested between CQRLog and the windows machine.... Radio 1 is configured for XMLRPC and Radio 2 is configured to connect to the radio via serial. Serial connection works fine, but still not working via XMLRPC...

oh1kh
XMLRPC - CQRLog and FLRig on another Machine

HI !

I created similar system with my server, with that difference that I do not have any windoze in house. Both were linuxes.

I think I know your problem.
Be sure that all serial line paramaters are "default" If one or more are something else it adds start parameter "--set-conf" to rigctld start and model #4 flrig does not support that.

Forum is somehow broken but select text format "Full HTML" (below text writing box. Afte that select "rich text" above "Full HTML". Then you can paste image from clipboard.
But images will flow over the message size, that is also forum problem now.

 

--
Saku
OH1KH

KA3NAM
XMLRPC - CQRLog and FLRig on another Machine

Ahhhhhhhhhhhh!!!! Your screen capture is/was a wonderful description of what the config needs to be. It is working now! Woot! I did not understand that the Host should stay on the loopback address (127.0.0.1) the Port Number should have stayed 4532 and that the IP and port of the device/ computer that I'm connecting to should go in the "Device" box... I kept putting the IP of the windows box (192.168.1.3) in the "Host" box and the port (12345) in the "Port number" box....

I was starting to get a hint that CQRLog should be connecting to a local server that rigctld creates, but never connected that the "Device" was where to put the IP/port information where the radio lives on the network...

Very Cool! Thank you so much for your patience!!!

oh1kh
XMLRPC - CQRLog and FLRig on another Machine

My pleasure!

In this case Cqrlog creates a rigctld session at localhost, so Cqrlog needs to know that to connect to it and it is so host: localhost port: 4532.
The rigctld session itself makes connect to remote flrig, and so it needs to now that device address to find the fldigi must be in some network ip-address:port

Passing them to preferences/TRXControl may not be the clearest job in case when we talk remote rig in network.

--
Saku
OH1KH