chegewara / EspTinyUSB

ESP32S2 native USB library. Implemented few common classes, like MIDI, CDC, HID or DFU (update).
MIT License
473 stars 70 forks source link

Setting Product / Manufacturer Name not working #116

Open jhsa opened 1 year ago

jhsa commented 1 year ago

The board name shows as "MIDI class" on the midi monitor software, as well as in the Windows 10 "Device Manager". Am I doing something wrong, or is this a bug? It should show "Test Device", right? The device ID seems to show correctly.

USB\VID_DEAD&PID_BEEF&REV_0064&MI_01 USB\VID_DEAD&PID_BEEF&MI_01

void setup() {
  midi.setBaseEP(3);

 midi.manufacturer("espressif");
    midi.serial("1234-567890");
    midi.product("Test device");
    midi.revision(100);
    midi.deviceID(0xdead, 0xbeef);
    midi.registerDeviceCallbacks(new MyUSBSallnbacks());
//    Serial.begin(115200);
midi.begin();
    delay(1000);

  if(midi.setSong(song, song_len)) {
    Serial.println("we can play now");
    midi.playSong();
  }
}
chegewara commented 1 year ago

Yes, this should work. At least it did work on my linux PC.

jhsa commented 1 year ago

Yes, this should work. At least it did work on my linux PC.

Well, I have just tried with my Android phone, and it seems to show the correct Product name. What is happening with windows then?