CN108089462B - Control method and device of electric equipment, mobile terminal equipment and electric equipment - Google Patents

Control method and device of electric equipment, mobile terminal equipment and electric equipment Download PDF

Info

Publication number
CN108089462B
CN108089462B CN201611041565.XA CN201611041565A CN108089462B CN 108089462 B CN108089462 B CN 108089462B CN 201611041565 A CN201611041565 A CN 201611041565A CN 108089462 B CN108089462 B CN 108089462B
Authority
CN
China
Prior art keywords
mobile terminal
control
speed
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.)
Active
Application number
CN201611041565.XA
Other languages
Chinese (zh)
Other versions
CN108089462A (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 Aiqi Technology Co ltd
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Aiqi Technology Co ltd
Beijing Xiaomi Mobile Software 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 Aiqi Technology Co ltd, Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Aiqi Technology Co ltd
Priority to CN201611041565.XA priority Critical patent/CN108089462B/en
Publication of CN108089462A publication Critical patent/CN108089462A/en
Application granted granted Critical
Publication of CN108089462B publication Critical patent/CN108089462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/04Programme 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 present disclosure provides a method and an apparatus for controlling an electric device, a mobile terminal device and an electric device, wherein a specific embodiment of the method includes: establishing connection with a target electric device; when a command for starting control is detected, acquiring motion data of the mobile terminal equipment; generating a control instruction according to the motion data, wherein the control instruction is used for indicating the target electric equipment to move; and sending the control instruction to the target electric equipment. According to the embodiment, the target electric equipment can be controlled through the motion of the mobile terminal equipment, a special remote controller is not needed, a plurality of inconveniences caused by the fact that the remote controller is used for controlling the electric equipment are avoided, and resources are saved.

Description

Control method and device of electric equipment, mobile terminal equipment and electric equipment
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and an apparatus for controlling an electric device, a mobile terminal device, and an electric device.
Background
With the continuous development of electronic technology, electric equipment is more and more widely used in daily life of people, and the electric equipment can include electric toys, electric robots, electric dust collectors and the like. Generally, a dedicated remote controller is usually used for controlling an electric device, but the remote controller is easily lost or damaged, if the remote controller is lost or damaged, inconvenience is brought to a user, even the electric device cannot be normally used, and in addition, resource waste is caused by manufacturing of the dedicated remote controller.
Disclosure of Invention
In order to solve the technical problem, the present disclosure provides a method and an apparatus for controlling an electric device, a mobile terminal device, and an electric device.
According to a first aspect of the embodiments of the present disclosure, there is provided a control method of an electric device, applied to a mobile terminal device, including:
establishing connection with a target electric device;
when a command for starting control is detected, acquiring motion data of the mobile terminal equipment;
generating a control instruction according to the motion data, wherein the control instruction is used for indicating the target electric equipment to move;
and sending the control instruction to the target electric equipment.
Optionally, the motion data includes a speed magnitude and a speed direction of the mobile terminal device in a predetermined direction.
Optionally, the acquiring the motion data of the mobile terminal device includes:
collecting the resultant acceleration of the mobile terminal equipment;
calculating a velocity component of the mobile terminal device in a predetermined direction based on the resultant acceleration;
determining the motion data from the velocity component.
Optionally, the predetermined direction comprises a horizontal direction; the control instruction is used for instructing the target electric equipment to move in the horizontal direction.
Optionally, the generating a control instruction according to the motion data includes:
acquiring a motion track of the mobile terminal equipment in a target stage in the horizontal direction according to the motion data, wherein the target stage is a stage in which the speed of the mobile terminal equipment in the horizontal direction exceeds a preset threshold value;
calculating the average speed of the target stage according to the motion track;
determining a direction of the average speed;
and generating a control instruction based on the direction of the average speed, wherein the control instruction is used for instructing the target electric device to move in the horizontal direction according to the direction of the average speed.
Optionally, the predetermined direction comprises a vertical direction; the control instructions are used for instructing the target electrically powered device to perform a rotational motion.
Optionally, the generating a control instruction according to the motion data includes:
when the speed of the mobile terminal equipment in the vertical direction exceeds a preset threshold value, determining the current speed direction of the mobile terminal equipment in the vertical direction;
and generating a control instruction based on the speed direction in the vertical direction, wherein the control instruction instructs the target electric equipment to perform rotary motion according to a rotary direction corresponding to the motion direction in the vertical direction.
According to a second aspect of the embodiments of the present disclosure, there is provided a control method of an electric device, applied to the electric device, including:
establishing connection with the mobile terminal equipment;
receiving a control instruction sent by the mobile terminal equipment, wherein the control instruction is generated according to the motion data of the mobile terminal equipment;
and performing motion under the instruction of the control instruction.
Optionally, the motion data includes a speed magnitude and a speed direction of the mobile terminal device in a predetermined direction.
Optionally, the predetermined direction comprises a horizontal direction;
the performing of the motion under the instruction of the control instruction comprises:
and performing the movement in the horizontal direction under the instruction of the control instruction.
Optionally, the performing the horizontal movement under the instruction of the control instruction includes:
acquiring the speed direction of the current electric equipment in the horizontal direction;
acquiring a speed direction indicated by the control instruction as a reference speed direction;
when the current speed direction of the electric device in the horizontal direction is different from the reference speed direction, changing the speed direction of the electric device in the horizontal direction so that the speed direction of the electric device in the horizontal direction is the same as the reference speed direction.
Optionally, the predetermined direction comprises a vertical direction;
the performing of the motion under the instruction of the control instruction comprises:
and performing rotary motion under the instruction of the control instruction.
Optionally, the performing a rotational motion under the instruction of the control instruction includes:
acquiring the current rotation direction of the electric equipment;
acquiring a rotation direction indicated by the control instruction as a reference rotation direction;
when the current rotating direction of the electric equipment is different from the reference rotating direction, the rotating direction of the electric equipment is changed to be the same as the reference rotating direction.
According to a third aspect of the embodiments of the present disclosure, there is provided a control apparatus for an electric device, applied to a mobile terminal device, including:
a connection module configured to establish a connection with a target electrically powered device;
the acquisition module is configured to acquire motion data of the mobile terminal equipment after detecting a command for starting control;
a generation module configured to generate a control instruction according to the motion data, the control instruction being used for instructing the target electrically powered device to move;
a transmitting module configured to transmit the control instruction to the target electrically powered device.
Optionally, the motion data includes a speed magnitude and a speed direction of the mobile terminal device in a predetermined direction.
Optionally, the obtaining module includes:
the acquisition submodule is configured to acquire the resultant acceleration of the mobile terminal device;
a calculation submodule configured to calculate a velocity component of the mobile terminal device in a predetermined direction based on the resultant acceleration;
a determination sub-module configured to determine the motion data from the velocity component.
Optionally, the predetermined direction comprises a horizontal direction; the control instruction is used for instructing the target electric equipment to move in the horizontal direction.
Optionally, the generating module includes:
the track acquisition submodule is configured to acquire a motion track of the mobile terminal device in a target stage in the horizontal direction according to the motion data, wherein the target stage is a stage in which the speed of the mobile terminal device in the horizontal direction exceeds a preset threshold value;
a speed acquisition submodule configured to calculate an average speed of the target phase from the motion trajectory;
a first direction determination submodule configured to determine a direction of the average speed;
a first generation submodule configured to generate a control instruction for instructing the target electric device to perform a horizontal direction of motion in the direction of the average speed based on the direction of the average speed.
Optionally, the predetermined direction comprises a vertical direction; the control instructions are used for instructing the target electrically powered device to perform a rotational motion.
Optionally, the generating module includes:
a second direction determination submodule configured to determine a speed direction of the mobile terminal device currently in a vertical direction when a speed magnitude of the mobile terminal device in the vertical direction exceeds a predetermined threshold;
a second generation submodule configured to generate a control instruction based on the speed direction in the vertical direction, the control instruction instructing the target electric device to perform a rotational motion in a rotational direction corresponding to the movement direction in the vertical direction.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a control apparatus for an electric device, applied to an electric device, including:
a connection module configured to establish a connection with a mobile terminal device;
the receiving module is configured to receive a control instruction sent by the mobile terminal device, and the control instruction is generated according to the motion data of the mobile terminal device;
a control module configured to perform a motion under the direction of the control instruction.
Optionally, the motion data includes a speed magnitude and a speed direction of the mobile terminal device in a predetermined direction.
Optionally, the predetermined direction comprises a horizontal direction;
the control module includes:
a horizontal movement control sub-module configured to perform a movement in a horizontal direction under the instruction of the control instruction.
Optionally, the horizontal motion control sub-module includes:
a first obtaining submodule configured to obtain a speed direction of the electric device in a horizontal direction at present;
a second acquisition submodule configured to acquire a speed direction indicated by the control instruction as a reference speed direction;
a horizontal direction control sub-module configured to change a speed direction of the electrically powered device in a horizontal direction to be the same as the reference speed direction when the current speed direction of the electrically powered device in the horizontal direction is different from the reference speed direction.
Optionally, the predetermined direction comprises a vertical direction;
the control module includes:
a rotational motion control sub-module configured to perform rotational motion under the direction of the control instruction.
Optionally, the rotational motion control sub-module includes:
a third obtaining submodule configured to obtain a current rotation direction of the electrically powered device;
a fourth acquisition submodule configured to acquire the rotation direction indicated by the control instruction as a reference rotation direction;
a rotation direction control sub-module configured to change the rotation direction of the electromotive device to be the same as the reference rotation direction when the current rotation direction of the electromotive device is different from the reference rotation direction.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a mobile terminal device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
establishing connection with a target electric device;
when a command for starting control is detected, acquiring motion data of the mobile terminal equipment;
generating a control instruction according to the motion data, wherein the control instruction is used for indicating the target electric equipment to move;
and sending the control instruction to the target electric equipment.
According to a sixth aspect of the embodiments of the present disclosure, there is provided an electromotive device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
establishing connection with the mobile terminal equipment;
receiving a control instruction sent by the mobile terminal equipment, wherein the control instruction is generated according to the motion data of the mobile terminal equipment;
and performing motion under the instruction of the control instruction.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the control method of the electric equipment, after connection with the target electric equipment is established and a command for starting control is detected, motion data of the mobile terminal equipment is obtained, a control command for instructing the target electric equipment to move is generated according to the motion data, and the control command is sent to the target electric equipment. Therefore, the target electric equipment can be controlled through the motion of the mobile terminal equipment, a special remote controller is not needed, a plurality of inconveniences caused by using the remote controller to control the electric equipment are avoided, and resources are saved.
According to the control method of the electric equipment, after connection with the target electric equipment is established and a command for starting control is detected, the speed and the speed direction of the mobile terminal equipment in the horizontal direction are obtained, a control command for instructing the target electric equipment to perform horizontal motion is generated according to the speed and the speed direction of the mobile terminal equipment in the horizontal direction, and the control command is sent to the target electric equipment. Therefore, the movement of the target electric equipment in the horizontal direction can be controlled through the movement of the mobile terminal equipment in the horizontal direction, a special remote controller is not needed, a plurality of inconveniences caused by the fact that the remote controller is used for controlling the electric equipment are avoided, and resources are saved.
According to the control method of the electric equipment, after connection with the target electric equipment is established and a command for starting control is detected, the speed and the speed direction of the mobile terminal equipment in the vertical direction are obtained, a control command for instructing the target electric equipment to perform horizontal movement is generated according to the speed and the speed direction of the mobile terminal equipment in the vertical direction, and the control command is sent to the target electric equipment. Therefore, the target electric equipment can be controlled to rotate through the movement of the mobile terminal equipment in the horizontal direction, a special remote controller is not needed, a plurality of inconveniences caused by the fact that the remote controller is used for controlling the electric equipment are avoided, and resources are saved.
According to the control method of the electric equipment provided by the embodiment of the disclosure, after the connection with the mobile terminal equipment is established and the control instruction sent by the mobile terminal equipment is received, the electric equipment moves under the instruction of the control instruction, and the control instruction is generated according to the movement data of the mobile terminal equipment. Therefore, the target electric equipment can be controlled to move through the movement of the mobile terminal equipment, a special remote controller is not needed, a plurality of inconveniences caused by the fact that the remote controller is used for controlling the electric equipment are avoided, and resources are saved.
According to the control method of the electric equipment provided by the embodiment of the disclosure, after the connection with the mobile terminal equipment is established and the control instruction sent by the mobile terminal equipment is received, the horizontal movement is carried out under the instruction of the control instruction, and the control instruction is generated according to the speed of the mobile terminal equipment in the horizontal direction and the speed direction. Therefore, the movement of the target electric equipment in the horizontal direction can be controlled through the movement of the mobile terminal equipment in the horizontal direction, a special remote controller is not needed, a plurality of inconveniences caused by the fact that the remote controller is used for controlling the electric equipment are avoided, and resources are saved.
According to the control method of the electric equipment provided by the embodiment of the disclosure, after the connection with the mobile terminal equipment is established and the control instruction sent by the mobile terminal equipment is received, the rotation motion is carried out under the instruction of the control instruction, and the control instruction is generated according to the speed and the speed direction of the mobile terminal equipment in the vertical direction. Therefore, the target electric equipment can be controlled to rotate through the movement of the mobile terminal equipment in the vertical direction, a special remote controller is not needed, a plurality of inconveniences caused by the fact that the remote controller is used for controlling the electric equipment are avoided, and resources are saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram illustrating an application scenario of a method of controlling an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 2 is a flow chart illustrating a method of controlling an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating another method of controlling an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 4 is a flow chart illustrating another method of controlling an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 5 is a flow chart illustrating another method of controlling an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 6 is a flow chart illustrating another method of controlling an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 7 is a flow chart illustrating another method of controlling an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 8 is a block diagram illustrating a control arrangement for an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 9 is a block diagram illustrating another control apparatus for an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 10 is a block diagram illustrating another control arrangement for an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 11 is a block diagram illustrating another control apparatus for an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 12 is a block diagram illustrating another control arrangement for an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 13 is a block diagram illustrating another control arrangement for an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 14 is a block diagram illustrating another control arrangement for an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 15 is a block diagram illustrating another control arrangement for an electrically powered device according to an exemplary embodiment of the present disclosure;
FIG. 16 is a block diagram illustrating another control arrangement for an electrically powered device according to an exemplary embodiment of the present disclosure;
fig. 17 is a schematic structural diagram illustrating a control apparatus of an electric device according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 1 shows an application scenario in which a user may establish a connection between a mobile terminal 101 and an electrically powered device 102 and initiate a control function via the mobile terminal 101. Then, the user can control the movement of the electric device 102 through the mobile terminal device 101, for example, the electric device 102 can be controlled to move or rotate in different directions through the movement of the mobile terminal device 101.
It should be noted that the mobile terminal device 101 and the electric device 102 may establish a communication connection through a public network, an internal local area network, a Wi-Fi hotspot, a bluetooth, a ZigBee and ZigBee, and the like, and it can be understood that the connection may also be established through other manners, which is not limited in this respect. Fig. 1 is only an example, and the mobile terminal device of the present disclosure includes, but is not limited to, a smart phone, a tablet computer, a personal digital assistant, a smart wearable device, and the like. Electrically powered devices include, but are not limited to, electric robots, electric toy vehicles, electric toy boats, electric vacuum cleaners, electric balance cars, sweeping robots, and the like.
As shown in fig. 2, fig. 2 is a flowchart illustrating a control method of an electromotive device according to an exemplary embodiment, which may be applied to a mobile terminal device. In the present embodiment, for convenience of understanding, the description is given in conjunction with a mobile terminal device having a motion data acquisition function. Those skilled in the art will appreciate that the mobile terminal device may include, but is not limited to, a mobile terminal device such as a smart phone, a smart wearable device, a tablet computer, a personal digital assistant, and the like. The method comprises the following steps:
in step 201, a connection is established with the target electrically powered device.
In this embodiment, first, the mobile terminal device may be connected to the target electric device to be controlled. The communication connection can be established in the modes of a public network, an internal local area network, a Wi-Fi hotspot, Bluetooth, ZigBee and the like, and it can be understood that the connection can also be established in other modes.
In step 202, after detecting the command for starting control, the motion data of the mobile terminal device is acquired.
In this embodiment, after the mobile terminal device is successfully connected to the target electric device to be controlled, the user is first required to start the control function of the mobile terminal device, and then the mobile terminal device is used to control the motion of the target electric device. The user can generate a command for starting control by performing predetermined operation on the mobile terminal device, and the control function of the mobile terminal is started. The predetermined operation for starting control may be any reasonable operation, for example, an operation of clicking a predetermined button, an operation of pressing a predetermined key, an arbitrary gesture operation, or the like. It is to be understood that the predetermined operation may be other operations as well, and the disclosure is not limited in this respect.
In this embodiment, after detecting the instruction to start control, the motion data of the mobile terminal device is acquired. The motion data of the mobile terminal device may comprise a speed magnitude and a speed direction of the mobile terminal device in a predetermined direction. In particular, firstly, the instantaneous resultant acceleration of the mobile terminal device can be acquired in real time. The resultant acceleration of the mobile terminal equipment is the vector sum of the accelerations of the mobile terminal equipment in all directions, and the instantaneous resultant acceleration of the mobile terminal equipment can be acquired through one or more sensors.
For example, in general, an accelerometer, a gyroscope, and a geomagnetic sensor are currently installed in most mobile terminal apparatuses. When the mobile terminal equipment moves, the data collected by the accelerometer, the gyroscope and the geomagnetic sensor can be respectively obtained, and then the collected data are processed to obtain the instantaneous resultant acceleration of the mobile terminal equipment. Specifically, the magnitude of the gravitational acceleration and the direction of the gravitational force (i.e., the vertically downward direction) may be determined from the data collected by the gyroscope, and then the acceleration vector collected by the accelerometer is subtracted from the gravitational acceleration vector to obtain a resultant acceleration vector. And finally, calibrating the direction of the combined acceleration vector by using geomagnetic direction data acquired by a geomagnetic sensor in combination with the direction of the gravity acceleration. Of course, any other method for acquiring the resultant acceleration of the mobile terminal device known in the art and possibly appearing in the future may be applied to the present disclosure, and the present disclosure is not limited to the specific manner of acquiring the resultant acceleration of the mobile terminal device as long as the resultant acceleration of the mobile terminal device can be acquired.
Then, a velocity component of the mobile terminal device in a predetermined direction is calculated based on the resultant acceleration. Generally, after determining the resultant acceleration of an object, the resultant velocity vector of the object at any time can be calculated, and a velocity component in any direction can be calculated from the resultant velocity vector. The predetermined direction may include a horizontal direction, a vertical direction, or both, which is not limited in this respect.
Finally, the magnitude of the velocity of the mobile terminal device in the predetermined direction and the direction of the velocity may be determined from the velocity component.
In step 203, a control command instructing the target electric device to perform a motion is generated based on the motion data.
In this embodiment, when the predetermined direction includes a horizontal direction, the control instruction may be used to instruct the target electrically powered device to perform a movement in the horizontal direction. The control instruction for instructing the target electric device to perform the horizontal direction motion may be generated by: first, a phase in which the velocity magnitude of the mobile terminal device in the horizontal direction exceeds a predetermined threshold value may be determined as a target phase. And acquiring the motion trail of the mobile terminal equipment in the target stage in the horizontal direction according to the speed of the mobile terminal equipment in the horizontal direction and the speed direction. Then, a vector of the average velocity of the target phase is calculated from the motion trajectory. And then determining the direction of the average speed, and generating a control instruction based on the direction of the average speed, wherein the control instruction is used for instructing the target electric device to move in the horizontal direction according to the direction of the average speed.
In this embodiment, when the predetermined direction includes a vertical direction, the control instruction may be used to instruct the target electrically powered device to perform a rotational motion. The control instruction for instructing the target electrically powered device to perform the rotational motion may be generated by: firstly, the speed of the mobile terminal device in the vertical direction is obtained, and when the speed of the mobile terminal device in the vertical direction exceeds a preset threshold value, the current speed direction of the mobile terminal device in the vertical direction is determined. And generating a control instruction based on the speed direction in the vertical direction, wherein the control instruction instructs the target electric equipment to perform rotary motion according to the rotating direction corresponding to the motion direction in the vertical direction.
For example, when the speed direction of the mobile terminal device in the current vertical direction is vertical upward, the corresponding rotation direction is clockwise, and the control instruction instructs the target electric device to perform rotation motion in the clockwise direction; and when the speed direction of the mobile terminal device in the current vertical direction is vertically downward, the corresponding rotating direction is anticlockwise, and the control instruction instructs the target electric device to perform rotating motion in the anticlockwise direction.
Or when the speed direction of the mobile terminal device in the current vertical direction is vertical upwards, the corresponding rotating direction is anticlockwise, and the control instruction instructs the target electric device to rotate in the anticlockwise direction; and when the current speed direction of the mobile terminal device in the vertical direction is vertically downward, the corresponding rotating direction is clockwise, and the control instruction instructs the target electric device to perform rotating motion in the clockwise direction.
In step 204, the control command is sent to the target electric device.
According to the control method of the electric device provided by the above embodiment of the present disclosure, after the connection with the target electric device is established and the command for starting control is detected, the motion data of the mobile terminal device is acquired, the control command for instructing the target electric device to move is generated according to the motion data, and the control command is sent to the target electric device. Therefore, the target electric equipment can be controlled through the motion of the mobile terminal equipment, a special remote controller is not needed, a plurality of inconveniences caused by using the remote controller to control the electric equipment are avoided, and resources are saved.
As shown in fig. 3, fig. 3 is a flowchart illustrating another control method for an electromotive device according to an exemplary embodiment, which describes in detail a process of generating a control command according to motion data, and the method can be applied to a mobile terminal device, and includes the steps of:
in step 301, a connection is established with a target electrically powered device.
In step 302, when an instruction to start control is detected, the speed magnitude and the speed direction of the mobile terminal device in the horizontal direction are acquired.
In step 303, a control command for instructing the target electric device to perform a horizontal movement is generated according to the magnitude of the speed of the mobile terminal device in the horizontal direction and the speed direction.
Specifically, first, a motion trajectory of the mobile terminal device in a target phase in the horizontal direction is obtained according to the speed magnitude and the speed direction of the mobile terminal device in the horizontal direction, where the speed magnitude of the mobile terminal device in the horizontal direction exceeds a predetermined threshold. Then, the average speed of the target stage is calculated according to the motion trail, and the direction of the average speed is determined. Finally, a control instruction for instructing the target electrically powered device to perform a horizontal direction of motion in the direction of the average speed is generated based on the direction of the average speed.
In step 304, the control command is sent to the target electric device.
It should be noted that, for the same steps as in the embodiment of fig. 2, details are not repeated in the embodiment of fig. 3, and related contents may refer to the embodiment of fig. 2.
According to the control method of the electric device provided by the above embodiment of the present disclosure, after establishing a connection with a target electric device and detecting a command for starting control, a speed magnitude and a speed direction of the mobile terminal device in a horizontal direction are acquired, a control command for instructing the target electric device to perform horizontal movement is generated according to the speed magnitude and the speed direction of the mobile terminal device in the horizontal direction, and the control command is sent to the target electric device. Therefore, the movement of the target electric equipment in the horizontal direction can be controlled through the movement of the mobile terminal equipment in the horizontal direction, a special remote controller is not needed, a plurality of inconveniences caused by the fact that the remote controller is used for controlling the electric equipment are avoided, and resources are saved.
As shown in fig. 4, fig. 4 is a flowchart illustrating another control method of an electromotive device according to an exemplary embodiment, which describes another process of generating a control instruction according to motion data in detail, and the method may be applied to a mobile terminal device, and includes the steps of:
in step 401, a connection is established with a target electrically powered device.
In step 402, when an instruction to start control is detected, the speed magnitude and the speed direction of the mobile terminal device in the vertical direction are acquired.
In step 403, a control instruction for instructing the target electric device to perform a rotational motion is generated according to the speed magnitude and the speed direction of the mobile terminal device in the vertical direction.
In particular, when the magnitude of the velocity of the mobile terminal device in the vertical direction exceeds a predetermined threshold, the velocity direction of the mobile terminal device currently in the vertical direction is determined. And generating a control instruction based on the speed direction in the vertical direction, wherein the control instruction instructs the target electric equipment to perform rotary motion according to the rotating direction corresponding to the motion direction in the vertical direction.
In step 404, the control command is sent to the target electric device.
It should be noted that, for the same steps as in the embodiment of fig. 2, details are not repeated in the embodiment of fig. 4, and related contents may refer to the embodiment of fig. 2.
According to the control method of the electric device provided by the above embodiment of the present disclosure, after establishing connection with the target electric device and detecting the command for starting control, the speed and the speed direction of the mobile terminal device in the vertical direction are obtained, the control command for instructing the target electric device to perform horizontal movement is generated according to the speed and the speed direction of the mobile terminal device in the vertical direction, and the control command is sent to the target electric device. Therefore, the target electric equipment can be controlled to rotate through the movement of the mobile terminal equipment in the horizontal direction, a special remote controller is not needed, a plurality of inconveniences caused by the fact that the remote controller is used for controlling the electric equipment are avoided, and resources are saved.
As shown in fig. 5, fig. 5 is a flowchart illustrating another control method of an electromotive device according to an exemplary embodiment, which may be applied to the electromotive device. In the present embodiment, for ease of understanding, the description is given in conjunction with an electric device having a motion data acquisition function. Those skilled in the art will appreciate that the electrically powered devices may include, but are not limited to, devices such as electric robots, electric toy vehicles, electric toy boats, electric vacuum cleaners, electric balance cars, sweeping robots, and the like. The method comprises the following steps:
in step 501, a connection is established with a mobile terminal device.
In step 502, a control instruction sent by the mobile terminal device is received.
In the present embodiment, the control instruction is a control instruction generated from motion data of the mobile terminal device. The motion data may include a speed magnitude and a speed direction of the mobile terminal device in a predetermined direction. For example, the predetermined direction may include a horizontal direction, may also include a vertical direction, or may also include a horizontal direction and a vertical direction, which is not limited in this respect.
In step 503, the movement is performed under the instruction of the control command.
In this embodiment, when the predetermined direction includes a horizontal direction, the control instruction may be used to instruct the target electric device to perform a horizontal movement, and the horizontal movement may be performed under the instruction of the control instruction. Specifically, first, the speed direction of the electrically powered device in the horizontal direction at present is acquired, and the speed direction indicated by the control command is acquired as the reference speed direction. When the current speed direction of the electric equipment in the horizontal direction is different from the reference speed direction, the speed direction of the electric equipment in the horizontal direction is changed, so that the speed direction of the electric equipment in the horizontal direction is the same as the reference speed direction.
In this embodiment, when the predetermined direction includes the vertical direction, the control instruction may be used to instruct the target electric device to perform the rotational movement, and the rotational movement may be performed under the instruction of the control instruction. Specifically, first, the current rotational direction of the electrically powered device is acquired, and the rotational direction indicated by the control command is acquired as the reference rotational direction. When the current rotation direction of the electric device is different from the reference rotation direction, the rotation direction of the electric device is changed to be the same as the reference rotation direction.
In the control method of the electric device provided by the above embodiment of the present disclosure, after the connection is established with the mobile terminal device and the control instruction sent by the mobile terminal device is received, the electric device moves under the instruction of the control instruction, and the control instruction is generated according to the movement data of the mobile terminal device. Therefore, the target electric equipment can be controlled to move through the movement of the mobile terminal equipment, a special remote controller is not needed, a plurality of inconveniences caused by the fact that the remote controller is used for controlling the electric equipment are avoided, and resources are saved.
Fig. 6 is a flowchart illustrating a control method of another electric device according to an exemplary embodiment, as shown in fig. 6, which describes in detail a process of performing a motion under the instruction of a control command, and the method can be applied to the electric device, and includes the following steps:
in step 601, a connection is established with the mobile terminal device.
In step 602, a control command sent by the mobile terminal device is received, and the control command is generated according to the speed magnitude and the speed direction of the mobile terminal device in the horizontal direction.
In step 603, the horizontal movement is performed under the instruction of the control command.
In the present embodiment, first, the speed direction of the current electrically powered device in the horizontal direction is acquired. Sensors for acquiring data related to motion, such as an accelerometer, a gyroscope, a geomagnetic sensor, and the like, are installed in the electric equipment. When the electric equipment moves, the speed direction of the electric equipment in the horizontal direction can be acquired through the data collected by the sensors. It is to be understood that any method of obtaining a velocity direction of an electrically powered device in a horizontal direction known in the art and that may occur in the future is applicable to the present disclosure, which is not limited in the particular manner of obtaining a velocity direction of an electrically powered device in a horizontal direction.
Then, the speed direction indicated by the current control instruction is acquired as a reference speed direction. And judging whether the speed direction of the current electric equipment in the horizontal direction is the same as the reference speed direction or not, and when the speed direction of the current electric equipment in the horizontal direction is different from the reference speed direction, changing the speed direction of the current electric equipment in the horizontal direction to enable the speed direction of the current electric equipment in the horizontal direction to be the same as the reference speed direction. For example, the speed direction of the electrically powered device in the horizontal direction may be changed by applying a force to the electrically powered device in a direction in the horizontal plane until the speed direction of the electrically powered device in the horizontal direction is the same as the reference speed direction.
It should be noted that, for the same steps as in the embodiment of fig. 5, details are not repeated in the embodiment of fig. 6, and related contents may refer to the embodiment of fig. 5.
According to the control method of the electric device provided by the above embodiment of the present disclosure, after the connection with the mobile terminal device is established and the control instruction sent by the mobile terminal device is received, the horizontal movement is performed under the instruction of the control instruction, and the control instruction is generated according to the speed magnitude and the speed direction of the mobile terminal device in the horizontal direction. Therefore, the movement of the target electric equipment in the horizontal direction can be controlled through the movement of the mobile terminal equipment in the horizontal direction, a special remote controller is not needed, a plurality of inconveniences caused by the fact that the remote controller is used for controlling the electric equipment are avoided, and resources are saved.
As shown in fig. 7, fig. 7 is a flowchart illustrating a control method of another electric device according to an exemplary embodiment, which describes another process of performing a motion under the instruction of a control command in detail, and the method can be applied to the electric device, and includes the following steps:
in step 701, a connection is established with a mobile terminal device.
In step 702, a control instruction sent by the mobile terminal device is received, and the control instruction is generated according to the speed magnitude and the speed direction of the mobile terminal device in the vertical direction.
In step 703, a rotational motion is performed under the instruction of the control command.
In the present embodiment, first, the rotational direction of the electromotive device is acquired. The electrically powered device has sensors mounted therein to collect data related to the rotational movement, such as gyroscopes and the like. When the electric equipment performs rotary motion, the rotation direction of the electric equipment can be acquired through the data acquired by the sensor. It is to be understood that any method of obtaining a rotational direction of a motorized device known in the art and that may occur in the future is applicable to the present disclosure, which is not limited in the particular manner in which the rotational direction of the motorized device is obtained.
Next, the rotation direction indicated by the control command is acquired as a reference rotation direction. And judging whether the current rotating direction of the electric equipment is the same as the reference rotating direction or not, and when the current rotating direction of the electric equipment is different from the reference rotating direction, changing the speed direction of the electric equipment to enable the rotating direction of the electric equipment to be the same as the reference rotating direction. For example, the direction of rotation of the electrically powered device may be changed by applying a torque to the electrically powered device until the direction of rotation of the electrically powered device is the same as the reference direction of rotation.
It should be noted that, for the same steps as in the embodiment of fig. 5, details are not repeated in the embodiment of fig. 7, and related contents may refer to the embodiment of fig. 7.
According to the control method of the electric device provided by the above embodiment of the present disclosure, after the connection with the mobile terminal device is established and the control instruction sent by the mobile terminal device is received, the rotation motion is performed under the instruction of the control instruction, and the control instruction is generated according to the speed magnitude and the speed direction of the mobile terminal device in the vertical direction. Therefore, the target electric equipment can be controlled to rotate through the movement of the mobile terminal equipment in the vertical direction, a special remote controller is not needed, a plurality of inconveniences caused by the fact that the remote controller is used for controlling the electric equipment are avoided, and resources are saved.
It should be noted that while the operations of the disclosed methods are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Rather, the steps depicted in the flowcharts may change the order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
Corresponding to the control method embodiment of the electric equipment, the disclosure also provides a control device of the electric equipment, and a mobile terminal equipment and an embodiment of the electric equipment which are applied to the control device.
As shown in fig. 8, fig. 8 is a block diagram of a control apparatus for an electromotive device according to an exemplary embodiment of the present disclosure, the apparatus being applied to a mobile terminal device, and including: a connection module 801, an acquisition module 802, a generation module 803, and a transmission module 804.
Wherein, the connection module 801 is configured to establish a connection with the target electric device.
An obtaining module 802 configured to obtain motion data of the mobile terminal device after detecting an instruction to start control.
A generating module 803 configured to generate a control instruction for instructing the target electric device to perform a motion according to the motion data.
A sending module 804 configured to send the control instruction to the target electric device.
In some optional embodiments, the motion data includes a speed magnitude and a speed direction of the mobile terminal device in a predetermined direction.
As shown in fig. 9, fig. 9 is a block diagram of a control apparatus of another electric device shown in the present disclosure according to an exemplary embodiment, and on the basis of the foregoing embodiment shown in fig. 8, the obtaining module 802 may include: an acquisition submodule 901, a calculation submodule 902 and a determination submodule 903.
Wherein, the collecting submodule 901 is configured to collect the resultant acceleration of the mobile terminal device.
A calculation submodule 902 configured to calculate a velocity component of the mobile terminal device in a predetermined direction based on the resultant acceleration.
A determination submodule 903 configured to determine the above-mentioned motion data from the velocity component.
In some alternative embodiments, the predetermined direction comprises a horizontal direction, and the control command is for instructing the target electrically powered device to perform a movement in the horizontal direction.
As shown in fig. 10, fig. 10 is a block diagram of a control apparatus of another electric device shown in the present disclosure according to an exemplary embodiment, and on the basis of the foregoing embodiment shown in fig. 8, the generating module 803 may include: a trajectory acquisition submodule 1001, a speed acquisition submodule 1002, a first direction determination submodule 1003 and a first generation submodule 1004.
The trajectory acquisition submodule 1001 is configured to acquire, according to the motion data, a motion trajectory of the mobile terminal device in a target phase in the horizontal direction, where the target phase is a phase in which a speed of the mobile terminal device in the horizontal direction exceeds a predetermined threshold.
A velocity acquisition submodule 1002 configured to calculate an average velocity of the target phase from the motion trajectory.
A first direction determination submodule 1003 configured to determine a direction of the average speed.
A first generation submodule 1004 configured to generate a control instruction for instructing the target electrically powered device to perform a movement in a horizontal direction in a direction of the average speed, based on the direction of the average speed.
In some alternative embodiments, the predetermined direction comprises a vertical direction, and the control command is for instructing the target electrically powered device to perform a rotational motion.
As shown in fig. 11, fig. 11 is a block diagram of a control apparatus of another electric device shown in the present disclosure according to an exemplary embodiment, and on the basis of the foregoing embodiment shown in fig. 8, the generating module 803 may include: a second direction determination submodule 1101 and a second generation submodule 1102.
Wherein the second direction determination submodule 1101 is configured to determine a speed direction of the mobile terminal device currently in the vertical direction when a speed magnitude of the mobile terminal device in the vertical direction exceeds a predetermined threshold.
A second generation submodule 1102 configured to generate a control instruction instructing the target electric device to perform a rotational movement in a rotational direction corresponding to the movement direction in the vertical direction, based on the speed direction in the vertical direction.
It should be understood that the above-mentioned apparatus may be preset in the mobile terminal device, and may also be loaded into the mobile terminal device by means of downloading or the like. The corresponding modules in the device can be matched with the modules in the mobile terminal equipment to realize the control scheme of the electric equipment.
As shown in fig. 12, fig. 12 is a block diagram of a control apparatus of another electric device according to an exemplary embodiment of the present disclosure, the apparatus is applied to the electric device, and includes: a connection module 1201, a reception module 1202 and a control module 1203.
Wherein, the connection module 1201 is configured to establish a connection with the mobile terminal device.
The receiving module 1202 is configured to receive a control instruction sent by the mobile terminal device, where the control instruction is generated according to the motion data of the mobile terminal device.
And a control module 1203 configured to perform the motion under the instruction of the control instruction.
In some optional embodiments, the motion data includes a speed magnitude and a speed direction of the mobile terminal device in a predetermined direction.
As shown in fig. 13, fig. 13 is a block diagram of a control apparatus of another electric device shown in the present disclosure according to an exemplary embodiment, and based on the foregoing embodiment shown in fig. 12, the control module 1203 may include: horizontal motion control sub-module 1301.
The horizontal movement control sub-module 1301 is configured to perform a horizontal movement under the instruction of the control command.
Wherein the predetermined direction comprises a horizontal direction.
As shown in fig. 14, fig. 14 is a block diagram of a control device of another electric device shown in the present disclosure according to an exemplary embodiment, and on the basis of the foregoing embodiment shown in fig. 13, the horizontal motion control sub-module 1301 may include: a first acquisition sub-module 1401, a second acquisition sub-module 1402, and a horizontal direction control sub-module 1403.
Wherein, the first obtaining submodule 1401 is configured to obtain the speed direction of the current electric device in the horizontal direction.
The second acquisition submodule 1402 is configured to acquire the speed direction indicated by the control instruction as the reference speed direction.
A horizontal direction control sub-module 1403 configured to change the speed direction of the electromotive device in the horizontal direction to be the same as the reference speed direction when the speed direction of the current electromotive device in the horizontal direction is different from the reference speed direction.
As shown in fig. 15, fig. 15 is a block diagram of a control apparatus of another electric device shown in the present disclosure according to an exemplary embodiment, and based on the foregoing embodiment shown in fig. 12, the control module 1203 may include: the rotational motion control sub-module 1501.
Wherein, the rotational motion control sub-module 1501 is configured to perform the rotational motion under the instruction of the control instruction.
Wherein the predetermined direction comprises a vertical direction.
As shown in fig. 16, fig. 16 is a block diagram of a control device of another electric device according to an exemplary embodiment of the present disclosure, which is based on the foregoing embodiment shown in fig. 15, and the rotational motion control sub-module 1501 may include: a third acquisition sub-module 1601, a fourth acquisition sub-module 1602, and a rotational direction control sub-module 1603.
Wherein, the third obtaining submodule 1601 is configured to obtain a rotation direction of the current electric device.
A fourth obtaining sub-module 1602 configured to obtain the rotation direction indicated by the control instruction as a reference rotation direction.
The rotation direction control sub-module 1603 is configured to change the rotation direction of the electric device to be the same as the reference rotation direction when the current rotation direction of the electric device is different from the reference rotation direction.
It should be understood that the above-mentioned apparatus may be preset in the electric device, and may also be loaded in the electric device by downloading or the like. The corresponding module in the device can be matched with the module in the electric equipment to realize the control scheme of the electric equipment.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Correspondingly, the present disclosure further provides a mobile terminal device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
establishing connection with a target electric device;
when a command for starting control is detected, acquiring motion data of the mobile terminal equipment;
generating a control instruction according to the motion data, wherein the control instruction is used for indicating the target electric equipment to move;
and sending the control instruction to the target electric equipment.
Accordingly, the present disclosure also provides an electrically powered device comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
establishing connection with the mobile terminal equipment;
receiving a control instruction sent by the mobile terminal equipment, wherein the control instruction is generated according to the motion data of the mobile terminal equipment;
and performing motion under the instruction of the control instruction.
Fig. 17 is a schematic structural diagram of a control device 9900 of an electric apparatus according to an exemplary embodiment. For example, the apparatus 9900 may be a mobile telephone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 17, the apparatus 9900 may include one or more of the following components: processing component 9902, memory 9904, power component 9906, multimedia component 9908, audio component 9910, input/output (I/O) interface 9912, sensor component 9914, and communication component 9916.
The processing component 9902 generally controls overall operation of the device 9900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 9902 may include one or more processors 9920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 9902 may include one or more modules that facilitate interaction between the processing component 9902 and other components. For example, the processing component 9902 may include a multimedia module to facilitate interaction between the multimedia component 9908 and the processing component 9902.
The memory 9904 is configured to store various types of data to support operations at the device 9900. Examples of such data include instructions for any application or method operating on the device 9900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 9904 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 9906 provides power to the various components of the device 9900. The power components 9906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 9900.
The multimedia component 9908 includes a screen that provides an output interface between the device 9900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 9908 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 9900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 9910 is configured to output and/or input audio signals. For example, the audio component 9910 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 9900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 9904 or transmitted via the communication component 9916. In some embodiments, the audio component 9910 also includes a speaker for outputting audio signals.
The I/O interface 9912 provides an interface between the processing component 9902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 9914 includes one or more sensors for providing various aspects of status assessment for the device 9900. For example, the sensor assembly 9914 may detect an open/closed state of the device 9900, the relative positioning of components, such as a display and keypad of the device 9900, the sensor assembly 9914 may also detect a change in position of the device 9900 or a component of the device 9900, the presence or absence of user contact with the device 9900, orientation or acceleration/deceleration of the device 9900, and a change in temperature of the device 9900. The sensor assembly 9914 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 9914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 9914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a microwave sensor, or a temperature sensor.
The communication component 9916 is configured to facilitate wired or wireless communication between the apparatus 9900 and other devices. The device 9900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 9916 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 9916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 9900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 9904 comprising instructions, executable by the processor 9920 of the apparatus 9900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (28)

1. A control method of an electric device is applied to a mobile terminal device, and the method comprises the following steps:
establishing connection with a target electric device;
when an instruction for starting control of the target electric equipment instead of a remote controller is detected, acquiring motion data of the mobile terminal equipment, wherein the instruction is generated based on preset operation of a user on the mobile terminal equipment, and the preset operation comprises operation of clicking a preset button, operation of pressing a preset button or gesture setting operation;
generating a control instruction according to the motion data, wherein the control instruction is used for indicating the target electric equipment to move;
and sending the control instruction to the target electric equipment.
2. The method according to claim 1, characterized in that the motion data comprises a speed magnitude and a speed direction of the mobile terminal device in a predetermined direction.
3. The method according to claim 2, wherein the obtaining motion data of the mobile terminal device comprises:
collecting the resultant acceleration of the mobile terminal equipment;
calculating a velocity component of the mobile terminal device in a predetermined direction based on the resultant acceleration;
determining the motion data from the velocity component.
4. The method of claim 2, wherein the predetermined direction comprises a horizontal direction; the control instruction is used for instructing the target electric equipment to move in the horizontal direction.
5. The method of claim 4, wherein generating control instructions from the motion data comprises:
acquiring a motion track of the mobile terminal equipment in a target stage in the horizontal direction according to the motion data, wherein the target stage is a stage in which the speed of the mobile terminal equipment in the horizontal direction exceeds a preset threshold value;
calculating the average speed of the target stage according to the motion track;
determining a direction of the average speed;
and generating a control instruction based on the direction of the average speed, wherein the control instruction is used for instructing the target electric device to move in the horizontal direction according to the direction of the average speed.
6. The method of claim 2, wherein the predetermined direction comprises a vertical direction; the control instructions are used for instructing the target electrically powered device to perform a rotational motion.
7. The method of claim 6, wherein generating control instructions from the motion data comprises:
when the speed of the mobile terminal equipment in the vertical direction exceeds a preset threshold value, determining the current speed direction of the mobile terminal equipment in the vertical direction;
and generating a control instruction based on the speed direction in the vertical direction, wherein the control instruction instructs the target electric equipment to perform rotary motion according to a rotary direction corresponding to the motion direction in the vertical direction.
8. A control method of an electric device, which is applied to the electric device, the method comprising:
establishing connection with the mobile terminal equipment;
receiving a control instruction sent by the mobile terminal equipment, wherein the control instruction comprises an instruction which is generated according to motion data of the mobile terminal equipment after the mobile terminal equipment detects that the instruction is used for starting the control of the electric equipment by replacing a remote controller, the instruction used for replacing the control of the remote controller on the electric equipment is generated based on a preset operation of a user on the mobile terminal equipment, and the preset operation comprises an operation of clicking a preset button, an operation of pressing a preset button or a set gesture operation;
and performing motion under the instruction of the control instruction.
9. The method according to claim 8, characterized in that the motion data comprises a speed magnitude and a speed direction of the mobile terminal device in a predetermined direction.
10. The method of claim 9, wherein the predetermined direction comprises a horizontal direction;
the performing of the motion under the instruction of the control instruction comprises:
and performing the movement in the horizontal direction under the instruction of the control instruction.
11. The method of claim 10, wherein the performing the horizontal movement under the instruction of the control command comprises:
acquiring the speed direction of the current electric equipment in the horizontal direction;
acquiring a speed direction indicated by the control instruction as a reference speed direction;
when the current speed direction of the electric device in the horizontal direction is different from the reference speed direction, changing the speed direction of the electric device in the horizontal direction so that the speed direction of the electric device in the horizontal direction is the same as the reference speed direction.
12. The method of claim 9, wherein the predetermined direction comprises a vertical direction;
the performing of the motion under the instruction of the control instruction comprises:
and performing rotary motion under the instruction of the control instruction.
13. The method of claim 12, wherein the performing rotational motion at the direction of the control command comprises:
acquiring the current rotation direction of the electric equipment;
acquiring a rotation direction indicated by the control instruction as a reference rotation direction;
when the current rotating direction of the electric equipment is different from the reference rotating direction, the rotating direction of the electric equipment is changed to be the same as the reference rotating direction.
14. A control device of an electric device, which is applied to a mobile terminal device, the device comprising:
a connection module configured to establish a connection with a target electrically powered device;
the acquisition module is configured to acquire motion data of the mobile terminal equipment after detecting an instruction for starting control of the target electric equipment instead of a remote controller is started, wherein the instruction is generated based on a preset operation of a user on the mobile terminal equipment, and the preset operation comprises an operation of clicking a preset button, an operation of pressing a preset key or a gesture setting operation;
a generation module configured to generate a control instruction according to the motion data, the control instruction being used for instructing the target electrically powered device to move;
a transmitting module configured to transmit the control instruction to the target electrically powered device.
15. The arrangement according to claim 14, characterised in that said motion data comprises a speed magnitude and a speed direction of said mobile terminal device in a predetermined direction.
16. The apparatus of claim 15, wherein the obtaining module comprises:
the acquisition submodule is configured to acquire the resultant acceleration of the mobile terminal device;
a calculation submodule configured to calculate a velocity component of the mobile terminal device in a predetermined direction based on the resultant acceleration;
a determination sub-module configured to determine the motion data from the velocity component.
17. The apparatus of claim 15, wherein the predetermined direction comprises a horizontal direction; the control instruction is used for instructing the target electric equipment to move in the horizontal direction.
18. The apparatus of claim 17, wherein the generating module comprises:
the track acquisition submodule is configured to acquire a motion track of the mobile terminal device in a target stage in the horizontal direction according to the motion data, wherein the target stage is a stage in which the speed of the mobile terminal device in the horizontal direction exceeds a preset threshold value;
a speed acquisition submodule configured to calculate an average speed of the target phase from the motion trajectory;
a first direction determination submodule configured to determine a direction of the average speed;
a first generation submodule configured to generate a control instruction for instructing the target electric device to perform a horizontal direction of motion in the direction of the average speed based on the direction of the average speed.
19. The apparatus of claim 15, wherein the predetermined direction comprises a vertical direction; the control instructions are used for instructing the target electrically powered device to perform a rotational motion.
20. The apparatus of claim 19, wherein the generating module comprises:
a second direction determination submodule configured to determine a speed direction of the mobile terminal device currently in a vertical direction when a speed magnitude of the mobile terminal device in the vertical direction exceeds a predetermined threshold;
a second generation submodule configured to generate a control instruction based on the speed direction in the vertical direction, the control instruction instructing the target electric device to perform a rotational motion in a rotational direction corresponding to the movement direction in the vertical direction.
21. A control device for an electrically powered device, characterized in that, when applied to an electrically powered device, the device comprises:
a connection module configured to establish a connection with a mobile terminal device;
the mobile terminal equipment comprises a receiving module, a control module and a control module, wherein the receiving module is configured to receive a control instruction sent by the mobile terminal equipment, the control instruction comprises an instruction which is generated according to motion data of the mobile terminal equipment after the mobile terminal equipment detects that an instruction for replacing a remote controller to control the electric equipment is started, the instruction for replacing the remote controller to control the electric equipment is generated based on a preset operation of a user on the mobile terminal equipment, and the preset operation comprises an operation of clicking a preset button, an operation of pressing a preset key or a set gesture operation;
a control module configured to perform a motion under the direction of the control instruction.
22. The apparatus according to claim 21, wherein the motion data comprises a speed magnitude and a speed direction of the mobile terminal device in a predetermined direction.
23. The apparatus of claim 22, wherein the predetermined direction comprises a horizontal direction;
the control module includes:
a horizontal movement control sub-module configured to perform a movement in a horizontal direction under the instruction of the control instruction.
24. The apparatus of claim 23, wherein the horizontal motion control sub-module comprises:
a first obtaining submodule configured to obtain a speed direction of the electric device in a horizontal direction at present;
a second acquisition submodule configured to acquire a speed direction indicated by the control instruction as a reference speed direction;
a horizontal direction control sub-module configured to change a speed direction of the electrically powered device in a horizontal direction to be the same as the reference speed direction when the current speed direction of the electrically powered device in the horizontal direction is different from the reference speed direction.
25. The apparatus of claim 24, wherein the predetermined direction comprises a vertical direction;
the control module includes:
a rotational motion control sub-module configured to perform rotational motion under the direction of the control instruction.
26. The apparatus of claim 25, wherein the rotational motion control sub-module comprises:
a third obtaining submodule configured to obtain a current rotation direction of the electrically powered device;
a fourth acquisition submodule configured to acquire the rotation direction indicated by the control instruction as a reference rotation direction;
a rotation direction control sub-module configured to change the rotation direction of the electromotive device to be the same as the reference rotation direction when the current rotation direction of the electromotive device is different from the reference rotation direction.
27. A mobile terminal device, characterized by comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
establishing connection with a target electric device;
when an instruction for starting control of the target electric equipment instead of a remote controller is detected, acquiring motion data of the mobile terminal equipment, wherein the instruction is generated based on preset operation of a user on the mobile terminal equipment, and the preset operation comprises operation of clicking a preset button, operation of pressing a preset button or gesture setting operation;
generating a control instruction according to the motion data, wherein the control instruction is used for indicating the target electric equipment to move;
and sending the control instruction to the target electric equipment.
28. An electrically powered device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
establishing connection with the mobile terminal equipment;
receiving a control instruction sent by the mobile terminal equipment, wherein the control instruction comprises an instruction which is generated according to motion data of the mobile terminal equipment after the mobile terminal equipment detects that the instruction is used for starting the control of the electric equipment by replacing a remote controller, the instruction used for replacing the control of the remote controller on the electric equipment is generated based on a preset operation of a user on the mobile terminal equipment, and the preset operation comprises an operation of clicking a preset button, an operation of pressing a preset button or a set gesture operation;
and performing motion under the instruction of the control instruction.
CN201611041565.XA 2016-11-21 2016-11-21 Control method and device of electric equipment, mobile terminal equipment and electric equipment Active CN108089462B (en)

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 CN108089462A (en) 2018-05-29
CN108089462B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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 (6)

* Cited by examiner, † Cited by third party
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
CN103218061A (en) * 2013-04-22 2013-07-24 零度智控(北京)智能科技有限公司 Control method and control device on basis of handheld terminal 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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106094844A (en) * 2016-05-27 2016-11-09 北京小米移动软件有限公司 Balance car control method, device and balance car

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN108089462A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN104898699B (en) Flight control method and device and electronic equipment
EP3136793B1 (en) Method and apparatus for awakening electronic device
CN104378587B (en) Imaging apparatus control method, device and equipment
US10063760B2 (en) Photographing control methods and devices
US10134269B2 (en) Control switching method and control terminal, and storage medium
EP3099042A1 (en) Methods and devices for sending cloud card
CN105120099A (en) Shooting control method and device
EP2985989A1 (en) Method and device for acquiring multimedia data stream
CN104244045B (en) The method that control video pictures presents and device
CN104156065A (en) Home media playing device control method, device and equipment
EP3145170A1 (en) Method and apparatus for controlling positioning of camera device, camera device and terminal device
US10846954B2 (en) Method for monitoring vehicle and monitoring apparatus
EP3119040A1 (en) Method and device for controlling smart device
CN106789461A (en) The method and device of intelligent home device connection
EP3322227B1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
CN105550204A (en) Method and device for controlling position locating module
CN105068632A (en) Terminal charging method and device and terminal
CN105049813A (en) Method, device and terminal controlling video image
CN105515952A (en) Multimedia message sending method and device
EP3226119A1 (en) Method and apparatus for displaying image data from a terminal on a wearable display
EP3225510B1 (en) Methods and devices for controlling self-balanced vehicle to park
CN105045125A (en) Reminding method and device used in household appliance control
CN104881342A (en) Terminal testing method and device
CN108398127A (en) A kind of indoor orientation method and device
CN108111751B (en) Shooting angle adjusting method 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