Page 1 of 1
USB reading problem.
Posted: Thu Jun 27, 2024 3:05 pm
by IndiamTech
Screenshot 2024-06-27 150252.jpg
Hello,
I'm having trouble reading the USB data from the "RS232 to USB converter" using the native USB port of an ESP32 generic development board. I tested the converter with the Hercules serial terminal, and it seems to be working fine. I also checked the native USB port of the ESP32 using a serial terminal, and that seems to be working fine as well. I don't see any garbage or extra characters. However, when I connect the converter to the board's USB port, the ESP32 doesn't seem to read anything.
Take a look at code snippet.
Re: USB reading problem.
Posted: Fri Jun 28, 2024 2:17 pm
by _ViR_
just curious, which library(list) you used ?
Re: USB reading problem.
Posted: Thu Jul 04, 2024 10:24 am
by Shraddha
Here are some steps that worked for me while troubleshooting the same issue.
1. Check and install the USB host library for the ESP32. The 'esp-idf' framework has support for USB Host functionality.
2. Check the USB host initialization.
3. Make sure your code can detect the USB device.
4. Start the communication
5. Configure the endpoint for communication. This typically involves setting up bulk or interrupt transfers.
6. Use ESP_LOG to print debug information. This helps to understand at which stage the problem occurs.
7. Try different USB ports on the ESP32 board to check if any hardware issues.
8. Test the setup with different USB RS232 converters to check compatibility issues.
You can refer to the
https://docs.espressif.com/projects/esp ... _host.html
Hope this helps you. *:)