Skip to content

Mangled CDC interface name #4727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Neradoc opened this issue May 7, 2021 · 1 comment · Fixed by #4734
Closed

Mangled CDC interface name #4727

Neradoc opened this issue May 7, 2021 · 1 comment · Fixed by #4734
Assignees
Milestone

Comments

@Neradoc
Copy link

Neradoc commented May 7, 2021

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.

@Neradoc
Copy link
Author

Neradoc commented May 7, 2021

Ah but without a boot.py it's not correct either (that's for the REPL serial port)

   | |   "bcdDevice" = 256
   | |   "USB Interface Name" = "CircuitPython usb_midi.ports[0]"
   | |   "USB Product Name" = "QT Py M0 Haxpress"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants