CN104536565B - Application control method and device - Google Patents
Application control method and device Download PDFInfo
- Publication number
- CN104536565B CN104536565B CN201410802680.9A CN201410802680A CN104536565B CN 104536565 B CN104536565 B CN 104536565B CN 201410802680 A CN201410802680 A CN 201410802680A CN 104536565 B CN104536565 B CN 104536565B
- Authority
- CN
- China
- Prior art keywords
- sensing data
- control instruction
- sensor
- configuration information
- simulation
- 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.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The present invention provides a kind of application control method and devices, which comprises obtains configuration information, the configuration information includes the mapping relations of sensing data range and control instruction;Sensing data is obtained in real time from operating system;When detecting the sensing data and the sensing data commensurate in scope, according to the mapping relations of the sensing data range and control instruction, the sensing data is converted to the control instruction of simulation;The control instruction of the simulation is passed to application program by the input service module by the input service module that the control instruction of the simulation is passed to the operating system.Using application control method provided by the invention and device, application program can also be controlled by the power and energy of sensor by breaking down even if the input equipment of such as key or Trackpad, and save cost, versatile.
Description
Technical field
The present invention relates to technical field of computer information processing, more particularly to a kind of application control method and dress
It sets.
Background technique
Application program is run at the terminal, and certain functions usually require user and pass through operation button, touch Trackpad etc.
Input equipment, which to input to application passes, to be instructed, and is made it and is met expected response.For example user clicks and is arranged at end
Return function key on end, then execute the function of return, can recall menu circle if clicking the tools menu exhalation key in terminal
Face etc..
However, currently used instruct such as the input equipment of key or Trackpad for application passes input, when long
Between be easy to happen failure after use, at this time application program will be unable to using;And manpower long-time operation key or touch-control
Plate also results in finger fatigue.
Summary of the invention
Based on this, it is necessary to refer to for being inputted at present by the input equipment such as key or Trackpad for application passes
It enables, the problem of being easy to happen failure, a kind of application control method and device is provided.
A kind of application control method, which comprises
Configuration information is obtained, the configuration information includes the mapping relations of sensing data range and control instruction;
Sensing data is obtained in real time from operating system;
When detecting the sensing data and the sensing data commensurate in scope, according to the sensing data range
With the mapping relations of control instruction, the sensing data is converted to the control instruction of simulation;
The input service module that the control instruction of the simulation is passed to the operating system is serviced by the input
Module and the control instruction of the simulation is passed into application program.
A kind of application program controlling device, described device include:
Configuration information obtains module, and for obtaining configuration information, the configuration information includes sensing data range and control
Make the mapping relations of instruction;
Sensing data obtains module, for obtaining sensing data in real time from operating system;
Control module, when for detecting the sensing data and the sensing data commensurate in scope, according to described
The sensing data is converted to the control instruction of simulation by the mapping relations of sensing data range and control instruction;By institute
The control instruction for stating simulation passes to the input service module of the operating system, will be described by the input service module
The control instruction of simulation passes to application program.
Above-mentioned application control method and device convert the function of sensor, and the control for being mapped as simulation refers to
It enables, then passes to application program, so that it may replace controlling application such as the input equipment of key or Trackpad by sensor
Program, breaking down even if the input equipment of such as key or Trackpad can also be controlled by the power and energy of sensor using journey
Sequence.Moreover, the control instruction of simulation is passed to application program by the input service module that operating system itself is utilized, application
Program itself does not need to rewrite to realize this application program controlling mode, and can be adapted for various using journey
Sequence has saved cost, versatile.
Detailed description of the invention
Fig. 1 is the flow diagram of application control method in one embodiment;
Fig. 2 is the schematic diagram of sensor type configuration interface in one embodiment;
Fig. 3 is the schematic diagram of sensing data range configuration interface in one embodiment;
Fig. 4 is the schematic diagram of trigger event configuration interface in one embodiment;
Fig. 5 is the schematic diagram of Trigger Function configuration interface in one embodiment;
Fig. 6 is the schematic diagram that mapping result determines interface in one embodiment;
Fig. 7 is the schematic diagram of configuration information editing interface in one embodiment;
Fig. 8 is the schematic diagram that sensing data range corrects interface in one embodiment;
Fig. 9 is the structural block diagram of application program controlling device in one embodiment;
Figure 10 is the structural block diagram of application program controlling device in another embodiment;
Figure 11 is the structural block diagram of application program controlling device in further embodiment;
Figure 12 is the environment map of application program controlling device in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
As shown in Figure 1, in one embodiment, providing a kind of application control method, the present embodiment is in this way
It is illustrated applied to terminal.The terminal can be the mobile terminals such as mobile phone, tablet computer, be also possible to desktop computer.
Independent operating has middleware services module in the terminal, for realizing the application control method.This method specifically include as
Lower step:
Step 102, configuration information is obtained, configuration information includes the mapping relations of sensing data range and control instruction.
Specifically, terminal can obtain configuration information by reading the configuration file of designated position storage, or can be with
By being cached after providing configuration interface typing configuration information, to obtain the configuration information of caching when needed.Configuration information
It is the information for limiting sensing data and how being converted to corresponding control instruction, refers to including at least sensing data range with control
The mapping relations of order.It can be closed by sensing data range with the corresponding of the trigger event for triggering corresponding control instruction
System is to indicate this mapping relations.
Sensor (English name: Transducer or Sensor) is a kind of detection device, can experience measured letter
Breath, and the information that can will be experienced are for conversion into electric signal or the information output of other required forms, according to certain rules to meet
The requirement such as transmission, processing, storage, display, record and control of information.Sensor includes but is not limited to that gravity passes in the present embodiment
Sensor, acceleration transducer, gyro sensor, geomagnetic sensor, temperature sensor, range sensor, light sensor and
Pressure sensor.
Step 104, sensing data is obtained in real time from operating system.
Specifically, operating system here can be Android (Android) operating system, Windows (form) operation system
System or iOS operating system (operating system of Apple Inc.'s exploitation).Operating system itself or by installation driver after
Have the function of obtaining sensing data, sensor meeting output transducer data, operating system when having an effect then pass through prison
It listens the output of sensor and gets sensing data.
Step 106, when detecting sensing data and sensing data commensurate in scope, according to sensing data range and control
Sensing data, is converted to the control instruction of simulation by the mapping relations for making instruction.
If the mapping relations of sensing data range and control instruction indicate the sensing data of sensor offer in the biography
In sensor data area, then the sensing data is mapped as the control instruction.It in one embodiment can be according to sensor
The mapping relations of data area and control instruction create corresponding simulation trigger event, then trigger phase according to the modeling event
The control instruction for the simulation answered.
If specific sensor is motion sensor, such as gravity sensor, gyro sensor etc., then its sensing provided
Device data can be the axial data of at least one in the data for three axial directions for indicating forced direction and size.If sensor
It is pressure sensor, then its sensing data provided can be the value for indicating stress size.Sensing data range can be
It is more than or less than or is equal to a certain value, is also possible to the interval value with two endpoints of head and the tail.
Control instruction can be any control instruction of application program support inputted, can be in terminal key or
Control instruction corresponding to predefined touch control gesture, such as the return control instruction of return key are mapped as a sensing data
Range, and the menu exhalation control instruction of menu exhalation key is mapped as another sensing data range.Here the control simulated
System instruction refers to the control instruction not and is by conventional when detecting the actual trigger events such as key-press event or touch event
The control instruction for being triggered, but being converted according to sensing data.
Step 108, the input service module that the control instruction of simulation is passed to operating system, by inputting service module
And the control instruction of simulation is passed into application program.
Specifically, input service module is run on an operating system as independently operated service module, for being application
Program provides the support of input service.For example user clicks to control caused by mouse, touch Trackpad or pressing keys and refer to
Enabling all can pass to application program by inputting service module.Here by the control instruction of simulation also by the input service module
Application program is passed to, makes a response application program according to the control instruction of the simulation.Application program does not need to be difficult to point yet
Distinguish that the control instruction that input service module provides is what terminal was generated when detecting corresponding trigger event, or simulated
Control instruction.
Here the application program of the control instruction for being passed simulation can be support input control instruction, it is specified or
The arbitrary application program of person, such as instant messaging application program, shopping application program or game application etc..In a reality
It applies in example, the control instruction of simulation is for triggering preset multiple operations.Specifically, preset multiple operations can be relevant
Or incoherent operation.Relevant multiple preset operations can be multiple button operations for trigger one function with/
Or the combination of touch operation, incoherent operation can be multiple button operations for triggering different functions respectively and/or
Touch operation.In the present embodiment, the control instruction of simulation realizes multiplexing functions for triggering preset multiple operations, can be with
It is applied in test application scene or analogue-key scene.
Above-mentioned application control method converts the function of sensor, is mapped as the control instruction of simulation, then passes
Pass application program, so that it may replace controlling application program such as the input equipment of key or Trackpad by sensor, i.e.,
Application program can also be controlled by the power and energy of sensor by so that the input equipment such as key or Trackpad is broken down.And
And the control instruction of simulation is passed to application program, application program by the input service module that operating system itself is utilized
It itself does not need to rewrite to realize this application program controlling mode, and can be adapted for various application programs,
Cost has been saved, it is versatile.
In one embodiment, step 104 includes: the sensing data for obtaining multiple sensors in real time from operating system.
And step 106 specifically includes: detecting the sensing data of each sensor sensor number corresponding with each sensor respectively
It, will be multiple according to the many-to-one mapping relations of each matched sensing data range and control instruction when according to commensurate in scope
The sensing data of sensor is converted to the control instruction of a simulation.In the present embodiment, multiple sensors can cooperate
The control instruction of simulation is triggered, compared to the sensing data for simply using single sensor, may be implemented to application program
A greater variety of control modes, practicability are stronger.In other embodiments, the control instruction of simulation is preset multiple for triggering
Operation, can further promote the control ability to application program in this way.
In one embodiment, configuration information further includes sensor type and specifies axial;Then step 104 specifically includes:
It is obtained in real time from operating system and the specified axial sensing data of the matched sensor of sensor type.
Specifically, the sensor in the present embodiment has multiple axial, such as gravity sensor, acceleration transducer
Or gyro sensor etc. at least has that there are three axial.Specified axial direction then refers in multiple axial directions of sensor appointed one
Or multiple axial directions, multiple axial directions of sensor can be designated.Sensor type refers to the data for indicating sensor,
For example various types of sensors can be indicated with different numbers.
In the present embodiment, by being pre-configured with sensor type and specifying axially, the application program controlling side can be made
Method can be applied to the terminal with multiple sensors, and the axial direction of conversion function can be used for unrestricted choice, enhance general
Property.Moreover, the control program being made according to the application control method can be adapted for being respectively provided with it is different types of
The various terminals of sensor, so that the versatility of control program is very strong.
In one embodiment, application control method further include: configuration interface is provided, is obtained in configuration interface
The sensing data range of typing and mapping relations, sensor type and the specified axial direction of control instruction are as with confidence
Breath, and configuration file is stored as according to predefined format.And step 102 specifically includes: according to predefined format from configuration file
Middle reading configuration information.
Configuration interface includes that sensor type configuration interface as shown in Figure 2, sensing data range as shown in Figure 3 are matched
It sets interface, trigger event configuration interface as shown in Figure 4, Trigger Function configuration interface as shown in Figure 5, as shown in FIG. 6 reflect
It penetrates result and determines interface and configuration information editing interface as shown in Figure 7.Wherein sensor type configuration interface is for configuring
Sensor type, sensing data range configuration interface is for configuring specified axial direction and sensing data range, trigger event
Configuration interface and Trigger Function configuration interface are then used for sensors configured data area mapped control instruction.
Specifically, sensor type configuration interface as shown in Figure 2 is initially entered, from the sensor type configuration interface
Sensor type is selected in the sensor type list of displaying, then branches to sensing data range configuration as shown in Figure 3
Interface.Specified axial direction is selected in the axial direction list shown in sensing data range configuration interface and sets corresponding sensor
Range then branches to trigger event configuration interface as shown in Figure 4.The trigger event shown in trigger event configuration interface
Trigger event type is selected in list of types, then branches to Trigger Function configuration interface as shown in Figure 5.Match in Trigger Function
It sets and shows control instruction option list corresponding with selected trigger event type in interface, select an option wherein to incite somebody to action
Ranges of sensors mapped control instruction of its corresponding control instruction as setting, then branches to as shown in FIG. 6 reflect
It penetrates result to determine in interface, confirmation generates configuration information after saving.Configuration interface can also include configuration information as shown in Figure 7
Editing interface, the configuration information saved is modified or be deleted.Each configuration interface included by configuration interface
Content can be freely combined and be formed the interface of other forms according to above-mentioned logic, be not construed as limiting here.Configuration interface can be with
The configuration information repeatedly set can save as individual configuration file respectively, can also be stored in same configuration text
It is opened in part and by predefined separators.Predefined format can be every row in order and respectively indicate the one of configuration information
, the corresponding configuration information of predefined field record can also be corresponded to.It is consistent when reading configuration file using with storage
Predefined format is read.
In one embodiment, application control method further include: record detects every time and sensing data
The sensing data and its mapped control instruction of commensurate in scope;According to the sensing data and its mapped control recorded
System instruction is counted to obtain statistical result, and statistical result for adjusting reflecting for sensing data range and control instruction accordingly
Penetrate relationship.
Specifically, sensing data range set by user is possible and improper, needs to record each inspection in this case
It is measuring with sensing data commensurate in scope sensing data and the sensing data mapped control instruction, with evidence
This obtains statistical result to count.Statistical result can be provided according to the normal distribution of sensing data, specifically can use normal state
The sensing data recorded corresponding to probability in the preset range of distribution peaks vicinity is as the sensing in statistical result
Device data.Statistical result can certainly be obtained by assembly average, weighted average.
With the sensing data of sensing data commensurate in scope can recorde for shaped like FUNCTION1 (a, b, c), (d, e,
F) ... ... }, wherein FUNCTION1 be control instruction mark, (a, b, c), (d, e, f) be detect every time and sensor
The each axial data of the matched sensor of data area.Statistical result can then be expressed as FUNCTION1 (g, ± h), wherein g
It can be the sensing data recorded corresponding to the probability at the normal distribution peak value of the sensor data, or can be
Average value, the weighted average for the sensing data of statistics recorded, h are statistical result scope control parameter, can be fixation
Value.
Configuration interface can also include that sensing data range as shown in Figure 8 corrects interface, for touching in response to user
The instruction of the confirmation correction of hair, the biography in the mapping relations of sensing data range and control instruction is adjusted according to statistical result
Sensor data area.
In one embodiment, application control method further include: reflected the sensing data recorded with it
The control instruction penetrated is uploaded onto the server storage;It is united according to the sensing data and its mapped control instruction that have recorded
The step of meter is to obtain statistical result specifically includes: by server with according to sensing data stored on server and its
Mapped control instruction is counted to obtain statistical result.
In the present embodiment, the local sensing data recorded and its mapped control instruction can be uploaded into service
Device storage, the sensing data and its mapped control instruction for uploading server according to user provide a statistics knot
Fruit can provide according to normal distribution.Sensing data and its mapped control that server is uploaded according to same user refer to
Order is counted, can also be counted according to the sensing data and its mapped control instruction that a large number of users is uploaded and
The statistical result of the synthesis of acquisition, the user terminals for being connected to server all in this way can get the statistics from server
As a result, being optimized to the corresponding relationship of the sensing data and its mapped control instruction that respectively locally record.
As shown in figure 9, in one embodiment, providing a kind of application program controlling device 900, have realization above-mentioned each
The function of the application control method of a embodiment.The application program controlling device 900 includes that configuration information obtains module
902, sensing data obtains module 904 and control module 906.
Configuration information obtains module 902, and for obtaining configuration information, configuration information includes sensing data range and control
The mapping relations of instruction.
Specifically, configuration information obtains module 902 and can be used for obtaining by the configuration file for reading designated position storage
Configuration information, or can be by being cached after providing configuration interface typing configuration information, to obtain caching when needed
Configuration information.Configuration information is the information for limiting sensing data and how being converted to corresponding control instruction, includes at least sensing
The mapping relations of device data area and control instruction.Can by sensing data range with for triggering corresponding control instruction
The corresponding relationship of trigger event indicate this mapping relations.
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 electric signal or the information output of other required forms, to meet transmission, processing, storage, the display, record of information
With control etc. require.Sensor includes but is not limited to gravity sensor, acceleration transducer, gyro sensors in the present embodiment
Device, geomagnetic sensor, temperature sensor, range sensor, light sensor and pressure sensor.
Sensing data obtains module 904, for obtaining sensing data in real time from operating system.
Specifically, operating system here can be Android operation system, Windows operating system or iOS operation
System.Operating system itself or by having the function of acquisition sensing data after installation driver, sensor occurring
Meeting output transducer data when effect, operating system then get sensing data by monitoring the output of sensor.
Control module 906, when for detecting sensing data and sensing data commensurate in scope, according to sensing data
Sensing data is converted to the control instruction of simulation by the mapping relations of range and control instruction;The control instruction of simulation is passed
The control instruction of simulation is passed to application program by input service module by the input service module for passing operating system.
If the mapping relations of sensing data range and control instruction indicate the sensing data of sensor offer in the biography
In sensor data area, then the sensing data is mapped as the control instruction.Control module 906 can be used in one embodiment
In the mapping relations according to sensing data range and control instruction, corresponding simulation trigger event is created, then according to the mould
Quasi- event triggers the control instruction simulated accordingly.
If specific sensor is motion sensor, such as gravity sensor, gyro sensor etc., then its sensing provided
Device data can be the axial data of at least one in the data for three axial directions for indicating forced direction and size.If sensor
It is pressure sensor, then its sensing data provided can be the value for indicating stress size.Sensing data range can be
It is more than or less than or is equal to a certain value, is also possible to the interval value with two endpoints of head and the tail.
Control instruction can be any control instruction of application program support inputted, can be in terminal key or
Control instruction corresponding to predefined touch control gesture, such as the return control instruction of return key are mapped as a sensing data
Range, and the menu exhalation control instruction of menu exhalation key is mapped as another sensing data range.Here the control simulated
System instruction refers to the control instruction not and is by conventional when detecting the actual trigger events such as key-press event or touch event
The control instruction for being triggered, but being converted according to sensing data.
Referring to Fig.1 2, input service module is run on an operating system as independently operated service module, for answer
The support of input service is provided with program.For example user clicks mouse, touches control caused by Trackpad or pressing keys
Instruction all can pass to application program by inputting service module.Here the control instruction of simulation is serviced into mould also by the input
Block passes to application program, makes a response application program according to the control instruction of the simulation.Application program does not need to be difficult to yet
Differentiating the control instruction that input service module provides is that terminal is generated when detecting corresponding trigger event, or simulates
Control instruction.
Here the application program of the control instruction for being passed simulation can be support input control instruction, it is specified or
The arbitrary application program of person, such as instant messaging application program, shopping application program or game application etc..In a reality
It applies in example, the control instruction of simulation is for triggering preset multiple operations.Specifically, preset multiple operations can be relevant
Or incoherent operation.Relevant multiple preset operations can be multiple button operations for trigger one function with/
Or the combination of touch operation, incoherent operation can be multiple button operations for triggering different functions respectively and/or
Touch operation.In the present embodiment, the control instruction of simulation realizes multiplexing functions for triggering preset multiple operations, can be with
It is applied in test application scene or analogue-key scene.
Above-mentioned application program controlling device 900, the function of sensor is converted, and is mapped as the control instruction of simulation,
Application program is passed to again, so that it may replace controlling using journey such as the input equipment of key or Trackpad by sensor
Sequence, application program can also be controlled by the power and energy of sensor by breaking down even if the input equipment of key or Trackpad.
Moreover, the control instruction of simulation is passed to application program by the input service module that operating system itself is utilized, using journey
Sequence itself does not need to rewrite to realize this application program controlling mode, and can be adapted for various using journey
Sequence has saved cost, versatile.
In one embodiment, sensing data obtains module 904 and is also used to obtain multiple sensings in real time from operating system
The sensing data of device.Control module 906 be also used to detect the sensing data of each sensor respectively with each sensor
When corresponding sensing data commensurate in scope, reflected according to each matched sensing data range and the many-to-one of control instruction
Relationship is penetrated, the sensing data of multiple sensors is converted to the control instruction of a simulation.In the present embodiment, multiple sensors
It can cooperate to trigger the control instruction of simulation, compared to the sensing data for simply using single sensor, Ke Yishi
Now to a greater variety of control modes of application program, practicability is stronger.In other embodiments, the control instruction of simulation is for touching
It sends out multiple operations preset, can further promote the control ability to application program in this way.
In one embodiment, configuration information further includes sensor type and specifies axial;Sensing data obtains module
904 are also used to obtain in real time from operating system and the specified axial sensing data of the matched sensor of sensor type.
Specifically, the sensor in the present embodiment has multiple axial, such as gravity sensor, acceleration transducer
Or gyro sensor etc. at least has that there are three axial.Specified axial direction then refers in multiple axial directions of sensor appointed one
Or multiple axial directions, multiple axial directions of sensor can be designated.Sensor type refers to the data for indicating sensor,
For example various types of sensors can be indicated with different numbers.
In the present embodiment, by being pre-configured with sensor type and specifying axially, the application program controlling side can be made
Method can be applied to the terminal with multiple sensors, and the axial direction of conversion function can be used for unrestricted choice, enhance general
Property.Moreover, the control program being made according to the application control method can be adapted for being respectively provided with it is different types of
The various terminals of sensor, so that the versatility of control program is very strong.
As shown in Figure 10, in one embodiment, application program controlling device 900 further include: interface manager module
908, for providing configuration interface, the mapping for obtaining the sensing data range and control instruction of typing in configuration interface is closed
System, sensor type and specified axial direction are to be stored as configuration file as configuration information, and according to predefined format.And it configures
Data obtaining module 902 is also used to read configuration information from configuration file according to predefined format.
Configuration interface provided by interface manager module 908 includes sensor type configuration interface as shown in Figure 2, such as schemes
Sensing data range configuration interface, trigger event configuration interface as shown in Figure 4, Trigger Function as shown in Figure 5 shown in 3
Configuration interface and mapping result as shown in FIG. 6 determine interface.Wherein sensor type configuration interface is used for sensors configured
Type, sensing data range configuration interface configure boundary for configuring specified axial direction and sensing data range, trigger event
Face and Trigger Function configuration interface are then used for sensors configured data area mapped control instruction.
Specifically, sensor type configuration interface as shown in Figure 2 is initially entered, from the sensor type configuration interface
Sensor type is selected in the sensor type list of displaying, then branches to sensing data range configuration as shown in Figure 3
Interface.Specified axial direction is selected in the axial direction list shown in sensing data range configuration interface and sets corresponding sensor
Range then branches to trigger event configuration interface as shown in Figure 4.The trigger event shown in trigger event configuration interface
Trigger event type is selected in list of types, then branches to Trigger Function configuration interface as shown in Figure 5.Match in Trigger Function
It sets and shows control instruction option list corresponding with selected trigger event type in interface, select an option wherein to incite somebody to action
Ranges of sensors mapped control instruction of its corresponding control instruction as setting, then branches to as shown in FIG. 6 reflect
It penetrates result to determine in interface, confirmation generates configuration information after saving.Configuration interface can also include configuration information as shown in Figure 7
Editing interface, the configuration information saved is modified or be deleted.Each configuration interface included by configuration interface
Content can be freely combined and be formed the interface of other forms according to above-mentioned logic, be not construed as limiting here.Configuration interface can be with
The configuration information repeatedly set can save as individual configuration file respectively, can also be stored in same configuration text
It is opened in part and by predefined separators.Predefined format can be every row in order and respectively indicate the one of configuration information
, the corresponding configuration information of predefined field record can also be corresponded to.It is consistent when reading configuration file using with storage
Predefined format is read.
As shown in figure 11, in one embodiment, application program controlling device 900 further include: logging modle 910 and system
Count module 912.
Logging modle 910, for record it is detecting every time with sensing data commensurate in scope sensing data and its
Mapped control instruction.Statistical module 912, for according to the sensing data that has recorded and its mapped control instruction into
Row statistics is to obtain statistical result, and statistical result for adjusting the mapping relations of sensing data range and control instruction accordingly.
Specifically, sensing data range set by user is possible and improper, needs to record each inspection in this case
It is measuring with sensing data commensurate in scope sensing data and the sensing data mapped control instruction, with evidence
This obtains statistical result to count.Statistical result can be provided according to the normal distribution of sensing data, specifically can use normal state
The sensing data recorded corresponding to probability in the preset range of distribution peaks vicinity is as the sensing in statistical result
Device data.Statistical result can certainly be obtained by assembly average, weighted average.
With the sensing data of sensing data commensurate in scope can recorde for shaped like FUNCTION1 (a, b, c), (d, e,
F) ... ... }, wherein FUNCTION1 be control instruction mark, (a, b, c), (d, e, f) be detect every time and sensor
The each axial data of the matched sensor of data area.Statistical result can then be expressed as FUNCTION1 (g, ± h), wherein g
It can be the sensing data recorded corresponding to the probability at the normal distribution peak value of the sensor data, or can be
Average value, the weighted average for the sensing data of statistics recorded, h are statistical result scope control parameter, can be fixation
Value.
Configuration interface can also include that sensing data range as shown in Figure 8 corrects interface, for touching in response to user
The instruction of the confirmation correction of hair, the biography in the mapping relations of sensing data range and control instruction is adjusted according to statistical result
Sensor data area.
In one embodiment, the sensing data and its mapped that logging modle 910 is also used to have recorded control
Instruct storage of uploading onto the server.Statistical module 912 is also used to through server according to sensor stored on server
Data and its mapped control instruction are counted to obtain statistical result.
In the present embodiment, the local sensing data recorded and its mapped control instruction can be uploaded into service
Device storage, the sensing data and its mapped control instruction for uploading server according to user provide a statistics knot
Fruit can provide according to normal distribution.Sensing data and its mapped control that server is uploaded according to same user refer to
Order is counted, can also be counted according to the sensing data and its mapped control instruction that a large number of users is uploaded and
The statistical result of the synthesis of acquisition, the user terminals for being connected to server all in this way can get the statistics from server
As a result, being optimized to the corresponding relationship of the sensing data and its mapped control instruction that respectively locally record.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (8)
1. a kind of application control method, which comprises
Configuration information is obtained, the configuration information includes the mapping relations of sensing data range and control instruction;
Obtain the sensing data of multiple sensors in real time from operating system;
Detect the sensing data of each sensor respectively sensing data commensurate in scope corresponding with each sensor when, root
According to the many-to-one mapping relations of each matched sensing data range and control instruction, the sensing data is converted to
The control instruction of simulation;The control instruction of the simulation is triggered when not being by detecting actual trigger event;
The input service module that the control instruction of the simulation is passed to the operating system passes through the input service module
And the control instruction of the simulation is passed into application program;
Record the sensing data and its mapped control instruction with the sensing data commensurate in scope detected every time;
It is counted according to the sensing data recorded and its mapped control instruction, obtains the biography recorded
The normal distribution of sensor data, with the sensing data recorded corresponding to the probability in normal distribution peak value preset range
As the sensing data in statistical result;The statistical result refers to for adjusting the sensing data range accordingly with control
The mapping relations of order.
2. the method according to claim 1, wherein the configuration information further includes sensor type and specified axis
To;The sensing data for obtaining multiple sensors in real time from operating system, comprising:
It is obtained in real time from operating system and the specified axial sensing data of the matched sensor of the sensor type.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
Configuration interface is provided, the mapping for obtaining the sensing data range and control instruction of typing in the configuration interface is closed
System, sensor type and specified axial direction are to be stored as configuration file as configuration information, and according to predefined format;
The acquisition configuration information, comprising: the configuration information is read from the configuration file according to predefined format.
4. the method according to claim 1, wherein the method also includes:
The sensing data recorded and its mapped control instruction are uploaded onto the server storage;
The sensing data recorded according to and its mapped control instruction are counted to obtain statistical result,
Include:
By the server with according to sensing data stored on the server and its mapped control instruction into
Row statistics is to obtain statistical result.
5. a kind of application program controlling device, which is characterized in that described device includes:
Configuration information obtains module, and for obtaining configuration information, the configuration information includes that sensing data range refers to control
The mapping relations of order;
Sensing data obtains module, for obtaining the sensing data of multiple sensors in real time from operating system;
Control module, for detecting the sensing data of each sensor sensing data corresponding with each sensor respectively
When commensurate in scope, according to the many-to-one mapping relations of each matched sensing data range and control instruction, by the biography
Sensor data are converted to the control instruction of simulation;The control instruction of the simulation is not when institute by detecting actual trigger event
Triggering;The input service module that the control instruction of the simulation is passed to the operating system is serviced by the input
Module and the control instruction of the simulation is passed into application program;
Logging modle detecting every time with sensing data commensurate in scope sensing data and its is reflected for recording
The control instruction penetrated;
Statistical module is obtained for being counted according to the sensing data recorded and its mapped control instruction
The normal distribution of the sensing data recorded, with note corresponding to the probability in normal distribution peak value preset range
The sensing data of record is as the sensing data in statistical result;The statistical result for adjusting the sensor number accordingly
According to the mapping relations of range and control instruction.
6. device according to claim 5, which is characterized in that the configuration information further includes sensor type and specified axis
To;The sensing data obtains module and is also used to obtain in real time from operating system and the matched sensor of the sensor type
Specified axial sensing data.
7. device according to claim 6, which is characterized in that described device further include: interface manager module, for providing
Configuration interface obtains mapping relations, the sensor of the sensing data range and control instruction of typing in the configuration interface
Type and specified axial direction are to be stored as configuration file as configuration information, and according to predefined format;
The configuration information obtains module and is also used to read the configuration information from the configuration file according to predefined format.
8. device according to claim 5, which is characterized in that the sensor number that the logging modle is also used to have recorded
It uploads onto the server storage according to its mapped control instruction;
The statistical module be also used to through the server with according to sensing data stored on the server and its
Mapped control instruction is counted to obtain statistical result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410802680.9A CN104536565B (en) | 2014-12-18 | 2014-12-18 | Application control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410802680.9A CN104536565B (en) | 2014-12-18 | 2014-12-18 | Application control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104536565A CN104536565A (en) | 2015-04-22 |
CN104536565B true CN104536565B (en) | 2019-01-11 |
Family
ID=52852105
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410802680.9A Active CN104536565B (en) | 2014-12-18 | 2014-12-18 | Application control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104536565B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105468195A (en) * | 2015-11-17 | 2016-04-06 | 中国联合网络通信集团有限公司 | Method and device for realizing human-computer interaction |
CN105487655B (en) * | 2015-11-23 | 2023-01-17 | 联想(北京)有限公司 | Information processing method and related electronic equipment |
CN106406584A (en) * | 2016-11-07 | 2017-02-15 | 广州视睿电子科技有限公司 | Control method of interactive device and command response method and device |
CN106845782A (en) * | 2016-12-23 | 2017-06-13 | 国网浙江省电力公司台州供电公司 | Distribution big data intelligent analysis method |
CN112003731B (en) * | 2020-07-27 | 2022-07-12 | 新华三技术有限公司 | Configuration method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103914305A (en) * | 2014-04-10 | 2014-07-09 | 广东欧珀移动通信有限公司 | Method and system for freely controlling applications on mobile terminal |
CN104169858A (en) * | 2013-12-03 | 2014-11-26 | 华为技术有限公司 | Method and device of using terminal device to identify user gestures |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102301312A (en) * | 2008-12-01 | 2011-12-28 | 新加坡国立大学 | Portable Engine For Entertainment, Education, Or Communication |
-
2014
- 2014-12-18 CN CN201410802680.9A patent/CN104536565B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104169858A (en) * | 2013-12-03 | 2014-11-26 | 华为技术有限公司 | Method and device of using terminal device to identify user gestures |
CN103914305A (en) * | 2014-04-10 | 2014-07-09 | 广东欧珀移动通信有限公司 | Method and system for freely controlling applications on mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104536565A (en) | 2015-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104536565B (en) | Application control method and device | |
US9104271B1 (en) | Gloved human-machine interface | |
CN103959206B (en) | Method and apparatus for dynamically adapting dummy keyboard | |
US20180284945A1 (en) | Always-available input through finger instrumentation | |
CN109960642B (en) | Automatic test method and device | |
US10338745B2 (en) | Management of a touchscreen interface of a device | |
EP2991330B1 (en) | Electronic device and method for displaying call information thereof | |
CN107666987A (en) | Robotic process automates | |
US10068088B2 (en) | Method, computer program and system that uses behavioral biometric algorithms | |
CN106687889A (en) | Display-efficient text entry and editing | |
CN108804885B (en) | Man-machine verification method and device, storage medium and processor | |
CN106484236B (en) | A kind of method and device of physical button prompt operation | |
CN110383194A (en) | The Air Diary processing method and processing device of unmanned plane | |
CN109446832A (en) | A kind of screenshotss method and device | |
WO2017140242A1 (en) | Information processing method and client | |
CN106709383A (en) | Communication message protection method and device and mobile terminal | |
CN111714093A (en) | Body temperature measuring method, body temperature measuring device, storage medium and terminal | |
CN109614021A (en) | Exchange method, device and equipment | |
CN106547676A (en) | A kind of user operation method for recording and terminal | |
CN105549811A (en) | Terminal interface displaying method and device based on protective cover window | |
CN107948429A (en) | A kind of content demonstration method and terminal device | |
CN106921518A (en) | Monitoring view methods of exhibiting and device | |
CN104020989B (en) | Control method and system based on remote application | |
CN110297580A (en) | Application messages inspection method, mobile terminal and readable storage medium storing program for executing | |
CN108153460A (en) | A kind of icon hiding method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |