meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.61k stars 899 forks source link

[Bug]: Heltec Wireless Tracker v1.1 Serial non-responsive after some time (sleep?) #4758

Closed 65a closed 1 month ago

65a commented 2 months ago

Category

Serial

Hardware

Heltec Wireless Tracker

Firmware Version

2.5.0.9ac0e26

Description

Serial works right after boot. If I leave it unattended for some time, and then try to connect serial, the serial terminal hangs and nothing is printed. It seems like the peripheral may be in a bad state after sleep or something.

Relevant log output

n/a (that's the problem)
fifieldt commented 2 months ago

testing.

65a commented 2 months ago

An easier way to reproduce here with two recent boards, is to let them boot and attach to /dev/ttyACM later. They seem to stay working if you attached serial "early" enough.

fifieldt commented 2 months ago

ah, good to know.

fifieldt commented 2 months ago

Hmm. I left one overnight and it came up OK. Trying again.

65a commented 2 months ago

Interesting, thanks for trying. I will try a different computer/terminal emulator/cable, worried there's a USB power saving issue, or something else weird going on, but I've used the same machine extensively for embedded dev (e.g. t-beam works fine)

fifieldt commented 2 months ago

No problems - intermittent issues are hard!

Just put on the latest master and ran for an hour and it was still fine.

caveman99 commented 2 months ago

Interesting, thanks for trying. I will try a different computer/terminal emulator/cable, worried there's a USB power saving issue, or something else weird going on, but I've used the same machine extensively for embedded dev (e.g. t-beam works fine)

Difference could be T-BEam uses a hardware UART/USB Chip, while the Wireless Tracker uses a software UART from the ESP32-S3 CPU.

65a commented 1 month ago

@fifieldt I flashed HEAD and I can't seem to reproduce this anymore locally, so that seems good. 2.5.0.9ac0e26 is still the alpha on flasher.meshtastic.org, with the serial issues it was quite hard to flash anything else, 1200bps reset was absolutely required before anything, including esptool. So if anyone else encounters this, flash a different version after doing 1200bps reset via the web flasher.