Thanks to visit codestin.com
Credit goes to github.com

Skip to content

USB_CDC DTR bad docu? #7795

Open
Open
@kreasteve

Description

@kreasteve

CircuitPython version

8.0.4 on Pico/Tiny2040

Code/REPL

import usb_cdc
usb = usb_cdc.data

if usb.in_waiting:
    print(usb.readline())

Behavior

No data is received if DTR is not active.

The note in https://docs.circuitpython.org/en/latest/shared-bindings/usb_cdc/index.html#usb_cdc.Serial.connected seems to relate to the whole thing, not only on usb_cdc.Serial.connected.

Maybe you want to update the documentation.

I tried and searched a bunch of things but I can't get it working without DTR.

Description

I'm using hterm and c# and have this issue since the versions newer as 7.3.3

Additional information

And related to

You cannot create an instance of [usb_cdc.Serial](https://docs.circuitpython.org/en/latest/shared-bindings/usb_cdc/index.html#usb_cdc.Serial). 
The available instances are in the usb_cdc.serials tuple

in https://docs.circuitpython.org/en/latest/shared-bindings/usb_cdc/index.html#usb_cdc.Serial

I never found an usb_cdc.serials tuple. I get the Serial object from usb_cdc.data

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions