Android Question Bluetooth Connections

Harris

Expert
Licensed User
Longtime User
Is it possible to have more than one BT device connected at any given time (using Android tablet)?
For example, my tablet has an active BT connection to an ECM data bus (getting engine data every second).
I would also like to connect to an Iridium transceiver, at the same time to send / receive data.

Thanks
 

Harris

Expert
Licensed User
Longtime User
It should work.
Use two Serial + AsyncStreams.
That sounds quite challenging as compared to what I currently contend with using one device connection.
May leaving the current alone and use one serial + Async to get the other possibly work?
Thanks
 
Upvote 0

werner_Fourie

Member
Licensed User
Longtime User
I have worked with up to 3 connections at a time..All live with data in both directions and no problems..
I could never get 4 connections to work..
One always falls out..

Just my experience
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
I have worked with up to 3 connections at a time..All live with data in both directions and no problems..
I could never get 4 connections to work..
One always falls out..

Just my experience
Nice...
May you have some basic sample code to help me get started?
 
Upvote 0

werner_Fourie

Member
Licensed User
Longtime User
Nice...
May you have some basic sample code to help me get started?

It is part of my program..so i had to cut out the Bluetooth part..It should get You on Your way in how I do it..
Remember to create this in the starter service.. Hope it helps...
 

Attachments

  • bt.txt
    10.4 KB · Views: 269
Upvote 0

werner_Fourie

Member
Licensed User
Longtime User
Just to add to the subject..

I have found that the limitation of the amount of Bluetooth channels that can be open at a time is limited on some phones and tablets..

I don't think the limitation is in B4A ..

On some models I could open more channels and some less..

Just my experience
 
Upvote 0
Top