Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old May 16th, 2005   #1
globalspace
Just Give Me the Beans!
 
globalspace's Avatar
 
Join Date: Dec 2004
Location: Venice
Beans: 80
Talking 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

Quote:
sudo synaptic
- Install this packages and their dependences

Quote:
gnome-bluetooth
obexserver
bluez-utils
- Load this modules into the kernel : l2cap, rfcomm

Quote:
sudo modprobe l2cap
Quote:
sudo modprobe rfcomm
- Create the new device of the Dongle. We create a virtual bind from the Usb to the Serial Device

Quote:
sudo mknod /dev/rfcomm0 c 216 0
- Activate the Bluetooth in your Phone . For the Nokia 6630 :

Quote:
Menu -> Connect. -> Bluetooth -> On
Quote:
Menu -> Connect. -> Bluetooth -> My phone's visibility -> Shown to all
Quote:
Menu -> Connect. -> Bluetooth -> My Phone's Name -> "Insert a name for your phone"
- Scan for your phone

Quote:
hcitool scan
This utils will scan the devices's Bluetooth ... it'll show something like this :

Quote:
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

Quote:
sudo gedit /etc/bluetooth/rfcomm.conf
Cancell all and insert this :

Quote:
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 :

Quote:
rfcomm0 {

device 00:11:9F:C0:FE:21;
channel 10;
comment "My Nokia Phone";

}
- Add the Nokia Channel (10) to communicate with your phone

Quote:
sudo sdptool add --channel=10 OPUSH
- Do the binding

Quote:
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
Quote:
gnome-obex-send filename
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 :
Quote:
obexserver
Go to your Gallery of the Phone and do Send file with Bluetooth. For Nokia 6630 :
Quote:
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)
Quote:
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 !!!
__________________
I'm not a Linux's genius. But i know that I Love Ubuntu

Last edited by globalspace; May 16th, 2005 at 07:31 AM..
globalspace is offline   Reply With Quote
Old May 16th, 2005   #2
rwabel
Dipped in Ubuntu
 
Join Date: Nov 2004
Location: Bern, Switzerland
Beans: 570
Send a message via ICQ to rwabel
Re: HOWTO: Hoary and Nokia Phones via Bluetooth

you are my hero!! now bluetooth is finally working for me.
I've a sony ericsson T610 and channel 10 works also for me. By default it was set to 1. I've no idea what channel means what. If someone knows, it would be great to le me know

in rfcomm.conf you could also set bind to yes, maybe this would make some commands obsolete. Unfortunately I know barely nothing about bluetooth and linux.
it looks like that for me now
Code:
 rfcomm0 {
  bind yes;
#	# Bluetooth address of the device
	device 00:0E:07:D3:B0:08;
#	# RFCOMM channel for the connection
	channel	10;
#	# Description of the connection
	comment "My T610";
}
rwabel is offline   Reply With Quote
Old May 16th, 2005   #3
globalspace
Just Give Me the Beans!
 
globalspace's Avatar
 
Join Date: Dec 2004
Location: Venice
Beans: 80
Re: HOWTO: Hoary and Nokia Phones via Bluetooth

Quote:
Originally Posted by rwabel
you are my hero!! now bluetooth is finally working for me.
I've a sony ericsson T610 and channel 10 works also for me. By default it was set to 1. I've no idea what channel means what. If someone knows, it would be great to le me know

in rfcomm.conf you could also set bind to yes, maybe this would make some commands obsolete. Unfortunately I know barely nothing about bluetooth and linux.
it looks like that for me now
Code:
 rfcomm0 {
  bind yes;
#	# Bluetooth address of the device
	device 00:0E:07:D3:B0:08;
#	# RFCOMM channel for the connection
	channel	10;
#	# Description of the connection
	comment "My T610";
}

i'm very happy for you !
glad that my how to is profit
__________________
I'm not a Linux's genius. But i know that I Love Ubuntu
globalspace is offline   Reply With Quote
Old May 25th, 2005   #4
derrick1985
Way Too Much Ubuntu
 
Join Date: Apr 2005
Beans: 321
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Hoary and Nokia Phones via Bluetooth

Thanks man, I was FINALLY able to get my motorola V551 to transer files! (now, if I could only get my webcam working i'd get completely rid of windows)

For anybody with a Motorola one, here is what you have to do:

First, go into your menu (middle button) connections---Bluetooth---setup

Turn on Bluetooth. Turn on "Find Me" (nokia reference shown to all)

Follow tutorial from hcitool down to sending/receiving files.

To be able to send files from your phone, you will first have to send a file to it. Why? Motorola has to be able to have a connection in the list in order to send files from it, and since we can't manually add one, we have to give one to the phone. Start up a file transfer of a file (any file) and then as soon as transfer starts, cancel it. There, our phone now has the neccessary settings to send files.

My example, I took some pictures. Lets get my pictures. Goto settings--- Multimedia---Pictures. Select a picture you want to send to your PC. Highlight it and press the middle button. A bunch of options are shown, scroll down to MOVE. The name of your computer that you sent a file to your phone from, will be listed. MAKE SURE OBEXSERVER is on, and you can transfer files no problem. Same things goes with recorded sounds and videos.

NOTE: Unlike windows, we cannot copy and paste more than one file at a time. (unless someone knows how) because after one files transfers, obexserver shuts down, so you have to reopen it everytime.

Anyone know how to keep obexserver on all the time, please post it here, it is REALLY frustrating.
derrick1985 is offline   Reply With Quote
Old May 26th, 2005   #5
globalspace
Just Give Me the Beans!
 
globalspace's Avatar
 
Join Date: Dec 2004
Location: Venice
Beans: 80
Re: HOWTO: Hoary and Nokia Phones via Bluetooth

Quote:
Originally Posted by derrick1985
Anyone know how to keep obexserver on all the time, please post it here, it is REALLY frustrating.
i think you could run at startup like all the command ...
__________________
I'm not a Linux's genius. But i know that I Love Ubuntu
globalspace is offline   Reply With Quote
Old May 26th, 2005   #6
derrick1985
Way Too Much Ubuntu
 
Join Date: Apr 2005
Beans: 321
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Hoary and Nokia Phones via Bluetooth

Quote:
Originally Posted by globalspace
i think you could run at startup like all the command ...
No, I mean when I type obexserver to receive a file, it receives it and then the program shuts down. I have to turn it on everytime to receive a file.
derrick1985 is offline   Reply With Quote
Old May 26th, 2005   #7
globalspace
Just Give Me the Beans!
 
globalspace's Avatar
 
Join Date: Dec 2004
Location: Venice
Beans: 80
Re: HOWTO: Hoary and Nokia Phones via Bluetooth

Quote:
Originally Posted by derrick1985
No, I mean when I type obexserver to receive a file, it receives it and then the program shuts down. I have to turn it on everytime to receive a file.

try to use

Quote:
gnome-obex-server
let me know
__________________
I'm not a Linux's genius. But i know that I Love Ubuntu
globalspace is offline   Reply With Quote
Old May 26th, 2005   #8
derrick1985
Way Too Much Ubuntu
 
Join Date: Apr 2005
Beans: 321
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Hoary and Nokia Phones via Bluetooth

Better, but still a no go. Every time my computer receives a file now, it asks to save it, and that interfers on the continuous transfer. The good news is i don't have to continuously start obexserver after every upload.

Oh yeah, and gnome-obex-server now saves the files in my home directory, that's another plus.
derrick1985 is offline   Reply With Quote
Old May 26th, 2005   #9
andreasDK
First Cup of Ubuntu
 
Join Date: Jan 2005
Beans: 11
Re: HOWTO: Hoary and Nokia Phones via Bluetooth

When my 6600 finds my PC it asks for a code.

Hence everything I type is in asterixes i cannot spell my user/root code.

Does anyone know of a solution to this?
andreasDK is offline   Reply With Quote
Old May 27th, 2005   #10
nullzero
First Cup of Ubuntu
 
Join Date: Mar 2005
Beans: 3
Re: HOWTO: Hoary and Nokia Phones via Bluetooth

worked like a charm for me!
thx a lot man!
Keep up the good brain use
nullzero is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:54 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry