connection to SoapSdrServer hackrf device

368 views
Skip to first unread message

Jacek Zaleski

unread,
Jun 22, 2021, 11:32:01 AM6/22/21
to rtl_433
Hi
I'm trying to connect to soap server by  -d rtl_tcp:127.0.0.1:55132
cubicSDR working fine but rtl_433 21.05 freezing

Soap Server returning:
######################################################
## Soapy Server -- Use any Soapy SDR remotely
######################################################

Server version: 0.6.0-gc09b2f10
Server UUID: f8e7c2af-ef79-168a-8567-40df0a0acc64
Launching the server... tcp://0.0.0.0:55132
Server bound to 0.0.0.0:55132
Launching discovery server...
Connecting to DNS-SD daemon..
 SoapyServerListener::accept(127.0.0.1:39820)
 
output from rtl_433 looks that :
[dzaczek@cloyd ~]$ rtl_433  -d rtl_tcp:127.0.0.1:55132
rtl_433 version 21.05 (2020-05-09) inputs file rtl_tcp RTL-SDR
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/dzaczek/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Registered 159 out of 188 device decoding protocols [ 1-4 8 11-12 15-17 19-23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-161 163-168 170-175 177-188 ]
rtl_tcp input from 127.0.0.1 port 55132

tcpdump  output:
17:21:22.172253 IP (tos 0x0, ttl 64, id 7819, offset 0, flags [DF], proto TCP (6), length 60)
    localhost.39820 > localhost.55132: Flags [S], cksum 0xfe30 (incorrect -> 0x694b), seq 347825920, win 65495, options [mss 65495,sackOK,TS val 1485414276 ecr 0,nop,wscale 11], length 0
        0x0000:  4500 003c 1e8b 4000 4006 1e2f 7f00 0001  E..<..@.@../....
        0x0010:  7f00 0001 9b8c d75c 14bb 6700 0000 0000  .......\..g.....
        0x0020:  a002 ffd7 fe30 0000 0204 ffd7 0402 080a  .....0..........
        0x0030:  5889 9f84 0000 0000 0103 030b            X...........
17:21:22.172278 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 60)
    localhost.55132 > localhost.39820: Flags [S.], cksum 0xfe30 (incorrect -> 0x1930), seq 3042943656, ack 347825921, win 65483, options [mss 65495,sackOK,TS val 1485414276 ecr 1485414276,nop,wscale 11], length 0
        0x0000:  4500 003c 0000 4000 4006 3cba 7f00 0001  E..<..@.@.<.....
        0x0010:  7f00 0001 d75c 9b8c b55f a2a8 14bb 6701  .....\..._....g.
        0x0020:  a012 ffcb fe30 0000 0204 ffd7 0402 080a  .....0..........
        0x0030:  5889 9f84 5889 9f84 0103 030b            X...X.......
17:21:22.172293 IP (tos 0x0, ttl 64, id 7820, offset 0, flags [DF], proto TCP (6), length 52)
    localhost.39820 > localhost.55132: Flags [.], cksum 0xfe28 (incorrect -> 0x41d0), seq 1, ack 1, win 32, options [nop,nop,TS val 1485414276 ecr 1485414276], length 0
        0x0000:  4500 0034 1e8c 4000 4006 1e36 7f00 0001  E..4..@.@..6....
        0x0010:  7f00 0001 9b8c d75c 14bb 6701 b55f a2a9  .......\..g.._..
        0x0020:  8010 0020 fe28 0000 0101 080a 5889 9f84  .....(......X...
        0x0030:  5889 9f84   



and there stop and waiting

Jacek Zaleski

unread,
Jun 22, 2021, 11:40:20 AM6/22/21
to rtl_433
update:
strace stooping on  receive messages on a aocket scoket

recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=72, type=RTM_NEWADDR, flags=NLM_F_MULTI, seq=1624375961, pid=18325}, {ifa_family=AF_INET6, ifa_prefixlen=128, ifa_flags=IFA_F_PERMANENT, ifa_scope=RT_SCOPE_HOST, ifa_index=if_nametoindex("lo")}, [{{nla_len=20, nla_type=IFA_ADDRESS}, inet_pton(AF_INET6, "::1")}, {{nla_len=20, nla_type=IFA_CACHEINFO}, {ifa_prefered=4294967295, ifa_valid=4294967295, cstamp=972, tstamp=972}}, {{nla_len=8, nla_type=IFA_FLAGS}, IFA_F_PERMANENT}]}, iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 72
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=20, type=NLMSG_DONE, flags=NLM_F_MULTI, seq=1624375961, pid=18325}, 0}, iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 20
close(3)                                = 0
socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(55132), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
recvfrom(3, 0x7ffd69f82a54, 12, 0, NULL, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
recvfrom(3,

Christian Z.

unread,
Jun 22, 2021, 1:12:31 PM6/22/21
to rtl_433
Good debugging, but still hard to pinpoint what's wrong. Did the rtl_tcp sender stall? On the rtl_433 side it's just a simple loop over tcp receive.
I'd use SoapyRemote if possible. Ahh, wait -- that's what you want to use actually? The Soapy protocol is selected with -d driver=remote, it's not rtl_tcp compatible.

Jacek Zaleski

unread,
Jun 23, 2021, 1:42:36 AM6/23/21
to rtl_433
Hi
You  have absolute right.  After you answer i check why there is no error no fail but also no connection  after use  driver=remote   and my binary was build without Soap . (https://youtu.be/X6WJxsMdDdE)
Thank you for fast answer .

Christian Z.

unread,
Jun 23, 2021, 3:27:05 AM6/23/21
to rtl_433
The device selection is quite flexible, but we should add some recognition and errors for unavailable backends. I'll get on that.
Reply all
Reply to author
Forward
0 new messages