-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(esp-idf-monitor): Add --open-port-attempts flag
esp-idf-monitor frequently fails when trying to open the serial port of a device which deep-sleeps often: $ idf.py monitor -p /dev/cu.usbmodem6101 --- 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: [...] No such file or directory: '/dev/cu.usbmodem6101' Connection to /dev/cu.usbmodem6101 failed. Available ports: /dev/cu.usbmodemF554393F21402 This commit adds a new flag `--open-port-attempts` which retries opening the port indefinitely until the device shows up: $ idf.py monitor -p /dev/cu.usbmodem6101 --open-port-attempts 0 --- 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: [...] No such file or directory: '/dev/cu.usbmodem6101' Retrying to open port ...... ESP-ROM:esp32s3-20210327 Also, add option to reconfigure reopening retry period. This will greatly increase the chance of catching more logs in devices which deep-sleep. Closes #15
- Loading branch information
1 parent
4535e7f
commit c34c83d
Showing
5 changed files
with
53 additions
and
26 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
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