CN108363626A - Sensor control method and device in a kind of intelligent terminal - Google Patents
Sensor control method and device in a kind of intelligent terminal Download PDFInfo
- Publication number
- CN108363626A CN108363626A CN201810128670.XA CN201810128670A CN108363626A CN 108363626 A CN108363626 A CN 108363626A CN 201810128670 A CN201810128670 A CN 201810128670A CN 108363626 A CN108363626 A CN 108363626A
- Authority
- CN
- China
- Prior art keywords
- sensor
- intelligent terminal
- call instruction
- driver
- application matches
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/545—Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
Abstract
The invention discloses the sensor control methods and device in a kind of intelligent terminal.This method includes:Obtain the call instruction of application program in intelligent terminal;According to call instruction, search and the sensor of application matches and corresponding sensor driver, wherein same type sensor at least two, each sensor correspond to different drivers respectively;According to call instruction, call driver drives corresponding sensor, technical solution through the invention, to realize while be compatible with multiple same type of sensors meeting the needs of user's different scenes.
Description
Technical field
The present embodiments relate to the sensor control methods and dress in sensor technology more particularly to a kind of intelligent terminal
It sets.
Background technology
Sensor is a kind of detection device, can experience measured information, and the information that can will be experienced, by a set pattern
Rule is for conversion into the information output of electric signal or other required forms, to meet the transmission of information, processing, storage, display, record
With control etc. requirements.
At present on electronics market, most products all carry sensor, these products might have multiple sensings
Device, but same type of sensor just only there are one.The sensor of each type in existing intelligent terminal corresponds to different
Driver, such as there are three the sensors of each type in intelligent terminal, then three sensors correspond to same driving journey
Sequence.It thus can not achieve the independent control to sensor.
With the raising of product demand and user experience, intelligent terminal may need to be compatible with multiple same type of biographies simultaneously
Sensor, the switching for different scenes use, and to promote user experience, reach the desired effect of product.
Invention content
The present invention provides the sensor control method and device in a kind of intelligent terminal, with realize be compatible with simultaneously it is multiple together
The sensor of one type meets the needs of user's different scenes.
In a first aspect, an embodiment of the present invention provides the sensor control methods in a kind of intelligent terminal, including:
Obtain the call instruction of application program in intelligent terminal;
According to the call instruction, searches and drive journey with the sensor of the application matches and corresponding sensor
Sequence, wherein same type sensor at least two, each sensor correspond to different drivers respectively;
According to the call instruction, the driver is called to drive corresponding sensor.
Further, described according to the call instruction, it searches and the sensor of the application matches and corresponding
Sensor driver includes:
Determine that the screen orientation of the intelligent terminal is transverse screen or vertical screen;
If it is transverse screen, according to the call instruction, the non-sensing for holding side under the intelligent terminal transverse screen state
It is searched and the sensor of the application matches and corresponding sensor driver in device;
If it is vertical screen, according to the call instruction, the non-sensing for holding side under the intelligent terminal vertical screen state
It is searched and the sensor of the application matches and corresponding sensor driver in device.
Further, if it is vertical screen, according to the call instruction, from non-gripping under the intelligent terminal vertical screen state
It is searched with the sensor of the application matches and corresponding sensor driver in the sensor of side and includes:
If it is vertical screen, according to the call instruction, from be set to apart from the intelligent terminal receiver be less than it is default away from
From sensor in search and the sensor of the application matches and corresponding sensor driver.
Further, described according to the call instruction, it searches and the sensor of the application matches and corresponding
Sensor driver includes:
According to the call instruction, the sensor with the application matches is searched;
Obtain the output information of the sensor;
Determine whether the sensor is blocked according to the output information of the sensor;
Never it searches in the sensor being blocked and is driven with the sensor of the application matches and corresponding sensor
Program.
Further, the sensor includes photoelectric sensor and/or range sensor.
Second aspect, the embodiment of the present invention additionally provide the sensor control in a kind of intelligent terminal, the device packet
It includes:
Acquisition module, the call instruction for obtaining application program in intelligent terminal;
Searching module, for according to the call instruction, searching and the sensor of the application matches and corresponding
Sensor driver, wherein same type sensor at least two, each sensor correspond to different drivers respectively;
Calling module, for according to the call instruction, the driver being called to drive corresponding sensor.
Further, the searching module includes:
Determination unit, for determining that the screen orientation of the intelligent terminal is transverse screen or vertical screen;
First searching unit is used for if it is transverse screen, according to the call instruction, from the intelligent terminal transverse screen state
Under it is non-hold side sensor in search and the sensor of the application matches and corresponding sensor driver;
Second searching unit is used for if it is vertical screen, according to the call instruction, from the intelligent terminal vertical screen state
Under it is non-hold side sensor in search and the sensor of the application matches and corresponding sensor driver.
Further, second searching unit is specifically used for:
If it is vertical screen, according to the call instruction, from be set to apart from the intelligent terminal receiver be less than it is default away from
From sensor in search and the sensor of the application matches and corresponding sensor driver.
Further, the searching module is specifically used for:
According to the call instruction, the sensor with the application matches is searched;
Obtain the output information of the sensor;
Determine whether the sensor is blocked according to the output information of the sensor;
Never it searches in the sensor being blocked and is driven with the sensor of the application matches and corresponding sensor
Program.
Further, the sensor includes photoelectric sensor and/or range sensor.
The call instruction that the embodiment of the present invention passes through application program in acquisition intelligent terminal;According to the call instruction, look into
It looks for and the sensor of the application matches and corresponding sensor driver, wherein same type sensor is at least two
A, each sensor corresponds to different drivers respectively;According to the call instruction, the driver driving is called to correspond to
Sensor, with realize and meanwhile be compatible with multiple same type of sensors, meet the needs of user's different scenes.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Figure 1A is the flow chart of the sensor control method in a kind of intelligent terminal in the embodiment of the present invention one;
Figure 1B is the simplified schematic diagram of the sensor control method in the intelligent terminal in the embodiment of the present invention one;
Fig. 2 is the flow chart of the sensor control method in a kind of intelligent terminal in the embodiment of the present invention two;
Fig. 3 is the structural schematic diagram of the sensor control in a kind of intelligent terminal in the embodiment of the present invention three.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Figure 1A is the flow chart of the sensor control method in a kind of intelligent terminal in the embodiment of the present invention one, this implementation
Example is applicable to the case where sensor control, and this method can be controlled by the sensor in the intelligent terminal in the embodiment of the present invention
Device executes, which can be used software and/or the mode of hardware is realized, as shown in Figure 1A, this method specifically includes as follows
Step:
S110 obtains the call instruction of application program in intelligent terminal.
Wherein, the intelligent terminal can be smart mobile phone, Intelligent flat or other smart machines, the embodiment of the present invention
This is not limited.
Wherein, the application program includes amusement, game class application program, utility function class application program and social class
The types of applications such as application program.Specifically, utility function class application program includes flashlight application program, calendar application journey
Sequence, digital map navigation application program etc..
Wherein, the call instruction can be the touch command that user is inputted by Touch Screen, such as can be, user
When clicking in intelligent terminal screen at a certain application program present position, the call instruction of generation.The call instruction can be with
For the phonetic order that user is inputted by voice, such as can be that when user reads the title of a certain application, the calling of generation refers to
It enables.The call instruction can also be instruction of the user by key-press input, such as can be, user clicks a certain application program
When corresponding button, the call instruction of generation.The call instruction can also be other forms, the embodiment of the present invention to this not into
Row limitation.
Specifically, user by the forms such as voice, touch-control or button input pin to the tune of application program in intelligent terminal
With instruction, the controller in intelligent terminal obtains the call instruction input by user for application program in intelligent terminal.
S120, according to call instruction, lookup and the sensor of application matches and corresponding sensor driver,
In, same type sensor at least two, each sensor corresponds to different drivers respectively.
Wherein, the sensor includes:Direction sensor, gravity sensor, acceleration transducer, photoelectric sensor, electricity
Sub- compass, range sensor, gyroscope, temperature sensor and pressure sensor etc..
Wherein, the call instruction carries the attribute information that user needs the application program opened, specifically, the attribute
Information includes the title, storage region, the corresponding sensor of the application program of application program.Wherein, the application program pair
The sensor answered is that application program can be in the case of normal use, the sensor needed, such as can be, if application program is
Meter step application, the then sensor that application matches are walked with meter include:Accelerate inductor and gyroscope etc..
Wherein, it is all biographies in intelligent terminal according to call instruction to search with the sensor of application matches
The sensor that application program corresponding with call instruction matches is searched in sensor.Specifically, the sensing with application matches
Device is to open the application program to need sensor to be used.
Wherein, the corresponding sensor driver of sensor is the driver that can drive sensor, specifically, intelligence
Sensor in terminal includes the sensor of many types, and same type sensor at least two, each sensor corresponds to different
Driver, such as can be that intelligent terminal includes two photoelectric sensors, each photoelectric sensor corresponds to the drive of oneself
Dynamic program.
Specifically, according to call instruction input by user, determine that user needs the application program opened, from intelligent terminal
Sensor in search open above application program need sensor and the corresponding sensor driver of sensor.
Optionally, described according to the call instruction, it searches and the sensor of the application matches and corresponding biography
Sensor driver includes:
According to the call instruction, the sensor with the application matches is searched;
Obtain the output information of the sensor;
Wherein, when the output information of the sensor is that collected information is sent to controller by sensor, controller
The output information of the sensor got.
Determine whether the sensor is blocked according to the output information of the sensor;
Specifically, can determine whether sensor is blocked according to the output information of sensor, such as can be, if sensing
Device is photoelectric sensor, the photoelectric sensor gathered data at different location, if the numerical value of the collected data of a certain sensor
It is smaller compared with other are located at the numerical value of the collected data of photoelectric sensor at different location, it is determined that the sensor quilt
It blocks, if the numerical value of the collected data of a certain sensor is located at the collected number of photoelectric sensor at different location with other
According to numerical value compared to larger, it is determined that the sensor is not blocked.
In a specific example, automatic regulating lightness is to adjust backlight by the size of the data of optical sensor
It is bright dark.Two/or multiple optical sensors can be detected simultaneously, see that the numerical value of which sensor is bigger, it is just big with numerical value
The data of that sensor.Because another numerical value is smaller, it may be possible to be blocked.So avoiding in this way
Unreasonable backlight is adjusted caused by accidentally blocking.
Never it searches in the sensor being blocked and is driven with the sensor of the application matches and corresponding sensor
Program.
Specifically, if photoelectric sensor and/or range sensor are blocked, the data of sensor acquisition may then be not allowed
Really, then selection and the sensor of application matches and corresponding sensor driver in the sensor being never blocked.
Optionally, the sensor includes photoelectric sensor and/or range sensor.
In a specific example, control uses the logic of which of same type sensor, in fact not necessarily non-
One in two is used, it can also be simultaneously with multiple.Such as can be that switching uses multiple sensings in same type
Device, closely spaced, it can be imperceptible for the switching interval or smaller of 0.1ms, smaller switching interval user to be spaced,
Increase user experience.
If specifically, the sensor is range sensor, can be fed back apart from barrier by range sensor
Therefore distance can be used for doing eyeshield prompting, such as can be, people leans on closely to play very much mobile phone, suggests that user pays attention to distance
Or directly in order to protect eyesight and screen locking.But in order to be more accurate, we just use two range sensors, the position of receiver
One is set, then also one in one side plane of volume key, while two is used, prevents erroneous judgement.
S130, according to call instruction, call driver drives corresponding sensor.
Specifically, the driver can drive a certain sensor, according to call instruction input by user, call above-mentioned
The corresponding sensor of determining sensor driver.
In a specific example, Android system originally is that the sensor of a type corresponds to a driving, one
A driving corresponds to a hardware IC, and application program obtains and use the data of sensor.As shown in Figure 1B, the present invention implements
Technical solution be:When there are two same type of sensor, the driving layer of Android kernel can start two parts of drivings
The two IC are corresponded to respectively, make two IC that can work normally.Then, at Android system (framework layers), according to different
Scene selection uses same type of difference IC, the order of which IC then will be used to pass to kernel layers, this of kernel layers
The driving of one type sensor will select the driver of corresponding IC to correspond to corresponding hardware IC, and application program can obtain
The data using respective sensor are taken, to realize compatible multiple same type of sensors under Android system.
The technical solution of the present embodiment, by the call instruction for obtaining application program in intelligent terminal;According to call instruction,
It searches and the sensor of application matches and corresponding sensor driver, wherein same type sensor at least two,
Each sensor corresponds to different drivers respectively;According to call instruction, call driver drives corresponding sensor, with
It realizes while being compatible with multiple same type of sensors, meet the needs of user's different scenes.
Embodiment two
Fig. 2 is the flow chart of the sensor control method in a kind of intelligent terminal in the embodiment of the present invention two, this implementation
Example is optimized based on above-described embodiment one, and in the present embodiment, described according to the call instruction, lookup is answered with described
Include with the sensor and corresponding sensor driver of procedure match:Determine that the screen orientation of the intelligent terminal is transverse screen
Or vertical screen;If it is transverse screen, according to the call instruction, the non-sensing for holding side under the intelligent terminal transverse screen state
It is searched and the sensor of the application matches and corresponding sensor driver in device;If it is vertical screen, according to institute
Call instruction is stated, is searched from the non-sensor for holding side under the intelligent terminal vertical screen state and the application matches
Sensor and corresponding sensor driver.
As shown in Fig. 2, the method for the present embodiment specifically comprises the following steps:
S210 obtains the call instruction of application program in intelligent terminal.
S220 determines that the screen orientation of intelligent terminal is transverse screen or vertical screen.
Wherein it is determined that the mode of the screen orientation of intelligent terminal can be to be collected by the sensor built in intelligent terminal
Data determine the screen orientation of intelligent terminal, such as can be that can pass through the gyroscope built in intelligent terminal to determine intelligence
The screen orientation of terminal.Intelligent terminal can also be determined jointly in conjunction with the gyroscope built in the setting of intelligent terminal and intelligent terminal
Screen orientation.
Specifically, determining that the screen orientation of intelligent terminal is cross according to the collected data of sensor built in intelligent terminal
Screen or vertical screen.
S230, if it is transverse screen, according to call instruction, from the non-sensor for holding side under intelligent terminal transverse screen state
It searches and the sensor of application matches and corresponding sensor driver.
Wherein, when gripping side is that intelligent terminal is in transverse screen state under intelligent terminal transverse screen state, user usually holds intelligence
The region of energy terminal.Therefore, the non-side that holds is other on intelligent terminal in addition to gripping area under intelligent terminal transverse screen state
Region.Such as can be the sound adjusting key near zone of intelligent terminal.
Specifically, the screen state if it is intelligent terminal is transverse screen, according to call instruction input by user, from setting
It is searched and the sensor of application matches and corresponding sensing in the non-sensor for holding side under intelligent terminal transverse screen state
Device driver.
S240, if it is vertical screen, according to call instruction, from the non-sensor for holding side under intelligent terminal vertical screen state
It searches and the sensor of application matches and corresponding sensor driver.
Wherein, when gripping side is that intelligent terminal is in vertical screen state under intelligent terminal vertical screen state, user usually holds intelligence
The region of energy terminal.Therefore, the non-side that holds is other on intelligent terminal in addition to gripping area under intelligent terminal vertical screen state
Region.Such as can be the front camera near zone of intelligent terminal.
Specifically, if the screen state of intelligent terminal is vertical screen, according to call instruction input by user, from being set to
It is searched and the sensor of application matches and corresponding sensor in the non-sensor for holding side under intelligent terminal vertical screen state
Driver.
S250, according to call instruction, call driver drives corresponding sensor.
It is defeated according to user if input by user is the call instruction for A application programs in a specific example
The call instruction entered opens the A applications in intelligent terminal, searches and applies matched sensor with A, and matched sensor is applied with A
Including photoelectric sensor Q and photoelectric sensor P, photoelectric sensor Q is set to the sound adjusting key near zone of intelligent terminal, light
Electric transducer P is set to the front camera near zone of intelligent terminal, according to the collected data of sensor in intelligent terminal
When the screen state that the screen orientation of intelligent terminal is determined as transverse screen, and gets intelligent terminal is transverse screen, corresponding gripping side
Front camera near zone including intelligent terminal, therefore selection is set to the sound adjusting key near zone of intelligent terminal
Photoelectric sensor Q searches sensor driver corresponding with photoelectric sensor Q, according to call instruction input by user, calls
Photoelectric sensor Q.
In another specific example, if input by user is the call instruction for A application programs, according to user
The call instruction of input opens the A applications in intelligent terminal, searches and applies matched sensor with A, and matched sensing is applied with A
Device includes photoelectric sensor Q and photoelectric sensor P, and photoelectric sensor Q is set to the sound adjusting key near zone of intelligent terminal,
Photoelectric sensor P is set to the front camera near zone of intelligent terminal, obtains photoelectric sensor Q and photoelectric sensor P and adopts
The numerical value of the data collected, the numerical value of the collected data of photoelectric sensor P are more than the number of the collected data of photoelectric sensor Q
Value, it is determined that photoelectric sensor Q is blocked, and according to call instruction input by user, calls photoelectric sensor P.
Optionally, if it is vertical screen, according to the call instruction, the non-gripping side under the intelligent terminal vertical screen state
Sensor in search and with the sensor of the application matches and corresponding sensor driver include:
If it is vertical screen, according to the call instruction, from be set to apart from the intelligent terminal receiver be less than it is default away from
From sensor in search and the sensor of the application matches and corresponding sensor driver.
Wherein, the pre-determined distance can be that user sets, or set based on experience value.
Specifically, being set to and being less than the sensor of pre-determined distance apart from intelligent terminal receiver vertical screen shape is in for intelligent terminal
The non-sensor for holding side under state, such as can be the sensor being set near front camera.
Specifically, if the screen orientation of intelligent terminal is vertical screen, according to call instruction input by user, from be set to away from
It is less than the sensor searched in the sensor of pre-determined distance with application matches from intelligent terminal receiver, and searches and above-mentioned biography
The corresponding driving of sensor.
The technical solution of the present embodiment, it is thus only necessary to change a small amount of code, you can realization while compatible multiple same types
Sensor.And it works do not interfere with each other between each other, stability is good, meets the demand of user and product, makes system work(
Can be more powerful, user experience is more preferable.
The technical solution of the present embodiment, by the call instruction for obtaining application program in intelligent terminal;According to call instruction,
It searches and the sensor of application matches and corresponding sensor driver, wherein same type sensor at least two,
Each sensor corresponds to different drivers respectively;According to call instruction, call driver drives corresponding sensor, with
It realizes while being compatible with multiple same type of sensors, meet the needs of user's different scenes.
Embodiment three
Fig. 3 is the structural schematic diagram of the sensor control in a kind of intelligent terminal in the embodiment of the present invention three.This
Embodiment is applicable to the case where control of the sensor in intelligent terminal, which can be used software and/or the mode of hardware is real
Existing, which can be integrated in the equipment of the sensor control function in any offer intelligent terminal, as shown in figure 3, the intelligence
Sensor control in energy terminal specifically includes:Acquisition module 310, searching module 320 and calling module 330.
Wherein, acquisition module 310, the call instruction for obtaining application program in intelligent terminal;
Searching module 320, for according to the call instruction, searching and the sensor of the application matches and corresponding
Sensor driver, wherein same type sensor at least two, each sensor correspond to different driving journeys respectively
Sequence;
Calling module 330, for according to the call instruction, the driver being called to drive corresponding sensor.
Optionally, the searching module 320 includes:
Determination unit, for determining that the screen orientation of the intelligent terminal is transverse screen or vertical screen;
First searching unit is used for if it is transverse screen, according to the call instruction, from the intelligent terminal transverse screen state
Under it is non-hold side sensor in search and the sensor of the application matches and corresponding sensor driver;
Second searching unit is used for if it is vertical screen, according to the call instruction, from the intelligent terminal vertical screen state
Under it is non-hold side sensor in search and the sensor of the application matches and corresponding sensor driver.
Optionally, second searching unit is specifically used for:
If it is vertical screen, according to the call instruction, from be set to apart from the intelligent terminal receiver be less than it is default away from
From sensor in search and the sensor of the application matches and corresponding sensor driver.
Optionally, the searching module 320 is specifically used for:
According to the call instruction, the sensor with the application matches is searched;
Obtain the output information of the sensor;
Determine whether the sensor is blocked according to the output information of the sensor;
Never it searches in the sensor being blocked and is driven with the sensor of the application matches and corresponding sensor
Program.
Optionally, the sensor includes photoelectric sensor and/or range sensor.
The technical solution of the present embodiment, by the call instruction for obtaining application program in intelligent terminal;According to the calling
Instruction is searched and the sensor of the application matches and corresponding sensor driver, wherein same type sensor is extremely
It it is less two, each sensor corresponds to different drivers respectively;According to the call instruction, the driver is called to drive
Corresponding sensor is moved, to realize while be compatible with multiple same type of sensors meeting the needs of user's different scenes.
The said goods can perform the method that any embodiment of the present invention is provided, and have the corresponding function module of execution method
And advantageous effect.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
1. the sensor control method in a kind of intelligent terminal, which is characterized in that including:
Obtain the call instruction of application program in intelligent terminal;
According to the call instruction, lookup and the sensor of the application matches and corresponding sensor driver,
In, same type sensor at least two, each sensor corresponds to different drivers respectively;
According to the call instruction, the driver is called to drive corresponding sensor.
2. according to the method described in claim 1, it is characterized in that, described according to the call instruction, lookup and the application
The sensor of procedure match and corresponding sensor driver include:
Determine that the screen orientation of the intelligent terminal is transverse screen or vertical screen;
If it is transverse screen, according to the call instruction, from the non-sensor for holding side under the intelligent terminal transverse screen state
It searches and the sensor of the application matches and corresponding sensor driver;
If it is vertical screen, according to the call instruction, from the non-sensor for holding side under the intelligent terminal vertical screen state
It searches and the sensor of the application matches and corresponding sensor driver.
3. according to the method described in claim 2, it is characterized in that, if it is vertical screen, according to the call instruction, from described
It is searched and the sensor of the application matches and corresponding biography in the non-sensor for holding side under intelligent terminal vertical screen state
Sensor driver includes:
If it is vertical screen, according to the call instruction, it is less than pre-determined distance apart from the intelligent terminal receiver from being set to
It is searched and the sensor of the application matches and corresponding sensor driver in sensor.
4. according to the method described in claim 1, it is characterized in that, described according to the call instruction, lookup and the application
The sensor of procedure match and corresponding sensor driver include:
According to the call instruction, the sensor with the application matches is searched;
Obtain the output information of the sensor;
Determine whether the sensor is blocked according to the output information of the sensor;
Never it is searched and the sensor of the application matches and corresponding sensor driver in the sensor being blocked.
5. according to the method described in claim 1, it is characterized in that, the sensor includes photoelectric sensor and/or apart from biography
Sensor.
6. the sensor control in a kind of intelligent terminal, which is characterized in that including:
Acquisition module, the call instruction for obtaining application program in intelligent terminal;
Searching module, for according to the call instruction, searching and the sensor of the application matches and corresponding sensing
Device driver, wherein same type sensor at least two, each sensor correspond to different drivers respectively;
Calling module, for according to the call instruction, the driver being called to drive corresponding sensor.
7. device according to claim 6, which is characterized in that the searching module includes:
Determination unit, for determining that the screen orientation of the intelligent terminal is transverse screen or vertical screen;
First searching unit is used for if it is transverse screen, non-under the intelligent terminal transverse screen state according to the call instruction
It holds in the sensor of side and searches and the sensor of the application matches and corresponding sensor driver;
Second searching unit is used for if it is vertical screen, non-under the intelligent terminal vertical screen state according to the call instruction
It holds in the sensor of side and searches and the sensor of the application matches and corresponding sensor driver.
8. device according to claim 7, which is characterized in that second searching unit is specifically used for:
If it is vertical screen, according to the call instruction, it is less than pre-determined distance apart from the intelligent terminal receiver from being set to
It is searched and the sensor of the application matches and corresponding sensor driver in sensor.
9. device according to claim 6, which is characterized in that the searching module is specifically used for:
According to the call instruction, the sensor with the application matches is searched;
Obtain the output information of the sensor;
Determine whether the sensor is blocked according to the output information of the sensor;
Never it is searched and the sensor of the application matches and corresponding sensor driver in the sensor being blocked.
10. device according to claim 6, which is characterized in that the sensor includes photoelectric sensor and/or apart from biography
Sensor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810128670.XA CN108363626A (en) | 2018-02-08 | 2018-02-08 | Sensor control method and device in a kind of intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810128670.XA CN108363626A (en) | 2018-02-08 | 2018-02-08 | Sensor control method and device in a kind of intelligent terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108363626A true CN108363626A (en) | 2018-08-03 |
Family
ID=63004967
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810128670.XA Pending CN108363626A (en) | 2018-02-08 | 2018-02-08 | Sensor control method and device in a kind of intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108363626A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109710433A (en) * | 2018-12-30 | 2019-05-03 | 浙江蓝卓工业互联网信息技术有限公司 | Data processing method, apparatus and system based on metadata driven |
CN110688162A (en) * | 2019-09-16 | 2020-01-14 | 广东小天才科技有限公司 | Method and device for supporting multiple sensors of same type based on high-pass platform |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140071274A1 (en) * | 2008-06-06 | 2014-03-13 | Larry Golden | Multi Sensor Detection, Stall to Stop and Lock Disabling System |
CN105278679A (en) * | 2014-07-02 | 2016-01-27 | 富士通株式会社 | Portable terminal device having sensors |
CN105575334A (en) * | 2015-07-10 | 2016-05-11 | 宇龙计算机通信科技(深圳)有限公司 | Screen brightness adjusting method and user terminal |
CN106527897A (en) * | 2016-11-21 | 2017-03-22 | 京东方科技集团股份有限公司 | Intelligent terminal and control method therefor |
CN106598444A (en) * | 2016-12-06 | 2017-04-26 | 广东欧珀移动通信有限公司 | Mobile terminal control method and mobile terminal |
CN106933667A (en) * | 2017-04-01 | 2017-07-07 | 成都市极米科技有限公司 | Sensing data processing method and processing device |
-
2018
- 2018-02-08 CN CN201810128670.XA patent/CN108363626A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140071274A1 (en) * | 2008-06-06 | 2014-03-13 | Larry Golden | Multi Sensor Detection, Stall to Stop and Lock Disabling System |
CN105278679A (en) * | 2014-07-02 | 2016-01-27 | 富士通株式会社 | Portable terminal device having sensors |
CN105575334A (en) * | 2015-07-10 | 2016-05-11 | 宇龙计算机通信科技(深圳)有限公司 | Screen brightness adjusting method and user terminal |
CN106527897A (en) * | 2016-11-21 | 2017-03-22 | 京东方科技集团股份有限公司 | Intelligent terminal and control method therefor |
CN106598444A (en) * | 2016-12-06 | 2017-04-26 | 广东欧珀移动通信有限公司 | Mobile terminal control method and mobile terminal |
CN106933667A (en) * | 2017-04-01 | 2017-07-07 | 成都市极米科技有限公司 | Sensing data processing method and processing device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109710433A (en) * | 2018-12-30 | 2019-05-03 | 浙江蓝卓工业互联网信息技术有限公司 | Data processing method, apparatus and system based on metadata driven |
CN109710433B (en) * | 2018-12-30 | 2021-04-27 | 浙江蓝卓工业互联网信息技术有限公司 | Metadata-driven data processing method, device and system |
CN110688162A (en) * | 2019-09-16 | 2020-01-14 | 广东小天才科技有限公司 | Method and device for supporting multiple sensors of same type based on high-pass platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9602954B2 (en) | Mobile terminal and method for controlling the same | |
CN105320277B (en) | Wearable device and the method for controlling it | |
KR101678812B1 (en) | Mobile terminal and operation control method thereof | |
CN106020671A (en) | Adjustment method and device for response sensitivity of fingerprint sensor | |
US20100225607A1 (en) | Mobile terminal and method of controlling the mobile terminal | |
CN101626427A (en) | Controlling a mobile terminal with a gyro-sensor | |
CN107025006A (en) | A kind of information processing method and electronic equipment | |
CN105808040A (en) | Display method of graphical user interface, and mobile terminal | |
CN108777766B (en) | Multi-person photographing method, terminal and storage medium | |
EP2597557B1 (en) | Mobile terminal and control method thereof | |
CN109683763A (en) | A kind of icon moving method and mobile terminal | |
CN113064823B (en) | Method and device for testing functions of parts of automobile and computer storage medium | |
CN109814772A (en) | A kind of application program image target moving method and terminal device | |
CN110502163A (en) | The control method and terminal device of terminal device | |
CN106569762A (en) | Dual-screen terminal light-up method and device as well as dual-screen terminal | |
CN104081307A (en) | Image processing apparatus, image processing method, and program | |
US20150100804A1 (en) | Information Processing Method and Electronic Apparatus | |
CN103546676A (en) | Automatic photographing device and method | |
CN108763317A (en) | A kind of auxiliary chooses the method and terminal device of picture | |
CN108388396A (en) | A kind of interface switching method and mobile terminal | |
CN108363626A (en) | Sensor control method and device in a kind of intelligent terminal | |
KR101892216B1 (en) | Apparatas and method of handing a touch input in a portable terminal | |
CN106506945A (en) | A kind of control method and terminal | |
EP4273830A1 (en) | Method and apparatus for monitoring vehicle driving information | |
CN108063861A (en) | The method, apparatus and mobile terminal that a kind of state is reminded |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180803 |