public static class

ECGSensorManager.Command

extends Object
java.lang.Object
   ↳ mason.hardware.platform.ECGSensorManager.Command

Class Overview

Available ECG Sensor commands

Summary

Constants
int GET_CONFIGURATION Get the library configuration.
int GET_USER_METADATA Get the user metadata information.
int GET_VERSION Get the version of HeartKey library version.
int SET_SAMPLE_DATA_TYPE Set ECG Sample data type.
int SET_USERMETADATA Set the user metadata.
int START_AUTHENTICATION Start the user id authentication transaction, comparing the input ECG with the stored enrolment profiles.
int START_ENROLMENT Start the enrollment of a new user.
int UNENROL_USER_ID Uneroll user.
Public Constructors
ECGSensorManager.Command()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int GET_CONFIGURATION

Get the library configuration.

Constant Value: 1 (0x00000001)

public static final int GET_USER_METADATA

Get the user metadata information.

Constant Value: 2 (0x00000002)

public static final int GET_VERSION

Get the version of HeartKey library version.

Constant Value: 0 (0x00000000)

public static final int SET_SAMPLE_DATA_TYPE

Set ECG Sample data type. This command should be executed with executeWithParameter(int, CommandParameter)

Parameters that must be included when using this command are:

  • type Sample data type. 0: Raw, 1: Display, 2: Both Raw and Display
Additional parameters will be ignored.
 CommandParameter sampleDataCmd = new CommandParameter();
 sampleDataCmd.addIntegerParameter("type", type);
 

Constant Value: 10 (0x0000000a)

public static final int SET_USERMETADATA

Set the user metadata. This command should be executed with executeWithParameter(int, CommandParameter)

Parameters that must be included when using this command are:

  • age: age of 0 to 255 years. Default: 30.
  • gender: biological sex of the user: 0x00 (female), 0x01 (male).
  • height: height of user in cm range:30cm to 250cm. Default: 180 cm.
  • weight: weight of user in kg range:1kg to 400kg. Default: 70kg.
Additional parameters will be ignored.
 CommandParameter metadataParameter = new CommandParameter();
 metadataParameter.addIntegerParameter("age", 97);
 metadataParameter.addIntegerParameter("height", 180);
 metadataParameter.addIntegerParameter("weight", 10);
 metadataParameter.addIntegerParameter("gender", 0);
 

Constant Value: 9 (0x00000009)

public static final int START_AUTHENTICATION

Start the user id authentication transaction, comparing the input ECG with the stored enrolment profiles.

Constant Value: 3 (0x00000003)

public static final int START_ENROLMENT

Start the enrollment of a new user. Like any biometric, an user must first train the system with their biometric before they can authenticate.

Constant Value: 4 (0x00000004)

public static final int UNENROL_USER_ID

Uneroll user. This command should be executed with executeWithParameter(int, CommandParameter)

Parameters that must be included when using this command are:

  • user_handle: user handler
Additional parameters will be ignored.
 CommandParameter unenrolParameter = new CommandParameter();
 unenrolParameter.addIntegerParameter("userHandler", uId);
 

Constant Value: 7 (0x00000007)

Public Constructors

public ECGSensorManager.Command ()