CN106094535B - Apparatus control method and device, electronic equipment - Google Patents

Apparatus control method and device, electronic equipment Download PDF

Info

Publication number
CN106094535B
CN106094535B CN201610379380.3A CN201610379380A CN106094535B CN 106094535 B CN106094535 B CN 106094535B CN 201610379380 A CN201610379380 A CN 201610379380A CN 106094535 B CN106094535 B CN 106094535B
Authority
CN
China
Prior art keywords
axis
parameter
user action
spatial movement
predefined
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
Application number
CN201610379380.3A
Other languages
Chinese (zh)
Other versions
CN106094535A (en
Inventor
周卫
彭攀
游延筠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Shenzhen Lumi United Technology Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Shenzhen Lumi United Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd, Shenzhen Lumi United Technology Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610379380.3A priority Critical patent/CN106094535B/en
Publication of CN106094535A publication Critical patent/CN106094535A/en
Application granted granted Critical
Publication of CN106094535B publication Critical patent/CN106094535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure is directed to a kind of apparatus control method and device, electronic equipment, this method may include: the action sensor by being built in control device, acquire the spatial movement parameter that the control device is matched under user action;When the spatial movement parameter is matched with predefined characteristic parameter, the target device and control instruction corresponding to the predefined characteristic parameter being pre-configured are determined;The control instruction is sent to the target device.By the technical solution of the disclosure, the user action for control device can be recognized accurately, consequently facilitating realizing equipment control.

Description

Apparatus control method and device, electronic equipment
Technical field
This disclosure relates to Smart Home technical field more particularly to a kind of apparatus control method and device, electronic equipment.
Background technique
Under traditional approach, user needs by pressing the physical button on remote controler, to trigger the corresponding of electronic equipment Function, for example open or close air-conditioning, or reconcile air-conditioner temperature etc..But all distinguish since the institute of electronic equipment is functional It is presented on a remote control by way of respective physical key, so that user requires to find corresponding object on a remote control every time Key is managed, it is complicated for operation, time-consuming.Meanwhile each remote controler is merely able to control Single Electron equipment, when user possesses more electronics When equipment, it is also necessary to find the remote controler of target device first, but often presence is difficult to properly protect the remote controler of numerous quantity The case where depositing, being easily lost.
In the related art, the side by mobile devices such as smart phones, controlled multiple electronic equipment is proposed Case, can preservation and searching to avoid user to a large amount of remote controlers.But user is when using mobile device, it is still desirable to right The virtual key showed in mobile device is found and is clicked, and the use of mobile device needs to undergo " unlocking screen All multi-steps such as → searching remote control APP → opening remote control APP → selection target equipment → click virtual key ", lead to practical use Family experience is still very complicated, time-consuming.
Summary of the invention
The disclosure provides a kind of apparatus control method and device, electronic equipment, to solve deficiency in the related technology.
According to the first aspect of the embodiments of the present disclosure, a kind of apparatus control method is provided, comprising:
By the action sensor being built in control device, the sky that the control device is matched under user action is acquired Between kinematic parameter;
When the spatial movement parameter is matched with predefined characteristic parameter, determine that is be pre-configured corresponds to described predefine The target device and control instruction of characteristic parameter;
The control instruction is sent to the target device.
Optionally, the action sensor by being built in control device acquires the control device and is matched with use Spatial movement parameter under the movement of family, comprising:
When any spatial movement parameter that the action sensor detects increases to actuation threshold in the first preset duration When value, it is determined as that the user action starts;And after the user action starts, when the action sensor detects All spatial movement parameters when being decreased to terminate threshold value in the second preset duration, be determined as that the user action terminates;
When the user action starts, start the acquisition of the spatial movement parameter;And when the user action is whole When only, the acquisition of the spatial movement parameter is terminated.
Optionally, the spatial movement parameter includes: according to collected three-axis moving parameter of default sampling period;
Any spatial movement parameter detected when the action sensor increases in the first preset duration to be opened When dynamic threshold value, it is determined as that the user action starts, comprising: within multiple periods of preset quantity, when any space is transported Dynamic parameter is determined as that the user action starts when the difference value summation of the kinematic parameter of each axis reaches the first default value;
It is described after the user action starts, when all spatial movement parameters that the action sensor detects are When being decreased to terminate threshold value in two preset durations, it is determined as that the user action terminates, comprising: in multiple weeks of preset quantity In phase, when the difference value summation of kinematic parameter of each spatial movement parameter in each axis is decreased to corresponding second default value When, it is determined as that the user action terminates.
Optionally, further includes:
Record duration of the user action from starting to termination;
When the duration is not belonging to predefined duration range, ignore the user action.
Optionally, when the control device is in cube structure, the spatial movement parameter includes: to be matched with described stand The 3-axis acceleration parameter in the crest line direction of cube structure and three axis angular rate parameters;The space fortune is judged by following manner Whether dynamic parameter is matched with predefined feature:
When the spatial movement parameter meets restrictive condition and rotary motion condition in predefined plane, described in judgement Spatial movement parameter is matched with the predefined feature, and the predefined feature is spinning movement feature;
When the spatial movement parameter meets restrictive condition in predefined plane and pushes moving condition, described in judgement Spatial movement parameter is matched with the predefined feature, and the predefined feature is pushing action feature;
When the spatial movement parameter meets the predefined tapping operation condition with holding plane, the space is determined Kinematic parameter is matched with the predefined feature, and the predefined feature is hammer action feature;
When the spatial movement parameter meets predefined roll over condition, determine that the spatial movement parameter is matched with institute Predefined feature is stated, and the predefined feature is the rotary movement feature of predetermined angle.
Optionally,
Restrictive condition includes: in the plane
The rotary motion condition includes:
The promotion moving condition includes:
The tapping operation condition includes:
The roll over condition includes:
Wherein, XAVariance, Y for X-axis accelerationAVariance, Z for Y-axis accelerationAFor the variance of Z axis acceleration, XGFor Variance, Y around X-axis angular speedGFor around the variance of Y-axis angular speed, ZGFor the variance of angular speed about the z axis, ZGTotalFor tiring out about the z axis Count rotational angle, ZAPeakFor wave crest number, the Z of Z axis accelerationAValleyFor the trough number of Z axis acceleration, X-axis and Y-axis are level side It is vertical direction axis to axis, Z axis;ATH1、ATH2、ATH3For preset acceleration rate threshold, GTH1、GTH2、GTH3、GTH4For preset angle Threshold speed, D are the moving distance in the plane locating for X-axis and Y-axis, DTHFor preset moving distance threshold value;M axis is X-axis, Y Any axis, N axis and O axis are remaining two axis, M in axis and Z axisGFor around the variance of M axis angular rate, NGFor around the side of N axis angular rate Difference, OGFor around the variance of O axis angular rate, MGTatalFor around the accumulative rotational angle of M axis, RTHFor preset angle threshold.
Optionally, further includes:
When user action is not detected in predefined continuous duration, by the action sensor by normal mode of operation Switch to low-power consumption mode;
When the action sensor under low-power consumption mode detects user action, restore to the normal work Mode.
According to the second aspect of an embodiment of the present disclosure, a kind of plant control unit is provided, comprising:
Acquisition unit acquires the control device and is matched with user by the action sensor being built in control device Spatial movement parameter under movement;
Determination unit determines that is be pre-configured corresponds to when the spatial movement parameter is matched with predefined characteristic parameter The target device and control instruction of the predefined characteristic parameter;
Transmission unit, Xiang Suoshu target device send the control instruction.
Optionally, the acquisition unit includes:
Stage judgment sub-unit, when any spatial movement parameter that the action sensor detects is in the first preset duration When inside increasing to starting threshold value, it is determined as that the user action starts;And after the user action starts, when described dynamic When all spatial movement parameters detected as sensor are decreased to terminate threshold value in the second preset duration, it is determined as described User action terminates;
Acquisition control subelement starts the acquisition of the spatial movement parameter when the user action starts;And When the user action terminates, the acquisition of the spatial movement parameter is terminated.
Optionally, the spatial movement parameter includes: according to collected three-axis moving parameter of default sampling period;It is described Stage judgment sub-unit includes: to start judgment module and termination judgment module;
The beginning judgment module, within multiple periods of preset quantity, when any spatial movement parameter is in each axis The difference value summation of kinematic parameter when reaching the first default value, be determined as that the user action starts;
The termination judgment module, within multiple periods of preset quantity, when each spatial movement parameter is in the fortune of each axis When the difference value summation of dynamic parameter is decreased to corresponding second default value, it is determined as that the user action terminates.
Optionally, further includes:
Recording unit records duration of the user action from starting to termination;
Ignore unit, when the duration is not belonging to predefined duration range, ignores the user action.
Optionally, when the control device is in cube structure, the spatial movement parameter includes: to be matched with described stand The 3-axis acceleration parameter in the crest line direction of cube structure and three axis angular rate parameters;
Described device further include: it is pre- to judge whether the spatial movement parameter is matched with by following manner for matching unit Defined feature:
When the spatial movement parameter meets restrictive condition and rotary motion condition in predefined plane, described in judgement Spatial movement parameter is matched with the predefined feature, and the predefined feature is spinning movement feature;
When the spatial movement parameter meets restrictive condition in predefined plane and pushes moving condition, described in judgement Spatial movement parameter is matched with the predefined feature, and the predefined feature is pushing action feature;
When the spatial movement parameter meets the predefined tapping operation condition with holding plane, the space is determined Kinematic parameter is matched with the predefined feature, and the predefined feature is hammer action feature;
When the spatial movement parameter meets predefined roll over condition, determine that the spatial movement parameter is matched with institute Predefined feature is stated, and the predefined feature is the rotary movement feature of predetermined angle.
Optionally,
Restrictive condition includes: in the plane
The rotary motion condition includes:
The promotion moving condition includes:
The tapping operation condition includes:
The roll over condition includes:
Wherein, XAVariance, Y for X-axis accelerationAVariance, Z for Y-axis accelerationAFor the variance of Z axis acceleration, XGFor Variance, Y around X-axis angular speedGFor around the variance of Y-axis angular speed, ZGFor the variance of angular speed about the z axis, ZGTotalFor tiring out about the z axis Count rotational angle, ZAPeakFor wave crest number, the Z of Z axis accelerationAValleyFor the trough number of Z axis acceleration, X-axis and Y-axis are level side It is vertical direction axis to axis, Z axis;ATH1、ATH2、ATH3For preset acceleration rate threshold, GTH1、GTH2、GTH3、GTH4For preset angle Threshold speed, D are the moving distance in the plane locating for X-axis and Y-axis, DTHFor preset moving distance threshold value;M axis is X-axis, Y Any axis, N axis and O axis are remaining two axis, M in axis and Z axisGFor around the variance of M axis angular rate, NGFor around the side of N axis angular rate Difference, OGFor around the variance of O axis angular rate, MGTatalFor around the accumulative rotational angle of M axis, RTHFor preset angle threshold.
Optionally, further includes:
Switch unit, when user action is not detected in predefined continuous duration, by the action sensor by just Normal operating mode switches to low-power consumption mode;
Recovery unit restores when the action sensor under low-power consumption mode detects user action to institute State normal mode of operation.
According to the third aspect of an embodiment of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
By the action sensor being built in control device, the sky that the control device is matched under user action is acquired Between kinematic parameter;
When the spatial movement parameter is matched with predefined characteristic parameter, determine that is be pre-configured corresponds to described predefine The target device and control instruction of characteristic parameter;
The control instruction is sent to the target device.
The technical scheme provided by this disclosed embodiment can include the following benefits:
As can be seen from the above embodiments, the disclosure can accurately identify needle by assembling action sensor in control device To the user action of the control device, without being found to remote controler, physics or virtual key, can according to user action with Pre-configuration incidence relation between target device, control instruction realizes the convenient control to many equipment, helps to simplify user Operation.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of apparatus control method shown according to an exemplary embodiment.
Fig. 2 is a kind of schematic diagram of equipment control scene shown according to an exemplary embodiment.
Fig. 3 is a kind of illustrative view of functional configuration of controller shown according to an exemplary embodiment.
Fig. 4 is the flow chart of another apparatus control method shown according to an exemplary embodiment.
Fig. 5 is a kind of schematic perspective view of controller shown according to an exemplary embodiment.
Fig. 6 is a kind of process of apparatus control method based on flag bit configuration shown according to an exemplary embodiment Figure.
Fig. 7 is the schematic diagram that a kind of controller shown according to an exemplary embodiment rotates movement.
Fig. 8 is the schematic diagram that pushing action occurs for a kind of controller shown according to an exemplary embodiment.
Fig. 9 is the schematic diagram that hammer action occurs for a kind of controller shown according to an exemplary embodiment.
Figure 10 is the schematic diagram that a kind of controller shown according to an exemplary embodiment is flipped movement.
Figure 11-16 is a kind of block diagram of plant control unit shown according to an exemplary embodiment.
Figure 17 is a kind of structural schematic diagram of device for equipment control shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of apparatus control method shown according to an exemplary embodiment, as shown in Figure 1, the party Method is applied in control device, may comprise steps of:
In a step 102, it by the action sensor being built in control device, acquires the control device and is matched with use Spatial movement parameter under the movement of family.
It in the present embodiment, can be when any spatial movement parameter that action sensor detects is in the first preset duration When increasing to starting threshold value, it is determined as that user action starts;And after user action starts, when action sensor detects All spatial movement parameters in the second preset duration be decreased to terminate threshold value when, be determined as user action terminate;Wherein, When user action starts, the acquisition of start-up space kinematic parameter, and when user action terminates, terminate spatial movement parameter Acquisition.In this embodiment, the numerical value of the spatial movement parameter detected based on action sensor is mutated, and can be accurately identified User action, and realize the accurate interception to the spatial movement parameter during the user action.
In the present embodiment, when spatial movement parameter includes according to collected three-axis moving parameter of default sampling period When: it can be within multiple periods of preset quantity, when the difference value summation of kinematic parameter of any spatial movement parameter in each axis When reaching the first default value, it is determined as that user action starts;And within multiple periods of preset quantity, when each space Kinematic parameter is determined as that user is dynamic when the difference value summation of the kinematic parameter of each axis is decreased to corresponding second default value It terminates.
At step 104, when the spatial movement parameter is matched with predefined characteristic parameter, the correspondence being pre-configured is determined In the target device and control instruction of the predefined characteristic parameter.
In the present embodiment, by being pre-configured with predefined characteristic parameter and being associated between target device, control instruction Relationship can send corresponding control instruction to target device for the spatial movement parameter for being matched with predefined characteristic parameter, To realize the long-range control to the target device.Wherein, each predefined characteristic parameter can correspond to one or more targets Equipment, to realize independent control to a target device, or to multiple target devices while controls.And every time The control instruction of transmission can be an instruction or a plurality of instruction, to realize the control to one or more functions of target device System.
In the present embodiment, user can be according to itself actual demand, to predefined characteristic parameter, target device and control Customized setting is carried out either in system instruction.By the customized setting to predefined characteristic parameter, user can be used Personalized user action controls corresponding target device;By the customized setting to target device, user can be with It is added as needed or deletes the target device for needing to control, to be adapted to the update of electronic equipment in such as family;By to control The customized setting of instruction is made, user can set the control purpose to target device, to meet individual requirements.
In step 106, Xiang Suoshu target device sends the control instruction.
In the present embodiment, control instruction directly can be sent to by target device by control device;Alternatively, can be by controlling Control instruction is sent to gateway by device processed, and is sent to target device by gateway.
As can be seen from the above embodiments, the disclosure can accurately identify needle by assembling action sensor in control device To the user action of the control device, without being found to remote controler, physics or virtual key, can according to user action with Pre-configuration incidence relation between target device, control instruction realizes the convenient control to many equipment, helps to simplify user Operation.
Fig. 2 is a kind of schematic diagram of equipment control scene shown according to an exemplary embodiment, as shown in Fig. 2, this public affairs Control device in opening can be controller shown in Fig. 2, and user is by may be implemented to television set, camera shooting the controller On the other hand the unified manipulation of the various electronics such as head, electric cooker passes through on the one hand without collecting and taking care of numerous remote controlers Predefined user action is executed to the controller, the manipulation to above-mentioned electronic equipment can be conveniently realized, without finding object Key or virtual key are managed, the operations such as the unlocking screen to mobile device, click APP icon are not needed yet.Reality shown in Fig. 2 It applies in example, after controller is by being sent to gateway for control instruction, corresponding electronic equipment is sent to by gateway;And in fact, Control instruction directly can also be sent to corresponding electronic equipment by controller, and herein by way of example only, the disclosure is not right This is limited.
For application scenarios shown in Fig. 2, Fig. 3 is the structural representation according to a kind of controller of an exemplary embodiment Figure.As shown in figure 3, being built-in with action sensor in the controller;The action sensor can detecte to be held for the controller Capable user action, such as translation, overturning, rotation etc..Certainly, it is that the controller is matched with that action sensor is directly collected Spatial movement parameter under user action, and matching treatment is carried out by processing module built-in in the controller, to identify phase Then corresponding control instruction is sent to television set, camera or electric cooker etc. by communication module and made by the user action answered For the electronic equipment (i.e. target device) for controlling target.
Fig. 4 is the flow chart of another apparatus control method shown according to an exemplary embodiment, as shown in figure 4, should Method is applied in control device, may comprise steps of:
In step 402, user action is recognized to start.
It in the present embodiment, can be in any spatial movement parameter that action sensor detects in the first preset duration When increasing to starting threshold value, it is determined as that user action starts.Wherein, when spatial movement parameter includes adopting according to the default sampling period It, can be within multiple periods of preset quantity, in any spatial movement parameter in each axis when the three-axis moving parameter collected When the difference value summation of kinematic parameter reaches the first default value, it is determined as that user action starts.
For example, the action sensor in controller can be six axis MEMS (Micro-Electro-Mechanical System, MEMS) sensor, the sensor integration three axis accelerometer and three-axis gyroscope can distinguish user Acquisition controller is matched with 3-axis acceleration parameter and three axis angular rate parameters under user action.Such as when controller is Fig. 5 Shown in cube structure when, which can be matched with the cube structure, so that acceleration parameter and angular speed The corresponding axis of parameter is the crest line of the cube structure, than as shown in Figure 5, it is assumed that three axis are X-axis, Y-axis and Z axis, then X-axis Crest line direction can be overlapped between the front end face (or rear end face) and top surface (or bottom surface) of the cube structure, Y-axis can be with Between the right side (or left side) and top surface (or bottom surface) of the cube structure be overlapped crest line direction, Z axis can for should The vertical crest line direction of cube structure.So, when the controller is placed in arbitrary plane, X, Y, Z axis always can it is parallel or Perpendicular to horizontal plane, help to simplify the processing to collected spatial movement parameter.
So, the parameter acquisition when action sensor executes parameter acquisition operation according to predetermined period, in each period Operate available corresponding spatial movement parameter, comprising: 3-axis acceleration parameter and three axis angular rate parameters, i.e. X, Y, Z The acceleration parameter of axis and angular speed parameter around X, Y, Z axis.
When starting due to user action, being equivalent to controller by stationary state variation is motion state, i.e. action sensor The acceleration parameter or angular speed parameter detected necessarily mutates, thus can be changed by the difference numerical of relevant parameter To embody the mutation.And above-mentioned 3-axis acceleration parameter and three axis angular rate parameters are combined, it can be calculated by following formula The difference value summation of 3-axis acceleration parameter or three axis angular rate parameters:
Wherein, DAcceN is summation of the difference value of 3-axis acceleration parameter within continuous N number of period, DGyroN is three axis Summation of the difference value of angular speed parameter within continuous N number of period,For the kth period acquisition X-axis acceleration parameter,For The Y-axis acceleration parameter of kth period acquisition,For the kth period acquisition Z axis acceleration parameter,For the acquisition of kth period Around X-axis angular speed parameter,For the kth period acquisition around Y-axis angular speed parameter,For the speed of angle about the z axis of kth period acquisition Spend parameter.
And by configuring to N number of period in above-mentioned formula, available spatial movement parameter is in a short time Situation of change to embody " mutation " of spatial movement parameter, and ensures that controller rings the quick of user action, low latency It answers.
Therefore, when (DAcceN and DGyroN can be right not less than predefined first default value by DAcceN or DGyroN Should be in the first different default values) when, that is, it can determine that user action starts.
In step 404, user action termination is recognized.
In the present embodiment, after user action starts, when all spatial movement parameters that action sensor detects exist When being decreased to terminate threshold value in the second preset duration, it is possible to determine that terminated for user action.Wherein, when spatial movement parameter packet It, can be within multiple periods of preset quantity, when each sky when including three-axis moving parameter collected according to the default sampling period Between kinematic parameter when the difference value summation of the kinematic parameter of each axis is decreased to corresponding second default value, be determined as user Movement terminates.
Based on above-mentioned embodiment as shown in Figure 5, when DAcceN and DGyroN is decreased to predefined second present count When value (DAcceN and DGyroN can correspond to the second different default values), that is, it can determine that user action terminates.
In a step 406, spatial movement parameter of the interception during user action.
In the present embodiment, controller can by modes such as set to flag bit, control beginning to user action, The judgement of termination, and to processes such as the interceptions of spatial movement parameter, carried out below with reference to apparatus control method shown in fig. 6 detailed Thin description:
In step 602, when sensor is in wake-up states, sensing data is read.
In the present embodiment, sensor can be six above-mentioned axis MEMS sensors, then the sensing data read can be with Including 3-axis acceleration parameter and three axis angular rate parameters.
In step 604, when flag bit is 0, it is transferred to step 606, is otherwise transferred to step 614.
In the present embodiment, flag bit shows during being not presently within any user action for 0, if detecting new Spatial movement parameter, should judge whether it is the beginning of user action, and can not be the termination of user action.
In step 606, judge whether it is the movement starting point of controller, the i.e. beginning of user action;If moving starting point When, it is transferred to step 608, is otherwise transferred to step 610.
In the present embodiment, the movement starting point that controller can be judged whether it is with through the above steps 402, it is no longer superfluous herein It states.
In step 608, by mark position 1.
In the present embodiment, by during by mark position 1, showing to be currently at a user action, so that again It when detecting spatial movement parameter, should determine whether it is the termination of user action, and can not be the beginning of user action.
In step 610, number is accumulative.
In step 612, when cumulative number reaches preset times, control sensor is transferred to dormant state, otherwise returns Step 602.
In the present embodiment, in continuous N number of period, flag bit is always 0 and the beginning of user action is not detected, i.e., Continuous N number of period it is corresponding predefine in continuous duration, with not manipulated per family to sensor, sensor can be turned Enter dormant state, to reduce the power consumption of sensor, extend standby time.
Under dormant state (or low-power consumption mode), action sensor can close three-axis gyroscope, and only pass through three Axis accelerometer carries out parameter acquisition, and the sample rate of the three axis accelerometer is default low frequency;And work as three axis accelerometer After presetting the beginning that low frequency collects user action by this, it can be called out by acting to interrupt to switch to the action sensor It wakes up state (or normal mode of operation), three axis accelerometer and three-axis gyroscope carry out parameter by default high-frequency at this time Acquisition.
In step 614, when flag bit is 1, it is transferred to step 616, otherwise return step 602.
In step 616, judge whether it is the exercise end of controller, the i.e. termination of user action;If exercise end When, it is transferred to step 618, is otherwise transferred to step 622.
In the present embodiment, the exercise end that controller can be judged whether it is with through the above steps 404, it is no longer superfluous herein It states.
In step 618, judge whether the movement duration of controller is too short;If it is too short to move duration, it is transferred to step 624, otherwise it is transferred to step 620.
In the present embodiment, in order to remove interference and invalid action, for example user is not intended to collision etc. to controller, can be with The minimum length for defining user action is Lmin;So, when the sample rate of action sensor is (to the sampling frequency of spatial movement parameter Rate) it is FS, then the movement duration (i.e. the duration of user action) of controller should be not less than Lmin/FS.It therefore, can be with The movement duration (i.e. duration of the user action from starting to termination) for recording the controller, when the movement duration is less than When Lmin/FS, it is likely that be the false hit etc. of user, corresponding user action can be ignored, such as to having stored in step 624 The corresponding data of user action emptied.
In step 620, action recognition.
In the present embodiment, the type recognition procedure of user action will be hereafter described in detail by step 408, It wouldn't repeat herein.
In step 622, judge whether the movement duration of controller is too long;If it is too long to move duration, it is transferred to step 624, otherwise return step 602.
In the present embodiment, in order to remove interference and invalid action, for example, children to the throwing of controller, play, can To define the maximum length of user action as Lmax;So, when (the sampling to spatial movement parameter of the sample rate of action sensor Frequency) it is FS, then the movement duration (i.e. the duration of user action) of controller should be not more than Lmax/FS.Therefore, may be used To record the movement duration (i.e. duration of the user action from starting to termination) of the controller, when the movement duration is greater than When Lmax/FS, it is likely that for children to the throwing of controller, play, corresponding user action, such as step can be ignored The corresponding data of stored user action are emptied in 624.
And for moving in the normal situation of duration, due to not yet reaching exercise end, thus relevant sensor at this time Data will be recorded, to be used for subsequent action recognition as the spatial movement parameter for being matched with user action;So, By return step 602, persistently the spatial movement parameter can be acquired.
In step 624, data are emptied.
In step 626, by mark position 0.
As it can be seen that handling in by the above process for the set of flag bit, controller can be accurately distinguished in each period Corresponding state, for example there is no user action or beginning in user action, termination, in the process etc., thereby executing Corresponding processing or operation.
In a step 408, user action type is identified.
In the present embodiment, may include in controller it is several by the predefined user action of manufacturer, then user can be with By binding the predefined user action with target device, control instruction, for example " rotation " movement corresponds to TV The switch control of machine, " promotion " movement correspond to the switch control of the channel control, " percussion " movement of television set corresponding to electric cooker System etc..Certainly, user can according to actual needs, and the user action that can be realized to controller is edited, for example is deleted The new user action etc. of original user action, addition.
Wherein, for the binding of user action and target device, control instruction, and for the editor etc. of user action, After can be by being associated the mobile devices such as the smart phone of the controller and user, in control circle of the smart phone It carries out matching in face and postpones realization.It is of course also possible to touch display screen, physical button etc. are configured on the controller, so that with Family can directly be configured on the controller, and the disclosure is not intended to limit its configuration mode.
In order to make it easy to understand, below with six built in the controller of cube structure as shown in Figure 5 and the controller Axis MEMS sensor illustrates the controller for the identification process of user action.
(1) it rotates
As shown in fig. 7, " rotation " movement refers to the twisting of controller planar, such as XYZ coordinate as shown in connection with fig. 5 System, " rotation " movement substantially occurs only in X/Y plane, and does not change substantially on Z axis.
Therefore, when spatial movement parameter meets restrictive condition and rotary motion condition in predefined plane, can sentence Determine spatial movement parameter and be matched with predefined feature, and predefined feature is spinning movement feature.
In one exemplary embodiment, restrictive condition in above-mentioned plane and rotary motion condition can be quantified, In order to the processing to spatial movement parameter, then:
Restrictive condition may include: in plane
Rotary motion condition may include:
Wherein, XAVariance, Y for X-axis accelerationAVariance, Z for Y-axis accelerationAFor the variance of Z axis acceleration, XGFor Variance, Y around X-axis angular speedGFor around the variance of Y-axis angular speed, ZGFor the variance of angular speed about the z axis, ZGTotal1For rotary motion Under the conditions of accumulative rotational angle about the z axis;ATH1、ATH2And A hereafterTH3For preset acceleration rate threshold, GTH1、GTH2It is default Angular speed threshold value, GTH3For preset angle threshold.
1) it for " restrictive condition in plane ", that is, defines the user action and the movement of the controller is made to be limited to put down substantially In face, such as in X/Y plane shown in fig. 5.It is assumed that X-axis and Y-axis be always the horizontal axis parallel with plane, Z axis be always with The vertical vertical axis of plane, then:
Sub- condition ZA< ATH1Acceleration parameter in Z-direction is limited to a certain range (i.e. ATH1) in, show to control There is no movements in the Z-axis direction for device;And sub- condition XG< GTH1、YG< GTH1It respectively will be around the angular speed parameter of X-axis, Y-axis Variance restriction is in a certain range (i.e. GTH1) in, show that controller rotates in X/Y plane.
2) it for " rotary motion condition ", that is, defines the user action and the controller is rotated.So:
Sub- condition XA< ATH2、YA< ATH2X-axis, the variance of the acceleration parameter of Y-axis are limited within the scope of some, shows to control Acceleration parameter of the device processed in X, Y direction is in some preset range (i.e. ATH2) in, and fluctuate little;Sub- condition ZG≥ GTH2The variance of the angular speed parameter of limitation about the z axis is more than some preset threshold (i.e. GTH2), sub- condition ZGTotal1≥GTH3It is required that around The accumulative rotational angle of Z axis is more than some threshold value (i.e. GTH3), to show that controller has certain rotation amount about the z axis.
(2) it pushes
As shown in figure 8, " promotion " movement refers to the movement of controller planar, such as XYZ coordinate as shown in connection with fig. 5 System, " promotion " movement substantially occurs only in X/Y plane, and does not change substantially on Z axis.
Therefore, when spatial movement parameter meets restrictive condition in predefined plane and pushes moving condition, can sentence Determine spatial movement parameter and be matched with predefined feature, and predefined feature is pushing action feature.
In one exemplary embodiment, to restrictive condition in above-mentioned plane and moving condition can be pushed to quantify, In order to the processing to spatial movement parameter, then restrictive condition can refer to above-mentioned (1) rotation in plane, and sports bars are pushed Part may include:
Wherein, D is the moving distance in the plane locating for X-axis and Y-axis, DTHFor preset moving distance threshold value.
1) for " restrictive condition in plane ", it can refer to above-mentioned (1) rotation, details are not described herein again.
2) it for " pushing moving condition ", that is, defines the user action and the controller is pushed.So:
Sub- condition XA+YA> ATH3The sum of variance for limiting the acceleration parameter of X-axis and Y direction should be default more than some Threshold value (i.e. ATH3), i.e., pushing action can generate an impact in X/Y plane;Sub- condition D > DTHIt is limited in X/Y plane Moving distance is greater than some preset threshold (i.e. DTH), i.e., movement has occurred in controller really in X/Y plane;Sub- condition ZGTatal2< GTH4The accumulative rotational angle of limitation about the z axis is less than some preset threshold (i.e. GTH4), GTH4For preset angle threshold Value.
Wherein, since user is restricted in certain time the promotion of controller (to refer to step 622), thus controller The distance pushed is also correspondingly limited to a relatively short distance, corresponds to for user action, is actually directed to controller " slight " pushing action, thus be properly termed as " touching " movement.
Further, since " rotation " movement and " touching " movement betide in plane, thus in order to avoid to user The misrecognition of movement, can for the two movement configuration preference levels, and be judged to being met simultaneously " rotation " movement with When the user action of " touching " movement, it is identified as the movement of high priority.
For example, when " rotation " movement has higher priority, even if meeting " restrictive condition in plane " and " rotation It in the case where moving condition ", also meets " pushing moving condition ", still judgement user action is " rotation " movement, and necessary In the case where satisfaction " restrictive condition in plane " and " push moving condition ", being unsatisfactory for " rotary motion condition ", use is just determined Family movement is that " touching " acts.
In other words, herein it is considered that the decision condition of " rotation " movement are as follows: meet " restrictive condition in plane " and " rotation Moving condition ";The decision condition of " touching " movement are as follows: meet " restrictive condition in plane " and " pushing moving condition ", and discontented Foot " rotary motion condition ".
Certainly, the configuration of priority can be modified according to actual needs, then having for " touching " movement higher In the case where priority, it is equally applicable above-mentioned processing mode, details are not described herein again.Also, it is more likely to occur when existing When the type of action of misrecognition, equally it can be judged that details are not described herein again according to above-mentioned priority mode.
Certainly, in the case where for multiple type of action are matched to simultaneously, this user action can also be ignored.
(3) it taps
As shown in figure 9, " percussion " movement refers to that the controller is taken in reciprocating motion of the controller in space, such as user The holding plane for playing the backward controller quickly taps for several times, and the coordinate system of controller does not become before and after user action Change;For example, " doublebeat " or " double-click " can be defined as when number of taps is 2 times.
Therefore, when spatial movement parameter meets the predefined tapping operation condition with holding plane, it is possible to determine that empty Between kinematic parameter be matched with predefined feature, and predefined feature is hammer action feature;
In one exemplary embodiment, above-mentioned tapping operation condition can be quantified, in order to spatial movement The processing of parameter, then tapping operation condition may include:
Wherein, ZAPeakFor wave crest number, the Z of Z axis accelerationAValleyFor the trough number of Z axis acceleration.
So, for " tapping operation condition ", sub- condition ZA> XA、ZA> YAAcceleration of the restriction controller in Z-direction The variance of parameter is maximum (relative to X-axis and Y-axis), i.e., data fluctuations (or being energy) occur mainly in Z-direction;Sub- condition ZAPeak>=2 restriction controllers the acceleration parameter of Z-direction wave crest number be not less than 2, i.e., controller Z-direction occur to Few process overweight twice;Sub- condition ZAValley>=2 restriction controllers are not less than 2 in the trough number of the acceleration parameter of Z-direction, I.e. in Z-direction weightless process at least twice occurs for controller.
Further, it is acted to distinguish in " percussion " movement and the planes such as above-mentioned " rotation ", " promotion ", Ke Yiwei It is acted in spaces such as " percussions " and acts setting priority in above-mentioned plane, for example movement has compared with Gao You in above-mentioned plane First grade, even if then in the case where meeting " restrictive condition in plane ", " rotary motion condition " and " tapping operation condition ", Still determine that user action is that " rotation " acts, and must in satisfaction " tapping operation condition ", be unsatisfactory for " the interior limitation item of plane In the case where part ", just determine user action for " percussion " movement.
Priority between planar gesture herein and spatial displacements, can be superimposed on excellent between above-mentioned planar gesture First grade.So, if user action meets " restrictive condition in plane ", " rotary motion condition ", " pushing moving condition " simultaneously In the case where " tapping operation condition ", it is assumed that movement has higher priority in plane, and " rotation " movement is compared with " promotion " Movement has higher priority, then determines user action for " rotation " movement herein.
In other words, herein it is considered that the decision condition of " percussion " movement are as follows: meet " tapping operation condition ", and be unsatisfactory for " restrictive condition in plane ".
(4) it overturns
As shown in Figure 10, " overturning " movement refers to flip-flop movement of the controller in space, so that the coordinate system of controller It changes before and after user action, for example it is vertical axis that the Z axis of coordinate system, which (corresponds to solid line cube) originally, in Figure 10, And become horizontal Z ' axis after 90 ° of overturning, it changes so as to cause coordinate system.Certainly, after the completion of each user action, Action sensor can reset coordinate system, so that it is always horizontal axis that Z axis, which is always vertical axis, X-axis and Y-axis,.
Therefore, when spatial movement parameter meets predefined roll over condition, it is possible to determine that spatial movement parameter is matched with Predefined feature, and predefined feature is the rotary movement feature of predetermined angle.
In one exemplary embodiment, above-mentioned roll over condition can be quantified, in order to spatial movement parameter Processing, then roll over condition may include:
Wherein, it is remaining two axis, M that M axis, which is any axis in X-axis, Y-axis and Z axis, N axis and O axis,GFor around the side of M axis angular rate Difference, NGFor around the variance of N axis angular rate, OGFor around the variance of O axis angular rate, MGTatalFor around the accumulative rotational angle of M axis, RTH For preset angle threshold.So, by taking M axis is Y-axis, N axis is X-axis, O axis is Z axis as an example, above-mentioned roll over condition can be with are as follows:
Wherein, sub- condition YG> XG、YG> ZGLimit the variance maximum around Y-axis angular speed parameter, the i.e. change of angular speed parameter Change occurs mainly in the rotation of Y-axis;Sub- condition YGTatal≈RTHLimitation will be close to predetermined angle around the rotation angle of Y-axis Threshold value (i.e. RTH), and can tolerate certain angular error, for example the angular error can be 3 ° etc..
Wherein, by RTHNumerical value configuration, may be implemented under a variety of situations overturning limitation.For example, working as RTHIt is 90 ° When, 90 ° of overturnings as shown in Figure 10 can be realized with restriction controller.Also, when controller is cube structure, user can be with Configure the same control instruction realized when the controller overturns 90 ° to any end face to same target device;Alternatively, can also be with Different control purposes is respectively set in 90 ° of overturnings of respectively six end faces, controls such as the difference of same target device Instruction, or for the control instruction of different target equipment.
Similarly, work as RTHWhen being 180 °, 180 ° of overturnings can be realized with restriction controller;And user can be according to itself Control situation, which is set and realizes more flip angles etc., the disclosure is limited not to this.
In step 410, target device and control instruction are determined.
In step 412, control instruction is sent to target device.
In the present embodiment, controller can be according to the identification information of different target equipment, to realize corresponding differentiation mesh 's;For example, the identification information can be the MAC Address etc. of target device.
In the present embodiment, for the different control purposes of same target device, that is, it is directed to the control of different control functions Instruction, can recorde port numbers of the control function in the target device, to add the port in sending control instruction Number, that is, it can ensure that the control instruction is executed correctly.
Corresponding with the embodiment of apparatus control method above-mentioned, the disclosure additionally provides the implementation of plant control unit Example.
Figure 11 is a kind of plant control unit block diagram shown according to an exemplary embodiment.Referring to Fig.1 1, which can To include acquisition unit 1102, determination unit 1104 and transmission unit 1106.
Acquisition unit 1102 is configured as the action sensor by being built in control device, acquires the control dress Set the spatial movement parameter being matched under user action;
Determination unit 1104 is configured as when the spatial movement parameter is matched with predefined characteristic parameter, is determined pre- The target device and control instruction corresponding to the predefined characteristic parameter of configuration;
Transmission unit 1106 is configured as sending the control instruction to the target device.
As shown in figure 12, Figure 12 is the block diagram of another plant control unit shown according to an exemplary embodiment, should Embodiment on the basis of aforementioned embodiment illustrated in fig. 11, acquisition unit 1102 may include: stage judgment sub-unit 1102A and Acquisition control subelement 1102B.
Stage judgment sub-unit 1102A is configured as any spatial movement parameter when the action sensor detects When increasing to starting threshold value in the first preset duration, it is determined as that the user action starts;And it is opened in the user action After beginning, when all spatial movement parameters that the action sensor detects are decreased to terminate threshold value in the second preset duration When, it is determined as that the user action terminates;
Acquisition control subelement 1102B is configured as starting the spatial movement parameter when the user action starts Acquisition;And when the user action terminates, terminate the acquisition of the spatial movement parameter.
As shown in figure 13, Figure 13 is the block diagram of another plant control unit shown according to an exemplary embodiment, should Embodiment is on the basis of aforementioned embodiment illustrated in fig. 12, when the spatial movement parameter includes: to adopt according to the default sampling period When the three-axis moving parameter collected, the stage judgment sub-unit 1102A may include: to start judgment module 1102A1 and termination Judgment module 1102A2.
Start judgment module 1102A1, is configured as within multiple periods of preset quantity, when any spatial movement Parameter is determined as that the user action starts when the difference value summation of the kinematic parameter of each axis reaches the first default value;
Judgment module 1102A2 is terminated, is configured as within multiple periods of preset quantity, when each spatial movement parameter When the difference value summation of the kinematic parameter of each axis is decreased to corresponding second default value, it is determined as that the user action is whole Only.
As shown in figure 14, Figure 14 is the block diagram of another plant control unit shown according to an exemplary embodiment, should On the basis of aforementioned embodiment illustrated in fig. 11, which can also include: recording unit 1108 and ignore unit embodiment 1110。
Recording unit 1108 is configured as recording duration of the user action from starting to termination;
Ignore unit 1110, be configured as when the duration is not belonging to predefined duration range, ignores described User action.
It should be noted that recording unit 1108 in above-mentioned Installation practice shown in Fig. 8 and ignoring unit 1110 Structure also may be embodied in the Installation practice of earlier figures 12-13, be not limited to this disclosure.
As shown in figure 15, Figure 15 is the block diagram of another plant control unit shown according to an exemplary embodiment, should Embodiment is on the basis of aforementioned embodiment illustrated in fig. 11, when the control device is in cube structure, the spatial movement Parameter includes: to be matched with the 3-axis acceleration parameter and three axis angular rate parameters in the crest line direction of the cube structure;It is described Device can also include: matching unit 1112.
Matching unit 1112 is configured as judging whether the spatial movement parameter is matched with by following manner predefined Feature:
When the spatial movement parameter meets restrictive condition and rotary motion condition in predefined plane, described in judgement Spatial movement parameter is matched with the predefined feature, and the predefined feature is spinning movement feature;
When the spatial movement parameter meets restrictive condition in predefined plane and pushes moving condition, described in judgement Spatial movement parameter is matched with the predefined feature, and the predefined feature is pushing action feature;
When the spatial movement parameter meets the predefined tapping operation condition with holding plane, the space is determined Kinematic parameter is matched with the predefined feature, and the predefined feature is hammer action feature;
When the spatial movement parameter meets predefined roll over condition, determine that the spatial movement parameter is matched with institute Predefined feature is stated, and the predefined feature is the rotary movement feature of predetermined angle.
Optionally,
Restrictive condition includes: in the plane
The rotary motion condition includes:
The promotion moving condition includes:
The tapping operation condition includes:
The roll over condition includes:
Wherein, XAVariance, Y for X-axis accelerationAVariance, Z for Y-axis accelerationAFor the variance of Z axis acceleration, XGFor Variance, Y around X-axis angular speedGFor around the variance of Y-axis angular speed, ZGFor the variance of angular speed about the z axis, ZGTotalFor tiring out about the z axis Count rotational angle, ZAPeakFor wave crest number, the Z of Z axis accelerationAValleyFor the trough number of Z axis acceleration, X-axis and Y-axis are level side It is vertical direction axis to axis, Z axis;ATH1、ATH2、ATH3For preset acceleration rate threshold, GTH1、GTH2、GTH3、GTH4For preset angle Threshold speed, D are the moving distance in the plane locating for X-axis and Y-axis, DTHFor preset moving distance threshold value;M axis is X-axis, Y Any axis, N axis and O axis are remaining two axis, M in axis and Z axisGFor around the variance of M axis angular rate, NGFor around the side of N axis angular rate Difference, OGFor around the variance of O axis angular rate, MGTatalFor around the accumulative rotational angle of M axis, RTHFor preset angle threshold.
It should be noted that the structure of the matching unit 1112 in above-mentioned Installation practice shown in figure 15 also may include In the Installation practice of earlier figures 12-14, this disclosure is not limited.
As shown in figure 16, Figure 16 is the block diagram of another plant control unit shown according to an exemplary embodiment, should For embodiment on the basis of aforementioned embodiment illustrated in fig. 11, which can also include: switch unit 1114 and recovery unit 1116。
Switch unit 1114 is configured as when user action is not detected in predefined continuous duration, will be described dynamic Make sensor and low-power consumption mode is switched to by normal mode of operation;
Recovery unit 1116 is configured as detecting user action when the action sensor under low-power consumption mode When, restore to the normal mode of operation.
It should be noted that switch unit 1114 and recovery unit 1116 in Installation practice shown in above-mentioned Figure 16 Structure also may be embodied in the Installation practice of earlier figures 12-15, be not limited to this disclosure.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
Correspondingly, the disclosure also provides a kind of plant control unit, comprising: processor;It is executable for storage processor The memory of instruction;Wherein, the processor is configured to: pass through the action sensor being built in control device, acquire institute State the spatial movement parameter that control device is matched under user action;When the spatial movement parameter is matched with predefined feature ginseng When number, the target device and control instruction corresponding to the predefined characteristic parameter being pre-configured are determined;To the target device Send the control instruction.
Correspondingly, the disclosure also provides a kind of terminal, the terminal include memory and one or more than one Program, one of them perhaps more than one program be stored in memory and be configured to by one or more than one Managing device and executing the one or more programs includes the instruction for performing the following operation: by being built in control device In action sensor, acquire the spatial movement parameter that the control device is matched under user action;When the spatial movement When parameter is matched with predefined characteristic parameter, the target device being pre-configured corresponding to the predefined characteristic parameter and control are determined System instruction;The control instruction is sent to the target device.
Figure 17 is a kind of block diagram of device 1700 for equipment control shown according to an exemplary embodiment.For example, Device 1700 can be controller, remote controler, mobile phone, computer, digital broadcasting terminal, messaging device, game control Platform processed, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig.1 7, device 1700 may include following one or more components: processing component 1702, memory 1704, Power supply module 1706, multimedia component 1708, audio component 1710, the interface 1712 of input/output (I/O), sensor module 1714 and communication component 1716.
The integrated operation of the usual control device 1700 of processing component 1702, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 1702 may include one or more processors 1720 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1702 may include one or more moulds Block, convenient for the interaction between processing component 1702 and other assemblies.For example, processing component 1702 may include multi-media module, To facilitate the interaction between multimedia component 1708 and processing component 1702.
Memory 1704 is configured as storing various types of data to support the operation in device 1700.These data Example includes the instruction of any application or method for operating on device 1700, contact data, telephone book data, Message, picture, video etc..Memory 1704 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1706 provides electric power for the various assemblies of device 1700.Power supply module 1706 may include power management System, one or more power supplys and other with for device 1700 generate, manage, and distribute the associated component of electric power.
Multimedia component 1708 includes the screen of one output interface of offer between described device 1700 and user.In In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1708 includes a front camera and/or rear camera.When device 1700 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1710 is configured as output and/or input audio signal.For example, audio component 1710 includes a wheat Gram wind (MIC), when device 1700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1704 or via communication Component 1716 is sent.In some embodiments, audio component 1710 further includes a loudspeaker, is used for output audio signal.
I/O interface 1712 provides interface, above-mentioned peripheral interface module between processing component 1702 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1714 includes one or more sensors, and the state for providing various aspects for device 1700 is commented Estimate.For example, sensor module 1714 can detecte the state that opens/closes of device 1700, the relative positioning of component, such as institute The display and keypad that component is device 1700 are stated, sensor module 1714 can be with detection device 1700 or device 1,700 1 The position change of a component, the existence or non-existence that user contacts with device 1700,1700 orientation of device or acceleration/deceleration and dress Set 1700 temperature change.Sensor module 1714 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 1714 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1716 is configured to facilitate the communication of wired or wireless way between device 1700 and other equipment.Dress The wireless network based on communication standard, such as ZigBee can be accessed by setting 1700, BLE, WiFi, 2G or 3G or their combination.In In one exemplary embodiment, communication component 1716 receives the broadcast singal from external broadcasting management system via broadcast channel Or broadcast related information.In one exemplary embodiment, the communication component 1716 further includes near-field communication (NFC) module, To promote short range communication.For example, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1700 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1704 of instruction, above-metioned instruction can be executed by the processor 1720 of device 1700 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (16)

1. a kind of apparatus control method characterized by comprising
By the action sensor being built in control device, the space fortune that the control device is matched under user action is acquired Dynamic parameter, any spatial movement parameter including detecting when the action sensor increase to starting in the first preset duration When threshold value, it is determined as that the user action starts;Wherein, the spatial movement parameter includes collecting according to the default sampling period Three-axis moving parameter, any spatial movement parameter detected when the action sensor increases in the first preset duration When the big threshold value to starting, being determined as that the user action starts includes within multiple periods of preset quantity, when any space is transported Dynamic parameter is determined as that user action starts when the difference value summation of the kinematic parameter of each axis reaches the first default value;
When the spatial movement parameter is matched with predefined characteristic parameter, determine that is be pre-configured corresponds to the predefined feature The target device and control instruction of parameter;
The control instruction is sent to the target device.
2. the method according to claim 1, wherein the movement by being built in control device senses Device acquires the spatial movement parameter that the control device is matched under user action, further includes:
After the user action starts, when all spatial movement parameters that the action sensor detects are when second is default When being decreased to terminate threshold value in long, it is determined as that the user action terminates;
When the user action starts, start the acquisition of the spatial movement parameter;And when the user action terminates When, terminate the acquisition of the spatial movement parameter.
3. according to the method described in claim 2, it is characterized in that, described after the user action starts, when the movement When all spatial movement parameters that sensor detects are decreased to terminate threshold value in the second preset duration, it is determined as the use Family movement terminates, comprising:
Within multiple periods of preset quantity, when the difference value summation of kinematic parameter of each spatial movement parameter in each axis subtracts As low as corresponding second default value when, be determined as that the user action terminates.
4. according to the method described in claim 2, it is characterized by further comprising:
Record duration of the user action from starting to termination;
When the duration is not belonging to predefined duration range, ignore the user action.
5. the method according to claim 1, wherein when the control device be in cube structure when, the sky Between kinematic parameter include: be matched with the crest line direction of the cube structure 3-axis acceleration parameter and three axis angular rates ginseng Number;Judge whether the spatial movement parameter is matched with predefined feature by following manner:
When the spatial movement parameter meets restrictive condition and rotary motion condition in predefined plane, the space is determined Kinematic parameter is matched with the predefined feature, and the predefined feature is spinning movement feature;
When the spatial movement parameter meets restrictive condition in predefined plane and pushes moving condition, the space is determined Kinematic parameter is matched with the predefined feature, and the predefined feature is pushing action feature;
When the spatial movement parameter meets the predefined tapping operation condition with holding plane, the spatial movement is determined Parameter is matched with the predefined feature, and the predefined feature is hammer action feature;
When the spatial movement parameter meets predefined roll over condition, it is described pre- to determine that the spatial movement parameter is matched with Defined feature, and the predefined feature is the rotary movement feature of predetermined angle.
6. according to the method described in claim 5, it is characterized in that,
Restrictive condition includes: in the plane
The rotary motion condition includes:
The promotion moving condition includes:
The tapping operation condition includes:
The roll over condition includes:
Wherein, XAVariance, Y for X-axis accelerationAVariance, Z for Y-axis accelerationAFor the variance of Z axis acceleration, XGFor around X-axis The variance of angular speed, YGFor around the variance of Y-axis angular speed, ZGFor the variance of angular speed about the z axis, ZGTotal1For rotary motion condition Under accumulative rotational angle, Z about the z axisGTotal2For accumulative rotational angle, the Z under the conditions of rotary motion about the z axisAPeakFor Z axis acceleration Wave crest number, the Z of degreeAValleyFor the trough number of Z axis acceleration, X-axis and Y-axis is horizontal direction axis, Z axis is vertical direction axis; ATH1、ATH2、ATH3For preset acceleration rate threshold, GTH1、GTH2For preset angular speed threshold value, GTH3、GTH4For preset angle threshold Value, D are the moving distance in the plane locating for X-axis and Y-axis, DTHFor preset moving distance threshold value;M axis is X-axis, Y-axis and Z axis In any axis, N axis and O axis be remaining two axis, MGFor around the variance of M axis angular rate, NGFor around the variance of N axis angular rate, OGFor around The variance of O axis angular rate, MGTatalFor around the accumulative rotational angle of M axis, RTHFor preset angle threshold.
7. the method according to claim 1, wherein further include:
When user action is not detected in predefined continuous duration, the action sensor is switched by normal mode of operation To low-power consumption mode;
When the action sensor under low-power consumption mode detects user action, restore to the normal work mould Formula.
8. a kind of plant control unit characterized by comprising
Acquisition unit acquires the control device and is matched with user action by the action sensor being built in control device Under spatial movement parameter, including any spatial movement parameter for detecting when the action sensor in the first preset duration When increasing to starting threshold value, it is determined as that the user action starts;Wherein, the spatial movement parameter includes according to default sampling Period collected three-axis moving parameter, any spatial movement parameter detected when the action sensor are pre- first If increased in duration starting threshold value, be determined as the user action start include within multiple periods of preset quantity, when When the difference value summation of kinematic parameter of any spatial movement parameter in each axis reaches the first default value, it is determined as user action Start;
Determination unit determines that corresponding to for pre-configuration is described when the spatial movement parameter is matched with predefined characteristic parameter The target device and control instruction of predefined characteristic parameter;
Transmission unit, Xiang Suoshu target device send the control instruction.
9. device according to claim 8, which is characterized in that the acquisition unit includes:
Stage judgment sub-unit, after the user action starts, when all spatial movements that the action sensor detects When parameter is decreased to terminate threshold value in the second preset duration, it is determined as that the user action terminates;
Acquisition control subelement starts the acquisition of the spatial movement parameter when the user action starts;And work as institute When stating user action termination, the acquisition of the spatial movement parameter is terminated.
10. device according to claim 9, which is characterized in that the stage judgment sub-unit includes terminating judgment module;
The termination judgment module, within multiple periods of preset quantity, when each spatial movement parameter is joined in the movement of each axis When several difference value summations is decreased to corresponding second default value, it is determined as that the user action terminates.
11. device according to claim 9, which is characterized in that further include:
Recording unit records duration of the user action from starting to termination;
Ignore unit, when the duration is not belonging to predefined duration range, ignores the user action.
12. device according to claim 8, which is characterized in that when the control device is in cube structure, the sky Between kinematic parameter include: be matched with the crest line direction of the cube structure 3-axis acceleration parameter and three axis angular rates ginseng Number;
Described device further include: it is predefined to judge whether the spatial movement parameter is matched with by following manner for matching unit Feature:
When the spatial movement parameter meets restrictive condition and rotary motion condition in predefined plane, the space is determined Kinematic parameter is matched with the predefined feature, and the predefined feature is spinning movement feature;
When the spatial movement parameter meets restrictive condition in predefined plane and pushes moving condition, the space is determined Kinematic parameter is matched with the predefined feature, and the predefined feature is pushing action feature;
When the spatial movement parameter meets the predefined tapping operation condition with holding plane, the spatial movement is determined Parameter is matched with the predefined feature, and the predefined feature is hammer action feature;
When the spatial movement parameter meets predefined roll over condition, it is described pre- to determine that the spatial movement parameter is matched with Defined feature, and the predefined feature is the rotary movement feature of predetermined angle.
13. device according to claim 12, which is characterized in that
Restrictive condition includes: in the plane
The rotary motion condition includes:
The promotion moving condition includes:
The tapping operation condition includes:
The roll over condition includes:
Wherein, XAVariance, Y for X-axis accelerationAVariance, Z for Y-axis accelerationAFor the variance of Z axis acceleration, XGFor around X-axis The variance of angular speed, YGFor around the variance of Y-axis angular speed, ZGFor the variance of angular speed about the z axis, ZGTotal1For rotary motion condition Under accumulative rotational angle, Z about the z axisGTotal2For accumulative rotational angle, the Z under the conditions of rotary motion about the z axisAPeakFor Z axis acceleration Wave crest number, the Z of degreeAValleyFor the trough number of Z axis acceleration, X-axis and Y-axis is horizontal direction axis, Z axis is vertical direction axis; ATH1、ATH2、ATH3For preset acceleration rate threshold, GTH1、GTH2For preset angular speed threshold value, GTH3、GTH4For preset angle threshold Value, D are the moving distance in the plane locating for X-axis and Y-axis, DTHFor preset moving distance threshold value;M axis is X-axis, Y-axis and Z axis In any axis, N axis and O axis be remaining two axis, MGFor around the variance of M axis angular rate, NGFor around the variance of N axis angular rate, OGFor around The variance of O axis angular rate, MGTatalFor around the accumulative rotational angle of M axis, RTHFor preset angle threshold.
14. device according to claim 8, which is characterized in that further include:
Switch unit, when user action is not detected in predefined continuous duration, by the action sensor by normal work Operation mode switches to low-power consumption mode;
Recovery unit, when the action sensor under the low-power consumption mode detects user action, restore to it is described just Normal operating mode.
15. a kind of electronic equipment characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
By the action sensor being built in control device, the space fortune that the control device is matched under user action is acquired Dynamic parameter, including, within multiple periods of preset quantity, when the difference value of kinematic parameter of any spatial movement parameter in each axis When summation reaches the first default value, it is determined as that user action starts;
When the spatial movement parameter is matched with predefined characteristic parameter, determine that is be pre-configured corresponds to the predefined feature The target device and control instruction of parameter;
The control instruction is sent to the target device.
16. a kind of computer storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is executed by processor The step of any one of Shi Shixian such as claim 1-7 the method.
CN201610379380.3A 2016-05-31 2016-05-31 Apparatus control method and device, electronic equipment Active CN106094535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610379380.3A CN106094535B (en) 2016-05-31 2016-05-31 Apparatus control method and device, electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610379380.3A CN106094535B (en) 2016-05-31 2016-05-31 Apparatus control method and device, electronic equipment

