Network Access Point - pairing problem
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
Quoted 1 line
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
Quoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 09 04
Quoted 1 line
HCI Event: Role Change(0x12) plen 8
00 B0 3A 4C 3D 0F 00 00
Quoted 1 line
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
Quoted 1 line
HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
B0 3A 4C 3D 0F 00 01
Quoted 1 line
HCI Event: Max Slots Change(0x1b) plen 3
28 00 05
Quoted 1 line
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
Quoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 0F 04
Quoted 1 line
HCI Event: Connection Packet Type Changed(0x1d) plen 5
00 28 00 18 CC
Quoted 1 line
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
Quoted 1 line
HCI Event: Command Complete(0x0e) plen 10
01 0D 04 00 B0 3A 4C 3D 0F 00
Quoted 1 line
HCI Event: Disconn Complete(0x05) plen 4
00 28 00 05
Regards Daniel
Signature · 14 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Daniel,
Quoted 16 lines
this is the output when I execute hciconfig -a.
hci0: Type: USBBD 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.
Quoted 29 lines
This is the output while trying to connect to the NAP at first contact:
HCIDump - HCI packet analyzer ver 1.5
device: hci0snap_len: 1028 filter:0xffffffffQuoted 1 line
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 00Quoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 09 04
Quoted 1 line
HCI Event: Role Change(0x12) plen 8
00 B0 3A 4C 3D 0F 00 00
Quoted 1 line
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 00Quoted 1 line
HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
B0 3A 4C 3D 0F 00 01
Quoted 1 line
HCI Event: Max Slots Change(0x1b) plen 3
28 00 05
Quoted 1 line
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 CCQuoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 0F 04
Quoted 1 line
HCI Event: Connection Packet Type Changed(0x1d) plen 5
00 28 00 18 CC
Quoted 1 line
HCI Event: PIN Code Request(0x16) plen 6
Quoted 8 lines
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 00Quoted 1 line
HCI Event: Command Complete(0x0e) plen 10
01 0D 04 00 B0 3A 4C 3D 0F 00
Quoted 1 line
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
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
Signature · 14 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
Marcel Holtmann
maintainerHi Daniel,
Quoted 3 lines
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
Hi MH,
Quoted 7 lines · Marcel Holtmann
Quoted 5 lines
Quoted 1 line
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 00The 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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
Marcel Holtmann
maintainerHi Jouni,
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 1 line
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
Quoted 6 lines
Quoted 1 line
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
[Bluez-users] AW: Re: Again dund
Hi Marcel,
during my efforts to bring up a bluetooth connection, I'm always logged in as root.
I checked with ps, here the result:
Linux-Notebook:~ # ps
PID TTY TIME CMD
6340 pts/1 00:00:00 bash
6348 pts/1 00:00:00 ps
Linux-Notebook:~ # hcid
Linux-Notebook:~ # ps
PID TTY TIME CMD
6340 pts/1 00:00:00 bash
6363 pts/1 00:00:00 ps
Then I initializedb the BT-function of my Toshiba-laptop:
Linux-Notebook:~ # dmabt
Linux-Notebook:~ # ps
PID TTY TIME CMD
6340 pts/1 00:00:00 bash
6462 pts/1 00:00:00 ps
Linux-Notebook:~ # hcid
Linux-Notebook:~ # ps
PID TTY TIME CMD
6340 pts/1 00:00:00 bash
6552 pts/1 00:00:00 ps
The next step was to use the hcitool:
Linux-Notebook:~ # hcitool scan
Scanning ...
00:0B:CE:00:01:8F Bluetooth-Modul
00:02:EE:D0:49:44 PkM 6820the BT-Modul and my handy (Nokia 6820) were detected. With sdptool I tried to get the available services, at first of the BT-Modul:
Linux-Notebook:~ # sdptool browse 00:0B:CE:00:01:8F
Failed to connect to SDP server on 00:0B:CE:00:01:8F: Connection refused
and second my handy:
Linux-Notebook:~ # sdptool browse 00:02:EE:D0:49:44 Browsing 00:02:EE:D0:49:44 ...
Service Name: OBEX Object Push
Service RecHandle: 0x10000
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 9
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"OBEX Object Push" (0x1105)
Version: 0x0100
etc........
At the moment I don't know how to get the daemon hcid running. I think if this daemon runs, many of the problems are solved, aren't they?
Regards
Peter
Quoted 6 lines
Hi Peter,
Quoted 2 lines
I tried to start hcid by typing it at the command-line, but I don't know how to control if this daemon runs.
check with ps. You must run it as root and only one hcid process at the
same time is > allowed.
Quoted 4 lines
Quoted 2 lines
Hcidump -x gives nearly no response, only the version-no
Then there is something wrong. You must at least see something when you
run an inquiry or
Quoted 5 lines
create a connection. Do this as root.
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
Marcel Holtmann
maintainerRe: [Bluez-users] AW: Re: Again dund
Hi Peter,
Quoted 5 lines
during my efforts to bring up a bluetooth connection, I'm always logged in as root.
I checked with ps, here the result:
Quoted 9 lines
Linux-Notebook:~ # ps
PID TTY TIME CMD
6340 pts/1 00:00:00 bash
6348 pts/1 00:00:00 ps
Linux-Notebook:~ # hcid
Linux-Notebook:~ # ps
PID TTY TIME CMD
6340 pts/1 00:00:00 bash
6363 pts/1 00:00:00 ps
reading the manual page of ps may help. Or try "ps x" ;)
Quoted 45 lines
Then I initializedb the BT-function of my Toshiba-laptop:
Linux-Notebook:~ # dmabt
Linux-Notebook:~ # ps
PID TTY TIME CMD
6340 pts/1 00:00:00 bash
6462 pts/1 00:00:00 ps
Linux-Notebook:~ # hcid
Linux-Notebook:~ # ps
PID TTY TIME CMD
6340 pts/1 00:00:00 bash
6552 pts/1 00:00:00 psThe next step was to use the hcitool:
Linux-Notebook:~ # hcitool scan
Scanning ...00:0B:CE:00:01:8F Bluetooth-Modul 00:02:EE:D0:49:44 PkM 6820the BT-Modul and my handy (Nokia 6820) were detected. With sdptool I tried to get the available services, at first of the BT-Modul:
Linux-Notebook:~ # sdptool browse 00:0B:CE:00:01:8F
Failed to connect to SDP server on 00:0B:CE:00:01:8F: Connection refusedand second my handy:
Linux-Notebook:~ # sdptool browse 00:02:EE:D0:49:44 Browsing 00:02:EE:D0:49:44 ...
Service Name: OBEX Object Push
Service RecHandle:0x10000
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 9
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639:0x656e
encoding:0x6a
base_offset:0x100
Profile Descriptor List:
"OBEX Object Push" (0x1105)
Quoted 5 lines
Version: 0x0100etc........
At the moment I don't know how to get the daemon hcid running. I think if this daemon runs, many of the problems are solved, aren't they?
You must run "hcidump -x" to see what is going on.
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
AW: [Bluez-users] Again dund
Hi Marcel,
refering to Linux I'm a very beginner and thatfore excuse my mistakes, please
ps x gave me:
Linux-Notebook:~ # ps x
...........
5173 ? Ss 0:00 hcid: processing events
etc ...........
but the hcidump -x
Linux-Notebook:~ # hcidump -x
HCIDump - HCI packet analyzer ver 1.7
device: hci0 snap_len: 1028 filter: 0xffffffff
<-- at this point the program stopped and I terminated with crtl-c
I need some aditional help for the manual of hcid.conf=20
nn:nn:nn:nn:nn:nn <--- how can I give the address of the BT-modul? what does this mean?
Parameters specified within this section will be applied =
to
the device with =20
this device bluetooth address. All other
parameters are applied=20
from the default section.
pin_helper "file"
The path to the PIN helper application. The default is
"/bin/bluepin". The=20
following
output is expected from the PIN helper:
PIN:12345678 <-- I need another PIN, how zo do this?
Or, when no PIN is available:
ERR
Thanks and regards
Peter
##>-----Urspr=FCngliche Nachricht-----
##>Von: [email protected]=20 ##>[mailto:[email protected]] Im Auftrag=20 ##>von Marcel Holtmann
##>Gesendet: Freitag, 5. November 2004 15:28
##>An: BlueZ Mailing List
##>Betreff: Re: [Bluez-users] AW: Re: Again dund
##>
##>
##>Hi Peter,
##>
##>> during my efforts to bring up a bluetooth connection, I'm always=20 ##>> logged in as root.
##>>=20
##>> I checked with ps, here the result:
##>>=20
##>> Linux-Notebook:~ # ps
##>> PID TTY TIME CMD
##>> 6340 pts/1 00:00:00 bash ##>> 6348 pts/1 00:00:00 ps ##>> Linux-Notebook:~ # hcid ##>> Linux-Notebook:~ # ps ##>> PID TTY TIME CMD ##>> 6340 pts/1 00:00:00 bash ##>> 6363 pts/1 00:00:00 ps
##>
##>reading the manual page of ps may help. Or try "ps x" ;) ##>
##>> Then I initializedb the BT-function of my Toshiba-laptop:
##>>=20
##>> Linux-Notebook:~ # dmabt
##>> Linux-Notebook:~ # ps
##>> PID TTY TIME CMD
##>> 6340 pts/1 00:00:00 bash ##>> 6462 pts/1 00:00:00 ps ##>> Linux-Notebook:~ # hcid ##>> Linux-Notebook:~ # ps ##>> PID TTY TIME CMD ##>> 6340 pts/1 00:00:00 bash ##>> 6552 pts/1 00:00:00 ps
##>>=20
##>> The next step was to use the hcitool:
##>>=20
##>> Linux-Notebook:~ # hcitool scan
##>> Scanning ...
##>> 00:0B:CE:00:01:8F Bluetooth-Modul ##>> 00:02:EE:D0:49:44 PkM 6820
##>>=20
##>> the BT-Modul and my handy (Nokia 6820) were detected. With=20 ##>sdptool I=20
##>> tried to get the available services, at first of the BT-Modul:
##>>=20
##>> Linux-Notebook:~ # sdptool browse 00:0B:CE:00:01:8F ##>> Failed to connect to SDP server on 00:0B:CE:00:01:8F: Connection=20 ##>> refused
##>>=20
##>> and second my handy:
##>>=20
##>> Linux-Notebook:~ # sdptool browse 00:02:EE:D0:49:44 ##>> Browsing 00:02:EE:D0:49:44 ...
##>> Service Name: OBEX Object Push
##>> Service RecHandle: 0x10000
##>> Service Class ID List:
##>> "OBEX Object Push" (0x1105)
##>> Protocol Descriptor List:
##>> "L2CAP" (0x0100)
##>> "RFCOMM" (0x0003)
##>> Channel: 9
##>> "OBEX" (0x0008)
##>> Language Base Attr List:
##>> code_ISO639: 0x656e ##>> encoding: 0x6a ##>> base_offset: 0x100
##>> Profile Descriptor List:
##>> "OBEX Object Push" (0x1105)
##>> Version: 0x0100
##>> etc........
##>>=20
##>> At the moment I don't know how to get the daemon hcid=20 ##>running. I think=20
##>> if this daemon runs, many of the problems are solved, aren't they? ##>
##>You must run "hcidump -x" to see what is going on.
##>
##>Regards
##>
##>Marcel
##>
##>
##>
##> ##>------------------------------------------------------- ##>This SF.Net email is sponsored by:
##>Sybase ASE Linux Express Edition - download now for FREE=20 ##>LinuxWorld Reader's Choice Award Winner for best database on=20 ##>Linux. http://ads.osdn.com/?ad_id=3D5588&alloc_id=3D12065&op=3Dclick
##>_______________________________________________ ##>Bluez-users mailing list ##>[email protected]=20 ##>##>https://lists.sourceforge.net/lists/listinfo/bluez-users/list ##>info/bluez-users
##>
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
Marcel Holtmann
maintainerRe: AW: [Bluez-users] Again dund
Hi Peter,
Quoted 9 lines
refering to Linux I'm a very beginner and thatfore excuse my mistakes, please
ps x gave me:
Linux-Notebook:~ # ps x
...........
5173 ? Ss 0:00 hcid: processing events
etc ...........
so hcid is running.
Quoted 5 lines
but the hcidump -x
Linux-Notebook:~ # hcidump -x
HCIDump - HCI packet analyzer ver 1.7
device: hci0snap_len: 1028 filter:0xffffffff
<-- at this point the program stopped and I terminated with crtl-c
Leave it running. You will see something when you do something with the HCI layer.
Quoted 10 lines
I need some aditional help for the manual of hcid.conf
nn:nn:nn:nn:nn:nn <--- how can I give the address of the BT-modul? what does this mean?
Parameters specified within this section will be applied to
the device with
this device bluetooth address. All other
parameters are applied
from the default section.
You don't need this at the moment.
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
AW: AW: [Bluez-users] Again dund
Hi Marcel,
now I give you the responses of hcidump -x and I hope that you can give = me a
hint for my next steps to the bluetooth connection.
At first I have to initialize the BT-function of my Toshiba-notebook by dmabt, then I run the hcidump -x
With hcitool I'm scanning for BT-devices:
Linux-Notebook:~ # hcitool scan
Scanning ...
00:0B:CE:00:01:8F Bluetooth-Modul
00:02:EE:D0:49:44 PkM 6820HCIDUMP -X gives the response
< HCI Command: Inquiry(0x01|0x0001) plen 5
33 8B 9E 08 64
Quoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 01 04
Quoted 1 line
HCI Event: Inquiry Result(0x02) plen 15
01 44 49 D0 EE 02 00 01 00 00 04 02 52 5E 30
Quoted 1 line
HCI Event: Inquiry Result(0x02) plen 15
01 8F 01 00 CE 0B 00 01 00 00 00 03 02 57 7A
Quoted 1 line
HCI Event: Inquiry Complete(0x01) plen 1
00
< HCI Command: Remote Name Request(0x01|0x0019) plen 10
8F 01 00 CE 0B 00 02 00 00 00
Quoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 19 04
Quoted 1 line
HCI Event: Remote Name Req Complete(0x07) plen 255
00 8F 01 00 CE 0B 00 42 6C 75 65 74 6F 6F 74 68 2D 4D 6F 64 75 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
< HCI Command: Remote Name Request(0x01|0x0019) plen 10
44 49 D0 EE 02 00 02 00 00 00
Quoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 19 04
Quoted 1 line
HCI Event: Remote Name Req Complete(0x07) plen 255
00 44 49 D0 EE 02 00 50 6B 4D 20 36 38 32 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Than I run dund --connect 00:0B:CE:00:01:8F # address of BT-Modul and
HCIDUMP -X response
< HCI Command: Create Connection(0x01|0x0005) plen 13
8F 01 00 CE 0B 00 18 CC 02 00 00 00 01
Quoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 05 04
Quoted 1 line
HCI Event: Role Change(0x12) plen 8
00 8F 01 00 CE 0B 00 01
Quoted 1 line
HCI Event: Connect Complete(0x03) plen 11
00 29 00 8F 01 00 CE 0B 00 01 00
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
< HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
29 00 0F 00
Quoted 1 line
HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
8F 01 00 CE 0B 00 01
Quoted 1 line
HCI Event: Command Complete(0x0e) plen 6
01 0D 08 00 29 00
Quoted 1 line
HCI Event: Max Slots Change(0x1b) plen 3
29 00 05
Quoted 1 line
HCI Event: Number of Completed Packets(0x13) plen 5
01 29 00 01 00
Quoted 1 line
HCI Event: Link Key Request(0x17) plen 6
8F 01 00 CE 0B 00
< HCI Command: Link Key Request Reply(0x01|0x000b) plen 22
8F 01 00 CE 0B 00 57 D3 4C A0 11 16 5C 3F 27 59 01 71 9C D2 AC 1B
Quoted 1 line
HCI Event: Command Complete(0x0e) plen 10
01 0B 04 00 8F 01 00 CE 0B 00
Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 3 status 0
< HCI Command: Disconnect(0x01|0x0006) plen 3
29 00 13
Quoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 06 04
Quoted 1 line
HCI Event: Disconn Complete(0x05) plen 4
00 29 00 16
there is no bt-connection established and I don't know why.
Marcel, please be so kind to give me some hints.
Thanks and regards
Peter
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
Marcel Holtmann
maintainerRe: [Bluez-users] Again dund
Hi Peter,
Quoted 35 lines
now I give you the responses of hcidump -x and I hope that you can give me a hint for my next steps to the bluetooth connection.
Than I run dund --connect 00:0B:CE:00:01:8F # address of BT-Modul and
HCIDUMP -X response
< HCI Command: Create Connection(0x01|0x0005) plen 13
8F 01 00 CE 0B 00 18 CC 02 00 00 00 01Quoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 05 04
Quoted 1 line
HCI Event: Role Change(0x12) plen 8
00 8F 01 00 CE 0B 00 01
Quoted 1 line
HCI Event: Connect Complete(0x03) plen 11
00 29 00 8F 01 00 CE 0B 00 01 00
< ACL data: handle0x0029flags0x02dlen 12L2CAP(s): Connect req: psm 1 scid 0x0040< HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
29 00 0F 00Quoted 1 line
HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
8F 01 00 CE 0B 00 01
Quoted 1 line
HCI Event: Command Complete(0x0e) plen 6
01 0D 08 00 29 00
Quoted 1 line
HCI Event: Max Slots Change(0x1b) plen 3
29 00 05
Quoted 1 line
HCI Event: Number of Completed Packets(0x13) plen 5
01 29 00 01 00
Quoted 1 line
HCI Event: Link Key Request(0x17) plen 6
8F 01 00 CE 0B 00
< HCI Command: Link Key Request Reply(0x01|0x000b) plen 22
8F 01 00 CE 0B 00 57 D3 4C A0 11 16 5C 3F 27 59 01 71 9C D2 AC 1BQuoted 1 line
HCI Event: Command Complete(0x0e) plen 10
01 0B 04 00 8F 01 00 CE 0B 00
Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 16L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 3 status 0
Quoted 8 lines
< HCI Command: Disconnect(0x01|0x0006) plen 3
29 00 13Quoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 06 04
Quoted 1 line
HCI Event: Disconn Complete(0x05) plen 4
00 29 00 16
there is no bt-connection established and I don't know why.
the L2CAP response failed with result code 3 and this means "Connection refused - security block". The link key request is there and you reply with a link key, but the connection fails. This means that your link key that is stored on your system is wrong.
There is no easy way to delete a link key at the moment and so I think the best way is to delete the file /etc/bluetooth/link_key and restart your running hcid.
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
AW: [Bluez-users] Again dund
Hi Marcel,
##>
##>There is no easy way to delete a link key at the moment and=20 ##>so I think the best way is to delete the file=20 ##>/etc/bluetooth/link_key and restart your running hcid.
now I have a new link_key with the right key :) :)
I'm able to connect via bluetooth
Linux-Notebook:/ # dund --connect 00:0B:CE:00:01:8F
Linux-Notebook:/ # dund --show
rfcomm0: 00:0B:CE:00:01:8F channel 1 pppd pid 6820
marvelous!! But now I need the next step. I want to use the bluetooth-connection as/like an ethernet-connection as the BT-Modul = gives me
the function of a switch and router with DHCP
I tried to get infos of the services provided, but no result:
Linux-Notebook:/ # sdptool browse 00:0B:CE:00:01:8F Browsing 00:0B:CE:00:01:8F ... Linux-Notebook:/ #=20
Linux-Notebook:~ # hcidump -x
HCIDump - HCI packet analyzer ver 1.7
device: hci0 snap_len: 1028 filter: 0xffffffff < HCI Command: Create Connection(0x01|0x0005) plen 13
8F 01 00 CE 0B 00 18 CC 02 00 00 00 01
Quoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 05 04
Quoted 1 line
HCI Event: Role Change(0x12) plen 8
00 8F 01 00 CE 0B 00 01
Quoted 1 line
HCI Event: Connect Complete(0x03) plen 11
00 29 00 8F 01 00 CE 0B 00 01 00
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
< HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
29 00 0F 00
Quoted 1 line
HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
8F 01 00 CE 0B 00 01
Quoted 1 line
HCI Event: Command Complete(0x0e) plen 6
01 0D 08 00 29 00
Quoted 1 line
HCI Event: Number of Completed Packets(0x13) plen 5
01 29 00 01 00
Quoted 1 line
HCI Event: Max Slots Change(0x1b) plen 3
29 00 05
Quoted 1 line
HCI Event: Link Key Request(0x17) plen 6
8F 01 00 CE 0B 00
< HCI Command: Link Key Request Reply(0x01|0x000b) plen 22
8F 01 00 CE 0B 00 0B 9B 0C 37 93 EC 88 55 72 FF 66 DE A8 50 06 E5
Quoted 1 line
HCI Event: Command Complete(0x0e) plen 10
01 0B 04 00 8F 01 00 CE 0B 00
Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4
MTU 2016
< ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0Quoted 1 line
HCI Event: Number of Completed Packets(0x13) plen 5
01 29 00 01 00
Quoted 1 line
HCI Event: Number of Completed Packets(0x13) plen 5
01 29 00 01 00
Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0029 flags 0x02 dlen 24
L2CAP(d): cid 0x40 len 20 [psm 1]
SDP SSA Req: tid 0x0 len 0xf
pat uuid-16 0x1002 (PubBrwsGrp)
max 0xffff
aid(s) 0x0000 - 0xffff
cont 00Quoted 1 line
HCI Event: Number of Completed Packets(0x13) plen 5
01 29 00 01 00
Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 15
L2CAP(d): cid 0x40 len 11 [psm 1]
SDP SSA Rsp: tid 0x0 len 0x6
cnt 0x3
cont 00
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040Quoted 1 line
HCI Event: Number of Completed Packets(0x13) plen 5
01 29 00 01 00
Quoted 1 line
ACL data: handle
0x0029flags0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
< HCI Command: Disconnect(0x01|0x0006) plen 3
29 00 13
Quoted 1 line
HCI Event: Command Status(0x0f) plen 4
00 01 06 04
Quoted 1 line
HCI Event: Disconn Complete(0x05) plen 4
00 29 00 16
Please, Marcel, what is to do?
Thanks and regards
Peter
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
Marcel Holtmann
maintainerRe: [Bluez-users] Again dund
Hi Peter,
Quoted 4 lines
now I have a new
link_keywith the right key :) :)I'm able to connect via bluetooth
Quoted 8 lines
Linux-Notebook:/ # dund --connect 00:0B:CE:00:01:8F
Linux-Notebook:/ # dund --show
rfcomm0: 00:0B:CE:00:01:8F channel 1 pppd pid 6820marvelous!! But now I need the next step. I want to use the bluetooth-connection as/like an ethernet-connection as the BT-Modul gives me the function of a switch and router with DHCP
you get these information from PPP.
Quoted 5 lines
I tried to get infos of the services provided, but no result:
Linux-Notebook:/ # sdptool browse 00:0B:CE:00:01:8F Browsing 00:0B:CE:00:01:8F ... Linux-Notebook:/ #
If the public browse group is not supported you must do this with "sdptool search --bdaddr 00:0B:CE:00:01:8F lan". Check the manual page for more details.
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
AW: [Bluez-users] Again dund
Hi Marcel,
I'm not yet able to tell linux, that my bluetooth-connection is a ethernet-connection. I have no idea how to manage this with PPP. With = YaST I
tried to define the bt-connection as a networkcard - but it doesn't = realy
work.
Linux-Notebook:~ # sdptool search --bdaddr 00:0B:CE:00:01:8F lan Searching for lan on 00:0B:CE:00:01:8F ...
Service Name: Netzwerkzugang
Service RecHandle: 0x10000
Service Class ID List:
"LAN Access Using PPP" (0x1102)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
What can I do - ? - perhaps I have to install SuSE 9.2 ??!
Regards
Peter
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
Marcel Holtmann
maintainerRe: [Bluez-users] Again dund
Hi Peter,
Quoted 4 lines
I'm not yet able to tell linux, that my bluetooth-connection is a ethernet-connection. I have no idea how to manage this with PPP. With YaST I tried to define the bt-connection as a networkcard - but it doesn't realy work.
I don't get your point. The ppp0 interface can be used and when the routing information are right then this works. It is not different from dialin with a modem.
Quoted 15 lines
Linux-Notebook:~ # sdptool search --bdaddr 00:0B:CE:00:01:8F lan Searching for lan on 00:0B:CE:00:01:8F ...
Service Name: Netzwerkzugang
Service RecHandle:0x10000
Service Class ID List:
"LAN Access Using PPP" (0x1102)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639:0x656e
encoding:0x6a
base_offset:0x100
Quoted 1 line
What can I do - ? - perhaps I have to install SuSE 9.2 ??!
The SuSE 9.2 will improve things, because the kernel, libs and utils are up to date. However I don't know if that is the problem here. You should remember that "LAN access using PPP" is deprecated and this stuff is all PPP related. Look on the internet for more information.
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users
AW: [Bluez-users] Again dund
Hi Marcel,
##>I don't get your point. The ppp0 interface can be used and=20 ##>when the routing information are right then this works. It=20 ##>is not different from dialin with a modem.
My telephone system works as DSL or ISDN system and has in addition a bluetooth accesspoint. It also gives the abilities of a switch and = router.
So, I tried to initialize via YaST on DSL or ISDN the connection via bluetooth and expected to find ppp0 interface. But I didn't find it or = it
doesn't exist already. My question is, how to establish a connection = that is
able to use the ISDN or DSL functionality (router).
Regards
Peter
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users/listinfo/bluez-users