USB reading problem.

Subscribe to the forum to receive notifications about new posts.
Post Reply
IndiamTech
Posts: 1
Joined: Thu Jun 27, 2024 9:44 am

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.
You do not have the required permissions to view the files attached to this post.
User avatar
_ViR_
Posts: 14
Joined: Wed Jun 26, 2024 8:58 pm
Contact:

just curious, which library(list) you used ?
Last edited by _ViR_ on Fri Jun 28, 2024 2:27 pm, edited 1 time in total.
User avatar
Shraddha
Posts: 74
Joined: Fri Jun 14, 2024 3:54 pm

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. *:)
Post Reply