CN106355852B - Equipment control method and device - Google Patents

Equipment control method and device Download PDF

Info

Publication number
CN106355852B
CN106355852B CN201610730453.9A CN201610730453A CN106355852B CN 106355852 B CN106355852 B CN 106355852B CN 201610730453 A CN201610730453 A CN 201610730453A CN 106355852 B CN106355852 B CN 106355852B
Authority
CN
China
Prior art keywords
motion
motion track
remote control
equipment
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
CN201610730453.9A
Other languages
Chinese (zh)
Other versions
CN106355852A (en
Inventor
苏本昌
丁一
侯恩星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610730453.9A priority Critical patent/CN106355852B/en
Publication of CN106355852A publication Critical patent/CN106355852A/en
Application granted granted Critical
Publication of CN106355852B publication Critical patent/CN106355852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The disclosure relates to a device control method and a device, wherein the method comprises the following steps: after the generation of the motion signal is detected, acquiring the first time of the generation of the last motion signal; when the time difference between the first time and the current second time is smaller than a time difference threshold value, acquiring a current first motion track of the remote control equipment; combining the first motion trail with the motion trail obtained by the remote control equipment to generate a second motion trail; when the complete second motion track is determined to be obtained, the motion track is finished to be obtained, and a first control instruction carrying the second motion track is generated; and sending the first control instruction to the gateway equipment through a ZigBee protocol, wherein the first control instruction is used for indicating the gateway equipment to control the target equipment according to the second motion track. Therefore, in the technical scheme, the user can control the intelligent household equipment by simply changing the motion track of the remote control equipment, the operation is simple, and the blind control requirement of the user is met.

Description

Equipment control method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a device control method and apparatus.
Background
With the development of intelligent hardware technology, more and more intelligent home devices are used in a home environment, and in the related technology, when the intelligent home devices are controlled, the intelligent home devices can be controlled by operating a remote controller or an intelligent terminal (such as a smart phone, a tablet computer and the like) which is matched with the intelligent home devices. However, when the remote controller or the smart terminal is used to control the smart home device, the user needs to stare at the operation keys of the remote controller or the operation interface of the smart terminal, and blind control cannot be achieved.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide an apparatus control method and apparatus, so as to meet the blind control requirement of a user on a remote control apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided a device control method applied to a remote control device, where the remote control device is in communication connection with a gateway device through a ZigBee protocol, the method including:
after the generation of the motion signal is detected, acquiring the first time of the generation of the last motion signal;
when the time difference between the first time and the current second time is smaller than a time difference threshold value, acquiring a current first motion track of the remote control equipment;
combining the first motion trail with the motion trail obtained by the remote control equipment to generate a second motion trail;
when the fact that a complete second motion track is obtained is determined, the obtaining of the motion track is finished, and a first control instruction carrying the second motion track is generated;
and sending the first control instruction to gateway equipment through the ZigBee protocol, wherein the first control instruction is used for instructing the gateway equipment to control target equipment according to the second motion track.
In an embodiment, the method further comprises:
and when the time difference between the first time and the current second time is greater than a time difference threshold value, restarting to acquire the current first motion track of the remote control equipment, and combining the current first motion track with the motion track acquired by the remote control equipment to generate a second motion track.
In an embodiment, the method further comprises:
and when the motion signal is not detected within the preset time length, determining that the complete second motion track is acquired.
In an embodiment, the method further comprises:
when the generation of the acceleration signal is detected by the three-axis acceleration sensor, it is determined that the generation of the motion signal is detected.
In an embodiment, the method further comprises:
recording the time of the generation of the motion signal and the state of the generation of the motion signal.
In an embodiment, the method further comprises:
when the acceleration signal is detected to be generated through the three-axis acceleration sensor and the angle change is not detected by the gyroscope, determining that the first motion track is planar movement;
and when the gyroscope detects that the angle changes, determining the first motion track as rotation.
According to a second aspect of the embodiments of the present disclosure, there is provided a device control method applied to a gateway device, where the gateway device and a remote control device are in communication connection through a ZigBee protocol, the method including:
receiving a first control instruction sent by a remote control device through the ZigBee protocol, wherein the first control instruction carries a second motion track of the remote control device;
determining a second control instruction corresponding to the second motion track according to a preset relation table corresponding to the target device, wherein the preset relation table comprises a corresponding relation between the second motion track of the remote control device and the control instruction;
and controlling the target equipment to execute the operation corresponding to the second control instruction.
In an embodiment, the method further comprises:
receiving a relation table setting instruction, wherein the relation table setting instruction carries a corresponding relation between a second motion track of the remote control device and a control instruction;
and updating the local preset relation table according to the corresponding relation carried in the relation table setting instruction.
In an embodiment, the method further comprises:
receiving a relation table changing instruction, wherein the relation table changing instruction carries information for changing the corresponding relation contained in the preset relation table;
and according to the information carried in the relation table change instruction, changing the corresponding relation contained in the local preset relation table.
In an embodiment, before the receiving the first control instruction sent by the remote control device through the ZigBee protocol, the method further includes:
receiving a device designation instruction, wherein the device designation instruction is used for designating a device to be controlled;
and determining the equipment specified by the equipment specifying instruction as target equipment.
According to a third aspect of the embodiments of the present disclosure, there is provided a device control apparatus applied to a remote control device, where the remote control device and a gateway device are in communication connection through a ZigBee protocol, the apparatus including:
the first acquisition module is configured to acquire a first time for generating a last motion signal after detecting that the motion signal is generated;
the second acquisition module is configured to acquire a current first motion track of the remote control device under the condition that the time difference between the first time acquired by the first acquisition module and the current second time is smaller than a time difference threshold value;
a first generation module configured to combine the first motion trajectory acquired by the second acquisition module with the motion trajectory acquired by the remote control device to generate a second motion trajectory;
the second generation module is configured to end the acquisition of the motion trail and generate a first control instruction carrying the second motion trail generated by the first generation module when the fact that the complete second motion trail is acquired is to be determined;
the sending module is configured to send the first control instruction generated by the second generating module to the gateway device through the ZigBee protocol, where the first control instruction is used to instruct the gateway device to control the target device according to the second motion trajectory.
In one embodiment, the apparatus further comprises:
and the third obtaining module is configured to restart obtaining the current first motion track of the remote control device and combine the current first motion track with the motion track obtained by the remote control device to generate a second motion track when the time difference between the first time obtained by the first obtaining module and the current second time is greater than a time difference threshold value.
In one embodiment, the apparatus further comprises:
a first determination module configured to determine that a complete second motion trajectory has been acquired in case no motion signal is detected within a predetermined length of time.
In one embodiment, the apparatus further comprises:
a second determination module configured to determine that the generation of the motion signal is detected in a case where the generation of the acceleration signal is detected by the three-axis acceleration sensor.
In one embodiment, the apparatus further comprises:
a recording module configured to record the time at which the motion signal is generated and a state of the motion signal generation.
In one embodiment, the apparatus further comprises:
the third determination module is configured to determine that the first motion track is plane movement under the condition that the acceleration signal is detected to be generated through the three-axis acceleration sensor and the angle is not detected to be changed by the gyroscope;
a fourth determination module configured to determine the first motion trajectory to be a rotation if a change in angle is detected by a gyroscope.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a device control apparatus applied to a gateway device, where the gateway device and a remote control device are in communication connection through a ZigBee protocol, the apparatus including:
the device comprises a first receiving module, a second receiving module and a control module, wherein the first receiving module is configured to receive a first control instruction sent by a remote control device through a ZigBee protocol, and the first control instruction carries a second motion track of the remote control device;
a fifth determining module, configured to determine, according to a preset relationship table corresponding to a target device, a second control instruction corresponding to the second motion trajectory, where the preset relationship table includes a correspondence between the second motion trajectory of the remote control device and the control instruction;
and the control module is configured to control the target device to execute an operation corresponding to the second control instruction determined by the fifth determination module.
In one embodiment, the apparatus further comprises:
the second receiving module is configured to receive a relation table setting instruction, wherein the relation table setting instruction carries a corresponding relation between a second motion track of the remote control device and the control instruction;
and the updating module is configured to update the local preset relation table according to the corresponding relation carried in the relation table setting instruction received by the second receiving module.
In one embodiment, the apparatus further comprises:
a third receiving module, configured to receive a relation table change instruction, where the relation table change instruction carries information for changing a corresponding relation included in the preset relation table;
and the changing module is configured to change the corresponding relation contained in the local preset relation table according to information carried in the relation table changing instruction received by the third receiving module.
In one embodiment, the apparatus further comprises:
a fourth receiving module, configured to receive a device specifying instruction, where the device specifying instruction is used to specify a device to be controlled;
a device determination module configured to determine the device specified by the device specification instruction received by the fourth reception module as the target device.
According to a fifth aspect of the embodiments of the present disclosure, there is provided an apparatus control device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after the generation of the motion signal is detected, acquiring the first time of the generation of the last motion signal;
when the time difference between the first time and the current second time is smaller than a time difference threshold value, acquiring a current first motion track of the remote control equipment;
combining the first motion trail with the motion trail obtained by the remote control equipment to generate a second motion trail;
when the fact that a complete second motion track is obtained is determined, the obtaining of the motion track is finished, and a first control instruction carrying the second motion track is generated;
and sending the first control instruction to gateway equipment through the ZigBee protocol, wherein the first control instruction is used for instructing the gateway equipment to control target equipment according to the second motion track.
According to a sixth aspect of the embodiments of the present disclosure, there is provided an apparatus control device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a first control instruction sent by a remote control device through the ZigBee protocol, wherein the first control instruction carries a second motion track of the remote control device;
determining a second control instruction corresponding to the second motion track according to a preset relation table corresponding to the target device, wherein the preset relation table comprises a corresponding relation between the second motion track of the remote control device and the control instruction;
and controlling the target equipment to execute the operation corresponding to the second control instruction.
In this embodiment, the user only needs to simply change the motion track of the remote control device, so that the control of the intelligent household device can be realized, the operation is simple, and the blind control requirement of the user is met.
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 invention and together with the description, serve to explain the principles of the invention.
FIG. 1A is a flow chart illustrating a method of controlling a device according to an exemplary embodiment;
FIG. 1B is a diagram illustrating an application scenario in which two first motion trajectories are synthesized in accordance with an exemplary embodiment;
FIG. 1C is a diagram illustrating an application scenario of the method of FIG. 1A in accordance with an exemplary embodiment;
FIG. 1D is a diagram of another application scenario illustrating the method of FIG. 1A in accordance with an exemplary embodiment;
FIG. 2A is a flow chart illustrating another method of device control according to an exemplary embodiment;
FIG. 2B is a diagram illustrating an application scenario of the method shown in FIG. 2A in accordance with an exemplary embodiment;
FIG. 3 is a flow chart illustrating another method of device control according to an exemplary embodiment;
fig. 4 is a signaling flow diagram illustrating a method of device control according to an example embodiment;
FIG. 5 is a block diagram illustrating an appliance control device according to an exemplary embodiment;
FIG. 6 is a block diagram illustrating another appliance control device according to an exemplary embodiment;
FIG. 7 is a block diagram illustrating another appliance control device in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating another appliance control device in accordance with an exemplary embodiment;
FIG. 9 is a block diagram illustrating another appliance control device in accordance with an exemplary embodiment;
FIG. 10 is a block diagram illustrating another appliance control device in accordance with an exemplary embodiment;
FIG. 11 is a block diagram illustrating another appliance control device in accordance with an exemplary embodiment;
FIG. 12 is a block diagram illustrating another appliance control device in accordance with an exemplary embodiment;
FIG. 13 is a block diagram illustrating another appliance control device in accordance with an exemplary embodiment;
FIG. 14 is a block diagram illustrating another appliance control device in accordance with an exemplary embodiment;
FIG. 15 is a block diagram illustrating an apparatus for controlling a device in accordance with an exemplary embodiment;
fig. 16 is a block diagram illustrating another apparatus for controlling a device according to an example embodiment.
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 embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, 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.
Along with the development of intelligent hardware technology, more and more intelligent home devices are used in the home environment, and in the related technology, when the intelligent home devices are controlled, the intelligent home devices can be controlled by operating a remote controller or an intelligent terminal such as a smart phone or a tablet personal computer which is matched with the intelligent home devices. However, when the remote controller or the smart terminal is used to control the smart home device, the user needs to stare at the operation keys of the remote controller or the operation interface of the smart terminal, and blind control cannot be achieved. In order to solve the above problem, the present disclosure provides an apparatus control method and device.
The following first introduces a device control method provided by the present disclosure.
As shown in fig. 1A, fig. 1A is a flowchart illustrating a device control method according to an exemplary embodiment, and is applied to a remote control device, where the remote control device is communicatively connected with a gateway device through a ZigBee protocol, and the method may include the following steps:
in step 101, after detecting the generation of the motion signal, a first time of the generation of the last motion signal is acquired.
The remote control device in this embodiment may include: electronic equipment such as a magic cube sensor, a smart phone, a tablet personal computer and a mouse, which are internally provided with a three-axis acceleration sensor and a gyroscope. The remote control device in this embodiment may be in communication connection with the gateway device through a ZigBee protocol, so as to control the smart home device in the home environment through the gateway device.
The ZigBee protocol is a low-power consumption local area network protocol based on an IEEE802.15.4 standard (2.4Ghz frequency band), is a short-distance and low-power consumption wireless communication technology, has the advantages of self-networking capability and capability of supporting 65000 equipment networking, and has another advantage of high safety and difficulty in cracking for smart homes.
The three-axis acceleration sensor in this embodiment can measure acceleration due to gravity, and can also measure acceleration due to traction.
Based on the above, in one possible embodiment, whether the generation of the motion signal is detected may be determined by a three-axis acceleration sensor in the remote control device, and accordingly, when the generation of the acceleration signal is detected by the three-axis acceleration sensor in the remote control device, the generation of the motion signal is determined.
In step 102, when the time difference between the first time and the current second time is smaller than the time difference threshold, a current first motion track of the remote control device is obtained.
In this embodiment, whether the motion corresponding to the currently generated motion signal and the motion corresponding to the last generated motion signal are consecutive motions may be determined according to a time difference between the first time and the current second time, and when the time difference between the first time and the current second time is smaller than a time difference threshold, it is determined that the two motions are consecutive motions, and at this time, the current first motion trajectory of the remote control device is obtained.
It should be noted that the time difference threshold in this embodiment may be set empirically, or may be customized according to actual needs, and this embodiment does not limit this.
The first motion profile in this embodiment may include: planar movement, rotation such as 90 degree flip, 180 degree flip, flip-up rotation, and the like.
In this embodiment, when the three-axis acceleration sensor detects that an acceleration signal is generated and the gyroscope does not detect that the angle changes, the first motion trajectory is determined to be planar movement, and when the gyroscope detects that the angle changes, the first motion trajectory is determined to be rotation. Furthermore, the turning angle of the remote control device can be determined by detecting a specific angle change value through a gyroscope. Similarly, it may also be determined that the first motion trajectory acquired by the remote control device is plane movement or rotation according to the trajectory determination principle.
In step 103, the first motion trajectory is combined with the motion trajectory already acquired by the remote control device to generate a second motion trajectory.
In this embodiment, the time when the motion signal is generated and the state of the motion signal generated may be recorded, so that the motion trajectory acquired by the remote control device may be directly extracted from the recorded time and state of the motion information when trajectory merging is required.
In step 104, when it is determined that the complete second motion trajectory has been acquired, the acquisition of the motion trajectory is ended, and a first control instruction carrying the second motion trajectory is generated.
In this embodiment, whether the complete second motion trajectory is acquired may be determined by detecting the motion signal, and in a possible implementation, when the motion signal is not detected within a predetermined time length, it is determined that the complete second motion trajectory is acquired.
It should be noted that the preset time length in this embodiment may be set empirically or may be customized according to actual requirements, and this embodiment does not limit this.
In step 105, a first control instruction is sent to the gateway device through the ZigBee protocol, where the first control instruction is used to instruct the gateway device to control the target device according to the second motion trajectory.
The gateway device in this embodiment is used to connect the smart home devices in the home environment, and the smart home devices access the network through the gateway device. The gateway device in this embodiment may be integrated with radio, night light, and alarm clock functions, in addition to the basic gateway function. The target device in this embodiment may be a gateway device, or may be any smart home device that accesses the gateway device.
When the target device is a gateway device, the gateway device determines a second control instruction corresponding to a second motion track of the remote control device carried in the first control instruction according to the second motion track, and controls a function (such as a radio) integrated with the gateway device according to the second control instruction.
When the target device is an intelligent home device accessed to the gateway device, the gateway device determines a second control instruction corresponding to a second motion track according to the second motion track of the remote control device carried in the first control instruction, sends the second control instruction to an intelligent home device accessed to the local, and executes an operation corresponding to the second control instruction after the intelligent home device receives the second control instruction.
In order to facilitate understanding of the motion trajectory of the remote control device, taking the magic cube sensor as an example, in an exemplary application scenario, as shown in fig. 1B, a first motion trajectory acquired by the magic cube sensor is a plane rotation, an acquired motion trajectory is a plane movement, and a second motion trajectory generated by combining the plane movement and the plane rotation is a plane movement followed by the plane rotation.
To facilitate understanding of the method shown in fig. 1A, in an exemplary application scenario, as shown in fig. 1C, the application scenario includes: the remote control device 110 and the gateway device 120 are in communication connection through a ZigBee protocol, in this application scenario, the gateway device 120 is a target device, after obtaining a second motion trajectory of the device, the remote control device 110 generates a first control instruction in which the second motion trajectory is recorded, and sends the first control instruction to the gateway device 120, and the gateway device 120 determines a second control instruction corresponding to the second motion trajectory according to the second motion trajectory of the remote control device 110 carried in the first control instruction, and then controls the local computer to execute an operation corresponding to the second control instruction.
In another exemplary application scenario, as shown in fig. 1D, the application scenario includes: the remote control device 130 is in communication connection with the gateway device 140, the intelligent bulb 150 and the intelligent radio 160 are connected to the gateway device 140, in the application scenario, a target device can be designated, for example, the intelligent radio 160 is designated as the target device, after a second motion track of the remote control device is acquired, the remote control device 130 generates a first control instruction recorded with the second motion track, and sends the first control instruction to the gateway device 140, the gateway device 140 determines a second control instruction corresponding to the second motion track according to the second motion track of the remote control device 130 carried in the first control instruction, and sends the second control instruction to the intelligent radio 160, and after the intelligent radio 160 receives the second control instruction, the operation corresponding to the second control instruction is executed.
According to the embodiment, the user can control the intelligent household equipment by simply changing the motion track of the remote control equipment, the operation is simple, and the blind control requirement of the user is met.
In another embodiment provided by the present disclosure, the embodiment may add the following steps on the basis of the embodiment shown in fig. 1A:
and when the time difference between the first time and the current second time is larger than the time difference threshold value, restarting to acquire the current first motion track of the remote control equipment, and combining the current first motion track with the motion track acquired by the remote control equipment to generate a second motion track.
In this embodiment, whether the motion corresponding to the currently generated motion signal and the motion corresponding to the last generated motion signal are consecutive motions may be determined according to a time difference between the first time and the current second time, and when the time difference between the first time and the current second time is greater than a time difference threshold, it is determined that the two motions are not consecutive motions, and at this time, the current first motion trajectory of the remote control device is obtained.
The present disclosure also provides a device control method applied to a gateway device, corresponding to the device control method applied to a remote control device shown in fig. 1A.
As shown in fig. 2A, fig. 2A is a flowchart illustrating another device control method according to an exemplary embodiment, and is applied to a gateway device, where the gateway device is communicatively connected to a remote control device through a ZigBee protocol, and the method may include the following steps:
in step 201, a first control instruction sent by a remote control device through a ZigBee protocol is received, where the first control instruction carries a second motion trajectory of the remote control device.
The remote control device in this embodiment may include: electronic equipment such as a magic cube sensor, a smart phone, a tablet personal computer and a mouse, which are internally provided with a three-axis acceleration sensor and a gyroscope. The gateway device in this embodiment is used to connect the smart home devices in the home environment, and the smart home devices access the network through the gateway device. The gateway device in this embodiment may be in communication connection with the remote control device through a ZigBee protocol, so as to control the smart home devices in the home environment through the gateway device.
The ZigBee protocol is a low-power consumption local area network protocol based on an IEEE802.15.4 standard (2.4Ghz frequency band), is a short-distance and low-power consumption wireless communication technology, has the advantages of self-networking capability and capability of supporting 65000 equipment networking, and has another advantage of high safety and difficulty in cracking for smart homes.
In step 202, a second control instruction corresponding to the second motion trajectory is determined according to a preset relationship table corresponding to the target device, where the preset relationship table includes a corresponding relationship between the second motion trajectory of the remote control device and the control instruction.
The second control instruction in this embodiment is used to control the target device to execute a corresponding operation.
In this embodiment, for the same target device, different second motion trajectories correspond to different control instructions, for example, when the target device is an intelligent radio, the second motion trajectory "plane translation" corresponds to the control instruction "play/pause play", the second motion trajectory "turn over by 90 degrees" corresponds to the control instruction "switch to the next radio station", and so on; for different target devices, the same second motion trajectory corresponds to different control instructions, for example, when the target device is a smart radio, the second motion trajectory "plane translation" corresponds to a control instruction "play/pause play", and when the target device is a smart light bulb, the second motion trajectory "plane translation" corresponds to a control instruction "turn on/off light bulb".
In step 203, the control target apparatus executes an operation corresponding to the second control instruction.
In an exemplary application scenario, as shown in fig. 2B, the application scenario includes: the gateway device 220 stores a preset relationship table 240 corresponding to the target device 230, the preset relationship table 240 records a corresponding relationship between a motion track of the remote control device 210 and a control instruction for controlling the target device 230, the remote control device 210 is in communication connection with the gateway device 220 through a ZigBee protocol, and the target device 230 accesses the gateway device 220. When the user changes the motion trajectory of the remote control device 210, the remote control device 210 obtains a corresponding second motion trajectory, generates a first control instruction for recording the second motion trajectory, and sends the first control instruction to the gateway device 220, the gateway device 220 determines, according to the preset relationship table 240, a second control instruction corresponding to the second motion trajectory of the remote control device 210, and sends the second control instruction to the target device 230, and the target device 230 executes an operation corresponding to the second control instruction, for example, when the second motion trajectory of the remote control device 210 is "plane rotation", the target device 230 reduces the volume, and when the second motion trajectory of the remote control device 210 is "180 degrees of rotation", the target device 230 switches to the previous station.
As can be seen from the above embodiments, the gateway device in this embodiment may determine the control instruction for controlling the target device according to the second motion trajectory of the remote control device, and control the target device to execute the operation corresponding to the control instruction, so that the user can control the smart home device by simply changing the motion trajectory of the remote control device, the operation is simple, and the blind control requirement of the user is met.
In another embodiment provided by the present disclosure, a preset relationship table in the gateway device may be updated or changed through a terminal device such as a smart phone or a tablet computer, specifically, a user may input an expected scene control logic on the terminal device, and the terminal device may issue, through an RPC command, a correspondence between a motion trajectory of the remote control device corresponding to the scene control logic and a control instruction for controlling the target device to the gateway device, so as to meet a requirement that the user desires to define the control relationship, enrich a control function of the remote control device, and extend to more application scenarios.
Accordingly, in another embodiment provided by the present disclosure, the embodiment may add the following steps on the basis of the embodiment shown in fig. 2A: receiving a relation table setting instruction, wherein the relation table setting instruction carries a corresponding relation between a second motion track of the remote control equipment and the control instruction; and updating a local preset relation table according to the corresponding relation carried in the relation table setting instruction.
Accordingly, in another embodiment provided by the present disclosure, the embodiment may add the following steps on the basis of the embodiment shown in fig. 2A: receiving a relation table changing instruction, wherein the relation table changing instruction carries information for changing a corresponding relation contained in a preset relation table in gateway equipment; and according to the information carried in the relation table change instruction, changing the corresponding relation contained in the local preset relation table.
As shown in fig. 3, fig. 3 is a flowchart illustrating another device control method according to an exemplary embodiment, when a gateway device accesses a plurality of smart home devices, a target device may be specified from the plurality of smart home devices, where the method may include the following steps:
in step 300, a device designation instruction for designating a device to be controlled is received, and the device designated by the device designation instruction is determined as a target device.
In this embodiment, when the gateway device is connected to multiple smart home devices, a user may designate a target device through a terminal device such as a smart phone or a tablet computer, specifically, the terminal device receives a target device designation operation of the user, generates a device designation instruction according to the target device designation operation, and sends the device designation instruction to the gateway device; the gateway device receives the device designation instruction, and determines the device designated by the device designation instruction as the target device, thereby completing the determination of the target device.
In this embodiment, the target device may also be switched through the above process, and the detailed process is not described again.
In step 301, a first control instruction sent by a remote control device through a ZigBee protocol is received, where the first control instruction carries a second motion trajectory of the remote control device.
In step 302, a second control instruction corresponding to the second motion trajectory is determined according to a preset relationship table corresponding to the target device, where the preset relationship table includes a corresponding relationship between the second motion trajectory of the remote control device and the control instruction.
In step 303, the control-target device executes an operation corresponding to the second control instruction.
Steps 301 to 303 in this embodiment are similar to steps 201 to 203 in the embodiment shown in fig. 2A, and this embodiment is not described again, please refer to the contents in the embodiment shown in fig. 2A for details.
As can be seen from the above embodiments, in this embodiment, a target device may be specified by a user, and when the gateway device accesses a plurality of smart home devices, different smart home devices may be controlled by specifying the target device.
As shown in fig. 4, fig. 4 is a signaling flowchart of a device control method according to an exemplary embodiment, where the signaling flowchart includes: remote control equipment, gateway equipment and target equipment; wherein the remote control device performs the steps of: s410 to S414, the gateway equipment executes the following steps: s420 and S421, the target device performs S430;
the remote control device first performs S410: after the generation of the motion signal is detected, acquiring the first time of the generation of the last motion signal; then, S411 is executed: when the time difference between the first time and the current second time is smaller than a time difference threshold value, acquiring a current first motion track of the remote control equipment; then, S412 is executed: combining the first motion trail with the motion trail obtained by the remote control equipment to generate a second motion trail; then, S413 is executed: when the complete second motion track is determined to be obtained, the motion track is finished to be obtained, and a first control instruction carrying the second motion track is generated; finally, executing S414: and sending the first control instruction to the gateway equipment through a ZigBee protocol.
After receiving the first control instruction, the gateway device executes S420: determining a second control instruction corresponding to the second motion trajectory according to the preset relationship table corresponding to the target device, and then executing S421: sending the second control instruction to the target equipment;
after receiving the second control instruction, the target device performs step 430: and executing the operation corresponding to the second control instruction.
In an exemplary application scenario, for example, the remote control device is a magic cube sensor, the gateway device is an intelligent gateway, the target device is an intelligent radio, when the second motion track of the magic cube sensor is planar movement, the intelligent gateway controls the intelligent radio to play/pause a playing station, when the second motion track of the magic cube sensor is 90 degrees in a turning manner, the intelligent gateway controls the intelligent radio to switch to a next station, and when the second motion track of the magic cube sensor is 180 degrees in a turning manner, the intelligent gateway controls the intelligent radio to switch to a previous station.
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 foregoing embodiments of the device control method applied to the remote control device, the present disclosure also provides embodiments of a device control apparatus applied to the remote control device.
As shown in fig. 5, fig. 5 is a block diagram of a device control apparatus according to an exemplary embodiment, and is applied to a remote control device, the remote control device is communicatively connected with a gateway device through a ZigBee protocol, and the apparatus may include:
a first obtaining module 510 configured to obtain a first time when the motion signal is generated last time after detecting that the motion signal is generated;
a second obtaining module 520, configured to obtain a current first motion trajectory of the remote control device when a time difference between the first time and a current second time obtained by the first obtaining module 510 is less than a time difference threshold;
a first generating module 530 configured to combine the first motion trajectory acquired by the second acquiring module 520 with the motion trajectory acquired by the remote control device to generate a second motion trajectory;
a second generating module 540, configured to end obtaining the motion trajectory when it is determined that the complete second motion trajectory has been obtained, and generate a first control instruction carrying the second motion trajectory generated by the first generating module 530;
the sending module 550 is configured to send the first control instruction generated by the second generating module 540 to the gateway device through the ZigBee protocol, where the first control instruction is used to instruct the gateway device to control the target device according to the second motion trajectory.
According to the embodiment, the user can control the intelligent household equipment by simply changing the motion track of the remote control equipment, the operation is simple, and the blind control requirement of the user is met.
As shown in fig. 6, fig. 6 is a block diagram of another device control apparatus according to an exemplary embodiment, which may be based on the embodiment shown in fig. 5, and the apparatus may further include:
and a third obtaining module 560, configured to, in a case that a time difference between the first time and the current second time obtained by the first obtaining module 510 is greater than a time difference threshold, restart obtaining the current first motion trajectory of the remote control device, and combine the current first motion trajectory with the motion trajectory already obtained by the remote control device to generate a second motion trajectory.
As shown in fig. 7, fig. 7 is a block diagram of another device control apparatus according to an exemplary embodiment, which may be based on the embodiments shown in fig. 5 or fig. 6, and the apparatus may further include:
a first determining module 570 configured to determine that a complete second motion trajectory has been acquired in case no motion signal is detected for a predetermined length of time.
As shown in fig. 8, fig. 8 is a block diagram of another device control apparatus according to an exemplary embodiment, which may be based on the embodiment shown in fig. 5, and the apparatus may further include:
a second determination module 580 configured to determine that the generation of the motion signal is detected in case the generation of the acceleration signal is detected by the three-axis acceleration sensor.
As shown in fig. 9, fig. 9 is a block diagram of another device control apparatus according to an exemplary embodiment, which may be based on the embodiments shown in fig. 5 or fig. 8, and the apparatus may further include:
a recording module 590 configured to record the time of generating the motion signal and the state of generating the motion signal.
As shown in fig. 10, fig. 10 is a block diagram of another device control apparatus according to an exemplary embodiment, which may be based on any one of the embodiments shown in fig. 5 to fig. 9, and the apparatus may further include:
a third determining module 610, configured to determine the first motion trajectory to be a plane movement if the three-axis acceleration sensor detects that an acceleration signal is generated and the gyroscope does not detect that the angle changes;
a fourth determining module 620 configured to determine the first motion trajectory as a rotation if the change of the angle is detected by the gyroscope.
Corresponding to the foregoing embodiment of the device control method applied to the gateway device, the present disclosure also provides an embodiment of a device control apparatus applied to the gateway device.
As shown in fig. 11, fig. 11 is a block diagram of another device control apparatus according to an exemplary embodiment, and is applied to a gateway device, where the gateway device is communicatively connected to a remote control device through a ZigBee protocol, and the apparatus may include:
the first receiving module 710 is configured to receive a first control instruction sent by the remote control device through a ZigBee protocol, where the first control instruction carries a second motion trajectory of the remote control device;
a fifth determining module 720, configured to determine, according to a preset relationship table corresponding to the target device, a second control instruction corresponding to the second motion trajectory, where the preset relationship table includes a corresponding relationship between the second motion trajectory of the remote control device and the control instruction;
a control module 730 configured to control the target device to perform an operation corresponding to the second control instruction determined by the fifth determination module 720.
As can be seen from the above embodiments, the gateway device in this embodiment may determine the control instruction for controlling the target device according to the second motion trajectory of the remote control device, and control the target device to execute the operation corresponding to the control instruction, so that the user can control the smart home device by simply changing the motion trajectory of the remote control device, the operation is simple, and the blind control requirement of the user is met.
As shown in fig. 12, fig. 12 is a block diagram of another device control apparatus according to an exemplary embodiment, which may be based on the embodiment shown in fig. 11, and the apparatus may further include:
a second receiving module 740, configured to receive a relationship table setting instruction, where the relationship table setting instruction carries a corresponding relationship between a second motion trajectory of the remote control device and the control instruction;
the updating module 750 is configured to update the local preset relationship table according to the corresponding relationship carried in the relationship table setting instruction received by the second receiving module 740.
As shown in fig. 13, fig. 13 is a block diagram of another device control apparatus according to an exemplary embodiment, which may be based on the embodiment shown in fig. 11, and the apparatus may further include:
a third receiving module 760, configured to receive a relationship table change instruction, where the relationship table change instruction carries information for changing a corresponding relationship included in a preset relationship table;
a changing module 770 configured to change the corresponding relationship contained in the local preset relationship table according to the information carried in the relationship table changing instruction received by the third receiving module 760.
As shown in fig. 14, fig. 14 is a block diagram of another device control apparatus according to an exemplary embodiment, which may be based on the embodiment shown in fig. 11, and the apparatus may further include:
a fourth receiving module 780 configured to receive a device specifying instruction, where the device specifying instruction is used to specify a device to be controlled;
a device determining module 790 configured to determine the device specified by the device specifying instruction received by the fourth receiving module 780 as the target device.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
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 also provides an apparatus control device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: after the generation of the motion signal is detected, acquiring the first time of the generation of the last motion signal; when the time difference between the first time and the current second time is smaller than a time difference threshold value, acquiring a current first motion track of the remote control equipment; combining the first motion trail with the motion trail obtained by the remote control equipment to generate a second motion trail; when the fact that a complete second motion track is obtained is determined, the obtaining of the motion track is finished, and a first control instruction carrying the second motion track is generated; and sending the first control instruction to gateway equipment through the ZigBee protocol, wherein the first control instruction is used for instructing the gateway equipment to control target equipment according to the second motion track.
Correspondingly, the present disclosure also provides an apparatus control device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: receiving a first control instruction sent by a remote control device through the ZigBee protocol, wherein the first control instruction carries a second motion track of the remote control device; determining a second control instruction corresponding to the second motion track according to a preset relation table corresponding to the target device, wherein the preset relation table comprises a corresponding relation between the second motion track of the remote control device and the control instruction; and controlling the target equipment to execute the operation corresponding to the second control instruction.
FIG. 15 is a block diagram illustrating an apparatus for controlling a device according to an exemplary embodiment. For example, the apparatus 1500 may be a mobile phone, 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. 15, apparatus 1500 may include one or more of the following components: processing components 1502, memory 1504, power components 1506, multimedia components 1508, audio components 1510, input/output (I/O) interfaces 1512, sensor components 1514, and communication components 1516.
The processing component 1502 generally controls overall operation of the device 1500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 1502 may include one or more processors 1520 to execute instructions to perform the apparatus control method provided in the present disclosure, the method comprising: after the generation of the motion signal is detected, acquiring the first time of the generation of the last motion signal; when the time difference between the first time and the current second time is smaller than a time difference threshold value, acquiring a current first motion track of the remote control equipment; combining the first motion trail with the motion trail obtained by the remote control equipment to generate a second motion trail; when the fact that a complete second motion track is obtained is determined, the obtaining of the motion track is finished, and a first control instruction carrying the second motion track is generated; and sending the first control instruction to gateway equipment through the ZigBee protocol, wherein the first control instruction is used for instructing the gateway equipment to control target equipment according to the second motion track.
Further, processing component 1502 may include one or more modules that facilitate interaction between processing component 1502 and other components. For example, the processing component 1502 may include a multimedia module to facilitate interaction between the multimedia component 1508 and the processing component 1502.
The memory 1504 is configured to store various types of data to support operation at the device 1500. Examples of such data include instructions for any application or method operating on the device 1500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1504 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 component 1506 provides power to the various components of the device 1500. The power components 1506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 1500.
The multimedia component 1508 includes a screen that provides an output interface between the device 1500 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, multimedia component 1508 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 1500 is in an operational 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 1510 is configured to output and/or input audio signals. For example, the audio component 1510 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1500 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 1504 or transmitted via the communication component 1516. In some embodiments, audio component 1510 also includes a speaker for outputting audio signals.
The I/O interface 1512 provides an interface between the processing component 1502 and peripheral interface modules, which can 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 1514 includes one or more sensors for providing status assessment of various aspects of the apparatus 1500. For example, the sensor assembly 1514 can detect an open/closed state of the device 1500, relative positioning of components, such as a display and keypad of the apparatus 1500, the sensor assembly 1514 can also detect a change in position of the apparatus 1500 or a component of the apparatus 1500, the presence or absence of user contact with the apparatus 1500, orientation or acceleration/deceleration of the apparatus 1500, and a change in temperature of the apparatus 1500. The sensor assembly 1514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1514 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 1514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1516 is configured to facilitate wired or wireless communication between the apparatus 1500 and other devices. The apparatus 1500 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 part 1516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1516 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 1500 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 1504 comprising instructions, executable by the processor 1520 of the apparatus 1500 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.
Fig. 16 is a block diagram illustrating another apparatus for controlling a device according to an example embodiment. For example, apparatus 1600 may be provided as a gateway device. Referring to fig. 16, apparatus 1600 includes a processing component 1622 that further includes one or more processors and memory resources, represented by memory 1632, for storing instructions, such as applications, that are executable by processing component 1622. The application programs stored in memory 1632 may include one or more modules that each correspond to a set of instructions. In addition, the processing component 1622 is configured to execute instructions to perform the device control method provided by the technical solution of the present disclosure, and the method includes: receiving a first control instruction sent by a remote control device through the ZigBee protocol, wherein the first control instruction carries a second motion track of the remote control device; determining a second control instruction corresponding to the second motion track according to a preset relation table corresponding to the target device, wherein the preset relation table comprises a corresponding relation between the second motion track of the remote control device and the control instruction; and controlling the target equipment to execute the operation corresponding to the second control instruction.
The apparatus 1600 may also include a power component 1626 configured to perform power management for the apparatus 1600, a wired or wireless network interface 1650 configured to connect the apparatus 1600 to a network, and an input/output (I/O) interface 1658. The apparatus 1600 may operate based on an operating system stored in the memory 1632, such as Windows Server, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium including instructions, such as the memory 1632 including instructions, which are executable by the processing component 1622 of the apparatus 1600 to perform the above device control method provided by the present disclosure 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 (18)

1. The equipment control method is characterized by being applied to remote control equipment, wherein the remote control equipment is a magic cube sensor internally provided with a three-axis acceleration sensor and a gyroscope; the remote control equipment is in communication connection with the gateway equipment through a ZigBee protocol, and the method comprises the following steps:
determining that a generation motion signal is detected when a generation acceleration signal is detected by the three-axis acceleration sensor;
after the generation of the motion signal is detected, acquiring the first time of the generation of the last motion signal;
when the time difference between the first time and the current second time is smaller than a time difference threshold value, acquiring a current first motion track of the remote control equipment;
combining the first motion track and a motion track acquired by the remote control equipment to generate a second motion track, wherein the first motion track is plane rotation, the acquired motion track is plane movement, and the second motion track is plane movement followed by plane rotation;
when the fact that a complete second motion track is obtained is determined, the obtaining of the motion track is finished, and a first control instruction carrying the second motion track is generated;
sending the first control instruction to gateway equipment through the ZigBee protocol, wherein the first control instruction is used for instructing the gateway equipment to control target equipment according to the second motion track;
and when the gyroscope detects that the angle changes, determining that the first motion track is rotation.
2. The method of claim 1, further comprising:
and when the time difference between the first time and the current second time is greater than a time difference threshold value, restarting to acquire the current first motion track of the remote control equipment, and combining the current first motion track with the motion track acquired by the remote control equipment to generate a second motion track.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and when the motion signal is not detected within the preset time length, determining that the complete second motion track is acquired.
4. The method of claim 1, further comprising:
recording the time of the generation of the motion signal and the state of the generation of the motion signal.
5. The device control method is applied to a gateway device, the gateway device is in communication connection with a remote control device through a ZigBee protocol, and the method comprises the following steps:
receiving a first control instruction sent by a remote control device through the ZigBee protocol, wherein the first control instruction carries a second motion track of the remote control device, the second motion track is generated by the remote control device by combining a current first motion track and an obtained motion track, the first motion track is planar rotation, the obtained motion track is planar movement, and the second motion track is planar movement followed by planar rotation; the remote control equipment is a magic cube sensor internally provided with a three-axis acceleration sensor and a gyroscope;
determining a second control instruction corresponding to the second motion track according to a preset relation table corresponding to the target device, wherein the preset relation table comprises a corresponding relation between the second motion track of the remote control device and the control instruction;
controlling the target device to execute an operation corresponding to the second control instruction;
wherein the remote control device determining the second motion profile comprises:
determining that a generation motion signal is detected when a generation acceleration signal is detected by the three-axis acceleration sensor;
after the generation of the motion signal is detected, acquiring the first time of the generation of the last motion signal;
when the time difference between the first time and the current second time is smaller than a time difference threshold value, acquiring a current first motion track of the remote control equipment, wherein when the gyroscope detects that the angle changes, the first motion track is determined to be rotation;
and combining the first motion trail and the motion trail acquired by the remote control equipment to generate the second motion trail.
6. The method of claim 5, further comprising:
receiving a relation table setting instruction, wherein the relation table setting instruction carries a corresponding relation between a second motion track of the remote control device and a control instruction;
and updating the local preset relation table according to the corresponding relation carried in the relation table setting instruction.
7. The method of claim 5, further comprising:
receiving a relation table changing instruction, wherein the relation table changing instruction carries information for changing the corresponding relation contained in the preset relation table;
and according to the information carried in the relation table change instruction, changing the corresponding relation contained in the local preset relation table.
8. The method of claim 5, wherein before the receiving the first control instruction sent by the remote control device via the ZigBee protocol, further comprising:
receiving a device designation instruction, wherein the device designation instruction is used for designating a device to be controlled;
and determining the equipment specified by the equipment specifying instruction as target equipment.
9. The equipment control device is characterized by being applied to remote control equipment, wherein the remote control equipment is a magic cube sensor internally provided with a three-axis acceleration sensor and a gyroscope; the remote control equipment carries out communication connection with the gateway equipment through a ZigBee protocol, and the device comprises:
a second determination module configured to determine that generation of the motion signal is detected in a case where generation of the acceleration signal is detected by the three-axis acceleration sensor;
the first acquisition module is configured to acquire a first time for generating a last motion signal after detecting that the motion signal is generated;
the second acquisition module is configured to acquire a current first motion track of the remote control device under the condition that the time difference between the first time acquired by the first acquisition module and the current second time is smaller than a time difference threshold value;
a first generation module, configured to combine a first motion trajectory acquired by the second acquisition module with a motion trajectory acquired by the remote control device to generate a second motion trajectory, where the first motion trajectory is planar rotation, the acquired motion trajectory is planar movement, and the second motion trajectory is planar movement followed by planar rotation;
the second generation module is configured to end the acquisition of the motion trail and generate a first control instruction carrying the second motion trail generated by the first generation module when the fact that the complete second motion trail is acquired is to be determined;
the transmitting module is configured to transmit a first control instruction generated by the second generating module to a gateway device through the ZigBee protocol, wherein the first control instruction is used for instructing the gateway device to control a target device according to the second motion track;
a fourth determination module configured to determine the first motion trajectory as a rotation if a change in angle is detected by the gyroscope.
10. The apparatus of claim 9, further comprising:
and the third obtaining module is configured to restart obtaining the current first motion track of the remote control device and combine the current first motion track with the motion track obtained by the remote control device to generate a second motion track when the time difference between the first time obtained by the first obtaining module and the current second time is greater than a time difference threshold value.
11. The apparatus of claim 9 or 10, further comprising:
a first determination module configured to determine that a complete second motion trajectory has been acquired in case no motion signal is detected within a predetermined length of time.
12. The apparatus of claim 9, further comprising:
a recording module configured to record the time at which the motion signal is generated and a state of the motion signal generation.
13. The device control device is applied to gateway equipment, the gateway equipment is in communication connection with remote control equipment through a ZigBee protocol, and the device comprises:
the remote control device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is configured to receive a first control instruction sent by a remote control device through a ZigBee protocol, the first control instruction carries a second motion track of the remote control device, the second motion track is generated by the remote control device by acquiring and combining a current first motion track and an acquired motion track, the first motion track is planar rotation, the acquired motion track is planar movement, and the second motion track is planar movement followed by planar rotation; the remote control equipment is a magic cube sensor internally provided with a three-axis acceleration sensor and a gyroscope;
a fifth determining module, configured to determine, according to a preset relationship table corresponding to a target device, a second control instruction corresponding to the second motion trajectory, where the preset relationship table includes a correspondence between the second motion trajectory of the remote control device and the control instruction;
the control module is configured to control the target device to execute an operation corresponding to the second control instruction determined by the fifth determination module;
wherein the remote control device determining the second motion profile comprises:
determining that a generation motion signal is detected when a generation acceleration signal is detected by the three-axis acceleration sensor;
after the generation of the motion signal is detected, acquiring the first time of the generation of the last motion signal;
when the time difference between the first time and the current second time is smaller than a time difference threshold value, acquiring a current first motion track of the remote control equipment, wherein when the gyroscope detects that the angle changes, the first motion track is determined to be rotation;
and combining the first motion trail and the motion trail acquired by the remote control equipment to generate the second motion trail.
14. The apparatus of claim 13, further comprising:
the second receiving module is configured to receive a relation table setting instruction, wherein the relation table setting instruction carries a corresponding relation between a second motion track of the remote control device and the control instruction;
and the updating module is configured to update the local preset relation table according to the corresponding relation carried in the relation table setting instruction received by the second receiving module.
15. The apparatus of claim 13, further comprising:
a third receiving module, configured to receive a relation table change instruction, where the relation table change instruction carries information for changing a corresponding relation included in the preset relation table;
and the changing module is configured to change the corresponding relation contained in the local preset relation table according to information carried in the relation table changing instruction received by the third receiving module.
16. The apparatus of claim 13, further comprising:
a fourth receiving module, configured to receive a device specifying instruction, where the device specifying instruction is used to specify a device to be controlled;
a device determination module configured to determine the device specified by the device specification instruction received by the fourth reception module as the target device.
17. The utility model provides an equipment control device which characterized in that, equipment control device is for built-in magic cube sensor who has triaxial acceleration sensor and gyroscope, includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining that a generation motion signal is detected when a generation acceleration signal is detected by the three-axis acceleration sensor;
after the generation of the motion signal is detected, acquiring the first time of the generation of the last motion signal;
when the time difference between the first time and the current second time is smaller than a time difference threshold value, acquiring a current first motion track of the remote control equipment;
combining the first motion track and a motion track acquired by the remote control equipment to generate a second motion track, wherein the first motion track is plane rotation, the acquired motion track is plane movement, and the second motion track is plane movement followed by plane rotation;
when the fact that a complete second motion track is obtained is determined, the obtaining of the motion track is finished, and a first control instruction carrying the second motion track is generated;
sending the first control instruction to gateway equipment through a ZigBee protocol, wherein the first control instruction is used for indicating the gateway equipment to control target equipment according to the second motion track;
and when the gyroscope detects that the angle changes, determining that the first motion track is rotation.
18. An apparatus control device, characterized by comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a first control instruction sent by a remote control device through a ZigBee protocol, wherein the first control instruction carries a second motion track of the remote control device, the second motion track is generated by the remote control device by combining a current first motion track and an obtained motion track, the first motion track is planar rotation, the obtained motion track is planar movement, and the second motion track is planar movement followed by planar rotation; the remote control equipment is a magic cube sensor internally provided with a three-axis acceleration sensor and a gyroscope;
determining a second control instruction corresponding to the second motion track according to a preset relation table corresponding to the target device, wherein the preset relation table comprises a corresponding relation between the second motion track of the remote control device and the control instruction;
controlling the target device to execute an operation corresponding to the second control instruction;
wherein the remote control device determining the second motion profile comprises:
determining that a generation motion signal is detected when a generation acceleration signal is detected by the three-axis acceleration sensor;
after the generation of the motion signal is detected, acquiring the first time of the generation of the last motion signal;
when the time difference between the first time and the current second time is smaller than a time difference threshold value, acquiring a current first motion track of the remote control equipment, wherein when the gyroscope detects that the angle changes, the first motion track is determined to be rotation;
and combining the first motion trail and the motion trail acquired by the remote control equipment to generate the second motion trail.
CN201610730453.9A 2016-08-25 2016-08-25 Equipment control method and device Active CN106355852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610730453.9A CN106355852B (en) 2016-08-25 2016-08-25 Equipment control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610730453.9A CN106355852B (en) 2016-08-25 2016-08-25 Equipment control method and device

Publications (2)

Publication Number Publication Date
CN106355852A CN106355852A (en) 2017-01-25
CN106355852B true CN106355852B (en) 2020-01-07

Family

ID=57854608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610730453.9A Active CN106355852B (en) 2016-08-25 2016-08-25 Equipment control method and device

Country Status (1)

Country Link
CN (1) CN106355852B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107998652B (en) * 2017-12-15 2020-09-11 北京小米移动软件有限公司 Intelligent magic cube interaction method, intelligent magic cube and storage medium
CN112567892A (en) * 2018-08-24 2021-03-26 昕诺飞控股有限公司 Transmitting sensor signals depending on device orientation
CN109731324B (en) * 2018-12-29 2022-08-16 深圳市掌网科技股份有限公司 Game system based on augmented reality
CN111404787A (en) * 2019-01-03 2020-07-10 珠海格力电器股份有限公司 Electric appliance control method and device
CN111724578B (en) * 2019-03-21 2022-03-15 珠海格力电器股份有限公司 Remote control device and feedback method for remote control device
CN109945411B (en) 2019-03-25 2020-05-26 珠海格力电器股份有限公司 Control method and device of controller, storage medium and controller
CN112050088B (en) * 2019-06-05 2023-10-31 中国石油天然气股份有限公司 Pipeline detection method and device and computer storage medium
CN112445139A (en) * 2019-08-30 2021-03-05 珠海格力电器股份有限公司 Intelligent magic cube controller
CN113038600B (en) * 2021-03-18 2023-05-23 三星电子(中国)研发中心 Method and system for interactive operation between electronic devices

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577044A (en) * 2008-05-09 2009-11-11 海信集团有限公司 Control device and control method thereof
CN101783064A (en) * 2009-01-20 2010-07-21 英华达(南京)科技有限公司 Remote controller reaching operating function based on movement locus and operation method thereof
CN201570011U (en) * 2010-01-13 2010-09-01 北京视博数字电视科技有限公司 Terminal control device and terminal
CN101877167A (en) * 2009-04-30 2010-11-03 骏升科技(扬州)有限公司 Motion controller
CN102024316A (en) * 2009-09-09 2011-04-20 罗富强 Wireless intelligent sensing method, device and system
CN103179168A (en) * 2011-12-26 2013-06-26 鸿富锦精密工业(深圳)有限公司 Electronic device and method for sharing data through Bluetooth
CN103399705A (en) * 2013-07-19 2013-11-20 北京小米科技有限责任公司 Method, device and equipment for remotely controlling terminal equipment
CN103529762A (en) * 2013-02-22 2014-01-22 Tcl集团股份有限公司 Intelligent household control method and system based on sensor technology
CN103713736A (en) * 2013-10-16 2014-04-09 惠州紫旭科技有限公司 Device movement track based information recognition method
CN104699244A (en) * 2015-02-26 2015-06-10 小米科技有限责任公司 Controlling method and device for intelligent device
CN105208420A (en) * 2015-08-24 2015-12-30 小米科技有限责任公司 Television control method and device and electronic equipment
CN105388851A (en) * 2015-10-30 2016-03-09 黑龙江大学 Moving body visual control system and method, electromechanical moving body and mobile terminal
CN105389969A (en) * 2015-07-03 2016-03-09 张韶冬 Remote control device based on acceleration sensor

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102280020B (en) * 2010-06-11 2013-02-13 幻音科技(深圳)有限公司 Touch type remote controller
CN104504887B (en) * 2015-01-06 2018-09-04 连宁 A kind of control method and system of wireless remote control

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577044A (en) * 2008-05-09 2009-11-11 海信集团有限公司 Control device and control method thereof
CN101783064A (en) * 2009-01-20 2010-07-21 英华达(南京)科技有限公司 Remote controller reaching operating function based on movement locus and operation method thereof
CN101877167A (en) * 2009-04-30 2010-11-03 骏升科技(扬州)有限公司 Motion controller
CN102024316A (en) * 2009-09-09 2011-04-20 罗富强 Wireless intelligent sensing method, device and system
CN201570011U (en) * 2010-01-13 2010-09-01 北京视博数字电视科技有限公司 Terminal control device and terminal
CN103179168A (en) * 2011-12-26 2013-06-26 鸿富锦精密工业(深圳)有限公司 Electronic device and method for sharing data through Bluetooth
CN103529762A (en) * 2013-02-22 2014-01-22 Tcl集团股份有限公司 Intelligent household control method and system based on sensor technology
CN103399705A (en) * 2013-07-19 2013-11-20 北京小米科技有限责任公司 Method, device and equipment for remotely controlling terminal equipment
CN103713736A (en) * 2013-10-16 2014-04-09 惠州紫旭科技有限公司 Device movement track based information recognition method
CN104699244A (en) * 2015-02-26 2015-06-10 小米科技有限责任公司 Controlling method and device for intelligent device
CN105389969A (en) * 2015-07-03 2016-03-09 张韶冬 Remote control device based on acceleration sensor
CN105208420A (en) * 2015-08-24 2015-12-30 小米科技有限责任公司 Television control method and device and electronic equipment
CN105388851A (en) * 2015-10-30 2016-03-09 黑龙江大学 Moving body visual control system and method, electromechanical moving body and mobile terminal

Also Published As

Publication number Publication date
CN106355852A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN106355852B (en) Equipment control method and device
EP3136793B1 (en) Method and apparatus for awakening electronic device
EP3119039B1 (en) Method and apparatus for controlling an intelligent device
EP3660662A2 (en) Method, apparatus, system, device for controlling intelligent device and storage medium
US20170125035A1 (en) Controlling smart device by voice
EP3131258A1 (en) Smart household equipment control methods and corresponding apparatus
EP3177042A1 (en) Method and apparatus for updating connection parameter of low-power bluetooth device
US20170344192A1 (en) Method and device for playing live videos
EP2930705A1 (en) Method and apparatus for controlling smart terminal
WO2017071077A1 (en) Interface display method and apparatus
CN106406117B (en) Equipment control method and device
US10270614B2 (en) Method and device for controlling timed task
EP3076745B1 (en) Methods and apparatuses for controlling wireless access point
EP3322227B1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
CN107343087B (en) Intelligent equipment control method and device
US20150288764A1 (en) Method and apparatus for controlling smart terminal
EP4203440A1 (en) Method and device for sharing data, electronic device, and storage medium
CN106448104B (en) Equipment control method and device
CN109522058B (en) Wake-up method, device, terminal and storage medium
CN111123716A (en) Remote control method, remote control apparatus, and computer-readable storage medium
CN109474744B (en) Alarm clock processing method, device and storage medium
CN107948876B (en) Method, device and medium for controlling sound box equipment
CN106899369B (en) Method and device for reserved playing of intelligent radio
CN107564038B (en) Offset parameter determination method and device and offset control method and device
CN106254919B (en) The method of adjustment and device of smart television working condition

Legal Events

Date Code Title Description
C06 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