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

Thierry44800
Posts: 3
Joined: Wed Feb 15, 2023 5:49 pm

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

Postby Thierry44800 » Sun Feb 26, 2023 10:36 pm

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.

ESP_Sprite
Posts: 9727
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Mon Feb 27, 2023 12:15 am

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.)

Thierry44800
Posts: 3
Joined: Wed Feb 15, 2023 5:49 pm

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

Postby Thierry44800 » Mon Feb 27, 2023 10:32 am

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

ESP_Sprite
Posts: 9727
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Tue Feb 28, 2023 1:20 am

Sorry, I don't know enough about Arduino to answer that question.

Who is online

Users browsing this forum: No registered users and 49 guests