Skip to content

multiple uarts, specific uart needed to connect not found #13

@schaefer01

Description

@schaefer01

the rp2040 is on a bespoke board with multiple uarts, one is the command uart and it goes directly from the rp2040 to my laptop, the others are the 2nd rp2040's uart, and the 3rd is a ublox device, both are plugged into a usb hub that that is then connected to my laptop.

The tool can'f find the right uart

The documentation says there's no need to identify the serial port (ha ha)

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal

$ python -V
Python 3.10.14

$ circuitpython-tool -v
circuitpython-tool, version 0.11.0

$ circuitpython-tool devices
╭───────────────────────────── Traceback (most recent call last) ──────────────────────────────╮
│ /home/rps/anaconda3/envs/py3.10/bin/circuitpython-tool:8 in │
│ │
│ /home/rps/anaconda3/envs/py3.10/lib/python3.10/site-packages/rich_click/rich_command.py:367 │
│ in call
│ │
│ ... 9 frames hidden ... │
│ │
│ /home/rps/anaconda3/envs/py3.10/lib/python3.10/site-packages/circuitpython_tool/iter.py:16 │
│ in inner │
│ │
│ 15 │ def inner(*args: P.args, **kwargs: P.kwargs) -> list[T]: │
│ ❱ 16 │ │ return list(f(*args, **kwargs)) │
│ 17 │
│ │
│ ╭────────────────────────────── locals ───────────────────────────────╮ │
│ │ args = () │ │
│ │ f = <staticmethod(<function UsbDevice.all at 0x7fcb5a099fc0>)> │ │
│ │ kwargs = {} │ │
│ ╰─────────────────────────────────────────────────────────────────────╯ │
│ │
│ /home/rps/anaconda3/envs/py3.10/lib/python3.10/site-packages/circuitpython_tool/hw/udev.py:5 │
│ 8 in all │
│ │
│ 57 │ │ │ │ path=Path(devname), │
│ ❱ 58 │ │ │ │ vendor_id=properties["ID_USB_VENDOR_ID"], │
│ 59 │ │ │ │ vendor=properties["ID_USB_VENDOR"], │
│ │
│ ╭───────────────────────────────────────── locals ─────────────────────────────────────────╮ │
│ │ devname = '/dev/bus/usb/005/001' │ │
│ │ entry = 'P: │ │
│ │ /devices/pci0000:00/0000:00:07.0/0000:04:00.0/0000:05:02.0/0000:06:00.0/us… │ │
│ │ properties = { │ │
│ │ │ 'DEVPATH': │ │
│ │ '/devices/pci0000:00/0000:00:07.0/0000:04:00.0/0000:05:02.0/0000:06:00.0/u… │ │
│ │ │ 'SUBSYSTEM': 'usb', │ │
│ │ │ 'DEVNAME': '/dev/bus/usb/005/001', │ │
│ │ │ 'DEVTYPE': 'usb_device', │ │
│ │ │ 'DRIVER': 'usb', │ │
│ │ │ 'PRODUCT': '1d6b/2/515', │ │
│ │ │ 'TYPE': '9/0/1', │ │
│ │ │ 'BUSNUM': '005', │ │
│ │ │ 'DEVNUM': '001', │ │
│ │ │ 'MAJOR': '189', │ │
│ │ │ ... +19 │ │
│ │ } │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────╯
KeyError: 'ID_USB_VENDOR_ID'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions