Bluetooth 4.0

mrossen

Active Member
Licensed User
Longtime User
Hi,

I have made an app with uses the serial library.

My app connects to my bluetooth device without any problem.

When I moving out of range it disconnects as it should, and when I come into range it connects as it should again.

This works fine on all my devices, except my HTC One X.

On the One X the device will not connect automaticaly when I come into range again.

The One X is the only phone I have with bluetooth 4.0, so I think this can be the problem.

Is there anyone there have a problem similay to this, or maybe have a clue to what can cause the problem.

Mogens
 

mrossen

Active Member
Licensed User
Longtime User
Hi Erel,

I have tested with HTC Desire, HTC Desire HD, HTC Sensation and HTC Wildfire.
They all work perfect.

I also have the same problem with my Samsung Tab 10.1. But this is a tab so I dont know if there is a difference here.

What do I have to look for in the unfiltered log?
Thanks, Mogens
 
Upvote 0

mrossen

Active Member
Licensed User
Longtime User
It runs in the backgound in a service.

and with serial.listen

If you want to see the code I can post it later today. I am not behind my own computer.

Mogens
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
So the other side tries to connect to it, right?

You should check for messages related to Bluetooth.
In version 1.90 I added support for B4A-Bridge over Bluetooth.
Some device work perfectly (including Galaxy Tab 10'). Others were not stable. If I remember correctly there are more than 700 reported bugs in Android about Bluetooth.
 
Upvote 0

mrossen

Active Member
Licensed User
Longtime User
Yes, you are correct. It is my bluetooth device there is "master"

Thanks, I will try to look in the log later.

Mogens
 
Upvote 0
Top