esphome / esp-web-tools

Open source tools to allow working with ESP devices in the browser
https://esphome.github.io/esp-web-tools/
Apache License 2.0
419 stars 116 forks source link

WebSerial DOMException: Failed to execute 'setSignals' on 'SerialPort': Failed to set control signals. #341

Open maitredede opened 1 year ago

maitredede commented 1 year ago

The problem

Hello,

I am trying to flash my esp32-cam from my brower (chrome linux amd64), but I have a DOMException: Failed to execute 'setSignals' on 'SerialPort': Failed to set control signals.

I have same problem with ESPHome addon for HA, or https://web.esphome.io/.

Which version of ESPHome has the issue?

2023.2.4

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2023.2.5

What platform are you using?

ESP32

Board

esp32-cam

Component causing the issue

WebSerial

Example YAML snippet

No response

Anything in the logs that might be useful for us?

OS : Linux selfme 5.10.0-21-amd64 esphome/issues#1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux
Browser : Google Chrome Version 111.0.5563.41 (Build officiel) beta (64 bits)
USB to TTL adapter : https://www.adafruit.com/product/954

Serial port is mounted as `/dev/ttyUSB0`, with owner `root:dialout` and perms `rw-rw----`. My current user is member of group `dialout`.

Steps with https://web.esphome.io/ :
- "Connect" : select `/dev/ttyUSB0`, "Connexion" => OK.
- "Prepare for first use", confirmation "Install", => DOMException

Browser logs :

esptool.js v0.1-dev
Serial port WebSerial VendorID 0x67b ProductID 0x2303
Connecting...
DOMException: Failed to execute 'setSignals' on 'SerialPort': Failed to set control signals.
_handleInstall @ c.d9c8b285.js:53
await in _handleInstall (asynchrone)
firstUpdated @ c.d9c8b285.js:53
_$AE @ index-05774b90.js:1
performUpdate @ index-05774b90.js:1
scheduleUpdate @ index-05774b90.js:1
_$E_ @ index-05774b90.js:1
await in _$E_ (asynchrone)
requestUpdate @ index-05774b90.js:1
o @ index-05774b90.js:1
v @ index-05774b90.js:1
rt @ index-05774b90.js:1
f @ c.d9c8b285.js:1
(anonyme) @ index-05774b90.js:1
(anonyme) @ index-05774b90.js:1
o @ index-05774b90.js:1
(anonyme) @ c.d9c8b285.js:90


### Additional information

_No response_
swaftrade commented 1 year ago

I have the same problem. Have you solved it?