hydrabus / hydrafw

HydraBus HydraFW official firmware for open source multi-tool for anyone interested in learning/developping/debugging/hacking/Penetration Testing for basic or advanced embedded hardware
https://hydrabus.com/hydrabus-1-0-specifications
Apache License 2.0
365 stars 92 forks source link

UART Bridge Mode Issue: Fails to Open Serial Port in WebSerial #171

Closed seuros closed 5 months ago

seuros commented 5 months ago

I am encountering an issue with the Hydrabus device when trying to use UART bridge mode. Specifically, I am unable to connect to the device using WebSerial via a browser. The connection attempt fails with the error "Failed to open Serial port."

Steps to Reproduce

Expected Behavior I expect the browser to successfully connect to the Hydrabus device in UART bridge mode without any errors.

Actual Behavior The browser fails to connect to the Hydrabus device, and I receive an error message stating "Failed to open Serial port."

Board: Hydrabus v1.0

0x8008135 commented 5 months ago

Hello,

Looks like you have a permission issue. I tested and could get it listed and even interact with the shell or uart bridge.

Screenshot from 2024-05-01 14-02-59

bvernoux commented 5 months ago

Thanks for your feedback @0x8008135 so the issue is solved waiting feedback from seuros Yes I confirm I have tested on my side with Windows11 Pro it works perfectly using Chrome browser v124 (or any browser which support correctly WebSerial) When configuring bridge you shall exit and release the USB COM port before to switch to Chrome browser and use WebSerial like https://web.esphome.io

seuros commented 5 months ago

I confirm, Windows worked flawlessly.

For Linux i had to add the user to the dialout group, then reset the session.

$ sudo usermod -aG dialout $USER

Thanks

bvernoux commented 5 months ago

Thanks for the confirmation for information the step to provide the USB CDC permission for Debian/Ubuntu is explained in Wiki: