Last updated on Wednesday, 01-Sep-2004 08:28:14 UTC.
Copyright © 2001-2004 Nokia Corporation
Written by Dmitry Kasatkin
Sections from four to six was added by Miklos Quartus
Updated 31.8.2004 by Henri Ranki.
- How to find devices around me
- How to connect to device which requires PIN code
- How to find services available on remote device
- How to synchronise Palm with a PC using Affix
- How to setup LAN connection between two Affix PCs
- How to push a business card to a Nokia mobile phone
<address> := 00:01:02:03:04:05
<PIN> := "12345"
<service> := SERial | LAN | DUN | HEAdset
How to find devices around me
kds> btclt discovery 4
Address: 00:80:37:ee:38:9f, Class: 0x520204, Name: "KDS-T68"
or if you do not want to resolve remote names. This is faster:
kds> btclt inquiry 4
How to connect to device which requires PIN code
- Set PIN code.
kds> btctl addpin <address> "1234"
kds> btctl addpin default "12345"
PIN code can be up to 16 symbols.
- Cconnect to device.
kds> btclt connect <address> [<service>]
Serial service is used if omit.
How to find services available on remote device
kds> btclt browse <address>
kds> btclt search <address>
if btclt browse does not return any results.
It happens because some devices does not support browsing.
At least I have seen it with Digianswer Windows Bluetooth Stack ver. 1.09.
How to synchronise Palm with a PC using Affix
You need a Bluetooth firmware capable of connecting through
the Serial Port Profile on both sides. Make sure that the drivers are installed
properly on each end. In this example, I used a PCMCIA Nokia Connectivity Card
DTL-4 and a Palm Vx with a Blue5 add-on extension card.
- Insert the card and start
btsrv daemons on your PC.
- Issue the command
btctl addpin default <your_favourite_pin_code>
- Pair your Palm with your PC.
First go to System->Prefs->Bluetooth and add your PC to
the list. Then select General->Properties from the drop-down menu
and press Pair. If it asks for the pincode, enter your pincode
given on the PC side. Select Serial Port from the list. Once it's
paired, select this entry as a default Bluetooth device.
- Establish Bluetooth connection from Palm to PC.
Go to HotSync and select Local, Bluetooth (Serial).
Start the HotSync operation.
- Synchronise the Palm with the PC.
The virtual device /dev/bty0..4 is created on the PC side when the
Bluetooth connection is established. The last digit in the device's
name may vary according to the line which Affix is connected to (though
usually it's 0). You may check it out with
command. Finally, use the sync function of your favourite software.
How to setup LAN connection between two Affix PCs
Make sure that the Affix drivers are loaded properly and bt interface is
up. Check it out with 'ifconfig'. The local bluetooth address (BD_ADDR)
can be extracted with
btctl bdaddr. Make sure the python-tk
and python-gtk is installed and enable X display authorisation to the
btsrv program's user account OR setup pincode manually with
addpin default <pincode>.
On the server side do
Since affix starts up pppd, a proper PPP needs to be installed on
your system. You may need to add a 'noauth' option to /etc/ppp/options,
or comment out 'auth'. That's all.
On the client side do
Yep. Your LAN should be fired up, look out for default gateway. The remote peer's IP
address is most probably 192.168.0.1, that's where the 'btsrv' is running.
btctl pair <address>
btctl connect <address> LAN
pppd /dev/bty0 (with root rights).
How to push a business card to a Nokia phone
In this example we will push a standard business card file (.vcf)
into a Bluetooth capable Nokia 6310. This requires that the Bluetooth
functionality would be enabled on the phone. Try <menu-10> and
btctl pair <address-of-the-phone>
btctl push <address-of-the-phone> file.vcf
The file's content with the .vcf extension should correspond to the standards. It's a
simple text file. Here's a brief example for Nokia mobile phone:
For Nokia 7650 and N-Gage phones the format is:
After pushing, the phone will report that a business card was received
in a regular way. This method described here is supposed to work with
practically all Bluetooth-enabled phones which has 'OBEX Object Push
END OF DOCUMENT