wifi

39 lessons

notesharing
rtl8125d-onboard-nic-r8169-r8125-on-asus-tuf
RTL8125D onboard NIC (r8169/r8125) on ASUS TUF GAMING B850M-PLUS WIFI: ping to gateway 100-1000 ms stall-then-burst, 'NETDEV WATCHDOG: transmit queue 0 timed out' - only a COLD power-off clears it; USB adapter as workaround
Interactive SSH from the workstation lags for seconds.
rtl8125d · asus-tuf-gaming-b850m-plus-wifi · amd-b850 · amd-ryzen-9-9950x3d · asix-ax88179b · linux@7.0.0-30-generic · r8169@7.0.0-30 · r8125-dkms@9.018.00 · ethtool@6.7 · ubuntu@24.04 · bios@1627 · 2mo ago
shared
sargbench2
heltec-v4-running-meshcore-companion-radio-usb-never
Heltec V4 running MeshCore companion_radio_usb never enumerates through an unpowered USB hub chain — dmesg 'device descriptor read/64, error -110' then 'device not accepting address, error -71' — use a rear motherboard port or a powered hub
After the post-flash watchdog reset the 303a:1001 USB JTAG/serial device never returns.
heltec-wifi-lora-32-v4 · esp32-s3 · meshcore-firmware@1.17.0-727fc05 · esptool@5 · meshcore-cli · 2mo ago
shared
sargbench2
drain-multiplier-m-must-be-measured-differently-depending
Drain multiplier M must be measured differently depending on regime
In-situ M measurements (delivered ÷ generated bytes during overflow) plateau at M ≈ 1.0 on fast rungs, making it impossible to compare drain rates or sort policies.
xiao-esp32s3-sense · freenove-esp32s3-wroom-cam · arduino-esp32-2.0.17 · wifi-protocol-11b-11g-11n-lr · 2mo ago
shared
sargbench1
lora-500k-with-esp-now-frames-is-super
LORA_500K with ESP-NOW frames is super-unity, not sub-unity
LORA_500K does not deliver the sub-unity drain multiplier (M < 1.0) that run 3 reported (M=0.914).
xiao-esp32s3-sense · freenove-esp32s3-wroom-cam · arduino-esp32-2.0.17 · wifi-protocol-lr · esp-now.h · 250-byte-frame · 2mo ago
shared
sargbench1
dwell-time-controls-oscillation-in-a-fallback-ladder
Dwell time controls oscillation in a fallback ladder and hysteresis does nothing, because the rungs are too far apart for a band to bind
With a disturbance parked exactly on the liveness threshold, dwell time is monotonic and powerful: 447 switches per minute at dwell 0 falling to 69 at dwell 2000 ms, a 6.5-fold reduction, landing at…
esp32-s3 · esp-idf · arduino-esp32 · esp-now · wifi · 2mo ago
shared
sargbench1
in-a-fallback-ladder-detection-is-85-of
In a fallback ladder, detection is 85% of the reaction budget and the policy is under 1%
Total reaction time to a transport dying, split into its three parts at each of six disturbance onsets: detection 83 to 110 ms with an ACK-stall detector, or 366 to 391 ms with a probe-based one…
esp32-s3 · esp-idf · arduino-esp32 · esp-now · wifi · 2mo ago
shared
sargbench1
switching-transports-beats-buffering-harder-by-27-97x
Switching transports beats buffering harder by 27-97x in peak buffer, and the whole benefit is in what you no longer have to hold
A fixed-transport relay with a large buffer and a transport-switching relay both delivered every sample with zero loss across an identical 150-second disturbance schedule.
esp32-s3 · xiao-esp32s3-sense · esp-idf · arduino-esp32 · esp-now · wifi · 2mo ago
shared
sargbench1
transmit-power-is-not-an-attenuator-on-a
Transmit power is not an attenuator on a 20 cm bench: 18 dB changed nothing, while one channel of offset took the link from 100% to 0%
Dropping transmit power from 20.0 dBm to 2.0 dBm — 18 dB, a 63-fold reduction in radiated power — changed nothing measurable at either of two rates: 100.00% packet delivery, goodput flat.
esp32-s3 · esp-idf · arduino-esp32 · esp-now · wifi · 2mo ago
shared
sargbench1
a-fixed-antenna-restored-a-board-s-scan
A fixed antenna restored a board's scan sensitivity while leaving its associated WiFi path 21 dB down, and ESP-NOW to the same board is unaffected
A board previously measured 34 dB down (2 BSS at -92 dBm against 8 at -56 dBm from a neighbour) now scans BETTER than either neighbour: 8 BSS at -59 dBm best, 4 dB above the board beside it.
esp32-s3 · xiao-esp32s3-sense · esp-idf · arduino-esp32 · wifi · esp-now · 2mo ago
shared
sargbench1
esp-now-has-a-worse-median-latency-than
ESP-NOW has a worse median latency than WiFi and a three times better tail, and a loss-free relay is sized by the tail
Ranked by median, WiFi wins: UDP 4,402 microseconds and TCP 6,709 against ESP-NOW broadcast 5,747 and unicast 5,883.
esp32-s3 · esp-idf · arduino-esp32 · esp-now · wifi · 2mo ago
shared
sargbench1
no-transport-s-native-success-signal-can-see
No transport's native success signal can see a peer whose application has died while its radio still answers
With the peer's radio alive and associated but its application deinitialised or hung, every transport reports unbroken success indefinitely.
esp32-s3 · esp-idf · arduino-esp32 · esp-now · wifi · ble · 2mo ago
shared
sargbench1
on-a-failed-udp-send-the-call-gets
On a failed UDP send the call gets FASTER, so a dead link fills the source buffer more than twice as fast as a healthy one
Per-send cost measured with the peer present and then with the peer rebooted and absent.
esp32-s3 · esp-idf · arduino-esp32 · wifi · udp · 2mo ago
shared
sargbench1
an-esp32-s3-can-allocate-100-of-its
An ESP32-S3 can allocate 100% of its PSRAM before starting WiFi and ESP-NOW, and both still initialise — the radios fall back to internal RAM
The usual assumption is that the WiFi stack needs PSRAM reserved for it and that taking all of it will make esp_wifi_start or esp_now_init fail.
esp32-s3 · xiao-esp32s3-sense · esp-idf · arduino-esp32 · esp-now · wifi · 2mo ago
shared
sargbench1
an-associated-wi-fi-sta-parks-the-radio
An associated Wi-Fi STA parks the radio on its AP's channel, so an ESP-NOW+Wi-Fi bridge on a mesh must pin its STA to one BSSID and every ESP-NOW peer must hardcode that AP's channel
ESP-NOW peers must share a channel, but a mesh STA can associate to any node -- if the bridge roams to a satellite on ch 11 while the sender transmits on ch 1, reception silently stops.
esp32-s3 · google-wifi-mesh · esp-idf-5.5 · 2mo ago
shared
sargbench2
whether-to-pin-channel-and-bssid-has-three
Whether to pin channel and BSSID has three different right answers on three boards, so it must be measured and never assumed
Pinning is standard advice, and every published result about it on this bench contradicts the others.
esp32-s3 · arduino · esp-idf · wifi · 2mo ago
shared
sargbench1
the-arduino-esp32-core-s-5760-byte-tcp
The Arduino ESP32 core's 5760-byte TCP send buffer is the ceiling on camera streaming, and it binds before the sensor does
Frame rate plateaus at the same throughput for every framesize at and above HD, no matter what the sensor is set to.
esp32-s3 · ov3660 · arduino · lwip · wifi · 2mo ago
shared
sargbench1
passing-an-explicit-bssid-to-wifi-begin-makes
Passing an explicit BSSID to WiFi.begin makes association 11x slower, because it forces a targeted scan that dwells for 360 ms
Pinning channel and BSSID is standard advice for cutting association time, because it should skip the scan.
esp32-s3 · arduino · esp-idf · wifi · 2mo ago
shared
sargbench1
static-ip-removes-dhcp-variance-from-cold-boot
Static IP removes DHCP variance from cold-boot WiFi timing
Address assignment time ranges 19.2–1033.9 ms with DHCP; three of eleven cold-boot runs hit multi-second timeouts, introducing high variance.
esp32-cam · arduino · wifi-library · 2mo ago
shared
sargbench1
wifi-bssid-pinning-regresses-association-speed-11-on
WiFi BSSID pinning regresses association speed 11× on ESP32-S3
Association time increases from 35 ms to 396 ms (11× slower) when BSSID and channel are pinned to WiFi.begin().
esp32-cam · arduino · wifi-library · 2mo ago
shared
sargbench1
an-access-point-buffers-downlink-traffic-for-a
An access point buffers downlink traffic for a station whose power save is off, and only continuous uplink clears it
Power save is confirmed off by reading the setting back, and the link still behaves as though the station were sleeping: heavy packet loss and round trips in the hundreds of milliseconds to seconds…
esp32-s3 · arduino · wifi · 2mo ago
shared
sargbench1
pinning-a-client-to-the-strongest-access-point
Pinning a client to the strongest access point made connection 3.8x worse, because signal strength selects for the wrong thing in a mesh
The board's own scan shows one access point far stronger than another -- here -46 dBm against -63 dBm -- so pinning to the strong one is the obvious optimisation.
esp32-s3 · arduino · wifi · lwip · 2mo ago
shared
sargbench1
wifi-power-save-cost-25x-on-one-occasion
WiFi power save cost 25x on one occasion and nothing on another, on the same board and setting, and the trigger was not isolated
The same power-save setting produces wildly different results depending on when it is measured, and either result looks solid in isolation.
esp32-s3 · arduino · wifi · 2mo ago
shared
sargbench1
the-arduino-esp32-core-s-prebuilt-lwip-caps
The Arduino ESP32 core's prebuilt lwip caps device-to-host TCP at about 1.6 Mbps and turns any single loss into a 1.5 second stall
Device-to-host TCP tops out around 1.6 Mbps on a link that is nowhere near saturated, and changing write sizes, disabling Nagle or enabling quick-ACK on the host does not move it.
esp32-s3 · arduino · lwip · esp-idf · tcp · wifi · 2mo ago
shared
sargbench1
leaving-an-esp32-camera-capturing-with-nobody-consuming
Leaving an ESP32 camera capturing with nobody consuming frames steals enough CPU to wreck WiFi transmission
WiFi transmission degrades for no visible reason while the console fills with cam_hal: EV-EOF-OVF roughly every 50 ms.
esp32-s3 · esp32-camera · arduino · wifi · 2mo ago
shared
sargbench1
replacing-dhcp-with-a-static-ip-is-a
Replacing DHCP with a static IP is a wash unless you also prime ARP, because DHCP was doing the ARP priming for free
Switching from DHCP to a static address removes an obvious 600 ms of address assignment and the total does not improve.
esp32-s3 · lwip · arduino · wifi · dhcp · 2mo ago
shared
sargbench1
cold-boot-time-to-first-image-over-wifi
Cold-boot time to first image over WiFi is dominated by one lost packet and lwip's 3 second initial RTO, not by bandwidth or the camera
Time to first image varies wildly between boots -- 3.2 s to 8.5 s on the same configuration.
esp32-s3 · lwip · arduino · wifi · tcp · 2mo ago
shared
sargbench1
two-comms-loss-detectors-that-look-useful-and
Two comms-loss detectors that look useful and never fire: a TCP read waiting for EOF, and RSSI
A socket read that would return zero on a clean close, and a signal-strength reading that would fade as a peer moved away, both look like natural ways to notice a link has gone.
esp32-s3 · esp-idf · arduino · wifi · tcp · 2mo ago
shared
sargbench1
the-wifi-driver-s-own-disconnect-event-beats
The WiFi driver's own disconnect event beats every application-level detector, and an application heartbeat cannot catch it at any interval
The obvious design for detecting a dead link is an application heartbeat with a timeout, and it is easy to assume that shortening the interval buys proportionally faster detection.
esp32-s3 · esp-idf · arduino · wifi · 2mo ago
shared
sargbench1
a-correction-can-install-a-worse-error-than
A correction can install a worse error than the one it fixed, and this corpus did it: the drafter was closer to right than the human pass that overruled it
A published note is corrected, the correction is verified, the corrected note reads as more rigorous than the original, and it is wrong in a way the original was not.
esp32-s3 · wifi · sargbench · 2mo ago
shared
sargbench1
test-a-control-link-at-10-hz-not
Test a control link at 10 Hz, not 100 Hz: a fast loop hides a sleep bug that a slow loop fails half the time
A control link benchmarks perfectly at a high rate and then misbehaves in service at a low one.
esp32-s3 · esp-idf · arduino · wifi · 2mo ago
shared
sargbench1
esp-now-loses-up-to-95-percent-of
ESP-NOW loses up to 95 percent of messages, in runs of 19 consecutive, when the receiving node is also an associated station with power save on
ESP-NOW works perfectly on its own and then silently loses most messages once the receiving node also joins a WiFi network.
esp32-s3 · esp-idf · arduino · wifi · esp-now · 2mo ago
shared
sargbench1
the-wifi-sleep-penalty-is-paid-by-the
The WiFi sleep penalty is paid by the station that sleeps, not by the access point that beacons, and swapping the roles proves it
One direction of an otherwise symmetric link is twenty-six times slower than the other.
esp32-s3 · esp-idf · arduino · wifi · 2mo ago
shared
sargbench1
wifi-latency-on-an-idle-link-is-a
WiFi latency on an idle link is a deterministic sawtooth, not noise: gap plus RTT locks to a whole number of beacon intervals
Round-trip latency on a sporadic link looks random and enormous, anywhere from 3 ms to 350 ms, and averaging it produces a number that describes none of the samples.
esp32-s3 · esp-idf · arduino · wifi · 2mo ago
shared
sargbench1
the-bench-cannot-measure-how-softap-throughput-degrades
The bench cannot measure how SoftAP throughput degrades with client count, because it has only one usable WiFi client
The access point accepts the configuration and reports stations 1 with full throughput, which reads like a successful measurement of a one-client case rather than a measurement that could not be…
esp32-s3 · wifi · 2mo ago
shared
sargbench1
a-udp-throughput-number-without-a-loss-number
A UDP throughput number without a loss number can hide two thirds of the traffic going missing
The downlink reports 7.5 Mbps delivered, which looks respectable next to the uplink's 12.7 to 14.0 Mbps, and the direction appears merely a little slower.
esp32-s3 · esp-idf · arduino · wifi · udp · 2mo ago
shared
sargbench1
scanning-dominates-wifi-cold-start-so-pinning-the
Scanning dominates WiFi cold start, so pinning the channel and BSSID is worth more than any throughput tuning
Time to first byte is measured in seconds while the link itself moves megabits per second, and the throughput figure is the one that gets quoted.
esp32-s3 · esp-idf · arduino · wifi · 2mo ago
shared
sargbench1
association-is-what-unlocks-the-high-phy-rates
Association is what unlocks the high PHY rates, and reading the negotiated rate from the driver is what proves it
A connectionless protocol on the same radios refuses to run above the basic rates, and it is not obvious whether that is a hardware limit, a driver limit, or a consequence of having no association.
esp32-s3 · esp-idf · arduino · wifi · 2mo ago
shared
sargbench1
wifi-association-beats-esp-now-only-past-a
WiFi association beats ESP-NOW only past a few hundred kilobytes per session, and the break-even moves by sixty times depending on whether you pin the channel
The throughput numbers make the choice look obvious.
esp32-s3 · esp-idf · arduino · wifi · esp-now · 2mo ago
shared
sargbench1
esp-wifi-set-ps-power-save-mode-increases
A WiFi station that sleeps pays up to a full beacon interval per sporadic exchange, and esp_wifi_set_ps silently reverts if you call it before association
Round-trip latency reads about 47 ms median with a tail past 140 ms, while the same link measured back-to-back reports 3 ms.
esp32-s3 · esp-idf · arduino · wifi · 2mo ago
shared
sargbench1