Repository navigation
XIAO: loading its page no longer stops the Teensy link - #138
Merged
Merged
Conversation
The core's WebServer wrote each answer in one go and waited for the browser
until it had taken all of it. The 53 kB page on a weak WiFi link (Starlink,
-72 dBm) took about 10 s, and loop() was away from the Teensy all that time:
no hello ("XIAO silent for 10 s" in the Teensy log), the page blank.
- LinkWebServer: answers go out as fast as the connection takes them, and
the Teensy link (hello, data) and the loop watchdog keep going meanwhile;
a browser that takes nothing for 20 s is given up.
- A spare connection a browser leaves silent is dropped after 1 s when
another one waits (the core held it up to 5 s).
- The page has an ETag (build date) with Cache-Control: no-cache, as the
Teensy page: a new visit of the same build gets 304, not 53 kB again.
- XIAO C3 / S3 .bin and _USB.bin rebuilt (esp32 3.3.12, 13 Nov 13:25).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VKEBDG3GK6dn24UboyTvCp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Renato · project thread
What changes for Renato
On 13 Nov the XIAO C3 page (http://192.168.0.68/, Starlink WiFi at -72 dBm) stayed blank for several seconds, and the Teensy log of the same moment says
XIAO silent for 10 s (no hello). The cause: the ESP32 core's web server writes an answer in one go and returns only when the browser has taken all of it. The page is 53 kB; on a weak link that took about 10 s, and all that time the XIAO's loop was stuck there, so no hello went to the Teensy and the Teensy's data piled up unread./now has an ETag (the build date) andCache-Control: no-cache, as the Teensy page: a new visit with the same build gets304 Not Modified(a few hundred bytes) instead of 53 kB, so on the same PC or phone it opens at once. A new build sends the page again; the page's own build check (Teensy and XIAO pages replace themselves after a firmware update #131) still works..binand_USB.binrebuilt (esp32 core 3.3.12, 13 Nov 13:25), so Install from GitHub offers it. No change to the Teensy firmware, the link protocol or the page.How to test (bench, XIAO on Starlink)
v4.5_XIAO_ESP32C3.bin). After the restart the header says built 13 Nov 2026 13:25.XIAO silent for 10 sline./shows status 304).Checks run here
--warnings all: no warnings in the sketch._USB.bin= merged image cut at 0x10000 + program size; the first 64 kB (bootloader, partitions) are the same bytes as the old files.python3 .github/scripts/check_changelog.py: OK.Generated by Claude Code