cancel
Showing results for 
Search instead for 
Did you mean: 

USB CDC Driver for Android

pres
Associate
Posted on May 22, 2014 at 01:06

Hi All,

We are developing a product that we'd like to connect to a PC and an Android tablet.  Using the ST USB-FS-Device-Lib as a guide we created a driver for the STM32L1152D eval board.

It works perfectly on a PC.  Enumerates as a CDC and Windows assigns a Com number and we can communicate as anticipated.

Question is this:  Does ST have a driver or example code that will run on an android device and allow our dev board to enumerate?

As a parallel, FTDI supplies a very nice driver and example code that will allow a FTDI chip based solution to enumerate on a Android Tablet.

Many Thanks!
5 REPLIES 5
sdim
Associate III
Posted on May 22, 2014 at 09:09

USB CDC is a USB protocol, not ST protocol.

You can use any CDC/ACM driver.

There is an open source project on github:

https://github.com/mik3y/usb-serial-for-android

pres
Associate
Posted on May 22, 2014 at 21:53

Many thanks for your response.

>> You can use any CDC/ACM driver. 

I'd have thought so.  It appears that some craft their driver to be specific to their hardware.  The aforementioned FTDI driver being one case.

Will pull down the project you mentioned and report back.

hakan23
Associate II
Posted on August 14, 2014 at 11:06

Hello

Did you have any sucess with the driver from

https://github.com/mik3y/

??

best regard

  HÃ¥kan

steve2399
Associate
Posted on September 15, 2014 at 13:22

Hi,

We have tried the USB Serial Library for Android at  https://github.com/mik3y/usb-serial-for-android. We use this library successfully for reading from many other USB devices, but it does not work with STM32.

We set the library to select the CDC driver for STM32 but it does not receive any data. We then tried setting DTR true (a solution we have found works on Linux and OSX when trying to receive data from STM32) and we then receive data but it is a continuous stream of null bytes 0x00.

Do you have a working example of the USB Serial Library for Android CDC driver working with the STM32 please?

eric239955
Associate
Posted on January 13, 2015 at 03:55

Hi, 

Here is the working example of the USB Serial Library for Android CDC driver working with the STM32. -> https://github.com/eric2036/usb-serial-for-android

It is based on mik3y's usb-serial-for-android open source. I have forked it and added support for STM32 . I tested it for our wearable device that use STM32 F373CCT6 chipset. It works well !!

Hope it will help you !!

Thanks !