Open tpacini opened 9 months ago
I was able to configure both the AP and the STA by installing an older version of Raspbian OS (release 2022-04-04, kernel 5.10). Now the problem is that when I run a test with iperf3
I get a large UDP packet loss that decreases with higher MCS indexes.
The setup is as follows:
iperf3 -s
set rc off
), set MCS 10 (test mcs 10
), set transmit power to 17 dBm (set txpwr fixed 17
)iperf3 -c 192.168.200.1 -u -b 0 -t 10
Connecting to host 192.168.200.1, port 5201
[ 5] local 192.168.200.27 port 59540 connected to 192.168.200.1 port 5201
[ ID] Interval Transfer Bitrate Total Datagrams
[ 5] 0.00-1.00 sec 113 KBytes 926 Kbits/sec 80
[ 5] 1.00-2.00 sec 14.1 KBytes 116 Kbits/sec 10
[ 5] 2.00-3.00 sec 28.3 KBytes 232 Kbits/sec 20
[ 5] 3.00-4.00 sec 42.4 KBytes 348 Kbits/sec 30
[ 5] 4.00-5.00 sec 28.3 KBytes 232 Kbits/sec 20
[ 5] 5.00-6.00 sec 56.6 KBytes 463 Kbits/sec 40
[ 5] 6.00-7.00 sec 56.6 KBytes 463 Kbits/sec 40
[ 5] 7.00-8.00 sec 70.7 KBytes 579 Kbits/sec 50
[ 5] 8.00-9.00 sec 84.8 KBytes 695 Kbits/sec 60
[ 5] 9.00-10.00 sec 84.8 KBytes 695 Kbits/sec 60
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Jitter Lost/Total Datagrams
[ 5] 0.00-10.00 sec 580 KBytes 475 Kbits/sec 0.000 ms 0/410 (0%) sender
[ 5] 0.00-12.18 sec 173 KBytes 116 Kbits/sec 119.924 ms 242/364 (66%) receiver
iperf Done.
I also tried with iperf3 3.15
, since the installed version is 3.6
without improvements.
Different parameters:
-l 445
, same losses-b 1M
, same lossesLimiting the bandwidth to 100k reduces the losses to 0%. Higher bandwidths lead to higher losses (> 20%).
I increased both w/rmem and udp_w/rmem buffer values without any significant improvement.
I tried to find out the number of packets actually sent from the NIC to the other end, and ifconfig wlan0
shows that the STA sends all the packets, but the AP receives only some of them (close to (364 - 242)), no dropped packets or errors. However, based on ethtool -S wlan0
, the STA is sending some of the packets that are fully received by the AP.
I saw that ifconfig
gets its values from /sys/class/net/wlan0/statistics/
, while I couldn't find where ethtool
gets this information.
I also set up a pfifo
queue and all 410 packets go through it without dropping.
Which statistics can be trusted? Is ethtool
supported by the drivers? Shouldn't the packet loss increase with higher MCS (e.g. 6,7)?
I have two Raspberry Pi 4 Model B (STA and AP) with Raspbian OS (32 bit) installed, connected to the Wi-Fi HaLow AHPI7292SA boards. I followed the guide and, after replacing the file
nrc7292_bd.dat
with the one from issue #60 (to solve the target mismatch error), I ran thestart.py
script on AP:I ran the
start.py
script on station:But the station is stuck on "Waiting for IP" message. The only thing I noticed is that the AP has no IP address on
wlan0
interface, so I assume thehostapd
is not working somehow.Debug messages of
hostapd
:Output of
uname -a
: