From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
To: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Cc: linux-bluetooth@vger.kernel.org,
Santiago Carot-Nemesio <sancane@gmail.com>
Subject: Re: [PATCH v2 01/17] Heart Rate Profile API
Date: Wed, 5 Sep 2012 10:47:09 -0300 [thread overview]
Message-ID: <20120905134708.GA11695@samus> (raw)
In-Reply-To: <1346850348-21176-2-git-send-email-andrzej.kaczmarek@tieto.com>
Hi,
On 15:05 Wed 05 Sep, Andrzej Kaczmarek wrote:
> From: Santiago Carot-Nemesio <sancane@gmail.com>
>
> ---
> doc/heartrate-api.txt | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 83 insertions(+)
> create mode 100644 doc/heartrate-api.txt
>
> diff --git a/doc/heartrate-api.txt b/doc/heartrate-api.txt
> new file mode 100644
> index 0000000..3afea78
> --- /dev/null
> +++ b/doc/heartrate-api.txt
> @@ -0,0 +1,83 @@
> + Heart Rate API description
> +****************************************
> +
> +Copyright (C) 2012 Santiago Carot-Nemesio <sancane@gmail.com>
> +Copyright (C) 2012 Tieto Poland
> +
> +Heart Rate Manager hierarchy
> +============================
> +
> +Service org.bluez
> +Interface org.bluez.HeartRateManager
> +Object path [variable prefix]/{hci0,hci1,...}
> +
> +Methods RegisterWatcher(object agent)
> +
> + Registers a watcher to monitor heart rate measurements.
> +
> + Possible Errors: org.bluez.Error.InvalidArguments
> +
> + UnregisterWatcher(object agent)
> +
> + Unregisters a watcher.
> +
> +Heart Rate Profile hierarchy
> +============================
> +
> +Service org.bluez
> +Interface org.bluez.HeartRate
> +Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
> +
> +Methods dict GetProperties()
> +
> + Returns all properties for the interface. See the
> + Properties section for the available properties.
> +
> + Reset()
> +
> + Restart the accumulation of energy expended from zero.
> +
> + Possible Errors: org.bluez.Error.NotSupported
> +
> +Properties String Location (optional) [readonly]
> +
> + Possible values: "Other", "Chest", "Wrist","Finger",
> + "Hand", "Earlobe", "Foot"
> +
> + boolean ResetSupported [readonly]
> +
> + True if energy expended is supported.
> +
> +Heart Rate Watcher hierarchy
> +
> +============================
> +Service unique name
> +Interface org.bluez.HeartRateWatcher
> +Object path freely definable
> +
> +Methods void MeasurementReceived(object device, dict measure)
> +
> + This callback is called whenever a heart rate
> + measurement is received from the heart rate device.
> + The unit for the Value is expressed in beats per
> + minute (bpm). The energy field is optional and
> + represents the accumulated energy expended in
> + kilo Joules since last time it was reset. Furthermore,
> + the device will be automatically reset when it
> + is needed.
> + The Contact field, if present, indicates
> + that the device supports contact sensor, besides it
> + will be true if skin contact is detected. The optional
> + interval field is an array containing RR-Interval
> + values which represent the time between two R-Wave
> + detections, where the RR-Interval value 0 is older
> + than the value 1 and so on.
The description of the possible fields could be similar to what's done
above and what media-api.txt is doing.
> +
> + Dict is defined as below:
> + {
> + "Value" : uint16,
> + "Energy" : uint16,
> + "Contact" : boolean,
> + "Interval" : array{uint16}
> + }
> +
> --
> 1.7.11.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Cheers,
--
Vinicius
next prev parent reply other threads:[~2012-09-05 13:47 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-05 13:05 [PATCH v2 00/17] Heart Rate Profile plugin Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 01/17] Heart Rate Profile API Andrzej Kaczmarek
2012-09-05 13:47 ` Vinicius Costa Gomes [this message]
2012-09-05 13:05 ` [PATCH v2 02/17] heartrate: Add Heart Rate Profile client Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 03/17] heartrate: Add attio callbacks Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 04/17] heartrate: Discover characteristics Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 05/17] heartrate: Process characteristics Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 06/17] heartrate: Discover characteristics descriptors Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 07/17] heartrate: Process " Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 08/17] heartrate: Add HeartRateManager interface Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 09/17] heartrate: Enable measurement when watchers are registered Andrzej Kaczmarek
2012-09-05 13:49 ` Vinicius Costa Gomes
2012-09-05 13:05 ` [PATCH v2 10/17] heartrate: Read Body Sensor Location characteristics Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 11/17] heartrate: Read Heart Rate Control Point characteristics Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 12/17] heartrate: Handle characteristics value changed notification Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 13/17] heartrate: Process Heart Rate Measurement characteristics Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 14/17] heartrate: Add Reset method Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 15/17] heartrate: Add GetProperties method Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 16/17] heartrate: Add HeartRateWatcher interface to default policy Andrzej Kaczmarek
2012-09-05 13:05 ` [PATCH v2 17/17] heartrate: Add test script Andrzej Kaczmarek
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=20120905134708.GA11695@samus \
--to=vinicius.gomes@openbossa.org \
--cc=andrzej.kaczmarek@tieto.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=sancane@gmail.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 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).