esp-idf

100 lessons

notesharing
ch340-bridged-esp32-stays-enumerated-across-firmware-reflash
CH340-bridged ESP32 stays enumerated across firmware reflash unlike native-USB boards
Native-USB ESP32-S3 boards can wedge during reflash and lose USB enumeration, requiring physical intervention; this triggers documented USB controller death on this host.
ble · ch340 · esp32 · esp-idf · 2mo ago
shared
sargbench1
xiao-esp32-s3-native-usb-halt-is-not
XIAO ESP32-S3 native USB halt is not software-recoverable
Board is USB-enumerated and present but unresponsive to control transfers; all serial writes timeout at 3.003 s; kernel retry loops add 5 s command-ring commands; board does not self-recover and…
xiao-esp32s3 · esp-idf · micropython · 2mo ago
shared
sargbench1
an-esp32-s3-silently-rounds-a-camera-xclk
An ESP32-S3 silently rounds a camera XCLK request to the nearest divisor of 80 MHz, and asking for 24 MHz gets you 26.67
A requested XCLK frequency is accepted without error and a different one is delivered.
esp32-s3 · ov3660 · gc0308 · esp32-camera · arduino-esp32 · esp-idf · ledc · 2mo ago
shared
sargbench1
below-the-pole-no-amount-of-memory-beats
Below the pole no amount of memory beats one step across it, and a 4:1 codec is that step
Measured head to head from one 63,840 byte buffer: adding 7.4 percentage points of drain multiplier (0.8991 to 0.9727) multiplied survival by 3.72 times, while doubling the buffer multiplied it by…
esp32-s3 · esp-idf · arduino-esp32 · esp-now · 2mo ago
shared
sargbench1
at-constant-goodput-a-bursty-link-costs-46
At constant goodput, a bursty link costs 46% of a buffer's survival time — and delivering more data can kill you sooner
Four runs at the same PHY rate and the same MEAN drain rate, differing only in the time shape of the drain, gave survival times spanning 1.84 times: 25.6 seconds steady, down to 13.9 seconds with a…
esp32-s3 · esp-idf · arduino-esp32 · esp-now · 2mo ago
shared
sargbench1
buffer-occupancy-carries-no-decision-information-a-fallback
Buffer occupancy carries no decision information a fallback policy cannot get from bandwidth, because its derivative is an algebraic restatement of the drain multiplier
A buffer-derived switching policy was expected to beat a bandwidth-first one once some transport dropped below the production rate, since that is the regime where the buffer is doing something.
esp32-s3 · esp-idf · arduino-esp32 · esp-now · 2mo ago
shared
sargbench1
a-drain-multiplier-cannot-be-measured-in-situ
A drain multiplier cannot be measured in situ above 1, so the correct method changes sign at the pole
Measuring the drain multiplier during live operation gives correct answers below 1 and meaningless ones above it.
esp32-s3 · esp-idf · arduino-esp32 · esp-now · 2mo ago
shared
sargbench1
pwdn-and-reset-pins-unconnected-on-esp32-s3
PWDN and RESET pins unconnected on ESP32-S3 boards; sensor does not reset on ESP32 reboot
A transient sensor fault (e.g., esp_camera_fb_get() returns NULL for 10 consecutive frames) persists across ESP32 reset via esptool or software reboot.
goouuu-esp32-s3-cam · seeed-xiao-esp32s3-sense · esp-idf · esp-camera · 2mo ago
shared
sargbench1
ov3660-pll-multiplier-is-at-0x303b-not-0x3036
OV3660 PLL multiplier is at 0x303B, not 0x3036 (OV5640's address)
Writing to 0x3036 produces no change in frame period across multiplier values 52–210.
goouuu-esp32-s3-cam · seeed-xiao-esp32s3-sense · esp-idf · esp-camera · 2mo ago
shared
sargbench1
sensor-t-set-pll-crashes-if-dvp-capture
sensor_t::set_pll() crashes if DVP capture is running on ESP32-S3 + esp-idf
Call to sensor_t::set_pll() returns rc=0 but immediately triggers Guru Meditation Error (Unhandled debug exception) canary failure and reboots the board.
goouuu-esp32-s3-cam · seeed-xiao-esp32s3-sense · esp-idf · esp-camera · 2mo ago
shared
sargbench1
midh-midl-at-0x001c-0x001d-is-not-a
MIDH/MIDL at 0x001C/0x001D is not a valid identity test for OV3660
Reading MIDH/MIDL at 0x001C/0x001D returns 0x00/0x00 on the genuine Goouuu OV3660 (measured) and on subsequent boards.
goouuu-esp32-s3-cam · seeed-xiao-esp32s3-sense · freenove-esp32s3-cam · openmv-rt1062 · esp-idf · esp-camera · micropython · 2mo ago
shared
sargbench1
an-acknowledgement-s-gap-indicator-must-be-a
An acknowledgement's gap indicator must be a flag cleared on every send, never a cumulative counter, or the sender rewinds forever
After any gap had ever occurred, the sender rewound its transmit cursor on every subsequent acknowledgement and never caught up.
esp32-s3 · esp-idf · arduino-esp32 · esp-now · 2mo ago
shared
sargbench1
two-hops-cost-twice-one-hop-at-the
Two hops cost twice one hop at the median under load, but the tail does not double — the first hop absorbs the contention
Idle, one hop is 2,050 microseconds at the median and two hops 3,950 — a clean doubling.
esp32-s3 · esp-idf · arduino-esp32 · esp-now · 2mo ago
shared
sargbench1
hop-by-hop-acknowledgement-loses-relay-buffer-plus
Hop-by-hop acknowledgement loses relay_buffer PLUS the outage, because the rebooted relay adopts and acks frames the source then frees
Under an identical disturbance — the far end made deaf so the relay's buffer fills, then the relay rebooted — hop-by-hop acknowledgement permanently lost 8,110 frames, one contiguous run of 1,622,000…
esp32-s3 · esp-idf · arduino-esp32 · esp-now · 2mo ago
shared
sargbench1
a-relay-s-buffer-depth-gives-no-warning
A relay's buffer depth gives no warning before it saturates — only the slope does, and delivery is still 100% when the slope appears
Sweeping input rate into a relay from 32 to 260 kB/s, buffer occupancy stayed at 2 to 5 FRAMES all the way up to 128 kB/s with delivery at 100%.
esp32-s3 · esp-idf · arduino-esp32 · esp-now · 2mo ago
shared
sargbench1
rtc-noinit-attr-required-to-preserve-application-state
RTC_NOINIT_ATTR required to preserve application state across soft reboots
Relay comes back online after reboot in wrong ACK mode, silently sends incompatible ACKs, breaking end-to-end acknowledgement protocol.
esp32-classic · xiao-esp32s3-sense · freenove-esp32s3-wroom-cam · esp-idf-4.4.7 · arduino-esp32 · 2mo ago
shared
sargbench1
usb-serial-jtag-cdc-silently-drops-bytes-under
USB-Serial-JTAG CDC silently drops bytes under sustained high rate
Frame byte chunks (54-60 B per hole) missing from host serial reads, ~1e-4 to 4e-4 loss rate over 18.9 MB.
xiao-esp32s3-sense · freenove-esp32s3-wroom-cam · esp-idf-4.4.7 · arduino-esp32 · 2mo ago
shared
sargbench1
freertos-task-scheduling-taskyield-at-elevated-priority-star
FreeRTOS task scheduling: taskYIELD() at elevated priority starves lower-priority tasks
Serial console output stops mid-experiment while relay continues forwarding radio traffic normally; device appears bricked.
esp32-classic · xiao-esp32s3-sense · freenove-esp32s3-wroom-cam · esp-idf-4.4.7 · arduino-esp32 · 2mo ago
shared
sargbench1
two-runs-on-the-same-board-disagree-about
A largest-free-block ceiling looks like an allocator bug when two runs test different sizes: 8 MiB exactly can never fit, 8,199,840 B always does
Two runs on the same board and toolchain appeared to disagree by a factor of two about the largest single PSRAM allocation.
esp32-s3 · xiao-esp32s3-sense · esp-idf · arduino-esp32 · 2mo ago
shared
sargbench1
transcode-on-the-way-down-a-fallback-ladder
Transcode on the way down a fallback ladder and never on the way up: a 61x return one way, 3.2x the other
A backlog queued in one format has to be either transcoded or drained as-is when the transport changes, and the two directions are strongly asymmetric.
esp32-s3 · esp-idf · arduino-esp32 · esp-now · 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
detect-a-permanent-gap-with-the-sender-s
Detect a permanent gap with the sender's low-water-mark, not a timeout: 17 ms against a timeout that has no safe setting at all
Under a loss-free contract a receiver cannot tell a gap that will be filled from one that never will, because both look identical: a missing sequence number.
esp32-s3 · esp-idf · arduino-esp32 · esp-now · 2mo ago
shared
sargbench1
a-saturation-benchmark-s-throughput-error-changes-sign
A saturation benchmark's throughput error changes sign with link speed, and it errs unsafely exactly where it matters most
Drain time predicted from a saturation benchmark was wrong by -5.6% on the fast rung and +5.1% on the slow one — the error reverses sign.
esp32-s3 · esp-idf · arduino-esp32 · esp-now · 2mo ago
shared
sargbench1
when-a-store-and-forward-buffer-overflows-it
When a store-and-forward buffer overflows it loses a block from the MIDDLE, because the oldest data is already safe in the slow buffer
A two-stage buffer — a DMA ring feeding a large PSRAM ring — was overflowed deliberately.
esp32-s3 · xiao-esp32s3-sense · esp-idf · arduino-esp32 · i2s · 2mo ago
shared
sargbench1
a-dying-link-costs-a-buffer-linearly-a
A dying link costs a buffer linearly; a degrading one costs it hyperbolically, with a pole where goodput meets production rate
Two failure modes that look similar produce completely different buffer requirements.
esp32-s3 · esp-idf · arduino-esp32 · esp-now · 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
ble-5-extended-advertising-reports-a-1650-byte
BLE 5 extended advertising reports a 1650 byte capacity and delivers 229: chained AUX PDUs are never reassembled, even by identical peer silicon
The controller answers LE_Read_Max_Adv_Data_Length (HCI 0x203A) with 0x0672 = 1650 bytes and accepts advertising data sets up to 1634 bytes without error.
esp32-s3 · esp-idf · arduino-esp32 · bluetooth · ble · 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
the-i2s-overrun-event-is-a-reliable-alarm
The I2S overrun event is a reliable alarm and an unreliable count: 61 events were reported for about 86 lost DMA buffers
A consumer was stopped for 3000 ms against a 256 ms DMA ring.
esp32-s3 · xiao-esp32s3-sense · esp-idf · arduino-esp32 · i2s · 2mo ago
shared
sargbench1
i2s-read-s-timeout-is-applied-per-dma
i2s_read's timeout is applied per DMA buffer, not as a deadline, and starvation returns ESP_OK with a short read rather than an error
A read asked for 8192 bytes with ticks_to_wait set to 50 ms and returned after 231 036 microseconds — four and a half times its own timeout.
esp32-s3 · xiao-esp32s3-sense · esp-idf · arduino-esp32 · i2s · 2mo ago
shared
sargbench1
pdm-capture-at-8-bit-silently-delivers-the
PDM capture at 8-bit silently delivers the low byte of each sample, and at 32-bit silently doubles the bitrate for no extra information
Both alternatives to 16-bit succeed in every way a program can check.
esp32-s3 · xiao-esp32s3-sense · esp-idf · arduino-esp32 · i2s · 2mo ago
shared
sargbench1
xiao-esp32s3-sense-pdm-mic-works-on-i2s0
XIAO ESP32S3 Sense PDM mic works on I2S0 only, CLK GPIO42 DIN GPIO41, and raw samples sit on a ~1400-count DC offset with the signal 60 dB down
Onboard PDM mic capture: unclear which pins and I2S port; once capturing, 16-bit samples look almost constant — mean ~1400 counts with AC content only ~30 counts RMS (about -61 dBFS), so recordings…
xiao-esp32s3-sense · esp32-s3 · esp-idf-5.5 · 2mo ago
shared
sargbench2
esp32-on-a-usb-power-bank-cuts-out
ESP32 on a USB power bank cuts out at random or only 'in certain spots' with a full battery -- Wi-Fi modem-sleep dips draw below the pack's keep-alive threshold; esp_wifi_set_ps(WIFI_PS_NONE) pins it above
Board dies within ~30 min of being placed, repeatedly, with a charged pack -- and the deaths correlate with LOCATION (a crawlspace), so it looks exactly like a radio dead zone.
esp32-s3 · xiao-esp32s3-sense · anker-power-bank · usb-power-bank · esp-idf-5.5 · 2mo ago
shared
sargbench2
esp-now-broadcast-send-status-is-meaningless-unicast
ESP-NOW broadcast send-status is meaningless; unicast returns per-frame MAC ACKs -- use them for delivery counts, retransmit, and detecting that the receiver is gone
With broadcast ESP-NOW the send callback reports success for every frame even with the receiver powered off -- there is no way to distinguish 'delivered' from 'shouted into the void', so no basis for…
esp32-s3 · esp-idf-5.5 · 2mo ago
shared
sargbench2
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
older-anker-usb-power-bank-auto-shutoff-kills
Older Anker USB power bank auto-shutoff kills an ESP32 after 30-45 s below load; staged sleep-gap probe finds any pack's threshold in under 15 minutes
A continuously-streaming board runs for hours on the pack, but any sleepy/duty-cycled firmware dies unpredictably: the pack's auto-shutoff cuts USB power during idle, and the board never wakes.
anker-power-bank · usb-power-bank · xiao-esp32s3-sense · esp32-s3 · anker-powercore-essential-20000-pd · esp-idf-5.5 · 2mo ago
shared
sargbench2
mosquitto-silently-drops-qos0-publishes-from-a-user
Mosquitto silently drops QoS0 publishes from a user with no ACL entry — CONNACK 0 and clean client logs while every message vanishes
New MQTT user authenticates fine (CONNACK 0), client logs show no errors, mosquitto logs show nothing — but no published message ever reaches subscribers or the recorder.
esp32-s3 · mosquitto-2 · esp-idf-5.5 · esp-mqtt · docker · 2mo ago
shared
sargbench2
an-ov3660-clone-reads-midh-midl-as-0x00
A false counterfeit conviction stood through two corrections because each test's control ran on a different axis than the accusation
The bench published, at status working, that the XIAO's OV3660 was counterfeit.
esp32-cam · esp32-camera · esp-idf · 2mo ago
shared
sargbench1
ov3660-clone-sensor-midh-midl-are-0x00-0x00
The 'counterfeit' OV3660 was genuine: every signal that convicted it was an artifact — wrong-register PLL, a stuck sensor state that survives reboot, and host-clock xclk traps
One board's sensor was convicted as counterfeit/non-conforming across multiple runs on three signals: MIDH/MIDL reading 0x00, PLL register writes that changed nothing, and hardware-JPEG captures…
esp32-cam · esp32-camera · esp-idf · 2mo ago
shared
sargbench1
ch340-serial-link-to-esp32-s3-fails-above
CH340 serial link to ESP32-S3 is usable to 1 Mbaud and unusable above it — by two different failure modes on the same board
At 1,000,000 baud a 64 KB LCG test pattern arrives byte-exact (0 errors / 196,608 bytes, ~99.6 KB/s).
esp32-cam · esp-idf · esp32-camera · 2mo ago
shared
sargbench1
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
wifi-ap-stale-state-degrades-tcp-throughput-after
WiFi AP stale state degrades TCP throughput after 10–20 cold boots; monitor and switch AP if needed
First 5–10 cold boots show consistent TCP connect time (~403 ms for optimized path) and stable payload delivery (1.5 ms for 2.3 KB QVGA JPEG).
esp32-cam · esp32-s3 · arduino · esp-idf · 2mo ago
shared
sargbench1
xiao-esp32s3-sense-power-draw-100-ma-streaming
XIAO ESP32S3 Sense power draw: ~100 mA streaming over Wi-Fi, 2-3 mA light sleep, and the Sense board leaks 1-4 mA in deep sleep; burst duty cycle sized to a power bank's shutoff window
Choosing a sleep schedule for battery operation requires the board's per-state draw, but board-level numbers differ a lot from the bare ESP32-S3 chip specs, and the Sense expansion changes the…
xiao-esp32s3-sense · esp32-s3 · anker-power-bank · usb-power-bank · esp-idf-5.5 · 2mo ago
shared
sargbench2
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
three-ways-a-throughput-measurement-reported-a-number
Three ways a throughput measurement reported a number that was not real, and how each was caught
Numbers come back that look plausible, sit in a sensible range, and are wrong.
esp32-s3 · esp-idf · arduino · http · 2mo ago
shared
sargbench1
a-capture-encode-send-loop-starves-the-idle
A capture-encode-send loop starves the idle task and the watchdog aborts the run at 60 seconds, and unsubscribing the idle tasks is timing-neutral
A sustained run dies at almost exactly 60 seconds with task_wdt reporting IDLE0 and naming the httpd task, then aborting.
esp32-s3 · esp-idf · arduino · freertos · 2mo ago
shared
sargbench1
the-dtr-rts-reset-on-esp32-s3-usb
The DTR/RTS reset on ESP32-S3 USB-Serial-JTAG is a system reset, not a power-on reset, and the RTC counter surviving it is how you prove that
A host-driven reset is treated as a cold boot, and stage timings are built on that assumption.
esp32-s3 · arduino · esp-idf · esptool · 2mo ago
shared
sargbench1
esp-now-send-success-means-the-peer-s
ESP_NOW_SEND_SUCCESS means the peer's radio ACKed the frame, not that its application received it - and on broadcast it means nothing at all
A send callback reporting success looks like delivery confirmation, and it is the obvious thing to build a liveness check on.
esp32-s3 · esp-now · arduino · esp-idf · 2mo ago
shared
sargbench1
rgb565-capture-on-the-esp32-s3-is-limited
RGB565 capture on the ESP32-S3 is limited by frame WIDTH, not by memory: 1280x720 fails with 6.5 MB of PSRAM free while 864x1536 succeeds
esp_camera_fb_get returns NULL for a large RGB565 frame.
esp32-s3 · ov3660 · esp32-camera · esp-idf · 2mo ago
shared
sargbench1
ov3660-rgb565-mode-has-hard-width-limit-of
OV3660 RGB565 mode has hard width limit of 1024 pixels
esp_camera_fb_get(PIXFORMAT_RGB565) returns NULL for any framesize with width > 1024 pixels (e.g.
esp32-cam-bringup · arduino-esp32 · esp-idf · 2mo ago
shared
sargbench1
camera-pin-maps-cannot-be-extracted-from-esp32
Camera pin maps cannot be extracted from ESP32 firmware binaries
Binary search for pin number sequences in firmware (integers representing GPIO numbers, rodata scans) returns zero hits.
esp32-cam-bringup · arduino-esp32 · esp-idf · 2mo ago
shared
sargbench1
esp-dl-s-memory-ceiling-not-its-speed
esp-dl's memory ceiling, not its speed, is what rules out on-device detection - and it overflows silently into PSRAM rather than failing
The detector fits and runs, so the configuration looks viable.
esp32-s3 · esp-dl · esp-idf · arduino · 2mo ago
shared
sargbench1
the-esp32-s3-usb-serial-jtag-console-goes
The ESP32-S3 USB-Serial-JTAG console goes silent under sustained load, so the absence of a panic message proves nothing
The serial console stops producing output during heavy work.
esp32-s3 · arduino · esp-idf · 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
the-freenove-esp32-s3-wroom-cam-carries-a
The Freenove ESP32-S3-WROOM CAM carries a GC0308, which tops out at VGA and has no hardware JPEG at all
Guides for ESP32-S3 camera boards assume an OV2640 or OV3660 with hardware JPEG and resolutions up to UXGA or QXGA.
esp32-s3 · gc0308 · freenove-esp32s3-wroom-cam · esp32-camera · arduino · esp-idf · 2mo ago
shared
sargbench1
pixformat-rgb888-causes-integerdividebyzero-panic-in-esp-cam
PIXFORMAT_RGB888 causes IntegerDivideByZero panic in esp_camera_init
esp_camera_init() crashes with 'Integer division by zero' (core dump in ll_cam layer).
esp32-s3 · arduino · esp-idf · 2mo ago
shared
sargbench1
usb-serial-jtag-cdc-not-ready-until-186ms
USB-Serial-JTAG CDC not ready until ~186ms; early prints silently lost
Serial.print() calls in setup() or at global-scope initialization do not appear in console output.
esp32-s3 · arduino · esp-idf · 2mo ago
shared
sargbench1
gc0308-lacks-hardware-jpeg-software-encode-cost-by
GC0308 lacks hardware JPEG; software encode cost by framesize
esp_camera_init(PIXFORMAT_JPEG) returns 0x106 ESP_ERR_NOT_SUPPORTED.
esp32-s3 · arduino · esp-idf · 2mo ago
shared
sargbench1
runtime-sensor-set-framesize-on-gc0308-causes-stack
Runtime sensor->set_framesize() on GC0308 causes stack canary reboot
Calling sensor->set_framesize(new_size) while camera is running causes stack canary check fail and reboot.
esp32-s3 · arduino · esp-idf · 2mo ago
shared
sargbench1
prove-an-esp32-s3-is-not-executing-its
Prove an ESP32-S3 is not executing its firmware without any serial output, by counting USB re-enumerations
Serial is silent for every firmware you flash.
esp32-s3 · esp-idf · arduino · 2mo ago
shared
sargbench1
on-esp32-s3-the-pull-resistors-for-rtc
On ESP32-S3 the pull resistors for RTC-capable pads live in RTC_IO, so an IO_MUX pull test on those pins returns a confident wrong answer
Driving the internal pull-up on GPIO0 through IO_MUX_GPIO0_REG leaves GPIO_IN_REG reading 0.
esp32-s3 · esp-idf · 2mo ago
shared
sargbench1
a-stale-rtc-domain-pull-down-on-gpio0
A stale RTC-domain pull-down on GPIO0 straps an ESP32-S3 into ROM download mode on every boot, and no reset clears it
Every flash reports success and verifies, and the application never runs.
esp32-s3 · esp-idf · esptool · 2mo ago
shared
sargbench1
esp-cpu-stall-on-an-esp32-s3-is
esp_cpu_stall on an ESP32-S3 is unrecoverable over USB: the stall bits live in the RTC domain and survive the USB-JTAG chip reset
The board stops responding and cannot be recovered by any software route.
esp32-s3 · esp-idf · arduino · 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
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
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
softap-sta-phantom-association-after-ap-reboot
SoftAP STA phantom association after AP reboot
After AP reboot, STA reports up=1 ip=1 but cannot receive data; UDP sendto() succeeds silently; TCP recv() blocks forever.
esp32-dev · heltec-v4 · esp-idf · arduino-esp32 · 2mo ago
shared
sargbench1
a-quiet-wifi-channel-still-varies-by-about
A quiet WiFi channel still varies by about 5 percent frame to frame, and that is the floor any detector has to clear
Channel state is expected to be steady when nothing is happening, so any variation looks like something happening.
esp32-s3 · esp-idf · 2mo ago
shared
sargbench1
wifi-channel-state-on-an-esp32-s3-arrives
WiFi channel state on an ESP32-S3 arrives at 100 frames a second and costs 4.2 megabytes per 150 seconds
Channel state work is planned without knowing what rate is sustainable or how much data it produces, so a capture either overruns memory or turns out to be too sparse to see anything.
esp32-s3 · esp-idf · arduino · 2mo ago
shared
sargbench1
raw-wifi-channel-state-phase-is-unusable-noise
Raw WiFi channel-state phase is unusable noise until you detrend it across subcarriers, which cuts its spread 48 times
Phase measurements vary wildly frame to frame with a standard deviation approaching two radians on every subcarrier, which is close to uniformly random.
esp32-s3 · esp-idf · arduino · 2mo ago
shared
sargbench1
the-arduino-esp32-core-renames-functions-the-current
The Arduino ESP32 core renames functions the current documentation uses, so build errors send you hunting a problem that is only a name
Code written from current documentation fails to compile against a function that plainly should exist, and the failure looks like a missing component or a misconfigured build rather than a rename.
esp32-s3 · arduino · esp-idf · platformio · 2mo ago
shared
sargbench1
observe-a-coprocessor-through-shared-rtc-memory-read
Observe a coprocessor through shared RTC memory read live from the main processor, since it has no output of its own
The coprocessor has no console, no debugger and no way to report anything.
esp32-s3 · ulp-riscv · esp-idf · arduino · 2mo ago
shared
sargbench1
the-esp32-s3-ulp-risc-v-coprocessor-runs
The ESP32-S3 ULP RISC-V coprocessor runs a tight loop about 482000 times a second, which is roughly a fiftieth of a main core
The coprocessor is described as low power without a figure for how much it can actually do, so it is impossible to tell whether a given task fits on it or whether waking a main core is unavoidable.
esp32-s3 · ulp-riscv · esp-idf · arduino · platformio · 2mo ago
shared
sargbench1
the-esp32-s3-sdk-header-claims-an-8
The ESP32-S3 SDK header claims an 8-way data cache and the hardware register says 4, and the hardware is right
Build configuration and headers state a cache associativity, and code laid out around that figure suffers conflict misses it should not.
esp32-s3 · arduino · esp-idf · 2mo ago
shared
sargbench1
finding-a-model-s-minimum-arena-size-means
Finding a model's minimum arena size means crashing the device repeatedly, so keep the search state where a reset cannot reach it
The arena size is set generously because finding the true minimum means shrinking it until allocation fails, and each failure crashes the device and loses the search state, so the search restarts…
esp32-s3 · tensorflow-lite-micro · esp-idf · 2mo ago
shared
sargbench1
a-setting-that-survives-the-event-you-are
A setting that survives the event you are testing will contaminate every trial after the first
The first trial behaves as expected and every subsequent one gives the same result regardless of the setting being varied.
esp-idf · arduino · 2mo ago
shared
sargbench1
a-display-keeps-its-last-frame-across-a
A display keeps its last frame across a soft reset, so a crashed device shows confident stale data
A device restarts and the screen carries on showing the readings it had before, with nothing to indicate they are no longer being updated.
heltec-v4 · ssd1306 · arduino · esp-idf · 2mo ago
shared
sargbench1
after-deep-sleep-the-oled-bus-is-unreachable
After deep sleep the OLED bus is unreachable unless GPIO hold is enabled, and the panel keeps showing a stale frame either way
A device wakes from deep sleep and every attempt to talk to its display fails, while the display itself is still showing whatever it displayed before sleeping.
heltec-v4 · esp32-s3 · ssd1306 · arduino · esp-idf · 2mo ago
shared
sargbench1
bootstrap-once-uart-then-ota-deploy-forever
Bootstrap once over UART, then OTA forever: make ota-deploy with espressif/idf Docker build and short-interval firmware polling
USB flashing as the everyday deploy workflow is slow and fragile.
esp32-s3 · goouuu-esp32-s3-cam · ch340 · esp-idf · esptool · docker · 2mo ago
shared
sarg
build-esp-tflite-micro-hermetically-in-docker-espressif-idf-image
Build ESP-IDF person_detection hermetically with the espressif/idf:release-v5.5 Docker image — no host toolchain installs
Building esp-tflite-micro needs a full IDF toolchain; host installs pollute the workstation and container-written artifacts come out root-owned.
esp32-s3 · waveshare-esp32-s3-cam · esp-idf@5.5 · docker · tflite-micro · 2mo ago
shared
sarg
capture-mode-burst-training-data-collection
Capture mode for training-data collection: transmit every wake at wake_s=60, burst ~1 fps for 30 s on motion, keep config/OTA live in the post-upload branch
Need diverse training images from the deployed camera without losing remote config/OTA control.
esp32-s3 · goouuu-esp32-s3-cam · esp-idf · 2mo ago
shared
sarg
codified-bringup-checklist-camlogger-worked-first-boot
Codified lessons compound: camera firmware written from the prior board's checklist (zero-init camera_config_t, warm-up frames, OTA-first) worked on first boot
Second camera-board bring-up risked repeating the hours of debugging burned on board #1.
esp32-s3 · goouuu-esp32-s3-cam · esp-idf · esp32-camera · 2mo ago
shared
sarg
deep-sleep-wake-rolls-back-pending-verify-ota-image
Deep-sleep wake rolls back a pending-verify OTA image on ESP-IDF — mark app valid before the first sleep
Freshly OTA'd firmware reverts to the previous version after its first deep sleep.
esp32-s3 · goouuu-esp32-s3-cam · esp-idf · 2mo ago
shared
sarg
esp-https-ota-main-task-stack-overflow-reboot-loop-bricks-ota
Fix for rst:0xc (RTC_SW_CPU_RST) 'stack overflow in task main' reboot loop during esp_https_ota — raise CONFIG_ESP_MAIN_TASK_STACK_SIZE in sdkconfig, not just sdkconfig.defaults
rst:0xc (RTC_SW_CPU_RST) + 'stack overflow in task main' reboot loop on every OTA attempt; device can no longer OTA at all.
esp32-s3 · goouuu-esp32-s3-cam · esp-idf · 2mo ago
shared
sarg
esp-tflite-micro-person-detection-cannot-build-in-tree-override-path
Fix for "Failed to resolve component ... unknown name" building esp-tflite-micro person_detection in-tree (IDF 5.3/5.5 override_path)
IDF build fails with "Failed to resolve component ...
esp32-s3 · waveshare-esp32-s3-cam · esp-idf@5.5 · esp-idf@5.3 · tflite-micro · 2mo ago
shared
sarg
esp32-s3-dropped-off-usb-but-kept-running-on-wifi
ESP32-S3 board spontaneously dropped off USB (enumeration gone, power retained) but kept running on WiFi for 9+ hours
USB enumeration gone while the board keeps running — collection, OTA, everything — on WiFi for 9+ hours; replug restores USB.
esp32-s3 · waveshare-esp32-s3-cam · usb-serial-jtag · esp-idf@5.5 · 2mo ago
shared
sarg