HOWTO: Hoary and Nokia Phones via Bluetooth
This how to is tested with Hoary and Nokia 6630 and a Dongle Bluetooth (Usb Bluetooth)
With this How To you could :
- Send Files via Bluetooth from your Pc to your Nokia Phone
- Send Files via Bluetooth from your Nokia Phone to your Pc
- Do everything you want with Bluetooth
Let's Start
- Open Synaptics
- Install this packages and their dependences
gnome-bluetooth
obexserver
bluez-utils
- Load this modules into the kernel : l2cap, rfcomm
- Create the new device of the Dongle. We create a virtual bind from the Usb to the Serial Device
sudo mknod /dev/rfcomm0 c 216 0
- Activate the Bluetooth in your Phone . For the Nokia 6630 :
Menu -> Connect. -> Bluetooth -> On
Menu -> Connect. -> Bluetooth -> My phone's visibility -> Shown to all
Menu -> Connect. -> Bluetooth -> My Phone's Name -> "Insert a name for your phone"
- Scan for your phone
This utils will scan the devices's Bluetooth ... it'll show something like this :
Scanning ...
00:11:9F:C0:FE:21 YOUR_PHONE_NAME
The first number is your Phone's Address. Obviously yours will be different !
Copy your Address on a post-it !
- Edit your /etc/bluetooth/rfcomm.conf
sudo gedit /etc/bluetooth/rfcomm.conf
Cancell all and insert this :
rfcomm0 {
device ADDRESS_OF_YOUR_PHONE;
channel 10;
comment "What you want
";
}
In ADDRESS_OF_YOUR_PHONE you must insert the Address wich you have write in the Post it
For example :
rfcomm0 {
device 00:11:9F:C0:FE:21;
channel 10;
comment "My Nokia Phone";
}
- Add the Nokia Channel (10) to communicate with your phone
sudo sdptool add --channel=10 OPUSH
- Do the binding
sudo rfcomm bind /dev/rfcomm0 ADDRESS_OF_YOUR_PHONE 10
for example : rfcomm bind /dev/rfcomm0 00:11:9F:C0:FE:21 10
- Now we can test the connectivity
To Send from the PC to your Nokia Phone
for example
gnome-obex-send /home/massi/Desktop/Video.3gp
It'll show a prompt with the Bluetooth Device. Select your Phone and Click OK.
To Send from Your Nokia Phone to your PC
Activate the ObexServer on your PC to accept connections from other Bluetooth Devices :
Go to your Gallery of the Phone and do Send file with Bluetooth. For Nokia 6630 :
Menu -> Gallery -> Images -> NamePhoto.jpg -> Options -> Send -> Via Bluetooth
and Select your Pc and click SELECT
You can find your files into the temp directory /tmp/
Tips
This works perfectly on Nokia 6630 but i think it could works on ALL Nokia Phone with Bluetooth because we use the Channel number 10 which is the default channel of all Nokia Phone.
I think also that if you know the channel number of your Phones which isn't Nokia you could replace in the How To and it could works !
Everytime that you reboot you must re apply this things (which you could insert into a boot-script)
modprobe l2cap
sudo modprobe rfcomm
sudo mknod /dev/rfcomm0 c 216 0
sdptool add --channel=10 OPUSH
sudo rfcomm bind /dev/rfcomm0 YOUR_PHONE_ADDRESS 10
Have Fun Ubuntu's user !!!
Last edited by globalspace; May 16th, 2005 at 12:31 PM.
I'm not a Linux's genius. But i know that I Love Ubuntu
Bookmarks