* [Bluez-users] Network Access Point - pairing problem
@ 2004-11-02 22:07 D.W.
2004-11-03 0:07 ` Marcel Holtmann
0 siblings, 1 reply; 10+ messages in thread
From: D.W. @ 2004-11-02 22:07 UTC (permalink / raw)
To: bluez-users
[-- Attachment #1: Type: text/plain, Size: 546 bytes --]
Hello,
I want to use bluez for a standalone network access point. All works fine(pand or dund), the thing is that the pairing doesn't work at first contact (client is a windows-pc).
So I have to establish a rfcomm-connection manually(from the server side rfcomm connect 0 btad) first. This pairing works, I disconnect and then I am able to connect the client to the NAT.
Does anybody know what's wrong and what I can do to make the pairing work without this manually initiated rfcomm-connnection ?
Thanks in advance,
Daniel
[-- Attachment #2: Type: text/html, Size: 925 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] Network Access Point - pairing problem
2004-11-02 22:07 D.W.
@ 2004-11-03 0:07 ` Marcel Holtmann
0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2004-11-03 0:07 UTC (permalink / raw)
To: D.W.; +Cc: BlueZ Mailing List
Hi Daniel,
> I want to use bluez for a standalone network access point. All works
> fine(pand or dund), the thing is that the pairing doesn't work at
> first contact (client is a windows-pc).
>
> So I have to establish a rfcomm-connection manually(from the server
> side rfcomm connect 0 btad) first. This pairing works, I disconnect
> and then I am able to connect the client to the NAT.
>
> Does anybody know what's wrong and what I can do to make the pairing
> work without this manually initiated rfcomm-connnection ?
are we talking about security mode 2 or security mode 3? What kernel do
you use?
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bluez-users] Network Access Point - pairing problem
@ 2004-11-03 19:24 D.W.
2004-11-03 20:15 ` Marcel Holtmann
0 siblings, 1 reply; 10+ messages in thread
From: D.W. @ 2004-11-03 19:24 UTC (permalink / raw)
To: bluez-users
[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]
Hi Marcel,
Thank you for your reply.
I use kernel 2.4.22 on an axis devboard82. The bluez stack is not the latest(PAN, SDP, utils, libs are still seperate packages), because I had problems porting later versions to the devboard.
But except the pairing problem at first contact it works perfectly.
Except the PIN (it's a static one at server side) there is no further authentification necessary.
Security mode 2 or 3? What do you mean? Can I check it?
When I try to connect to the server at first contact, I have to enter the PIN(client side) and after entering the right pin I get the message :"Authentification failed."
Regards Daniel
> Hi Daniel,
>
> > I want to use bluez for a standalone network access point. All works
> > fine(pand or dund), the thing is that the pairing doesn't work at
> > first contact (client is a windows-pc).
> >
> > So I have to establish a rfcomm-connection manually(from the server
> > side rfcomm connect 0 btad) first. This pairing works, I disconnect
> > and then I am able to connect the client to the NAT.
> >
> > Does anybody know what's wrong and what I can do to make the pairing
> > work without this manually initiated rfcomm-connnection ?
>
> are we talking about security mode 2 or security mode 3? What kernel do
> you use?
>
> Regards
>
> Marcel
>
>
[-- Attachment #2: Type: text/html, Size: 2350 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] Network Access Point - pairing problem
2004-11-03 19:24 [Bluez-users] Network Access Point - pairing problem D.W.
@ 2004-11-03 20:15 ` Marcel Holtmann
0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2004-11-03 20:15 UTC (permalink / raw)
To: D.W.; +Cc: BlueZ Mailing List
Hi Daniel,
> I use kernel 2.4.22 on an axis devboard82. The bluez stack is not the
> latest(PAN, SDP, utils, libs are still seperate packages), because I
> had problems porting later versions to the devboard.
you use a version where many fixes are missing.
> But except the pairing problem at first contact it works perfectly.
> Except the PIN (it's a static one at server side) there is no further
> authentification necessary.
> Security mode 2 or 3? What do you mean? Can I check it?
What does "hciconfig -a" say?
> When I try to connect to the server at first contact, I have to enter
> the PIN(client side) and after entering the right pin I get the
> message :"Authentification failed."
Run "hcidump -x" and we can see what really happens.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bluez-users] Network Access Point - pairing problem
@ 2004-11-04 10:22 D.W.
2004-11-04 11:05 ` Marcel Holtmann
2004-11-04 12:59 ` D.W.
0 siblings, 2 replies; 10+ messages in thread
From: D.W. @ 2004-11-04 10:22 UTC (permalink / raw)
To: bluez-users
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 2550 bytes --]
Hi Marcel,
this is the output when I execute hciconfig -a.
hci0: Type: USB
BD Address: 00:02:5B:01:21:14 ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:936 acl:0 sco:0 events:23 errors:0
TX bytes:327 acl:0 sco:0 commands:22 errors:0
Features: 0xff 0xff 0x0f 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: HOLD SNIFF PARK
Link mode: ACCEPT MASTER
Name: 'BlueZ (0)'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x110 LMP Ver: 1.1 (0x1) LMP Subver: 0x110
Manufacturer: Cambridge Silicon Radio (10)
This is the output while trying to connect to the NAP at first contact:
HCIDump - HCI packet analyzer ver 1.5
device: hci0 snap_len: 1028 filter: 0xffffffff
> HCI Event: Connect Request(0x04) plen 10
B0 3A 4C 3D 0F 00 04 01 52 01
< HCI Command: Accept Connection Request(0x01|0x0009) plen 7
B0 3A 4C 3D 0F 00 00
> HCI Event: Command Status(0x0f) plen 4
00 01 09 04
> HCI Event: Role Change(0x12) plen 8
00 B0 3A 4C 3D 0F 00 00
> HCI Event: Connect Complete(0x03) plen 11
00 28 00 B0 3A 4C 3D 0F 00 01 00
< HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
28 00 0E 00
> HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
B0 3A 4C 3D 0F 00 01
> HCI Event: Max Slots Change(0x1b) plen 3
28 00 05
> HCI Event: Command Complete(0x0e) plen 6
01 0D 08 00 28 00
< HCI Command: Change Connection Packet Type(0x01|0x000f) plen 4
28 00 18 CC
> HCI Event: Command Status(0x0f) plen 4
00 01 0F 04
> HCI Event: Connection Packet Type Changed(0x1d) plen 5
00 28 00 18 CC
> HCI Event: PIN Code Request(0x16) plen 6
B0 3A 4C 3D 0F 00
< HCI Command: PIN Code Request Reply(0x01|0x000d) plen 23
B0 3A 4C 3D 0F 00 05 42 6C 75 65 5A 00 00 00 00 00 00 00 00
00 00 00
> HCI Event: Command Complete(0x0e) plen 10
01 0D 04 00 B0 3A 4C 3D 0F 00
> HCI Event: Disconn Complete(0x05) plen 4
00 28 00 05
Regards Daniel
--
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] Network Access Point - pairing problem
2004-11-04 10:22 D.W.
@ 2004-11-04 11:05 ` Marcel Holtmann
2004-11-04 13:43 ` Jouni.Lohikoski@iki.fi
2004-11-04 12:59 ` D.W.
1 sibling, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2004-11-04 11:05 UTC (permalink / raw)
To: D.W.; +Cc: BlueZ Mailing List
Hi Daniel,
> this is the output when I execute hciconfig -a.
> hci0: Type: USB
> BD Address: 00:02:5B:01:21:14 ACL MTU: 192:8 SCO MTU: 64:8
> UP RUNNING PSCAN ISCAN
> RX bytes:936 acl:0 sco:0 events:23 errors:0
> TX bytes:327 acl:0 sco:0 commands:22 errors:0
> Features: 0xff 0xff 0x0f 0x00
> Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
> Link policy: HOLD SNIFF PARK
> Link mode: ACCEPT MASTER
> Name: 'BlueZ (0)'
> Class: 0x000100
> Service Classes: Unspecified
> Device Class: Computer, Uncategorized
> HCI Ver: 1.1 (0x1) HCI Rev: 0x110 LMP Ver: 1.1 (0x1) LMP Subver: 0x110
> Manufacturer: Cambridge Silicon Radio (10)
you forcing a role switch (master role), but you aren't allowing it in
the link policy? Fix this.
> This is the output while trying to connect to the NAP at first contact:
>
> HCIDump - HCI packet analyzer ver 1.5
> device: hci0 snap_len: 1028 filter: 0xffffffff
> > HCI Event: Connect Request(0x04) plen 10
> B0 3A 4C 3D 0F 00 04 01 52 01
> < HCI Command: Accept Connection Request(0x01|0x0009) plen 7
> B0 3A 4C 3D 0F 00 00
> > HCI Event: Command Status(0x0f) plen 4
> 00 01 09 04
> > HCI Event: Role Change(0x12) plen 8
> 00 B0 3A 4C 3D 0F 00 00
> > HCI Event: Connect Complete(0x03) plen 11
> 00 28 00 B0 3A 4C 3D 0F 00 01 00
> < HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
> 28 00 0E 00
> > HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
> B0 3A 4C 3D 0F 00 01
> > HCI Event: Max Slots Change(0x1b) plen 3
> 28 00 05
> > HCI Event: Command Complete(0x0e) plen 6
> 01 0D 08 00 28 00
> < HCI Command: Change Connection Packet Type(0x01|0x000f) plen 4
> 28 00 18 CC
> > HCI Event: Command Status(0x0f) plen 4
> 00 01 0F 04
> > HCI Event: Connection Packet Type Changed(0x1d) plen 5
> 00 28 00 18 CC
> > HCI Event: PIN Code Request(0x16) plen 6
> B0 3A 4C 3D 0F 00
> < HCI Command: PIN Code Request Reply(0x01|0x000d) plen 23
> B0 3A 4C 3D 0F 00 05 42 6C 75 65 5A 00 00 00 00 00 00 00 00
> 00 00 00
> > HCI Event: Command Complete(0x0e) plen 10
> 01 0D 04 00 B0 3A 4C 3D 0F 00
> > HCI Event: Disconn Complete(0x05) plen 4
> 00 28 00 05
The PIN code you entered is simply wrong. Try "BlueZ".
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bluez-users] Network Access Point - pairing problem
2004-11-04 10:22 D.W.
2004-11-04 11:05 ` Marcel Holtmann
@ 2004-11-04 12:59 ` D.W.
2004-11-04 13:36 ` Marcel Holtmann
1 sibling, 1 reply; 10+ messages in thread
From: D.W. @ 2004-11-04 12:59 UTC (permalink / raw)
To: bluez-users
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 753 bytes --]
Hi Marcel,
it works perfectly now. Thank you very much for your help.
Where can I change this pin?
I assumed the pin is determined in hcid.conf.
Regards Daniel
--
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] Network Access Point - pairing problem
2004-11-04 12:59 ` D.W.
@ 2004-11-04 13:36 ` Marcel Holtmann
0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2004-11-04 13:36 UTC (permalink / raw)
To: BlueZ Mailing List
Hi Daniel,
> it works perfectly now. Thank you very much for your help.
> Where can I change this pin?
> I assumed the pin is determined in hcid.conf.
for incoming connections it is read from /etc/bluetooth/pin and you have
to restart hcid after that. Actually I like to change that and let hcid
always read the PIN from that file if needed. So patches are welcome.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] Network Access Point - pairing problem
2004-11-04 11:05 ` Marcel Holtmann
@ 2004-11-04 13:43 ` Jouni.Lohikoski@iki.fi
2004-11-04 14:22 ` Marcel Holtmann
0 siblings, 1 reply; 10+ messages in thread
From: Jouni.Lohikoski@iki.fi @ 2004-11-04 13:43 UTC (permalink / raw)
To: BlueZ Mailing List
Hi MH,
On Thu, Nov 04, 2004 at 12:05:32PM +0100, Marcel Holtmann wrote:
> > > HCI Event: PIN Code Request(0x16) plen 6
> > B0 3A 4C 3D 0F 00
> > < HCI Command: PIN Code Request Reply(0x01|0x000d) plen 23
> > B0 3A 4C 3D 0F 00 05 42 6C 75 65 5A 00 00 00 00 00 00 00 00
> > 00 00 00
>
> The PIN code you entered is simply wrong. Try "BlueZ".
btw, what and where is the tried PIN code in that hex dump? B0 3A 4C 3D 0F 00
is obviously Bluetooth address of the remote host, so somewhere here
is the PIN code "05 42 6C 75 65 5A 00 00 00 00 00 00 00 00 00 00 00",
but how it is encoded?
// jouni
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] Network Access Point - pairing problem
2004-11-04 13:43 ` Jouni.Lohikoski@iki.fi
@ 2004-11-04 14:22 ` Marcel Holtmann
0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2004-11-04 14:22 UTC (permalink / raw)
To: BlueZ Mailing List
Hi Jouni,
> > > > HCI Event: PIN Code Request(0x16) plen 6
> > > B0 3A 4C 3D 0F 00
> > > < HCI Command: PIN Code Request Reply(0x01|0x000d) plen 23
> > > B0 3A 4C 3D 0F 00 05 42 6C 75 65 5A 00 00 00 00 00 00 00 00
> > > 00 00 00
> >
> > The PIN code you entered is simply wrong. Try "BlueZ".
>
> btw, what and where is the tried PIN code in that hex dump? B0 3A 4C 3D 0F 00
> is obviously Bluetooth address of the remote host, so somewhere here
> is the PIN code "05 42 6C 75 65 5A 00 00 00 00 00 00 00 00 00 00 00",
> but how it is encoded?
you can use "hcidump -X" and you will see it. You can also read the
specification or think about what "05 42 6C 75 65 5A" maybe means ;)
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-11-04 14:22 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-03 19:24 [Bluez-users] Network Access Point - pairing problem D.W.
2004-11-03 20:15 ` Marcel Holtmann
-- strict thread matches above, loose matches on Subject: below --
2004-11-04 10:22 D.W.
2004-11-04 11:05 ` Marcel Holtmann
2004-11-04 13:43 ` Jouni.Lohikoski@iki.fi
2004-11-04 14:22 ` Marcel Holtmann
2004-11-04 12:59 ` D.W.
2004-11-04 13:36 ` Marcel Holtmann
2004-11-02 22:07 D.W.
2004-11-03 0:07 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox