Reputation: 61
I am running the following command in Ubuntu 18.04 LTE (Bionic Beaver) after connecting to central (Web Bluetooth in Chrome):
sudo hcitool lecup --handle 24 --min 6 --max 7 --latency 0 --timeout 500
I am getting the following result:
@ RAW Open: hc.. (privileged) version 2.22 {0x0006} [hci0] 2258.085117
< HCI Command: LE Conn.. (0x08|0x0013) plen 14 #412 [hci0] 2258.085174
Handle: 24
Min connection interval: 7.50 msec (0x0006)
Max connection interval: 8.75 msec (0x0007)
Connection latency: 0 (0x0000)
Supervision timeout: 5000 msec (0x01f4)
Min connection length: 0.625 msec (0x0001)
Max connection length: 0.625 msec (0x0001)
> HCI Event: Command Status (0x0f) plen 4 #413 [hci0] 2258.086011
LE Connection Update (0x08|0x0013) ncmd 2
Status: Command Disallowed (0x0c)
@ RAW Close: hcitool
How come the command is disallowed?
Upvotes: 1
Views: 1260
Reputation: 13295
The reason this command is failing is because you're attempting to do it from the peripheral (slave) instead of the central (master). The connection parameter update can only be set from the central. You can try this out yourself by making a connection from the Ubuntu machine to a remote peripheral and then setting up the connection parameters.
Some devices/stacks allow you to request a connection parameter update, but this doesn't seem to be supported on BlueZ.
Upvotes: 0