You Are Here:

Community: Developer Discussion Boards

#1 Old Bluetooth PtP - 2002-11-22, 09:22

Join Date: Mar 2003
Posts: 15
pemag
Offline
Registered User
Hi! I'm developing a Point-to-Point Bluetooth application for receiving data. I'd like to just accept connections from "trusted" devices and from certain services. Is there any way that I can check the device and service ID:s of incomming connections and just allow a specific device and service to establish a connection to my receiving device? In that case how do I set the device and service ID's of the connection I want to allow?
Reply With Quote

#2 Old RE: Bluetooth PtP - 2002-11-26, 12:38

Join Date: Mar 2003
Posts: 1,200
seppo_fn's Avatar
seppo_fn
Offline
Forum Nokia Expert
The examples demonstrate how to connect to an application based on service ID. The scenario you mentioned is a different case.

The filtering could be done by Bluetooth device address. The service discovery is done by searching device, which in this case is not feasible (unless you have your application also on the remote device).

For authentication and authorisation in incoming connections, please refer to 'How to set service security requirements' in the SDK Help.

Seppo
Forum Nokia
Reply With Quote

#3 Old RE: Bluetooth PtP - 2002-11-27, 08:23

Join Date: Mar 2003
Posts: 1,200
seppo_fn's Avatar
seppo_fn
Offline
Forum Nokia Expert
The authorisation means that after you have authorised a remote device, the next it connects to your device, the connection will be established automatically. With unauthorised devices, a pop up screen will ask the user to accept or decline the connection. If in this case after a certain timeout the remote device will give an error message.

To do authorisation, go to Bluetooth menu, go right with the joystick (to 'Paired devices' menu) and for a desired remote device, click Options -> set as authorised.

How to do it programmatically, is another issue. Section 'How to listen for connections from remote devices' in the SDK Help gives generic guides on how to listen for remote connections and also links to setting security.

It may be beneficial to have a look at Bluetooth Discovery example and other discovery mechanisms to have advise on how to access found devices database. However, I am not quite sure if those can be used in your case.

Seppo
Forum Nokia
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