921f397acb
On MacOS and Windows there are a few default serial devices that are returned by `serial.tools.list_ports.comports()`. For example on MacOS: ``` {'description': 'n/a', 'device': '/dev/cu.Bluetooth-Incoming-Port', 'hwid': 'n/a', 'interface': None, 'location': None, 'manufacturer': None, 'name': 'cu.Bluetooth-Incoming-Port', 'pid': None, 'product': None, 'serial_number': None, 'vid': None} {'description': 'n/a', 'device': '/dev/cu.wlan-debug', 'hwid': 'n/a', 'interface': None, 'location': None, 'manufacturer': None, 'name': 'cu.wlan-debug', 'pid': None, 'product': None, 'serial_number': None, 'vid': None} ``` Users of mpremote most likely do not want to connect to these ports. It would be desirable if mpremote did not select this ports when using the auto connect behavior. These serial ports do not have USB VID or PID values and serial ports for Micropython boards with FTDI/serial-to-USB adapter or native USB CDC/ACM support do. Check for the presence of a USB VID / PID int value when selecting a serial port to auto connect to. All serial ports will still be listed by the `list` command and can still be selected by name when connecting. Signed-off-by: Michael Mogenson <michael.mogenson@gmail.com> |
||
---|---|---|
.. | ||
asm_thumb2_arith.rst | ||
asm_thumb2_compare.rst | ||
asm_thumb2_directives.rst | ||
asm_thumb2_float.rst | ||
asm_thumb2_hints_tips.rst | ||
asm_thumb2_index.rst | ||
asm_thumb2_label_branch.rst | ||
asm_thumb2_ldr.rst | ||
asm_thumb2_logical_bit.rst | ||
asm_thumb2_misc.rst | ||
asm_thumb2_mov.rst | ||
asm_thumb2_stack.rst | ||
asm_thumb2_str.rst | ||
constrained.rst | ||
filesystem.rst | ||
glossary.rst | ||
index.rst | ||
isr_rules.rst | ||
manifest.rst | ||
mpremote.rst | ||
mpyfiles.rst | ||
packages.rst | ||
pyboard.py.rst | ||
repl.rst | ||
speed_python.rst |