Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-users] problems pairing with Nokia 3650
@ 2003-09-15 16:58 Jiri Prazak
  2003-09-15 18:55 ` maca02
  0 siblings, 1 reply; 5+ messages in thread
From: Jiri Prazak @ 2003-09-15 16:58 UTC (permalink / raw)
  To: bluez-users

Hello all,

I have RedHat 8, I have upgraded the kernel to version
2.4.20-19.8 and it is running on a Dell Latitude Notebook with
BlueTake BT007 bluetooth adapter.

It seems that I have somewhat succesfully installed and
configured BlueZ stack on it, hcitool can see my Nokia3650, I can
ping it, rfcomm binds it but I cannot pair the two for my life.

1.  Pairing initiated from the phone.  My phone finds
"mynotebook"  when I select New paired device, it reports
"waiting for mynotebook" and then it says "unable to pair with
mynotebook" without ever asking for pin or anything.  The hcidump
is as follows

> HCI Event: Connect Request(0x04) plen 10
< HCI Command: Accept Connection Request(0x01|0x0009) plen 7
> HCI Event: Command Status(0x0f) plen 4
> HCI Event: Connect Complete(0x03) plen 11
> HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
< HCI Command: Change Connection Packet Type(0x01|0x000f) plen 4
> HCI Event: Command Status(0x0f) plen 4
> HCI Event: Connection Packet Type Changed(0x1d) plen 5
> ACL data: handle 0x0029 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 1 scid 0x0045
< ACL data: handle 0x0029 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0045 result 2
status 0 > HCI Event: Number of Completed Packets(0x13) plen 5
> HCI Event: Max Slots Change(0x1b) plen 3
> HCI Event: Disconn Complete(0x05) plen 4

I cannot make any sense out of this but I see no errors.

2. Pairing initiated from "mynotebook".  I use rfcomm connect
btaddress and the phone asks for a pin, I type in the pin
(correct one) and I get either

* connection refused

or

* Can't connect RFCOMM socket: Resource temporarily unavailable

on the terminal.  Obviously if this does not work I cannot use
gprs and pppd either.  Interesting thing is that before I try
connecting using pppd rfcomm says the channel is clean and after
the thing bombs it reports channel closed.  I really have no idea
where the problem is, I tinkered with hci.conf and such but
nothing seems to help, even disabling authentication has no
effect.  First I thought it was going to be a minor config issue
since the phone is visible but I'm not sure anymore.  Any help
and advice is appreciated.

Thanks Jirka

--=20
Vyhraj Ford Fiesta s klimatizac=ED a dal=B9=ED ceny!
V=EDce na http://soutez.volny.cz=20



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] problems pairing with Nokia 3650
  2003-09-15 16:58 [Bluez-users] problems pairing with Nokia 3650 Jiri Prazak
@ 2003-09-15 18:55 ` maca02
  2003-09-15 19:21   ` Fredrik Hallga*rde
  2003-09-15 19:27   ` Xavier GARREAU
  0 siblings, 2 replies; 5+ messages in thread
From: maca02 @ 2003-09-15 18:55 UTC (permalink / raw)
  To: bluez-users


It seems I have the same problem with my SE T68i. Even the configuring
hcid without the pairing did not help. Pairing always fails. I rebuild th=
e
python pairing script (included in some bluez package).

Can anyone help? Thanks

Maca


On Mon, 15 Sep 2003, Jiri Prazak wrote:

> Hello all,
>
> I have RedHat 8, I have upgraded the kernel to version
> 2.4.20-19.8 and it is running on a Dell Latitude Notebook with
> BlueTake BT007 bluetooth adapter.
>
> It seems that I have somewhat succesfully installed and
> configured BlueZ stack on it, hcitool can see my Nokia3650, I can
> ping it, rfcomm binds it but I cannot pair the two for my life.
>
> 1.  Pairing initiated from the phone.  My phone finds
> "mynotebook"  when I select New paired device, it reports
> "waiting for mynotebook" and then it says "unable to pair with
> mynotebook" without ever asking for pin or anything.  The hcidump
> is as follows
>
> > HCI Event: Connect Request(0x04) plen 10
> < HCI Command: Accept Connection Request(0x01|0x0009) plen 7
> > HCI Event: Command Status(0x0f) plen 4
> > HCI Event: Connect Complete(0x03) plen 11
> > HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
> < HCI Command: Change Connection Packet Type(0x01|0x000f) plen 4
> > HCI Event: Command Status(0x0f) plen 4
> > HCI Event: Connection Packet Type Changed(0x1d) plen 5
> > ACL data: handle 0x0029 flags 0x02 dlen 12
>     L2CAP(s): Connect req: psm 1 scid 0x0045
> < ACL data: handle 0x0029 flags 0x02 dlen 16
>     L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0045 result 2
> status 0 > HCI Event: Number of Completed Packets(0x13) plen 5
> > HCI Event: Max Slots Change(0x1b) plen 3
> > HCI Event: Disconn Complete(0x05) plen 4
>
> I cannot make any sense out of this but I see no errors.
>
> 2. Pairing initiated from "mynotebook".  I use rfcomm connect
> btaddress and the phone asks for a pin, I type in the pin
> (correct one) and I get either
>
> * connection refused
>
> or
>
> * Can't connect RFCOMM socket: Resource temporarily unavailable
>
> on the terminal.  Obviously if this does not work I cannot use
> gprs and pppd either.  Interesting thing is that before I try
> connecting using pppd rfcomm says the channel is clean and after
> the thing bombs it reports channel closed.  I really have no idea
> where the problem is, I tinkered with hci.conf and such but
> nothing seems to help, even disabling authentication has no
> effect.  First I thought it was going to be a minor config issue
> since the phone is visible but I'm not sure anymore.  Any help
> and advice is appreciated.
>
> Thanks Jirka
>
> --
> Vyhraj Ford Fiesta s klimatizac=ED a dal=B9=ED ceny!
> V=EDce na http://soutez.volny.cz
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>
>
>


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] problems pairing with Nokia 3650
  2003-09-15 18:55 ` maca02
@ 2003-09-15 19:21   ` Fredrik Hallga*rde
  2003-09-15 19:27   ` Xavier GARREAU
  1 sibling, 0 replies; 5+ messages in thread
From: Fredrik Hallga*rde @ 2003-09-15 19:21 UTC (permalink / raw)
  To: maca02; +Cc: bluez-users

Hi all!

I am trying to use a IOGEAR GB?-301 and a NEC e606 (3G/UMTS) Mobile.

I have to remove the /etc/bluetooth/link_key file every time I try to 
make a connection.

Maybe that can help you.

/Fredrik

-- 
********************
Fredrik Hallga*rde
fredrik@libcon.net





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] problems pairing with Nokia 3650
  2003-09-15 18:55 ` maca02
  2003-09-15 19:21   ` Fredrik Hallga*rde
@ 2003-09-15 19:27   ` Xavier GARREAU
  2003-09-17 19:04     ` maca02
  1 sibling, 1 reply; 5+ messages in thread
From: Xavier GARREAU @ 2003-09-15 19:27 UTC (permalink / raw)
  To: maca02, bluez-users

> > HCI Event: Connect Request(0x04) plen 10
> < HCI Command: Accept Connection Request(0x01|0x0009) plen 7
> > HCI Event: Command Status(0x0f) plen 4
> > HCI Event: Connect Complete(0x03) plen 11
> > HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
> < HCI Command: Change Connection Packet Type(0x01|0x000f) plen 4
> > HCI Event: Command Status(0x0f) plen 4
> > HCI Event: Connection Packet Type Changed(0x1d) plen 5
> > ACL data: handle 0x0029 flags 0x02 dlen 12
>     L2CAP(s): Connect req: psm 1 scid 0x0045
> < ACL data: handle 0x0029 flags 0x02 dlen 16
>     L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0045 result 2
> status 0 > HCI Event: Number of Completed Packets(0x13) plen 5
> > HCI Event: Max Slots Change(0x1b) plen 3
> > HCI Event: Disconn Complete(0x05) plen 4

This behaviour is strange but, it seems that your phones are trying to
establish a sdp connection (connection request psm 1 over L2CAP). Your
device answers "no" to it (dcid=0 and result=2) so the sdp connection fails
and so goes the pairing.

To what i know, pairing should not be done this way. First a key request
should occur and you have to answer with a pin code request reply. Then,
only when the pairing is ok the remote device should browse your sdp server.

I build some apps dealing with bluetooth and a home made minimal windows
stack with the sony ericsson P800 which does it this way. That's hopeful,
since i haven't had the time to code sdp till now...

Coming back to your problem, try to launch sdpd but don't advert any service
and let us know ...

BR,
Xavier Garreau



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] problems pairing with Nokia 3650
  2003-09-15 19:27   ` Xavier GARREAU
@ 2003-09-17 19:04     ` maca02
  0 siblings, 0 replies; 5+ messages in thread
From: maca02 @ 2003-09-17 19:04 UTC (permalink / raw)
  To: bluez-users

> Coming back to your problem, try to launch sdpd but don't advert any service
> and let us know .

How to run the sdpd without adverting any service?


On Mon, 15 Sep 2003, Xavier GARREAU wrote:

> > > HCI Event: Connect Request(0x04) plen 10
> > < HCI Command: Accept Connection Request(0x01|0x0009) plen 7
> > > HCI Event: Command Status(0x0f) plen 4
> > > HCI Event: Connect Complete(0x03) plen 11
> > > HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
> > < HCI Command: Change Connection Packet Type(0x01|0x000f) plen 4
> > > HCI Event: Command Status(0x0f) plen 4
> > > HCI Event: Connection Packet Type Changed(0x1d) plen 5
> > > ACL data: handle 0x0029 flags 0x02 dlen 12
> >     L2CAP(s): Connect req: psm 1 scid 0x0045
> > < ACL data: handle 0x0029 flags 0x02 dlen 16
> >     L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0045 result 2
> > status 0 > HCI Event: Number of Completed Packets(0x13) plen 5
> > > HCI Event: Max Slots Change(0x1b) plen 3
> > > HCI Event: Disconn Complete(0x05) plen 4
>
> This behaviour is strange but, it seems that your phones are trying to
> establish a sdp connection (connection request psm 1 over L2CAP). Your
> device answers "no" to it (dcid=0 and result=2) so the sdp connection fails
> and so goes the pairing.
>
> To what i know, pairing should not be done this way. First a key request
> should occur and you have to answer with a pin code request reply. Then,
> only when the pairing is ok the remote device should browse your sdp server.
>
> I build some apps dealing with bluetooth and a home made minimal windows
> stack with the sony ericsson P800 which does it this way. That's hopeful,
> since i haven't had the time to code sdp till now...
>
> Coming back to your problem, try to launch sdpd but don't advert any service
> and let us know ...
>
> BR,
> Xavier Garreau
>
>
>
>
>


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-09-17 19:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-15 16:58 [Bluez-users] problems pairing with Nokia 3650 Jiri Prazak
2003-09-15 18:55 ` maca02
2003-09-15 19:21   ` Fredrik Hallga*rde
2003-09-15 19:27   ` Xavier GARREAU
2003-09-17 19:04     ` maca02

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox