Hi,
is it possible to have two bluetooth connections simultaneously in one phone using bluetooth API?
I mean to manage the two different connections to two different devices simultaneously by two separate threads.
Thanks
Antonio
Hi,
is it possible to have two bluetooth connections simultaneously in one phone using bluetooth API?
I mean to manage the two different connections to two different devices simultaneously by two separate threads.
Thanks
Antonio
Yes, I have done four connections so far – then I run out of testing devices, however, it depends on the phone which you are using as Bluetooth Master.
You can test the max number simultaneous connections using:
System.getProperty("bluetooth.connected.devices.max");
Bye.
Ok, so for example a server in a phone can do acceptandopen() untill the value of bluetooth.connected.devices.max has been reached.
Right?
thanks
Paranoid_Android, forget this property. It is unreliable as it gives a maximum for certain master/slaves states only.
matrix241, please have a look at the Bluetooth for JSR-82 introductory material here on Forum Nokia. You have to change your server/client views …
thanks, but I didn't understand one thing : can be managed more than one connection simultaneously?
One phone can be connected to two phones simultaneously? not one connected and the other in queue as in the example.
thanks
Hi Matrix241,
Perhaps you'd want to take a look at this document: https://secure.forum.nokia.com/info/..._0_en.zip.html, it gets into more details about interconnecting multiple devices.
In s60, you normally can connect to 7 different devices, and in Series 40, to just one. Incoming connections are normally limited to 1 as well, so you have to use a "master-connects-all-slaves" approach, also described in the document.
Hope it helps.
Daniel
Hi,
but what does happen when two devices try to connect to the same device which is waiting for connection and accept with acceptandopen()?
And what happens if a device is finding other devices/services with devicediscovery or servicediscovery and in another thread it accepts other connections with acceptandopen() ? I mean what happens if a device is searching other devices and in a separate thread it accepts other device request of connection ? Can a device do this thing?
thanks
Yes and No.
This depends, depends, yes it depends on the phone model you are using.
What do you want to do actually? One of these 1000+1 master theses about JSR-82 and scatternets or any real world solution?
thanks traud,
I'm interested in real devices behaviour, not theory.
I read that scatternets are not implemented in jsr-82 of actual devices. Is it true?
Show me a Bluetooth chipset which supports Scatternet.
You failed to state, what scenario you want exactly and which phones are targeted.
I think there is a misunderstood: I don't know if there exists a device that supports scatternet in j2me. Does it ?
encurto, does this, especially its current location help?