Is there a way to change the Model name of a Teensy MTP portable device?

Status
Not open for further replies.

PaulS

Well-known member
I've got a Teensy 3.2 to work as MTP device and all is working well on Windows 7 & 10.
A nice touch would be to change the "Teensy" model name to the customer's product model name.

Screenshot.PNG

Would that be possible and if so, how?

Thanks,
Paul
 
I updated the MPT_t4 github Repository to allow in MTP.h to change the strings the Responder sends to Host
 
Thanks.
But since I'm using the non-T4 MTP lib from [url]https://github.com/yoonghm/MTP[/URL], I tried changing these strings in MTP.h:
Code:
    writestring("[COLOR="#FF0000"]PJRC[/COLOR]");     // Manufacturer
    writestring("[COLOR="#FF0000"]Teensy[/COLOR]");   // Model
    writestring("[COLOR="#FF0000"]1.0[/COLOR]");      // version
    writestring("[COLOR="#FF0000"]???[/COLOR]");      // serial
and here:
Code:
  void GetDevicePropValue(uint32_t prop) {
    switch (prop) {
      case 0xd402: // friendly name
        // This is the name we'll actually see in the windows explorer.
        // Should probably be configurable.
        writestring("[COLOR="#FF0000"]Teensy[/COLOR]");
        break;
    }
  }

And that worked out so thanks again for putting me on the right track!
Paul
 
Status
Not open for further replies.
Back
Top