- trying to program esp32c3
- I want to use the docker image as build system to easily change and prevent "works on my desk"/"works for me"
- found out docker on windows/mac does not support forwarding usb devices to containers. (very disappointed in Docker now)
- so I followed the using-remote-serial-port guide to start a telnet connection.
- I copied esp_rfc2217_server.exe and esp_tool into the project directory.
I start a Powershell for the server:
Code: Select all
cd <project dir>
.\esp_rfc2217_server.exe -v -p 4000 COM4
INFO:root: RFC 2217 TCP/IP to Serial redirector - type Ctrl-C / BREAK to quit
INFO:root: Serving serial port: COM4
INFO:root: TCP/IP port: 4000
In another powershell I start the container:
Code: Select all
cd <project dir>
docker run -v ${PWD}:/project -w /project -e HOME=temp -it espressif/idf:release-v5.3
Code: Select all
idf.py -DIDF_TARGET=esp32c3 --port 'rfc2217://host.docker.internal:4000?ign_set_control' flash monitor
A fatal error occurred: Could not open rfc2217://host.docker.internal:4000?ign_set_control, the port is busy or doesn't exist.
(Remote does not seem to support RFC2217 or BINARY mode [we-BINARY:False(INACTIVE), we-RFC2217:False(REQUESTED)])
same result without monitor.
In the other window I actually see the rfc2217 server changing baudrates, so looks to be working but still a weird error.
INFO:root:Connected by 127.0.0.1:50664
INFO:rfc2217.server:client accepts RFC 2217
INFO:rfc2217.server:NOTIFY_MODEMSTATE: False
INFO:rfc2217.server:client accepts RFC 2217
INFO:rfc2217.server:NOTIFY_MODEMSTATE: False
INFO:rfc2217.server:set baud rate: 9600
INFO:rfc2217.server:set data size: 8
INFO:rfc2217.server:set parity: N
INFO:rfc2217.server:set stop bits: 1
INFO:rfc2217.server:changed flow control to None
INFO:rfc2217.server:Activating reset in thread
INFO:rfc2217.server:purge in
INFO:rfc2217.server:purge out
INFO:rfc2217.server:set baud rate: 115200
INFO:rfc2217.server:set data size: 8
INFO:rfc2217.server:set parity: N
INFO:rfc2217.server:set stop bits: 1
INFO:rfc2217.server:changed flow control to None
INFO:rfc2217.server:set baud rate: 115200
INFO:rfc2217.server:set data size: 8
INFO:rfc2217.server:set parity: N
INFO:rfc2217.server:set stop bits: 1
INFO:rfc2217.server:changed flow control to None
INFO:rfc2217.server:purge in
INFO:rfc2217.server:Activating reset in thread
INFO:rfc2217.server:purge in
INFO:rfc2217.server:purge out
INFO:rfc2217.server:set baud rate: 115200
INFO:rfc2217.server:set data size: 8
INFO:rfc2217.server:set parity: N
INFO:rfc2217.server:set stop bits: 1
INFO:rfc2217.server:changed flow control to None
Anyone a clue what could be the problem and why it points me to pySerial?