cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F and Android USB communication method?

mun2134
Associate II
Posted on July 04, 2012 at 02:55

Android phone and STM32, using USB  Is there any way to try to control?

#usb #android
5 REPLIES 5
alok472
Associate II
Posted on July 04, 2012 at 03:07

Your question is not very clear to me, you want to control stm32 with Android phone ?

There are 2 scenerios. The STM32 becomes usb host (STM32F105/7, STM32F2, STM32F4) and Android phone acts like USB Device. The phone would appear as Mass-Storage to the stm32 or as MTP class. You need to check the specs..

The Example of mass-storage host is available.on stm32. See UM1021. The MTP driver is not yet available.

Other scenerio is ...If i know well, Android 4.0 has USB Host capability. (can you pls confirm ?) and stm32 acts like usb device. In this case the communication shall be possible. We need to check the usb class the Android phone support. The mass-storage, HID, VCOM examples for stm32 usb device are available.

Another solution is to use dual-EEPROM. 24LR64 from ST with stm32 device and use NFC capable Android phone. i have seen one such application. The phone can read/write in dual eeprom and stm32 can use the read-write for control applications.

mun2134
Associate II
Posted on July 05, 2012 at 02:17

Answer, thank you.

USB to UART IC(: FT232 and CP2102) was found.

Try to do is check the IC.

stforum.tormod9
Associate II
Posted on July 06, 2012 at 00:13

Android does have USB host support. You can for instance implement a custom USB device class on your STM32, and for convenience use libusb to write a user-space driver on Android, see

http://android.serverbox.ch/?p=151

and

http://libusb.org/ticket/119

abelloni
Associate II
Posted on December 15, 2013 at 16:43

Android phone and STM32, using USB  Is there any way to try to control?

Pink Jazz
Associate II

​I am specifically looking for a driver for the STM32F105.  I wonder if anyone has gotten it to work with Android.