2021-04-28 06:13 AM
So we have our STM32 making nice serial diagnostics over a USB VCP port with a UCBC connector (only pins D+/D-/Gnd),
and then I looked at my Android phone and its USBC connector... so much easier to carry in the field...
I tried the Playstore Serial/UART/VCP apps but none would connect.
Anyone know an Android App that might connect to an STM32 VCP port by USB? (USB2.X)
Paul
2021-04-28 08:19 AM
Yes, just successfully tested Serial USB Terminal from Kai Morich.
Regards
/Peter
2021-04-28 09:14 AM
Hi Peter,
I'm not so lucky:
- my Android USB preferences is showing as all grey when I connect phone to my STM32 board. The board works fine with a Win10 PC.
Possibly:
Any suggestions?
Paul
2021-04-28 10:20 AM
My setup for testing:
App setup:
Did you already find the website USB Troubleshooting by the author of this tool?
He also offers a reduced open source version of the Terminal, which has yet to be compiled (currently no APK there).
Good luck!
/Peter
[edit]
I have now tested it again with a second Android phone: when selecting USB Devices for the first time, the app probably asks for the driver. CDC should then be selected for VCP.
[/edit]
2021-04-30 04:31 AM
If I understand correctly your printf is outputting on a UART that goes to the obboard STLink and then to the PC over the USB? i.e. the STLink is providing the VCP?
I'll order cables to try that.
Do you have a part number for the OTG Adapter?
The troubleshooting for the Android App looks good but not enough for me to get it working.
I'm actually hoping to have a VCP directly from the STM32's USB pins (D+, D-, Gnd, 56K pulldowns on CC1/CC2). It works on a PC, but not on Android "yet". Maybe it needs to respond with specific Com settings or USB ID info to the Android to be recognized.
I'll try another day.
Paul
2021-04-30 04:33 AM
Note: Nothing showing up on my Android under devices. I'll get hold of a different Android phone and try again.
2023-09-23 11:55 PM
FYI: We had the wrong pulldowns on the USB-C connector, need 5K1 (not 56K).
Android connects fine to VCP on STM32 DP/DN pins.
2024-08-26 01:55 AM
Hi paul, i am facing the same issue as yours can you share the details how to resolve it. What wrong pulldown were done on the USB-C connector?
2024-08-26 05:23 AM
Hi @Paul1 Kindly Share the schematic for the USB part, I am using D+ D- and Ground with ESD protection.