Skip to content

usb_cdc.serials[1].connected always return False for Raspberry Pi Pico #4345

Closed
@ismael-miguel

Description

@ismael-miguel

Firmware

Adafruit CircuitPython 6.2.0-beta.3 on 2021-03-04; Raspberry Pi Pico with rp2040

Code/REPL

import usb_cdc
usb_cdc.serials[1].connected

Behavior

Running the following code ALWAYS returns False, even when reading data to/from the Raspberry Pi Pico, on that USB CDC channel.

>>> import usb_cdc
>>> usb_cdc.serials[1].connected
False

Additional Info

Despite returning False, the link is working properly.

I can send and receive data, without any issues.


According to this: https://circuitpython.readthedocs.io/en/latest/shared-bindings/usb_cdc/index.html

True if this Serial is connected to a host. (read-only)

Since it is connected to a host, should return True.

And no, the Raspberry Pi Pico is the only device connected to serial, and both ports belong to it:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions