Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-S3-USB-OTG HID keyboard example error with bluescreens (AEGHB-879) #116

Open
3 tasks done
lukasboss99 opened this issue Nov 18, 2024 · 3 comments
Open
3 tasks done

Comments

@lukasboss99
Copy link

lukasboss99 commented Nov 18, 2024

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Hi,
I have an ESP32-S3_USB-OTG and have tried to receive data via the USB_Host interface by connecting a keyboard to the USB_Host port with the help of the documentation.
For this I used the HID Keyboard Example. Before that I tested the display with the other examples in the ESP IDF, which all worked. However, I could not get the HID Keyboard Example to work. As soon as I opened the Serial Monitor and plugged the USB OTG in and out a few times, I got a blue screen.
I am also very confused because there is no 5 volts at the USB host port, as 5 volts is standard for USB, and this is needed to use the connected keyboard.
Does anyone else have these problems or am I using the example incorrectly? Maybe my USB OTG is also broken?

@github-actions github-actions bot changed the title ESP32-S3-USB-OTG HID keyboard example error with bluescreens ESP32-S3-USB-OTG HID keyboard example error with bluescreens (AEGHB-879) Nov 18, 2024
@lijunru-hub
Copy link
Contributor

Please provide the path to the example code you are using. Are you using the usb_otg development board as a USB host to connect to a keyboard? This development board has a USB switch that requires separate GPIO control, and it is configured as a USB device by default.

You can quickly configure it to USB host mode using the BSP:
ESP32-S3-USB-OTG Component

@lijunru-hub
Copy link
Contributor

use bsp_usb_mode_select_host & bsp_usb_host_power_mode

@lukasboss99
Copy link
Author

I used this code esp-idf/examples/peripherals/usb/host/hid. Yes, I would like to use the USB Otg as a Usb host to connect a keyboard to it. But I have no idea how to configure it as a USB host. I have already tried to manually set the GPIO's in the Arduino IDE to enable the USB host. It was GPIO18 on high

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants