Page 1 of 1

possible to rename the ESP32S3 USB JTAG/serial debug unit for android ?

Posted: Sun Feb 26, 2023 10:36 pm
by Thierry44800
Hi,

I use the ESP32S3 serial JTAG/USB for transfering data with an android Smartphone.
In my application, and it is neccessary in Android to ask the user for permission to connect to the USB device.
For this, I call a predefined view calling by : bool permissionGranted = await usbManager.RequestPermissionAsync(driver.Device, this);
In this view, appair the name of the JTAG/serial : USB JTAG/serial debug unit

it is possible to rename "USB JTAG/serial debug unit", in other name on the ESP32S3 chip ?

Thnaks in advance for, your answer.

Re: possible to rename the ESP32S3 USB JTAG/serial debug unit for android ?

Posted: Mon Feb 27, 2023 12:15 am
by ESP_Sprite
No, sorry, the USB serial/JTAG unit cannot be renamed. However, the ESP32S3 also has an USB OTG peripheral, switchable to use the same port. That hardware does allow for reconfiguration. (You probably want to look into the TinyUSB examples, I think that has some stuff with custom descriptors.)

Re: possible to rename the ESP32S3 USB JTAG/serial debug unit for android ?

Posted: Mon Feb 27, 2023 10:32 am
by Thierry44800
Many thanks for your answer.
But,
How to change the USB OTG peripheral in Arduino IDE (or code),
for use Serial not on "USB JTAG/serial debug unit" ?

I don't know the option(s) for change the default USB OTG in Arduino IDE.
I have only enabled the option : USB CDC on boot in Arduino IDE and use Serial.read or Serial.Write

Re: possible to rename the ESP32S3 USB JTAG/serial debug unit for android ?

Posted: Tue Feb 28, 2023 1:20 am
by ESP_Sprite
Sorry, I don't know enough about Arduino to answer that question.