Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read-only mode when monitoring? #601

Closed
hongquan opened this issue Feb 25, 2024 · 4 comments
Closed

Read-only mode when monitoring? #601

hongquan opened this issue Feb 25, 2024 · 4 comments

Comments

@hongquan
Copy link

hongquan commented Feb 25, 2024

I'm using espflash v2.1.0 and I found that when I do espflash monitor, it acquires exclusive access on the serial port. I want to use ESP32's UART0 to read command from PC, it means that I want the serial port to be writable for other program. Could you add one mode to espflash monitor so that it only need read access on the port?

@SergioGasquez
Copy link
Member

Hi! Have you tried something like https://github.com/esp-rs/esp-hal/blob/main/esp32-hal/examples/serial_interrupts.rs? Does that fulfill your requirements?

@hongquan
Copy link
Author

Hi @SergioGasquez , I don't understand use case of that example, so it may not be what I'm looking for.

What I need is that espflash monitor command don't take exclusive access on /dev/ttyUSB0, so I can use another program, like Python pyserial to write some command to my ESP32 board's UART0.

On another hand, I want to use ESP32 UART0 both for flashing, monitor and receiving command from PC.

@MabezDev
Copy link
Member

@hongquan Thanks for the request! I don't think this is something we want to handle in espflash itself. Feel free to use espflash as a library and manage your own monitor which doesn't take full control of the port.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Feb 27, 2024
@hongquan
Copy link
Author

Thank you, @MabezDev .
I respect your vision of espflash. If the feature cannot be added to espflash, I will use pyserial's miniterm to monitor the board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants