-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
esp-idf-monitor frequently fails when trying to open the serial port of a device which deep-sleeps often. e.g.: ``` --- esp-idf-monitor 1.4.0 on /dev/cu.usbmodem6101 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- [Errno 2] could not open port /dev/cu.usbmodem6101: [Errno 2] No such file or directory: '/dev/cu.usbmodem6101' Connection to /dev/cu.usbmodem6101 failed. Available ports: /dev/cu.usbmodemF554393F21402 /dev/cu.AspergitosII /dev/cu.Bluetooth-Incoming-Port ``` esp-idf-monitor currently already waits for the serial port _if_ it was opened successfully. This, however, doesn't help when opening the device for the first time. This PR adds a new flag `--retry-open` which retries opening the port indefinitely until the device shows up: ``` --- esp-idf-monitor 1.4.0 on /dev/cu.usbmodem6101 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- [Errno 2] could not open port /dev/cu.usbmodem6101: [Errno 2] No such file or directory: '/dev/cu.usbmodem6101' Retrying to open port ...... ESP-ROM:esp32s3-20210327 ```
- Loading branch information
Showing
3 changed files
with
40 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters