Skip to main content
MBHIN.1
Associate II
May 27, 2022
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

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

How can i pass ADC value through USB OTG ?

Andrew Neil
Super User
May 30, 2022

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

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

Andrew Neil
Super User
May 30, 2022

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.