Bracelet Plans
A plan is the measurement programme of the bracelet: it decides which sensors run and which data the bracelet records. Next to the plan you choose the sampling rates of the vital signs and three options: NIBP, raw accelerometer, and BioZ with EmoGraphy.
This page helps you choose. You set all of it in one place, the bracelet initialization.
Setting the plan and the sampling rates
Pass an InitializationConfig to enableAutoInitialization, once, when your app starts. The SDK then applies it to every bracelet each time it connects:
import com.corsano.sdk.ble.data.DevicePlan
import com.corsano.sdk.ble.data.SampleRate
import com.corsano.sdk.data.DataSdk
import com.corsano.sdk.data.summary.InitializationConfig
val manager = DataSdk.getInstance().getManager()
manager.enableAutoInitialization(
InitializationConfig(
braceletPlan = DevicePlan.HOSPITAL_MULTICOLOR,
samplingRate = SampleRate.ONE_MIN, // one rate for all vital signs
isNibpEnabled = true,
)
)
| What you choose | Field of InitializationConfig | Values |
|---|---|---|
| The plan | braceletPlan | A DevicePlan, see Available plans |
| Rate of activity (steps, calories) | samplingRateActivity | A SampleRate, see Sampling rate |
| Rate of heart rate | samplingRatePulseRate | A SampleRate |
| Rate of respiration rate | samplingRateRespirationRate | A SampleRate |
| Rate of SpO2 | samplingRateSp02 | A SampleRate |
| Rate of temperature | samplingRateTemperature | A SampleRate |
| NIBP (B2 only) | isNibpEnabled | true: one value every 30 minutes. false (default): off. |
| Raw PPG frequency (B2 only) | ppg2Frequency | A Ppg2Frequency. null (default): 32 Hz. See PPG2 frequency. |
| Raw accelerometer (B2 only) | isAccEnabled | true: recorded continuously. false (default): off. |
| BioZ and EmoGraphy (B2 only) | isBiozOrEmographyEnabled | true: both recorded continuously. false (default): both off. |
samplingRate = … in the example is a second constructor that gives the five rates the same value.
- To change the plan or a rate later, call
manager.updateConfiguration(bleDevice, config). It applies the new configuration at once and keeps it for the next connections. - To read what the bracelet has now, send
GetPlanRequest()andGetVitalParameterSamplingRateRequest(type). See BLE commands. - Do not send
SetPlanRequestorSetVitalParameterSamplingRateRequestyourself. They are deprecated: the bracelet initialization sends them, and it would overwrite your values at the next connection.
All parameters, the listener and the errors are described in Bracelet Initialization.
Not every combination is possible on the bracelet. The SDK refuses a configuration when:
- BioZ / EmoGraphy and NIBP are both enabled, or
- raw PPG is at 128 Hz (
Ppg2Frequency.HUNDRED_TWENTY_HEIGHT_HZ) and BioZ / EmoGraphy or NIBP is enabled.
enableAutoInitialization then reports the error to its listener's onError and does not enable anything. updateConfiguration returns a failed Result.
Available plans
DevicePlan (com.corsano.sdk.ble.data.DevicePlan) has these values. id, friendlyName and batteryLifetimeDays are properties of each value.
DevicePlan | id | friendlyName | batteryLifetimeDays | Bracelets |
|---|---|---|---|---|
STAND_BY | 0 | "Stand by" | 16 | |
MAX_BATTERY | 1 | "Max Battery" | 15 | B1 and B2 |
TYPICAL | 2 | "Typical" | 7.5 | B1 and B2 |
HOSPITAL | 3 | "High Resolution BPM" | 6.5 | B1 and B2 |
HZ | 4 | "25 Hz" | 5 | Deprecated, do not use |
HOSPITAL_RAW | 5 | "Hospital Raw" | 3.5 | B1 and B2 |
RESERVED | 6 | "Disable" | 20 | Unused, do not use |
TYPICAL_MULTICOLOR | 7 | "Typical multicolor" | 6 | B2 only |
HOSPITAL_MULTICOLOR | 8 | "High Resolution Multicolor" | 4 | B2 only |
CONTINUOUS_GREEN_INTERMITTENT_MULTICOLOR_RAW | 9 | "Continuous Green Intermittent Multicolor Raw" | 4 | B2 only |
CONTINUOUS_GREEN_INTERMITTENT_MULTICOLOR | 10 | "Continuous Green Intermittent Multicolor" | 5 | B2 only |
CONTINUOUS_5_MIN | 11 | "Continuous 5 minutes" | 5 | B2 only |
B1 is the CardioWatch 287-1B, B2 the CardioWatch 287-2B. The tables below describe the plans 1, 2, 3, 5 and 7 to 11.
batteryLifetimeDaysis the SDK's indication of the autonomy in days. The real autonomy depends on the sampling rates and on the raw data you enable. WithHOSPITAL_RAWand raw PPG at 128 Hz, count on 1.5 days.DevicePlan.from(id)returns the plan for anid, ornullfor an unknownid.DevicePlan.getDefault(hardwareId)returnsHOSPITAL_MULTICOLORfor a 287-2B andHOSPITALfor every other hardware.
Which plan gives which data
| Plan | SpO2 | NIBP (B2) | RR intervals | Sleep | Raw PPG | Raw accelerometer |
|---|---|---|---|---|---|---|
MAX_BATTERY (1) | No | No | No | Not specified | No | No |
TYPICAL (2) | No | No | Yes | Yes | No | No |
HOSPITAL (3) | No | No | Yes | Yes | No | No |
HOSPITAL_RAW (5) | Yes | Yes | Yes | Yes | Green, red and infrared, continuously, at 32 Hz or 128 Hz | Optional, continuously at 32 Hz |
TYPICAL_MULTICOLOR (7) | Yes | Yes | Yes | Yes | Green, red and infrared at 128 Hz, 2 minutes every 30 minutes | 32 Hz, 2 minutes every 30 minutes |
HOSPITAL_MULTICOLOR (8) | Yes | Yes | Yes | Yes | No | No |
CONTINUOUS_GREEN_INTERMITTENT_MULTICOLOR_RAW (9) | Yes | Yes | Yes | Yes | Green continuously at 32 Hz; red and infrared at 128 Hz, 2 minutes every 30 minutes | 32 Hz, 2 minutes every 30 minutes |
CONTINUOUS_GREEN_INTERMITTENT_MULTICOLOR (10) | Yes | Yes | Yes | Yes | Green, red and infrared, 2 minutes every 30 minutes | 32 Hz, 2 minutes every 30 minutes |
CONTINUOUS_5_MIN (11) | Yes | Yes | No | No | No | No |
Every plan in this table records steps, calories, heart rate and temperature. All but MAX_BATTERY record the respiration rate. On a B2 these values, and SpO2, are recorded at the sampling rate you set; a B1 uses fixed rates. NIBP is recorded only when isNibpEnabled is true. The rates per bracelet are in the Description below.
Where the data arrives
The bracelet stores what it records in files. The automatic download fetches them and stores the result in the SDK's database, see Data transfer and Retrieve the Data.
| Data | File on the bracelet (FileOnWatch) | What you get in the SDK | Downloaded when |
|---|---|---|---|
| Steps, calories, heart rate, respiration rate, SpO2, NIBP, temperature | ACTIVITY | MetricActivity and MetricTemperature, and the daily summaries | Always |
| RR intervals | HRV | MetricHrv | Always |
| Sleep | SLEEP | MetricSleep and SleepSummaryModel | 287-2B only |
| Raw PPG | PPG2 | A raw file, see Raw Files | 287-2B, and your licence includes PPG2 |
| EmoGraphy | STRESS_FILE | MetricEmography | 287-2B, and your licence includes PPG2 |
| BioZ | BIOZ | A raw file | 287-2B, and your licence includes BioZ |
| Raw accelerometer | ACC_FILE | A raw file, see Acc data explained | 287-2B, and your licence includes the accelerometer |
A plan that records raw data is not enough to receive it. The raw files are downloaded only when your licence includes them, see The licence and raw data. The accelerometer, BioZ and EmoGraphy must also be switched on in the bracelet initialization, see Enable raw streams.
Description
The data each plan records, and its rate, per bracelet. "X" means not available. "According to sample rate" means the sampling rate you set.
| Plan ID | Plan name | Compatibility | Vital parameters | Sampling rate B1 | Sampling rate B2 |
|---|---|---|---|---|---|
| 1 | Max battery | B1 and B2 | Steps, Calories, CBT, HR SpO2 NIBP RR interval | 1/min X X X | 30s/1min/5min/30min According to sample rate X X X |
| 2 | Typical | B1 and B2 | Steps, Calories, CBT HR BRPM SP02 NIBP RR intervals Sleep | 1/min 1/min 1/min 1/30min X X 1/s at nights 1/30s at nights | 30s/1min/5min/30min According to sample rate X X 1/s 1/30s at nights |
| 3 | High Resolution BPM | B1 and B2 | Steps, Calories, CBT HR BRPM SP02 NIBP RR intervals Sleep | 1/10s 1/10s 1/10s 1/10s X X 1/s 1/30s at nights | 30s/1min/5min/30min According to sample rate X X 1/s 1/30s at nights |
| 4 | Hz | ⚠️Deprecated | -- | -- | -- |
| 5 | Hospital raw | B1 and B2 | Steps, Calories, CBT HR BRPM SPO2 RR intervals Sleep NIBP Raw G/R/IR ppg 128Hz Optional: Raw Acc 32Hz | 1/10s 1/10s 1/10s 1/10s 1/10s 1/s 1/30s at nights X Continuously 32Hz or 128Hz Continuously 32Hz | 30s/1min/5min/30min According to sample rate 1/s 1/30s at nights 1/30min or off (set sample rate) Continuously 32Hz or 128Hz Continuously 32Hz or off |
| 7 | Typical multicolor | B2 only | Steps, Calories, CBT HR BRPM SPO2 RR intervals Sleep NIBP Periodic raw G/R/IR ppg 128Hz Periodic Raw Acc 32Hz | X | 30s/1min/5min/30min According to sample rate 1/s at night 1/30s at nights 1/30min or off (set sample rate) 2minutes / Every 30 minutes 2minutes / Every 30 minutes |
| 8 | High Resolution Multicolor | B2 only | Steps, Calories HR Temperature BRPM SPO2 NIBP RR intervals Sleep | X | 30s/1min/5min/30min According to sample rate 1/30min or off(set sample rate) 1/s 1/30s at nights |
| 9 | Continuous Green, intermittent multicolor Raw | B2 only | Steps, Calories HR Temperature BRPM SPO2 RR intervals Sleep NIBP Raw G PPG 32 Hz Periodic R/IR ppg 128Hz Periodic Raw Acc 32Hz | X | 30s/1min/5min/30min According to sample rate 1/s 1/30s at nights 1/30min or off (set sample rate) Continuously 32Hz 2minutes / Every 30 minutes 2minutes / Every 30 minutes |
| 10 | Continuous Green, intermittent multicolor | B2 only | Steps, Calories HR Temperature BRPM SPO2 RR intervals Sleep NIBP Periodic raw G/R/IR ppg Periodic Raw Acc 32Hz | X | 30s/1min/5min/30min According to sample rate 1/s 1/30s at nights 1/30min or off (set sample rate) 2minutes / Every 30 minutes |
| 11 | 5 min plan | B2 only | Steps, Calories HR Temperature BRPM SPO2 RR intervals Sleep NIBP | X | 5min / 30min for all metrics Set sample rate X X 1/30 min or off (set sample rate) |
Acronyms:
- CBT: core body temperature,
- HR: heart rate, beats per minute
- BRPM: breath rate per minute
- RR intervals: the time interval between two consecutive heart beats
- Acc: 3-axis accelerometer data.
Sampling rate
The sampling rate is how often the bracelet records a value. For example, with the heart rate at 1 minute, the bracelet records one heart rate value every minute, and you get one MetricActivity per minute.
Each of these has its own sampling rate (VitalParameterWithSamplingRateType):
| Vital sign | VitalParameterWithSamplingRateType | Set with |
|---|---|---|
| Activity (steps, calories) | ACTIVITY | InitializationConfig.samplingRateActivity |
| Heart rate | PULSE_RATE | InitializationConfig.samplingRatePulseRate |
| Respiration rate | RESPIRATION_RATE | InitializationConfig.samplingRateRespirationRate |
| SpO2 | SPO2 | InitializationConfig.samplingRateSp02 |
| Temperature | TEMPERATURE | InitializationConfig.samplingRateTemperature |
| NIBP (B2 only, from SDK 1.2.0) | NIBP | InitializationConfig.isNibpEnabled: 30 minutes when true, off when false |
The values of SampleRate (com.corsano.sdk.ble.data.SampleRate):
SampleRate | rateSecs | friendlyName | Meaning |
|---|---|---|---|
THIRTY_SECS | 30 | "1/30 secs" | One value every 30 seconds |
ONE_MIN | 60 | "1/minute" | One value every minute |
FIVE_MIN | 300 | "1/5 minutes" | One value every 5 minutes |
THIRTY_MIN | 1800 | "1/30 minutes" | One value every 30 minutes |
OFF | 0 | "OFF" | Not recorded. The bracelet initialization uses it for NIBP when isNibpEnabled is false. |
Before SDK 0.9.13 there was one common rate for activity, temperature, respiration rate and heart rate: 15, 30, 45 seconds or 1 minute. What is left of it is sampleRateV1 of SetPlanRequest and GetPlanRequest.Response (in seconds, 60 by default), which only firmware older than 5.67 uses.
Notes
HRV sampling rate
The sampling rate you set does not apply to the RR intervals. The time between two values varies between 1 and 5 seconds, depending on when the firmware gets the data.
The bracelet records RR intervals at rest. It records none while there is movement.
In the SDK an RR interval is a MetricHrv: beats is the interval in milliseconds, timestamp the time in milliseconds. The bracelet stamps RR intervals with a resolution of one second. When several intervals have the same second, the SDK adds 1 millisecond to each next one, so that every MetricHrv has its own timestamp and the order is kept. This is why you see values 1 ms apart. The SDK does not store an interval of 5000 ms or more.
Example at night:
| Timestamp | Date | HRV |
|---|---|---|
| 1704409291000 | 2024-01-05T00:01:31.000+01:00 | 893 |
| 1704409291001 | 2024-01-05T00:01:31.001+01:00 | 899 |
| 1704409293000 | 2024-01-05T00:01:33.000+01:00 | 896 |
| 1704409294000 | 2024-01-05T00:01:34.000+01:00 | 873 |
| 1704409294001 | 2024-01-05T00:01:34.001+01:00 | 846 |
| 1704409294002 | 2024-01-05T00:01:34.002+01:00 | 858 |
| 1704409296000 | 2024-01-05T00:01:36.000+01:00 | 878 |
| 1704409296001 | 2024-01-05T00:01:36.001+01:00 | 911 |
| 1704409297000 | 2024-01-05T00:01:37.000+01:00 | 933 |
| 1704409299000 | 2024-01-05T00:01:39.000+01:00 | 895 |
| 1704409299001 | 2024-01-05T00:01:39.001+01:00 | 891 |
| 1704409301000 | 2024-01-05T00:01:41.000+01:00 | 924 |
Example during the day with movement:
| Timestamp | Date | HRV |
|---|---|---|
| 1704439691000 | 2024-01-05T08:28:11.000+01:00 | 720 |
| 1704439692000 | 2024-01-05T08:28:12.000+01:00 | 736 |
| 1704439835000 | 2024-01-05T08:30:35.000+01:00 | 884 |
| 1704439836000 | 2024-01-05T08:30:36.000+01:00 | 868 |
| 1704439848000 | 2024-01-05T08:30:48.000+01:00 | 996 |
| 1704439849000 | 2024-01-05T08:30:49.000+01:00 | 956 |
| 1704439849001 | 2024-01-05T08:30:49.001+01:00 | 920 |
| 1704439851000 | 2024-01-05T08:30:51.000+01:00 | 956 |
| 1704439851001 | 2024-01-05T08:30:51.001+01:00 | 768 |
| 1704439853000 | 2024-01-05T08:30:53.000+01:00 | 848 |
| 1704439854000 | 2024-01-05T08:30:54.000+01:00 | 828 |
| 1704439854001 | 2024-01-05T08:30:54.001+01:00 | 908 |
| 1704439855000 | 2024-01-05T08:30:55.000+01:00 | 864 |
| 1704441749000 | 2024-01-05T09:02:29.000+01:00 | 828 |
| 1704441750000 | 2024-01-05T09:02:30.000+01:00 | 1000 |
| 1704441750001 | 2024-01-05T09:02:30.001+01:00 | 690 |
| 1704441786000 | 2024-01-05T09:03:06.000+01:00 | 947 |
PPG2 frequency
B2 only
Raw PPG sampling rates: the raw PPG data can be recorded at 32 Hz or at 128 Hz. You set it with ppg2Frequency of the bracelet initialization. Without a value the SDK sets 32 Hz (Ppg2Frequency.THIRTY_TWO_HZ); 128 Hz is Ppg2Frequency.HUNDRED_TWENTY_HEIGHT_HZ. Ppg2Frequency also has values for 64, 256 and 512 Hz; the plans on this page are described for 32 Hz and 128 Hz only.
Raw PPG channels: we have 7 channels for the PPG data: 2 Green, 2 Red, 2 infrared and one ambient light.
PPG at 128 Hz cannot be enabled when BioZ / EmoGraphy or NIBP is enabled. See the warning under Setting the plan and the sampling rates.