Skip to main content

Battery error detection

The CardioWatch can detect a charging issue or a battery issue related to a hardware issue.

When it does, it reports an error code in place of the battery level. In the SDK the battery level of MetricActivity is then replaced by one of the error codes below.

How to read the code​

WhereValue
MetricActivity.battery (Int?)0 to 100: the battery level in percent. Above 100: one of the error codes below.
MetricActivity.isChargingWhether the bracelet was on its charger at that moment.

MetricActivity rows arrive with the automatic download; read them from metricActivityRepository or listen to metricActivityUpdated, see Retrieve the Data.

import com.corsano.sdk.data.external.realm.models.MetricActivity

/** The battery error code of this row, or null when the row holds a normal level. */
fun batteryErrorCode(metric: MetricActivity): Int? = metric.battery?.takeIf { it > 100 }

Things to know:

  • Do not show a value above 100 as a percentage. Check for it before you display the battery level.
  • GetBatteryLevelRequest does not return these codes. From SDK 3.0.0 it fails with CommandResponseValidationException when the bracelet reports a value above 100, so no BatteryLevel comes back. Up to SDK 2.3.0 it returned the value as BatteryLevel.level.
  • The SDK does not show a message to the user. The titles and messages below are suggestions for your app.

Please find below the codes and their meaning.

110 Bad Cable​

Title : Charging Cable Alert

Message : We have identified a technical issue affecting your charging cable. Please contact Corsano Support for a replacement.

111​

Title : Low Battery Capacity Alert

Message : Your device’s battery is delivering less autonomy than expected. If your device is still under warranty, we suggest to contact Corsano Support.

113​

Title : Unable to Charge properly

Message : For optimal charging, please clean charging contacts on your bracelet and connect your cable to a phone power adapter. Charging via a computer USB port or USB duplicator may be slow or stop completely when the computer enters sleep mode.

114 / 115​

Title : Battery Malfunction Alert

Message : Your device’s battery has a hardware issue. Please contact Corsano Support for a replacement. If your device is under warranty, the replacement will be provided free of charge.

117​

Title : Charge Malfunction Alert

Message : Your device seems to not charge to full capacity. For optimal charging, please clean charging contacts on your bracelet and connect your cable to a phone power adapter. Charging via a computer USB port or USB duplicator may be slow or stop completely when the computer enters sleep mode.