Refusing BLuetooth Connections

Login to reply to this topic.
Thu, 2007-01-25 09:09
Joined: 2005-03-06
Forum posts: 183
Hi there,

I been away for a while , so havent have a chance to see whats new with Bluetooth on Ver 9. Anyway, the problem I was trying to previously solve was to have my Bluetooth switched on but to refuse all incoming connection attempts automatically.

Is there any way to do this now in Ver 9 platform?

The reason I want to do this is because I want to have a device detectable but dont want to have connection requests popping up on my screen from example so bluetooth virus someone has running on their phone. Anywone tries to connect - I want to be able to silently reject the connection.

Anyone have a clue?

Thanks,
issyp

Thu, 2007-01-25 11:50
Forum Nokia Champion
Joined: 2004-05-26
Forum posts: 732
Re: Refusing BLuetooth Connections
Open the Bluetooth set the phone visibility to Hidden.  Grin I don't know whether there is any public API to do this. By the way read the latest Bluetooth documentation from Forum.Nokia, it may be useful for you to update the latest changes.

Thu, 2007-02-22 07:12
Joined: 2005-03-06
Forum posts: 183
Re: Refusing BLuetooth Connections
good one Smiley but seriously , I need the phone to be discoverable by other devices but to ignore any connection attempts.

isseyp
Mon, 2007-03-05 05:01
Forum Nokia Champion
Joined: 2004-05-26
Forum posts: 732
Re: Refusing BLuetooth Connections
Quote from: isseyp
good one Smiley but seriously , I need the phone to be discoverable by other devices but to ignore any connection attempts.

Check this API TBTServiceSecurity::SetDenied(), I'm not much sure whether this will help you or not.

Wed, 2007-03-21 04:45
Joined: 2005-03-06
Forum posts: 183
Re: Refusing BLuetooth Connections
Indeed  TBTServiceSecurity::SetDenied() may be useful, but I need the ServiceID of the default bluetootn listner to use it I guess. Any idea how to get the ServiceIDs of all the BT services running on the phone?
Sat, 2007-03-24 14:07
Forum Nokia Champion
Joined: 2004-05-26
Forum posts: 732
Re: Refusing BLuetooth Connections
Quote from: isseyp
Indeed  TBTServiceSecurity::SetDenied() may be useful, but I need the ServiceID of the default bluetootn listner to use it I guess. Any idea how to get the ServiceIDs of all the BT services running on the phone?

There is no public API's to query about a local device SDP database. Hope looking to the BTDiscovery example application with the 2.x SDK will help you to get the SDP entries of a remote device.

  • Login to reply to this topic.