You Are Here:

Community: Developer Discussion Boards

#1 Old Nokia 7650/3650 phone point-to-multipoint as master - 2003-03-04, 01:31

Join Date: Mar 2003
Posts: 6
yiyzhou
Offline
Registered User
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!
Reply With Quote

#2 Old 2003-08-20, 13:28

Join Date: Apr 2003
Posts: 9
jukkor
Offline
Registered User
Is there any kind of change to get atleast some kind of explanation to this question?

Please!
Reply With Quote

#3 Old Multiple bluetooth connections. - 2003-10-07, 16:07

Join Date: Mar 2003
Posts: 26
Location: Sweden
antijn
Offline
Registered User
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!
Reply With Quote

#4 Old 2003-11-19, 15:25

Join Date: Apr 2003
Posts: 58
Location: Berlin, Germany
The.French.DJ
Offline
Regular Contributor
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
Reply With Quote

#5 Old 2003-11-19, 22:04

Join Date: Oct 2003
Posts: 18
Location: Oulu
HansProve
Offline
Registered User
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
Reply With Quote

#6 Old 2003-11-19, 22:21

Join Date: Apr 2003
Posts: 58
Location: Berlin, Germany
The.French.DJ
Offline
Regular Contributor
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
Reply With Quote

#7 Old So, is it impossible to have background BT connections? - 2003-11-25, 22:08

Join Date: Jul 2003
Posts: 28
jhnlmn
Offline
Registered User
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
Reply With Quote

#8 Old 2003-11-26, 07:56

Join Date: Oct 2003
Posts: 18
Location: Oulu
HansProve
Offline
Registered User
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
Reply With Quote

#9 Old No, still does not work - 2003-11-26, 20:06

Join Date: Jul 2003
Posts: 28
jhnlmn
Offline
Registered User
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
Reply With Quote

#10 Old 2003-11-27, 14:15

Join Date: Oct 2003
Posts: 18
Location: Oulu
HansProve
Offline
Registered User
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
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia