Quectel SC66&SC600x&SC200R Series Sensor Configuration Guide V1.0

Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

SC66&SC600x&SC200R Series

Sensor Configuration Guide

Smart Module Series

Version: 1.0

Date: 2020-10-23

Status: Released

www.quectel.com
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

Our aim is to provide customers with timely and comprehensive service. For any assistance,
please contact our company headquarters:

Quectel Wireless Solutions Co., Ltd.


Building 5, Shanghai Business Park Phase III (Area B), No.1016 Tianlin Road, Minhang District, Shanghai
200233, China
Tel: +86 21 5108 6236
Email: [email protected]

Or our local office. For more information, please visit:


http://www.quectel.com/support/sales.htm.

For technical support, or to report documentation errors, please visit:


http://www.quectel.com/support/technical.htm
Or email to [email protected].

General Notes
Quectel offers the information as a service to its customers. The information provided is based upon
customers’ requirements. Quectel makes every effort to ensure the quality of the information it makes
available. Quectel does not make any warranty as to the information contained herein, and does not
accept any liability for any injury, loss or damage of any kind incurred by use of or reliance upon the
information. All information supplied herein is subject to change without prior notice.

Disclaimer
While Quectel has made efforts to ensure that the functions and features under development are free
from errors, it is possible that these functions and features could contain errors, inaccuracies and
omissions. Unless otherwise provided by valid agreement, Quectel makes no warranties of any kind,
implied or express, with respect to the use of features and functions under development. To the maximum
extent permitted by law, Quectel excludes all liability for any loss or damage suffered in connection with
the use of the functions and features under development, regardless of whether such loss or damage
may have been foreseeable.

Duty of Confidentiality
The Receiving Party shall keep confidential all documentation and information provided by Quectel,
except when the specific permission has been granted by Quectel. The Receiving Party shall not access
or use Quectel’s documentation and information for any purpose except as expressly provided herein.
Furthermore, the Receiving Party shall not disclose any of the Quectel's documentation and information
to any third party without the prior written consent by Quectel. For any noncompliance to the above
requirements, unauthorized use, or other illegal or malicious use of the documentation and information,
Quectel will reserve the right to take legal action.

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 1 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

Copyright
The information contained here is proprietary technical information of Quectel wireless solutions co., ltd.
Transmitting, reproducing, disseminating and editing this document as well as using the content without
permission are forbidden. Offenders will be held liable for payment of damages. All rights are reserved in
the event of a patent grant or registration of a utility model or design.

Copyright © Quectel Wireless Solutions Co., Ltd. 2020. All rights reserved.

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 2 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

About the Document

Revision History

Version Date Author Description

- 2020-06-02 Bernard QIAN Creation of the document

1.0 2020-10-23 Bernard QIAN First official release

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 3 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

Contents

About the Document .................................................................................................................................. 3


Contents ...................................................................................................................................................... 4
Table Index .................................................................................................................................................. 5
Figure Index ................................................................................................................................................ 6

1 Introduction ......................................................................................................................................... 7
1.1. Applicable Modules .................................................................................................................... 7

2 Sensor Overview ................................................................................................................................. 8


2.1. Sensor Driver ............................................................................................................................. 8
2.2. Sensors Supported by Default and Their UUIDs ....................................................................... 8

3 Sensor Configuration ....................................................................................................................... 13


3.1. Get Sensor Configuration File ................................................................................................. 13
3.2. Configure the Sensor ............................................................................................................... 14
3.2.1. Find the Configuration Location .................................................................................... 14
3.2.2. Modify the Sensor Configuration .................................................................................. 15
3.3. Bring Sensor Configuration into Effect..................................................................................... 16
3.3.1. Compile the Firmware ................................................................................................... 16
3.3.2. Execute ADB Command ............................................................................................... 17
3.4. Check Whether the Sensor Runs Successfully ....................................................................... 18

4 Appendix A References.................................................................................................................... 19

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 4 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

Table Index

Table 1: Applicable Modules......................................................................................................................... 7


Table 2: Acceleration Sensors Supported by Default and Their UUIDs ...................................................... 8
Table 3: Gyroscope Sensors Supported by Default and Their UUIDs......................................................... 9
Table 4: Acceleration & Gyroscope Sensors Supported by Default and Their UUIDs ................................ 9
Table 5: Geomagnetic Sensors Supported by Default and Their UUIDs................................................... 10
Table 6: Pressure Sensors Supported by Default and Their UUIDs...........................................................11
Table 7: Temperature Sensors Supported by Default and Their UUIDs .....................................................11
Table 8: Light Sensors Supported by Default and Their UUIDs .................................................................11
Table 9: Proximity Sensor Supported by Default and Its UUIDs................................................................ 12
Table 10: Light & Proximity Sensors Supported by Default and Their UUIDs ........................................... 12
Table 11: Terms and Abbreviations ............................................................................................................ 19

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 5 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

Figure Index

Figure 1: Sensor Configuration File Path ................................................................................................... 13


Figure 2: Configuration Location for SC66 Series ..................................................................................... 14
Figure 3: Configuration Location for SC600Y/SC600T Series .................................................................. 14
Figure 4: Configuration Location for SC200R Series ................................................................................ 15
Figure 5: Modify UUIDs and I2C Address .................................................................................................. 15
Figure 6: Check Whether the Sensor Runs Successfully .......................................................................... 18

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 6 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

1 Introduction
This document mainly introduces the default sensors supported in the code of Quectel SC66, SC600Y,
SC600T, SC200R series and their UUIDs, as well as how to configure and enable a sensor on the Android
system of these modules.

1.1. Applicable Modules

This document is applicable to the following modules:

Table 1: Applicable Modules

Module Series Module

SC66 Series

SC600Y Series
Smart Module Series
SC600T Series

SC200R Series

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 7 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

2 Sensor Overview

2.1. Sensor Driver

For Quectel SC66, SC600Y, SC600T, SC200R series, the sensor driver is located in ADSP instead of the
kernel. ADSP is short for Audio Digital Signal Processor, an audio processor integrated with sensors. The
SSC architecture in ADSP contains SSI to process sensors. The source code of ADSP is not released to
users, so you cannot see the sensor driver. But the default sensors have already been compiled into the
released firmware version, so you only need to enable the sensor by modifying the sensor configuration
file. For details, see Chapter 3.

2.2. Sensors Supported by Default and Their UUIDs

Generally, there are some common types of sensors, such as acceleration sensor, gyroscope sensor,
geomagnetic sensor, pressure sensor, temperature sensor, light sensor, proximity sensor, etc. Additionally,
some sensors combines two functions in one chip, such as acceleration & gyroscope sensors, light &
proximity sensor.

The tables below show the different types of sensors supported by default in the code and their UUIDs.

Table 2: Acceleration Sensors Supported by Default and Their UUIDs

Sensor Description UUID

Acceleration sensor only 0x5d, 0x96, 0x26, 0x3f, 0x36, 0x44, 0x46, 0xaf,
BMA2X2
(Recommended) 0x96, 0x7c, 0x05, 0xd4, 0xee, 0xfa, 0x0f, 0xc1
Acceleration sensor only 0x56, 0x64, 0x47, 0xf4, 0x97, 0x0e, 0x11, 0xe9,
QMAX981
(Recommended) 0xbc, 0x42, 0x52, 0x6a, 0xf7, 0x76, 0x4f, 0x64
Acceleration sensor only 0x20, 0x45, 0x83, 0xd2, 0x26, 0xa4, 0x41, 0xc4,
BMA150
(Recommended) 0xa2, 0x54, 0x15, 0xbc, 0xe1, 0x29, 0x36, 0x31
Acceleration sensor only 0xf3, 0x7a, 0x60, 0xdf, 0x0c, 0x82, 0x4a, 0xc7,
BMA250
(Recommended) 0xba, 0xd7, 0x98, 0x94, 0x5e, 0x58, 0x21, 0x8a
Acceleration sensor only 0x14, 0xb6, 0xfa, 0xeb, 0xe0, 0x28, 0x4b, 0x3a,
LIS3DH
(Recommended) 0xbf, 0xff, 0x7d, 0x04, 0xf5, 0x75, 0xac, 0x14

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 8 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

Acceleration sensor only 0xfb, 0x81, 0xab, 0x89, 0x0d, 0x10, 0x42, 0xc4,
LIS3DSH
(Recommended) 0xb9, 0x06, 0x33, 0xa5, 0x46, 0x9c, 0xa6, 0xac
0xa4, 0x1b, 0xea, 0x31, 0x32, 0x90, 0x36, 0x2e,
MMA8452 Acceleration sensor only
0x93, 0x3f, 0x0e, 0xb1, 0x0c, 0xd4, 0x9a, 0x96
0x62, 0x9d, 0x45, 0xef, 0x8a, 0xbb, 0x47, 0x4a,
KXTIK Acceleration sensor only
0x8d, 0xbc, 0x2d, 0x30, 0x9a, 0xf3, 0xd1, 0x23
0x50, 0xa7, 0xb4, 0xbd, 0x8e, 0x57, 0x43, 0x2a,
KXCJK Acceleration sensor only
0x85, 0x7f, 0x3f, 0xf8, 0x8b, 0x88, 0x26, 0x68
0x1f, 0xc7, 0xe4, 0x1b, 0xfe, 0x89, 0x47, 0x2e,
ADXL350 Acceleration sensor only
0xad, 0x7c, 0x52, 0x28, 0x20, 0x7b, 0xf2, 0xae

Table 3: Gyroscope Sensors Supported by Default and Their UUIDs

Sensor Description UUID

Gyroscope sensor only 0x45, 0x03, 0xe9, 0x5b, 0x57, 0xc5, 0x47, 0xc3,
BMG160
(Recommended) 0x8d, 0x49, 0x90, 0xe9, 0xbe, 0xf9, 0xb3, 0xc0
0xf3, 0x6c, 0x06, 0xdc, 0x63, 0xea, 0x40, 0x75,
L3G4200D Gyroscope sensor only
0xa2, 0xc7, 0xb9, 0xcf, 0x71, 0x88, 0xb8, 0xfb
0x7d, 0x8c, 0x17, 0xc2, 0xcd, 0x1b, 0x4f, 0xfd,
L3GD20 Gyroscope sensor only
0xb6, 0x9d, 0x56, 0xc3, 0xdf, 0x14, 0x4a, 0x1f

Table 4: Acceleration & Gyroscope Sensors Supported by Default and Their UUIDs

Sensor Description UUID

Acceleration & Gyroscope sensor 0x61, 0xc6, 0x95, 0x37, 0x96, 0x75, 0x40, 0xc1,
ICM206XX
(Recommended) 0xbc, 0x46, 0xfd, 0x1b, 0x43, 0xb8, 0x25, 0x0b
Acceleration & Gyroscope sensor 0x60, 0x2d, 0x46, 0x7b, 0x75, 0x75, 0x45, 0xcc,
MPU6050
(Recommended) 0xad, 0x20, 0x48, 0x52, 0x42, 0xae, 0x79, 0x8d
Acceleration & Gyroscope sensor 0xa5, 0xd5, 0x0c, 0xec, 0x83, 0xcb, 0x46, 0xd6,
BMI160
(Recommended) 0xb5, 0xea, 0xc7, 0x54, 0xd6, 0x0f, 0x4d, 0x0f
Acceleration & Gyroscope sensor 0xc1, 0xb8, 0x36, 0xa8, 0xdc, 0xed, 0x41, 0x1a,
LSM6DS3
(Recommended) 0x9b, 0x1e, 0xe6, 0x9e, 0x5c, 0x27, 0x17, 0xfc
Acceleration & Gyroscope sensor 0xaa, 0x32, 0xfe, 0x2e, 0x36, 0xcd, 0x44, 0xde,
MPU6500
(Recommended) 0xa0, 0x2f, 0x55, 0xac, 0x9c, 0xf4, 0xd1, 0x9c
0x72, 0xb0, 0x06, 0xa8, 0x90, 0x39, 0x47, 0x5c,
MMC3530 Acceleration & Gyroscope sensor
0xbd, 0x0a, 0x1c, 0x7f, 0xc1, 0x1e, 0xc3, 0x7f
0xa3, 0x87, 0x37, 0xc5, 0x50, 0x03, 0x43, 0xe9,
MPU6515 Acceleration & Gyroscope sensor
0x84, 0x9c, 0x6c, 0xfb, 0xc1, 0xaa, 0x37, 0xe4
0xdf, 0xb3, 0xf3, 0xe8, 0xca, 0x95, 0x44, 0xe7,
MMC35XX Acceleration & Gyroscope sensor
0x8e, 0x53, 0xb6, 0x3b, 0xb5, 0x07, 0x87, 0x01

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 9 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

Table 5: Geomagnetic Sensors Supported by Default and Their UUIDs

Sensor Description UUID

Geomagnetic sensor only 0x34, 0x38, 0x7b, 0x68, 0x55, 0x7b, 0x4c, 0x4f,
MC3410
(Recommended) 0xb5, 0xa4, 0xa6, 0x6e, 0x4c, 0x7f, 0x12, 0x7a
Geomagnetic sensor only 0xbc, 0xfd, 0xbf, 0x4d, 0xa5, 0x5d, 0x42, 0x8c,
BMM050
(Recommended) 0xa6, 0x0a, 0x97, 0xbf, 0x6b, 0xc0, 0x1b, 0x29
Geomagnetic sensor only 0x30, 0x05, 0x2e, 0x6b, 0xed, 0xc4, 0x4c, 0xf9,
YAS537
(Recommended) 0xa6, 0x61, 0xec, 0x36, 0xee, 0x48, 0x2b, 0x7d
0xc8, 0xf5, 0x0a, 0x9e, 0x9f, 0x44, 0x47, 0x88,
AKM8973 Geomagnetic sensor only
0x80, 0x83, 0x7a, 0x73, 0xbc, 0x47, 0xb2, 0xf8
0xd4, 0xb2, 0x19, 0x99, 0xdd, 0x43, 0x4e, 0x9e,
AKM8963 Geomagnetic sensor only
0xb6, 0xd8, 0x9e, 0x68, 0x01, 0x5a, 0x5c, 0x35
0x53, 0xad, 0xb1, 0x5f, 0x44, 0xbf, 0x43, 0x5e,
AKM8975 Geomagnetic sensor only
0x86, 0xbf, 0xd0, 0x05, 0xa9, 0x76, 0x78, 0x3c
{0xf4, 0x57, 0x90, 0x35, 0xf0, 0x45, 0x4f, 0x57,
AKM09912 Geomagnetic sensor only
0x8d, 0xfc, 0x8f, 0x47, 0x49, 0xf9, 0x14, 0x92
0xb2, 0x07, 0x3e, 0xa7, 0xd2, 0x8a, 0x47, 0xe1,
M34160PJ Geomagnetic sensor only
0x82, 0x21, 0xfd, 0x00, 0x2a, 0x21, 0x02, 0xbe
0x18, 0x72, 0x32, 0x7c, 0x8e, 0x9d, 0x4b, 0x22,
LIS2HH Geomagnetic sensor only
0xb8, 0xb6, 0xd0, 0x4a, 0x27, 0xc5, 0x32, 0x8b
0x2f, 0x13, 0xcb, 0xb8, 0xdd, 0x35, 0x4b, 0x59,
LIS2MDL Geomagnetic sensor only
0xbe, 0xd5, 0x50, 0xd3, 0xa8, 0xbe, 0x65, 0xca
0xCB, 0x8D, 0xB3, 0x85, 0xB9, 0x2B, 0xA4,
AKM09911 Geomagnetic sensor only 0xA7, 0x67, 0xE7, 0x81, 0x21, 0x6A, 0x1B,
0xD0, 0xF0
0x1e, 0xc8, 0x2e, 0xd2, 0x94, 0x24, 0x41, 0x7e,
BU52061NVX Geomagnetic sensor only
0x84, 0xbd, 0xc7, 0xd3, 0x55, 0xcb, 0xa5, 0x5d
0x35, 0x36, 0xb1, 0xc2, 0x4a, 0x92, 0x4f, 0x38,
LIS3MDL Geomagnetic sensor only
0xa7, 0x71, 0x83, 0x39, 0xde, 0x02, 0x91, 0xda
0xf6, 0xae, 0x80, 0xfe, 0x94, 0x2b, 0x4d, 0x56,
AKM099xx_FIFO Geomagnetic sensor only
0x8f, 0x16, 0x61, 0xd5, 0x98, 0x1b, 0x61, 0x90

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 10 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

Table 6: Pressure Sensors Supported by Default and Their UUIDs

Sensor Description UUID

Pressure sensor 0x72, 0xb0, 0x06, 0xa8, 0x90, 0x39, 0x47, 0x5c,
BMP280
(Recommended) 0xbd, 0x0a, 0x1c, 0x7f, 0xc1, 0x1e, 0xc3, 0x32
Pressure sensor 0x4b, 0x5d, 0xbb, 0x5c, 0xe7, 0xb8, 0x45, 0x74,
LPS22HH
(Recommended) 0x83, 0x85, 0x14, 0xb5, 0x5e, 0x3f, 0xf6, 0xf6
0x96, 0x4f, 0x5e, 0xc5, 0x45, 0x4d, 0x49, 0xf2, 0x84,
BMP085 Pressure sensor
0xa7, 0x38, 0x2c, 0x0f, 0x93, 0x24, 0x86
0x5c, 0x19, 0x4e, 0xe4, 0xbc, 0x90, 0x44, 0xf8, 0xbf,
LPS25H Pressure sensor
0x94, 0x42, 0x16, 0x44, 0xe6, 0xe4, 0x04
0xf3, 0x8f, 0x85, 0x32, 0xbd, 0xaa, 0x49, 0x87, 0x9f,
ZPA2326 Pressure sensor
0xfb, 0xcd, 0x33, 0x4f, 0xbe, 0x67, 0x52
0x08, 0x1b, 0xf0, 0x3e, 0x75, 0x0f, 0x46, 0xa5, 0x86,
LPS331AP Pressure sensor
0xf9, 0x2c, 0xcb, 0x34, 0x1d, 0xf0, 0x0a

Table 7: Temperature Sensors Supported by Default and Their UUIDs

Sensor Description UUID

0xa8, 0x6f, 0xf7, 0xee, 0xd6, 0xe9, 0x45, 0x5b, 0xa7,


HTS221 Temperature sensor
0x35, 0x9a, 0x6a, 0x65, 0x80, 0x0f, 0x59
0xbe, 0xfb, 0x7c, 0xc6, 0xaf, 0x0c, 0x41, 0x40, 0x95,
SHTC1 Temperature sensor
0xa7, 0x6d, 0x71, 0x78, 0x14, 0x63, 0xcc

Table 8: Light Sensors Supported by Default and Their UUIDs

Sensor Description UUID

0x63, 0xcb, 0x8e, 0x53, 0xa1, 0x9b, 0x41, 0x03,


BH1721 Light sensor only
0x9e, 0x4a, 0x76, 0x83, 0x07, 0x4f, 0x9f, 0xb1
0x32, 0xfb, 0x90, 0xdb, 0xc7, 0x0b, 0x40, 0xf1, 0xa2,
TMG399X Light sensor only
0xf1, 0xcd, 0xd4, 0xe1, 0x9d, 0xb6, 0x8a
0x56, 0x39, 0xb1, 0x9e, 0x90, 0xed, 0x4b, 0x45,
ISL29033 Light sensor only
0x88, 0x77, 0x8b, 0x29, 0xe9, 0x5f, 0xae, 0xaa
0x24, 0xda, 0x64, 0x8d, 0x54, 0x49, 0x47, 0x53,
AL3320B Light sensor only
0xbc, 0x8a, 0x3e, 0x2c, 0xc9, 0xf4, 0xe4, 0xb0

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 11 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

Table 9: Proximity Sensor Supported by Default and Its UUIDs

Sensor Description UUID

0x9b, 0xaf, 0xa1, 0xdf, 0x3f, 0x15, 0x41, 0x72, 0x9d,


SX9310 Proximity sensor only
0xab, 0x06, 0x78, 0xf3, 0x23, 0xe8, 0x1d

Table 10: Light & Proximity Sensors Supported by Default and Their UUIDs

Sensor Description UUID

Light & Proximity sensor 0x51, 0xe3, 0x02, 0x67, 0x72, 0x4f, 0x52, 0xa4, 0x86,
STK3X1X
(Recommended) 0x65, 0x5e, 0xa5, 0x1a, 0xa2, 0x11, 0x8b
Light & Proximity sensor 0x6d, 0xf3, 0x19, 0x90, 0x54, 0x7a, 0x4a, 0x19, 0xb3,
LTR55X
(Recommended) 0xa8, 0x9a, 0x7b, 0x64, 0x31, 0x15, 0x2f
Light & Proximity sensor 0xf8, 0x39, 0x74, 0x7a, 0x04, 0x7c, 0x49, 0x6f, 0xb6,
APDS9960
(Recommended) 0x79, 0x96, 0xe1, 0xcf, 0x87, 0x02, 0x0f
Light & Proximity sensor 0xe6, 0x79, 0xa8, 0xd8, 0xc3, 0xfb, 0x4b, 0x4c, 0xaf,
APDS99XX
(Recommended) 0xfa, 0x31, 0x4d, 0x9d, 0x06, 0xe6, 0x0c
0x39, 0xd9, 0xe0, 0x38, 0xc6, 0x43, 0x4c, 0xdb,
APDS9950 Light & Proximity sensor
0xa8, 0x85, 0x1d, 0x2c, 0xcb, 0x16, 0x36, 0x94
0xaa, 0x50, 0x3b, 0xd7, 0xc0, 0xda, 0x4f, 0xd2, 0xad,
TMG490x Light & Proximity sensor
0xd5, 0xf2, 0x79, 0x7c, 0x58, 0x83, 0x3a
0x61, 0x37, 0x9f, 0x22, 0x5b, 0x29, 0x46, 0x60, 0x8a,
RPR0521RS Light & Proximity sensor
0x5f, 0x3f, 0x01, 0x8e, 0xe1, 0x48, 0xb1
0x03, 0x91, 0x80, 0xe2, 0x13, 0x24, 0x44, 0xc4, 0xbf,
AP3216C Light & Proximity sensor
0xa8, 0xc9, 0xa5, 0x65, 0xc2, 0xe4, 0x1d
0xBF, 0xF5, 0xE7, 0x4A, 0xFD, 0xF7, 0x77, 0xCC,
ISL29044A Light & Proximity sensor
0xE1, 0x96, 0xAA, 0xC5, 0xCF, 0x2B, 0x82, 0xB0
0xca, 0xcc, 0xc8, 0xa5, 0x0b, 0xe9, 0x4a, 0x99,
ISL29028 Light & Proximity sensor
0x9a, 0xfc, 0x4c, 0x27, 0x4b, 0xaa, 0x37, 0xec
0xa9, 0xa0, 0xb0, 0x5f, 0xe1, 0xa3, 0x45, 0x26, 0x94,
ISL29147 Light & Proximity sensor
0xb5, 0x7f, 0xfd, 0xcd, 0xfc, 0x7b, 0xd6
0xf7, 0x69, 0xe5, 0xe9, 0x04, 0xf9, 0x44, 0xcc, 0x8a,
TMD277X Light & Proximity sensor
0x21, 0xc0, 0xa1, 0x6e, 0x1a, 0xb1, 0x9a
0xdc, 0x5d, 0xae, 0xcd, 0xb0, 0x6f, 0xd6, 0xe4, 0x78,
CM36283 Light & Proximity sensor
0xfb, 0x3a, 0x7e, 0xae, 0xb8, 0x96, 0x7f

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 12 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

3 Sensor Configuration
This chapter mainly introduces how to enable a sensor on Quectel SC66, SC600Y, SC600T, SC200R
series by modifying the sensor configuration file sensor_def_qcomdev.conf. Before configuration, check
whether your sensor is among the default sensors specified in Chapter 2.2. If not, contact Quectel
Technical Support.

3.1. Get Sensor Configuration File

You can get the sensor configuration file sensor_def_qcomdev.conf with the following two approaches:

 Get the file directly from the following code path vendor\qcom\proprietary\sensors\dsps\reg_defaults.

Figure 1: Sensor Configuration File Path

 Pull the file with the following ADB command from the current device:

adb pull /vendor/etc/sensors/sensor_def_qcomdev.conf C:\Users\Desktop

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 13 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

3.2. Configure the Sensor

3.2.1. Find the Configuration Location

For SC66 series, the content to be modified is under “sdm660 Chipsets” in the configuration file.

Figure 2: Configuration Location for SC66 Series

For SC600Y, SC600T series, the content to be modified is under “8953 Chipsets” in the configuration file.

Figure 3: Configuration Location for SC600Y/SC600T Series

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 14 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

For SC200R series modules, the content to be modified is under “MSM8940, MSM8937 and MSM8917
Chipsets” in the configuration file.

Figure 4: Configuration Location for SC200R Series

3.2.2. Modify the Sensor Configuration

To enable the sensor, modify the UUIDs and I2C address at the corresponding location.

Figure 5: Modify UUIDs and I2C Address

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 15 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

 Modify UUIDs

Take the acceleration & gyroscope sensor ICM20608 as an example:

#define SNS_REG_UUID_ICM206XX \ //Acceleration & Gyroscope (recommended)


{0x61,0xc6,0x95,0x37,0x96,0x75,0x40,0xc1,0xbc,0x46,0xfd,0x1b,0x43,0xb8,0x25,0x0b}

Write the above-mentioned UUIDs “0x61,0xc6,0x95…0x0b” into the configuration file. Please note that
these UUIDs should be written reversely as shown below:

 Modify I2C address

Modify the I2C address by referring to the corresponding chip datasheet.

3.3. Bring Sensor Configuration into Effect

After modifying the configuration file, you can bring it into effect with the following two approaches:

 Compile the firmware and download it into the module.


 Execute ADB command.

NOTE

Bringing sensor configuration into effect through ADB command is only for debugging.

3.3.1. Compile the Firmware

Step 1: If the sensor configuration file is modified directly from the code path, just save the modified file.
If the sensor configuration is modified with the file pulled to your computer with ADB command,
replace the configuration file under the path vendor\qcom\proprietary\sensors\dsps\reg_defaults
with the modified file.
Step 2: Delete /out directory.
Step 3: Compile the firmware. After successful compilation, system.image and vendor.image 1) will be
generated under /out directory.
Step 4: Use fastboot to download the system.image and vendor.image 1) into the module to bring the
configuration into effect.

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 16 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

