Physical equipment control method and device and physical equipmentTechnical Field
The invention relates to the technical field of electrical control, in particular to a physical device and a control method and device thereof.
Background
At present, with the intellectualization of physical devices and the constant popularization of the internet of things, the physical devices can be mutually controlled, for example, various physical devices such as a television, an air conditioner and the like can be controlled by using a mobile phone.
In the prior art, a corresponding application needs to be installed on one physical device, and when another physical device needs to be controlled, the physical device is waken up first, then the application is found and started, and then a corresponding button is clicked in the application to realize the control of the other physical device.
However, in the prior art, the operation process of the method for controlling the physical device is complicated, so that the operation cost is high and the control efficiency is low.
Disclosure of Invention
The invention provides a control method and device of physical equipment and the physical equipment, which reduce the operation cost when the physical equipment is controlled and improve the control efficiency.
The invention provides a control method of physical equipment, which comprises the following steps:
detecting a motion gesture of a first physical device;
comparing the motion posture with an appointed posture to obtain a comparison result;
and if the comparison result is that the motion posture is consistent with the designated posture, sending a control signal to second physical equipment so that the second physical equipment can execute corresponding control operation according to the control signal.
Preferably, before the control signal is sent to the second physical device, the method further comprises:
and obtaining the control signal according to the corresponding relation between the preset designated posture and the control signal.
Preferably, the designated gesture is a power-on gesture, the control signal is a power-on signal, and the control operation is a power-on operation; or,
the designated gesture is a shutdown gesture, the control signal is a shutdown signal, and the control operation is a shutdown operation.
Preferably, the control signal is an infrared signal.
Preferably, the number of the specified gestures is at least one; before comparing the operation posture with the designated posture to obtain a comparison result, the method further comprises:
at least one of the specified gestures is stored in advance.
The present invention provides a control device for physical equipment, comprising:
the detection module is used for detecting the motion gesture of the first physical equipment;
the comparison module is used for comparing the motion posture with the designated posture to obtain a comparison result;
and the sending module is used for sending a control signal to the second physical equipment when the comparison result is that the motion posture is consistent with the specified posture, so that the second physical equipment can execute corresponding control operation according to the control signal.
Preferably, the apparatus further comprises:
and the acquisition module is used for acquiring the control signal according to the corresponding relation between the preset specified gesture and the control signal.
Preferably, the designated gesture is a power-on gesture, the control signal is a power-on signal, and the control operation is a power-on operation; or,
the designated gesture is a shutdown gesture, the control signal is a shutdown signal, and the control operation is a shutdown operation.
Preferably, the control signal is an infrared signal.
Preferably, the number of the specified gestures is at least one; the device further comprises:
and the storage module is used for storing at least one specified gesture in advance.
The invention also provides a physical device comprising the apparatus as described above.
According to the technical scheme provided by the invention, the control signal can be sent to the second physical equipment only according to the motion posture of the first physical equipment, so that the first physical equipment does not need to be awakened.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first embodiment of a method for controlling a physical device according to the present invention;
FIG. 2 is a schematic diagram of the control system of the physical device according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for controlling a physical device according to the present invention;
FIG. 4 is a diagram of a first embodiment of a control device of a physical apparatus according to the present invention;
fig. 5 is a schematic diagram of a second embodiment of the control device of the physical device according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The Sensor Hub (Sensor Hub) is an application of a Micro Controller Unit (MCU), and its main function in system design is to process various information from sensors, and wake up the main processor from a sleep state when necessary, so as to reduce power consumption. For example, when the infrared sensor is installed on the first physical device, the infrared signal received by the infrared sensor can be received and sent out by the infrared sensor without waking up the first physical device by using a low power consumption sensor hub (SensorHub) technology.
Based on the above analysis, the present invention utilizes a low power consumption Sensor Hub (Sensor Hub) technology to acquire the gravity change data received by the gravity Sensor installed on the first physical device without waking up the first physical device, analyzes the obtained motion gesture of the first physical device, further forms a control signal according to the motion gesture of the first physical device, and utilizes the infrared transmitter installed in the first physical device to transmit an infrared control signal to control the start-up or shutdown of the second physical device without waking up the first physical device, thereby avoiding the complicated steps of operating on the second physical device.
Example one
Fig. 1 is a schematic flow chart of a first embodiment of a method for controlling a physical device, as shown in fig. 1, the method for controlling a physical device of this embodiment may specifically include the following steps:
s101, detecting the motion gesture of the first physical equipment.
Specifically, in the present embodiment, when the second physical device is controlled by the first physical device, the movement posture of the first physical device needs to be detected.
For example, a method of detecting a motion gesture of a first physical device may include:
the method comprises the steps of arranging a gravity sensor on first physical equipment in advance, and detecting gravity data of a first terminal by using the gravity sensor. The Sensor Hub processor arranged on the first physical device can receive data sent by various sensors installed on the first physical device when the first physical device is not awakened. Therefore, after the gravity Sensor detects the gravity data of the first physical device, the gravity Sensor transmits the gravity data to the Sensor Hub processor, and the Sensor Hub processor analyzes the gravity data to obtain the motion attitude of the first physical device.
For example, the first physical device may include a terminal, such as a mobile phone, a tablet computer, etc., and the second physical device may include a television, an air conditioner, or a ceiling lamp.
For example, when a user picks up the mobile phone, preferably, the screen of the mobile phone is turned upwards to perform a V-shaped motion, the gravity Sensor detects gravity data of the mobile phone, and transmits the gravity data to a Sensor Hub processor in the mobile phone, and the Sensor Hub processor analyzes the gravity data, so as to determine whether the motion posture of the mobile phone is a designated posture, for example, the designated posture may be a V-shaped motion track.
Fig. 2 is a schematic structural diagram of a control system of the physical device in this embodiment, and as shown in fig. 2, a Sensor Hub processor, a gravity Sensor, and an infrared emitter are installed on a mobile phone. The method comprises the steps that an appointed gesture for opening the television is preset to be a V-shaped motion, when a user holds the mobile phone to do the V-shaped motion, a Sensor Hub processor detects that the motion gesture of the mobile phone is the appointed gesture, a command of a starting infrared code is generated and sent to a preset infrared transmitter in the mobile phone, the infrared transmitter generates a starting signal and sends the starting signal to a preset infrared receiver on the television, the starting infrared code can be carried in the starting signal, and the television is started after receiving the starting signal.
The method of the embodiment is not only suitable for the mobile phone and the television, but also suitable for other physical equipment, such as the switch of an air conditioner controlled by the mobile phone.
And S102, comparing the motion posture with the designated posture to obtain a comparison result.
Specifically, the motion posture of the first physical device is compared with the designated posture to obtain a comparison result.
If the comparison result is that the motion gesture of the first physical device is consistent with the designated gesture, step 203 is executed.
For example, when the user wants to open the second physical device, the user picks up the mobile phone, preferably, the screen of the mobile phone is turned upward, and performs a V-shaped motion, and according to step S201, it can be determined that the first physical device performed the V-shaped motion gesture, and the motion gesture is compared with the specified gesture prestored in the mobile phone, so as to determine whether the motion gesture of the mobile phone is consistent with the specified gesture.
And S103, if the comparison result is that the motion posture is consistent with the designated posture, sending a control signal to the second physical device so that the second physical device can execute corresponding control operation according to the control signal.
In specific implementation, if the motion posture of the first physical device is consistent with the designated posture, the control signal is obtained according to the corresponding relation between the preset designated posture and the control signal, and the control signal is sent to the second physical device.
In a specific implementation process, the designated gesture may be a power-on gesture, and correspondingly, the control signal is a power-on signal, and the control operation is a power-on operation. Or, the designated gesture may also be a shutdown gesture, and correspondingly, the control signal is a shutdown signal, and the control operation is a shutdown operation.
For example, when a user wants to turn on a television, preferably, the screen of the mobile phone is turned up, the user takes the mobile phone to perform a V-shaped action, and the control instruction corresponding to the V-shaped action in the pre-stored designated gesture in the mobile phone is to turn on the television, then the Sensor Hub processor of the mobile phone generates a turn-on signal containing a turn-on infrared code and sends the turn-on signal to an infrared transmitter preset in the mobile phone, and then the infrared transmitter sends the turn-on signal to an infrared receiver on the television, so that the television receiving the turn-on signal performs a turn-on operation.
For example, if the control instruction corresponding to the pre-stored designated gesture of the "U" -shaped motion in the mobile phone is to turn off the television, when the user holds the mobile phone to perform the "U" -shaped motion, the mobile phone detects that the user performs the "U" -shaped motion, generates a shutdown signal carrying a shutdown infrared code, and sends the shutdown signal to the television through an infrared transmitter installed in the mobile phone.
Further, if the comparison result is that the motion posture is not consistent with the designated posture, the control signal is not sent to the second physical device, and the second physical device does not execute any control operation.
According to the control method of the physical device, the control signal is sent to the second physical device according to the motion posture of the first physical device under the condition that the first physical device is not awakened, so that the second physical device can be controlled in the dormant state of the first physical device, and the complicated step of operating on the second physical device is avoided.
Example two
Fig. 3 is a flowchart illustrating a second embodiment of the method for controlling physical devices according to the present invention, and the method for controlling physical devices according to the present embodiment further introduces the technical solutions of the present invention in more detail on the basis of the first embodiment. As shown in fig. 3, the method for controlling physical devices in this embodiment may specifically include the following steps:
s301, at least one designated gesture is stored in advance.
Specifically, the number of designated gestures may be at least one.
For example, the action that the user is accustomed to making may be set to the designated posture of the corresponding first physical device according to the user's personal habits.
For example, the "V" font motion made by the user holding the mobile phone, which is actually detected by the first physical device, may be used as the designated gesture for powering on, and the "W" font motion gesture, the "U" font motion, the arc motion, or the like of the first physical device may be used as the designated gesture for powering off.
S302, detecting the motion gesture of the first physical device.
The Sensor Hub processor is arranged on the first physical device, and can receive signals received by various sensors arranged on the first physical device when the first physical device is not awakened.
In the present embodiment, when the second physical device is controlled by the first physical device, the posture of the movement of the first physical device is determined.
The specific detection method may be that a gravity sensor is arranged on the first physical device. For example, the first physical device is a mobile phone, the second physical device is a television, when a user picks up the mobile phone to perform a V-shaped motion, the gravity Sensor senses gravity data of the mobile phone and transmits a signal to the Sensor Hub processor, and the Sensor Hub processor analyzes the signal to confirm that the motion posture of the first physical device is a V-shaped posture.
And S303, comparing the motion posture with the designated posture to obtain a comparison result.
In specific implementation, in step S302, the motion gesture of the first physical device may be obtained, and according to the specified gesture stored in the first physical device, the two gestures are compared to determine whether the motion gesture of the user is the specified gesture.
And if the gesture is the designated gesture, issuing a control instruction corresponding to the designated gesture according to the designated gesture.
For example, the first physical device is a mobile phone, the second physical device is a television, when the user wants to open the mobile phone, the user picks up the mobile phone to perform a V-shaped motion, it can be determined that the user performs the V-shaped motion according to step S302, the preset specified gesture stored in the mobile phone is compared with the detected motion gesture of the first physical device, and it can be determined whether the motion gesture of the user is consistent with the specified gesture.
And S304, if the comparison result is that the motion posture is consistent with the designated posture, obtaining a control signal according to the corresponding relation between the preset designated posture and the control signal, and sending the control signal to the second physical device so that the second physical device can execute corresponding control operation according to the control signal.
In specific implementation, for example, the designated posture "V" font corresponds to the power-on control signal, and the designated posture "U" font corresponds to the power-off control signal, when the first physical device is a mobile phone and the second physical device is a television, the user holds the mobile phone by hand, preferably, the mobile phone is turned on to make a "V" font motion, or the mobile phone makes a "V" font motion posture, the obtained control signal is the power-on control signal, the user makes a "U" font motion, or the mobile phone makes a "U" font posture, and the obtained control signal is the power-off control signal.
In specific implementation, when the gesture made by the user on the first physical device is consistent with the designated gesture, the control signal is sent to the second physical device according to the designated gesture and the corresponding instruction.
For example, the first physical device is a mobile phone, the second physical device is a television, when a user wants to turn on the television, the user takes up the mobile phone to perform a V-shaped action without waking up the mobile phone, preferably, the screen of the mobile phone is upward, the control instruction corresponding to the V-shaped action in the pre-stored designated gesture in the mobile phone is to turn on the television, the processor sends a power-on signal corresponding to turning on the television to the infrared transmitter installed in the mobile phone, the power-on signal includes a power-on infrared code, and the infrared transmitter sends the power-on signal to the television, so that the television receiving the power-on signal executes a power-on operation. Correspondingly, the instruction corresponding to the action with the designated gesture of the U shape pre-stored in the mobile phone is to close the television, when the user holds the mobile phone to make the U-shaped action, the mobile phone detects that the user makes the U-shaped action, the processor sends a shutdown signal corresponding to the television and containing a shutdown infrared code to the infrared transmitter installed on the mobile phone, and the infrared transmitter sends the shutdown signal to the television, so that the television receiving the shutdown signal executes shutdown operation.
Further, if the comparison result is that the motion posture is not consistent with the designated posture, the control signal is not sent to the second physical device, and the second physical device does not execute any control operation.
In the above embodiment, the mobile phone is taken as the first physical device, and the television is taken as the second physical device, which is described in the present embodiment, it should be noted that the present invention is not limited to controlling the television, and the mobile phone may also be taken as the first physical device, and the ceiling lamp is taken as the second physical device, and the operations of opening and closing the ceiling lamp are executed according to the motion gesture made by the user holding the mobile phone. But may of course also comprise other physical devices capable of achieving the object of the invention.
According to the control method of the physical device, at least one designated gesture is stored in the first physical device in advance, when the first physical device detects the motion gesture, the motion gesture is compared with the designated gesture, and when the motion gesture is consistent with the designated gesture, the infrared signal is sent to the second physical device according to the control signal corresponding to the designated gesture, so that the control of starting and/or shutdown of the second physical device through the first physical device is achieved.
EXAMPLE III
Fig. 4 is a schematic diagram of a first embodiment of a control device of a physical device, as shown in fig. 4, the control device of the physical device of this embodiment may specifically include a detection module 11, a comparison module 12, and a sending module 13.
The detection module 11 is configured to detect a motion gesture of a user on a screen of the first physical device.
And the comparison module 12 is connected with the detection module 11 and is used for comparing the motion posture with the designated posture to obtain a comparison result.
And the sending module 13 is connected to the comparing module 12, and is configured to send a control signal to the second physical device if the comparison result is that the motion posture is consistent with the specified posture, so that the second physical device executes a corresponding control operation according to the control signal.
The implementation mechanism of the control apparatus for physical devices in this embodiment, which implements controlling of the second physical device by using the modules, is the same as the implementation mechanism of the control apparatus for physical devices in the embodiment shown in fig. 1, and reference may be made to the description of the embodiment shown in fig. 1 in detail, which is not described herein again.
Example four
Fig. 5 is a schematic diagram of a second embodiment of the control device of the physical device according to the present invention, and the control device of the physical device of the present embodiment further describes the technical solution of the present invention in more detail based on the first embodiment shown in fig. 4. The control device of the physical device of this embodiment further includes:
further, the obtaining module 14 is configured to obtain the control signal according to a preset corresponding relationship between the designated posture and the control signal.
Furthermore, the designated gesture is a starting gesture, the control signal is a starting signal, and the control operation is a starting operation; or the designated gesture is a shutdown gesture, the control signal is a shutdown signal, and the control operation is a shutdown operation.
Further, the control signal is an infrared signal.
Further, the apparatus may further include: and the storage module 15 is used for storing at least one specified gesture in advance.
Further, the number of specified gestures is at least one.
The implementation mechanism of the control apparatus for physical devices in this embodiment, which implements controlling of the second physical device by using the modules, is the same as the implementation mechanism of the control apparatus for physical devices in the embodiment shown in fig. 3, and details of the implementation mechanism may refer to the description in the embodiment shown in fig. 3, and are not repeated here.
The invention also provides a physical device, wherein the first physical device comprises the device according to the first embodiment shown in fig. 4 or the second embodiment shown in fig. 5.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.