You Are Here:

Community: Developer Discussion Boards

#1 Old How to "ping" a specific bluetooth phone - 2002-11-12, 14:09

Join Date: Mar 2003
Posts: 1
baudot
Offline
Registered User
Hi developers

I'm a newbie in a bluetooth programming, that why my question could be too simple for you, but I need a solution.

I had to develop an application for computer, which must ?ping? a specific phone over bluetooth. Then I need the Unique Bluetooth Address of my phone ( the DB_ADDR). Could you explain me how to get it.

Thanks


TBTDevAddr
Reply With Quote

#2 Old RE: How to "ping" a specific bluetooth phone - 2002-11-13, 11:16

Join Date: Mar 2003
Posts: 1,200
seppo_fn's Avatar
seppo_fn
Offline
Forum Nokia Expert
E.g. in Bluetooth Software Suite from Digianswer (used with Nokia Connectivity Card, e.g.) you get the device address of all remote devices in range.

There is also an HCI command specified for getting it. In Nokia 7650 you find its Bluetooth address under the battery.

Seppo
Forum Nokia
Reply With Quote

#3 Old RE: How to "ping" a specific bluetooth phone - 2002-11-14, 10:39

Join Date: Mar 2003
Posts: 11
miklosq
Offline
Registered User
Hi,

It's very easy. You may need the BD_ADDR and not the DB_ADDR, right? On every Nokia BT-capable phone, type *#2820# and you'll get the BT device address (BD_ADDR).

Other solution is to discover the devices at hand with using Affix:

shell> btctl discovery 5
Searching 5 sec ...
Searching done. Resolving names ...
done.
+1: Address: 00:e0:03:25:27:3d, Class: 0xA20110, Key: "no", Name: "xylophone"
Computer (Handheld PC/PDA) [Networking,Audio,Information]
+2: Address: 00:02:ee:82:9b:88, Class: 0x502204, Key: "no", Name: "Alexey's phone"
Phone (Cellular) [Object Transfer,Telephony]
+3: Address: 00:02:c7:0c:54:b5, Class: 0xA20110, Key: "no", Name: "familiar"
Computer (Handheld PC/PDA) [Networking,Audio,Information]
shell>

Affix is the open-source Nokia BT driver for Linux.

BR,
Miklos
Reply With Quote

#4 Old RE: How to "ping" a specific bluetooth phone - 2002-11-14, 17:32

Join Date: Mar 2003
Posts: 37
kmkumar
Offline
Registered User
Do you a access to the SDK for the Bluetooth stack you are
using on your computer?

If so, check out the L2CAP API interface. There should be an API
for "ping"ing.Assuming that you know the Bluetooth Address (BD_ADDR)
of your phone, you should be able to ping it.

If you are familiar with Linux and BlueZ (bluez.sourceforge.net) stack, you could look at their L2CAP interface to see how they
have implemented "PING"ing using L2CAP interface and write one
for your platform.

I recommend you read bluetooth specifications particularly all the specs from HCI and above to get familiarize yourself BT concepts.


/kmk
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