maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   M600i Bluetooth connection help (https://talk.maemo.org/showthread.php?t=4466)

mikec 2007-02-01 17:24

M600i Bluetooth connection help
 
Hi Team
Have just got an M600i to replace my nokia n91 for 3G web access.
After several attempts to pair, it eventually worked. Now when I try to connect to the M600 from 770 it can take 8 to 9 tries before it estabishes a connection with the phone. Once it is connected it works just fine. But If I disconnect it can take quite a number of tries to reconnect.

With the N91 it always connected first time.

Any clues what might be the problem?

Thanks in advance Mike C

Milhouse 2007-02-01 18:00

Re: M600i Bluetooth connection help
 
Your solution is here. The M600i and W950i have much in common so I'm pretty confident the resolution found for the W950i will work for the M600i.

Install the patched sdp-query binary referenced by comment #27 and you should be good to go. Hopefully any future OS 2006 (and 2007) firmware for the 770 will include the fix - it didn't make it for the most recent firmware 3.2006.49-2 release as this had already entered QA prior to resolution of this bug.

The N800 has no Bluetooth problems with the W950i. :)

mikec 2007-02-01 19:21

Re: M600i Bluetooth connection help
 
Millhouse
Many thanks that looks exactly like my problem. I assume that I need to log in as root to do this. Not having done this before I'm off to find out how this is done. I am running the latest 770 firmware released a few days ago which seems to have a lot more changes than just the wlan change indicated.

Will report back once I have installed patch.

Mike C

Milhouse 2007-02-01 19:24

Re: M600i Bluetooth connection help
 
You'll need xterm and be able to gain root.

mikec 2007-02-01 21:00

Re: M600i Bluetooth connection help
 
ok
have installed sdp-query into /usr/bin as root.
chowned file to be root owned.
now when I pair it comes back with
"selected phone does not have services that can be used.Select another phone"

arghhhh!

Mike C

Milhouse 2007-02-01 23:13

Re: M600i Bluetooth connection help
 
Odd. Try rebooting the phone and the 770, then try pairing again.

Milhouse 2007-02-01 23:49

Re: M600i Bluetooth connection help
 
Try this if you can't pair your phone and 770 after rebooting both.

Make sure your M600i BT is enabled and visible to other devices. On the 770, open xterm and gain root.

Enter into your 770 the following command:

Code:

hcitool scan
You should see output similar to the following (the BT address of your phone will be different!)

Code:

/home/user # hcitool scan
Scanning ...
        00:19:63:15:B6:BA      W950i

My phone is called simply "W950i" (sorry for the lack of imigination!) and the Bluetooth address for my phone is 00:19:63:15:B6:BA.

Still as root, try the following command (but substitute your Bluetooth phone address for mine!):

Code:

sdp-query  00:19:63:15:B6:BA
This is the output for my W950i using the modified sdp-query:

Code:

/home/user # sdp-query  00:19:63:15:B6:BA
l|0x110C|23|0|AVRCP Target
l|0x110E|23|0|AVRCP Controller
r|a2157972-3541-4d0b-a551-b3abe639f526|1|1200|m-Router Connectivity
r|SPP|2|1200|m-Router Connectivity
l|0x8E771301|61689|0|SEMC HLA
r|DUN|7|0|Dial-up Networking
l|0x110A|25|0|Audio Streaming Source
r|0x1112|8|0|Headset Audio Gateway
r|0x111F|9|0|Hands-free Audio Gateway
l|0x1115|15|0|Personal Ad-hoc User Service
l|0x1117|15|0|Group Ad-hoc Network Service
r|OPP|3|0|Object Push
r|FTP|4|0|File transfer

How far did you get with your phone, and is the output from your sdp-query command similar to mine?

If you get any errors I probably can't help you, but this excercise may provide information against bug #865 that will help Johan diagnose the problem.

Milhouse 2007-02-01 23:56

Re: M600i Bluetooth connection help
 
Also make sure the new /usr/bin/sdp-query is executable!

Executing "chmod 755 /usr/bin/sdp-query" as root should do the trick.

:)

mikec 2007-02-02 09:12

Re: M600i Bluetooth connection help
 
This looks like a more basic problem with my system
sdp-query 00:18:13:B8:59:0F produces the following output

error while loading shared libraries:libbluetooth.so.2: cannot open shared object file: No such file or directory.

sdp-query was already marked as executable

where is the shared lib?

Mike C

Milhouse 2007-02-02 15:02

Re: M600i Bluetooth connection help
 
Ah yes, check comment #9 in bug #865. It's necessary to create a symbolic link for the missing library - I added this link when Johan created the hcidump tool for the bug and wasn't aware the new sdp-query is also dependent on libbluetooth.so.2. As root, execute these commands:

Code:

cd /usr/lib
ln -s libbluetooth.so.1 libbluetooth.so.2


mikec 2007-02-02 18:30

Re: M600i Bluetooth connection help
 
I dont have a libbluetooth.so.1 but a libbluetooth.so.1.0.25
have created a link like so
ln -s libbluetooth.so.1.0.25 libbluetooth.so.2

reboot n770
then run hcitool scan and sdp-query gives following output

Nokia770-49:~# hcitool scan
Scanning ...
00:18:13:B8:59:0F M600i
Nokia770-49:~# sdp-query 00:18:13:B8:59:0F
l|0x110C|23|0|AVRCP Target
l|0x110E|23|0|AVRCP Controller
r|a2157972-3541-4d0b-a551-b3abe639f526|1|1200|m-Router Connectivity
r|SPP|2|1200|m-Router Connectivity
l|0x1115|15|0|Personal Ad-hoc User Service
l|0x1117|15|0|Group Ad-hoc Network Service
l|0x110A|25|0|Audio Streaming Source
l|0x8E771301|61689|0|SEMC HLA
r|DUN|7|0|Dial-up Networking
r|0x1112|8|0|Headset Audio Gateway
r|0x111F|9|0|Hands-free Audio Gateway
r|OPP|3|0|Object Push
r|FTP|4|0|File transfer

------------------------------------------------------------------
still struggling to pair the two devices
double arrow on the m600 shows communications
phone asks for 4 digit code request from 770
n770 appears in the mydevices but n770 says
authentication timed out after a while.

after several tries have got it to pair

still cant get it to connect to phone reliably

mike c

Milhouse 2007-02-02 18:39

Re: M600i Bluetooth connection help
 
That output looks fine. Pairing can be a little temperamental even on my W950i but once paired I can reliably establish DUN connections. Try rebooting the phone and 770 one more time to see if that helps (the failed pairings may have disturbed the phone, or 770 - long shot I know but the phone does seem a bit flakey).

If you get no joy you may want to enter into a dialogue with Johan on bug #865. I felt pretty sure the M600i and W950i were more or less the same, obviously they're running different firmware to each other so maybe that's why the solution for the W950i isn't working for the M600i.

mikec 2007-02-02 19:24

Re: M600i Bluetooth connection help
 
Millhouse

can you confirm that your libbluetooth.so.1 is also a link to libbluetooth.so.1.0.25

I'm going to reboot a few more times, as I noticed that you seemed to have no joy initially and then it started working.

Mike C

Milhouse 2007-02-02 19:32

Re: M600i Bluetooth connection help
 
I confirm my libbluetooth.so.2 is linked to libbluetooth.so.1.0.25.

My 770 is running 2.2006.39-14 firmware - have you upgraded to the latest 770 OS 2006 firmware (3.2006.49-2)?

Best of luck!

mikec 2007-02-02 19:48

Re: M600i Bluetooth connection help
 
Yes I have upgraded, so I wonder if this might be the problem.

Also after a bit more reboots, I can conclude that there is no real change. It can connect two times in a row, then nothing for 10 tries. and often it seems to get itself into a real twist, and comes back straight away and says it can connect (I assume that it needs some sort of time out).

next step is to go back to the previous firmware

Thanks for all your help in anycase.


Mike C

Milhouse 2007-02-02 19:58

Re: M600i Bluetooth connection help
 
No problem.

I know it's a pain, but unless Johan can suggest anything, going back to a known-working firmware (for me at least, 2.2006-39.14) may at least highlight a problem with the most recent firmware (assuming you then get a working connection). This would be important for Nokia to resolve before the next update. If you get no joy with the older firmware then it's over to Johan. :)

mikec 2007-02-02 20:02

Re: M600i Bluetooth connection help
 
Any clue where I get the old version from?

Mike C

Milhouse 2007-02-02 20:11

Re: M600i Bluetooth connection help
 
2.2006.39-14

mikec 2007-02-02 21:21

Re: M600i Bluetooth connection help
 
Have downgraded

and problem is the same, have left description on bugzilla.

Mike C

mikec 2007-02-02 22:47

Re: M600i Bluetooth connection help
 
Ignore previous post

Have rebooted a couple of times

and the connectivity seems to have improved. :) Have now connected four times in a row no problems.
I have noticed that If I leave a good amount of time (more than 30 secs) after I disconnect b4 i reconnect then it seems to reconnect no problems.

will report back once I have done more testing

Mike C

steve 2007-02-03 06:59

Re: M600i Bluetooth connection help
 
Hello from the newbie :)

I have experienced the same problems Mike did with his M600. I have an M600, too and pairing both is nearly impossible.
After linking the bluetoothlib the new sdp-query works just like the old one and there is no difference (besides the file length). I can pair my Nokia mobiles but not the Sony ones. When I enter the "sdp-query" manually in xterm I get the same messages you did.
Perhaps it is hardware dependent because when I got my 770 two months ago it was (besides some failures and retries) no problem to pair them. Then it was to Nokia for 4 weeks because of WSOD (after having it for two weeks) and till then it only pairs in one of 10 attempts.
I have downgraded the firmware and tried both older versions from 2006 but no effect. I think they have changed the 770īs mainboard and that effects the hardware-implemented bt-stack, too.
But this statement is only based on empirical experience. I have tried nearly all combinations the last days.

-steve

PS: And the 770 does not connect to Samsung phones (P300). It looks like Nokia has a weird implementation of the bt-stack....

mikec 2007-02-03 22:48

Re: M600i Bluetooth connection help
 
Update
having played with the revised sdp-query for most of a day. It looks to be more reliable on the os 2.2006.39-14 than 3.2006.49-2

however I only ever get 50% of my tries connecting. Some observations.

1. If you leave the n770 for say more than10mins and try a connect, there seems to be greater chance of success. If you watch the bluetooth icon on the m600i it shows both chevrons indicating that the n770 is talking to the M600i. You will then get the internet connect sphere appear next to the bluetooth symbol. At which point there the N770 will amlost certainly successfully connect.

2. If this first connect fails even after the two blue chevrons appear followed by the connect sphere on the m600, subsequent attempts to reconnect will show not chevrons at all, indicating that the two are not talking. You need to wait another 10mins or so b4 you can try and connect as per step 1 above.

I'm going to experiment with connecting using the pc and will report back.

Mike C


All times are GMT. The time now is 15:39.

vBulletin® Version 3.8.8