Wearing optimization
Available from SDK 1.1.8 and FW 7.10, for the 287-2B
Wearing optimization is a measurement the bracelet runs to adapt its sensor algorithms to the user's skin. It adjusts the LED power to the skin type, which is critical for accurate readings, particularly for SpO₂.
A run typically takes 2 minutes if the patient remains still, and may take up to 4 minutes if movement is detected. The SDK gives up after 5 minutes. The patient must be sitting or lying down, and remain still during the run.
Perform it at least once, ideally right after pairing the bracelet.
The path in short
- Connect the bracelet and let the bracelet initialization finish.
- Start a run, in one of two ways:
- The ready-made screen of the
uimodule,CorsanoWearingOptimizationFragment: it writes the profile, guides the user, runs the measurement and offers retries. See Wearing optimization screen. - Your own UI, with
WearingOptimizationManager.start(bleDevice). See Your own UI.
- The ready-made screen of the
- Follow the run through its statuses. The result and the quality arrive with the last status.
- Later, read the stored result and ask the bracelet whether a redo is needed. See Status of the Wearing Optimization.
| What you want | Call | Where it arrives |
|---|---|---|
| Progress, movement and quality during a run, with the SDK screen | Collect WearingOptimizationEventViewModel.events | WearingOptimizationEvent.StatusChanged(status, details) |
| The same, with your own UI | WearingOptimizationManager.addListener(listener) | WearingOptimizationListener.onStatusChanged(status, details) |
| The result of a run | The same event or callback | Status DONE_WITH_SUCCESS or DONE_WITH_FAILURE; the quality is details.quality |
| An error that prevents a run | The same collector or listener | WearingOptimizationEvent.Error(type, throwable) or onError(type, t) |
| The result of the last run, at any time | manager.woRepository.getLastMeasurement() | Returned: Result<WearingOptimizationMeasurementDB?> |
| Every run stored on the phone | manager.woRepository.getAll() | Returned: Result<List<WearingOptimizationMeasurementDB>?> |
| Whether the user must run it (again) | WearingOptimizationManager.getStatus(bleDevice) | Returned: Result<OverallWearingOptimizationStatus> |
The snippets on this page use:
val manager = DataSdk.getInstance().getManager()
val woManager = manager.getWearingOptimizationManager()
val device = BleSdk.getInstance().getDevice(address) // address: the bracelet's BLE MAC address
When to Perform Wearing Optimization
First time
After the initial pairing of the bracelet.
Redo the wearing optimization
Whenever the user updates key settings such as:
- Wrist position
- Gender
- Significant changes in height or weight
- Birthdate
- Skin type
If the user changes the tightness of the strap, redo the wearing optimization as well.
Redo it also when getStatus returns NOT_PERFORMED, DONE_WITH_FAILURE or NEEDS_REDO.
Prerequisites
- Bracelet: a 287-2B.
startreads the firmware version and refuses a firmware below 6.99 withFW_NOT_SUPPORTED; the 287-1B's firmware (4.20) is below that. - Connected and initialized. The bracelet is connected and its bracelet initialization has finished (
bleDevice.isInitializedistrue). The initialization sets the time, the plan and the sampling rates. Without it the start command fails withNotInitializedException. - User profile on the bracelet, see User Profile:
- Wrist position
- Gender
- Height
- Weight
- Birthdate
- Skin type
- A valid licence. While the SDK is locked,
startfails withSdkLicenceException. See Licence Key. - The user sits or lies down and stays still.
Skin type is especially important. The run starts from the skin type set in the user profile.
Why skin type matters?
Two reasons. First, the run itself: it starts from the user's skin type and adjusts around it, which makes it much shorter.
Second, the vital signs: if the wearing optimization fails, the bracelet's algorithms still use the skin type of the profile to estimate:
- Pulse rate
- Respiration rate
- SpO₂
Start wearing optimization
Choose one of the two ways. Do not mix them: the manager holds one listener, and the SDK screen sets its own while it is shown.
Wearing optimization screen
From SDK 1.3.0.
CorsanoWearingOptimizationFragment is a guided flow: confirm the profile, positioning tutorials, the live measurement, and success, failure and retry screens.
Import the UI module in your Gradle file:
implementation "com.corsano.sdk:ui" // version from the SDK's BOM
See Installing SDK to your project for the BOM.
Requirements of the ui module:
minSdk23 andcompileSdk37 or higher.- The host
Activityis an AndroidXComponentActivity(for example anAppCompatActivity). The screen needs it for the shared eventViewModeland for the back button. - A
Theme.MaterialComponents.*orTheme.Material3.*app theme. The screens use the SDK's own palette and can be re-skinned to match your app, see Theming the SDK screens. - The screen is localized into 13 languages besides English: Arabic, Danish, German, Spanish, Finnish, French, Italian, Georgian, Norwegian (Bokmål), Dutch, Polish, Portuguese and Swedish. Arabic was added in 2.3.0.
- Arabic is a right-to-left language: declare
android:supportsRtl="true"on your<application>element so the flow mirrors correctly.





What the screen does, in order:
- Confirm the profile. It shows the wrist and the skin type. On Next it writes the birth date, gender, wrist and skin type to the bracelet (
SetUserProfileRequest). It does not write height or weight. If the write fails, it shows a message and stays on this page. - Tutorials. Three pages on how to wear the bracelet and how to sit. The button of the last page starts the run.
- Run. It calls
WearingOptimizationManager.start, shows the progress in percent, and warns when the user moves or holds the arm in the wrong position. - Result. On success it shows a success page. After a first failed run it offers a sitting or a lying tutorial and then runs again. After a second failed run it offers Try again. After a third failed run it only offers Close. So one visit to the screen makes at most three runs.
- Close. The screen closes itself with
parentFragmentManager.popBackStack().
The screen does not show the quality figure: read it as described under Wearing optimization quality. It sets a fragment result, which the screen that opened it can read:
setFragmentResultListener(CorsanoWearingOptimizationFragment.REQUEST_KEY) { _, bundle ->
val passed = bundle.getBoolean(CorsanoWearingOptimizationFragment.RESULT_KEY_SUCCESS)
}
truewhen a run passes while the screen is shown.falsewhen the screen is left (popped or removed, not put on the back stack) after a failed start or a failed run, with no pass since.- No
truefor a run that passes while the screen is on the back stack: read that one withgetStatus.
Removing the screen cancels a run that is still going and stops the bracelet's measurement mode. A configuration change, such as a rotation, keeps the run.
Swiping between the steps is disabled: the flow only advances through its own buttons and the device back button. During a run the back button asks for confirmation, then stops the run and closes the screen.
If your app removes the screen in another way while a run is going on (for example by navigating elsewhere), the run goes on in the background and its events are no longer forwarded. Call woManager.stop(device) in that case.
Launching CorsanoWearingOptimizationFragment (mandatory)
The ui module ships no navigation graph. With the Navigation component, declare the screen as a destination of your own graph:
<fragment
android:id="@+id/corsanoWearingOptimizationFragment"
android:name="com.corsano.sdk.ui.CorsanoWearingOptimizationFragment"
android:label="Wearing optimization" />
Then launch it with its arguments:
navController.navigate(
R.id.corsanoWearingOptimizationFragment,
bundleOf(
"deviceAddress" to device.address, // BLE MAC address of the connected bracelet
"birthdayYear" to 1980, // >= 1900
"birthdayMonth" to 1, // 1..12
"birthdayDay" to 1, // 1..31
"gender" to Gender.MALE.name,
// optional - omit either one to let the user pick it on the confirm screen
"skinType" to SkinType.OLIVE.name,
"wrist" to Wrist.RIGHT.name,
),
)
Without the Navigation component, add the fragment with the same arguments and put the transaction on the back stack, because the screen closes itself by popping it:
// args: the same Bundle as above
supportFragmentManager.beginTransaction()
.replace(R.id.container, CorsanoWearingOptimizationFragment::class.java, args)
.addToBackStack(null)
.commit()
| Argument | Required | Value |
|---|---|---|
deviceAddress | Yes | BLE MAC address of the connected bracelet |
birthdayYear | Yes | >= 1900 |
birthdayMonth | Yes | 1..12 |
birthdayDay | Yes | 1..31 |
gender | Yes | A Gender name: MALE, FEMALE, UNSPECIFIED, in any case ("male" works). UNSPECIFIED is written as it is. Before 3.0.0 every value other than "MALE", UNSPECIFIED included, was written as FEMALE |
skinType | No | A SkinType name: VERY_FAIR, FAIR, OLIVE, LIGHT_BROWN, BROWN, BLACK_BROWN. Omit to let the user pick it |
wrist | No | A Wrist name: LEFT or RIGHT. Omit to let the user pick it |
skinType and wrist are optional. When either is left out, the confirm page highlights the missing field in red and the user has to fill it in before the Next button becomes active. So the flow always ends up with both values, whether your app supplies them or the user picks them.
Pass them when your app already knows the values, and omit them when it does not, rather than sending a placeholder.
Invalid date, skinType, wrist or gender values throw IllegalArgumentException in onViewCreated.
Make sure the bracelet is connected and initialized before you open the screen, see Errors and what to do.
Wearing optimization events (optional)
From SDK 1.3.0.
CorsanoWearingOptimizationFragment reports what happens on screen to the host through an activity-scoped WearingOptimizationEventViewModel. This is how your app receives the statuses, the quality and the errors of a run that the SDK screen makes.
Observe the events from a component hosted by the same Activity: the Activity itself, or another Fragment via activityViewModels():
// In the host Activity:
private val woEvents: WearingOptimizationEventViewModel by viewModels()
// In a host Fragment: by activityViewModels()
lifecycleScope.launch {
repeatOnLifecycle(Lifecycle.State.STARTED) {
woEvents.events.collect { event ->
when (event) {
is WearingOptimizationEvent.ButtonClick -> event.button // which control
is WearingOptimizationEvent.ChangedSkinType -> event.skinType
is WearingOptimizationEvent.ChangedWrist -> event.wrist
is WearingOptimizationEvent.StatusChanged -> event.status // + event.details?.quality
is WearingOptimizationEvent.Error -> event.type // + event.throwable
is WearingOptimizationEvent.Communicating -> event.reason // + event.state
}
// Every event also exposes a stable String id: event.name, e.g. "CLICK_ON_START_BUTTON"
}
}
}
- The events are buffered: an event emitted while your collector is stopped is delivered once it collects again. The host
ActivitystaysSTARTEDwhile it shows the screen, so it receives the events in real time. - Collect in one place only. Each event is delivered to one collector. With two collectors, each of them misses events.
Event types (WearingOptimizationEvent):
| Event | When | Content |
|---|---|---|
ButtonClick(button) | The user taps a button or a row of the flow | button: a WearingOptimizationButton, see below |
ChangedSkinType(skinType) | The user picks a skin type on the confirm page | The new SkinType |
ChangedWrist(wrist) | The user picks a wrist on the confirm page | The new Wrist |
StatusChanged(status, details) | Every status callback of a run, see Statuses of a run | status: a WearingOptimizationStatus. details: progress, movement and quality, or null |
Error(type, throwable) | A run could not start, or a stop failed, see Errors and what to do | type: a WearingOptimizationErrorType. throwable: the cause, or null |
Communicating(reason, state) | Around each exchange that shows the progress dialog | reason: SET_USER_PROFILE or START_MEASUREMENT. state: STARTED (before the request) or FINISHED (once it has succeeded or failed) |
WearingOptimizationButton:
| Value | Control |
|---|---|
BACK | Back button of the footer |
NEXT | Next button of a tutorial page |
CONFIRM_PROFILE | Next button of the confirm page: writes the profile to the bracelet |
START | Button that starts the run |
WRIST_ITEM | Wrist row of the confirm page |
SKIN_TYPE_ITEM | Skin type row of the confirm page |
FAILURE_TUTORIAL_SITTING | "Sitting" tutorial on the first failure page |
FAILURE_TUTORIAL_LYING | "Lying" tutorial on the first failure page |
FAILURE_SKIP | Skip button of a failure page: closes the screen |
FAILURE_TRY_AGAIN | Try again on the second failure page: starts a new run |
LAST_FAILURE_CLOSE | Close on the last failure page: closes the screen |
SUCCESS_DONE | Done on the success page: closes the screen |
TUTORIAL_NEXT | Next on the failure tutorial; the second tap starts a new run |
TUTORIAL_SKIP | Skip on the failure tutorial: closes the screen |
To know that the user has left the flow, watch for SUCCESS_DONE, FAILURE_SKIP, TUTORIAL_SKIP and LAST_FAILURE_CLOSE.
Your own UI
From SDK 1.1.8.
Without the ui module, drive WearingOptimizationManager yourself. Write the user profile to the bracelet first (User Profile); the manager does not do it.
woManager.addListener(object : WearingOptimizationListener {
override fun onStatusChanged(
status: WearingOptimizationStatus,
details: GetWearingOptimizationStatusRequest.Response?,
) {
when (status) {
WearingOptimizationStatus.STARTED -> showStarting()
WearingOptimizationStatus.ONGOING -> details?.let { showProgress(it.progressPercent, it.movementLevel) }
WearingOptimizationStatus.DONE_WITH_SUCCESS -> showSuccess(details?.quality)
WearingOptimizationStatus.DONE_WITH_FAILURE -> showFailure(details) // details can be null
}
}
override fun onError(type: WearingOptimizationErrorType, t: Throwable?) {
showError(type, t) // the run did not start, or a stop failed
}
})
lifecycleScope.launch {
val result = woManager.start(device) // suspends until the run has ended
}
// When your screen goes away:
woManager.removeListener()
| Member | Description |
|---|---|
suspend fun start(bleDevice): Result<Boolean> | Starts a run and returns when it has ended, after at most 5 minutes |
suspend fun stop(bleDevice): Result<Boolean> | Stops the run on the bracelet, see Stopping a run |
fun addListener(listener) | Sets the listener. The manager holds one listener: a second call replaces the first |
fun removeListener() | Removes the listener |
suspend fun getStatus(bleDevice): Result<OverallWearingOptimizationStatus> | See Status of the Wearing Optimization |
isInProgress: Boolean | true from the call of start until it returns |
The listener is called in the coroutine that called start: on the main thread when you launch it from lifecycleScope.
What start returns:
| Result | Meaning |
|---|---|
Result.success(true) | The bracelet gave a verdict. This is not "passed": the last status says which, DONE_WITH_SUCCESS or DONE_WITH_FAILURE |
Result.success(false) | No verdict within 5 minutes. The last status is DONE_WITH_FAILURE with details == null |
Result.failure(...) | The run did not start. The listener got onError, see Errors and what to do |
If the coroutine that called start is cancelled, the SDK stops the run on the bracelet. No final status is sent then. Cancelled during its firmware check, start ends cancelled without calling onError.
Statuses of a run
WearingOptimizationStatus, in the order in which a run sends them. They are the same with the SDK screen (StatusChanged event) and with your own UI (onStatusChanged).
| # | Status | details | When |
|---|---|---|---|
| 1 | STARTED | null | At once, when start is called |
| 2 | ONGOING | null | The bracelet accepted the start command and the run is stored on the phone |
| 3 | ONGOING | Set | Every 5 seconds, with each reply of the bracelet: progress, movement, quality so far |
| 4 | DONE_WITH_SUCCESS | Set | The bracelet finished and the quality is 50 % or more. End of the run |
| 4 | DONE_WITH_FAILURE | Set | The bracelet finished with a quality below 50 %, or it reports that no run is going on (it never started one, or the run was stopped). End of the run |
| 4 | DONE_WITH_FAILURE | null | 5 minutes passed without a verdict, for example because the connection was lost. End of the run |
A bracelet that never starts the measurement ends the run with DONE_WITH_FAILURE about 15 seconds after the start.
details is a GetWearingOptimizationStatusRequest.Response:
| Field | Type | Value |
|---|---|---|
quality | Int | Quality of the optimization, 0 to 100 %. Final once isFinished is true |
isSuccess | Boolean | quality >= 50. It does not say that the run finished: take the verdict from the status |
isFinished | Boolean | The bracelet finished optimizing the LEDs |
progressPercent | Int | Progress of the run, 0 to 100 % |
movementLevel | Int | Movement during the run, 0 to 4. At 2 or more the SDK screen warns the user about movement. 15 or more means the arm is in the wrong position, too high or too low (FW 8.12 or later) |
Since 3.0.0 a run is more reliable at its start and its end:
- The result the bracelet still holds from the previous run no longer ends a new run at once.
- A run the bracelet reports as neither started nor finished ends with
DONE_WITH_FAILUREandResult.success(true). Before, it stayedONGOINGuntil the 5-minute timeout. - The SDK stops the measurement mode on the bracelet once the run has passed, failed or timed out. Before, it was left running.
Wearing optimization quality
From SDK 1.3.0
The bracelet scores every wearing optimization from 0 to 100 %: how good the optical (PPG) signal is with the LED power it settled on.
A run passes when the bracelet reports that it finished and the quality is 50 % or more. The SDK has no other threshold: a higher quality is a better signal.
getStatus() only tells you whether the last run passed. Read the quality in one of the three ways below.
While the screen runs: the events
If you use CorsanoWearingOptimizationFragment, read it from the StatusChanged event:
woEvents.events.collect { event ->
if (event is WearingOptimizationEvent.StatusChanged) {
when (event.status) {
WearingOptimizationStatus.ONGOING ->
event.details?.let { showProgress(it.progressPercent, it.movementLevel) }
WearingOptimizationStatus.DONE_WITH_SUCCESS ->
onResult(passed = true, quality = event.details?.quality)
WearingOptimizationStatus.DONE_WITH_FAILURE ->
onResult(passed = false, quality = event.details?.quality) // null after a timeout
else -> Unit
}
}
}
details is null on STARTED, on the first ONGOING (before the bracelet's first reply) and on the DONE_WITH_FAILURE sent when a run times out without a result. On DONE_WITH_SUCCESS and on the other DONE_WITH_FAILURE it holds the run's final reply, so details.quality is the run's quality.
The screen can make up to three runs in one visit, so you can receive up to three final statuses. The last one counts.
Without the SDK screen: the listener
If you drive WearingOptimizationManager yourself, the same status and details reach your WearingOptimizationListener.onStatusChanged, see Your own UI.
The manager holds one listener: addListener replaces the previous one. CorsanoWearingOptimizationFragment sets its own while it is shown, so with the SDK screen use the events above, never addListener.
Afterwards: the stored measurement
Every run that the bracelet accepted is stored on the phone with its last reply. Read the most recent one at any time, for example to show the quality of the last optimization on a settings screen, or when your screen resumes after the SDK screen has closed:
val last = manager.woRepository
.getLastMeasurement() // suspend, Result<WearingOptimizationMeasurementDB?>
.getOrNull()
val quality: Int? = last?.quality
val passed: Boolean = last?.isSuccess == true
WearingOptimizationMeasurementDB:
| Field | Type | Value |
|---|---|---|
quality | Int? | Quality of the optimization, 0 to 100 %; null if the bracelet never replied |
isSuccess | Boolean? | true: the run finished with a quality of 50 % or more. false: it failed, timed out or was stopped. null: it is still running, or it never ended (the app was closed, or the call of start was cancelled) |
progressPercent | Int? | Progress at the last reply |
movementLevel | Int? | Movement level at the last reply, on the scale above |
startTimestamp / endTimestamp | Long / Long? | Start and end of the run on the phone's clock, epoch milliseconds; endTimestamp is null while it runs |
startDate / endDate | String / String? | The same as yyyy-MM-dd'T'HH:mm:ss, local time |
manager.woRepository is a WearingOptimizationRepository. All its functions are suspend and return a Result:
| Function | Returns |
|---|---|
getLastMeasurement() | The newest run, or null when none is stored |
getAll() | Every stored run, oldest first |
getLastOngoingMeasurement() | The newest run without an end, or null |
deleteByTimestampRange(startTimestamp, endTimestamp) | Deletes the runs that start in the range, both ends included. Before 3.0.0 this call always failed |
deleteAll() | Deletes every run |
Since 3.0.0 you cannot construct a WearingOptimizationRepository: take it from manager.woRepository.
The runs are stored on the phone, and not per bracelet. After a reinstall, on a new phone or after deleteAll() the history is empty, also when the bracelet itself was optimized before.
Errors and what to do
WearingOptimizationErrorType arrives in onError(type, t) or in the Error(type, throwable) event. After an error at the start, start returns a failed Result and no DONE_... status follows.
| Error | Cause | What to do |
|---|---|---|
FW_NOT_SUPPORTED | The firmware is below 6.99 | Update the firmware (DFU), then start again |
BLE_COMMUNICATION_ERROR_START with an SdkLicenceException | The SDK is locked by the licence check | Retrying does not help. See Licence Key |
BLE_COMMUNICATION_ERROR_START | The firmware version could not be read, or the bracelet did not accept the start command: not connected, not initialized, or no answer within 20 seconds | Check device.connectionState and device.isInitialized, then start again |
DB_ERROR_START | The run could not be stored on the phone. The SDK abandons the run and stops it on the bracelet. Since 3.0.0; before, start threw an exception | Check manager.currentDatabaseState, then start again |
BLE_COMMUNICATION_ERROR_STOP | The bracelet did not answer the stop command | The bracelet may still be measuring. Call stop again when it is connected |
DB_ERROR_STOP | The run was stopped on the bracelet, but its record could not be updated | Nothing. The stop itself succeeded |
A run that fails or times out is not an error: it ends with the status DONE_WITH_FAILURE.
DONE_WITH_FAILURE with | Meaning | What to do |
|---|---|---|
details.isFinished == true | The bracelet finished, but the quality is below 50 % | Let the user check the strap and the position, and run again. The SDK screen shows its tutorials and retries |
details.isFinished == false | The bracelet reports that no run is going on: it did not start one, or the run was stopped | Run again |
details == null | No verdict within 5 minutes | Check the connection, then run again |
With the SDK screen, a start that fails (bracelet out of reach, firmware, database, licence) closes the "communicating" dialog and shows the error, so the user can tap the start button again. An error once the run is going shows the failure page. Before 3.0.0 both left the dialog open for good. Open the screen only when the bracelet is connected and initialized.
While the SDK is locked by the licence check, the screen cannot write the profile to the bracelet: it shows its error message and stays on the confirm page.
Stopping a run
val stopped = woManager.stop(device) // suspend, Result<Boolean>
stopsends the stop command to the bracelet.Result.success(true)means the bracelet accepted it.- It marks the stored run as failed (
isSuccess = false). - It does not end the pending
startcall by itself.startsees at its next status read, within seconds, that the run is over: it sendsDONE_WITH_FAILUREand returnsResult.success(true). stopalso works while the SDK is locked by the licence check, so a bracelet does not stay in the measurement.
Status of the Wearing Optimization (mandatory)
From SDK 1.3.0 and FW 8.26
suspend fun getStatus(bleDevice: BleDevice): Result<OverallWearingOptimizationStatus>
Call it after the bracelet is connected and initialized, for example at each start of your app, to know whether the user has to run the wearing optimization:
lifecycleScope.launch {
when (woManager.getStatus(device).getOrNull()) {
OverallWearingOptimizationStatus.NOT_PERFORMED,
OverallWearingOptimizationStatus.DONE_WITH_FAILURE,
OverallWearingOptimizationStatus.NEEDS_REDO -> askUserToRunWearingOptimization()
OverallWearingOptimizationStatus.DONE_WITH_SUCCESS -> Unit
null -> retryLater() // the bracelet did not answer, or the database could not be read
}
}
enum class OverallWearingOptimizationStatus {
NOT_PERFORMED,
DONE_WITH_SUCCESS,
DONE_WITH_FAILURE,
NEEDS_REDO,
}
| Value | Meaning | Comes from |
|---|---|---|
NOT_PERFORMED | No run is stored on this phone | The phone's database. The bracelet is not asked |
DONE_WITH_FAILURE | The last stored run did not pass: it failed, timed out, was stopped or never ended | The phone's database. The bracelet is not asked |
DONE_WITH_SUCCESS | The last stored run passed, and the bracelet does not ask for a redo | The phone's database, then the bracelet |
NEEDS_REDO | The last stored run passed, but the bracelet asks for a new one: the quality of its SpO₂ measurements at night was not sufficient | The bracelet (FW 8.26 or later) |
- When the last run passed,
getStatusreads the firmware version and, from FW 8.26, the bracelet's SpO₂ statistics (GetSp02StatsRequest). The bracelet must then be connected and initialized; if it does not answer,getStatusreturns a failedResult. On a firmware below 8.26 it returnsDONE_WITH_SUCCESSwithout asking. NOT_PERFORMED,DONE_WITH_SUCCESSandDONE_WITH_FAILUREfollow from the runs stored on this phone, see the note under the stored measurement.- Before 3.0.0,
getStatusalmost never returnedNEEDS_REDO:GetSp02StatsRequestread the wrong reply of the bracelet. This is fixed in 3.0.0.
If the status is NEEDS_REDO, prompt your users to redo a wearing optimization.
To see the figures behind NEEDS_REDO, send GetSp02StatsRequest() yourself. Its Response:
| Field | Type | Value |
|---|---|---|
woRequired | Boolean | The bracelet asks for a new wearing optimization |
nbSp02AtNight / nbSp02DuringDay | Int | Number of SpO₂ measurements at night and during the day |
goodSp02PercentAtNight / goodSp02PercentDuringDay | Int | Percentage of good SpO₂ measurements at night and during the day |
Description
After registration and pairing of the bracelet, your app should ask the user to perform the wearing optimization.
The patient can sit or lie in bed. Ask the patient to remain still during the run (typically 2 minutes, up to 4 minutes if movement is detected). This small step has a significant impact on measurement accuracy.
Optimal LED power levels are critical for accurate SpO₂ measurements using PPG because they directly influence the signal quality and reliability of the optical sensor's readings. Here is why:
1. Skin Color (Melanin Content)
Darker skin contains more melanin, which absorbs more light, particularly in the visible spectrum. To compensate:
- Higher LED power may be required to ensure enough light penetrates the skin and is reflected or transmitted back to the sensor.
- Optimizing LED power minimizes signal attenuation and reduces the likelihood of underestimation of SpO₂ in people with dark skin tones.
2. BMI (Tissue Thickness)
Individuals with higher BMI often have thicker subcutaneous tissue, which can scatter and absorb light:
- Adjusted LED intensity helps ensure the light reaches the capillaries and returns a clear signal.
- This optimization improves signal-to-noise ratio, crucial for differentiating between oxygenated and deoxygenated hemoglobin.
3. Perfusion (Blood Flow)
Perfusion impacts the strength of the pulsatile PPG signal:
- In low-perfusion states (e.g., cold extremities, vasoconstriction), less blood flow reduces the AC component of the PPG signal.
- Increased or modulated LED power enhances detection of weak pulses, allowing for reliable SpO₂ calculation even under challenging physiological conditions.
Summary:
By adjusting the LED power levels per individual during the wearing optimization, the bracelet tailors its light output to each user's skin tone, tissue characteristics and perfusion level. This gives accurate, reproducible SpO₂ measurements across diverse populations.