NOTE

1)
vendor.image is only applicable to Android 9 or higher version.

3.3.2. Execute ADB Command

Push the configuration file with the corresponding ADB commands as shown below:

 For Android 7, run the following commands:

adb root
adb remount
adb shell rm /persist/sensors/sns.reg
adb push sensor_def_qcomdev.conf /etc/sensors/
adb shell chmod 644 /etc/sensors/sensor_def_qcomdev.conf
adb reboot

 For Android 8, run the following commands:

adb root
adb remount
adb shell rm /persist/sensors/sns.reg
adb push sensor_def_qcomdev.conf /vendor/etc/sensors/
adb shell chmod 644 /etc/sensors/sensor_def_qcomdev.conf
adb reboot

 For Android 9, run the following commands:

adb root
adb remount
adb disable-verity
adb reboot
adb root
adb remount
adb shell rm mnt/vendor/persist/sensors/sns.reg
adb push sensor_def_qcomdev.conf /vendor/etc/sensors/
adb shell chmod 644 /etc/sensors/sensor_def_qcomdev.conf
adb reboot

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 17 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

3.4. Check Whether the Sensor Runs Successfully

After finishing all steps above, open the APK QSensorTest to check whether the sensor runs successfully.
As shown below, if there is data displayed in [0]/[1]/[2] items, it means that the sensor takes effect.

Figure 6: Check Whether the Sensor Runs Successfully

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 18 / 19
Smart Module Series
SC66&SC600x&SC200R Series Sensor Configuration Guide

4 Appendix A References

Table 11: Terms and Abbreviations

Abbreviation Description

ADB Android Debug Bridge

ADSP Audio Digital Signal Processor

APK Android Application Package

I2C Inter-Integrated Circuit

UUID Universally Unique Identifier

SSC Snapdragon Sensor Core

SSI Simple Sensor Interface

SC66&SC600x&SC200R_Series_Sensor_Configuration_Guide 19 / 19

You might also like