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

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old October 14th, 2005   #1
joker667
First Cup of Ubuntu
 
Join Date: Oct 2005
Beans: 3
Thumbs up HOWTO: Using Bluetooth to acces Mobile Phone and use BT-Headset to use Skype

I just dont know where to post it, so please feel free to move it. Comments appreaciated


Mission: Use Bluetooth to access the Files on my Mobile Phone, and to use my Bluetooth Headset with Skype - in 3 Chapters


PART 1: Copy Files from and to Mobile Phone (K700i) - simple

1. Install bluez-utils
2. Install kdebluetooth (gnome bluetooth is not as far developed as kde I think), libopenobex, qobex
3. Install konqueror
4. Check /etc/bluetooth/hcid.conf:
security should be user
pairing should be multi
pin_helper should be /usr/bluez-pin
5. restart bluez-utils /etc/init.d/bluez-utils restart
6. start kbluetoothd (it sometimes needs to be startet twice on my machine until the icon shows up in the System Notifications Tray)
7. Enable Bluetooth on your Device (Mobile Phone etc.)
8. If you click on the kbluetoothd Icon, konqueror will show up with "bluetooth:/" location, listing all BT Devices found
9. Click on your Device (sometimes only the MAC-Adress shows up), konqui will list all supported Services, and start using the Service (for my Mobile, K700i its obex File Transfer, then I can browse my Mobile like a Disk Drive, copying what I want). Previous to that, my phone wants to pair with my PC, aksing for a PIN. Just guess one (1234), after that a popup on the PC should occour, asking for the same PIN.
10. You could also send Files from the Phone to your PC, then a popup will show up, asking you, if you wish to receive the file.



PART 2: Using a Bluetooth Headset - tricky, but also easy when knowing how

1. Load Kernel Module for btsco: "sudo modprobe btsco", checking "dmesg" if it runs. To load it permanently add it to /etc/modules, just write "btsco" at the end of the File
2. Install the following missing (at least on my system) packages needed by the btsco Userspace driver. Easy, because you have apt-get or synaptic:
gcc
gcc-4.0
altgcc
libc6-dev
linux-kernel-headers
libasound2-dev
libao-dev
libbluetooth1-dev
3. Download latest btsco from http://sourceforge.net/projects/bluetooth-alsa/, unzip to Desktop perhaps
4. Time for the shell!
cd btsco-0.4
./configure
make
sudo make install
5. Now pair your Headset with your PC (as above with the Mobile):
- Headset needs to be in pairing-mode (often this is accomplished with holding the on buttons for a looong time)
- start kbluetoothd, click on it, in the opened konqueror window click on the headset (sometimes the MAC-Adress shows up)
- a popup should request the PIN for the Headset from you (mostly "0000" or "1234")
6. Start the btsco Userspace Program: "btsco -v 00:00:00:00:00" replace the zeros with the MAC Adress of your Headset (right click on kbluetoothd icon, connection details)
7. Verify its working:
- "aplay -B 1000000 -D plughw:Headset sound.wav" (replace sound.wav with a Wave-File of your choice. An MP3 also works, but you will only hear strange noise
- Use XMMS: Options -> Preferences -> Audio I/O -> Output Plugin. Select ALSA -> configure, and select your Headset as Audiodevice. Restart XMMS and you should hear the music with the Headset.
- You can use the VolumeManager from gnome to adjust the volume, right click on the speaker in the tray -> Settings -> File -> Change Device

Everyday Use: If you load the Kernelmodule automatically, you just need to execute "btsco -v your_headsets_mac_adress" - really easy for everyday use. You can optional start kbluetoothd to check Signalstreght etc.



PART 3: Using Skype

1. In Breezy, there is currently no easy way to install Skype (broken dependencies,you can just grab an older Version from here: http://www.mneylon.com/blog/archives...ype-on-breezy/ , http://www.mneylon.com/blog/go.php?h....0.11_i386.deb. Install it via "sudo dpkg -i skype_1.2.0.11_i386.deb
Alternative: http://www.ubuntuforums.org/showthread.php?t=75107, or

2. Launch Skype, go to options Headset and select "/dev/dsp1" as device

3. Try to call "echo123" to check it, when you just hear garbage, turn your headset off and on again, and start "btsco -v 00:00:00:00:00" again. This happens on my Machine every second time I try to use my Headset - also under WindowsXP!
joker667 is offline   Reply With Quote
Old October 18th, 2005   #2
Profus
First Cup of Ubuntu
 
Profus's Avatar
 
Join Date: Oct 2005
Location: Leeds, UK
Beans: 3
Kubuntu Breezy 5.10
Send a message via ICQ to Profus
Thumbs up Re: HOWTO: Using Bluetooth to acces Mobile Phone and use BT-Headset to use Skype

Thanks a lot for this howto... just what I needed.

Now I finally got my Jabra BT250 Headset to work under Linux (Kubuntu Breezy). I still can't use it with skype though, it kind of works but the sound is somewhat distorted and from time to time it fades away completely. On Windows XP and with my mobile phone it works perfectly. Any ideas what I could do?

Cheers,
Fabian

Edit:

I've found the problem now: The full duplex checkbox in the audio settings panel was disabled by default. After enabling it, the problems I experienced yesterday were gone.

A new issue has arisen though:
After making a number of calls using skype initiating a new call will fail (skype says: audio device problem, btsco says device busy), quitting and restarting skype seems to solve the problem but it's not a very comfortable solution. Btw I'm using the following skript to start up skype and enable the headset simultaneously:

#!/bin/bash
btsco -v [headset's MAC-Address] &
skype

Last edited by Profus; October 19th, 2005 at 06:46 AM..
Profus is offline   Reply With Quote
Old November 12th, 2005   #3
hp99
First Cup of Ubuntu
 
Join Date: Nov 2005
Beans: 3
Lightbulb Kdebluetooth Authentication Error Bluetooth Headset

hi, thanks for the HOWTO.

kdebluetooth 0.99+1-2beta1-2ubuntu3
bluezutils 2.20-0ubuntu3

First I tried using the gnome-bluetooth manager without success due to sdp server problems.

With kdebluetooth I ran into a stupid misconfiguration-error. The link_key file wasn't set correctly.
I've got this error message in the terminal, while kdebluetooth notified the Authentication Error:
> QFile:pen: No file name specified


Solution:
Kbluetoothd was looking for a file called link_key in /etc/bluetooth. But in out distrubution the file is called /etc/bluetooth/pin. So I renamed it. Also it should work to make a link:

#> sudo ln /etc/bluetooth/pin /etc/bluetooth/link_key -s

Just wanted to tell..
hp99 is offline   Reply With Quote
Old November 12th, 2005   #4
hp99
First Cup of Ubuntu
 
Join Date: Nov 2005
Beans: 3
Bleutooth Headset Authentication Error

hi, thanks for the HOWTO.

kdebluetooth 0.99+1-2beta1-2ubuntu3
bluezutils 2.20-0ubuntu3

First I tried using the gnome-bluetooth manager without success due to sdp server problems.

With kdebluetooth I ran into a stupid misconfiguration-error. The link_key file wasn't set correctly.
I've got this error message in the terminal, while kdebluetooth notified the Authentication Error:
> QFile:pen: No file name specified


Solution:
Kbluetoothd was looking for a file called link_key in /etc/bluetooth. But in out distrubution the file is called /etc/bluetooth/pin. So I renamed it. Also it should work to make a link:

#> sudo ln /etc/bluetooth/pin /etc/bluetooth/link_key -s

Just wanted to tell..
hp99 is offline   Reply With Quote
Old November 15th, 2005   #5
reto
5 Cups of Ubuntu
 
Join Date: Apr 2005
Beans: 18
Problem with supspend/hibernate after loading btsco

Thanks for the how-to, got my plantronics M2500 Headset to work with my Dell inspiron 9300. It works with Linphone an Kphone (next thing would be to manage to compile and install twinkle, a sip-client which allows to have phone ringing on a different device than the conversation).

However: I cannot supsend or hibernate my laptop any longer . I find the following in syslog:
Nov 15 17:41:56 localhost kernel: [4296263.056000] Restarting tasks...<6> Strange, snd-bt-scod not stopped

Did anybody manage to use a bluetotth headset and be able to supspend as well?
reto is offline   Reply With Quote
Old November 19th, 2005   #6
jdmpike
Just Give Me the Beans!
 
Join Date: Jul 2005
Beans: 69
Re: HOWTO: Using Bluetooth to acces Mobile Phone and use BT-Headset to use Skype

Hello all,

After many frustrations and stubborness, you have finally won. I have given up trying to use gnome-bluetooth, and I have started trying to use kbluetoothd.

When I enter pairing mode, kbluetoothd can see my headset and after calling bluez-pin to get the pin, it lets me open the device to see the headset profiles that exist there. This is good because I know it can sort of see the device.

However, when I try to run btsco -v <mac_addr>, the shell shows the following error.

Code:
jordan@jdmlaptop:~$ btsco -v <mac_addr>
btsco v0.4
Device is 1:0
Error: Failed to connect to SDP server: Permission denied
Assuming channel 2

Voice setting: 0x0060
Can't connect RFCOMM channel: Too many levels of symbolic links
I was actually able to use my headset to make a call with skype when using hcitool scan and btsco to connect. After the call though, I experienced the same error as above where skype would tell me "Problem with Sound device"

Thanks for the help all...
jdmpike is offline   Reply With Quote
Old December 6th, 2005   #7
Lmax
First Cup of Ubuntu
 
Join Date: Dec 2005
Beans: 5
Re: HOWTO: Using Bluetooth to acces Mobile Phone and use BT-Headset to use Skype

Installation of the headset works fine for me up to point 6. I don't get any errors. Except when i verify the installation i don't hear anything.
The headset seems to pair alright, kbluetoothd says it's connected and gives all kind of connection details.
btsco -v <mac-address> is also working fine. No errors there.
Only sometimes a strange error about a driver (see bottom of post)

But when i try to play the sound i don't hear anything. And the aplay command seems to stall(nothing happens and i have to abort. Though when i play it over my regular soundcard this works fine.

dmesg doesn't give any clues. Are there more logs i can check. Or any other clues?
I read on bluetooth-alsa site that when the dongle is on a hub it might give problems. But my bluetooth is built-in. Can't change it. And then the hub itself would probably already give problems then.

It's Ubuntu breezy on a acer trevelmate 8103. The bluetooth chipset is a broadcom BCM 2035. The headset i try to connect is a logitech HS01

Thanks for any help/response.

Code:
btsco -v output:

btsco v0.4
Device is 1:0
Voice setting: 0x0060
RFCOMM channel 1 connected
/usr/lib/openoffice2/share/gallery/sounds/explos.wav
speaker volume: 12 mic volume: 1
recieved AT+CKPD=200
recieved AT+CKPD=200
speaker volume: 12 mic volume: 1
driver is in use
connected SCO channel
Done setting sco fd
recieved AT+VGS=12
Lmax is offline   Reply With Quote
Old December 8th, 2005   #8
swathi_mathur80
First Cup of Ubuntu
 
Join Date: Dec 2005
Beans: 1
Re: HOWTO: Using Bluetooth to acces Mobile Phone and use BT-Headset to use Skype

Hello,
I am posting on this forum for the first time. Actually i am trying to transfer audio files from my pc to my headset. My pc is running Red hat Linux OS and using Bluez stack. Can anyone tell me where to find the below modules

1) libbluetooth-dev (aka libbluetooth-devel or bluetooth-devel or bluez-libs) and the
2) libasound2-dev

What does the below step mean and i don't know where to execute it,
--------------------------------------------------------
Check btsco out from cvs:
cvs -dserver:anonymous@cvs.sf.net:/cvsroot/bluetooth-alsa login
cvs -dserver:anonymous@cvs.sf.net:/cvsroot/bluetooth-alsa co btsco
--------------------------------------------------------

Thanks in Advance,
Swathi
swathi_mathur80 is offline   Reply With Quote
Old December 10th, 2005   #9
Lmax
First Cup of Ubuntu
 
Join Date: Dec 2005
Beans: 5
Re: HOWTO: Using Bluetooth to acces Mobile Phone and use BT-Headset to use Skype

I now have the problem i cant connect to my headset anymore. It connected a couple of days ago, but that doesn't work anymore.
Bluetooth is working. I can connect with my nokia phone, and i use a bluetooth mouse so that's not the problem
If i do hidd connect it doesnt seem to work.

hidd --connect 00:0D:44:0B:96:86
Can't get device information: Success

kbluetoothd output's these errors
kbluetoothd: Checking state00:0D:44:0B:96:86 1
kbluetoothd: HciSocket:pen()
kbluetoothd: Checking state00:07:61:12:C1:87 1
kbluetoothd: connections: 2
kbluetoothd: slotConnectionStateChanged
kbluetoothd: HciSocket:pen()
kbluetoothd: HciSocket:pen()
kbluetoothd: Checking state00:0D:44:0B:96:86 1
kbluetoothd: HciSocket:pen()
kbluetoothd: Checking state00:07:61:12:C1:87 1
kbluetoothd: connections: 2
kbluetoothd: HCI-event: e
kbluetoothd: HCI-event: 13
kbluetoothd: HCI-event: 13
kbluetoothd: HCI-event: 13
kbluetoothd: HCI-event: 13
kbluetoothd: HCI-event: 13
kbluetoothd: HCI-event: f
kbluetoothd: HCI-event: 5


The mac address ending with 86 is my headset. The one with 87 is my mouse.

Any help or suggestions would be greatly appreciated.

Thanks
Lmax is offline   Reply With Quote
Old December 12th, 2005   #10
skaber
First Cup of Ubuntu
 
Join Date: Oct 2005
Beans: 5
Re: HOWTO: Using Bluetooth to acces Mobile Phone and use BT-Headset to use Skype

I've got my mouse mx900 working perfectly with my bluetooth device integrated but I seriously can't get my iogear headset to work. I m using breezy and fallowed this tutorial step by step (as well as other tuts elsewhere).

It seems my laptop can't pair the headset with the pin 1234. I've also noticed the error "QFile:pen: No file name specified" when I click on the Headset in Konqueror. I tried renaming the file /etc/bluetooth/pin to link_key but still had no success....

i ve passed many hours trying alot of changes but nothing was sucessfull yet.
does any one have an idea how i could sucessfully pair the headset with my laptop ?


-----------------------


After looking up some other forums and trying some stuff. I found out from my syslog file that the problem was really pairing. I decided to delete the folder /var/lib/bluetooth/00:10:C6:5B:123 wich refers to my bluetooth integrated device's MAC. This folder usually stores pin numbers for each bluetooth device.

I changed the pin_helper to /usr/bin/bluepin in hcid.conf

I started my headset in pairing mode and this time, i was prompted for a PIN number when using btsco -v <headset>.

the key to my sucess: Deleting the folder /var/lib/bluetooth/<MAC bluetooth>

hope this can help !

Last edited by skaber; December 14th, 2005 at 10:50 PM..
skaber 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 08:26 AM.


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