Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

USB Serial Interface
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

USB Serial Interface

by wizzlebippi on Thu Mar 04, 2021 1:14 am

I've seen a few references to the USB Serial interface for Circuitpython, but I can't find it in the documentation or any examples of how to use it. Could someone point me in the right direction?

Thanks,

wizzlebippi
 
Posts: 7
Joined: Mon Aug 24, 2020 9:05 pm

Re: USB Serial Interface

by tannewt on Thu Mar 04, 2021 2:34 pm

I think a guide is on our TODO list. In the meantime the API doc should help: https://circuitpython.readthedocs.io/en ... index.html

The PR has background as well: https://github.com/adafruit/circuitpython/pull/4215

I think that on supported boards you can use the `usb_cdc.serials[1]` object like a UART and it'll connect back to the second tty or COM on your host machine.

tannewt
 
Posts: 2393
Joined: Thu Oct 06, 2016 8:48 pm

Re: USB Serial Interface

by FriehoffT on Mon Apr 26, 2021 7:38 am

tannewt wrote:I think that on supported boards you can use the `usb_cdc.serials[1]` object like a UART and it'll connect back to the second tty or COM on your host machine.


What are the supported boards?
Is there a list of the supported boards somewhere?
Specially are MagTag and FeatherS2 among the supported boards?

In another post you were writing about a future possibility to enable/configure usb_cdc using boot.py. Any timeline for that?

Thank you
Thomas

FriehoffT
 
Posts: 33
Joined: Wed Sep 11, 2019 7:30 am

Re: USB Serial Interface

by tannewt on Mon Apr 26, 2021 4:39 pm

I think all boards will support it because they all use TinyUSB internally. The number of USB functions you can have active at once will vary by board though.

Dan is actively working on the dynamic USB support. Here is an issue to follow for updates: https://github.com/adafruit/circuitpython/issues/1015

We also cover status updates in the weekly meeting. Notes for this week's are here: https://github.com/adafruit/adafruit-ci ... 1-04-26.md The repo has the full note history of the meeting.

tannewt
 
Posts: 2393
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.


cron