espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
12.93k stars 7.09k forks source link

Remove /dev/tty.Bluetooth-Incoming-Port from serial port list in idf.py and esptool.py on macOS (IDFGH-13111) #14058

Open clashman opened 2 weeks ago

clashman commented 2 weeks ago

Answers checklist.

General issue report

MacOS has a default serial port at /dev/cu.Bluetooth-Incoming-Port.

It would be nice if esptool.py and idf.py would not try to connect to this port if no others are found.

i.e. in for idf.py command (tools/idf_py_actions/tools.py:131): ports = list(sorted(p.device for p in serial.tools.list_ports.comports() if not 'Bluetooth-Incoming-Port' in p.device))

radimkarnis commented 2 weeks ago

Hi @clashman, I agree, this can be very annoying. We'll filter out the Bluetooth-Incoming-Port and wlan-debug ports in our tools!