Skip to content
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

Change USB VID:PID for Circuit Playground Express #4

Open
dhalbert opened this issue Feb 12, 2018 · 3 comments
Open

Change USB VID:PID for Circuit Playground Express #4

dhalbert opened this issue Feb 12, 2018 · 3 comments

Comments

@dhalbert
Copy link

Currently a MakeCode program running on a CPX advertises as a USB composite device with HID and WebUSB support. The USB VID:PID used is 0x03EB:0x2402, which is the Atmel VID and a sample PID. (See

"USB_DEFAULT_PID": "0x2402",
and
"USB_DEFAULT_PID":"0x2402",
.)

We're documenting support of WebUSB for CPX, and we also need to support it on Windows 7. Unlike Windows 10, Windows 7 needs user-installed drivers, and we need to put the VID:PID in the .inf driver file.

We'd like to change the VID:PID to an Adafruit number. Our VID is 0x239A. We have several defined PID's already for the CPX: 0x0018 is for the UF2 bootloader, 0x8018 is a CDC PID for use with Arduino, and 0x8019 is used by CircuitPython. We could reuse the UF2 or Arduino one for MakeCode, or we'd be happy to assign a new one. Do you have a preference or a long-term plan for uses these ID's?

We can submit a PR once we decide on the PID. Thanks!

Tagging @ladyada who's involved in this as well.

@pelikhan
Copy link
Contributor

In order to support this, we will have to issue an update to the Windows app as the VID/PID pair is in the app manifest.
@mmoskal @abchatra

@ladyada
Copy link

ladyada commented Feb 13, 2018

OK, i'd prefer to give y'all a unique PID so you can tell for sure when a makecode-programmed board is attached - if you have a specific one you want, anything > 0x0022 and doesn't start with 0x8nnn is available

@mmoskal
Copy link
Contributor

mmoskal commented Feb 13, 2018

The Windows app already has the UF2 VID/PID, so that should work. The only question is if Windows won't get confused about different set of interfaces in bootloader and user mode. It may be enough to just have a different serial number on bootloader and user mode.

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

No branches or pull requests

4 participants