CN106502681A - A kind of register method of sensor, device and mobile terminal - Google Patents

A kind of register method of sensor, device and mobile terminal Download PDF

Info

Publication number
CN106502681A
CN106502681A CN201610930625.7A CN201610930625A CN106502681A CN 106502681 A CN106502681 A CN 106502681A CN 201610930625 A CN201610930625 A CN 201610930625A CN 106502681 A CN106502681 A CN 106502681A
Authority
CN
China
Prior art keywords
sensor
sensor type
type
layer
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610930625.7A
Other languages
Chinese (zh)
Other versions
CN106502681B (en
Inventor
田小华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610930625.7A priority Critical patent/CN106502681B/en
Publication of CN106502681A publication Critical patent/CN106502681A/en
Application granted granted Critical
Publication of CN106502681B publication Critical patent/CN106502681B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The present invention provides a kind of register method of sensor, device and mobile terminal.The register method includes:The sensor list of hardware abstraction layer is obtained, wherein, the sensor list includes the information of multiple sensor types;Access and drive layer, and judge that wherein, the device file is the file that the sensor type for driving layer according to corresponding to the sensor of successful initialization is generated with the presence or absence of the device file corresponding with the sensor type in the driving layer;If there is the device file corresponding with the sensor type in the driving layer, the sensor type is registered.The register method can be registered to sensor type according to terminal inner sensor hardware actual conditions, and the sensor type without hardware supported or sensor hardware corrupted is not registered, so as to avoiding during using sensor because of by mistake Register Sensor type caused deadlock blank screen, dodge and the phenomenon such as move back and occur.

Description

A kind of register method of sensor, device and mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of register method of sensor, device and movement Terminal.
Background technology
At present in terminal would generally integrated one or more sensor, provide the user more colourful service.When During starting up of terminal, the ccf layer of terminal system can be registered to various kinds of sensors according to the sensor list of hardware abstraction layer. However, when certain sensor corrupted of terminal, or when there is no this sensor, the ccf layer in terminal system is still This sensor can be registered according to the sensor list of hardware abstraction layer.When user is by this biography of application call During sensor, drive layer to will be unable to be successfully driven respective sensor, cause deadlock blank screen, application program to dodge the generation for the phenomenon such as moving back, Have a strong impact on user experience.
Content of the invention
The present invention provides a kind of register method of sensor, device and mobile terminal;To solve in prior art because noting by mistake Volume sensor and the technical problem such as caused deadlock blank screen.
The present invention provides a kind of register method of sensor, and which includes:
The sensor list of hardware abstraction layer is obtained, wherein, the sensor list includes the letter of multiple sensor types Breath;
Access and drive layer, and judge described driving in layer with the presence or absence of the equipment text corresponding with the sensor type Part, wherein, the device file is the driving sensor type of the layer according to corresponding to the sensor of successful initialization The file of generation;
If there is the device file corresponding with the sensor type in the driving layer, to the sensor type Registered.
The present invention also provides a kind of register device of sensor, and which includes:
Acquiring unit, for obtaining the sensor list of hardware abstraction layer, wherein, the sensor list includes multiple biographies The information of sensor type;
Judging unit is accessed, layer is driven for accessing, and judge to whether there is and the sensor class in the driving layer The corresponding device file of type, wherein, the device file be described driving layer according to corresponding to the sensor of successful initialization The file that generates of the sensor type;
Registering unit, if for there is the device file corresponding with the sensor type in the driving layer, right The sensor type is registered.
The present invention again provides a kind of mobile terminal, the memory of its executable program code that includes being stored with and deposits with described The processor of reservoir coupling;The processor calls the executable program code stored in the memory, executes as follows Step:
The sensor list of hardware abstraction layer is obtained, wherein, the sensor list includes the letter of multiple sensor types Breath;
Access and drive layer, and judge described driving in layer with the presence or absence of the equipment text corresponding with the sensor type Part, wherein, the device file is the driving sensor type of the layer according to corresponding to the sensor of successful initialization The file of generation;
If there is the device file corresponding with the sensor type in the driving layer, to the sensor type Registered.
The present invention provides a kind of register method of sensor, device and mobile terminal, and which passes through to obtain hardware abstraction layer Sensor list, and driving layer is accessed, judge to drive with the presence or absence of the device file corresponding with sensor type in layer, if driving There is the device file corresponding with sensor type in dynamic layer, then sensor type is registered.The register method can be with Sensor type is registered according to terminal inner sensor hardware actual conditions, and to hard without hardware supported or sensor The sensor type of part corrupted is not registered, so as to avoid during using sensor because of mistake Register Sensor type Caused deadlock blank screen, dodge and the phenomenon such as move back and occur.
Description of the drawings
The flow chart of the register method of the sensor that Fig. 1 is provided for the preferred embodiment of the present invention.
The another flow chart of the register method of the sensor that Fig. 2 is provided for the preferred embodiment of the present invention.
The structural representation of the register device of the sensor that Fig. 3 is provided for the preferred embodiment of the present invention.
The another structural representation of the register device of the sensor that Fig. 4 is provided for the preferred embodiment of the present invention.
Fig. 5 is the structural representation of the mobile terminal of the present invention.
Specific embodiment
Accompanying drawing in below in conjunction with the embodiment of the present invention, to the embodiment of the present invention in technical scheme carry out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiment.It is based on Embodiment in the present invention, the every other enforcement obtained under the premise of creative work is not made by those skilled in the art Example, belongs to the scope of protection of the invention.
Fig. 1, the flow chart of the register method of the sensor that Fig. 1 is provided is refer to for the preferred embodiment of the present invention.The registration Method is can apply on the electronic equipments such as mobile phone, personal digital assistant (PDA), and here is not particularly limited.
The register method of the sensor in this preferred embodiment, which includes:
Step S101:The sensor list of hardware abstraction layer is obtained, wherein, the sensor list includes multiple sensors The information of type.
Terminal in start, will register to sensor by the operating system of terminal.During registration, ccf layer is needed Sensor list in hardware abstraction layer to be obtained, wherein, sensor list includes multiple sensor types, here multiple sensings Device type refers at least one sensor type.It should be noted that when starting up of terminal, driving layer can setting according to operating system Put interpolation sensor environment variable.Hardware abstraction layer reads sensor environment variable from driving layer, and according to sensor environment Variable generates corresponding sensor type, and in preserving to sensor list.
Step S102:Access and drive layer, and judge in the driving layer with the presence or absence of corresponding with the sensor type Device file, wherein, the device file be described driving the biography of the layer according to corresponding to the sensor of successful initialization The file that sensor type is generated;
Ccf layer drives layer by accessing after acquisition sensor list, judges to whether there is and sensor in driving layer The corresponding device file of type.Wherein, the step of device file is generated includes:Layer is driven to the biography corresponding to sensor type Sensor carries out initialization operation;Layer is driven to judge the sensor whether successful initialization;If the sensor successful initialization, root According to sensor type generation device file corresponding thereto, wherein, the device file is used for storing sensor type correlation Parameter information.If the unsuccessful initialization of the sensor, illustrate not exist in terminal the sensor or the sensor corrupted without Method is normally used, and now drives layer generate corresponding device file according to the sensor type.
For example, there was only acceleration transducer hardware device in terminal, and operating system is provided with acceleration transducer environment Variable and magnetic field sensor environmental variance, that is to say, that there will be acceleration transducer type in an operating system and magnetic field passes Sensor type.When starting up of terminal, drive layer be initialized according to acceleration transducer type and magnetic field sensor type respectively Acceleration transducer and magnetic field sensor.Assume that the acceleration transducer in terminal is normal condition, then drive layer receive To the signal of acceleration transducer successful initialization, drive layer to generate setting corresponding thereto according to acceleration transducer type Standby file;And it is unsuccessful initial due to without magnetic field sensor hardware device, driving layer receive magnetic field sensor in terminal The signal of change, the device file that now driving layer will not be according to the generation of magnetic field sensor type corresponding thereto, that is, drive layer In only exist the corresponding device file of acceleration transducer type, without there is magnetic field sensor type corresponding equipment text Part.
Ccf layer judges each sensor in sensor list by accessing driving layer after sensor list is got Type whether there is corresponding device file.For example, there is acceleration transducer type and magnetic field sensor in sensor list Type.Ccf layer is will determine that in driving layer with the presence or absence of corresponding with acceleration transducer type and magnetic field sensor type respectively Device file.
Step S103:If there is the device file corresponding with the sensor type in the driving layer, to described Sensor type is registered.
When ccf layer is judged to drive there is the device file corresponding with sensor type in layer, will be to the sensor Type is registered.For example, when the device file for driving in layer only acceleration transducer type corresponding, ccf layer will be sentenced Break and to exist the device file of acceleration transducer type in driving layer, and acceleration transducer type is registered.
When ccf layer is judged to drive there is no the device file corresponding with sensor type in layer, will not be to the biography Sensor type is registered.For example, when driving layer to there is no the corresponding device file of magnetic field sensor type, and sensor column When there is magnetic field sensor type in table, ccf layer drives layer by accessing, and judges there is no magnetic field sensing in driving layer The device file of device type, does not therefore register to magnetic field sensor type.
That is, ccf layer is after sensor list is read, will not be directly according to sensor list to all the sensors Type is registered, but is needed to access and driven layer, when judging to drive corresponding with the sensor type equipment of exist in layer During file, just the sensor type is registered, there is no corresponding with sensor type setting when judging to drive in layer During standby file, the sensor type is not registered.Whole process is equivalent to entering to the sensor type in sensor list Row screening, the sensor type that there is sensor hardware support is registered, and it is hard to there is no sensor in terminal in terminal Part is supported or the sensor type of sensor hardware corrupted is not registered, and is so effectively prevented from Register Sensor class by mistake Type.
After completion of the above process, there will be a sensor type registration table in ccf layer.Sensing in the registration table Device type has sensor hardware to support, and sensor can be with normal work.When application layer needs to call certain sensor type When, ccf layer needs to judge that application layer needs the sensor type for calling whether in sensor type registration table;If application layer The sensor type for calling is needed in sensor type registration table, then just normal execution is monitored sensor, obtains sensor The step such as data message so that application layer can use the sensor.If application layer needs the sensor type for calling not exist In sensor type registration table, then ccf layer will be feedbacked to one information of application layer, application layer its biography for calling is informed Without hardware supported or hardware corrupted etc., such application layer can point out user temporarily use the sensor to sensor type.
The register method of the sensor in this preferred embodiment, its pass through the sensor list for obtaining hardware abstraction layer, and Access drive layer, judge drive layer in whether there is the device file corresponding with sensor type, if drive layer in exist with The corresponding device file of sensor type, then register to sensor type.The register method can be passed according in terminal Sensor hardware actual conditions registering to sensor type, and to the sensing without hardware supported or sensor hardware corrupted Device type is not registered, and so as to avoid during using sensor, because of mistake Register Sensor type, caused deadlock is black Screen, dodge and the phenomenon such as move back and occur.
Fig. 2 is refer to, Fig. 2 is the another flow chart of the register method of sensor in the preferred embodiment of the present invention.The registration Method is can apply on the electronic equipments such as mobile phone, personal digital assistant (PDA), and here is not particularly limited.
The register method of the sensor in this preferred embodiment, which includes:
Step S201:The sensor list of hardware abstraction layer is obtained, wherein, the sensor list includes multiple sensors The information of type;
Terminal in start, will register to sensor by the operating system of terminal.During registration, ccf layer is needed Sensor list in hardware abstraction layer to be obtained, wherein, sensor list includes multiple sensor types, here multiple sensings Device type refers at least one sensor type.It should be noted that when starting up of terminal, driving layer can setting according to operating system Put interpolation sensor environment variable.Hardware abstraction layer reads sensor environment variable from driving layer, and according to the sensor ring Border variable generates corresponding sensor type, and in preserving to sensor list.
Step S202:Access and drive layer, and judge in the driving layer with the presence or absence of corresponding with the sensor type Device file, wherein, the device file be described driving the biography of the layer according to corresponding to the sensor of successful initialization The file that sensor type is generated;If there is the device file corresponding with the sensor type in the driving layer, execute Step S203;If there is no the device file corresponding with the sensor type, execution step S204;
Ccf layer drives layer by accessing after acquisition sensor list, judges to whether there is and sensor in driving layer The corresponding device file of type.Wherein, the step of device file is generated includes:Layer is driven to the biography corresponding to sensor type Sensor carries out initialization operation;Layer is driven to judge the sensor whether successful initialization;If the sensor successful initialization, root According to sensor type generation device file corresponding thereto, wherein, the device file is used for the ginseng for storing the sensor type Number information.If the unsuccessful initialization of the sensor, illustrate there is no the sensor in terminal or the sensor corrupted cannot Normal use, now drives layer generate corresponding device file according to the sensor type.
For example, there was only acceleration transducer hardware in terminal, and operating system is provided with acceleration transducer environmental variance With magnetic field sensor environmental variance, that is to say, that there will be acceleration transducer type and magnetic field sensor in an operating system Type.When starting up of terminal, drive layer be accelerated according to acceleration transducer type and the initialization of magnetic field sensor type respectively Degree sensor and magnetic field sensor.Assume terminal in acceleration transducer be normal condition, then drive layer will receive plus The signal of velocity sensor successful initialization, drives layer by the equipment text according to the generation of acceleration transducer type corresponding thereto Part;And due to without magnetic field sensor hardware, driving layer receive the unsuccessful initialized signal of magnetic field sensor in terminal, Drive layer generate device file corresponding thereto according to magnetic field sensor type.That is, drive in layer only depositing In the corresponding device file of acceleration transducer type, without there is the corresponding device file of magnetic field sensor type.
Ccf layer judges each sensor in sensor list by accessing driving layer after sensor list is got Type whether there is corresponding device file.For example, there is acceleration transducer type and magnetic field sensor in sensor list Type.Ccf layer is will determine that in driving layer with the presence or absence of corresponding with acceleration transducer type and magnetic field sensor type respectively Device file.
Step S203:The sensor type is registered;
When ccf layer is judged to drive there is the device file corresponding with sensor type in layer, ccf layer will be to this Sensor type is registered.For example, when the device file for driving in layer only acceleration transducer type corresponding, framework Layer will determine that out the device file that there is acceleration transducer type in driving layer, and acceleration transducer type is noted Volume.
Step S204:The sensor type is not registered;
When ccf layer is judged to drive there is no the device file corresponding with sensor type in layer, ccf layer will not The sensor type is registered.For example, when driving layer to there is no the corresponding device file of magnetic field sensor type, and pass When there is magnetic field sensor type in sensor list, ccf layer drives layer by accessing, and judges there is no magnetic in driving layer The device file of field sensor type, does not therefore register to magnetic field sensor type.
That is, ccf layer is after sensor list is read, will not be directly according to sensor list to all the sensors Type is registered, but needs to access driving layer.When judging to drive corresponding with the sensor type equipment of exist in layer During file, just the sensor type is registered, there is no corresponding with sensor type setting when judging to drive in layer During standby file, the sensor type is not registered.Whole process is equivalent to entering to the sensor type in sensor list Row screening, the sensor type that there is sensor hardware support is registered, and it is hard to there is no sensor in terminal in terminal Part is supported or the sensor type of sensor hardware corrupted is not registered, and is so effectively prevented from Register Sensor class by mistake Type.
Step S205:Obtain virtual-sensor type;
Sensor in terminal is divided into sensor hardware and virtual-sensor.Wherein, sensor hardware is implicitly present in Device, and virtual-sensor is the virtual device based on sensor hardware by software analog sensor behavior.For example, direction passes Sensor its be virtual-sensor one kind, be based primarily upon acceleration transducer hardware and magnetic field sensor hardware to obtain data. Virtual-sensor type is typically stored in ccf layer.Multiple sensor types in ccf layer is completed to sensor list After registration, virtual-sensor type, i.e. execution step S205 will be obtained.
Step S206:Judge whether the multiple described sensor type corresponding with the virtual-sensor type is successfully noted Volume;If the equal successful registration of the multiple described sensor type corresponding with the virtual-sensor type, execution step S207;If sensor described at least one in the multiple described sensor type corresponding with the virtual-sensor type The unsuccessful registration of type, then execution step S208;
Ccf layer judges corresponding with virtual-sensor type multiple sensor types whether successful registration.Wherein, many Individual sensor type includes at least one sensor type.For example, when virtual-sensor is direction sensor, with direction sensing The corresponding multiple sensor types of device are respectively acceleration transducer type and magnetic field sensor type.
Step S207:The virtual-sensor type is registered;
When ccf layer judges the equal successful registration of multiple sensor types corresponding with virtual-sensor type, illustrate eventually End memory is providing multiple sensor hardwares of data for virtual-sensor type, and now ccf layer will be to the virtual-sensor class Type is registered.For example, when acceleration transducer type and magnetic field sensor type are by successful registration, tag memory is described In acceleration transducer hardware and magnetic field sensor hardware, and two sensor hardwares can be now based on and added with normal work The direction sensor of velocity sensor and magnetic field sensor can just be registered.
Step S208:The virtual-sensor type is not registered.
When ccf layer judges at least one sensor in multiple sensor types corresponding with virtual-sensor type The unsuccessful registration of type, then illustrate that the virtual-sensor type cannot obtain the support of respective sensor hardware, now ccf layer The virtual-sensor type will not be registered.For example, if acceleration transducer corrupted, ccf layer will not be to acceleration Sensor type is registered, and further, also direction sensor type will not be registered.
The register method of the sensor in this preferred embodiment, its pass through the sensor list for obtaining hardware abstraction layer, and Access drive layer, judge drive layer in whether there is the device file corresponding with sensor type, if drive layer in exist with The corresponding device file of sensor type, then register to sensor type.When needing to register virtual-sensor, only In the case of judging the equal successful registration of multiple sensor types corresponding with virtual-sensor, ability is to virtual-sensor type Registered.The register method can be according to terminal inner sensor hardware actual conditions come to sensor type and corresponding virtuality Sensor type is registered, and to the sensor type without hardware supported or sensor hardware corrupted and corresponding virtual biography Sensor type is not registered, so as to avoid leading because missing Register Sensor type and virtual-sensor type in use The deadlock blank screen of cause, dodge and the phenomenon such as move back and occur.
Fig. 3, the structural representation of the register device of the sensor that Fig. 3 is provided is refer to for the preferred embodiment of the present invention.Should Register device 300 is can apply on the electronic equipments such as mobile phone, personal digital assistant (PDA), and here is not particularly limited.
The register device 300 of the sensor in this preferred embodiment includes:Acquiring unit 301, access 302 and of judging unit Registering unit 303.Wherein acquiring unit 301 is used for the sensor list for obtaining hardware abstraction layer, and wherein, sensor list includes The information of multiple sensor types;Accessing judging unit 302 is used for accessing driving layer, and judges to whether there is and biography in driving layer The corresponding device file of sensor type, wherein, device file be drive layer according to corresponding to the sensor of successful initialization The file that sensor type is generated;If registering unit 303 is used for driving has the equipment text corresponding with sensor type in layer Part, then register to sensor type.
The register device 300 of the sensor in this preferred embodiment is described in detail below in conjunction with Fig. 3.
Terminal in start, will register to sensor by the register device 300 of sensor.During registration, obtain Taking unit 301 needs to obtain the sensor list in hardware abstraction layer, and wherein, sensor list includes multiple sensor types, Here multiple sensor types refer at least one sensor type.It should be noted that when starting up of terminal, driving layer meeting basis Sensor environment variable is added in the setting of terminal operating system.Hardware abstraction layer reads sensor environment variable from driving layer, And generate corresponding sensor type according to sensor environment variable, and in preserving to sensor list.
The sensor list of acquisition is reached access judging unit 302 after sensor list is obtained by acquiring unit 301. Access judging unit 302 and layer will be driven by accessing, judge to drive the equipment corresponding with sensor type that whether there is in layer File.
It should be noted that after starting up of terminal, driving layer to initialize the sensor corresponding to sensor type Operation;Layer is driven to judge the sensor whether successful initialization;If the sensor successful initialization, given birth to according to sensor type Into device file corresponding thereto, wherein, the device file is used for storing the sensor type relevant parameter information.If the biography , then there is no the sensor in explanation terminal or the sensor corrupted normally cannot be used, now in the unsuccessful initialization of sensor Drive layer generate corresponding device file according to the sensor type.
For example, there was only acceleration transducer hardware device in terminal, and operating system is provided with acceleration transducer environment Variable and magnetic field sensor environmental variance, that is to say, that there will be acceleration transducer type in an operating system and magnetic field passes Sensor type.When starting up of terminal, drive layer be initialized according to acceleration transducer type and magnetic field sensor type respectively Acceleration transducer and magnetic field sensor.Assume that the acceleration transducer in terminal is normal condition, then drive layer receive To the signal of acceleration transducer successful initialization, drive layer to generate setting corresponding thereto according to acceleration transducer type Standby file;And it is unsuccessful initial due to without magnetic field sensor hardware device, driving layer receive magnetic field sensor in terminal The signal of change, the device file that driving layer will not be according to the generation of magnetic field sensor type corresponding thereto, that is, only drive in layer There is the corresponding device file of acceleration transducer type, without there is the corresponding device file of magnetic field sensor type.
When access judging unit 302 is judged to drive there is the device file corresponding with sensor type in layer, will The first signal is sent to registering unit 303 so that registering unit 303 is noted to the sensor type according to first signal Volume.For example, when the device file for driving in layer only acceleration transducer type corresponding, access unit 302 will determine that out The device file that there is acceleration transducer type in layer is driven, and acceleration transducer type is carried out by registering unit 303 Registration.
When access judging unit 302 is judged to drive there is no the device file corresponding with sensor type in layer, Access judging unit 302 and secondary signal will be sent to cancel register unit (not shown in Fig. 3) so that cancel register unit terminates Registration to the sensor type.
That is, the register device 300 of sensor is after sensor list is read, will not directly according to sensor list All the sensors type is registered, but needs to access the access driving layer of judging unit 302.Deposit when judging to drive in layer In the device file corresponding with sensor type, 303 ability of registering unit is registered to the sensor type;When access is sentenced When disconnected unit 302 is judged there is no the device file corresponding with sensor type in driving layer, cancel register unit will take Disappear the registration to the sensor type.Whole process, will be eventually equivalent to screening to the sensor type in sensor list The sensor type that there is sensor hardware support in end is registered, and be there is no sensor hardware in terminal and supported or pass The sensor type of sensor hardware corrupted is not registered, and is so effectively prevented from Register Sensor type by mistake.
The register device 300 of the sensor in this preferred embodiment, its pass through acquiring unit 301 and obtain hardware abstraction layer Sensor list, and whether there is and sensor type phase by accessing judging unit 302 and accessing driving layer and judge to drive in layer Corresponding device file, if drive, 303 pairs of sensings of registering unit Device type is registered.The register device 300 can enter to sensor type according to terminal inner sensor hardware actual conditions Row registration, and the sensor type without hardware supported or sensor hardware corrupted is not registered, so as to avoid using During sensor because of by mistake Register Sensor type caused deadlock blank screen, dodge and the phenomenon such as move back and occur.
Fig. 4, the another structural representation of the register device of the sensor that Fig. 4 is provided is refer to for the preferred embodiment of the present invention Figure.The register device 400 is can apply on the electronic equipments such as mobile phone, personal digital assistant (PDA), and here is not done specifically Limit.
The register device 400 of the sensor in this preferred embodiment includes:Acquiring unit 401, access judging unit 402, Registering unit 403, cancel register unit 404, acquisition judging unit 405, wherein obtaining judging unit 405 also includes obtaining sub- list Unit 4051, judgment sub-unit 4052, registration subelement 4053, cancel register subelement 4054.
Terminal in start, will register to sensor by the register device 400 of sensor.During registration, obtain Taking unit 401 needs to obtain the sensor list in hardware abstraction layer, and wherein, sensor list includes multiple sensor types Information, here multiple sensor types refer at least one sensor type.It should be noted that when starting up of terminal, driving layer Sensor environment variable can be added according to the setting of terminal operating system.Hardware abstraction layer reads sensor environment from driving layer Variable, and corresponding sensor type is generated according to sensor environment variable, and in preserving to sensor list.
The sensor list of acquisition is reached access judging unit 402 after sensor list is obtained by acquiring unit 401. Access judging unit 402 and layer will be driven by accessing, judge to drive the equipment corresponding with sensor type that whether there is in layer File.
It should be noted that after starting up of terminal, driving layer to initialize the sensor corresponding to sensor type Operation;Layer is driven to judge the sensor whether successful initialization;If the sensor successful initialization, given birth to according to sensor type Into device file corresponding thereto, wherein, the device file is used for storing the sensor type relevant parameter information.If the biography , then there is no the sensor in explanation terminal or the sensor corrupted normally cannot be used, now in the unsuccessful initialization of sensor Drive layer generate corresponding device file according to the sensor type.
For example, there was only acceleration transducer hardware device in terminal, and operating system is provided with acceleration transducer environment Variable and magnetic field sensor environmental variance, that is to say, that there will be acceleration transducer type in an operating system and magnetic field passes Sensor type.When starting up of terminal, drive layer be initialized according to acceleration transducer type and magnetic field sensor type respectively Acceleration transducer and magnetic field sensor.Assume that the acceleration transducer in terminal is normal condition, then drive layer receive To the signal of acceleration transducer successful initialization, drive layer to generate setting corresponding thereto according to acceleration transducer type Standby file;And it is unsuccessful initial due to without magnetic field sensor hardware device, driving layer receive magnetic field sensor in terminal The signal of change, the device file that driving layer will not be according to the generation of magnetic field sensor type corresponding thereto, that is, only drive in layer There is the corresponding device file of acceleration transducer type, without there is the corresponding device file of magnetic field sensor type.
When access judging unit 402 is judged to drive there is the device file corresponding with sensor type in layer, will The 3rd signal is sent to registering unit 403 so that registering unit 403 is noted to the sensor type according to the 3rd signal Volume.For example, when the device file for driving in layer only acceleration transducer type corresponding, access unit 402 will determine that out The device file that there is acceleration transducer type in layer is driven, and acceleration transducer type is carried out by registering unit 403 Registration.
When access judging unit 402 is judged to drive there is no the device file corresponding with sensor type in layer, Access judging unit 402 and the 4th signal will be sent to cancel register unit 404 so that cancel register unit 404 terminates to the biography The registration of sensor type.
That is, the register device 400 of sensor is after sensor list is read, will not directly according to sensor list All the sensors type is registered, but needs to access the access driving layer of judging unit 402.Deposit when judging to drive in layer In the device file corresponding with sensor type, 403 ability of registering unit is registered to the sensor type, when access is sentenced When disconnected unit 402 is judged there is no the device file corresponding with sensor type in driving layer, cancel register unit 404 will Cancel the registration to the sensor type.Whole process, will equivalent to screening to the sensor type in sensor list Exist in terminal sensor hardware support sensor type registered, and do not exist in terminal sensor hardware support or The sensor type of sensor hardware corrupted is not registered, and is so effectively prevented from Register Sensor type by mistake.
Sensor in terminal is divided into sensor hardware and virtual-sensor.Wherein, sensor hardware is implicitly present in Device, and virtual-sensor is the virtual device based on sensor hardware by software analog sensor behavior.For example, direction passes Sensor its be virtual-sensor one kind, be based primarily upon acceleration transducer hardware and magnetic field sensor hardware to obtain data. Virtual-sensor type is typically stored in the register device 400 of sensor.When the register device 400 of sensor is completed to sensing After the registration of the multiple sensor types in device list, virtual-sensor type will be registered.
Specifically, the acquisition subelement 4051 obtained in judging unit 405 obtains virtual-sensor type, obtains subelement 4051 by obtain virtual-sensor type transfer to judgment sub-unit 4052, judged by judgment sub-unit 4052 and virtual sensing The corresponding multiple sensor types of device type whether successful registration.Wherein, multiple sensor types include at least one sensing Device type.For example, when virtual-sensor is direction sensor, multiple sensor types corresponding with direction sensor are distinguished For acceleration transducer type and magnetic field sensor type.
When judgment sub-unit 4052 judges that multiple sensor types corresponding with virtual-sensor type are successfully noted Volume, illustrates tag memory in the multiple sensor hardwares for providing data for virtual-sensor type, now judgment sub-unit 4052 The 5th signal will be sent to registration subelement 4053 so that registration subelement 4053 is according to the 5th signal to the virtual-sensor class Type is registered.For example, when acceleration transducer type and magnetic field sensor type are by successful registration, tag memory is described In acceleration transducer hardware and magnetic field sensor hardware, and two sensor hardwares can be now based on and added with normal work The direction sensor type of velocity sensor and magnetic field sensor can just be registered.
When judgment sub-unit 4052 is judged at least one in multiple sensor types corresponding with virtual-sensor type The unsuccessful registration of individual sensor type, then illustrate that the virtual-sensor type cannot obtain the support of respective sensor hardware, this When judgment sub-unit 4052 send the 6th signal to cancel register subelement 4054 so that cancel register subelement 4054 is according to the Six signals are not registered to the virtual-sensor type.For example, if acceleration transducer corrupted, the registering unit that disappears 404 The registration to acceleration transducer type will be cancelled, further, cancel register subelement 4054 also will not be to direction sensor Type is registered.
The register device 400 of the sensor in this preferred embodiment, its pass through acquiring unit 401 and obtain hardware abstraction layer Sensor list;Access judging unit 402 to access driving layer and judge to drive in layer with the presence or absence of corresponding with sensor type Device file, if drive in layer the presence of corresponding with the sensor type device file, by registering unit 403 to sensor Type is registered.When needing to register virtual-sensor type, only judgment sub-unit 4052 is judged and virtual-sensor In the case of the equal successful registration of corresponding multiple sensor types, registration 4053 ability of subelement is carried out to virtual-sensor type Registration.The register device 400 can be according to terminal inner sensor hardware actual conditions come to sensor type and corresponding virtuality Sensor type is registered, and to the sensor type without hardware supported or sensor hardware corrupted and corresponding virtual biography Sensor type is not registered, so as to avoid leading because missing Register Sensor type and virtual-sensor type in use The deadlock blank screen of cause, dodge and the phenomenon such as move back and occur.
The present invention also provides a kind of mobile terminal, such as the mobile terminal such as panel computer, mobile phone, refers to Fig. 5, and Fig. 5 is this The mobile terminal structure schematic diagram that invention preferred embodiment is provided.The mobile terminal 500 can include radio frequency (RF, Radio Frequency) circuit 501, include the memory 502, input block of one or more computer-readable recording mediums 503rd, display unit 504, sensor 505, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module 507th, the parts such as the processor 508 and power supply 509 of or more than one processing core is included.People in the art Member is appreciated that the mobile terminal structure illustrated in Fig. 5 does not constitute the restriction to mobile terminal, can include more more than illustrating Or less part, or some parts are combined, or different part arrangements.
Radio circuit 501 can be used to receive and send messages, or in communication process signal reception and transmission, especially, by base station Downlink information receive after, transfer to one or more than one processor 508 processed;In addition, up data is activation will be related to Give base station.Generally, radio circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more vibrations Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low noise amplification Device (LNA, Low Noise Amplifier), duplexer etc..Additionally, radio circuit 501 can also pass through radio communication and network Communicate with other equipment.The radio communication can use arbitrary communication standard or agreement, including but not limited to global system for mobile telecommunications System (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division many Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memory 502 can be used to store application program and data.Include and can hold in the application program of the storage of memory 502 Line code.Application program can constitute various functions module.Processor 508 is stored in the application journey of memory 502 by operation Sequence, so that execute various function application and data processing.Memory 502 can mainly include storing program area and data storage Area, wherein, storing program area can storage program area, application program needed at least one function (such as sound-playing function, Image player function etc.) etc.;Storage data field can be stored and use created data (such as audio frequency number according to mobile terminal According to, phone directory etc.) etc..Additionally, memory 502 can include high-speed random access memory, non-volatile depositing can also be included Reservoir, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can also include Memory Controller, to provide the access of processor 508 and input block 503 to memory 502.
Input block 503 can be used for numeral, character information or the user's characteristic information (such as fingerprint) of receives input, and Produce the keyboard relevant with user setup and function control, mouse, action bars, optics or trace ball signal input.Specifically Ground, in a specific embodiment, input block 503 may include Touch sensitive surface and other input equipments.Touch sensitive surface, Referred to as touch display screen or Trackpad, user can be collected thereon or neighbouring touch operation (such as user using finger, touch The operation of any suitable object or the annexes such as pen on Touch sensitive surface or near the Touch sensitive surface), and according to set in advance Formula drives corresponding attachment means.Optionally, Touch sensitive surface may include two parts of touch detecting apparatus and touch controller. Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation brings is detected, transmit a signal to touch Controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives process Device 508, and the order sent of receiving processor 508 can be executed.Furthermore, it is possible to adopt resistance-type, condenser type, infrared ray And the polytype such as surface acoustic wave realizes Touch sensitive surface.Except Touch sensitive surface, input block 503 can also be including other inputs Equipment.Specifically, other input equipments can include but is not limited to physical keyboard, function key (such as volume control button, switch Button etc.), fingerprint recognition module, trace ball, mouse, one or more in action bars etc..
Display unit 504 can be used to showing by user input information or be supplied to information and the mobile terminal of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 504 may include display floater.Optionally, liquid crystal display (LCD, Liquid Crystal can be adopted Display), the form such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) is configuring display surface Plate.Further, Touch sensitive surface can cover display floater, when Touch sensitive surface is detected thereon or after neighbouring touch operation, Processor 508 is sent to determine the type of touch event, with preprocessor 508 according to the type of touch event in display floater Upper provide corresponding visual output.Although in Figure 5, Touch sensitive surface and display floater are the parts independent as two realizing Input and output function, but in some embodiments it is possible to will be integrated to Touch sensitive surface and display floater and realize be input into and defeated Go out function.
Mobile terminal may also include at least one sensor 505, and sensor 505 can be acceleration transducer, magnetic field biography Sensor, optical sensor, motion sensor and other sensors.Specifically, acceleration transducer is used for obtaining mobile terminal Acceleration information, magnetic field sensor are used for the delta data for detecting mobile terminal surrounding magnetic field;In a preferred embodiment, accelerate Degree sensor and magnetic field sensor can be used for providing data for direction sensor, and wherein direction sensor is virtual sensing Device.
Optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to ambient light Adjusting the brightness of display floater, proximity transducer can cut out display floater when mobile terminal is moved in one's ear to the light and shade of line And/or backlight.Used as one kind of motion sensor, Gravity accelerometer can detect that (generally three axles) add in all directions The size of speed, can detect that size and the direction of gravity when static, can be used for application (the such as horizontal/vertical screen for recognizing mobile phone attitude Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile whole Gyroscope that end can also configure, barometer, hygrometer, thermometer, the other sensors such as infrared ray sensor, here are no longer gone to live in the household of one's in-laws on getting married State.
Voicefrequency circuit 506 can pass through loudspeaker, microphone and provide the COBBAIF between user and mobile terminal.Audio-frequency electric The voice data for receiving can be converted into electric signal by road 506, be transferred to loudspeaker, be converted to voice signal by loudspeaker defeated Go out;On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio frequency after being received by voicefrequency circuit 506 Data, then after voice data output processor 508 is processed, through radio circuit 501 being sent to such as another mobile terminal, or Person exports voice data to memory 502 further to process.Voicefrequency circuit 506 is also possible that earphone jack, to carry Communication for peripheral hardware earphone and mobile terminal.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and mobile terminal can be with by wireless fidelity module 507 Help user to send and receive e-mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet Access.Although Fig. 5 shows wireless fidelity module 507, but it is understood that, which is simultaneously not belonging to the necessary structure of mobile terminal Into can omit in the scope of essence for not changing invention as needed completely.
Processor 508 is the control centre of mobile terminal, using each of various interfaces and the whole mobile terminal of connection Individual part, is stored in application program in memory 502 by running or executing, and calls and be stored in memory 502 Data, execute the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Optionally, process Device 508 may include one or more processing cores;Preferably, processor 508 can integrated application processor and modulation /demodulation process Device, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor is mainly located Reason radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 508.
Mobile terminal also includes the power supply 509 (such as battery) that powers to all parts.Preferably, power supply can pass through electricity Management system is logically contiguous with processor 508, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 509 can also include one or more direct current or AC power, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown in Fig. 5, mobile terminal can also include camera, bluetooth module etc., will not be described here.
Concrete in the present embodiment, processor 508 in mobile terminal can according to following instruction, by one or one with On the corresponding executable code of process of application program be loaded in memory 502, and run by processor 508 and be stored in Application program in memory 502,508 concrete execution following steps of processor:The sensor list of hardware abstraction layer is obtained, its In, the sensor list includes the information of multiple sensor types;Access and drive layer, and judge whether deposit in the driving layer In the device file corresponding with the sensor type, wherein, the device file is initial according to success for the driving layer The file that the sensor type corresponding to the sensor of change is generated;If existing and the sensor type in the driving layer Corresponding device file, then register to the sensor type.
Processor 508 after having executed and registering the sensor type is additionally operable to execute following steps:
Obtain virtual-sensor type;Judge the multiple described sensor type corresponding with the virtual-sensor type Whether successful registration;If the equal successful registration of the multiple described sensor type corresponding with the virtual-sensor type, Then the virtual-sensor type is registered;If the multiple described sensing corresponding with the virtual-sensor type The unsuccessful registration of sensor type described at least one in device type, then do not register to the virtual-sensor type.
Processor 508 is judged in the driving layer with the presence or absence of the equipment corresponding with the sensor type having executed After file, it is additionally operable to execute:If there is no the device file corresponding with the sensor type, not to the sensor Type is registered.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the portion that describes in detail Point, the detailed description of the register method above with respect to sensor is may refer to, here is omitted.
In the register device of sensor provided in an embodiment of the present invention, the register device of the sensor and foregoing embodiments The register method of sensor belongs to same design, can run the registration of the sensor on the register device of the sensor The either method provided in embodiment of the method, which implements the register method embodiment that process refers to the sensor, herein Repeat no more.
It should be noted that for the register method of sensor of the present invention, this area common test personnel can be with Understand all or part of flow process of the register method for realizing sensor described in the embodiment of the present invention, can be by computer program Complete to control the hardware of correlation, the computer program can be stored in a computer read/write memory medium, such as store In the memory of terminal, and by least one computing device in the terminal, may include such as the biography in the process of implementation The flow process of the embodiment of the register method of sensor.Wherein, described storage medium can be magnetic disc, CD, read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
Each functional unit in the embodiment of the present invention can be integrated in a processing module, or unit list Solely it is physically present, it is also possible to which two or more units are integrated in a module.Above-mentioned integrated module can both be adopted The form of hardware is realized, it would however also be possible to employ the form of software function module is realized.If the integrated module is with software function The form of module is realized and as when independent production marketing or use, it is also possible to is stored in an embodied on computer readable storage and is situated between In matter.Storage medium mentioned above can be read-only storage, disk or CD etc..Above-mentioned each device or system, can be with Execute the method in correlation method embodiment.
In sum, although the present invention is disclosed above with preferred embodiment, but above preferred embodiment is not used to limit The system present invention, one of ordinary skill in the art without departing from the spirit and scope of the present invention, can make various changes and profit Decorations, therefore protection scope of the present invention is defined by the scope that claim is defined.

Claims (10)

1. a kind of register method of sensor, it is characterised in that include:
The sensor list of hardware abstraction layer is obtained, wherein, the sensor list includes the information of multiple sensor types;
Access and drive layer, and judge in the driving layer with the presence or absence of the device file corresponding with the sensor type, its In, the device file is that the sensor type for driving layer according to corresponding to the sensor of successful initialization is generated File;
If there is the device file corresponding with the sensor type in the driving layer, the sensor type is carried out Registration.
2. the register method of the sensor according to right will go 1, it is characterised in that the sensor type is entered described After row registration, also include:
Obtain virtual-sensor type;
Judge the multiple described sensor type corresponding with the virtual-sensor type whether successful registration;
If the equal successful registration of the multiple described sensor type corresponding with the virtual-sensor type, to the void Intend sensor type to be registered.
3. the register method of the sensor according to right will go 2, it is characterised in that in the judgement and the virtual sensing Whether device type corresponding multiple described sensor type after successful registration, also includes:
If sensor described at least one in the multiple described sensor type corresponding with the virtual-sensor type The unsuccessful registration of type, then do not register to the virtual-sensor type.
4. the register method of the sensor according to right will go 1, it is characterised in that described judge in the driving layer be After the no presence device file corresponding with the sensor type, also include:
If there is no the device file corresponding with the sensor type, the sensor type is not registered.
5. a kind of register device of sensor, it is characterised in that include:
Acquiring unit, for obtaining the sensor list of hardware abstraction layer, wherein, the sensor list includes multiple sensors The information of type;
Judging unit is accessed, layer is driven for accessing, and judge to whether there is and the sensor type phase in the driving layer Corresponding device file, wherein, the device file is the institute of the driving layer according to corresponding to the sensor of successful initialization State the file of sensor type generation;
Registering unit, if for there is the device file corresponding with the sensor type in the driving layer, to described Sensor type is registered.
6. the register device of the sensor according to right will go 5, it is characterised in that the register device also includes:Obtain Judging unit, the acquisition judging unit include obtaining subelement, judgment sub-unit and registration subelement;
The acquisition subelement is used for obtaining virtual-sensor type;
The judgment sub-unit is used for whether judging the multiple described sensor type corresponding with the virtual-sensor type Successful registration;
If it is equal that the registration subelement is used for the multiple described sensor type corresponding with the virtual-sensor type Successful registration, then register to the virtual-sensor type.
7. the register device of the sensor according to right will go 6, it is characterised in that the acquisition judging unit also includes taking Disappear registration subelement, if the cancel register subelement be used for described corresponding with the virtual-sensor type multiple described The unsuccessful registration of sensor type described at least one in sensor type, then do not note to the virtual-sensor type Volume.
8. the register device of the sensor according to right will go 5, it is characterised in that the register device also includes:Cancel Registering unit is not if the cancel register unit is used for no presence of the device file corresponding with the sensor type, right The sensor type is registered.
9. a kind of mobile terminal, it is characterised in that include:
Be stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes following steps:
The sensor list of hardware abstraction layer is obtained, wherein, the sensor list includes the information of multiple sensor types;
Access and drive layer, and judge in the driving layer with the presence or absence of the device file corresponding with the sensor type, its In, the device file is that the sensor type for driving layer according to corresponding to the sensor of successful initialization is generated File;
If there is the device file corresponding with the sensor type in the driving layer, the sensor type is carried out Registration.
10. mobile terminal according to claim 9, it is characterised in that the processor is additionally operable to execute:
Obtain virtual-sensor type;
Judge the multiple described sensor type corresponding with the virtual-sensor type whether successful registration;
If the equal successful registration of the multiple described sensor type corresponding with the virtual-sensor type, to the void Intend sensor type to be registered.
CN201610930625.7A 2016-10-31 2016-10-31 A kind of register method of sensor, device and mobile terminal Active CN106502681B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610930625.7A CN106502681B (en) 2016-10-31 2016-10-31 A kind of register method of sensor, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610930625.7A CN106502681B (en) 2016-10-31 2016-10-31 A kind of register method of sensor, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106502681A true CN106502681A (en) 2017-03-15
CN106502681B CN106502681B (en) 2019-07-16

Family

ID=58318815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610930625.7A Active CN106502681B (en) 2016-10-31 2016-10-31 A kind of register method of sensor, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106502681B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729067A (en) * 2017-09-11 2018-02-23 北京东土科技股份有限公司 A kind of register method and device of FLASH chip driving
WO2020134566A1 (en) * 2018-12-26 2020-07-02 惠州Tcl移动通信有限公司 Control method for doze mode of mobile terminal, storage medium and mobile terminal
CN112502909A (en) * 2020-11-26 2021-03-16 中车永济电机有限公司 Wind driven generator fault detection method, data acquisition device, server and system
CN113329122A (en) * 2021-05-13 2021-08-31 上海龙旗科技股份有限公司 Method and equipment for adjusting screen brightness of mobile terminal
CN114995591A (en) * 2021-10-30 2022-09-02 荣耀终端有限公司 Sensor registration method, control system and related equipment
CN116578524A (en) * 2023-07-12 2023-08-11 宁德时代新能源科技股份有限公司 Multi-core controller, control method, vehicle control system and readable storage medium
CN116708615A (en) * 2022-11-15 2023-09-05 荣耀终端有限公司 Device registration method, device registration apparatus and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662665A (en) * 2012-03-29 2012-09-12 福州瑞芯微电子有限公司 Input subsystem enabling Android to support various sensors
CN103297235A (en) * 2013-05-08 2013-09-11 无锡北邮感知技术产业研究院有限公司 Method and server for identification in batches based on biological characteristics
CN103353835A (en) * 2013-01-17 2013-10-16 珠海全志科技股份有限公司 Migration processing method and device of Android system SensorHal layer compatible kinds of same Sensor devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662665A (en) * 2012-03-29 2012-09-12 福州瑞芯微电子有限公司 Input subsystem enabling Android to support various sensors
CN103353835A (en) * 2013-01-17 2013-10-16 珠海全志科技股份有限公司 Migration processing method and device of Android system SensorHal layer compatible kinds of same Sensor devices
CN103297235A (en) * 2013-05-08 2013-09-11 无锡北邮感知技术产业研究院有限公司 Method and server for identification in batches based on biological characteristics

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729067A (en) * 2017-09-11 2018-02-23 北京东土科技股份有限公司 A kind of register method and device of FLASH chip driving
CN107729067B (en) * 2017-09-11 2021-04-20 北京东土科技股份有限公司 Registration method and device for FLASH chip drive
WO2020134566A1 (en) * 2018-12-26 2020-07-02 惠州Tcl移动通信有限公司 Control method for doze mode of mobile terminal, storage medium and mobile terminal
CN112502909A (en) * 2020-11-26 2021-03-16 中车永济电机有限公司 Wind driven generator fault detection method, data acquisition device, server and system
CN112502909B (en) * 2020-11-26 2023-09-08 中车永济电机有限公司 Wind driven generator fault detection method, data acquisition device, server and system
CN113329122A (en) * 2021-05-13 2021-08-31 上海龙旗科技股份有限公司 Method and equipment for adjusting screen brightness of mobile terminal
CN114995591A (en) * 2021-10-30 2022-09-02 荣耀终端有限公司 Sensor registration method, control system and related equipment
CN114995591B (en) * 2021-10-30 2023-01-20 荣耀终端有限公司 Sensor registration method, control system and related equipment
CN116708615A (en) * 2022-11-15 2023-09-05 荣耀终端有限公司 Device registration method, device registration apparatus and storage medium
CN116708615B (en) * 2022-11-15 2024-04-09 荣耀终端有限公司 Device registration method, device registration apparatus and storage medium
CN116578524A (en) * 2023-07-12 2023-08-11 宁德时代新能源科技股份有限公司 Multi-core controller, control method, vehicle control system and readable storage medium
CN116578524B (en) * 2023-07-12 2023-12-15 宁德时代新能源科技股份有限公司 Multi-core controller, control method, vehicle control system and readable storage medium

Also Published As

Publication number Publication date
CN106502681B (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN106502681A (en) A kind of register method of sensor, device and mobile terminal
CN104780164B (en) A kind of method and apparatus of running game client
CN103389863B (en) A kind of display control method and device
CN106126015A (en) A kind of application program launching control method and terminal
CN105912905A (en) Fingerprint unlocking method and terminal
CN104901805B (en) A kind of identification authentication methods, devices and systems
CN104951212A (en) Method, device and system for processing desktop data of mobile terminal
CN103310004A (en) Method, device and equipment for displaying number of unread messages
CN104135728B (en) Method for connecting network and device
CN106506321A (en) One population message treatment method and terminal device
CN106528282A (en) Method, device and terminal for closing process
CN103399633A (en) Wireless remote control method and mobile terminal
CN106775828A (en) Application program installation method and device, computer equipment
CN106507482A (en) A kind of network locating method and terminal device
CN108769976A (en) network attachment control method, device and mobile terminal
CN107436758A (en) The method for information display and mobile terminal of a kind of mobile terminal
CN107219951A (en) Touch screen control method, device, storage medium and terminal device
CN110022553A (en) A kind of subscriber identification card management method and mobile terminal
CN106385485A (en) Call recording method, call recording device and mobile terminal
CN103399706B (en) Page interaction, device and terminal
CN106611152A (en) User identity determination method and apparatus
CN107276602A (en) Radio frequency interference processing method, device, storage medium and terminal
CN104901992B (en) A kind of method and apparatus of resource transfers
CN104820546A (en) Functional information exhibition method and apparatus
CN104363590A (en) Access point connection method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant