Tizen HAL API  1.0
Sensor

The Sensor provides functions for getting/putting backend and creating sensor devices.

Required Header

#include <hal-sensor.h>

Overview

The Sensor provides functions to get/put backend.

The Sensor provides creating and deleting functions.

For the sensors created by hal_sensor_create, Sensor provides operations.

Functions to get poll fd and sensors:

Functions to manipulate the behavior of sensors:

Functions to get/set attributes of sensors:

Function to flush sensor data:

Typedefs

typedef struct
_hal_backend_sensor_funcs 
hal_backend_sensor_funcs
 Structure for sensor functions.
typedef struct sensor_info_t sensor_info_t
 Structure for sensor information data.
typedef struct sensor_data_t sensor_data_t
 Structure for sensor data.
typedef struct sensorhub_data_t sensorhub_data_t
 Structure of sensorhub data.

Defines

#define SENSOR_DATA_VALUE_SIZE   16
 Definition of sensor data value size.
#define SENSORHUB_DATA_VALUE_SIZE   4096
 Definition of sensorhub data value size.
#define SENSOR_PEDOMETER_DATA_DIFFS_SIZE   20
 Definition of pedometer data difference array size.

Data Structure Documentation

struct sensor_device_s

Structure for sensor device functions.

Since:
HAL_MODULE_SENSOR 1.0

Data Fields

int(* get_poll_fd )(uint32_t sensor_device_id, int *poll_fd)
int(* get_sensors )(uint32_t sensor_device_id, const sensor_info_t **sensors, size_t *sensors_len)
int(* enable )(uint32_t sensor_device_id, uint32_t id)
int(* disable )(uint32_t sensor_device_id, uint32_t id)
int(* read_fd )(uint32_t sensor_device_id, uint32_t **ids, size_t *ids_len)
int(* get_data )(uint32_t sensor_device_id, uint32_t id, sensor_data_t **data, size_t *length)
int(* set_interval )(uint32_t sensor_device_id, uint32_t id, unsigned long val)
int(* set_batch_latency )(uint32_t sensor_device_id, uint32_t id, unsigned long val)
int(* set_attribute_int )(uint32_t sensor_device_id, uint32_t id, int32_t attribute, int32_t value)
int(* set_attribute_str )(uint32_t sensor_device_id, uint32_t id, int32_t attribute, const char *value, size_t len)
int(* get_attribute_int )(uint32_t sensor_device_id, uint32_t id, int32_t attribute, int32_t *value)
int(* get_attribute_str )(uint32_t sensor_device_id, uint32_t id, int32_t attribute, char **value, size_t *len)
int(* flush )(uint32_t sensor_device_id, uint32_t id)

Field Documentation

int(* sensor_device_s::disable)(uint32_t sensor_device_id, uint32_t id)

Disable this sensor

int(* sensor_device_s::enable)(uint32_t sensor_device_id, uint32_t id)

Enable this sensor

int(* sensor_device_s::flush)(uint32_t sensor_device_id, uint32_t id)

Flush sensor data

int(* sensor_device_s::get_attribute_int)(uint32_t sensor_device_id, uint32_t id, int32_t attribute, int32_t *value)

Get integer attribute value

int(* sensor_device_s::get_attribute_str)(uint32_t sensor_device_id, uint32_t id, int32_t attribute, char **value, size_t *len)

Get string attribute value

int(* sensor_device_s::get_data)(uint32_t sensor_device_id, uint32_t id, sensor_data_t **data, size_t *length)

Get sensor data

int(* sensor_device_s::get_poll_fd)(uint32_t sensor_device_id, int *poll_fd)

Get poll fd for event listening

int(* sensor_device_s::get_sensors)(uint32_t sensor_device_id, const sensor_info_t **sensors, size_t *sensors_len)

Get sensor entities

int(* sensor_device_s::read_fd)(uint32_t sensor_device_id, uint32_t **ids, size_t *ids_len)

Read sensor and return event ids

int(* sensor_device_s::set_attribute_int)(uint32_t sensor_device_id, uint32_t id, int32_t attribute, int32_t value)

Set attribute as an integer value

int(* sensor_device_s::set_attribute_str)(uint32_t sensor_device_id, uint32_t id, int32_t attribute, const char *value, size_t len)

Set attribute as a string value

int(* sensor_device_s::set_batch_latency)(uint32_t sensor_device_id, uint32_t id, unsigned long val)

Set batch latency

int(* sensor_device_s::set_interval)(uint32_t sensor_device_id, uint32_t id, unsigned long val)

Set sensor value interval

struct _hal_backend_sensor_funcs

Structure for sensor functions.

Since:
HAL_MODULE_SENSOR 1.0

Data Fields

int(* create_sensor )(sensor_device_s ***sensor_devices, size_t *sensor_devices_len)
int(* delete_sensor )(uint32_t *sensor_device_ids, size_t sensor_device_ids_len)

Field Documentation

int(* _hal_backend_sensor_funcs::create_sensor)(sensor_device_s ***sensor_devices, size_t *sensor_devices_len)

Create sensor devices

int(* _hal_backend_sensor_funcs::delete_sensor)(uint32_t *sensor_device_ids, size_t sensor_device_ids_len)

Delete sensors with their ids

struct sensor_info_t

Structure for sensor information data.

Since:
HAL_MODULE_SENSOR 1.0

A platform sensor handler is generated based on this handle.
The 'id' can be assigned from HAL developer, so it has to be
unique per a sensor_device.

Data Fields

uint32_t id
const char * name
int type
unsigned int event_type
const char * model_name
const char * vendor
float min_range
float max_range
float resolution
int min_interval
int max_interval
int max_batch_count
bool wakeup_supported

Field Documentation

Event type for Internal API

Sensor id

Minimum batch count

Maximum interval of sensor value retrieval

Maximum range of sensor value

Minimum interval of sensor value retrieval

Minimum range of sensor value

Model name of sensor

const char* sensor_info_t::name

Sensor name

Resolution of sensor value

Sensor type(sensor_device_type)

const char* sensor_info_t::vendor

Vendor of sensor

Support wakeup or not

struct sensor_data_t

Structure for sensor data.

Since:
HAL_MODULE_SENSOR 1.0

Data Fields

int accuracy
unsigned long long timestamp
int value_count
float values [16]

Field Documentation

Accuracy of value

unsigned long long sensor_data_t::timestamp

Timestamp of value

Number of values provided

Sensor values(array)

struct sensorhub_data_t

Structure of sensorhub data.

Since:
HAL_MODULE_SENSOR 1.0

Data Fields

int accuracy
unsigned long long timestamp
union {
   int   value_count
   int   hub_data_size
}; 
 Union of number of values.
union {
   char   values [4096]
   char   hub_data [4096]
}; 
 Union of values.

Field Documentation

union { ... }

Union of values.

Since:
HAL_MODULE_SENSOR 1.0

Use "values" instead of "hub_data"(will be removed soon)

union { ... }

Union of number of values.

Since:
HAL_MODULE_SENSOR 1.0

Use "value_count" instead of "hub_data_size"(will be removed soon)

Accuracy of value

Values of sensorhub (deprecated)

Number of values (deprecated)

unsigned long long sensorhub_data_t::timestamp

Timestamp of value

Number of values

Values of sensorhub

struct sensor_pedometer_data_t

Structure of pedometer data.

Since:
HAL_MODULE_SENSOR 1.0

Data Fields

int accuracy
unsigned long long timestamp
int value_count
float values [16]
int diffs_count
struct
sensor_pedometer_data_t::differences 
diffs [20]

Field Documentation

Accuracy of value

Array of differences of pedometer data

Number of struct differences Additional data attributes (not in sensor_data_t)

Timestamp of value

Values of pedometer sensor values = {step count, walk step count, run step count, moving distance, calorie burned, last speed, last stepping frequency (steps per sec), last step status (walking, running, ...)}

struct sensor_pedometer_data_t::differences

Structure of differences of pedometer data.

Since:
HAL_MODULE_SENSOR 1.0

Additional data attributes (not in sensor_data_t)

Data Fields

int timestamp
int steps
int walk_steps
int run_steps
int walk_up_steps
int walk_down_steps
int run_up_steps
int run_down_steps
float distance
float calories
float speed

Field Documentation

Difference of calories

Difference of distance

Difference of run down steps

Difference of walk down steps

Difference of walk up steps


Define Documentation

#define SENSOR_DATA_VALUE_SIZE   16

Definition of sensor data value size.

Since:
HAL_MODULE_SENSOR 1.0

Definition of pedometer data difference array size.

Since:
HAL_MODULE_SENSOR 1.0
#define SENSORHUB_DATA_VALUE_SIZE   4096

Definition of sensorhub data value size.

Since:
HAL_MODULE_SENSOR 1.0

Typedef Documentation

Structure for sensor functions.

Since:
HAL_MODULE_SENSOR 1.0
typedef struct sensor_data_t sensor_data_t

Structure for sensor data.

Since:
HAL_MODULE_SENSOR 1.0
typedef struct sensor_info_t sensor_info_t

Structure for sensor information data.

Since:
HAL_MODULE_SENSOR 1.0

A platform sensor handler is generated based on this handle.
The 'id' can be assigned from HAL developer, so it has to be
unique per a sensor_device.

Structure of sensorhub data.

Since:
HAL_MODULE_SENSOR 1.0

Enumeration Type Documentation

Enumeration(hal) for power state of lidar.

Since:
HAL_MODULE_SENSOR 1.0

HAL_SENSOR_ATTR_LIDAR_POWER_STATE attribute value

Enumerator:
HAL_SENSOR_LIDAR_POWER_STATE_OFF 

Off

HAL_SENSOR_LIDAR_POWER_STATE_ON 

On

Enumeration(hal) for sensitivity level of proximity sensor.

Since:
HAL_MODULE_SENSOR 1.0

HAL_SENSOR_ATTR_PROXIMITY_SENSITIVITY_LEVEL attribute value

Enumerator:
HAL_SENSOR_PROXIMITY_SENSITIVITY_LEVEL_WEAK 

Weak

HAL_SENSOR_PROXIMITY_SENSITIVITY_LEVEL_MEDIUM 

Medium

HAL_SENSOR_PROXIMITY_SENSITIVITY_LEVEL_STRONG 

Strong

Enumeration for sensor accuracy.

Since:
HAL_MODULE_SENSOR 1.0
Enumerator:
SENSOR_ACCURACY_UNDEFINED 

Undefined accuracy

SENSOR_ACCURACY_BAD 

Bad accuracy

SENSOR_ACCURACY_NORMAL 

Normal accuracy

SENSOR_ACCURACY_GOOD 

Good accuracy

SENSOR_ACCURACY_VERYGOOD 

Very good accuracy

Enumeration for activity.

Since:
HAL_MODULE_SENSOR 1.0
Enumerator:
SENSOR_ACTIVITY_UNKNOWN 

Unknown activity

SENSOR_ACTIVITY_STILL 

Still

SENSOR_ACTIVITY_WALKING 

Walking

SENSOR_ACTIVITY_RUNNING 

Running

SENSOR_ACTIVITY_IN_VEHICLE 

In vehicle

SENSOR_ACTIVITY_ON_BICYCLE 

On bicycle

Structure for attributes of sensor.

Since:
HAL_MODULE_SENSOR 1.0
Enumerator:
SENSOR_ATTR_ACCELEROMETER_INJECTION 

accelerometer injection

SENSOR_ATTR_ACTIVITY 

activity

SENSOR_ATTR_HRM_BATCH_OPR_MODE 

HRM batch opr mode

SENSOR_ATTR_HRM_BATCH_ACTIVITY_TYPE 

HRM batch activity type

SENSOR_ATTR_HRM_BATCH_BATCH_DUR 

HRM batch batch dur

SENSOR_ATTR_HRM_BATCH_FLUSH 

HRM batch flush

SENSOR_ATTR_HRM_BATCH_ELEVATED_DUR 

HRM batch elevated dur

SENSOR_ATTR_HRM_BATCH_ELEVATED_THR 

HRM batch elevated thr

SENSOR_ATTR_HRM_BATCH_BPM_RAW 

HRM batch bpm raw

SENSOR_ATTR_HRM_BATCH_LOW_ALERT_DUR 

HRM batch low alert dur

SENSOR_ATTR_HRM_BATCH_LOW_ALERT_THR 

HRM batch low alert thr

SENSOR_ATTR_HRM_LED_GREEN_BATCH_POLLING_INTERVAL 

HRM led green batch polling interval

SENSOR_ATTR_HRM_LED_GREEN_BATCH_FLUSH 

HRM led green batch flush

SENSOR_ATTR_HRM_LED_GREEN_BATCH_BATCH_PERIOD 

HRM led green batch batch period

SENSOR_ATTR_PEDOMETER_HEIGHT 

pedometer height

SENSOR_ATTR_PEDOMETER_WEIGHT 

pedometer weight

SENSOR_ATTR_PEDOMETER_GENDER 

pedometer gender

SENSOR_ATTR_PEDOMETER_AGE 

pedometer age

SENSOR_ATTR_PEDOMETER_FLUSH 

pedometer flush

SENSOR_ATTR_STRESS_MONITOR_AGE 

stress monitor age

SENSOR_ATTR_EXERCISE_TYPE 

exercise type

SENSOR_ATTR_EXERCISE_GPS 

exercise GPS

SENSOR_ATTR_EXERCISE_BATCH_INTERVAL 

exercise batch interval

SENSOR_ATTR_EXERCISE_PSERVICE 

exercise personal service

SENSOR_ATTR_CYCLE_DURATION 

cycle duration

SENSOR_ATTR_CYCLE_HOLDING_POSITION 

cycle holding position

SENSOR_ATTR_CYCLE_VELOCITY 

cycle velocity

SENSOR_ATTR_CYCLE_GET_DATA_TYPE 

cycle get data type

SENSOR_ATTR_CYCLE_DATA_FLUSH 

cycle data flush

SENSOR_ATTR_CYCLE_GPS_AGREEMENT 

cycle GPS agreement

SENSOR_ATTR_WORKOUT_TYPE 

workout type

SENSOR_ATTR_WORKOUT_DURATION 

workout duration

SENSOR_ATTR_RESTING_HR_OPR_MODE 

resting HR opr mode

SENSOR_ATTR_RESTING_HR_MAX_RHR 

resting HR max rhr

SENSOR_ATTR_RESTING_HR_MIN_RHR 

resting HR min rhr

SENSOR_ATTR_RESTING_HR_AVG_RHR 

resting HR avg rhr

SENSOR_ATTR_RESTING_HR_HOUR 

resting HR hour

SENSOR_ATTR_RESTING_HR_MIN 

resting HR min

SENSOR_ATTR_RESTING_HR_SEC 

resting HR sec

SENSOR_ATTR_RESTING_HR_PROPERTY_TYPE 

resting HR property type

SENSOR_ATTR_RESTING_HR_PROPERTY_HR_TYPE 

resting HR property HR type

SENSOR_ATTR_RESTING_HR_PROPERTY_HR_VALUE 

resting HR property HR value

SENSOR_ATTR_RESTING_HR_PROPERTY_DURATION 

resting HR property duration

SENSOR_ATTR_RESTING_HR_PROPERTY_ACT_TYPE 

resting HR property act type

SENSOR_ATTR_RESTING_HR_PROPERTY_ACT_DUR 

resting HR property act dur

SENSOR_ATTR_RESTING_HR_PROPERTY_CONT_DUR 

resting HR property cont dur

SENSOR_ATTR_RESTING_HR_DATA_TYPE 

resting HR data type

SENSOR_ATTR_RESTING_HR_DATA_FLUSH 

resting HR data flush

SENSOR_ATTR_STEP_LEVEL_MONITOR_DW_DURATION 

step level monitor dw duration

SENSOR_ATTR_EXERCISE_HR_OPR_MODE 

exercise HR opr mode

SENSOR_ATTR_EXERCISE_HR_ACTIVITY_TYPE 

exercise HR activity type

SENSOR_ATTR_EXERCISE_HR_BATCH_DUR 

exercise HR batch dur

SENSOR_ATTR_EXERCISE_HR_FLUSH 

exercise HR flush

SENSOR_ATTR_EXERCISE_HR_ELEVATED_DUR 

exercise HR elevated dur

SENSOR_ATTR_EXERCISE_HR_ELEVATED_THR 

exercise HR elevated thr

SENSOR_ATTR_EXERCISE_HR_BPM_RAW 

exercise HR bpm raw

SENSOR_ATTR_EXERCISE_HR_LOW_ALERT_DUR 

exercise HR low alert dur

SENSOR_ATTR_EXERCISE_HR_LOW_ALERT_THR 

exercise HR low alert thr

SENSOR_ATTR_PRESSURE_INDICATOR_START 

pressure indicator start

SENSOR_ATTR_PRESSURE_INDICATOR_STOP 

pressure indicator stop

SENSOR_ATTR_PRESSURE_INDICATOR_FLUSH 

pressure indicator flush

SENSOR_ATTR_PRESSURE_INDICATOR_RESTORE_TIME 

pressure indicator restore time

SENSOR_ATTR_PRESSURE_INDICATOR_RESTORE_VALUE 

pressure indicator restore value

SENSOR_ATTR_PRESSURE_INDICATOR_CURRENT_TIME 

pressure indicator current time

SENSOR_ATTR_PRESSURE_ALERT_START 

pressure alert start

SENSOR_ATTR_PRESSURE_ALERT_STOP 

pressure alert stop

SENSOR_ATTR_HR_CALORIE_AGE 

HR calorie age

SENSOR_ATTR_HR_CALORIE_HEIGHT 

HR calorie height

SENSOR_ATTR_HR_CALORIE_WEIGHT 

HR calorie weight

SENSOR_ATTR_HR_CALORIE_GENDER 

HR calorie gender

SENSOR_ATTR_HR_CALORIE_INST 

HR calorie inst

SENSOR_ATTR_HR_CALORIE_EXERCISE_TYPE 

HR calorie exercise type

SENSOR_ATTR_HR_CALORIE_TARGET_CAL 

HR calorie target cal

SENSOR_ATTR_HR_CALORIE_MAX_HEARTRATE 

HR calorie max heartrate

SENSOR_ATTR_HR_CALORIE_FLUSH 

HR calorie flush

SENSOR_ATTR_SWIMMING_TRACKER_PLACE 

swimming tracker place

SENSOR_ATTR_SWIMMING_TRACKER_DISTANCE 

swimming tracker distance

SENSOR_ATTR_SWIMMING_TRACKER_FLUSH 

swimming tracker flush

SENSOR_ATTR_SWIMMING_TRACKER_BATCH 

swimming tracker batch

SENSOR_ATTR_SWIMMING_TRACKER_GOAL_CALORIES 

swimming tracker goal calories

SENSOR_ATTR_SWIMMING_TRACKER_GOAL_LAPS 

swimming tracker goal laps

SENSOR_ATTR_SWIMMING_TRACKER_TIME_REST 

swimming tracker time rest

SENSOR_ATTR_SWIMMING_TRACKER_TIME_TURN 

swimming tracker time turn

SENSOR_ATTR_SWIMMING_OUTDOOR_SET_BATCH_LAP_COUNT 

swimming outdoor set batch lap count

SENSOR_ATTR_SWIMMING_OUTDOOR_SETGOAL_LENGTH 

swimming outdoor setgoal length

SENSOR_ATTR_SWIMMING_OUTDOOR_SETGOAL_TIME 

swimming outdoor setgoal time

SENSOR_ATTR_SWIMMING_OUTDOOR_SET_GPS_PERMISSION 

swimming outdoor set GPS permission

SENSOR_ATTR_SWIMMING_OUTDOOR_FLUSH 

swimming outdoor flush

SENSOR_ATTR_AUTO_SWIMMING_DURATION 

auto swimming duration

SENSOR_ATTR_INACTIVITY_DETECTOR_LEVEL 

inactivity detector level

SENSOR_ATTR_INACTIVITY_DETECTOR_DURATION 

inactivity detector duration

SENSOR_ATTR_STRESS_TRACKER_DUR 

stress tracker dur

SENSOR_ATTR_STRESS_TRACKER_FLUSH 

stress tracker flush

SENSOR_ATTR_STRESS_MONITOR_BASE_HR 

stress monitor base HR

SENSOR_ATTR_STRESS_MONITOR_HISTO_INDEX 

stress monitor histo index

SENSOR_ATTR_STRESS_MONITOR_HISTO_VALUE 

stress monitor histo value

SENSOR_ATTR_STRESS_MONITOR_TUNE_INDEX 

stress monitor tune index

SENSOR_ATTR_STRESS_MONITOR_TUNE_VALUE 

stress monitor tune value

SENSOR_ATTR_STRESS_MONITOR_FLUSH 

stress monitor flush

SENSOR_ATTR_STRESS_MONITOR_OPERATION 

stress monitor operation

SENSOR_ATTR_SLEEP_MONITOR_STOP 

sleep monitor stop

SENSOR_ATTR_SLEEP_MONITOR_FLUSH 

sleep monitor flush

SENSOR_ATTR_SLEEP_DETECTOR_STOP 

sleep detector stop

SENSOR_ATTR_SLEEP_DETECTOR_SETTING 

sleep detector setting

SENSOR_ATTR_DATA_JOURNAL_START 

data journal start

SENSOR_ATTR_DATA_JOURNAL_STOP 

data journal stop

SENSOR_ATTR_GPS_BATCH_OPR_MODE 

GPS batch opr mode

SENSOR_ATTR_PPG_BATCH_POLLING_INTERVAL 

PPG batch polling interval

SENSOR_ATTR_PPG_BATCH_FLUSH 

PPG batch flush

SENSOR_ATTR_REG_CTRL_TYPE 

reg control type

SENSOR_ATTR_REG_CTRL_ADDRESS 

reg control address

SENSOR_ATTR_REG_CTRL_VALUE 

reg control value

SENSOR_ATTR_REG_CTRL_MODE 

reg control mode

SENSOR_ATTR_GPS_CTRL_SETTING 

GPS control setting

SENSOR_ATTR_FAKE_MOTION_EVENT_INTERVAL 

fake motion event interval

SENSOR_ATTR_FAKE_MOTION_EVENT_COUNT 

fake motion event count

SENSOR_ATTR_FAKE_MOTION_PAUSE_INTERVAL 

fake motion pause interval

SENSOR_ATTR_GEOFENCE_ID 

geofence id

SENSOR_ATTR_GEOFENCE_LAT 

geofence lat

SENSOR_ATTR_GEOFENCE_LON 

geofence lon

SENSOR_ATTR_GEOFENCE_RADIUS 

geofence radius

SENSOR_ATTR_GEOFENCE_PROVIDER 

geofence provider

SENSOR_ATTR_GEOFENCE_ACCURACY 

geofence accuracy

SENSOR_ATTR_GEOFENCE_TIMESTAMP 

geofence timestamp

SENSOR_ATTR_GEOFENCE_CONNECT 

geofence connect

SENSOR_ATTR_GEOFENCE_START 

geofence start

SENSOR_ATTR_GEOFENCE_STOP 

geofence stop

SENSOR_ATTR_GEOFENCE_SET_LOCATION 

geofence set location

SENSOR_ATTR_GEOFENCE_BT_CONNECT 

geofence bt connect

SENSOR_ATTR_FALL_DETECTION_OPR_MODE 

fall detection opr mode

HAL_SENSOR_ATTR_PROXIMITY_SENSITIVITY_LEVEL 

attr proximity sensitivity level

HAL_SENSOR_ATTR_LIDAR_POWER_STATE 

attr lidar power state

Enumeration for common attributes of sensor.

Since:
HAL_MODULE_SENSOR 1.0
Enumerator:
SENSOR_ATTR_COMMON_START 

Start of enum

SENSOR_ATTR_POWER_STATE 

Power state

Enumeration of sensor types for controlling the sensors.

Since:
HAL_MODULE_SENSOR 1.0

Base unit

  • acceleration values : meter per second^2 (m/s^2)
  • magnetic values : micro-Tesla (uT)
  • orientation values : degrees
  • gyroscope values : degree/s
  • temperature values : degrees centigrade
  • proximity values : distance
  • light values : lux
  • pressure values : hectopascal (hPa)
  • humidity : relative humidity (%)
Enumerator:
SENSOR_DEVICE_UNKNOWN 

unknown

SENSOR_DEVICE_ALL 

all

SENSOR_DEVICE_ACCELEROMETER 

accelerometer

SENSOR_DEVICE_GRAVITY 

gravity

SENSOR_DEVICE_LINEAR_ACCELERATION 

linear acceleration

SENSOR_DEVICE_GEOMAGNETIC 

geomagnetic

SENSOR_DEVICE_ROTATION_VECTOR 

rotation vector

SENSOR_DEVICE_ORIENTATION 

orientation

SENSOR_DEVICE_GYROSCOPE 

gyroscope

SENSOR_DEVICE_LIGHT 

light

SENSOR_DEVICE_PROXIMITY 

proximity

SENSOR_DEVICE_PRESSURE 

pressure

SENSOR_DEVICE_ULTRAVIOLET 

ultraviolet

SENSOR_DEVICE_TEMPERATURE 

temperature

SENSOR_DEVICE_HUMIDITY 

humidity

SENSOR_DEVICE_HRM 

HRM

SENSOR_DEVICE_HRM_LED_GREEN 

HRM led green

SENSOR_DEVICE_HRM_LED_IR 

HRM led ir

SENSOR_DEVICE_HRM_LED_RED 

HRM led red

SENSOR_DEVICE_GYROSCOPE_UNCAL 

gyroscope uncalibrated

SENSOR_DEVICE_GEOMAGNETIC_UNCAL 

geomagnetic uncalibrated

SENSOR_DEVICE_GYROSCOPE_RV 

gyroscope RV

SENSOR_DEVICE_GEOMAGNETIC_RV 

geomagnetic RV

SENSOR_DEVICE_SIGNIFICANT_MOTION 

significant motion

SENSOR_DEVICE_HRM_BATCH 

HRM batch

SENSOR_DEVICE_HRM_LED_GREEN_BATCH 

HRM led green batch

SENSOR_DEVICE_HUMAN_PEDOMETER 

human pedometer

SENSOR_DEVICE_HUMAN_SLEEP_MONITOR 

human sleep monitor

SENSOR_DEVICE_HUMAN_SLEEP_DETECTOR 

human sleep detector

SENSOR_DEVICE_HUMAN_STRESS_MONITOR 

human stress monitor

SENSOR_DEVICE_LIDAR 

lidar

SENSOR_DEVICE_EXERCISE_WALKING 

exercise walking

SENSOR_DEVICE_EXERCISE_RUNNING 

exercise running

SENSOR_DEVICE_EXERCISE_HIKING 

exercise hiking

SENSOR_DEVICE_EXERCISE_CYCLING 

exercise cycling

SENSOR_DEVICE_EXERCISE_ELLIPTICAL 

exercise elliptical

SENSOR_DEVICE_EXERCISE_INDOOR_CYCLING 

exercise indoor cycling

SENSOR_DEVICE_EXERCISE_ROWING 

exercise rowing

SENSOR_DEVICE_EXERCISE_STEPPER 

exercise stepper

SENSOR_DEVICE_DATA_JOURNAL 

data journal

SENSOR_DEVICE_MOTION_SENSOR 

motion sensor

SENSOR_DEVICE_FAKE 

fake

SENSOR_DEVICE_TAP_SENSOR 

tap sensor

SENSOR_DEVICE_COLOR_SENSOR 

color sensor

SENSOR_DEVICE_WIFI_MOTION_DETECTOR 

wifi motion detector

SENSOR_DEVICE_FUSION 

fusion

SENSOR_DEVICE_AUTO_ROTATION 

auto rotation

SENSOR_DEVICE_AUTO_BRIGHTNESS 

auto brightness

SENSOR_DEVICE_MYOTEST 

myotest

SENSOR_DEVICE_GESTURE_MOVEMENT 

gesture movement

SENSOR_DEVICE_GESTURE_WRIST_UP 

gesture wrist up

SENSOR_DEVICE_GESTURE_WRIST_DOWN 

gesture wrist down

SENSOR_DEVICE_GESTURE_MOVEMENT_STATE 

gesture movement state

SENSOR_DEVICE_GESTURE_PICK_UP 

gesture pick up

SENSOR_DEVICE_GESTURE_FACE_DOWN 

gesture face down

SENSOR_DEVICE_ACTIVITY_TRACKER 

activity tracker

SENSOR_DEVICE_ACTIVITY_LEVEL_MONITOR 

activity level monitor

SENSOR_DEVICE_GPS_BATCH 

GPS batch

SENSOR_DEVICE_PPG_BATCH 

PPG batch

SENSOR_DEVICE_GPS_TIMESYNC 

GPS timesync

SENSOR_DEVICE_HRM_CTRL 

HRM control

SENSOR_DEVICE_REG_CTRL 

reg control

SENSOR_DEVICE_GPS_CTRL 

GPS control

SENSOR_DEVICE_WEAR_STATUS 

wear status

SENSOR_DEVICE_WEAR_ON_MONITOR 

wear on monitor

SENSOR_DEVICE_NO_MOVE_DETECTOR 

no move detector

SENSOR_DEVICE_RESTING_HR 

resting HR

SENSOR_DEVICE_STEP_LEVEL_MONITOR 

step level monitor

SENSOR_DEVICE_EXERCISE_STANDALONE 

exercise standalone

SENSOR_DEVICE_EXERCISE_HR 

exercise HR

SENSOR_DEVICE_WORKOUT 

workout

SENSOR_DEVICE_CYCLE_MONITOR 

cycle monitor

SENSOR_DEVICE_STAIR_TRACKER 

stair tracker

SENSOR_DEVICE_PRESSURE_INDICATOR 

pressure indicator

SENSOR_DEVICE_PRESSURE_ALERT 

pressure alert

SENSOR_DEVICE_HR_CALORIE 

HR calorie

SENSOR_DEVICE_SWIMMING_TRACKER 

swimming tracker

SENSOR_DEVICE_STRESS_TRACKER 

stress tracker

SENSOR_DEVICE_FAKE_MOTION 

fake motion

SENSOR_DEVICE_GEOFENCE 

geofence

SENSOR_DEVICE_SWIMMING_OUTDOOR 

swimming outdoor

SENSOR_DEVICE_AUTO_SWIMMING 

auto swimming

SENSOR_DEVICE_INACTIVITY_DETECTOR 

inactivity detector

SENSOR_DEVICE_HRM_BP 

HRM BP

SENSOR_DEVICE_ECG 

ECG

SENSOR_DEVICE_FALL_DETECTION 

fall detection

SENSOR_DEVICE_CONTEXT 

context

SENSOR_DEVICE_MOTION 

motion

SENSOR_DEVICE_PIR 

PIR

SENSOR_DEVICE_PIR_LONG 

PIR long

SENSOR_DEVICE_DUST 

dust

SENSOR_DEVICE_THERMOMETER 

thermometer

SENSOR_DEVICE_PEDOMETER 

pedometer

SENSOR_DEVICE_FLAT 

flat

SENSOR_DEVICE_HRM_RAW 

HRM raw

SENSOR_DEVICE_TILT 

tilt

SENSOR_DEVICE_ROTATION_VECTOR_RAW 

rotation vector raw

SENSOR_DEVICE_GSR 

GSR

SENSOR_DEVICE_SIMSENSE 

simsense

SENSOR_DEVICE_PPG 

PPG