Skip to content

Mangled CDC interface name #4727

Closed
@Neradoc

Description

@Neradoc

Running with the following boot.py on a QT PY Haxpress.

import usb_cdc
usb_cdc.enable(console=True, data=True)

Running the fixed version of serial/tools/list_ports_osx.py gives:

/dev/cu.usbmodem144443301: QT Py M0 Haxpress - CircuitPython CDC data [USB VID:PID=239A:00CC SER=6EC079803935545020312E321E200FFF LOCATION=20-4.4.4.3.3]
/dev/cu.usbmodem144443303: QT Py M0 Haxpress - Cir⅄ 䦸 [USB VID:PID=239A:00CC SER=6EC079803935545020312E321E200FFF LOCATION=20-4.4.4.3.3]

It also confuses ioreg -l

   | |   "bcdDevice" = 256
   | |   "USB Interface Name" = 
   | |   "USB Product Name" = "QT Py M0 Haxpress"

With:

import usb_hid
usb_hid.disable()
import usb_cdc
usb_cdc.enable(console=True, data=True)

We get:

/dev/cu.usbmodem144443301: QT Py M0 Haxpress - CircuitPython CDC data [USB VID:PID=239A:00CC SER=6EC079803935545020312E321E200FFF LOCATION=20-4.4.4.3.3]
/dev/cu.usbmodem144443303: QT Py M0 Haxpress - CircuitPython CDC2 data [USB VID:PID=239A:00CC SER=6EC079803935545020312E321E200FFF LOCATION=20-4.4.4.3.3]

   | |   "bcdDevice" = 256
   | |   "USB Interface Name" = "CircuitPython CDC2 data"
   | |   "USB Product Name" = "QT Py M0 Haxpress"

I was actually expecting to get an error when enabling CDC2 without disabling something else because of the number of endpoints, but I might be wrong on that.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions