Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Regular Contributor matrix241's Avatar
    Join Date
    Dec 2004
    Posts
    231
    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
    Nokia Developer Champion traud's Avatar
    Join Date
    Mar 2003
    Posts
    3,898
    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
    You can test the max number simultaneous connections using:

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

    Bye.

  4. #4
    Regular Contributor matrix241's Avatar
    Join Date
    Dec 2004
    Posts
    231
    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
    Nokia Developer Champion traud's Avatar
    Join Date
    Mar 2003
    Posts
    3,898
    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 matrix241's Avatar
    Join Date
    Dec 2004
    Posts
    231
    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 dcrocha's Avatar
    Join Date
    Jun 2005
    Posts
    923
    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 matrix241's Avatar
    Join Date
    Dec 2004
    Posts
    231
    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
    Nokia Developer Champion traud's Avatar
    Join Date
    Mar 2003
    Posts
    3,898
    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 matrix241's Avatar
    Join Date
    Dec 2004
    Posts
    231
    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
    Nokia Developer Champion traud's Avatar
    Join Date
    Mar 2003
    Posts
    3,898
    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 matrix241's Avatar
    Join Date
    Dec 2004
    Posts
    231
    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 encurto's Avatar
    Join Date
    Feb 2008
    Posts
    1
    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
    Nokia Developer Champion traud's Avatar
    Join Date
    Mar 2003
    Posts
    3,898
    encurto, does this, especially its current location help?

  15. #15
    Regular Contributor ra.ravi.rav's Avatar
    Join Date
    Aug 2008
    Posts
    87
    can anybody tell how to do it in python

Page 1 of 2 12 LastLast

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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved