HomeHome  PortalPortal  FAQFAQ  SearchSearch  RegisterRegister  Log in  
openFate
openFATE - openSUSE feature tracking
Latest topics
» Difference between 42.2 and 42.1
by findoctr Thu Dec 15, 2016 7:53 pm

» openSUSE Leap 42.1 ?
by findoctr Fri Feb 05, 2016 8:09 pm

» Happy Turkey Day
by findoctr Thu Nov 26, 2015 1:45 pm

» Happy 4th of July!
by bozo Sat Jul 04, 2015 12:56 pm

» It's been a while ...
by bozo Mon Feb 23, 2015 8:34 pm

» Mondo chillers
by bozo Wed Feb 18, 2015 5:11 am

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
IRC Channel
You can also find us on IRC's freenode.net as #suseunbound.

Share | 
 

 Bluetooth Pairing

View previous topic View next topic Go down 
AuthorMessage
myrlin
Old Regular
avatar

Posts : 47
Join date : 2010-02-25

PostSubject: Bluetooth Pairing   Tue Apr 06, 2010 8:44 am

I am trying to connect my mobile phone to my PC via Bluetooth. I am using openSUSE 11.1, KDE3.5.10.

The two machines seem to be "talking", and I can send a file to the phone using OBEX push

The problem arises when I try to connect using Wammu. The pairing process starts OK, the phone asks if I want to connect, then I get a prompt on the phone to "Enter passcode:". I have no idea what this is. I have tried editing /etc/bluetooth/hcid.conf to change the default passphrase shown there, and to turn off security altogether, but without success.

I would be grateful for any suggestions.

Thanks in advance.
Back to top Go down
Alastairo
Gecko
avatar

Posts : 62
Join date : 2010-02-25
Location : Somerset West, South Africa

PostSubject: Re: Bluetooth Pairing   Tue Apr 06, 2010 11:16 am

I have tried to do the same. I have a bluetooth dongle plugged into a usb port. It sees my phone, but tells me that "bluetooth device doesn't support input". I am using 11.2 and am using kbluetooth.

Now I am not sure if the dongle is the problem or it is the program
Back to top Go down
winxp-escapee
Moderator
avatar

Posts : 55
Join date : 2010-02-23
Location : UK

PostSubject: Re: Bluetooth Pairing   Tue Apr 06, 2010 2:08 pm

myrlin wrote:
I am trying to connect my mobile phone to my PC via Bluetooth. I am using openSUSE 11.1, KDE3.5.10.

The two machines seem to be "talking", and I can send a file to the phone using OBEX push

The problem arises when I try to connect using Wammu. The pairing process starts OK, the phone asks if I want to connect, then I get a prompt on the phone to "Enter passcode:". I have no idea what this is. I have tried editing /etc/bluetooth/hcid.conf to change the default passphrase shown there, and to turn off security altogether, but without success.

I would be grateful for any suggestions.

Thanks in advance.

When the phone asks you for a pass code enter say a four digit number and press enter on the phone, a dialogue box should then open in your app' and ask you for the same code, enter the code and click OK to complete the pairing.
Back to top Go down
myrlin
Old Regular
avatar

Posts : 47
Join date : 2010-02-25

PostSubject: Re: Bluetooth Pairing   Tue Apr 06, 2010 4:03 pm

Hmm - that's what doesn't seem to be happening.

I'll do some more tests tomorrow and post back.
Back to top Go down
myrlin
Old Regular
avatar

Posts : 47
Join date : 2010-02-25

PostSubject: Re: Bluetooth Pairing   Wed Apr 07, 2010 6:54 am

Here are my initial findings:

kbluetooth does not "see" my adapter (a USB dongle).
HCITool apparently does, and will scan, and get info from my phone.
When I try to use Wammu to detect the phone (using pybluez) the phone asks for a Passcode. I enter a 4 digit number, and it immediately responds with "Pairing Failed".

Looks like this is going to be a long one......!
Back to top Go down
myrlin
Old Regular
avatar

Posts : 47
Join date : 2010-02-25

PostSubject: Re: Bluetooth Pairing   Fri Apr 09, 2010 6:12 am

After much "googling", I have discovered that the failure of bluetooth (kbluetooth) is widespread in KDE, and is largely independent of distro or KDE version (KDE4 as well as KDE3). There are numerous posts on forums etc. going back at least 2 years, and no coherent resolution as far as I can see.

