×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    6

    Nokia 7650/3650 phone point-to-multipoint as master

    As I understand that the phone(3650/7650) supports multiple

    connections as a master, and it was said in this forum that there

    are Bluetooth APIs which support establishing multiple connections.
    What are these APIs?

    I am using the BTPoint-to-Point example app as my testing app.

    Some modifications are made in CMessageClient class, but the

    results are always failed. I got "unable to connect. Max number

    of bluetooth connections are already in use" error message. Then

    in that class I tried to connect to some hard coded bluetooth

    device addresses(bypassing the searching steps), and it was panic

    with BTLib 0 code. So, I am wondering if anyone has successfully

    made mulitple connections programmatically?

    Any advice is highly appreciated!

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    9
    Is there any kind of change to get atleast some kind of explanation to this question?

    Please!

  3. #3
    Registered User
    Join Date
    Mar 2003
    Location
    Sweden
    Posts
    26

    Multiple bluetooth connections.

    Quite by chance I stumbled on how to do this when trying to connect to devices automatically...

    The problem is with using the RNotifier function StartNotifierAndGetResponse with Bluetooth. All the examples use this to show the list of known Bluetooth devices.
    That code does not handle multiple data connections.

    I was able to connect my 3650 to my computer, and do an automatic connect to my other bluetooth device using the code described in an other thread (search för automatic Bluetooth connection). You'll probably have to create your own code for getting the whole list of devices and letting the user choose between them. The only downside is that the Bluetooth status icon (at the top right of the screen) is controlled from the RNotifier plugin stuff. (You can even disable bluetooth in the settings, the automatic connect will still work... :-)

    Hope this helps!

  4. #4
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Berlin, Germany
    Posts
    58
    you might be interested in this, too: http://www.berlinfactor.com/Symbian.Section/BtTest.html

    it should do multiple connections.. however, i tested this with two phones only, for now, because i simply don't have a third one.. :-)

    it includes a tcp layer for testing in the emulator, too.

    try ignoring all the crap except for the src/net and src/net/bt folder and you should get a good idea on how to do bluetooth bi-directional comms and multiple connections..

    regards,

    tfdj

    _____________________________________________
    http://www.berlinfactor.com/The.French.DJ/index.html

  5. #5
    Registered User
    Join Date
    Oct 2003
    Location
    Oulu
    Posts
    18
    Hi,

    Do U have experience with open bluetooth connections and searching bluetooth devices at the same time (with RHostResolver) ?

    I am searching other devices and at the same time trying to exchange data with an open bluetooth connection. The data exchange hangs when RHostResolver is busy, even when cancelling the discovery the delays for exchanging data are up to 10 seconds... :-(

    In which files do U have your bluetooth stuff (BTtest.zip or Essentials.zip?) I couldn't download the essentials.zip file.

    BR, Hans

  6. #6
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Berlin, Germany
    Posts
    58
    i fixed the download link. but the bluetooth stuff is contained in the BtTest.zip in the src/net/bt folder.

    i am, however, not doing anything in parallel. because only the client is "discovering" BEFORE it can make a connection.. of course.. :-)

    well, the server could be sending data while a new client may be discovering him.. that's not a problem..

    AFAIK it is a problem to do discovery and send/receive at the same time on the same device.. but i think this is a generic bluetooth problem. there's a post from a bluetooth SIG member somewhere talking about this.. i think it is cyperabi.. :-) but i dunno..

    regards,

    tfdj

  7. #7
    Registered User
    Join Date
    Jul 2003
    Posts
    28

    So, is it impossible to have background BT connections?

    Hi,
    From the previous discussion I understood that BT "Searching"
    dialog does not come up if there is any active link on the device.

    Is it true? Is there any way to reconfigure the system to make it work? Can we get a definitive answer from a Nokia expert?

    Pocket PC and desktop Windows do not have this ridiculous
    limitation.

    I have to write a BT application, which will maintain a background
    connection most of the time (from device boot forward).
    And now I found that no other BT applications can work while
    my application is connected, which appears to be a show stopper.

    Any suggestions?

    Thank you
    John

  8. #8
    Registered User
    Join Date
    Oct 2003
    Location
    Oulu
    Posts
    18
    Hi,

    When a bluetooth connection is existing U can't use the RNotifier Plug-in anymore. It will tell U that the max number of bluetooth connections is already in use.

    That RHostResolver class can search for other bluetooth devices even when there is already a bluetooth connection existing.

    Having bluetooth activity on the background is no problem (I have at the moment 3 open bluetooth connections active on the background while doing menu stuff for the user, phone must be client). My problem is (was) that the search for new devices and having existig bluetooth connections doesn't work so well (delays up to 10 seconds).

    But if U only want bluetooth activity on the background without discovery for new devices I believe U won't have problems.

    BR, Hans

  9. #9
    Registered User
    Join Date
    Jul 2003
    Posts
    28

    No, still does not work

    Hi,
    >When a bluetooth connection is existing
    >U can't use the RNotifier Plug-in anymore.

    This is the problem. My application has a
    connection on the background and all other
    apps, who want to use BT, cannot scan.

    > That RHostResolver class can search for
    >other bluetooth devices even when there
    >is already a bluetooth connection existing.

    This is not a solution, because all other apps
    use the RNotifier Plug-in.

    I cannot distribute my application if it will
    break all other BT apps.

    So, it is still a show stopper for me.

    Any help?

    Is there a way to detect when RNotifier Plug-in starts
    (by another app), so I can disable my connection
    for a while?

    Thank you
    John

  10. #10
    Registered User
    Join Date
    Oct 2003
    Location
    Oulu
    Posts
    18
    Hi,

    Sorry...I don't know a solution to your problem. :-(

    For your own applications U could replace the RNotifier with your own made searcher and display those... But like you said...other applications use that RNotifier so it still wouldn't be such a good solution.

    BR, Hans

Posting Permissions

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