Skip to contentSkip to conversation

It may be a bug in hcidump

DISCUSSION Artem Bizyukov 2 participants 3 messages Sep 20, 2005 – Sep 21, 2005 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Marcel

Im save dump with -w option. hcidump fail only with -V option. Im tested this tool on the same system but use glibc-2.3.2. The result is the same.

I can normally load this tool under gdbserver. But i can`t normally connect to gdbserver from scratchbox gdb. On command list gdb get next
answer:

(gdb) list
1 /home/tsavola/sb-toolchains/gcc/glibc/work/glibc_build/csu/crti.S:
No such file or directory.
in /home/tsavola/sb-toolchains/gcc/glibc/work/glibc_build/csu/crti.S

All my another programme loading and debugging fine. Do you know that does it mean?

Regurds. Bizyukov Artem.

maintainer
#1 lore raw

Hi Artem,

Quoted 3 lines

Im save dump with -w option. hcidump fail only with -V option. Im tested this tool on the same system but use glibc-2.3.2. The result is the same.

the problem is easy, because it is not a valid HCI frame and hcidump is not doing any robustness checks.

< HCI Command: PIN Code Request Reply (0x01|0x000d) plen 4
0000: 29 00 00 00 )...

A PIN code reply must include the BD_ADDR and not the connection handle. Install bluez-utils-2.21 (or from CVS) and try again.

Regards

Marcel

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

---------- Forwarded message ----------
From: Artem Bizyukov <[email protected]>
Date: 21.09.2005 13:34
Subject: Re: Re[2]: It may be a bug in hcidump
To: Marcel Holtmann <[email protected]>

2005/9/20, Marcel Holtmann <[email protected]>:

Quoted 12 lines

Hi Artem,

Quoted 3 lines

Im save dump with -w option. hcidump fail only with -V option. Im tested this tool on the same system but use glibc-2.3.2. The result is the same.

the problem is easy, because it is not a valid HCI frame and hcidump is not doing any robustness checks.

< HCI Command: PIN Code Request Reply (0x01|0x000d) plen 4
0000: 29 00 00 00 )...

Quoted 9 lines

A PIN code reply must include the BD_ADDR and not the connection handle. Install bluez-utils-2.21 (or from CVS) and try again.

Regards

Marcel

Hello Marcel
I used the latest utils and libs. And those dump i record with:

OMAP5912OSK:~# hcitool
hcitool - HCI Tool ver 2.21
MAP5912OSK:~# hcidump --help
HCI sniffer - Bluetooth packet analyzer ver 1.25

I`m thin this bug is not critical. In my previous post "L2CAP channel" i describe my main problem. I cant connect to my board through L2CAP channel.

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0040

< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 1
Connection pending - Authentication pending
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ < HCI Command: Set Connection Encryption (0x01|0x0013) plen 3
0000: 29 00 01 )..

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

0000: 01 29 00 01 00 .)...

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

0000: 00 01 13 04 ....

Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

0000: 00 29 00 01 .)..
< HCI Command: Change Connection Link Key (0x01|0x0015) plen 2
0000: 29 00 ).
< ACL data: handle 41 flags 0x02 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
      Connection successful
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

Kernel answer "Connection pending". But i ned that kernel enswer "Connection successful" without "Connection pending". I am write application that must communicate with already exist big PC application, and i can`t change it. How i must open socket, or set it parametrs, for succesful connect with a PC application?

Regards.
Bizyukov Artem.

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel