2008-04-18 21:45:16

by Unai Uribarri

[permalink] [raw]
Subject: [Bluez-users] Link encryption failed: Input/output error (Belkin F8T013)

Hello folks,

I have a Sony Ericsson K800i phone, which I use as a remote control for my
Linux media center, using a bluetooth 1.1 CSR dongle.

But using a Belkin F8T013, a Bluetooth 2.0 USB dongle, the phone can't
connect to any computer running Linux, neither in an Pentium 4 running
Ubuntu 07.10 nor a PowerPC G4 running Ubuntu 08.04. I get the following
output on the console:

hcid[7355]: link_key_request (sba=00:0A:3A:6E:0A:C7, dba=00:1D:28:2D:39:33)
input[7358]: Incoming connection on PSM 17
input[7358]: Incoming connection on PSM 19
hcid[7355]: /org/bluez: org.bluez.Database.RequestAuthorization()
input[7358]: Link encryption failed: Input/output error (5)

If I strace the input daemon, I get the following output:

poll([{fd=5, events=POLLIN, revents=POLLIN}, {fd=6, events=POLLIN}, {fd=4,
events=POLLIN}], 3, -1) = 1
accept(5, {sa_family=AF_BLUETOOTH,
sa_data="\21\00039-(\35\0\1#\371\244\0\0"}, [10]) = 7
getsockname(7, {sa_family=AF_BLUETOOTH,
sa_data="\21\0\307\nn:\n\00039-(\35\0"}, [10]) = 0
time(NULL) = 1208554156
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
writev(2, [{"input[7358]: Incoming connection on PSM 17", 42}, {"\n", 1}],
2) = 43
send(3, "<31>Apr 18 23:29:16 input[7358]: Incoming connection on PSM 17",
62, MSG_NOSIGNAL) = 62
poll([{fd=6, events=POLLIN, revents=POLLIN}, {fd=4, events=POLLIN}, {fd=5,
events=POLLIN}], 3, -1) = 1
accept(6, {sa_family=AF_BLUETOOTH,
sa_data="\23\00039-(\35\0\30v\5\10\10\0"}, [10]) = 8
getsockname(8, {sa_family=AF_BLUETOOTH,
sa_data="\23\0\307\nn:\n\00039-(\35\0"}, [10]) = 0
time(NULL) = 1208554156
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
writev(2, [{"input[7358]: Incoming connection on PSM 19", 42}, {"\n", 1}],
2) = 43
send(3, "<31>Apr 18 23:29:16 input[7358]: Incoming connection on PSM 19",
62, MSG_NOSIGNAL) = 62
gettimeofday({1208554156, 773967}, NULL) = 0
writev(4,
[{"l\1\0\1\35\0\0\0\17\0\0\0x\0\0\0\1\1o\0\n\0\0\0/org/bluez\0\0\0\0\0\0\6\1s\0\t\0\0\0org.bluez\0\0\0\0\0\0\0\2\1s\0\22\0\0\0org.bluez.Database\0\0\0\0\0\0\3\1s\0"...,
136}, {"\21\0\0\00000:1D:28:2D:39:33\0\0\0\0\0\0\0\0", 29}], 2) = 165
gettimeofday({1208554156, 774555}, NULL) = 0
poll([{fd=4, events=POLLIN, revents=POLLIN}, {fd=5, events=POLLIN}, {fd=6,
events=POLLIN}], 3, 25000) = 1
gettimeofday({1208554156, 776093}, NULL) = 0
read(4,
"l\2\1\1\0\0\0\0\365\0\0\0\'\0\0\0\6\1s\0\6\0\0\0:1.569\0\0\5\1u\0\17\0\0\0\7\1s\0\6\0\0\0:1.568\0\0",
2048) = 56
read(4, 0x8059f78, 2048) = -1 EAGAIN (Resource temporarily
unavailable)
gettimeofday({1208554156, 776764}, NULL) = 0
gettimeofday({1208554156, 776957}, NULL) = 0
gettimeofday({1208554156, 777150}, NULL) = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=4, events=POLLIN}],
3, 0) = 0
socket(PF_BLUETOOTH, SOCK_RAW, 6) = 9
open("/var/lib/bluetooth/00:0A:3A:6E:0A:C7/input", O_RDONLY) = 10
flock(10, LOCK_SH) = 0
fstat64(10, {st_mode=S_IFREG|0644, st_size=290, ...}) = 0
mmap2(NULL, 290, PROT_READ, MAP_SHARED, 10, 0) = 0xb7f6f000
munmap(0xb7f6f000, 290) = 0
flock(10, LOCK_UN) = 0
close(10) = 0
open("/var/lib/bluetooth/00:0A:3A:6E:0A:C7/linkkeys", O_RDONLY) = 10
flock(10, LOCK_SH) = 0
fstat64(10, {st_mode=S_IFREG|0600, st_size=55, ...}) = 0
mmap2(NULL, 55, PROT_READ, MAP_SHARED, 10, 0) = 0xb7f6f000
munmap(0xb7f6f000, 55) = 0
flock(10, LOCK_UN) = 0
close(10) = 0
socket(PF_BLUETOOTH, SOCK_RAW, 1) = 10
ioctl(10, 0x800448d2, 0x805cbc0) = 0
ioctl(10, 0x800448d3, 0xbf9c561c) = 0
close(10) = 0
socket(PF_BLUETOOTH, SOCK_RAW, 1) = 10
bind(10, {sa_family=AF_BLUETOOTH,
sa_data="\0\0CW\234\277Vg\234\277h\206\5\10"}, 4) = 0
ioctl(10, 0x800448d5, 0x8058668) = 0
getsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333", [16])
= 0
setsockopt(10, SOL_IP, IP_TTL, "\20\0\0\0@\300\0\0\0\0\0\0\21\4\0\0", 16) =
0
writev(10, [{"\1", 1}, {"\21\4\2", 3}, {"\v\0", 2}], 3) = 6
poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
read(10, "\4\17\4\0\1\21\4", 260) = 7
poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 990) = 1
read(10, "\4\6\3\0\v\0", 260) = 6
setsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333", 16) =
0
getsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333", [16])
= 0
setsockopt(10, SOL_IP, IP_TTL, "\20\0\0\0\0\301\0\0\0\0\0\0\23\4\0\0", 16) =
0
writev(10, [{"\1", 1}, {"\23\4\3", 3}, {"\v\0\1", 3}], 3) = 7
poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
read(10, "\4\17\4\0\1\23\4", 260) = 7
poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 990) = 1
read(10, "\4\10\4$\v\0\0", 260) = 7
setsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333", 16) =
0
time(NULL) = 1208554156
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
writev(2, [{"input[7358]: Link encryption failed: Input/output error (5)",
59}, {"\n", 1}], 2) = 60
send(3, "<27>Apr 18 23:29:16 input[7358]: Link encryption failed:
Input/output error (5)", 79, MSG_NOSIGNAL) = 79
close(10) = 0
close(9) = 0
close(7) = 0
close(8) = 0

The interesting part is this line:

read(10, "\4\10\4$\v\0\0", 260) = 7

$ (0x24) is the error code; LMP PDU Not Allowed.

I can use this dongle in Windows without problem. Does anyone know how to
spy Windows? Any other idea?

Thanks.


Attachments:
(No filename) (6.00 kB)
(No filename) (9.27 kB)
(No filename) (320.00 B)
(No filename) (164.00 B)
Download all attachments

2008-04-24 12:57:40

by Claudio Takahasi

[permalink] [raw]
Subject: Re: [Bluez-users] Link encryption failed: Input/output error (Belkin F8T013)

On Fri, Apr 18, 2008 at 7:11 PM, Unai Uribarri <[email protected]> wrote:
> Ohh, this dongle works in Windows because the driver disables the encription
> for HID devices.
>
> So spying Windows drivers is no solution.
>
>
>
>
> On Fri, Apr 18, 2008 at 11:45 PM, Unai Uribarri <[email protected]> wrote:
>
> > Hello folks,
> >
> > I have a Sony Ericsson K800i phone, which I use as a remote control for my
> Linux media center, using a bluetooth 1.1 CSR dongle.
> >
> > But using a Belkin F8T013, a Bluetooth 2.0 USB dongle, the phone can't
> connect to any computer running Linux, neither in an Pentium 4 running
> Ubuntu 07.10 nor a PowerPC G4 running Ubuntu 08.04. I get the following
> output on the console:
> >
> > hcid[7355]: link_key_request (sba=00:0A:3A:6E:0A:C7,
> dba=00:1D:28:2D:39:33)
> > input[7358]: Incoming connection on PSM 17
> > input[7358]: Incoming connection on PSM 19
> > hcid[7355]: /org/bluez: org.bluez.Database.RequestAuthorization()
> > input[7358]: Link encryption failed: Input/output error (5)
> >
> > If I strace the input daemon, I get the following output:
> >
> > poll([{fd=5, events=POLLIN, revents=POLLIN}, {fd=6, events=POLLIN}, {fd=4,
> events=POLLIN}], 3, -1) = 1
> > accept(5, {sa_family=AF_BLUETOOTH,
> sa_data="\21\00039-(\35\0\1#\371\244\0\0"}, [10]) = 7
> > getsockname(7, {sa_family=AF_BLUETOOTH,
> sa_data="\21\0\307\nn:\n\00039-(\35\0"}, [10]) = 0
> > time(NULL) = 1208554156
> > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > writev(2, [{"input[7358]: Incoming connection on PSM 17", 42}, {"\n", 1}],
> 2) = 43
> > send(3, "<31>Apr 18 23:29:16 input[7358]: Incoming connection on PSM 17",
> 62, MSG_NOSIGNAL) = 62
> > poll([{fd=6, events=POLLIN, revents=POLLIN}, {fd=4, events=POLLIN}, {fd=5,
> events=POLLIN}], 3, -1) = 1
> > accept(6, {sa_family=AF_BLUETOOTH,
> sa_data="\23\00039-(\35\0\30v\5\10\10\0"}, [10]) = 8
> > getsockname(8, {sa_family=AF_BLUETOOTH,
> sa_data="\23\0\307\nn:\n\00039-(\35\0"}, [10]) = 0
> > time(NULL) = 1208554156
> > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > writev(2, [{"input[7358]: Incoming connection on PSM 19", 42}, {"\n", 1}],
> 2) = 43
> > send(3, "<31>Apr 18 23:29:16 input[7358]: Incoming connection on PSM 19",
> 62, MSG_NOSIGNAL) = 62
> > gettimeofday({1208554156, 773967}, NULL) = 0
> > writev(4,
> [{"l\1\0\1\35\0\0\0\17\0\0\0x\0\0\0\1\1o\0\n\0\0\0/org/bluez\0\0\0\0\0\0\6\1s\0\t\0\0\0org.bluez\0\0\0\0\0\0\0\2\1s\0\22\0\0\0org.bluez.Database\0\0\0\0\0\0\3\1s\0"...,
> 136}, {"\21\0\0\00000:1D:28:2D:39:33\0\0\0\0\0\0\0\0", 29}], 2) = 165
> > gettimeofday({1208554156, 774555}, NULL) = 0
> > poll([{fd=4, events=POLLIN, revents=POLLIN}, {fd=5, events=POLLIN}, {fd=6,
> events=POLLIN}], 3, 25000) = 1
> > gettimeofday({1208554156, 776093}, NULL) = 0
> > read(4,
> "l\2\1\1\0\0\0\0\365\0\0\0\'\0\0\0\6\1s\0\6\0\0\0:1.569\0\0\5\1u\0\17\0\0\0\7\1s\0\6\0\0\0:1.568\0\0",
> 2048) = 56
> > read(4, 0x8059f78, 2048) = -1 EAGAIN (Resource temporarily
> unavailable)
> > gettimeofday({1208554156, 776764}, NULL) = 0
> > gettimeofday({1208554156, 776957}, NULL) = 0
> > gettimeofday({1208554156, 777150}, NULL) = 0
> > poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=4,
> events=POLLIN}], 3, 0) = 0
> > socket(PF_BLUETOOTH, SOCK_RAW, 6) = 9
> > open("/var/lib/bluetooth/00:0A:3A:6E:0A:C7/input", O_RDONLY) = 10
> > flock(10, LOCK_SH) = 0
> > fstat64(10, {st_mode=S_IFREG|0644, st_size=290, ...}) = 0
> > mmap2(NULL, 290, PROT_READ, MAP_SHARED, 10, 0) = 0xb7f6f000
> > munmap(0xb7f6f000, 290) = 0
> > flock(10, LOCK_UN) = 0
> > close(10) = 0
> > open("/var/lib/bluetooth/00:0A:3A:6E:0A:C7/linkkeys", O_RDONLY) = 10
> > flock(10, LOCK_SH) = 0
> > fstat64(10, {st_mode=S_IFREG|0600, st_size=55, ...}) = 0
> > mmap2(NULL, 55, PROT_READ, MAP_SHARED, 10, 0) = 0xb7f6f000
> > munmap(0xb7f6f000, 55) = 0
> > flock(10, LOCK_UN) = 0
> > close(10) = 0
> > socket(PF_BLUETOOTH, SOCK_RAW, 1) = 10
> > ioctl(10, 0x800448d2, 0x805cbc0) = 0
> > ioctl(10, 0x800448d3, 0xbf9c561c) = 0
> > close(10) = 0
> > socket(PF_BLUETOOTH, SOCK_RAW, 1) = 10
> > bind(10, {sa_family=AF_BLUETOOTH,
> sa_data="\0\0CW\234\277Vg\234\277h\206\5\10"}, 4) = 0
> > ioctl(10, 0x800448d5, 0x8058668) = 0
> > getsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333",
> [16]) = 0
> > setsockopt(10, SOL_IP, IP_TTL, "\20\0\0\0@\300\0\0\0\0\0\0\21\4\0\0", 16)
> = 0
> > writev(10, [{"\1", 1}, {"\21\4\2", 3}, {"\v\0", 2}], 3) = 6
> > poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
> > read(10, "\4\17\4\0\1\21\4", 260) = 7
> > poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 990) = 1
> > read(10, "\4\6\3\0\v\0", 260) = 6
> > setsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333", 16)
> = 0
> > getsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333",
> [16]) = 0
> > setsockopt(10, SOL_IP, IP_TTL, "\20\0\0\0\0\301\0\0\0\0\0\0\23\4\0\0", 16)
> = 0
> > writev(10, [{"\1", 1}, {"\23\4\3", 3}, {"\v\0\1", 3}], 3) = 7
> > poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
> > read(10, "\4\17\4\0\1\23\4", 260) = 7
> > poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 990) = 1
> > read(10, "\4\10\4$\v\0\0", 260) = 7
> > setsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333", 16)
> = 0
> > time(NULL) = 1208554156
> > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > writev(2, [{"input[7358]: Link encryption failed: Input/output error (5)",
> 59}, {"\n", 1}], 2) = 60
> > send(3, "<27>Apr 18 23:29:16 input[7358]: Link encryption failed:
> Input/output error (5)", 79, MSG_NOSIGNAL) = 79
> > close(10) = 0
> > close(9) = 0
> > close(7) = 0
> > close(8) = 0
> >
> > The interesting part is this line:
> >
> > read(10, "\4\10\4$\v\0\0", 260) = 7
> >
> > $ (0x24) is the error code; LMP PDU Not Allowed.
> >
> > I can use this dongle in Windows without problem. Does anyone know how to
> spy Windows? Any other idea?
> >
> > Thanks.
> >
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>

Hi Unai,

Please send the hcidump log(run hcidump -X) and the sdp record of your
phone(run sdptool browse --raw --l2cap xx:xx:xx:xx:xx:xx)

Weird, according to the code encryption is applied for keyboard subclass only.


Regards,
--
--
Claudio Takahasi
Instituto Nokia de Tecnologia
Recife - Pernambuco - Brasil
+55 81 30879999

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-04-18 22:11:22

by Unai Uribarri

[permalink] [raw]
Subject: Re: [Bluez-users] Link encryption failed: Input/output error (Belkin F8T013)

Ohh, this dongle works in Windows because the driver disables the encription
for HID devices.

So spying Windows drivers is no solution.


On Fri, Apr 18, 2008 at 11:45 PM, Unai Uribarri <[email protected]> wrote:

> Hello folks,
>
> I have a Sony Ericsson K800i phone, which I use as a remote control for my
> Linux media center, using a bluetooth 1.1 CSR dongle.
>
> But using a Belkin F8T013, a Bluetooth 2.0 USB dongle, the phone can't
> connect to any computer running Linux, neither in an Pentium 4 running
> Ubuntu 07.10 nor a PowerPC G4 running Ubuntu 08.04. I get the following
> output on the console:
>
> hcid[7355]: link_key_request (sba=00:0A:3A:6E:0A:C7,
> dba=00:1D:28:2D:39:33)
> input[7358]: Incoming connection on PSM 17
> input[7358]: Incoming connection on PSM 19
> hcid[7355]: /org/bluez: org.bluez.Database.RequestAuthorization()
> input[7358]: Link encryption failed: Input/output error (5)
>
> If I strace the input daemon, I get the following output:
>
> poll([{fd=5, events=POLLIN, revents=POLLIN}, {fd=6, events=POLLIN}, {fd=4,
> events=POLLIN}], 3, -1) = 1
> accept(5, {sa_family=AF_BLUETOOTH,
> sa_data="\21\00039-(\35\0\1#\371\244\0\0"}, [10]) = 7
> getsockname(7, {sa_family=AF_BLUETOOTH,
> sa_data="\21\0\307\nn:\n\00039-(\35\0"}, [10]) = 0
> time(NULL) = 1208554156
> stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> writev(2, [{"input[7358]: Incoming connection on PSM 17", 42}, {"\n", 1}],
> 2) = 43
> send(3, "<31>Apr 18 23:29:16 input[7358]: Incoming connection on PSM 17",
> 62, MSG_NOSIGNAL) = 62
> poll([{fd=6, events=POLLIN, revents=POLLIN}, {fd=4, events=POLLIN}, {fd=5,
> events=POLLIN}], 3, -1) = 1
> accept(6, {sa_family=AF_BLUETOOTH,
> sa_data="\23\00039-(\35\0\30v\5\10\10\0"}, [10]) = 8
> getsockname(8, {sa_family=AF_BLUETOOTH,
> sa_data="\23\0\307\nn:\n\00039-(\35\0"}, [10]) = 0
> time(NULL) = 1208554156
> stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> writev(2, [{"input[7358]: Incoming connection on PSM 19", 42}, {"\n", 1}],
> 2) = 43
> send(3, "<31>Apr 18 23:29:16 input[7358]: Incoming connection on PSM 19",
> 62, MSG_NOSIGNAL) = 62
> gettimeofday({1208554156, 773967}, NULL) = 0
> writev(4,
> [{"l\1\0\1\35\0\0\0\17\0\0\0x\0\0\0\1\1o\0\n\0\0\0/org/bluez\0\0\0\0\0\0\6\1s\0\t\0\0\0org.bluez\0\0\0\0\0\0\0\2\1s\0\22\0\0\0org.bluez.Database\0\0\0\0\0\0\3\1s\0"...,
> 136}, {"\21\0\0\00000:1D:28:2D:39:33\0\0\0\0\0\0\0\0", 29}], 2) = 165
> gettimeofday({1208554156, 774555}, NULL) = 0
> poll([{fd=4, events=POLLIN, revents=POLLIN}, {fd=5, events=POLLIN}, {fd=6,
> events=POLLIN}], 3, 25000) = 1
> gettimeofday({1208554156, 776093}, NULL) = 0
> read(4,
> "l\2\1\1\0\0\0\0\365\0\0\0\'\0\0\0\6\1s\0\6\0\0\0:1.569\0\0\5\1u\0\17\0\0\0\7\1s\0\6\0\0\0:1.568\0\0",
> 2048) = 56
> read(4, 0x8059f78, 2048) = -1 EAGAIN (Resource temporarily
> unavailable)
> gettimeofday({1208554156, 776764}, NULL) = 0
> gettimeofday({1208554156, 776957}, NULL) = 0
> gettimeofday({1208554156, 777150}, NULL) = 0
> poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=4,
> events=POLLIN}], 3, 0) = 0
> socket(PF_BLUETOOTH, SOCK_RAW, 6) = 9
> open("/var/lib/bluetooth/00:0A:3A:6E:0A:C7/input", O_RDONLY) = 10
> flock(10, LOCK_SH) = 0
> fstat64(10, {st_mode=S_IFREG|0644, st_size=290, ...}) = 0
> mmap2(NULL, 290, PROT_READ, MAP_SHARED, 10, 0) = 0xb7f6f000
> munmap(0xb7f6f000, 290) = 0
> flock(10, LOCK_UN) = 0
> close(10) = 0
> open("/var/lib/bluetooth/00:0A:3A:6E:0A:C7/linkkeys", O_RDONLY) = 10
> flock(10, LOCK_SH) = 0
> fstat64(10, {st_mode=S_IFREG|0600, st_size=55, ...}) = 0
> mmap2(NULL, 55, PROT_READ, MAP_SHARED, 10, 0) = 0xb7f6f000
> munmap(0xb7f6f000, 55) = 0
> flock(10, LOCK_UN) = 0
> close(10) = 0
> socket(PF_BLUETOOTH, SOCK_RAW, 1) = 10
> ioctl(10, 0x800448d2, 0x805cbc0) = 0
> ioctl(10, 0x800448d3, 0xbf9c561c) = 0
> close(10) = 0
> socket(PF_BLUETOOTH, SOCK_RAW, 1) = 10
> bind(10, {sa_family=AF_BLUETOOTH,
> sa_data="\0\0CW\234\277Vg\234\277h\206\5\10"}, 4) = 0
> ioctl(10, 0x800448d5, 0x8058668) = 0
> getsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333",
> [16]) = 0
> setsockopt(10, SOL_IP, IP_TTL, "\20\0\0\0@\300\0\0\0\0\0\0\21\4\0\0", 16)
> = 0
> writev(10, [{"\1", 1}, {"\21\4\2", 3}, {"\v\0", 2}], 3) = 6
> poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
> read(10, "\4\17\4\0\1\21\4", 260) = 7
> poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 990) = 1
> read(10, "\4\6\3\0\v\0", 260) = 6
> setsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333", 16)
> = 0
> getsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333",
> [16]) = 0
> setsockopt(10, SOL_IP, IP_TTL, "\20\0\0\0\0\301\0\0\0\0\0\0\23\4\0\0", 16)
> = 0
> writev(10, [{"\1", 1}, {"\23\4\3", 3}, {"\v\0\1", 3}], 3) = 7
> poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
> read(10, "\4\17\4\0\1\23\4", 260) = 7
> poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 990) = 1
> read(10, "\4\10\4$\v\0\0", 260) = 7
> setsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333", 16)
> = 0
> time(NULL) = 1208554156
> stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> writev(2, [{"input[7358]: Link encryption failed: Input/output error (5)",
> 59}, {"\n", 1}], 2) = 60
> send(3, "<27>Apr 18 23:29:16 input[7358]: Link encryption failed:
> Input/output error (5)", 79, MSG_NOSIGNAL) = 79
> close(10) = 0
> close(9) = 0
> close(7) = 0
> close(8) = 0
>
> The interesting part is this line:
>
> read(10, "\4\10\4$\v\0\0", 260) = 7
>
> $ (0x24) is the error code; LMP PDU Not Allowed.
>
> I can use this dongle in Windows without problem. Does anyone know how to
> spy Windows? Any other idea?
>
> Thanks.
>
>


Attachments:
(No filename) (6.46 kB)
(No filename) (9.74 kB)
(No filename) (320.00 B)
(No filename) (164.00 B)
Download all attachments

2008-07-06 14:33:18

by Unai Uribarri

[permalink] [raw]
Subject: Re: [Bluez-users] Link encryption failed: Input/output error (Belkin F8T013)

Hello,

I have bought a Logitech keyboard and the bt dongle doesn't want to encrypt
any communication still.

sdptool browse --raw --l2cap xx:xx:xx:xx:xx:xx (Logitech keyboard)

Sequence
Attribute 0x0000 - ServiceRecordHandle
UINT32 0x00010000
Attribute 0x0001 - ServiceClassIDList
Sequence
UUID16 0x1124 - HumanInterfaceDeviceService (HID)
Attribute 0x0004 - ProtocolDescriptorList
Sequence
Sequence
UUID16 0x0100 - L2CAP
UINT16 0x0011
Sequence
UUID16 0x0011 - HIDP
Attribute 0x0005 - BrowseGroupList
Sequence
UUID16 0x1002 - PublicBrowseGroup
Attribute 0x0006 - LanguageBaseAttributeIDList
Sequence
UINT16 0x656e
UINT16 0x006a
UINT16 0x0100
Attribute 0x0009 - BluetoothProfileDescriptorList
Sequence
Sequence
UUID16 0x1124 - HumanInterfaceDeviceService
(HID)
UINT16 0x0100
Attribute 0x000d - AdditionalProtocolDescriptorLists
Sequence
Sequence
Sequence
UUID16 0x0100 - L2CAP
UINT16 0x0013
Sequence
UUID16 0x0011 - HIDP
Attribute 0x0100
String Logitech Bluetooth Wireless
Keyboard
Attribute 0x0101
String Keyboard
Attribute 0x0102
String Logitech
Attribute 0x0200
UINT16 0x0100
Attribute 0x0201
UINT16 0x0111
Attribute 0x0202
UINT8 0x40
Attribute 0x0203
UINT8 0x33
Attribute 0x0204
Bool True
Attribute 0x0205
Bool True
Attribute 0x0206
Sequence
Sequence
UINT8 0x22
Data 05 01 09 02 a1 01 85 02 09 01 a1 00 05
09 19 01 29 08 15 00 25 01 75 01 95 08 81 02 05 01 09 30 09 31 16 01 f8 26
ff 07 75 0c 95 02 81 06 09 38 15 81 25 7f 75 08 95 01 81 06 05 0c 0a 38 02
81 06 05 09 19 09 29 0f 15 00 25 01 95 08 75 01 81 02 c0 c0 05 01 09 06 a1
01 85 01 75 01 95 08 05 07 19 e0 29 e7 15 00 25 01 81 02 95 01 75 08 81 03
95 05 75 01 05 08 19 01 29 05 91 02 95 01 75 03 91 03 95 06 75 08 15 00 26
ff 00 05 07 19 00 29 ff 81 00 c0 05 0c 09 01 a1 01 85 03 75 10 95 02 15 01
26 ff 02 19 01 2a ff 02 81 60 c0 05 0c 09 01 a1 01 85 ac 05 01 09 06 a1 02
05 06 09 20 15 00 25 ff 75 08 95 01 81 02 c0 c0 05 01 09 80 a1 01 85 04 15
00 25 01 75 01 95 01 09 82 81 02 95 01 75 07 81 03 c0 05 0c 09 01 a1 01 85
ad 05 01 09 06 a1 02 06 00 ff 25 01 75 01 95 02 0a 03 fe 0a 04 fe 81 02 95
06 81 03 c0 c0 05 0c 09 01 a1 01 85 ff 05 06 95 01 75 02 19 24 29 26 81 02
75 06 81 01 c0 06 00 ff 09 01 a1 01 85 10 75 08 95 06 15 00 26 ff 00 09 01
81 00 09 01 91 00 c0 00
Attribute 0x0207
Sequence
Sequence
UINT16 0x0409
UINT16 0x0100
Attribute 0x020b
UINT16 0x0100
Attribute 0x020c
UINT16 0x0c80
Attribute 0x020d
Bool True
Attribute 0x020e
Bool True
Sequence
Attribute 0x0000 - ServiceRecordHandle
UINT32 0x00010001
Attribute 0x0001 - ServiceClassIDList
Sequence
UUID16 0x1200 - PnPInformation
Attribute 0x0004 - ProtocolDescriptorList
Sequence
Sequence
UUID16 0x0100 - L2CAP
UINT16 0x0001
Sequence
UUID16 0x0001 - SDP
Attribute 0x0009 - BluetoothProfileDescriptorList
Sequence
Sequence
UUID16 0x1200 - PnPInformation
UINT16 0x0100
Attribute 0x0200
UINT16 0x0100
Attribute 0x0201
UINT16 0x046d
Attribute 0x0202
UINT16 0xb309
Attribute 0x0203
UINT16 0x011b
Attribute 0x0204
Bool True
Attribute 0x0205
UINT16 0x0002


HCI sniffer - Bluetooth packet analyzer ver 1.40
device: hci0 snap_len: 1028 filter: 0xffffffff
> HCI Event: Connect Request (0x04) plen 10
0000: 67 20 76 61 07 00 40 25 00 01 g va..@%..
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
0000: 67 20 76 61 07 00 01 g va...
> HCI Event: Command Status (0x0f) plen 4
0000: 00 01 09 04 ....
> HCI Event: Connect Complete (0x03) plen 11
0000: 00 0b 00 67 20 76 61 07 00 01 00 ...g va....
< ACL data: handle 11 flags 0x02 dlen 10
L2CAP(s): Info req: type 2
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
0000: 0b 00 ..
> HCI Event: Command Status (0x0f) plen 4
0000: 00 01 1b 04 ....
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
0000: 0b 00 0f 00 ....
> HCI Event: Read Remote Supported Features (0x0b) plen 11
0000: 00 0b 00 bc 02 04 38 08 00 00 00 ......8....
> HCI Event: Command Complete (0x0e) plen 6
0000: 01 0d 08 00 0b 00 ......
< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
0000: 0b 00 18 cc ....
> HCI Event: Command Status (0x0f) plen 4
0000: 12 01 0f 04 ....
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
0000: 67 20 76 61 07 00 02 00 00 00 g va......
> ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0004
> HCI Event: Command Status (0x0f) plen 4
0000: 00 01 19 04 ....
> HCI Event: Number of Completed Packets (0x13) plen 5
0000: 01 0b 00 01 00 .....
> HCI Event: Role Change (0x12) plen 8
0000: 00 67 20 76 61 07 00 00 .g va...
> ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 17 scid 0x0064
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0064 result 0 status 0
Connection successful
> ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 185
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0064 flags 0x00 result 0 clen 4
Success
MTU 185
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0064 flags 0x00 clen 0
> HCI Event: Remote Name Req Complete (0x07) plen 255
0000: 00 67 20 76 61 07 00 4c 6f 67 69 74 65 63 68 20 .g va..Logitech
0010: 64 69 4e 6f 76 6f 20 45 64 67 65 00 00 00 00 00 diNovo Edge.....
0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...............
> ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
Success
MTU 185
> ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 19 scid 0x0065
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0065 result 0 status 0
Connection successful
> HCI Event: Number of Completed Packets (0x13) plen 5
0000: 01 0b 00 04 00 .....
> ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 4
MTU 185
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0065 flags 0x00 result 0 clen 4
Success
MTU 185
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0065 flags 0x00 clen 0
> ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 4
Success
MTU 185
< HCI Command: Set Connection Encryption (0x01|0x0013) plen 3
0000: 0b 00 01 ...
> HCI Event: QoS Setup Complete (0x0d) plen 21
0000: 00 0b 00 00 01 52 03 00 00 00 00 00 00 20 4e 00 .....R....... N.
0010: 00 ff ff ff ff .....
> ACL data: handle 11 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 10 00 4b 01 00 00 00 ..K....
> ACL data: handle 11 flags 0x02 dlen 14
L2CAP(d): cid 0x0041 len 10 [psm 19]
HIDP: Data: Input report
0000: 01 00 00 2c 00 00 00 00 00 ...,.....
> HCI Event: Command Status (0x0f) plen 4
0000: 00 01 13 04 ....
> ACL data: handle 11 flags 0x02 dlen 14
L2CAP(d): cid 0x0041 len 10 [psm 19]
HIDP: Data: Input report
0000: 01 00 00 00 00 00 00 00 00 .........
> HCI Event: Encrypt Change (0x08) plen 4
0000: 05 0b 00 00 ....
> HCI Event: Mode Change (0x14) plen 6
0000: 00 0b 00 02 12 00 ......
< HCI Command: Set Connection Encryption (0x01|0x0013) plen 3
0000: 0b 00 01 ...
> HCI Event: Command Status (0x0f) plen 4
0000: 00 01 13 04 ....
> HCI Event: Encrypt Change (0x08) plen 4
0000: 05 0b 00 00 ....
> HCI Event: Number of Completed Packets (0x13) plen 5
0000: 01 0b 00 02 00 .....
< HCI Command: Set Connection Encryption (0x01|0x0013) plen 3
0000: 0b 00 01 ...
> HCI Event: Command Status (0x0f) plen 4
0000: 00 01 13 04 ....
> HCI Event: Encrypt Change (0x08) plen 4
0000: 05 0b 00 00 ....
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0064 scid 0x0040
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0065 scid 0x0041
> ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0064 scid 0x0040
> ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0065 scid 0x0041
> HCI Event: Number of Completed Packets (0x13) plen 5
0000: 01 0b 00 02 00 .....
> HCI Event: Mode Change (0x14) plen 6
0000: 00 0b 00 00 00 00 ......
> HCI Event: Mode Change (0x14) plen 6
0000: 00 0b 00 02 6c 00 ....l.
< HCI Command: Disconnect (0x01|0x0006) plen 3
0000: 0b 00 13 ...
> HCI Event: Command Status (0x0f) plen 4
0000: 00 01 06 04 ....
> HCI Event: Mode Change (0x14) plen 6
0000: 00 0b 00 00 00 00 ......
> HCI Event: Disconn Complete (0x05) plen 4
0000: 00 0b 00 16 ....


On Thu, Apr 24, 2008 at 2:57 PM, Claudio Takahasi <
[email protected]> wrote:

> On Fri, Apr 18, 2008 at 7:11 PM, Unai Uribarri <[email protected]> wrote:
> > Ohh, this dongle works in Windows because the driver disables the
> encription
> > for HID devices.
> >
> > So spying Windows drivers is no solution.
> >
> >
> >
> >
> > On Fri, Apr 18, 2008 at 11:45 PM, Unai Uribarri <[email protected]>
> wrote:
> >
> > > Hello folks,
> > >
> > > I have a Sony Ericsson K800i phone, which I use as a remote control for
> my
> > Linux media center, using a bluetooth 1.1 CSR dongle.
> > >
> > > But using a Belkin F8T013, a Bluetooth 2.0 USB dongle, the phone can't
> > connect to any computer running Linux, neither in an Pentium 4 running
> > Ubuntu 07.10 nor a PowerPC G4 running Ubuntu 08.04. I get the following
> > output on the console:
> > >
> > > hcid[7355]: link_key_request (sba=00:0A:3A:6E:0A:C7,
> > dba=00:1D:28:2D:39:33)
> > > input[7358]: Incoming connection on PSM 17
> > > input[7358]: Incoming connection on PSM 19
> > > hcid[7355]: /org/bluez: org.bluez.Database.RequestAuthorization()
> > > input[7358]: Link encryption failed: Input/output error (5)
> > >
> > > If I strace the input daemon, I get the following output:
> > >
> > > poll([{fd=5, events=POLLIN, revents=POLLIN}, {fd=6, events=POLLIN},
> {fd=4,
> > events=POLLIN}], 3, -1) = 1
> > > accept(5, {sa_family=AF_BLUETOOTH,
> > sa_data="\21\00039-(\35\0\1#\371\244\0\0"}, [10]) = 7
> > > getsockname(7, {sa_family=AF_BLUETOOTH,
> > sa_data="\21\0\307\nn:\n\00039-(\35\0"}, [10]) = 0
> > > time(NULL) = 1208554156
> > > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > > writev(2, [{"input[7358]: Incoming connection on PSM 17", 42}, {"\n",
> 1}],
> > 2) = 43
> > > send(3, "<31>Apr 18 23:29:16 input[7358]: Incoming connection on PSM
> 17",
> > 62, MSG_NOSIGNAL) = 62
> > > poll([{fd=6, events=POLLIN, revents=POLLIN}, {fd=4, events=POLLIN},
> {fd=5,
> > events=POLLIN}], 3, -1) = 1
> > > accept(6, {sa_family=AF_BLUETOOTH,
> > sa_data="\23\00039-(\35\0\30v\5\10\10\0"}, [10]) = 8
> > > getsockname(8, {sa_family=AF_BLUETOOTH,
> > sa_data="\23\0\307\nn:\n\00039-(\35\0"}, [10]) = 0
> > > time(NULL) = 1208554156
> > > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > > writev(2, [{"input[7358]: Incoming connection on PSM 19", 42}, {"\n",
> 1}],
> > 2) = 43
> > > send(3, "<31>Apr 18 23:29:16 input[7358]: Incoming connection on PSM
> 19",
> > 62, MSG_NOSIGNAL) = 62
> > > gettimeofday({1208554156, 773967}, NULL) = 0
> > > writev(4,
> >
> [{"l\1\0\1\35\0\0\0\17\0\0\0x\0\0\0\1\1o\0\n\0\0\0/org/bluez\0\0\0\0\0\0\6\1s\0\t\0\0\0org.bluez\0\0\0\0\0\0\0\2\1s\0\22\0\0\0org.bluez.Database\0\0\0\0\0\0\3\1s\0"...,
> > 136}, {"\21\0\0\00000:1D:28:2D:39:33\0\0\0\0\0\0\0\0", 29}], 2) = 165
> > > gettimeofday({1208554156, 774555}, NULL) = 0
> > > poll([{fd=4, events=POLLIN, revents=POLLIN}, {fd=5, events=POLLIN},
> {fd=6,
> > events=POLLIN}], 3, 25000) = 1
> > > gettimeofday({1208554156, 776093}, NULL) = 0
> > > read(4,
> >
> "l\2\1\1\0\0\0\0\365\0\0\0\'\0\0\0\6\1s\0\6\0\0\0:1.569\0\0\5\1u\0\17\0\0\0\7\1s\0\6\0\0\0:1.568\0\0",
> > 2048) = 56
> > > read(4, 0x8059f78, 2048) = -1 EAGAIN (Resource
> temporarily
> > unavailable)
> > > gettimeofday({1208554156, 776764}, NULL) = 0
> > > gettimeofday({1208554156, 776957}, NULL) = 0
> > > gettimeofday({1208554156, 777150}, NULL) = 0
> > > poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=4,
> > events=POLLIN}], 3, 0) = 0
> > > socket(PF_BLUETOOTH, SOCK_RAW, 6) = 9
> > > open("/var/lib/bluetooth/00:0A:3A:6E:0A:C7/input", O_RDONLY) = 10
> > > flock(10, LOCK_SH) = 0
> > > fstat64(10, {st_mode=S_IFREG|0644, st_size=290, ...}) = 0
> > > mmap2(NULL, 290, PROT_READ, MAP_SHARED, 10, 0) = 0xb7f6f000
> > > munmap(0xb7f6f000, 290) = 0
> > > flock(10, LOCK_UN) = 0
> > > close(10) = 0
> > > open("/var/lib/bluetooth/00:0A:3A:6E:0A:C7/linkkeys", O_RDONLY) = 10
> > > flock(10, LOCK_SH) = 0
> > > fstat64(10, {st_mode=S_IFREG|0600, st_size=55, ...}) = 0
> > > mmap2(NULL, 55, PROT_READ, MAP_SHARED, 10, 0) = 0xb7f6f000
> > > munmap(0xb7f6f000, 55) = 0
> > > flock(10, LOCK_UN) = 0
> > > close(10) = 0
> > > socket(PF_BLUETOOTH, SOCK_RAW, 1) = 10
> > > ioctl(10, 0x800448d2, 0x805cbc0) = 0
> > > ioctl(10, 0x800448d3, 0xbf9c561c) = 0
> > > close(10) = 0
> > > socket(PF_BLUETOOTH, SOCK_RAW, 1) = 10
> > > bind(10, {sa_family=AF_BLUETOOTH,
> > sa_data="\0\0CW\234\277Vg\234\277h\206\5\10"}, 4) = 0
> > > ioctl(10, 0x800448d5, 0x8058668) = 0
> > > getsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333",
> > [16]) = 0
> > > setsockopt(10, SOL_IP, IP_TTL, "\20\0\0\0@\300\0\0\0\0\0\0\21\4\0\0",
> 16)
> > = 0
> > > writev(10, [{"\1", 1}, {"\21\4\2", 3}, {"\v\0", 2}], 3) = 6
> > > poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
> > > read(10, "\4\17\4\0\1\21\4", 260) = 7
> > > poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 990) = 1
> > > read(10, "\4\6\3\0\v\0", 260) = 6
> > > setsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333",
> 16)
> > = 0
> > > getsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333",
> > [16]) = 0
> > > setsockopt(10, SOL_IP, IP_TTL, "\20\0\0\0\0\301\0\0\0\0\0\0\23\4\0\0",
> 16)
> > = 0
> > > writev(10, [{"\1", 1}, {"\23\4\3", 3}, {"\v\0\1", 3}], 3) = 7
> > > poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
> > > read(10, "\4\17\4\0\1\23\4", 260) = 7
> > > poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 990) = 1
> > > read(10, "\4\10\4$\v\0\0", 260) = 7
> > > setsockopt(10, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\362\333",
> 16)
> > = 0
> > > time(NULL) = 1208554156
> > > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > > stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
> > > writev(2, [{"input[7358]: Link encryption failed: Input/output error
> (5)",
> > 59}, {"\n", 1}], 2) = 60
> > > send(3, "<27>Apr 18 23:29:16 input[7358]: Link encryption failed:
> > Input/output error (5)", 79, MSG_NOSIGNAL) = 79
> > > close(10) = 0
> > > close(9) = 0
> > > close(7) = 0
> > > close(8) = 0
> > >
> > > The interesting part is this line:
> > >
> > > read(10, "\4\10\4$\v\0\0", 260) = 7
> > >
> > > $ (0x24) is the error code; LMP PDU Not Allowed.
> > >
> > > I can use this dongle in Windows without problem. Does anyone know how
> to
> > spy Windows? Any other idea?
> > >
> > > Thanks.
> > >
> > >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> > Don't miss this year's exciting event. There's still time to save $100.
> > Use priority code J8TL2D2.
> >
> >
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> > _______________________________________________
> > Bluez-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/bluez-users
> >
> >
>
> Hi Unai,
>
> Please send the hcidump log(run hcidump -X) and the sdp record of your
> phone(run sdptool browse --raw --l2cap xx:xx:xx:xx:xx:xx)
>
> Weird, according to the code encryption is applied for keyboard subclass
> only.
>
>
> Regards,
> --
> --
> Claudio Takahasi
> Instituto Nokia de Tecnologia
> Recife - Pernambuco - Brasil
> +55 81 30879999
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


Attachments:
(No filename) (20.87 kB)
(No filename) (41.28 kB)
(No filename) (347.00 B)
(No filename) (164.00 B)
Download all attachments