| Reply | « Previous Thread | Next Thread » |
|
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 |
|
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 |
|
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 |
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|