svpcom / wfb-ng

WFB-NG - the next generation of long-range packet radio link based on raw WiFi radio
https://docs.px4.io/main/en/tutorials/video_streaming_wifi_broadcast.html
GNU General Public License v3.0
962 stars 228 forks source link

wfb-cli gs cannot be used #332

Open mzhixian opened 4 months ago

mzhixian commented 4 months ago

I deployed wfb-ng on tspi(RK3566) with kernel version 5.10.198. Enter wfb-cli gs and the following information is displayed: 210e3d29076c87f1be9356237bc82ee2 0f6dd16844c9f57300a9323cfbc929d5 Enter wfb_rx -K /etc/gs.key -c 127.0.0.1 -u 5600 -p 0 -i 7669206 wlxfca386b37542 and the following information is displayed: a732a5484f82dfc641442eb81b4e74c6 This is dmesg: 86ad28f98bfc29d214dd86b6aca9bdc8 What should I do?

svpcom commented 4 months ago

sudo journalctl -xu wifibroadcast@gs > gs.log sudo journalctl -xu wifibroadcast@drone > drone.log

svpcom commented 4 months ago

sudo ethtool -i wlxfca386b37542

mzhixian commented 4 months ago

sudo ethtool -i wlxfca386b37542

image

mzhixian commented 4 months ago

sudo journalctl -xu wifibroadcast@gs > gs.log sudo journalctl -xu wifibroadcast@drone > drone.log gs.txt

svpcom commented 4 months ago
Apr 19 02:01:24 neons wfb-server[1685]: [common.abort_on_crash #info] Stopping reactor due to fatal error: [Errno 2] No such file or directory: b'/dev/net/tun'

Need to install tuntap driver (tun.ko)

mzhixian commented 4 months ago
Apr 19 02:01:24 neons wfb-server[1685]: [common.abort_on_crash #info] Stopping reactor due to fatal error: [Errno 2] No such file or directory: b'/dev/net/tun'

Need to install tuntap driver (tun.ko)

It's working now.But PKG don't increase.This is gs.log: gs.txt

svpcom commented 4 months ago
pr 19 21:03:07 neons wfb-server[1644]: [server.DbgProtocol.lineReceived #info] video rx: Unable to decrypt packet #0x233704
Apr 19 21:03:07 neons wfb-server[1644]: [server.DbgProtocol.lineReceived #info] video rx: Unable to decrypt packet #0x233705
Apr 19 21:03:07 neons wfb-server[1644]: [server.AntennaProtocol.lineReceived #info] New session detected [video rx]: FEC=VDM_RS K=8, N=12, epoch=0
Apr 19 21:03:11 neons wfb-server[1644]: [server.DbgProtocol.lineReceived #info] video rx: 178 packets lost
Apr 19 21:03:19 neons wfb-server[1644]: [server.DbgProtocol.lineReceived #info] video rx: Error: socket error!
Apr 19 21:03:19 neons wfb-server[1644]: [server.DbgProtocol.lineReceived #info] tunnel rx: Error: socket error!
Apr 19 21:03:19 neons wfb-server[1644]: [server.DbgProtocol.lineReceived #info] mavlink rx: Error: socket error!
Apr 19 21:03:19 neons wfb-server[1644]: [server.RXProtocol.processEnded #info] Stopped RX tunnel rx with code 1
Apr 19 21:03:20 neons wfb-server[1644]: [common.abort_on_crash #info] Stopping reactor due to fatal error: A process has ended with a probable error condition: process ended with exit code 1.

something bad with wifi card or there are: wpa_supplicant or dhclient which try to manage card. Check all steps from SetupHOWTO

svpcom commented 4 months ago

Check dmesg that card didn't disconnect during wfb-ng running

mzhixian commented 4 months ago

Check dmesg that card didn't disconnect during wfb-ng running

I try all the SetupHOWTO,but the situation remains.I don't know what is the problem that makes my network card only work for a while. wfb-cli wfb-cli-t dmesg.txt [Uploading gs.txt…]() nmcli

svpcom commented 4 months ago

gs.txt is missing

svpcom commented 4 months ago

Also try to replace usb cable

mzhixian commented 4 months ago

gs.txt is missing

gs.txt