Publications (2)

Publication Number Publication Date
CN106094535A CN106094535A (en) 2016-11-09
CN106094535B true CN106094535B (en) 2019-11-01

Family

ID=57229820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610379380.3A Active CN106094535B (en) 2016-05-31 2016-05-31 Apparatus control method and device, electronic equipment

Country Status (1)

Country Link
CN (1) CN106094535B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775329B (en) * 2016-12-30 2020-11-27 北京小米移动软件有限公司 Method and device for triggering click event and electronic equipment
CN107016347A (en) * 2017-03-09 2017-08-04 腾讯科技(深圳)有限公司 A kind of body-sensing action identification method, device and system
CN106878788A (en) * 2017-03-17 2017-06-20 山东浪潮商用***有限公司 A kind of remote control, remote control system and remote control thereof
CN108628526A (en) * 2017-03-22 2018-10-09 北京小米移动软件有限公司 Display changeover method and device, electronic equipment based on electronic equipment
CN107276822A (en) * 2017-07-14 2017-10-20 上海斐讯数据通信技术有限公司 A kind of router feature collocation method, device and wireless router
CN107861391A (en) * 2017-10-19 2018-03-30 广东美的制冷设备有限公司 Control method, device, home appliance and the readable storage medium storing program for executing of home appliance
CN110347054A (en) * 2019-08-12 2019-10-18 珠海格力电器股份有限公司 Control method, control equipment and control system
CN112445139A (en) * 2019-08-30 2021-03-05 珠海格力电器股份有限公司 Intelligent magic cube controller
CN110632632A (en) * 2019-09-05 2019-12-31 厦门盈趣汽车电子有限公司 Tracker and function setting method thereof
CN111538373B (en) * 2020-04-23 2022-05-06 北京小米移动软件有限公司 Motion monitoring method and device and terminal equipment
CN112114527B (en) * 2020-09-22 2024-03-01 深圳绿米联创科技有限公司 Device control apparatus, method, and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744359A (en) * 2013-10-30 2014-04-23 杭州古北电子科技有限公司 Method and device for controlling electric appliance through motion sensor
CN104639966A (en) * 2015-01-29 2015-05-20 小米科技有限责任公司 Method and device for remote control
CN105242780A (en) * 2015-09-23 2016-01-13 谢小强 Interactive control method and apparatus
CN105388779A (en) * 2015-12-25 2016-03-09 小米科技有限责任公司 Control method and device for intelligent equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882015B (en) * 2010-06-17 2016-06-08 金领导科技(深圳)有限公司 Controller and gesture control keying method thereof based on composite MEMS (Micro-electromechanical System) sensor
US20130335203A1 (en) * 2012-06-19 2013-12-19 Yan Long Sun Portable electronic device for remotely controlling smart home electronic devices and method thereof
CN105425621B (en) * 2015-11-09 2018-05-15 北京飞米科技有限公司 Control method, device and the terminal of the working status of electric appliance

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744359A (en) * 2013-10-30 2014-04-23 杭州古北电子科技有限公司 Method and device for controlling electric appliance through motion sensor
CN104639966A (en) * 2015-01-29 2015-05-20 小米科技有限责任公司 Method and device for remote control
CN105242780A (en) * 2015-09-23 2016-01-13 谢小强 Interactive control method and apparatus
CN105388779A (en) * 2015-12-25 2016-03-09 小米科技有限责任公司 Control method and device for intelligent equipment

