- https://help.ubuntu.com/community/BluetoothSetup
sudo apt-get install bluez-utils
karen@tom-1300:~$ sudo /etc/init.d/bluetooth restart
* Restarting Bluetooth services... [ ok ]
karen@tom-1300:~$ lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 1310:0001 Roper Class 1 Bluetooth Dongle
Bus 001 Device 001: ID 0000:0000
- Install bluez-btsco
http://packages.ubuntulinux.org/edgy/sound/bluez-btsco
karen@tom-1300:~$ sudo apt-get install bluez-btsco
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
bluez-btsco
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.0kB of archives.
After unpacking 77.8kB of additional disk space will be used.
Get: 1 http://gb.archive.ubuntu.com edgy/universe bluez-btsco 1:0.42-0ubuntu1 [17.0kB]
Fetched 17.0kB in 0s (60.5kB/s)
Selecting previously deselected package bluez-btsco.
(Reading database ... 83451 files and directories currently installed.)
Unpacking bluez-btsco (from .../bluez-btsco_1%3a0.42-0ubuntu1_i386.deb) ...
Setting up bluez-btsco (0.42-0ubuntu1) ...
- Load Kernel Module for btsco
sudo modprobe snd-bt-sco
https://help.ubuntu.com/community/BluetoothSkype
to load it permanently add it to /etc/modules, just write approriate module name at the end of the File.sudo vi /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
lp
psmouse
snd-bt-sco
- install gnome-bluetooth, obex-server
http://ubuntuforums.org/showthread.php?t=34740
karen@tom-1300:~$ sudo apt-get install gnome-bluetooth
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
gnome-bluetooth
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 194kB of archives.
After unpacking 954kB of additional disk space will be used.
Get: 1 http://gb.archive.ubuntu.com edgy/universe gnome-bluetooth 0.8.0-0ubuntu1 [194kB]
Fetched 194kB in 1s (111kB/s)
Selecting previously deselected package gnome-bluetooth.
(Reading database ... 83459 files and directories currently installed.)
Unpacking gnome-bluetooth (from .../gnome-bluetooth_0.8.0-0ubuntu1_i386.deb) ...
Setting up gnome-bluetooth (0.8.0-0ubuntu1) ...
- check for l2cap and rfcomm via dmesg
[17179615.032000] Bluetooth: L2CAP ver 2.8
[17179615.032000] Bluetooth: L2CAP socket layer initialized
[17179615.156000] Bluetooth: HIDP (Human Interface Emulation) ver 1.1-mh1
[17179615.184000] Bluetooth: RFCOMM socket layer initialized
[17179615.184000] Bluetooth: RFCOMM TTY layer initialized
[17179615.184000] Bluetooth: RFCOMM ver 1.7
- bring the Bluetooth network interface up
karen@tom-1300:~$ sudo hciconfig hci0 up
karen@tom-1300:~$ hciconfig
hci0: Type: USB
BD Address: 00:0B:0D:33:79:35 ACL MTU: 120:20 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:822 acl:0 sco:0 events:61 errors:0
TX bytes:522 acl:0 sco:0 commands:39 errors:0
karen@tom-1300:~$ hcitool scan
Scanning ...
00:12:62:CB:25:A6 K nokia
00:03:89:44:07:5F M3000 by Plantronics
- Edit your /etc/bluetooth/rfcomm.conf
sudo vi /etc/bluetooth/rfcomm.conf
#rfcomm0 {
# # Automatically bind the device at startup
# bind no;
#
# # Bluetooth address of the device
# device 11:22:33:44:55:66;
#
# # RFCOMM channel for the connection
# channel 1;
#
# # Description of the connection
# comment "Example Bluetooth device";
#
rfcomm0 {
device 00:12:62:CB:25:A6;
channel 10;
comment "Karen's Phone";
}
karen@tom-1300:/$ sudo sdptool add --channel=10 OPUSH
OBEX Object Push service registered
karen@tom-1300:/$ sudo rfcomm bind /dev/rfcomm0 00:12:62:cb:25:a6 10
karen@tom-1300:/$
- get gnome passkey applet
http://ubuntuforums.org/showthread.php?t=225703&page=2
karen@tom-1300:/etc/bluetooth$ sudo apt-get install bluez-passkey-gnome
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
bluez-passkey-gnome
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.6kB of archives.
After unpacking 106kB of additional disk space will be used.
Get: 1 http://gb.archive.ubuntu.com edgy/main bluez-passkey-gnome 0.5-2ubuntu2 [14.6kB]
Fetched 14.6kB in 0s (59.4kB/s)
Selecting previously deselected package bluez-passkey-gnome.
(Reading database ... 88545 files and directories currently installed.)
Unpacking bluez-passkey-gnome (from .../bluez-passkey-gnome_0.5-2ubuntu2_i386.deb) ...
Setting up bluez-passkey-gnome (0.5-2ubuntu2) ...
- pair with headset
put headset in discovery mode (hold down volume up and call button till red/green light flashes)
sudo hcitool cc 00:03:89:44:07:5F
karen@tom-1300:~$ sudo btsco -v 00:03:89:44:07:5F
btsco v0.42
Device is 1:0
Voice setting: 0x0060
RFCOMM channel 1 connected
Using interface hci0
0 Comments:
Post a Comment
<< Home