ESP32S3 USB OTG switch to Low Speed

analoglamb
Posts: 25
Joined: Thu Oct 13, 2016 5:53 am

ESP32S3 USB OTG switch to Low Speed

Postby analoglamb » Wed Aug 14, 2024 10:18 am

Hello,

1. How to switch the usb otg speed from full speed to low speed?
2. esp32s3's USB only support OTG, but in the pinout there is no usb id pin, why? I want to use USB ID pin to determine esp32s3 role. How to solve it?

Thanks
ESP32 Chip, Module, Development board! Go: http://analoglamb.com/shop/esp32

aliarifat794
Posts: 200
Joined: Sun Jun 23, 2024 6:18 pm

Re: ESP32S3 USB OTG switch to Low Speed

Postby aliarifat794 » Wed Aug 14, 2024 5:50 pm

On the ESP32-S3, D- and D+ should be tied to GPIO19 and GPIO20. More here: viewtopic.php?t=26030

chegewara
Posts: 2376
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32S3 USB OTG switch to Low Speed

Postby chegewara » Thu Aug 15, 2024 8:37 am

The easiest way IIRC is to swap D+ and D- pins, but there is also some software way (when you configure usb device code).

analoglamb
Posts: 25
Joined: Thu Oct 13, 2016 5:53 am

Re: ESP32S3 USB OTG switch to Low Speed

Postby analoglamb » Fri Aug 16, 2024 2:44 am

How to switch the usb otg speed from full speed to low speed? @espressif
ESP32 Chip, Module, Development board! Go: http://analoglamb.com/shop/esp32

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

Re: ESP32S3 USB OTG switch to Low Speed

Postby ESP_Sprite » Fri Aug 16, 2024 3:40 am

You would normally do that in the device stack, which in our case is TinyUSB. I don't think TinyUSB has proper support for this, though, as USB low speed isn't really used anymore when you also can do full speed.

analoglamb
Posts: 25
Joined: Thu Oct 13, 2016 5:53 am

Re: ESP32S3 USB OTG switch to Low Speed

Postby analoglamb » Fri Aug 16, 2024 4:04 am

Thanks
ESP32 Chip, Module, Development board! Go: http://analoglamb.com/shop/esp32

chegewara
Posts: 2376
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32S3 USB OTG switch to Low Speed

Postby chegewara » Mon Aug 19, 2024 3:41 pm

Screenshot from 2024-08-19 17-39-55.png
Screenshot from 2024-08-19 17-39-55.png (70.33 KiB) Viewed 939 times

Who is online

Users browsing this forum: No registered users and 106 guests