esphome / esphome/esp-web-tools

Fails to work on Linux when using a devkit with a CH9102F programmer due to Read timeout exceeded error.

Open
#683 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
686
Forks
192
Avg merge
1h 1m
Merged PRs (30d)
1

Description

**Expected behavior**

The CH9102F is supposed to automatically set the chip into Boot mode during flashing, after that, the webflasher should flash the given firmware.

This works normally on Windows and and linux desktop apps (Arduino IDE and esptool).

**The issue**
The webflasher can read the serial console output of the ESP32, and even restart it through it, but during flashing, it gets stuck on "Preparing installation".

Linux version: Ultramarine Linux (Fedora 43), Behavior seems to be the same on Ubuntu 24.04

Inside of the browser console, I've found that the following output:

```
Error reading from serial port: install-dialog-CQzvAv3p.js?module:491
Error: Read timeout exceeded at install-dialog-CQzvA…js?module:491:54194
readLoop @ install-dialog-CQzvAv3p.js?module:491
await in readLoop
newRead @ install-dialog-CQzvAv3p.js?module:491
read @ install-dialog-CQzvAv3p.js?module:491
readPacket @ install-dialog-CQzvAv3p.js?module:491
command @ install-dialog-CQzvAv3p.js?module:491
await in command
sync @ install-dialog-CQzvAv3p.js?module:491
_connectAttempt @ install-dialog-CQzvAv3p.js?module:491
await in _connectAttempt
connect @ install-dialog-CQzvAv3p.js?module:491
await in connect
detectChip @ install-dialog-CQzvAv3p.js?module:491
main @ install-dialog-CQzvAv3p.js?module:491
(anonymous) @ install-dialog-CQzvAv3p.js?module:823
_confirmInstall @ install-dialog-CQzvAv3p.js?module:823
await in _confirmInstall
handleEvent @ styles-B7oMzmOl.js?module:1
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.