Skip to main content
MBHIN.1
Associate II
May 27, 2022 7:03 AM UTC
Question

I am using STM32F4 Controller for making my product , i want to use usb with android mobile it's possible ? through OTG .

..

This topic has been closed for replies.

5 replies

Andrew Neil
Super User
May 27, 2022 9:37 AM UTC

In what way(s) do you want to "use" the USB?

Have you searched for what Android supports via USB?

eg, https://developer.android.com/guide/topics/connectivity/usb

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
MBHIN.1
MBHIN.1Author
Associate II
May 29, 2022 4:08 AM UTC

How can i pass ADC value through USB OTG ?

Andrew Neil
Super User
May 30, 2022 8:43 AM UTC

You're going to have to start with the Android documentation to see what it supports.

Then implement the corresponding class(es) in the STM's USB.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Muhammed Güler
Senior III
May 30, 2022 9:00 AM UTC

With USB VCP, you can send and receive any data you want.

Andrew Neil
Super User
May 30, 2022 9:49 AM UTC

provided Android (and the specific device/s in question) supports it!

Also a question of whether it works as Host or Device...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.