Document and test 1.17.1.5 USB logging sleep workaround
This commit is contained in:
1 parent
09639d7e02
commit
c7a249376e
12 files changed
+302
-21
No files matched your search
@@ -10,7 +10,8 @@ The firmware identifier and main release tag follow
|
||||
`v1.17.1.5-halo-keymind-cascade-dev-<commit>`, matching the 1.17.1.4 naming
|
||||
convention. Supplemental pages retain the `repeater-room-`, `utility-`,
|
||||
`logging-`, `lora-ota-`, and `full-profiles-` prefixes where those outputs
|
||||
exist. All pages are development prereleases.
|
||||
exist. The Companion page is marked Latest; the supplemental pages remain
|
||||
development prereleases.
|
||||
|
||||
This release uses the USA/Canada radio preset and Cascade runtime defaults.
|
||||
The release build records the resolved frequency, bandwidth, spreading factor,
|
||||
@@ -32,15 +33,20 @@ button is only polled. Closing a terminal must not be treated as unplugging
|
||||
the USB host. Espressif documents the underlying
|
||||
[native USB sleep limitation](https://docs.espressif.com/projects/esp-idf/en/v4.4.7/esp32s3/api-guides/usb-otg-console.html#limitations).
|
||||
|
||||
On 1.17.1.5, use the repeater's remote admin CLI, or its USB terminal before
|
||||
it disappears:
|
||||
To enable **USB logging on an ESP32 1.17.1.5 image with logging support**,
|
||||
disable power saving first. Use the role's text terminal, or the repeater's
|
||||
remote admin CLI if USB has already disappeared:
|
||||
|
||||
```text
|
||||
powersaving off
|
||||
set usb.logging on
|
||||
powersaving
|
||||
get usb.logging
|
||||
```
|
||||
|
||||
The second command should return `off`. This saves the setting and takes
|
||||
The read-back commands should report power saving `off` and USB logging `on`.
|
||||
For an image without USB logging, use just `powersaving off` and `powersaving`
|
||||
to apply/check the sleep workaround. Disabling power saving saves the setting and takes
|
||||
effect immediately; it does not erase the node or change LoRa RX power
|
||||
saving (`radio.rxps`). If USB does not reappear after disabling sleep
|
||||
remotely, power-cycle once and check that the port and display button remain
|
||||
@@ -48,6 +54,18 @@ usable beyond the two-minute mark. Ordinary reflashing can retain the
|
||||
saved power-saving setting, so check it during comparisons with another
|
||||
firmware build too.
|
||||
|
||||
On unified Full infrastructure, also run `powersaving off` before enabling
|
||||
USB through `set logging.output usb` or `set logging.output both`. These are
|
||||
separate commands. Turning logging off does not automatically restore the
|
||||
saved power-saving setting. nRF52 logging does not need this ESP32 workaround.
|
||||
|
||||
**WiFi/MQTT-only logging does not need `powersaving off` while the
|
||||
Repeater/Room Server MQTT bridge is running.** The original `26303793` code
|
||||
already prevents device sleep in that state. Select `set logging.output wifi`
|
||||
where supported and check `get bridge.running`; `get bridge.enabled` alone
|
||||
only checks the saved preference. Full Companion MQTT uses WebConfig instead
|
||||
of infrastructure `logging.output`/`bridge.*` commands.
|
||||
|
||||
The source correction keeps native USB serviced while a host is enumerated,
|
||||
including when its terminal is closed. Enabled live USB logging also blocks
|
||||
ESP32 light sleep, even without a host. FreeRTOS can still idle/yield; this
|
||||
@@ -59,7 +77,8 @@ LoRa. Button activity keeps the CPU and display awake for at least two minutes;
|
||||
holding or pressing the button again extends the interval. The usual display
|
||||
timeout can keep the screen on longer. An intentional long-press power-off
|
||||
retains its existing action. After the wake interval, sleep is allowed when
|
||||
power saving is enabled, logging is off, and no native USB host is attached.
|
||||
power saving is enabled, logging is off, no native USB host is attached, and
|
||||
no running bridge or pending work needs service.
|
||||
|
||||
Host simulations cover both native USB modes, terminal close/reconnect,
|
||||
logging toggles, OTA inhibition, simultaneous button/LoRa wake configuration,
|
||||
|
||||
Reference in new issue
Block a user