How to implement custom PID and VID?
Posted: Thu Aug 31, 2023 7:35 pm
I imagine that maybe my question is too much of a beginner, but I've researched a lot about it and I haven't found anything enlightening about it.
I use esp32-s2 in my commercial products, my devices have USB for the user to update the devices, and for now I'm only using the USB Serial feature, but I want to start using the real USB protocol, and for that I need the Custom PID for the web software I'm developing to automatically connect to my device. I already requested the PID allocated in the Espressif VID, but I still have no idea how I will enter this into the device when I have the custom PID. I already have the inclusion of the USB API in my code and I've tested codes like the following below.
[Codebox]MSC_Update.onEvent(usbEventCallback);
USB.onEvent(usbEventCallback);
USBSerial.begin();
USB.PID(0x81A4);
USB.VID(0x303A);
USB.begin();[/Codebox]
But when recognizing the device by my computer, I notice that the PID has not been changed, could someone point me out what I'm doing wrong? I want to use all the USB API so that my device is recognized by the computer with the product information (brand name, model, version, etc).
I use esp32-s2 in my commercial products, my devices have USB for the user to update the devices, and for now I'm only using the USB Serial feature, but I want to start using the real USB protocol, and for that I need the Custom PID for the web software I'm developing to automatically connect to my device. I already requested the PID allocated in the Espressif VID, but I still have no idea how I will enter this into the device when I have the custom PID. I already have the inclusion of the USB API in my code and I've tested codes like the following below.
[Codebox]MSC_Update.onEvent(usbEventCallback);
USB.onEvent(usbEventCallback);
USBSerial.begin();
USB.PID(0x81A4);
USB.VID(0x303A);
USB.begin();[/Codebox]
But when recognizing the device by my computer, I notice that the PID has not been changed, could someone point me out what I'm doing wrong? I want to use all the USB API so that my device is recognized by the computer with the product information (brand name, model, version, etc).