public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: "Claudio Takahasi" <claudio.takahasi@openbossa.org>
To: "BlueZ users" <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] Link encryption failed: Input/output error (Belkin F8T013)
Date: Thu, 24 Apr 2008 09:57:40 -0300	[thread overview]
Message-ID: <f9d4bd30804240557v1d6d3187o59fcba455f57b82d@mail.gmail.com> (raw)
In-Reply-To: <a7f7fb4f0804181511y2fe86120n3c169670f4cb7ff5@mail.gmail.com>

On Fri, Apr 18, 2008 at 7:11 PM, Unai Uribarri <unaiur@gmail.com> 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 <unaiur@gmail.com> 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
>  Bluez-users@lists.sourceforge.net
>  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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2008-04-24 12:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-18 21:45 [Bluez-users] Link encryption failed: Input/output error (Belkin F8T013) Unai Uribarri
2008-04-18 22:11 ` Unai Uribarri
2008-04-24 12:57   ` Claudio Takahasi [this message]
2008-07-06 14:33     ` Unai Uribarri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f9d4bd30804240557v1d6d3187o59fcba455f57b82d@mail.gmail.com \
    --to=claudio.takahasi@openbossa.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox