Difference between revisions of "Bluetooth"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
Bluetooth is a good way to establish a wireless connection. Here is how you can do it with Linux.
+
Bluetooth is a good way to establish a wireless connection. Here is how you can do it with Linux.  
  
= Make sure your hardware works =
+
= SUSE Linux 12.2 =
 +
Your hardware must be compatible, and the correct drivers must be loaded. To check this, [[open a console]]:
 
  tweedleburg:~ # hwinfo --bluetooth --short
 
  tweedleburg:~ # hwinfo --bluetooth --short
 
  bluetooth:
 
  bluetooth:
Line 9: Line 10:
 
         00:16:4E:62:BE:31      Nokia 6230i
 
         00:16:4E:62:BE:31      Nokia 6230i
  
= Transfer files =
+
== Transfer files ==
To transfer a file from your mobile phone to your computer, start the obex push daemon on your computer:
+
The best possibility to transfer files is to call the program bluetooth-applet. Install it with the [[command]]
  obexpushd -B
+
yast -i gnome-bluetooth
Then, on your mobile phone choose that you want to transfer a file to your computer.
+
Then call it with the command
 +
bluetooth-applet
 +
It will show an icon in your systray that looks like this: [[File:Snapshot-bluetooth.png]]. Click on it, then select "Set up new device...", click through till you see "Successfully set up new device". Now when you click on that icon you can select your BlueTooth device (e.g. Nokia C2-01) and select "Browse files". There you can view and copy the files in a file manager.
 +
 
 +
= SUSE Linux 12.1 =
 +
All instructions have been tested with SUSE Linux 12.1 but should work same or similar with every combination.
 +
 
 +
== Check your hardware ==
 +
Your hardware must be compatible, and the correct drivers must be loaded. To check this, [[open a console]]:
 +
  tweedleburg:~ # hwinfo --bluetooth --short
 +
bluetooth:
 +
                        Cambridge Silicon Radio Bluetooth Dongle (HCI mode)
 +
tweedleburg:~ # hcitool scan
 +
Scanning ...
 +
        00:16:4E:62:BE:31      Nokia 6230i
 +
 
 +
== Transfer files ==
 +
The best possibility to transfer files is to call the program bluetooth-applet. It will show an icon in your systray that looks like this: [[File:Snapshot-bluetooth.png]]. Click on it, then select "Set up new device...".
 +
 
 +
= older SUSE Linux distributions =
 +
 
 +
== with KDE 3.5 ==
 +
Using KDE 3.5 or older you can point your konqueror to bluetooth:/// and you will be able to use your phone's files just as if they were local.
 +
 
 +
= Debian =
 +
This is a Nokia example
 +
# apt-get install bluez-hcidump bluez-pin bluez-utils libbluetooth1 libsdp2
 +
# /etc/init.d/./bluez-utils restart
 +
# hcitool scan
 +
# l2ping 00:11:9F:5E:D8:32
 +
# sdptool browse 00:11:9F:5E:D8:32
 +
# /etc/bluetooth/rfcomm.conf
 +
rfcomm0 {
 +
device 00:11:9F:5E:D8:32;
 +
channel 9;
 +
comment "Nokia 6230";
 +
}
 +
# /etc/init.d/./bluez-utils restart
 +
# rfcomm bind /dev/rfcomm0 00:11:9F:5E:D8:32 9
  
 
= Future reference =
 
= Future reference =
 
If you still have problems, have a look at the commands
 
If you still have problems, have a look at the commands
 
* obexftp
 
* obexftp
 +
* obexpushd -B
  
 
= See also =
 
= See also =
 
* http://blog.mypapit.net/2007/10/howto-send-and-recieve-files-over-bluetooth-with-ubuntu-linux.html
 
* http://blog.mypapit.net/2007/10/howto-send-and-recieve-files-over-bluetooth-with-ubuntu-linux.html

Latest revision as of 19:33, 23 August 2013

Bluetooth is a good way to establish a wireless connection. Here is how you can do it with Linux.

SUSE Linux 12.2

Your hardware must be compatible, and the correct drivers must be loaded. To check this, open a console:

tweedleburg:~ # hwinfo --bluetooth --short
bluetooth:
                       Cambridge Silicon Radio Bluetooth Dongle (HCI mode)
tweedleburg:~ # hcitool scan
Scanning ...
        00:16:4E:62:BE:31       Nokia 6230i

Transfer files

The best possibility to transfer files is to call the program bluetooth-applet. Install it with the command

yast -i gnome-bluetooth

Then call it with the command

bluetooth-applet

It will show an icon in your systray that looks like this: Snapshot-bluetooth.png. Click on it, then select "Set up new device...", click through till you see "Successfully set up new device". Now when you click on that icon you can select your BlueTooth device (e.g. Nokia C2-01) and select "Browse files". There you can view and copy the files in a file manager.

SUSE Linux 12.1

All instructions have been tested with SUSE Linux 12.1 but should work same or similar with every combination.

Check your hardware

Your hardware must be compatible, and the correct drivers must be loaded. To check this, open a console:

tweedleburg:~ # hwinfo --bluetooth --short
bluetooth:
                       Cambridge Silicon Radio Bluetooth Dongle (HCI mode)
tweedleburg:~ # hcitool scan
Scanning ...
        00:16:4E:62:BE:31       Nokia 6230i

Transfer files

The best possibility to transfer files is to call the program bluetooth-applet. It will show an icon in your systray that looks like this: Snapshot-bluetooth.png. Click on it, then select "Set up new device...".

older SUSE Linux distributions

with KDE 3.5

Using KDE 3.5 or older you can point your konqueror to bluetooth:/// and you will be able to use your phone's files just as if they were local.

Debian

This is a Nokia example

  1. apt-get install bluez-hcidump bluez-pin bluez-utils libbluetooth1 libsdp2
  2. /etc/init.d/./bluez-utils restart
  3. hcitool scan
  4. l2ping 00:11:9F:5E:D8:32
  5. sdptool browse 00:11:9F:5E:D8:32
  6. /etc/bluetooth/rfcomm.conf
rfcomm0 {
device 00:11:9F:5E:D8:32;
channel 9;
comment "Nokia 6230";
}
  1. /etc/init.d/./bluez-utils restart
  2. rfcomm bind /dev/rfcomm0 00:11:9F:5E:D8:32 9

Future reference

If you still have problems, have a look at the commands

  • obexftp
  • obexpushd -B

See also