Anyway, my problems are precisely detailed here.

Given the lack of a KDE solution, I followed the method described here

Total success! My phone and PC are now communicating perfectly.

OK, it all works, but it is an inelegant and specific solution, which needs to be repeated for any new piece of hardware It does not address the generality of easy Bluetooth use. IMHO this failure to support such a core technology by KDE is incredible, particularly when Gnome users do not seem to have the same problems.

If anyone can prove me wrong, I'd be delighted!!!!
Back to top Go down
Alastairo
Gecko
avatar

Posts : 62
Join date : 2010-02-25
Location : Somerset West, South Africa

PostSubject: Re: Bluetooth Pairing   Sat Apr 10, 2010 12:03 pm

That's quite a thread - which part of it worked for you ?

Still think my dongles no good. I don't heave windows to test it with the manufacturers disk.
Back to top Go down
myrlin
Old Regular
avatar

Posts : 47
Join date : 2010-02-25

PostSubject: Re: Bluetooth Pairing   Sun Apr 11, 2010 5:46 am

My apologies for being so terse, Alastairo.

I basically followed the instructions in the first post of the thread I linked to. Here's what I did in detail:

First, I plugged in the Bluetooth dongle and re-booted my machine (just in case it needed this to recognise it).

I ran the command
Code:
hcitool dev
which gave the following response
Code:
hci0 <dongle address>
hci0 is the identity of the local device, followed by its address. I guess that if this fails, you do have a problem with your BT dongle.

Next, I switched on my phone, enabled Bluetooth, and ran
Code:
hcitool scan
This gave
Code:
<phone address>      Nokia 6300
So, my PC was recognising my BT dongle, and my phone, despite kbluetooth not being able to recognise either.

The next stage was to download the "raw" version of the Python scripts "simple-agent" and "test-device" from here. I then opened a terminal, switched into the directory I had downloaded them to, entered su mode, then did a
Code:
chmod +x
to both files, followed by
Code:
python <filename>
to each one.

Then, in a terminal in su mode, I typed
Code:
./simple-agent hci0 <phone address>
and entered a passcode when prompted.

The phone then sprang into life, and asked for a passcode. I entered the one I had put into simple-agent, and the phone paired successfully. The phone asked if I wanted to pair automatically in future, which I confirmed.

Now, it pairs correctly each time I run Wammu. I didn't need to carry out the rest of the process outlined in the link in my previous post, although it would probably be necessary for other types of hardware (hence my rant about kbluetooth!!).

I hope this helps with your problem.
Back to top Go down
Alastairo
Gecko
avatar

Posts : 62
Join date : 2010-02-25
Location : Somerset West, South Africa

PostSubject: Re: Bluetooth Pairing   Mon Apr 12, 2010 12:54 am

Thanks Myrlin
I will give it a go later on the week and let you know what transpired.
Back to top Go down
Alastairo
Gecko
avatar

Posts : 62
Join date : 2010-02-25
Location : Somerset West, South Africa

PostSubject: Nokia 6300 bluetooth pairing with desktop   Thu Apr 15, 2010 1:50 pm

Thanks Myrlin for all your help. Here is a slightly amended version which worked on opensuse 11.2 - 64 bit

Plug in the Bluetooth dongle.
Code:
hcitool dev
which gave the following response
Code:
hci0 <dongle address>
hci0 is the identity of the local device, followed by its address. I guess that if this fails, you do have a problem with your BT dongle.

Next, switch on the phone, enabled Bluetooth, and run
Code:
hcitool scan
This gave
Code:
<phone address>      Nokia 6300
So, the PC recognises the BT dongle, and the phone.

The next stage was to download the "raw" version of the Python scripts "simple-agent" and "test-device" from here. I then opened a terminal, switched into the directory I had downloaded them to, entered su mode, then did a
Code:
chmod +x <filename>
to both files, followed by
Code:
python <filename>
to each one.

Note : if the files download with slightly different names (as mine did), rename them to "simple-agent" & "test-device" (with no extensions)

Then, in a terminal in su mode, I typed
Code:
./simple-agent hci0 <phone address>
and entered a passcode when prompted.

The phone then sprang into life, and asked for a passcode. I entered the one I had put into simple-agent, and the phone paired successfully. The phone asked if I wanted to pair automatically in future, which I confirmed. (You have to enter the code (eg 1234) quickly, otherwise it disconnects)

Software installed is :
Bluez
kdebluetooth
kdebluetooth-lang
libbluetooth3
python-pybluez

When happy that the pairing was done, I went on to configure wammu. There were 2 options that I selected : Nokia protocol & phonet over bluetooth with RF

Now I can see all the contacts, calls and messages.


Last edited by MattB4 on Thu Apr 15, 2010 2:36 pm; edited 1 time in total (Reason for editing : Edited to remove an extra dot.)
Back to top Go down
myrlin
Old Regular
avatar

Posts : 47
Join date : 2010-02-25

PostSubject: Re: Bluetooth Pairing   Fri Apr 16, 2010 4:34 am

Glad to be of help, Alastairo.

I used the phone wizard in Wammu to set up my phone (a Nokia 6300, the same as yours), which gave me access to everything on the phone.

I can only send files to the phone using ktobexclient, and I can't work out how to send SMS messages and other files via the phone, despite the fact that the Wammu database says these functions are supported. When I try, I get an error message saying "Your phone does not support this function".

If anyone can solve this, I would be extremely grateful.

BTW, has anyone actually managed to get kbluetooth to work with 11.1/KDE3.5.10?
Back to top Go down
Alastairo
Gecko
avatar

Posts : 62
Join date : 2010-02-25
Location : Somerset West, South Africa

PostSubject: Re: Bluetooth Pairing   Fri Apr 16, 2010 12:28 pm

I have since installed kdebluetooth4 on 11.2 and it works after changing main.conf in /etc/bluetooth to set up address as detailed in this article here
Back to top Go down
myrlin
Old Regular
avatar

Posts : 47
Join date : 2010-02-25

PostSubject: Re: Bluetooth Pairing   Tue Apr 20, 2010 6:50 am

Thanks, Alastairo,

I'll try this out on kbluetooth (for KDE3) later in the week and post back.
Back to top Go down
Alastairo
Gecko
avatar

Posts : 62
Join date : 2010-02-25
Location : Somerset West, South Africa

PostSubject: Re: Bluetooth Pairing   Tue Apr 20, 2010 11:59 am

With kde and bluetooth, you always send a pic or file to the phone. To get the file from the phone, you must send from the phone. This is unlike wammu, where you can pull data from the phone.
Back to top Go down
myrlin
Old Regular
avatar

Posts : 47
Join date : 2010-02-25

PostSubject: Re: Bluetooth Pairing   Thu Apr 22, 2010 4:18 am

kdebluetooth (KDE3 version) just does not want to work!

I get a greyed-out icon in the toolbar. If I click on it, I get a Konqueror screen with an error message:

"The process for the bluetooth protocol died unexpectedly."

I have Googled this, and found many references to the problem, but no solutions.

Does anyone have any ideas?
Back to top Go down
winxp-escapee
Moderator
avatar

Posts : 55
Join date : 2010-02-23
Location : UK

PostSubject: Re: Bluetooth Pairing   Sun Apr 25, 2010 6:17 am

Useful Linux Journal article here?

Hacking Bluetooth
Back to top Go down
myrlin
Old Regular
avatar

Posts : 47
Join date : 2010-02-25

PostSubject: Re: Bluetooth Pairing   Thu Apr 29, 2010 5:25 am

Thanks for the links, everyone.

I've spent a VERY long time trying to get kbluetooth working, with no success. I posted on the official forum and got this reply:

"...It is still broken in 3.5 and it will STAY broken, since it was decided to maintain only version 4.1 and after..."

**RANT**
I find this incredible. Bluetooth used to work on earlier releases, and KDE3.5 is an official option in 11.1. IMHO, this casual approach to support for a fundamental technology is totally unacceptable. The reason I still use 11.1/KDE3.5 is that I still do not believe that KDE4 is stable enough and, as far as I'm aware, OpenSUSE are still supporting 11.1, which, IMHO, should include all standard supplied desktop environments.
**END OF RANT**

Anyway, I guess I'll just have to carry on with the command line approach.

Thanks for everyone's help.
Back to top Go down
Sponsored content




PostSubject: Re: Bluetooth Pairing   

Back to top Go down
 
Bluetooth Pairing
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
SUSEUnbound :: Help Section :: Hardware-
Jump to: