1# Pan-Sensor<a name="EN-US_TOPIC_0000001078062432"></a> 2 3- [Introduction](#section11660541593) 4- [Directory Structure](#section161941989596) 5- [Usage](#section1312121216216) 6- [Repositories Involved](#section1371113476307) 7 8## Introduction<a name="section11660541593"></a> 9 10The pan-sensor service subsystem provides a lightweight sensor service framework, through which you can perform the following operations: 11 12- Query the sensor list. 13- Enable or disable a sensor. 14- Subscribe to or unsubscribe from sensor data. 15- Set the data reporting mode of a sensor. 16 17The following figure shows the architecture of the pan-sensor service framework. 18 19**Figure1** Pan-sensor service architecture 20 21 22 23## Directory Structure<a name="section161941989596"></a> 24 25``` 26/base/sensors 27├── sensor_lite # Sensor directory 28│ ├── frameworks # Framework code 29│ ├── interfaces # Native APIs 30│ └── services # Code of services 31└── miscdevice_lite # Misc device directory 32``` 33 34## Usage<a name="section1312121216216"></a> 35 36The following modules work cooperatively to implement pan-sensor capabilities: Sensor API, Sensor Framework, and Sensor Service. 37 38- 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. 39- 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. 40- Sensor Service: interacts with the HDF module to receive, parse, and distribute data, manages sensor services and sensor data reporting, and controls sensor permissions. 41 42## Repositories Involved<a name="section1371113476307"></a> 43 44**Pan-sensor subsystem** 45 46[sensors_sensor_lite](https://gitee.com/openharmony/sensors_sensor_lite/blob/master/README.md) 47 48[sensors_miscdevice_lite](https://gitee.com/openharmony/sensors_miscdevice_lite/blob/master/README.md) 49 50