Hello everyone! A little question before my first purchase

Please read this if you are new to the STM32


Message to all users

I've upgraded the forum (PHPBB) to version 3.1.10 which is the last stable release in the 3.1 tree.

As far as I can tell everything is still working OK, e.g. all posts look like they are there and the attachments are OK

If anyone has any problems please PM me.
PS. Don't PM the admin account as for some reason I still don't get email notifications of these PM's (but I never have ;-)

Tobo
Posts: 2
Joined: Sat Oct 22, 2016 6:32 am

Hello everyone! A little question before my first purchase

Postby Tobo » Sat Oct 22, 2016 7:43 am

Hi all!

For the last years I played with Arduino, now I'm thinking to try one of these ultra-cheap boards like the blue-pill.

I read on the faq, that the USB port can be used as a serial port to program the MCU. I was wondering if it could be also used to exchange data between the bluepill and an android phone using an usb-otg cable.
I'm talking about both "real time" communication and data transfer.

Has anyone ever tried something like this?

Thank you all! :)

stevestrong
Posts: 722
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Hello everyone! A little question before my first purchase

Postby stevestrong » Sat Oct 22, 2016 9:09 am

The blue-pill supports the USB serial communication, in both Rx and Tx directions (full duplex).
So if the Android phone can act as USB host (is this USB-OTG?), then yes, it should be possible to exchange data.
But this is different from programming the blue-pill over USB (DFU port).

User avatar
RogerClark
Posts: 5465
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Hello everyone! A little question before my first purchase

Postby RogerClark » Sat Oct 22, 2016 8:04 pm

I recall trying an Arduino Pro Micro, with an Android phone and there were issues because Android did not recognise the usb device as a serial port.

Things may have changed now, and Android may recognise a wider variety of USB serial devices, and Linux recognises the USB serial without the need for drivers, as does OSX.

But as each phone manufacturers uses a customised version of Android, there is no way to know for sure until you try it.

madias
Posts: 812
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

Re: Hello everyone! A little question before my first purchase

Postby madias » Tue Oct 25, 2016 7:34 pm

maple mini and android USB OTG works, I tried it out with a serial monitor app.

User avatar
RogerClark
Posts: 5465
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Hello everyone! A little question before my first purchase

Postby RogerClark » Tue Oct 25, 2016 8:24 pm

Which version of Andriod ?

madias
Posts: 812
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

Re: Hello everyone! A little question before my first purchase

Postby madias » Tue Oct 25, 2016 9:17 pm

I tried it on a Samsung S5 neo, now I'm on 6.0.1 but I'm sure as I tried it it was 5.x.x

User avatar
martinayotte
Posts: 1145
Joined: Mon Apr 27, 2015 1:45 pm

Re: Hello everyone! A little question before my first purchase

Postby martinayotte » Tue Oct 25, 2016 9:22 pm

BTW, even for the same version number, manufacturers don't enable same stuff in kernel config, so one vendor can have enabled USB_OTG and another one not. Same is true with devices drivers such USB-TTL, there is so many variants...

madias
Posts: 812
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

Re: Hello everyone! A little question before my first purchase

Postby madias » Tue Oct 25, 2016 9:41 pm

So it looks like with Samsung you are on the good side with USB_OTG. I'm sure you can grab a Note 7 for almost free today (not only to be a part of the "magic smoke club")

User avatar
RogerClark
Posts: 5465
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Hello everyone! A little question before my first purchase

Postby RogerClark » Tue Oct 25, 2016 10:07 pm

I agree with Martin

Each manufacturer builds their own kernel, so there may not be an absolute guarantee that it works even for a specific version of Android.

I have a couple of very old 7 inch tablets I was hoping to use as intelligent displays, but I found that they didnt seem to recognise all USB to Serial adaptors.
I think they had code to recognise FTDI devices but not much else, and consequentially they would not detect the Arduino Pro Micro I was trying to use ;-(

madias
Posts: 812
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

Re: Hello everyone! A little question before my first purchase

Postby madias » Wed Oct 26, 2016 6:03 am

If the tablets are not totally "unknown" you can try your luck on http://www.cyanogenmod.org/and choosing an alternative firmware. Even, if it would be the same android version, you can be sure that the cyangenmod's one has unlock the drivers.


Return to “Welcome & FAQs”

Who is online

Users browsing this forum: No registered users and 1 guest