Also Published As

Publication number Publication date
CN106094535A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106094535B (en) Apparatus control method and device, electronic equipment
CN106055098B (en) Every empty gesture operation method and device
CN104023434B (en) A kind of methods, devices and systems for opening intelligent lamp
CN104917632B (en) The detection method and device for channel status of networking, electronic equipment
CN107831995A (en) A kind of terminal operation control method, terminal and computer-readable recording medium
WO2013155936A1 (en) Method and device for controlling terminal, and terminal
WO2021169959A1 (en) Application starting method and electronic device
CN109393565A (en) Electronic cigarette control method, device and electronic cigarette
CN108647058A (en) A kind of application program launching method and mobile terminal
CN108471498A (en) A kind of shooting preview method and terminal
US20170046866A1 (en) Method and device for presenting operating states
CN106355852A (en) Equipment control method and device
CN104244045B (en) The method that control video pictures presents and device
CN108833709A (en) A kind of the starting method and mobile terminal of camera
CN103955275A (en) Application control method and device
CN104123075B (en) The method of control terminal and device
CN109068055A (en) A kind of patterning process, terminal and storage medium
CN105068632A (en) Terminal charging method and device and terminal
CN112121415A (en) Method, device and equipment for controlling interface display and storage medium
CN110519512A (en) A kind of object processing method and terminal
CN106201285A (en) Prevent power key by the method and device of false touch, electronic equipment
CN104216525A (en) Method and device for mode control of camera application
CN105005445B (en) Control display methods and device
CN107992342A (en) A kind of application configuration change method and mobile terminal
CN109710151A (en) A kind of document handling method and terminal device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant