Hi,
I have 2 imx boards, MCIMX6Q-SDB and MCIMX8M-EVK.
I developed Android App.(SensorList.apk) to get a sensor list from these boards.
I can get the list from MCIMX6Q-SDB board, but NOT MCIMX8M-EVK.board.
1. MCIMX6Q-SDB
My "SensorList" App. shows following information.
-----------------------------------------------------------------------------------------------------
Number of Sensors: 5
Freescale 3-axis Accelerometer
Type: TYPE_ACCELEROMETER
Vendor: Freescale Semiconductor Inc.
Version: 1
Resolution: 5.985504E-4
MaxumumRange: 1500.0
Power: 0.3
...
-----------------------------------------------------------------------------------------------------
This information is same as that of sSensorList structure in sensors.cpp file.
This file is in $(MY_ANDROID)/vendor/nxp-opensource/imx/libsensors directory.
static const struct sensor_t sSensorList[] = {
{
.name = "Freescale 3-axis Accelerometer",
.vendor = "Freescale Semiconductor Inc.",
.version= 1,
.handle = SENSORS_ACCELERATION_HANDLE,
.type = SENSOR_TYPE_ACCELEROMETER,
.maxRange = RANGE_A,
.resolution = CONVERT_A,
.power = 0.30f,
.minDelay = 2500,
.fifoReservedEventCount = 0,
.fifoMaxEventCount = 32,
.stringType = SENSOR_STRING_TYPE_ACCELEROMETER,
.requiredPermission = 0,
.maxDelay = 640000,
.flags = SENSOR_FLAG_CONTINUOUS_MODE,
.reserved = {}
},
...
...
...
2. MCIMX8M-EVK
My "SensorList" App. shows no sensor information as follows.
-----------------------------------------------------------------------------------------------------
Number of Sensors: 0
-----------------------------------------------------------------------------------------------------
But sensors.cpp in
$(MY_ANDROID)/vendor/nxp-opensource/imx/libsensors_sensorhub directory
has following sensor information.
static const struct sensor_t sSensorList[] = {
{
.name = "Freescale Sensor Hub Accelerometer",
.vendor = "Freescale Semiconductor Inc.",
.version= 1,
.handle = SENSORS_ACCELERATION_HANDLE,
.type = SENSOR_TYPE_ACCELEROMETER,
.maxRange = RANGE_A,
.resolution = CONVERT_A,
.power = 0.30f,
.minDelay = 2500,
.fifoReservedEventCount = 0,
.fifoMaxEventCount = 0,
.stringType = SENSOR_STRING_TYPE_ACCELEROMETER,
.requiredPermission = 0,
.maxDelay = 640000,
.flags = SENSOR_FLAG_CONTINUOUS_MODE,
.reserved = {}
},
...
...
...
How can I get the sensor list (in sensors.cpp) in MCIMX8M-EVK development environment?
MCIMX6Q-SDB board has real H/W sensors, but MCIMX8M-EVK board does not.
I think that the absence of real sensors has no effect on getting the sensor list.
Is it correct?
Pleas help me to fix this problem.
Thanks in advance.