• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Problem with Bluetooth connectivity and Android

1daveman

Lurker
Hi,
We are developing an Android application that uses bluetooth to connect to a board that we developed. We are getting a very repeatable strange behavior, so I thought I would ask if anyone else has seen this.

If we try to connect to the board after the system has been off for a while, the system connects correctly and begins to stream data. The data stream will freeze momentarily, then start, then freeze, then shut off after about 6 - 8 seconds. If we try again it will repeat this process. It is almost like the Android is checking to see if it is an ok device to connect with, and decides no for some reason.

The only way we have been able to then connect again is to un-pair and then re-pair the tablet to the board. After we unpair and re-pair, the connection works well and will continue to work well until we turn the tablet off.

Any suggestions?
 
Few questions I have:

  1. Have you checked if any interference is happening with other devices?
  2. What kind of data are you passing? How large, etc.
  3. Have you tried multiple Android builds? Maybe its a bug related to a specific OS release?

I don't have much bluetooth experience but those would be the first things I would investigate.
 
Thanks for the reply.

We tried it with two different tablets with the same result. We are sending a 22 byte message at 250 hz. We have not tried to see if there is some kind of interference going on, so thanks for the idea. We will look at that.

Thanks again.
 
Back
Top Bottom