×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Regular Contributor
    Join Date
    Dec 2004
    Posts
    231

    two bluetooth connections simultaneously

    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

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105
    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.

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    48

    Re: two bluetooth connections simultaneously

    You can test the max number simultaneous connections using:

    System.getProperty("bluetooth.connected.devices.max");

    Bye.

  4. #4
    Regular Contributor
    Join Date
    Dec 2004
    Posts
    231

    Re: two bluetooth connections simultaneously

    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

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105
    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 …

  6. #6
    Regular Contributor
    Join Date
    Dec 2004
    Posts
    231

    Re: two bluetooth connections simultaneously

    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

  7. #7
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: two bluetooth connections simultaneously

    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

  8. #8
    Regular Contributor
    Join Date
    Dec 2004
    Posts
    231

    Re: two bluetooth connections simultaneously

    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

  9. #9
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105
    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?

  10. #10
    Regular Contributor
    Join Date
    Dec 2004
    Posts
    231

    Re: two bluetooth connections simultaneously

    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?

  11. #11
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105
    Show me a Bluetooth chipset which supports Scatternet.

    You failed to state, what scenario you want exactly and which phones are targeted.

  12. #12
    Regular Contributor
    Join Date
    Dec 2004
    Posts
    231

    Re: two bluetooth connections simultaneously

    I think there is a misunderstood: I don't know if there exists a device that supports scatternet in j2me. Does it ?

  13. #13
    Registered User
    Join Date
    Feb 2008
    Posts
    1

    Re: two bluetooth connections simultaneously

    Quote Originally Posted by dcrocha View Post
    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, I'm very interested in the document that you said but the links goes wrong!!! Can you give me another link? Thks!

  14. #14
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105
    encurto, does this, especially its current location help?

  15. #15
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    87

    Re: two bluetooth connections simultaneously

    can anybody tell how to do it in python

Similar Threads

  1. Unable to Connect. Maximum number of bluetooth connections already in use." Error
    By rmuralidharan in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2008-12-09, 14:00
  2. Replies: 10
    Last Post: 2006-08-08, 17:08
  3. Simultaneous Bluetooth connections on 6680
    By drazvan in forum Bluetooth Technology
    Replies: 2
    Last Post: 2006-04-09, 11:17
  4. Nokia 7650 support Bluetooth audo?
    By ovjo12 in forum Bluetooth Technology
    Replies: 5
    Last Post: 2003-07-17, 18:50
  5. Replies: 2
    Last Post: 2002-09-02, 07:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×