Skip to first unread message

Mike Goodwin

unread,
Mar 24, 2016, 7:57:20 AM3/24/16
to MIT App Inventor Forum
App Inventor 2 Bluetooth Compatibility issues???

I'm trying to use an Aircable bluetooth/serial adapter and
having connection problems.

App Inventor 2

I have three phones.
Moto G first generation Android 4.4.4
HTC Sprint Evo 4G Android 2.3.5
Motorola Droid Android 2.2.3

All phones pair with the Aircable.
All the programs discussed below identify
the aircable as a paired device.
All the phones run my App Inventor test programs that don't
attempt to connect to bluetooth.

I downloaded a very simple  app inventor demo.
It's a generic demo posted here:
https://groups.google.com/group/mitappinventortest/attach/f03497ca0cca0/more%20app%20code.PNG?
part=0.1&authuser=0&view=1

It works fine in android 4.4.4
It can't connect using 2.3.5  just locks up on a blank screen.
With Android 2.2.3, it gives an error message, "can't connect".

I downloaded a bluetooth terminal from the playstore.
It works in 4.4.4 and 2.3.5, but not in 2.2.3, "can't connect".

I downloaded a different bluetooth terminal from the playstore.
It only works in 4.4.4.  "Can't connect" in the other two.

Seems odd that different programs behave differently.
I would have disclosed the playstore programs, but I can't tell
how to uniquely identify them other than their icons.

I'd really like to write a program in AI2 that can work with the Aircable
in the Android 2.+ devices.

Am I missing some configuration that I can fix?  Or should I just give up?


Ghica

unread,
Mar 24, 2016, 12:24:48 PM3/24/16
to MIT App Inventor Forum
If I understand you well, the terminal programs you tried, don't work in the same way that AI2 does not work?
Why do you expect AI2 to be better than others in this respect?
I suggest that this is not an AI2 problem. Maybe you can find a terminal program that works on old phones and find out why. Then, let us know.
Cheers, Ghica.

Mike Goodwin

unread,
Mar 24, 2016, 1:58:07 PM3/24/16
to MIT App Inventor Forum
I'm saying that bluetooth behavior seems to be inconsistent.
I don't expect anything except that AI2 work with bluetooth for all supported platforms.
But I have no idea which platforms AI2 CLAIMS to support.
How do you suggest I find a bluetooth terminal program that works on old phones?
I've already tried several with inconsistent results.
At least one works on one of the older phones, as described.
How do you suggest I find out WHY it works?
If I could do that, I wouldn't be  here asking.

You suggest that I should go away and fix my own problem, then come back to report to you?

The purpose of forums is to leverage the knowledge and  experience of others.

I'm asking how to make a bluetooth terminal programmed in AI2 work on an Android 2.x phone.

So, maybe someone else has some relevant HELP.

Ghica

unread,
Mar 24, 2016, 4:05:45 PM3/24/16
to MIT App Inventor Forum
I think you have a wrong idea about app inventor. It is an entry-level system and what it can do it does and what it cannot do it does not.
If you are not satisfied with that, you are encouraged to learn Java and develop app's using the Android SDK.
And yes, one of the purposes of the forum is to leverage the knowledge and  experience of others. Which could include yours, when finding out about bluetooth.
Anyway, to get better help, you could maybe describe exactly what error you are seeing.
Cheers, Ghica.

Taifun

unread,
Mar 24, 2016, 5:00:36 PM3/24/16
to MIT App Inventor Forum
that bluetooth example you are using is actually a bad example
it does not connect correctly and using the clock component does not make sense like that, becaue Label1 will always be overwritten
how to do it correctly see also here
Taifun

Mike Goodwin

unread,
Mar 26, 2016, 12:41:34 AM3/26/16
to MIT App Inventor Forum

Thanks,
Please tell me how what I'm doing differs from the link you presented.
Stated another way, If the link'd setup works, why shouldn't mine?
Mine works on android 4.4.4, but fails on both of my 2.x phones.  It
finds the paired devices, but does not
connect.

Quoting from the link you provided:

Known Issues

<deleted some issues>

  • Sometimes "Error 507: Unable to connect. Is the device turned on?" shows up while trying to connect.

end quote


How is the timer issue related?  My test app doesn't have a timer...yet




Mike Goodwin

unread,
Mar 26, 2016, 4:20:51 AM3/26/16
to MIT App Inventor Forum

Fixed part of it.
Seems I deleted the wrong puzzle piece when I was trimming it down.
This one works in Android 4.4.4 and Android 2.2.3,
but fails to connect on the Evo 4G Android 2.3.5. error code 507.

I can send data out to the bluetooth/serial adapter and read it back
thru a loopback on the two working devices.

The EVO is the one I really want it to work with....

Ghica

unread,
Mar 26, 2016, 5:39:00 AM3/26/16
to MIT App Inventor Forum
Reply all
Reply to author
Forward
0 new messages