1e41f4b71Sopenharmony_ci# Pan-Sensor 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## Introduction 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ciThe pan-sensor service subsystem provides a lightweight sensor service framework, through which you can perform the following operations: 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ci- Query the sensor list. 8e41f4b71Sopenharmony_ci- Enable or disable a sensor. 9e41f4b71Sopenharmony_ci- Subscribe to or unsubscribe from sensor data. 10e41f4b71Sopenharmony_ci- Set the data reporting mode of a sensor. 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ciThe following figure shows the architecture of the pan-sensor service framework. 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci 16e41f4b71Sopenharmony_ci## Directory Structure 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ci``` 19e41f4b71Sopenharmony_ci/base/sensors 20e41f4b71Sopenharmony_ci├── sensor_lite # Sensor directory 21e41f4b71Sopenharmony_ci│ ├── frameworks # Framework code 22e41f4b71Sopenharmony_ci│ ├── interfaces # Native APIs 23e41f4b71Sopenharmony_ci│ └── services # Code of services 24e41f4b71Sopenharmony_ci└── miscdevice_lite # Misc device directory 25e41f4b71Sopenharmony_ci``` 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci## Usage 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ciThe following modules work cooperatively to implement pan-sensor capabilities: Sensor API, Sensor Framework, and Sensor Service. 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci- Sensor API: provides APIs for performing basic operations on sensors, including querying the sensor list, enabling or disabling sensors, and subscribing to or unsubscribing from sensor data. 32e41f4b71Sopenharmony_ci- Sensor Framework: manages sensor data subscription, creates and destroys data channels, subscribes to or unsubscribes from sensor data, and implements communication with the Sensor Service module. 33e41f4b71Sopenharmony_ci- Sensor Service: interacts with the HDF module to receive, parse, and distribute data, manages sensor services and sensor data reporting, and controls sensor permissions. 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci## Repositories Involved 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ci**Pan-sensor subsystem** 38e41f4b71Sopenharmony_ci 39e41f4b71Sopenharmony_ci[sensors_sensor_lite](https://gitee.com/openharmony/sensors_sensor_lite/blob/master/README.md) 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ci[sensors_miscdevice_lite](https://gitee.com/openharmony/sensors_miscdevice_lite/blob/master/README.md) 42e41f4b71Sopenharmony_ci 43