linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* LE Connection Update Disallowed
@ 2014-02-05 12:26 Sandy Chapman
  2014-02-05 13:12 ` Anderson Lizardo
  0 siblings, 1 reply; 7+ messages in thread
From: Sandy Chapman @ 2014-02-05 12:26 UTC (permalink / raw)
  To: BlueZ development

Hi All,

I've got a problem with issuing an LE Connection Update via the
hcitool's lecup command and I'm not sure why. Based on what I've read
online, this should be working.

Central: iPhone 5
Peripheral: Linux Mint 15 running kernel 3.11.0-12-generic (running in
a VM on a Mac Book)
I'm using a built from source Bluez off tag 5.14.

I establish an LE connection between the devices. The central
successfully discovers the services and characteristics and can read
them. Once the connection is established, I run this command on the
Linux peripheral:

$ sudo ./bin/hcitool lecup --handle 64 --min 24 --max 50 --latency 4
--timeout 550
>>> Could not change connection params: Input/output error(5)

In my hcidump -X, I get this:

< HCI Command: LE Connection Update (0x08|0x0013) plen 14
  0000: 40 00 18 00 32 00 04 00  26 02 01 00 01 00        @...2...&.....
> HCI Event: Command Status (0x0f) plen 4
    LE Connection Update (0x08|0x0013) status 0x0c ncmd 1
    Error: Command Disallowed

In my limited understanding, it looks like the command isn't being
issued. It doesn't appear that it's the iPhone rejecting the command,
but something local to the Linux install. Running hciconfig lestates
shows that all states are permitted ("YES" beside every entry).

The Bluetooth Spec (Volume 2, Part E, section 7.8.18) states that this
command shall only be used when the local device's role is master.
However, Volume 3, Part A, 4.20 and 4.21 state that the request must
be initiated on the Slave side and the response must be initiated on
the Master (the 0x0013 hints that lecup is sending a response, but I
may be mistaken). I may be getting confused with terms, so I'll just
ask:

How do I initiate a Connection Update from the peripheral? If this
isn't possible, how to I dictate the connection parameters (the
current connection is much too slow)?

Thanks,
Sandy

-- 


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-04-10 14:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 12:26 LE Connection Update Disallowed Sandy Chapman
2014-02-05 13:12 ` Anderson Lizardo
2014-02-05 14:51   ` Sandy Chapman
2014-02-05 15:23     ` Anderson Lizardo
2014-02-06 16:21       ` Sandy Chapman
2014-02-10 12:30         ` Sandy Chapman
2014-04-10 14:55           ` Jan Rüth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).