From: Johan Hedberg <johan.hedberg@gmail.com>
To: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [RFC v2] mgmt-api: Add support for Read Remote RSSI
Date: Fri, 28 Mar 2014 10:22:22 +0200 [thread overview]
Message-ID: <20140328082222.GA2138@t440s.lan> (raw)
In-Reply-To: <1395994200-23071-1-git-send-email-lukasz.rymanowski@tieto.com>
Hi Lukasz,
On Fri, Mar 28, 2014, Lukasz Rymanowski wrote:
> +Start Read Remote RSSI Command
> +==============================
> +
> + Command Code: 0x0031
> + Controller Index: <controller id>
> + Command Parameters: Address (6 Octets)
> + Address_Type (1 Octet)
> + Threshold (1 Octet)
> + Return Parameters: Address (6 Octets)
> + Address_Type (1 Octet)
> + Current_RSSI (1 Octet)
> +
> + This command is used to start read remote rssi with given
> + threshold. On this command current remote RSSI is read and
> + is used as starting point for messurements. If threshold is
> + exceeded then Remote RSSI Changed event is sent.
> +
> + If threshold is 0 then no Remote RSSI Changed event is generated but
> + only Command Complete with current RSSI.
> +
> + This command can be used only when controller is powered on.
> +
> + This command generates a Command Complete event on success
> + and on failure.
> +
> + Possible errors: Not Connected
> + Invalid Parameters
> + Not Powered
> + Invalid Index
Should you mention that a disconnection has the same effect as a Stop
Read Remote RSSI Command? Or will the request be remembered and resumed
when the same device gets connected again?
> +Stop Read Remote RSSI Command
> +=============================
> +
> + Command Code: 0x0032
> + Controller Index: <controller id>
> + Command Parameters: Address (6 Octets)
> + Adress_Type (1 Octet)
> +
> + Return Parametes:
> +
You should have the Address and Address_Type in the return parameters as
well. Otherwise it's not possible to know what command completed if you
issue the same command for two separate connections simultaneously (it's
also a matter of consistency with everything else in the mgmt API).
Johan
next prev parent reply other threads:[~2014-03-28 8:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-28 8:10 [RFC v2] mgmt-api: Add support for Read Remote RSSI Lukasz Rymanowski
2014-03-28 8:22 ` Johan Hedberg [this message]
2014-03-28 10:06 ` Lukasz Rymanowski
2014-03-28 8:35 ` Lukasz Rymanowski
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=20140328082222.GA2138@t440s.lan \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=lukasz.rymanowski@tieto.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.