mirror of
https://gitee.com/openharmony/sensors_start
synced 2025-02-17 05:47:44 +00:00
Signed-off-by:hellohyh001<huiyuehong@huawei.com>
Signed-off-by: h00514358 <huiyuehong@huawei.com>
This commit is contained in:
parent
59026380e1
commit
9b00154cc0
@ -20,8 +20,8 @@ The sample code for importing the start module is as follows:
|
||||
```
|
||||
|
||||
## Usage<a name="section1581412211528"></a>
|
||||
The repository places the startup file of the hsensors process to start sensor and small device services such as vibrator. Sensor and small device services such as vibrator share the hsensors process.</br>
|
||||
Service code for sensor and small device services such as vibrator is [sensors\_sensor](https://gitee.com/openharmony/sensors_sensor) and [sensors\_miscdevice](https://gitee.com/openharmony/sensors_miscdevice) part compartments, respectively, and can be compiled independently and may exist at the same time. In order to ensure that the hsensors process starts and only starts once, the startup file of the hsensors process is placed in the sensors_start repository at that time.</br>
|
||||
The repository places the startup file of the hsensors process to start sensor and small device services such as vibrator. Sensor and small device services such as vibrator share the hsensors process.<br>
|
||||
Service code for sensor and small device services such as vibrator is [sensors\_sensor](https://gitee.com/openharmony/sensors_sensor) and [sensors\_miscdevice](https://gitee.com/openharmony/sensors_miscdevice) part compartments, respectively, and can be compiled independently and may exist at the same time. In order to ensure that the hsensors process starts and only starts once, the startup file of the hsensors process is placed in the sensors_start repository at that time.<br>
|
||||
Service startup profiles for sensor and small device services such as vibrator are in the sa_profile directory of [sensors\_sensor](https://gitee.com/openharmony/sensors_sensor) and [sensors\_miscdevice](https://gitee.com/openharmony/sensors_miscdevice) part, respectively.The resulting system/profile/hsensors.xml file is compiled, as follows.Of these, 3601 and 3602 serve the sensor and vibrator.If only the [sensors\_sensor](https://gitee.com/openharmony/sensors_sensor) code is compiled, the hsensors.xml file contains only the configuration items for the 3601 service
|
||||
```
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
@ -19,9 +19,9 @@ sensor导入模块的示例代码如下:
|
||||
```
|
||||
|
||||
## 使用<a name="section1581412211528"></a>
|
||||
该仓放置了hsensors进程的启动文件,用来启动sensor和马达等小器件服务。sensor和马达等小器件服务共享hsensors进程。</br>
|
||||
sensor和马达等小器件的服务代码分别在[sensors\_sensor](https://gitee.com/openharmony/sensors_sensor)和[sensors\_miscdevice](https://gitee.com/openharmony/sensors_miscdevice)部件仓,可独立编译,且可能同时存在。为了保证hsensors进程启动且仅启动一次,因此将hsensors进程的的启动文件当时放置在sensors_start仓中。</br>
|
||||
sensor和马达等小器件的服务启动配置文件分别在[sensors\_sensor](https://gitee.com/openharmony/sensors_sensor)和[sensors\_miscdevice](https://gitee.com/openharmony/sensors_miscdevice)部件仓的sa_profile目录下,会编译生成system/profile/hsensors.xml文件,内容如下。其中3601和3602分别为sensor和马达服务。若仅编译[sensors\_sensor](https://gitee.com/openharmony/sensors_sensor)仓代码,hsensors.xml文件中则仅包含3601服务的配置项。</br>
|
||||
该仓放置了hsensors进程的启动文件,用来启动sensor和马达等小器件服务。sensor和马达等小器件服务共享hsensors进程。<br>
|
||||
sensor和马达等小器件的服务代码分别在[sensors\_sensor](https://gitee.com/openharmony/sensors_sensor)和[sensors\_miscdevice](https://gitee.com/openharmony/sensors_miscdevice)部件仓,可独立编译,且可能同时存在。为了保证hsensors进程启动且仅启动一次,因此将hsensors进程的的启动文件当时放置在sensors_start仓中。<br>
|
||||
sensor和马达等小器件的服务启动配置文件分别在[sensors\_sensor](https://gitee.com/openharmony/sensors_sensor)和[sensors\_miscdevice](https://gitee.com/openharmony/sensors_miscdevice)部件仓的sa_profile目录下,会编译生成system/profile/hsensors.xml文件,内容如下。其中3601和3602分别为sensor和马达服务。若仅编译[sensors\_sensor](https://gitee.com/openharmony/sensors_sensor)仓代码,hsensors.xml文件中则仅包含3601服务的配置项。<br>
|
||||
```
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<info>
|
||||
|
Loading…
x
Reference in New Issue
Block a user