circuitpython/docs/reference
Michael Mogenson 921f397acb tools/mpremote: Only auto connect to serial device with USB VID/PID.
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>
2022-11-25 17:20:14 -05:00
..
asm_thumb2_arith.rst docs: Add reference for Thumb2 inline assembler. 2015-06-25 00:21:35 +01:00
asm_thumb2_compare.rst docs: Add reference for Thumb2 inline assembler. 2015-06-25 00:21:35 +01:00
asm_thumb2_directives.rst docs: More consistent capitalization and use of articles in headings. 2020-01-06 22:17:29 +11:00
asm_thumb2_float.rst docs: More consistent capitalization and use of articles in headings. 2020-01-06 22:17:29 +11:00
asm_thumb2_hints_tips.rst docs: Remove trailing spaces and convert tabs to spaces. 2021-12-15 11:49:22 +11:00
asm_thumb2_index.rst docs: More consistent capitalization and use of articles in headings. 2020-01-06 22:17:29 +11:00
asm_thumb2_label_branch.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
asm_thumb2_ldr.rst docs: Add reference for Thumb2 inline assembler. 2015-06-25 00:21:35 +01:00
asm_thumb2_logical_bit.rst docs: More consistent capitalization and use of articles in headings. 2020-01-06 22:17:29 +11:00
asm_thumb2_misc.rst docs: Several minor changes: network, pyb, ADCAll and inline asm. 2016-01-13 21:53:26 +00:00
asm_thumb2_mov.rst py/inlinethumb: Remove 30-bit restriction on movwt instruction. 2016-01-07 16:34:11 +00:00
asm_thumb2_stack.rst docs: Add reference for Thumb2 inline assembler. 2015-06-25 00:21:35 +01:00
asm_thumb2_str.rst docs: Add reference for Thumb2 inline assembler. 2015-06-25 00:21:35 +01:00
constrained.rst py/parse: Allow all constant objects to be used in "X = const(o)". 2022-05-18 16:18:35 +10:00
filesystem.rst docs/reference/filesystem.rst: Add detail on how to use littlefs fuse. 2021-11-19 15:13:05 +11:00
glossary.rst top: Replace upip with mip everywhere. 2022-09-30 17:34:03 +10:00
index.rst docs/reference/manifest.rst: Add docs for manifest.py files. 2021-10-14 14:03:03 +11:00
isr_rules.rst docs/reference/isr_rules.rst: Describe uasyncio-IRQ interface. 2022-02-04 12:27:16 +11:00
manifest.rst top: Replace upip with mip everywhere. 2022-09-30 17:34:03 +10:00
mpremote.rst tools/mpremote: Only auto connect to serial device with USB VID/PID. 2022-11-25 17:20:14 -05:00
mpyfiles.rst py/persistentcode: Introduce .mpy sub-version. 2022-09-19 23:19:55 +10:00
packages.rst tools/mpremote: Add mpremote mip install to install packages. 2022-10-01 22:44:24 +10:00
pyboard.py.rst tools/pyboard.py: Add "touch" filesystem command. 2022-08-18 22:24:25 +10:00
repl.rst docs/reference/repl.rst: Add information about new raw-paste mode. 2020-12-01 22:35:13 +11:00
speed_python.rst docs: Remove trailing spaces and convert tabs to spaces. 2021-12-15 11:49:22 +11:00