CN108089462A - Control method, device, mobile terminal device and the electrical equipment of electrical equipment - Google Patents
Control method, device, mobile terminal device and the electrical equipment of electrical equipment Download PDFInfo
- Publication number
- CN108089462A CN108089462A CN201611041565.XA CN201611041565A CN108089462A CN 108089462 A CN108089462 A CN 108089462A CN 201611041565 A CN201611041565 A CN 201611041565A CN 108089462 A CN108089462 A CN 108089462A
- Authority
- CN
- China
- Prior art keywords
- electrical equipment
- mobile terminal
- terminal device
- instruction
- control instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Telephone Function (AREA)
- Selective Calling Equipment (AREA)
Abstract
The disclosure, which provides a kind of control method of electrical equipment, device, mobile terminal device and electrical equipment, a specific embodiment of the method, to be included:It establishes and connects with target electrical equipment;After the instruction for starting control is detected, the exercise data of the mobile terminal device is obtained;Control instruction is generated according to the exercise data, the control instruction is used to indicate the target electrical equipment and is moved;The control instruction is sent to the target electrical equipment.The embodiment can by the motion control target electrical equipment of mobile terminal device, without dedicated remote controler, avoid due to the use of remote control control electrical equipment and caused by inconvenience, and save resource.
Description
Technical field
This disclosure relates to technical field of electronic equipment, more particularly to a kind of control method of electrical equipment, device, movement are eventually
End equipment and electrical equipment.
Background technology
With the continuous development of electronic technology, electrical equipment is more and more widely used in daily life, electricity
Dynamic equipment can include electronic toy, electric robot and electric dust collector etc..In general, usually using dedicated distant
Control device controls electrical equipment, and still, remote controler is easily lost or damages, if after remote controler is lost or damaged, meeting
To user bring inconvenience in addition can not normal use electrical equipment, in addition, the manufacture of dedicated remote control also results in resource
Waste.
The content of the invention
In order to solve the above-mentioned technical problem, the disclosure provides a kind of control method of electrical equipment, device, mobile terminal and sets
Standby and electrical equipment.
According to the embodiment of the present disclosure in a first aspect, a kind of control method of electrical equipment is provided, applied to mobile terminal
Equipment, including:
It establishes and connects with target electrical equipment;
After the instruction for starting control is detected, the exercise data of the mobile terminal device is obtained;
Control instruction is generated according to the exercise data, the control instruction is used to indicate the target electrical equipment and carries out
Movement;
The control instruction is sent to the target electrical equipment.
Optionally, the exercise data includes the velocity magnitude and the speed mobile terminal device in a predetermined direction
Direction.
Optionally, the exercise data for obtaining the mobile terminal device, including:
Gather the resultant acceleration of the mobile terminal device;
The velocity component of the mobile terminal device in a predetermined direction is calculated based on the resultant acceleration;
The exercise data is determined according to the velocity component.
Optionally, the predetermined direction includes horizontal direction;The control instruction is used to indicate the target electrical equipment
Carry out the movement of horizontal direction.
Optionally, it is described that control instruction is generated according to the exercise data, including:
According to the movement locus of the target phase in the horizontal direction of mobile terminal device described in the motion capture, institute
State the target phase for the mobile terminal device in the horizontal direction velocity magnitude be more than predetermined threshold stage;
According to the average speed of target phase described in the moving track calculation;
Determine the direction of the average speed;
Direction generation control instruction based on the average speed, the control instruction are used to indicate that the target is electronic to be set
The standby direction according to the average speed carries out the movement of horizontal direction.
Optionally, the predetermined direction includes vertical direction;The control instruction is used to indicate the target electrical equipment
It is rotated.
Optionally, it is described that control instruction is generated according to the exercise data, including:
When the mobile terminal device vertical direction velocity magnitude be more than predetermined threshold when, determine the mobile terminal
The directional velocity of equipment currently in the vertical direction;
Control instruction is generated based on the directional velocity on the vertical direction, the control instruction indicates that the target is electronic
Equipment is rotated according to the direction of rotation corresponding to the direction of motion on the vertical direction.
According to the second aspect of the embodiment of the present disclosure, a kind of control method of electrical equipment is provided, applied to electrical equipment,
Including:
It establishes and connects with mobile terminal device;
The control instruction that the mobile terminal device is sent is received, the control instruction is according to the mobile terminal device
Exercise data and generate;
It is moved under the instruction of the control instruction.
Optionally, the exercise data includes the velocity magnitude and the speed mobile terminal device in a predetermined direction
Direction.
Optionally, the predetermined direction includes horizontal direction;
It is described to be moved under the instruction of the control instruction, including:
The movement of horizontal direction is carried out under the instruction of the control instruction.
Optionally, the movement that horizontal direction is carried out under the instruction of the control instruction, including:
Obtain the directional velocity of presently described electrical equipment in the horizontal direction;
The directional velocity of the control instruction instruction is obtained as reference speed direction;
When the directional velocity of presently described electrical equipment in the horizontal direction and the reference speed direction difference, change
The directional velocity of the electrical equipment in the horizontal direction, make the directional velocity of the electrical equipment in the horizontal direction with it is described
Reference speed direction is identical.
Optionally, the predetermined direction includes vertical direction;
It is described to be moved under the instruction of the control instruction, including:
It is rotated under the instruction of the control instruction.
Optionally, it is described to be rotated under the instruction of the control instruction, including:
Obtain the direction of rotation of presently described electrical equipment;
The direction of rotation of the control instruction instruction is obtained as benchmark direction of rotation;
When the direction of rotation of presently described electrical equipment and the benchmark direction of rotation difference, change the electrical equipment
Direction of rotation, the direction of rotation for making the electrical equipment is identical with the benchmark direction of rotation.
According to the third aspect of the embodiment of the present disclosure, a kind of control device of electrical equipment is provided, applied to mobile terminal
Equipment, including:
Link block is configured as establishing connection with target electrical equipment;
Acquisition module is configured as after the instruction for starting control is detected, obtains the movement of the mobile terminal device
Data;
Generation module is configured as generating control instruction according to the exercise data, and the control instruction is used to indicate institute
Target electrical equipment is stated to be moved;
Sending module is configured as sending the control instruction to the target electrical equipment.
Optionally, the exercise data includes the velocity magnitude and the speed mobile terminal device in a predetermined direction
Direction.
Optionally, the acquisition module includes:
Submodule is gathered, is configured as gathering the resultant acceleration of the mobile terminal device;
Computational submodule is configured as calculating the mobile terminal device in a predetermined direction based on the resultant acceleration
Velocity component;
Determination sub-module is configured as determining the exercise data according to the velocity component.
Optionally, the predetermined direction includes horizontal direction;The control instruction is used to indicate the target electrical equipment
Carry out the movement of horizontal direction.
Optionally, the generation module includes:
Track acquisition submodule is configured as according to the motion capture mobile terminal device in the horizontal direction
The movement locus of upper target phase, the target phase, velocity magnitude was more than pre- in the horizontal direction for the mobile terminal device
Determine the stage of threshold value;
Speed acquisition submodule is configured as the average speed of the target phase according to the moving track calculation;
First direction determination sub-module is configured to determine that the direction of the average speed;
First generation submodule, is configured as the direction generation control instruction based on the average speed, and the control refers to
Order is used to indicate the movement that the target electrical equipment carries out horizontal direction according to the direction of the average speed.
Optionally, the predetermined direction includes vertical direction;The control instruction is used to indicate the target electrical equipment
It is rotated.
Optionally, the generation module includes:
Second direction determination sub-module, be configured as be more than in the velocity magnitude of vertical direction in the mobile terminal device
During predetermined threshold, the directional velocity of the mobile terminal device currently in the vertical direction is determined;
Second generation submodule is configured as generating control instruction based on the directional velocity on the vertical direction, described
Control instruction indicates that the target electrical equipment is carried out according to the direction of rotation corresponding to the direction of motion on the vertical direction
Rotary motion.
According to the fourth aspect of the embodiment of the present disclosure, a kind of control device of electrical equipment is provided, applied to electrical equipment,
Including:
Link block is configured as establishing connection with mobile terminal device;
Receiving module, is configured as receiving the control instruction that the mobile terminal device is sent, the control instruction according to
The exercise data of the mobile terminal device and generate;
Control module is configured as being moved under the instruction of the control instruction.
Optionally, the exercise data includes the velocity magnitude and the speed mobile terminal device in a predetermined direction
Direction.
Optionally, the predetermined direction includes horizontal direction;
The control module includes:
Horizontal movement control submodule is configured as carrying out the movement of horizontal direction under the instruction of the control instruction.
Optionally, the horizontal movement control submodule includes:
First acquisition submodule is configured as obtaining the directional velocity of presently described electrical equipment in the horizontal direction;
Second acquisition submodule is configured as obtaining the directional velocity of the control instruction instruction as reference speed side
To;
Horizontal direction control submodule, be configured as the directional velocity of presently described electrical equipment in the horizontal direction with
During the reference speed direction difference, change the directional velocity of the electrical equipment in the horizontal direction, make the electrical equipment
Directional velocity in the horizontal direction is identical with the reference speed direction.
Optionally, the predetermined direction includes vertical direction;
The control module includes:
Rotary motion control submodule is configured as being rotated under the instruction of the control instruction.
Optionally, the rotary motion control submodule includes:
3rd acquisition submodule is configured as obtaining the direction of rotation of presently described electrical equipment;
4th acquisition submodule is configured as obtaining the direction of rotation of the control instruction instruction as benchmark rotation side
To;
Direction of rotation control submodule is configured as rotating in the direction of rotation of presently described electrical equipment and the benchmark
During the difference of direction, change the direction of rotation of the electrical equipment, the direction of rotation and the benchmark for making the electrical equipment rotate
Direction is identical.
According to a fifth aspect of the embodiments of the present disclosure, a kind of mobile terminal device is provided, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
It establishes and connects with target electrical equipment;
After the instruction for starting control is detected, the exercise data of the mobile terminal device is obtained;
Control instruction is generated according to the exercise data, the control instruction is used to indicate the target electrical equipment and carries out
Movement;
The control instruction is sent to the target electrical equipment.
According to the 6th of the embodiment of the present disclosure the aspect, a kind of electrical equipment is provided, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
It establishes and connects with mobile terminal device;
The control instruction that the mobile terminal device is sent is received, the control instruction is according to the mobile terminal device
Exercise data and generate;
It is moved under the instruction of the control instruction.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The control method for the electrical equipment that embodiment of the disclosure provides is connected and detected being established with target electrical equipment
After to the instruction for starting control, the exercise data of mobile terminal device is obtained, target is used to indicate according to exercise data generation
The control instruction that electrical equipment is moved sends control instruction to the target electrical equipment.So as to pass through mobile terminal
The motion control target electrical equipment of equipment, without dedicated remote controler, avoids due to the use of remote control control electrical equipment
Inconvenience caused by and, and save resource.
The control method for the electrical equipment that embodiment of the disclosure provides is connected and detected being established with target electrical equipment
After to the instruction for starting control, mobile terminal device velocity magnitude in the horizontal direction and directional velocity are obtained, according to shifting
Dynamic terminal device velocity magnitude in the horizontal direction and directional velocity generation are used to indicate target electrical equipment progress level
The control instruction of movement sends control instruction to the target electrical equipment.So as to by mobile terminal device in level side
Upward movement, the movement of control targe electrical equipment in the horizontal direction, without dedicated remote controler, avoid due to the use of
Remote control control electrical equipment and caused by inconvenience, and save resource.
The control method for the electrical equipment that embodiment of the disclosure provides is connected and detected being established with target electrical equipment
After to the instruction for starting control, mobile terminal device velocity magnitude in the vertical direction and directional velocity are obtained, according to shifting
Dynamic terminal device velocity magnitude in the vertical direction and directional velocity generation are used to indicate target electrical equipment progress level
The control instruction of movement sends control instruction to the target electrical equipment.So as to by mobile terminal device in level side
Upward movement, the movement that control targe electrical equipment is rotated without dedicated remote controler, are avoided due to the use of remote control
Device control electrical equipment and caused by inconvenience, and save resource.
The control method for the electrical equipment that embodiment of the disclosure provides is connected being established with mobile terminal device, and connect
It after the control instruction for receiving mobile terminal device transmission, is moved under the instruction of control instruction, the control instruction is according to this
The exercise data of mobile terminal device and generate.So as to pass through the movement of mobile terminal device, control targe electrical equipment
Moved, without dedicated remote controler, avoid due to the use of remote control control electrical equipment and caused by inconvenience, and
Save resource.
The control method for the electrical equipment that embodiment of the disclosure provides is connected being established with mobile terminal device, and connect
After the control instruction for receiving mobile terminal device transmission, the movement of horizontal direction, the control are carried out under the instruction of control instruction
Instruction is generated according to mobile terminal device velocity magnitude in the horizontal direction and directional velocity.So as to pass through movement
The movement of terminal device in the horizontal direction, the movement of control targe electrical equipment in the horizontal direction, without dedicated remote control
Device, avoid due to the use of remote control control electrical equipment and caused by inconvenience, and save resource.
The control method for the electrical equipment that embodiment of the disclosure provides is connected being established with mobile terminal device, and connect
After the control instruction for receiving mobile terminal device transmission, it is rotated under the instruction of control instruction, the control instruction root
It is generated according to mobile terminal device velocity magnitude in the vertical direction and directional velocity.So as to be set by mobile terminal
Standby movement in the vertical direction, control targe electrical equipment are rotated, without dedicated remote controler, avoid due to
Inconvenience caused by using remote control control electrical equipment, and save resource.
It should be appreciated that above general description and following detailed description are only exemplary and explanatory, not
The disclosure can be limited.
Description of the drawings
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and for explaining the principle of the disclosure together with specification.
Fig. 1 is that a kind of application scenarios of the control method of electrical equipment of the disclosure according to an exemplary embodiment show
It is intended to;
Fig. 2 is a kind of flow chart of the control method of electrical equipment of the disclosure according to an exemplary embodiment;
Fig. 3 is the flow chart of the control method of another electrical equipment of the disclosure according to an exemplary embodiment;
Fig. 4 is the flow chart of the control method of another electrical equipment of the disclosure according to an exemplary embodiment;
Fig. 5 is the flow chart of the control method of another electrical equipment of the disclosure according to an exemplary embodiment;
Fig. 6 is the flow chart of the control method of another electrical equipment of the disclosure according to an exemplary embodiment;
Fig. 7 is the flow chart of the control method of another electrical equipment of the disclosure according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of the control device of electrical equipment of the disclosure according to an exemplary embodiment;
Fig. 9 is the block diagram of the control device of another electrical equipment of the disclosure according to an exemplary embodiment;
Figure 10 is the block diagram of the control device of another electrical equipment of the disclosure according to an exemplary embodiment;
Figure 11 is the block diagram of the control device of another electrical equipment of the disclosure according to an exemplary embodiment;
Figure 12 is the block diagram of the control device of another electrical equipment of the disclosure according to an exemplary embodiment;
Figure 13 is the block diagram of the control device of another electrical equipment of the disclosure according to an exemplary embodiment;
Figure 14 is the block diagram of the control device of another electrical equipment of the disclosure according to an exemplary embodiment;
Figure 15 is the block diagram of the control device of another electrical equipment of the disclosure according to an exemplary embodiment;
Figure 16 is the block diagram of the control device of another electrical equipment of the disclosure according to an exemplary embodiment;
Figure 17 is that an a kind of structure of the control device of electrical equipment of the disclosure according to an exemplary embodiment is shown
It is intended to.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
It is only merely for the purpose of description specific embodiment in the term that the disclosure uses, and is not intended to be limiting the disclosure.
" one kind " of singulative used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority
Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps
Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, it is not departing from
In the case of disclosure scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
Fig. 1 shows a kind of application scenarios, and mobile terminal device 101 with electrical equipment 102 can be established and is connected by user,
And pass through mobile terminal device 101 and start control function.Then, user can be by mobile terminal device 101 to electrical equipment
102 carry out motion control, for example, electrical equipment 102 can be controlled to difference by the motion conditions of mobile terminal device 101
Direction movement or rotation etc..
It should be noted that mobile terminal device 101 and electrical equipment 102 can by public network, internal lan,
The modes such as Wi-Fi Hotspot, bluetooth, purple honeybee ZigBee establish communication connection, it will be understood that can also establish by another way
Connection, the disclosure to not limiting in this respect.Fig. 1 is a kind of example, and the mobile terminal device of the disclosure includes but not limited to intelligence
Energy mobile phone, tablet computer, personal digital assistant, intelligent wearable device etc..Electrical equipment include but not limited to electric robot,
Electric toy car, electronic toy ship, electric dust collector, electrodynamic balance vehicle, sweeping robot etc..
As shown in Fig. 2, Fig. 2 is the flow according to a kind of control method of electrical equipment shown in an exemplary embodiment
Figure, this method can be applied in mobile terminal device.In the present embodiment, in order to make it easy to understand, combining has exercise data
The mobile terminal device of acquisition function illustrates.It will be understood by those skilled in the art that the mobile terminal device can wrap
Mobile terminal device, intelligent wearable equipment, tablet computer, personal digital assistant for including but being not limited to smart mobile phone etc.
Deng.This method comprises the following steps:
In step 201, establish and connect with target electrical equipment.
In the present embodiment, connected it is possible, firstly, to first establish mobile terminal device with target electrical equipment to be controlled.
Communication connection can be established by modes such as public network, internal lan, Wi-Fi Hotspot, bluetooth, purple honeybee ZigBee, it can be with
Understand, connection, the tool that the disclosure is connected mobile terminal device with target electrical equipment can also be established by another way
It is not limited in terms of body mode.
In step 202, after the instruction for starting control is detected, the exercise data of mobile terminal device is obtained.
In the present embodiment, after mobile terminal device and target electrical equipment to be controlled being established successful connection, first,
User is needed to open the control function of mobile terminal, then the movement of target electrical equipment is controlled using mobile terminal device
System.User can open mobile whole by carrying out predetermined operation to mobile terminal device, so as to generate the instruction for starting control
The control function at end.Wherein, above-mentioned for starting the predetermined operation of control can be arbitrary rational operation, for example, can be with
It is to click on the operation of predetermined button or press the operation of predetermined key, can also be arbitrary gesture operation, etc..
It is appreciated that predetermined operation can also be other operations, the disclosure to not limiting in this respect.
In the present embodiment, after the instruction for starting control is detected, the exercise data of mobile terminal device is obtained.It is mobile
The exercise data of terminal device can be including the velocity magnitude of mobile terminal device in a predetermined direction and directional velocity.Specifically
For, it is possible, firstly, to gather the instantaneous resultant acceleration of mobile terminal device in real time.The resultant acceleration of mobile terminal device is movement
The vector sum of terminal device acceleration in all directions can pass through the wink of the dynamic terminal device of one or more sensors acquisition
When resultant acceleration.
For example, in general, accelerometer, gyroscope and earth magnetism are installed in major part mobile terminal device at present and passed
Sensor.When mobile terminal device moves, the number of accelerometer, gyroscope and geomagnetic sensor acquisition can be obtained respectively
According to then, handling the data collected, to obtain the instantaneous resultant acceleration of mobile terminal device.Specifically, Ke Yitong
The data for crossing gyroscope acquisition determine the size of acceleration of gravity and the direction (i.e. vertically downward direction) of gravity, then,
The acceleration gathered with accelerometer subtracts acceleration of gravity vector, to obtain resultant acceleration vector.Finally, with reference to gravity
The direction of acceleration is demarcated using the direction of the magnetic direction data pairing acceleration of geomagnetic sensor acquisition.When
So, the method for the resultant acceleration of any other acquisition mobile terminal device that is as known in the art and being likely to occur in the future is all
The disclosure is can be applied to, the disclosure does not limit the concrete mode aspect for gathering the resultant acceleration of mobile terminal device, as long as
The resultant acceleration of mobile terminal device can be gathered.
Then, the velocity component of mobile terminal device in a predetermined direction is calculated based on the resultant acceleration.In general, really
After the resultant acceleration for having determined object, it is possible to the sum velocity vector of the object at any time is calculated, and can be according to sum velocity
The velocity component of Vector operation any direction.Wherein, predetermined direction can include horizontal direction, can also include vertical direction,
Or horizontal direction and vertical direction can also be included, the disclosure to not limiting in this respect.
Finally, the velocity magnitude and speed of mobile terminal device in a predetermined direction can be determined according to above-mentioned velocity component
Spend direction.
In step 203, the control that target electrical equipment moved is used to indicate according to the generation of above-mentioned exercise data to refer to
Order.
In the present embodiment, when predetermined direction includes horizontal direction, control instruction can serve to indicate that target is electronic and set
The standby movement for carrying out horizontal direction.It can generate in the following way and be used to indicate target electrical equipment progress horizontal motion
Control instruction:It is possible, firstly, to by mobile terminal device, velocity magnitude is more than to determine in the stage of predetermined threshold in the horizontal direction
For the target phase.Mobile terminal device is obtained according to mobile terminal device velocity magnitude in the horizontal direction and directional velocity
The movement locus of target phase in the horizontal direction.Then, according to the arrow of the average speed of the moving track calculation target phase
Amount.The direction of average speed is determined again, and the direction generation control instruction based on average speed, the control instruction is used to indicate target
Electrical equipment carries out the movement of horizontal direction according to the direction of the average speed.
In the present embodiment, when predetermined direction includes vertical direction, control instruction can serve to indicate that target is electronic and set
It is standby to be rotated.It can generate in the following way and be used to indicate the control that target electrical equipment is rotated and refer to
Order:First, velocity magnitude of the mobile terminal device in vertical direction is obtained, when mobile terminal device is big in the speed of vertical direction
It is small be more than predetermined threshold when, determine the directional velocity of the mobile terminal device currently in the vertical direction.Based on vertical direction
Directional velocity generation control instruction, the control instruction indicate target electrical equipment according on vertical direction the direction of motion institute it is right
The direction of rotation answered is rotated.
For example, when the directional velocity of the mobile terminal device currently in the vertical direction is straight up, corresponding rotation
Turn direction as clockwise, which indicates target electrical equipment according to being rotated clockwise;And
When the directional velocity of the mobile terminal device currently in the vertical direction is straight down, corresponding direction of rotation is counterclockwise
Direction, the control instruction indicate target electrical equipment according to being counterclockwise rotated.
Alternatively, when the directional velocity of the mobile terminal device currently in the vertical direction is straight up, corresponding rotation
Turn direction as counterclockwise, which indicates target electrical equipment according to being counterclockwise rotated;And
When the directional velocity of the mobile terminal device currently in the vertical direction is straight down, corresponding direction of rotation is clockwise
Direction, the control instruction indicate target electrical equipment according to being rotated clockwise.
In step 204, the control instruction is sent to target electrical equipment.
The control method for the electrical equipment that above-described embodiment of the disclosure provides is establishing connection simultaneously with target electrical equipment
After detecting the instruction for starting control, the exercise data of mobile terminal device is obtained, is used to indicate according to exercise data generation
The control instruction that target electrical equipment is moved sends control instruction to the target electrical equipment.So as to pass through movement
The motion control target electrical equipment of terminal device, without dedicated remote controler, avoids electronic due to the use of remote control control
Equipment and caused by inconvenience, and save resource.
As shown in figure 3, the flow of the control method of another electrical equipments of the Fig. 3 according to an exemplary embodiment
A kind of process that control instruction is generated according to exercise data is described in detail in figure, the embodiment, and this method can be applied to move
In terminal device, comprise the following steps:
In step 301, establish and connect with target electrical equipment.
In step 302, after the instruction for starting control is detected, the speed of mobile terminal device in the horizontal direction is obtained
Spend size and directional velocity.
In step 303, according to mobile terminal device velocity magnitude in the horizontal direction and directional velocity, generation is used
The control instruction of horizontal motion is carried out in instruction target electrical equipment.
Specifically, first, obtained according to mobile terminal device velocity magnitude in the horizontal direction and directional velocity
The movement locus of mobile terminal device target phase in the horizontal direction, the target phase for mobile terminal device in the horizontal direction
Upper velocity magnitude is more than the stage of predetermined threshold.Then, according to the average speed of the moving track calculation target phase, determine flat
The direction of equal speed.Finally, the direction generation control instruction based on average speed, the control instruction are used to indicate that target is electronic to be set
The standby direction according to average speed carries out the movement of horizontal direction.
In step 304, the control instruction is sent to target electrical equipment.
It should be noted that for the step identical with Fig. 2 embodiments, no longer go to live in the household of one's in-laws on getting married in above-mentioned Fig. 3 embodiments
It states, related content can be found in Fig. 2 embodiments.
The control method for the electrical equipment that above-described embodiment of the disclosure provides is establishing connection simultaneously with target electrical equipment
After detecting the instruction for starting control, mobile terminal device velocity magnitude in the horizontal direction and directional velocity, root are obtained
Target electrical equipment is used to indicate according to mobile terminal device velocity magnitude in the horizontal direction and directional velocity generation to carry out
The control instruction of horizontal movement sends control instruction to the target electrical equipment.So as to by mobile terminal device in water
Square upward movement, the movement of control targe electrical equipment in the horizontal direction, without dedicated remote controler, avoid due to
Inconvenience caused by using remote control control electrical equipment, and save resource.
As shown in figure 4, the flow of the control method of another electrical equipments of the Fig. 4 according to an exemplary embodiment
Another process that control instruction is generated according to exercise data is described in detail in figure, the embodiment, and this method can be applied to move
In dynamic terminal device, comprise the following steps:
In step 401, establish and connect with target electrical equipment.
In step 402, after the instruction for starting control is detected, the speed of mobile terminal device in the vertical direction is obtained
Spend size and directional velocity.
In step 403, according to mobile terminal device velocity magnitude in the vertical direction and directional velocity, generation is used
In the control instruction that instruction target electrical equipment is rotated.
Specifically, when mobile terminal device is when the velocity magnitude of vertical direction is more than predetermined threshold, definite movement is eventually
The directional velocity of end equipment currently in the vertical direction.Control instruction, the control are generated based on the directional velocity on vertical direction
Instruction instruction target electrical equipment is rotated according to the direction of rotation corresponding to the direction of motion on vertical direction.
In step 404, the control instruction is sent to target electrical equipment.
It should be noted that for the step identical with Fig. 2 embodiments, no longer go to live in the household of one's in-laws on getting married in above-mentioned Fig. 4 embodiments
It states, related content can be found in Fig. 2 embodiments.
The control method for the electrical equipment that above-described embodiment of the disclosure provides is establishing connection simultaneously with target electrical equipment
After detecting the instruction for starting control, mobile terminal device velocity magnitude in the vertical direction and directional velocity, root are obtained
Target electrical equipment is used to indicate according to mobile terminal device velocity magnitude in the vertical direction and directional velocity generation to carry out
The control instruction of horizontal movement sends control instruction to the target electrical equipment.So as to by mobile terminal device in water
Square upward movement, the movement that control targe electrical equipment is rotated, without dedicated remote controler, avoid due to the use of
Remote control control electrical equipment and caused by inconvenience, and save resource.
As shown in figure 5, Fig. 5 is the flow according to the control method of another electrical equipment shown in an exemplary embodiment
Figure, this method can be applied in electrical equipment.In the present embodiment, in order to make it easy to understand, combining has exercise data acquisition
The electrical equipment of function illustrates.It will be understood by those skilled in the art that the electrical equipment can include but is not limited to it is all
Such as electric robot, electric toy car, electronic toy ship, electric dust collector, electrodynamic balance vehicle, sweeping robot.The party
Method comprises the following steps:
In step 501, establish and connect with mobile terminal device.
In step 502, the control instruction that mobile terminal device is sent is received.
In the present embodiment, which is the control instruction that is generated according to the exercise data of mobile terminal device.
Wherein, exercise data can be including the velocity magnitude of mobile terminal device in a predetermined direction and directional velocity.It is for example, predetermined
Direction can include horizontal direction, can also include vertical direction or can also include horizontal direction and vertical direction, this
Disclosure to not limiting in this respect.
In step 503, moved under the instruction of above-mentioned control instruction.
In the present embodiment, when predetermined direction includes horizontal direction, control instruction can serve to indicate that target is electronic and set
The standby movement for carrying out horizontal direction, can carry out horizontal movement under the instruction of the control instruction.Specifically, first, obtain
The current directional velocity of the electrical equipment in the horizontal direction, and the directional velocity of control instruction instruction is obtained as reference speed
Direction.When the current directional velocity of the electrical equipment in the horizontal direction is with reference speed direction difference, change electrical equipment
Directional velocity in the horizontal direction makes the directional velocity of electrical equipment in the horizontal direction identical with reference speed direction.
In the present embodiment, when predetermined direction includes vertical direction, control instruction can serve to indicate that target is electronic and set
It is standby to be rotated, it can be rotated under the instruction of the control instruction.Specifically, first, current electricity is obtained
The direction of rotation of dynamic equipment, and the direction of rotation of control instruction instruction is obtained as benchmark direction of rotation.When current electrical equipment
Direction of rotation and benchmark direction of rotation difference when, change the direction of rotation of electrical equipment, make the direction of rotation of electrical equipment with
Benchmark direction of rotation is identical.
The control method for the electrical equipment that above-described embodiment of the disclosure provides is connected being established with mobile terminal device,
And it after receiving the control instruction of mobile terminal device transmission, is moved under the instruction of control instruction, the control instruction root
It is generated according to the exercise data of the mobile terminal device.So as to which by the movement of mobile terminal device, control targe is electronic
Equipment is moved, without dedicated remote controler, avoid due to the use of remote control control electrical equipment and caused by it is many not
Just, and resource is saved.
As shown in fig. 6, the flow of the control method of another electrical equipments of the Fig. 6 according to an exemplary embodiment
A kind of process moved under the instruction of control instruction is described in detail in figure, the embodiment, and this method can be applied to electricity
In dynamic equipment, comprise the following steps:
In step 601, establish and connect with mobile terminal device.
In step 602, the control instruction that mobile terminal device is sent is received, the control instruction is according to above-mentioned mobile terminal
Equipment velocity magnitude in the horizontal direction and directional velocity and generate.
In step 603, the movement of horizontal direction is carried out under the instruction of above-mentioned control instruction.
In the present embodiment, first, the directional velocity of current electrical equipment in the horizontal direction is obtained.Pacify in electrical equipment
Equipped with the sensor for gathering and moving relevant data, for example, accelerometer, gyroscope and geomagnetic sensor etc..In electricity
During dynamic equipment moving, the directional velocity of data acquisition electrical equipment that the sensor gathers in the horizontal direction can be passed through.
It is appreciated that the speed side of any acquisition electrical equipment that is as known in the art and being likely to occur in the future in the horizontal direction
To method can be applied to the disclosure, the disclosure is to obtaining the specific side of electrical equipment directional velocity in the horizontal direction
It is not limited in terms of formula.
Then, the directional velocity of current control instruction instruction is obtained as reference speed direction.Judge currently electronic set
Whether standby directional velocity and reference speed direction in the horizontal direction be identical, when the speed side of electrical equipment in the horizontal direction
During to reference speed direction difference, change the directional velocity of electrical equipment in the horizontal direction, make electrical equipment in level side
Upward directional velocity is identical with reference speed direction.It for example, can be by being applied on certain direction of horizontal plane to electrical equipment
Add a power, to change the directional velocity of electrical equipment in the horizontal direction, until the speed of electrical equipment in the horizontal direction
Direction is identical with reference speed direction.
It should be noted that for the step identical with Fig. 5 embodiments, no longer go to live in the household of one's in-laws on getting married in above-mentioned Fig. 6 embodiments
It states, related content can be found in Fig. 5 embodiments.
The control method for the electrical equipment that above-described embodiment of the disclosure provides is connected being established with mobile terminal device,
And after receiving the control instruction of mobile terminal device transmission, the movement of horizontal direction is carried out under the instruction of control instruction, it should
Control instruction is generated according to mobile terminal device velocity magnitude in the horizontal direction and directional velocity.So as to pass through
The movement of mobile terminal device in the horizontal direction, the movement of control targe electrical equipment in the horizontal direction, without dedicated
Remote controler, avoid due to the use of remote control control electrical equipment and caused by inconvenience, and save resource.
As shown in fig. 7, the flow of the control method of another electrical equipments of the Fig. 7 according to an exemplary embodiment
Another process moved under the instruction of control instruction is described in detail in figure, the embodiment, and this method can be applied to
In electrical equipment, comprise the following steps:
In step 701, establish and connect with mobile terminal device.
In a step 702, the control instruction that mobile terminal device is sent is received, the control instruction is according to above-mentioned mobile terminal
Equipment velocity magnitude in the vertical direction and directional velocity and generate.
In step 703, it is rotated under the instruction of above-mentioned control instruction.
In the present embodiment, first, the direction of rotation of electrical equipment is obtained.Acquisition and rotation fortune are installed in electrical equipment
The sensor of relevant data is moved, for example, gyroscope etc..When electrical equipment is rotated, above-mentioned sensing can be passed through
The direction of rotation of the data acquisition electrical equipment of device acquisition.It is appreciated that as known in the art and future was likely to occur
The method of any direction of rotation for obtaining electrical equipment can be applied to the disclosure, rotation of the disclosure to acquisition electrical equipment
It is not limited in terms of the concrete mode in direction.
Then, the direction of rotation of above-mentioned control instruction instruction is obtained as benchmark direction of rotation.Judge current electrical equipment
Direction of rotation and benchmark direction of rotation it is whether identical, when the direction of rotation of current electrical equipment is different from benchmark direction of rotation
When, change the directional velocity of electrical equipment, the direction of rotation for making electrical equipment is identical with benchmark direction of rotation.For example, it can lead to
It crosses and a torque is applied to electrical equipment, to change the direction of rotation of electrical equipment, until the direction of rotation of electrical equipment and base
Quasi- direction of rotation is identical.
It should be noted that for the step identical with Fig. 5 embodiments, no longer go to live in the household of one's in-laws on getting married in above-mentioned Fig. 7 embodiments
It states, related content can be found in Fig. 7 embodiments.
The control method for the electrical equipment that above-described embodiment of the disclosure provides is connected being established with mobile terminal device,
And it after receiving the control instruction of mobile terminal device transmission, is rotated under the instruction of control instruction, which refers to
Order is generated according to mobile terminal device velocity magnitude in the vertical direction and directional velocity.So as to by mobile whole
The movement of end equipment in the vertical direction, control targe electrical equipment are rotated, and without dedicated remote controler, avoid
Inconvenience caused by due to the use of remote control control electrical equipment, and save resource.
It should be noted that although describing the operation of method of disclosure with particular order in the accompanying drawings, this is not required that
Or it implies and must could realize the phase according to the particular order come the operation for performing these operations or having to carry out shown in whole
The result of prestige.On the contrary, the step of describing in flow chart can change execution sequence.Additionally or alternatively, it is convenient to omit some
Multiple steps are merged into a step execution and/or a step are decomposed into execution of multiple steps by step.
It is corresponding with the control method embodiment of foregoing electrical equipment, the control dress for the electrical equipment that the disclosure additionally provides
The mobile terminal device and the embodiment of electrical equipment put and its applied.
As shown in figure 8, Fig. 8 is a kind of control device frame of electrical equipment of the disclosure according to an exemplary embodiment
Figure, the device are applied to mobile terminal device, including:Link block 801, acquisition module 802, generation module 803 and transmission
Module 804.
Wherein, link block 801 are configured as establishing connection with target electrical equipment.
Acquisition module 802 is configured as after the instruction for starting control is detected, obtains the movement number of mobile terminal device
According to.
Generation module 803 is configured as generating control instruction according to above-mentioned exercise data, which is used to indicate mesh
Mark electrical equipment is moved.
Sending module 804 is configured as sending above-mentioned control instruction to the target electrical equipment.
In some optional embodiments, it is big that above-mentioned exercise data includes the speed of mobile terminal device in a predetermined direction
Small and directional velocity.
As shown in figure 9, Fig. 9 is the control device of another electrical equipment of the disclosure according to an exemplary embodiment
Block diagram, on the basis of foregoing embodiment illustrated in fig. 8, acquisition module 802 can include the embodiment:Gather submodule 901, meter
Operator module 902 and determination sub-module 903.
Wherein, submodule 901 is gathered, is configured as the resultant acceleration of acquisition mobile terminal device.
Computational submodule 902 is configured as calculating the speed of mobile terminal device in a predetermined direction based on resultant acceleration
Component.
Determination sub-module 903 is configured as determining above-mentioned exercise data according to the velocity component.
In some optional embodiments, predetermined direction includes horizontal direction, and it is electronic which is used to indicate target
Equipment carries out the movement of horizontal direction.
As shown in Figure 10, Figure 10 is the control dress of another electrical equipment of the disclosure according to an exemplary embodiment
Block diagram is put, on the basis of foregoing embodiment illustrated in fig. 8, generation module 803 can include the embodiment:Track acquisition submodule
1001, speed acquisition submodule 1002, first direction determination sub-module 1003 and first generates submodule 1004.
Wherein, track acquisition submodule 1001 is configured as according to above-mentioned motion capture mobile terminal device in water
Square upwards movement locus of target phase, the target phase, velocity magnitude was more than pre- in the horizontal direction for mobile terminal device
Determine the stage of threshold value.
Speed acquisition submodule 1002 is configured as the average speed according to the moving track calculation target phase.
First direction determination sub-module 1003 is configured to determine that the direction of average speed.
First generation submodule 1004 is configured as the direction generation control instruction based on average speed, the control instruction
It is used to indicate the movement that target electrical equipment carries out horizontal direction according to the direction of average speed.
In some optional embodiments, predetermined direction includes vertical direction, and it is electronic which is used to indicate target
Equipment is rotated.
As shown in figure 11, Figure 11 is the control dress of another electrical equipment of the disclosure according to an exemplary embodiment
Block diagram is put, on the basis of foregoing embodiment illustrated in fig. 8, generation module 803 can include the embodiment:Second direction determines son
Module 1101 and second generates submodule 1102.
Wherein, second direction determination sub-module 1101 is configured as big in the speed of vertical direction in mobile terminal device
It is small be more than predetermined threshold when, determine the directional velocity of mobile terminal device currently in the vertical direction.
Second generation submodule 1102, is configured as generating control instruction based on the directional velocity on the vertical direction, should
Control instruction instruction target electrical equipment carries out rotation fortune according to the direction of rotation corresponding to the direction of motion on the vertical direction
It is dynamic.
It should be appreciated that above device can be set in advance in mobile terminal device, can also by download etc. modes and
It is loaded into mobile terminal device.Corresponding module in above device can cooperate with the module in mobile terminal device with
Realize the control program of electrical equipment.
As shown in figure 12, Figure 12 is the control dress of another electrical equipment of the disclosure according to an exemplary embodiment
Block diagram is put, which is applied to electrical equipment, including:Link block 1201, receiving module 1202 and control module 1203.
Wherein, link block 1201 are configured as establishing connection with mobile terminal device.
Receiving module 1202 is configured as receiving the control instruction that mobile terminal device is sent, and the control instruction is according to shifting
It moves the exercise data of terminal device and generates.
Control module 1203 is configured as being moved under the instruction of the control instruction.
In some optional embodiments, it is big that above-mentioned exercise data includes the speed of mobile terminal device in a predetermined direction
Small and directional velocity.
As shown in figure 13, Figure 13 is the control dress of another electrical equipment of the disclosure according to an exemplary embodiment
Block diagram is put, on the basis of foregoing embodiment illustrated in fig. 12, control module 1203 can include the embodiment:Horizontal movement controls
Submodule 1301.
Wherein, horizontal movement control submodule 1301 is configured as carrying out horizontal direction under the instruction of control instruction
Movement.
Wherein, predetermined direction includes horizontal direction.
As shown in figure 14, Figure 14 is the control dress of another electrical equipment of the disclosure according to an exemplary embodiment
Block diagram is put, on the basis of foregoing embodiment illustrated in fig. 13, horizontal movement control submodule 1301 can include the embodiment:The
One acquisition submodule 1401, the second acquisition submodule 1402 and horizontal direction control submodule 1403.
Wherein, the first acquisition submodule 1401 is configured as obtaining the speed side of current electrical equipment in the horizontal direction
To.
Second acquisition submodule 1402 is configured as obtaining the directional velocity of control instruction instruction as reference speed side
To.
Horizontal direction control submodule 1403, be configured as the directional velocity of current electrical equipment in the horizontal direction with
During the difference of reference speed direction, change the directional velocity of electrical equipment in the horizontal direction, make electrical equipment in the horizontal direction
Directional velocity it is identical with reference speed direction.
As shown in figure 15, Figure 15 is the control dress of another electrical equipment of the disclosure according to an exemplary embodiment
Block diagram is put, on the basis of foregoing embodiment illustrated in fig. 12, control module 1203 can include the embodiment:Rotary motion controls
Submodule 1501.
Wherein, rotary motion control submodule 1501 is configured as being rotated under the instruction of control instruction.
Wherein, predetermined direction includes vertical direction.
As shown in figure 16, Figure 16 is the control dress of another electrical equipment of the disclosure according to an exemplary embodiment
Block diagram is put, on the basis of foregoing embodiment illustrated in fig. 15, rotary motion control submodule 1501 can include the embodiment:The
Three acquisition submodules 1601, the 4th acquisition submodule 1602 and direction of rotation control submodule 1603.
Wherein, the 3rd acquisition submodule 1601 is configured as obtaining the direction of rotation of current electrical equipment.
4th acquisition submodule 1602 is configured as obtaining the direction of rotation of control instruction instruction as benchmark rotation side
To.
Direction of rotation control submodule 1603 is configured as in the direction of rotation of current electrical equipment and benchmark direction of rotation
When different, change the direction of rotation of electrical equipment, the direction of rotation for making electrical equipment is identical with benchmark direction of rotation.
It should be appreciated that above device can be set in advance in electrical equipment, can also be loaded by the modes such as downloading
Into electrical equipment.Corresponding module in above device can cooperate to realize electrical equipment with the module in electrical equipment
Control scheme.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separate, and the component shown as unit can be or can also
It is not physical location, you can be located at a place or can also be distributed in multiple network element.It can be according to reality
It needs that some or all of module therein is selected to realize the purpose of disclosure scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
Correspondingly, the disclosure also provides a kind of mobile terminal device, which includes:Processor;For depositing
Store up the memory of processor-executable instruction;Wherein, which is configured as:
It establishes and connects with target electrical equipment;
After the instruction for starting control is detected, the exercise data of the mobile terminal device is obtained;
Control instruction is generated according to the exercise data, the control instruction is used to indicate the target electrical equipment and carries out
Movement;
The control instruction is sent to the target electrical equipment.
Correspondingly, the disclosure also provides a kind of electrical equipment, which includes:Processor;For storing processor
The memory of executable instruction;Wherein, the processor is configured as:
It establishes and connects with mobile terminal device;
The control instruction that the mobile terminal device is sent is received, the control instruction is according to the mobile terminal device
Exercise data and generate;
It is moved under the instruction of the control instruction.
Figure 17 is the structural representation according to a kind of control device 9900 of electrical equipment shown in an exemplary embodiment
Figure.For example, device 9900 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console puts down
Board device, Medical Devices, body-building equipment, personal digital assistant etc..
With reference to Figure 17, device 9900 can include following one or more assemblies:Processing component 9902, memory 9904,
Power supply module 9906, multimedia component 9908, audio component 9910, the interface 9912 of input/output (I/O), sensor module
9914 and communication component 9916.
The integrated operation of 9902 usual control device 9900 of processing component, such as with display, call, data communication,
Camera operation and record operate associated operation.Processing element 9902 can be performed including one or more processors 9920
Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 9902 can include one or more moulds
Block, convenient for the interaction between processing component 9902 and other assemblies.For example, processing component 9902 can include multi-media module,
To facilitate the interaction between multimedia component 9908 and processing component 9902.
Memory 9904 is configured as storing various types of data to support the operation in device 9900.These data
Example is included for the instruction of any application program or method that are operated on device 9900, contact data, telephone book data,
Message, picture, video etc..Memory 9904 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static RAM (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 9906 provides electric power for the various assemblies of device 9900.Power supply module 9906 can include power management
System, one or more power supplys and other generate, manage and distribute electric power associated component with for device 9900.
Multimedia component 9908 is included in the screen of one output interface of offer between described device 9900 and user.
In some embodiments, screen can 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 one or more touch and passes
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or slide dynamic
The border of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, it is more
Media component 9908 includes a front camera and/or rear camera.When device 9900 is in operation mode, mould is such as shot
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 9910 is configured as output and/or input audio signal.For example, audio component 9910 includes a wheat
Gram wind (MIC), when device 9900 is in operation mode, during such as call model, logging mode and speech recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 9904 or via communication
Component 9916 is sent.In some embodiments, audio component 9910 further includes a loud speaker, for exports audio signal.
I/O interfaces 9912 provide interface, above-mentioned peripheral interface module between processing component 9902 and peripheral interface module
Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and
Locking press button.
Sensor module 9914 includes one or more sensors, and the state for providing various aspects for device 9900 is commented
Estimate.For example, sensor module 9914 can detect opening/closed state of device 9900, the relative positioning of component, such as institute
The display and keypad that component is device 9900 are stated, sensor module 9914 can be with detection device 9900 or device 9,900 1
The position change of a component, the existence or non-existence that user contacts with device 9900,9900 orientation of device or acceleration/deceleration and dress
Put 9900 temperature change.Sensor module 9914 can include proximity sensor, be configured in no any physics
It is detected the presence of nearby objects during contact.Sensor module 9914 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, microwave remote sensor or temperature sensor.
Communication component 9916 is configured to facilitate the communication of wired or wireless way between device 9900 and other equipment.Dress
The wireless network based on communication standard, such as WiFi can be accessed by putting 9900,2G or 3G or combination thereof.It is exemplary at one
In embodiment, communication component 9916 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 9916 further includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 9900 can be by one or more application 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 performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 9904 of instruction, above-metioned instruction can be performed to complete the above method by the processor 9920 of device 9900.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention 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 principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as illustratively, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be appreciated 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 appended claim.
Claims (28)
1. a kind of control method of electrical equipment, which is characterized in that applied to mobile terminal device, the described method includes:
It establishes and connects with target electrical equipment;
After the instruction for starting control is detected, the exercise data of the mobile terminal device is obtained;
Control instruction is generated according to the exercise data, the control instruction is used to indicate the target electrical equipment and is transported
It is dynamic;
The control instruction is sent to the target electrical equipment.
2. according to the method described in claim 1, it is characterized in that, the exercise data includes the mobile terminal device pre-
Determine the velocity magnitude and directional velocity on direction.
3. according to the method described in claim 2, it is characterized in that, the exercise data for obtaining the mobile terminal device,
Including:
Gather the resultant acceleration of the mobile terminal device;
The velocity component of the mobile terminal device in a predetermined direction is calculated based on the resultant acceleration;
The exercise data is determined according to the velocity component.
4. according to the method described in claim, which is characterized in that the predetermined direction includes horizontal direction;The control instruction
It is used to indicate the movement that the target electrical equipment carries out horizontal direction.
5. according to the method described in claim 4, it is characterized in that, described generate control instruction, bag according to the exercise data
It includes:
According to the movement locus of the target phase in the horizontal direction of mobile terminal device described in the motion capture, the mesh
The mark stage for the mobile terminal device in the horizontal direction velocity magnitude be more than predetermined threshold stage;
According to the average speed of target phase described in the moving track calculation;
Determine the direction of the average speed;
Based on the average speed direction generation control instruction, the control instruction be used to indicate the target electrical equipment by
The movement of horizontal direction is carried out according to the direction of the average speed.
6. according to the method described in claim 2, it is characterized in that, the predetermined direction includes vertical direction;The control refers to
Order is used to indicate the target electrical equipment and is rotated.
7. according to the method described in claim 6, it is characterized in that, described generate control instruction, bag according to the exercise data
It includes:
When the mobile terminal device vertical direction velocity magnitude be more than predetermined threshold when, determine the mobile terminal device
Currently directional velocity in the vertical direction;
Control instruction is generated based on the directional velocity on the vertical direction, the control instruction indicates the target electrical equipment
It is rotated according to the direction of rotation corresponding to the direction of motion on the vertical direction.
8. a kind of control method of electrical equipment, which is characterized in that applied to electrical equipment, the described method includes:
It establishes and connects with mobile terminal device;
Receive the control instruction that the mobile terminal device is sent, the control instruction is according to the movement of the mobile terminal device
Data and generate;
It is moved under the instruction of the control instruction.
9. according to the method described in claim 8, it is characterized in that, the exercise data includes the mobile terminal device pre-
Determine the velocity magnitude and directional velocity on direction.
10. according to the method described in claim 9, it is characterized in that, the predetermined direction includes horizontal direction;
It is described to be moved under the instruction of the control instruction, including:
The movement of horizontal direction is carried out under the instruction of the control instruction.
11. according to the method described in claim 10, it is characterized in that, described carry out level under the instruction of the control instruction
The movement in direction, including:
Obtain the directional velocity of presently described electrical equipment in the horizontal direction;
The directional velocity of the control instruction instruction is obtained as reference speed direction;
When the directional velocity of presently described electrical equipment in the horizontal direction and the reference speed direction difference, described in change
The directional velocity of electrical equipment in the horizontal direction makes the directional velocity of the electrical equipment in the horizontal direction and the benchmark
Directional velocity is identical.
12. according to the method described in claim 9, it is characterized in that, the predetermined direction includes vertical direction;
It is described to be moved under the instruction of the control instruction, including:
It is rotated under the instruction of the control instruction.
13. according to the method for claim 12, which is characterized in that described to be rotated under the instruction of the control instruction
Movement, including:
Obtain the direction of rotation of presently described electrical equipment;
The direction of rotation of the control instruction instruction is obtained as benchmark direction of rotation;
When the direction of rotation of presently described electrical equipment and the benchmark direction of rotation difference, change the rotation of the electrical equipment
Turn direction, the direction of rotation for making the electrical equipment is identical with the benchmark direction of rotation.
14. a kind of control device of electrical equipment, which is characterized in that applied to mobile terminal device, described device includes:
Link block is configured as establishing connection with target electrical equipment;
Acquisition module is configured as after the instruction for starting control is detected, obtains the exercise data of the mobile terminal device;
Generation module is configured as generating control instruction according to the exercise data, and the control instruction is used to indicate the mesh
Mark electrical equipment is moved;
Sending module is configured as sending the control instruction to the target electrical equipment.
15. device according to claim 14, which is characterized in that the exercise data exists including the mobile terminal device
Velocity magnitude and directional velocity on predetermined direction.
16. device according to claim 15, which is characterized in that the acquisition module includes:
Submodule is gathered, is configured as gathering the resultant acceleration of the mobile terminal device;
Computational submodule is configured as calculating the speed of the mobile terminal device in a predetermined direction based on the resultant acceleration
Component;
Determination sub-module is configured as determining the exercise data according to the velocity component.
17. device according to claim 15, which is characterized in that the predetermined direction includes horizontal direction;The control
Instruction is used to indicate the movement that the target electrical equipment carries out horizontal direction.
18. device according to claim 17, which is characterized in that the generation module includes:
Track acquisition submodule is configured as according to the motion capture mobile terminal device mesh in the horizontal direction
The movement locus in mark stage, the target phase, velocity magnitude was more than predetermined threshold in the horizontal direction for the mobile terminal device
The stage of value;
Speed acquisition submodule is configured as the average speed of the target phase according to the moving track calculation;
First direction determination sub-module is configured to determine that the direction of the average speed;
First generation submodule, is configured as the direction generation control instruction based on the average speed, and the control instruction is used
The movement of horizontal direction is carried out according to the direction of the average speed in the instruction target electrical equipment.
19. device according to claim 15, which is characterized in that the predetermined direction includes vertical direction;The control
Instruction is used to indicate the target electrical equipment and is rotated.
20. device according to claim 19, which is characterized in that the generation module includes:
Second direction determination sub-module, it is more than predetermined in the velocity magnitude of vertical direction to be configured as in the mobile terminal device
During threshold value, the directional velocity of the mobile terminal device currently in the vertical direction is determined;
Second generation submodule, is configured as generating control instruction, the control based on the directional velocity on the vertical direction
Instruction indicates that the target electrical equipment is rotated according to the direction of rotation corresponding to the direction of motion on the vertical direction
Movement.
21. a kind of control device of electrical equipment, which is characterized in that applied to electrical equipment, described device includes:
Link block is configured as establishing connection with mobile terminal device;
Receiving module is configured as receiving the control instruction that the mobile terminal device is sent, and the control instruction is according to
The exercise data of mobile terminal device and generate;
Control module is configured as being moved under the instruction of the control instruction.
22. device according to claim 21, which is characterized in that the exercise data exists including the mobile terminal device
Velocity magnitude and directional velocity on predetermined direction.
23. device according to claim 22, which is characterized in that the predetermined direction includes horizontal direction;
The control module includes:
Horizontal movement control submodule is configured as carrying out the movement of horizontal direction under the instruction of the control instruction.
24. device according to claim 23, which is characterized in that the horizontal movement control submodule includes:
First acquisition submodule is configured as obtaining the directional velocity of presently described electrical equipment in the horizontal direction;
Second acquisition submodule is configured as obtaining the directional velocity of the control instruction instruction as reference speed direction;
Horizontal direction control submodule, be configured as the directional velocity of presently described electrical equipment in the horizontal direction with it is described
During the difference of reference speed direction, change the directional velocity of the electrical equipment in the horizontal direction, make the electrical equipment in water
Square upward directional velocity is identical with the reference speed direction.
25. device according to claim 24, which is characterized in that the predetermined direction includes vertical direction;
The control module includes:
Rotary motion control submodule is configured as being rotated under the instruction of the control instruction.
26. device according to claim 25, which is characterized in that the rotary motion control submodule includes:
3rd acquisition submodule is configured as obtaining the direction of rotation of presently described electrical equipment;
4th acquisition submodule is configured as obtaining the direction of rotation of the control instruction instruction as benchmark direction of rotation;
Direction of rotation control submodule is configured as in the direction of rotation of presently described electrical equipment and the benchmark direction of rotation
When different, change the direction of rotation of the electrical equipment, make the direction of rotation of the electrical equipment and the benchmark direction of rotation
It is identical.
27. a kind of mobile terminal device, which is characterized in that including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
It establishes and connects with target electrical equipment;
After the instruction for starting control is detected, the exercise data of the mobile terminal device is obtained;
Control instruction is generated according to the exercise data, the control instruction is used to indicate the target electrical equipment and is transported
It is dynamic;
The control instruction is sent to the target electrical equipment.
28. a kind of electrical equipment, which is characterized in that including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
It establishes and connects with mobile terminal device;
Receive the control instruction that the mobile terminal device is sent, the control instruction is according to the movement of the mobile terminal device
Data and generate;
It is moved under the instruction of the control instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611041565.XA CN108089462B (en) | 2016-11-21 | 2016-11-21 | Control method and device of electric equipment, mobile terminal equipment and electric equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611041565.XA CN108089462B (en) | 2016-11-21 | 2016-11-21 | Control method and device of electric equipment, mobile terminal equipment and electric equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108089462A true CN108089462A (en) | 2018-05-29 |
CN108089462B CN108089462B (en) | 2020-06-02 |
Family
ID=62171035
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611041565.XA Active CN108089462B (en) | 2016-11-21 | 2016-11-21 | Control method and device of electric equipment, mobile terminal equipment and electric equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108089462B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108958253A (en) * | 2018-07-19 | 2018-12-07 | 北京小米移动软件有限公司 | The control method and device of sweeping robot |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101641943A (en) * | 2007-03-13 | 2010-02-03 | 日本电气株式会社 | Mobile terminal, and its function controlling method |
CN201978499U (en) * | 2011-01-28 | 2011-09-21 | 深圳市格兰之特科技有限公司 | Motion sensing remote controller and aircraft |
CN102339141A (en) * | 2010-07-16 | 2012-02-01 | 联想(北京)有限公司 | Mobile terminal and display control method thereof |
CN103218061A (en) * | 2013-04-22 | 2013-07-24 | 零度智控(北京)智能科技有限公司 | Control method and control device on basis of handheld terminal device |
CN103226362A (en) * | 2013-03-26 | 2013-07-31 | 天脉聚源(北京)传媒科技有限公司 | Rotation control method and device |
CN203874446U (en) * | 2013-12-19 | 2014-10-15 | 上海斐讯数据通信技术有限公司 | Control system of racket for tennis game based on mobile terminal |
CN104182135A (en) * | 2013-05-21 | 2014-12-03 | 百度在线网络技术(北京)有限公司 | Control method and device for mobile terminal and mobile terminal |
CN105667454A (en) * | 2016-03-14 | 2016-06-15 | 联想(北京)有限公司 | Control method and mobile device |
CN106094844A (en) * | 2016-05-27 | 2016-11-09 | 北京小米移动软件有限公司 | Balance car control method, device and balance car |
-
2016
- 2016-11-21 CN CN201611041565.XA patent/CN108089462B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101641943A (en) * | 2007-03-13 | 2010-02-03 | 日本电气株式会社 | Mobile terminal, and its function controlling method |
CN102339141A (en) * | 2010-07-16 | 2012-02-01 | 联想(北京)有限公司 | Mobile terminal and display control method thereof |
CN201978499U (en) * | 2011-01-28 | 2011-09-21 | 深圳市格兰之特科技有限公司 | Motion sensing remote controller and aircraft |
CN103226362A (en) * | 2013-03-26 | 2013-07-31 | 天脉聚源(北京)传媒科技有限公司 | Rotation control method and device |
CN103218061A (en) * | 2013-04-22 | 2013-07-24 | 零度智控(北京)智能科技有限公司 | Control method and control device on basis of handheld terminal device |
CN104182135A (en) * | 2013-05-21 | 2014-12-03 | 百度在线网络技术(北京)有限公司 | Control method and device for mobile terminal and mobile terminal |
CN203874446U (en) * | 2013-12-19 | 2014-10-15 | 上海斐讯数据通信技术有限公司 | Control system of racket for tennis game based on mobile terminal |
CN105667454A (en) * | 2016-03-14 | 2016-06-15 | 联想(北京)有限公司 | Control method and mobile device |
CN106094844A (en) * | 2016-05-27 | 2016-11-09 | 北京小米移动软件有限公司 | Balance car control method, device and balance car |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108958253A (en) * | 2018-07-19 | 2018-12-07 | 北京小米移动软件有限公司 | The control method and device of sweeping robot |
Also Published As
Publication number | Publication date |
---|---|
CN108089462B (en) | 2020-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104917632B (en) | The detection method and device for channel status of networking, electronic equipment | |
CN105119958B (en) | Control the method and device of smart machine | |
CN108064360A (en) | The control method and device of unmanned plane | |
CN105068958B (en) | Method for handover control and device | |
CN104156065A (en) | Home media playing device control method, device and equipment | |
CN108647058A (en) | A kind of application program launching method and mobile terminal | |
CN105068632A (en) | Terminal charging method and device and terminal | |
CN107204883A (en) | Network failure processing method and device | |
CN107948926A (en) | The method and apparatus that smart machine is shared | |
CN107730847A (en) | Sharing articles finding method and device | |
CN105549960B (en) | Control the method and device of camera | |
CN106355852A (en) | Equipment control method and device | |
CN106201310A (en) | The display packing of notification message, device and terminal | |
CN106211033A (en) | Data sharing method, device and electronic equipment | |
CN105827489A (en) | Intelligent household electrical appliance control method and device and intelligent household electrical appliance | |
CN104123075B (en) | The method of control terminal and device | |
CN104317647B (en) | Application function implementation method, device and terminal | |
CN106775202A (en) | A kind of method and device of information transfer | |
CN106027336A (en) | Equipment sharing method and device | |
CN105892869A (en) | Image position adjusting method and device | |
CN104881342B (en) | terminal test method and device | |
CN106507282A (en) | The control method of wireless connection and device | |
CN106453032A (en) | Information pushing method, device and system | |
CN109451811A (en) | Unmanned plane management method and device, electronic equipment and computer readable storage medium | |
CN104539497B (en) | Method for connecting network and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |