USB OTG and Serial/UART
Posted: Fri May 02, 2025 8:59 am
New here guys and this is my first new topic.
I previously piggybacked onto viewtopic.php?p=147233&sid=92cbd9e48b33 ... ce0c6e59f3
but I think my post has been missed.
I need some advice/assistance in choosing the correct dev board/kit.
I am a software engineer, not a microcontroller or embedded engineer, so 'obvious' to you may not be obvious to me ... hence the post
I currently use ESP32-WROOM-32D dev boards for my newbie prototyping, and I have a need to integrate Android over USB, which means using OTG. All good on the 'droid side.
On the microcontroller side, I have 2 questions:
[1]
Can I connect a serial/uart adapter on the rx/tx pins so that runtime communications could flow via this OTG connection, whilst the on-board USB jack continues to provide power and is used for upload/flashing ?
If so, is there sample code for this somewhere ?
[2]
It seems there might be a more robust/simple way to achieve this as I see dev kit:
https://docs.espressif.com/projects/esp ... guide.html
which might be an out-of-box solution that would fit my needs to keep the power/upload usb port function separate from the communications function.
If this is correct, which of the USB jacks should be used for which purpose ?
I previously piggybacked onto viewtopic.php?p=147233&sid=92cbd9e48b33 ... ce0c6e59f3
but I think my post has been missed.
I need some advice/assistance in choosing the correct dev board/kit.
I am a software engineer, not a microcontroller or embedded engineer, so 'obvious' to you may not be obvious to me ... hence the post
I currently use ESP32-WROOM-32D dev boards for my newbie prototyping, and I have a need to integrate Android over USB, which means using OTG. All good on the 'droid side.
On the microcontroller side, I have 2 questions:
[1]
Can I connect a serial/uart adapter on the rx/tx pins so that runtime communications could flow via this OTG connection, whilst the on-board USB jack continues to provide power and is used for upload/flashing ?
If so, is there sample code for this somewhere ?
[2]
It seems there might be a more robust/simple way to achieve this as I see dev kit:
https://docs.espressif.com/projects/esp ... guide.html
which might be an out-of-box solution that would fit my needs to keep the power/upload usb port function separate from the communications function.
If this is correct, which of the USB jacks should be used for which purpose ?