CN113050458B - Device control method, control terminal, and storage medium - Google Patents

Device control method, control terminal, and storage medium Download PDF

Info

Publication number
CN113050458B
CN113050458B CN202110311869.8A CN202110311869A CN113050458B CN 113050458 B CN113050458 B CN 113050458B CN 202110311869 A CN202110311869 A CN 202110311869A CN 113050458 B CN113050458 B CN 113050458B
Authority
CN
China
Prior art keywords
controlled
ranging unit
distance
control
equipment
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
CN202110311869.8A
Other languages
Chinese (zh)
Other versions
CN113050458A (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.)
Weifang Goertek Electronics Co Ltd
Original Assignee
Weifang Goertek Electronics 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 Weifang Goertek Electronics Co Ltd filed Critical Weifang Goertek Electronics Co Ltd
Priority to CN202110311869.8A priority Critical patent/CN113050458B/en
Publication of CN113050458A publication Critical patent/CN113050458A/en
Application granted granted Critical
Publication of CN113050458B publication Critical patent/CN113050458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements

Abstract

The invention discloses a control method of equipment, which comprises the following steps: acquiring a first spacing distance between the first distance measuring unit and the equipment to be controlled and a second spacing distance between the second distance measuring unit and the equipment to be controlled; acquiring a third spacing distance between the first ranging unit and the second ranging unit; determining an angle value of the detection angle according to the first spacing distance, the second spacing distance and the third spacing distance; taking the equipment to be controlled with the angle value of the corresponding detection angle within a preset range as target equipment to be controlled; and sending the received control instruction to the target equipment to be controlled. The invention also discloses a control terminal and a computer readable storage medium, which achieve the effect of simplifying the control steps of the equipment.

Description

Control method of device, control terminal and storage medium
Technical Field
The present invention relates to the field of device control technologies, and in particular, to a device control method, a control terminal, and a computer-readable storage medium.
Background
With the development of science and technology, intelligent furniture has become popular. In the related art, when a plurality of intelligent devices exist in a user room, if a plurality of devices need to be controlled by voice, different names need to be set for the devices. For example, when a plurality of independent fluorescent lamps are installed in a living room, the fluorescent lamps may be named as a fluorescent lamp 1 and a fluorescent lamp 2. However, when the number of devices to be controlled increases to a certain extent, a plurality of different names need to be set. When a user sets, the setting steps are very complicated. And in the control, the device name needs to be added in all the control commands, so that the control step is very complicated. Therefore, the related intelligent device control scheme has the defect of complicated control steps.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a control method of equipment, a control terminal and a computer readable storage medium, aiming at achieving the effect of simplifying the control steps of the equipment.
In order to achieve the above object, the present invention provides a control method of an apparatus, including the steps of:
acquiring a first spacing distance between the first ranging unit and the equipment to be controlled and a second spacing distance between the second ranging unit and the equipment to be controlled;
acquiring a third spacing distance between the first ranging unit and the second ranging unit;
determining an angle value of a detection angle according to the first spacing distance, the second spacing distance and the third spacing distance, wherein the detection angle is an included angle between a straight line where the first distance measuring unit and the second distance measuring unit are located, a middle point between the first distance measuring unit and the second distance measuring unit and a straight line where the equipment to be controlled is located;
the equipment to be controlled with the corresponding angle value of the detection angle within a preset range is used as target equipment to be controlled;
and sending the received control instruction to the target equipment to be controlled.
Optionally, the first ranging unit and the second ranging unit are radio frequency ranging units, and the step of acquiring a first separation distance between the first ranging unit and the device to be controlled and a second separation distance between the second ranging unit and the device to be controlled includes:
determining the first distance according to the first flight time of the radio frequency signal between the first ranging unit and the device to be controlled;
and determining the second interval distance according to the second flight time of the radio frequency signal between the second ranging unit and the device to be controlled.
Optionally, the step of acquiring a third separation distance between the first ranging unit and the second ranging unit includes:
and acquiring a preset distance as the third spacing distance.
Optionally, the step of sending the received control instruction to the target device to be controlled includes:
when a plurality of target devices to be controlled exist, acquiring the spatial position relation between each target device to be controlled and the first ranging unit and the second ranging unit;
and sending the received control instruction to the target equipment to be controlled with the spatial position relation as a preset position relation.
Optionally, the step of sending the received control instruction to the target device to be controlled includes:
when a plurality of target devices to be controlled exist, determining an angle difference corresponding to each target device to be controlled, wherein the angle difference is a difference value between an angle value of the detection angle and a preset angle value, and the preset angle value is within a preset range;
and sending the received control instruction to the target equipment to be controlled with the minimum absolute value of the angle difference.
Optionally, the step of sending the received control instruction to the target device to be controlled includes:
when a plurality of target devices to be controlled exist, acquiring the vertical distance between each target device to be controlled and a connecting line between the first ranging unit and the second ranging unit;
and sending the received control instruction to the target equipment to be controlled with the minimum vertical distance.
Optionally, when a preset condition is met, the step of obtaining the angle value of the detection angle corresponding to each device to be controlled is executed, where the preset condition includes:
receiving the control instruction; or
Detecting that the control terminal moves.
In addition, in order to achieve the above object, the present invention further provides a control terminal, which includes a memory, a processor, and a control program stored on the memory and executable on the processor, wherein the control program, when executed by the processor, implements the steps of the control method of the device as described above.
Optionally, the control terminal is set as an earphone, the earphone includes a left sub-earphone and a right sub-earphone, and the first distance measuring unit and the second distance measuring unit are respectively disposed on the left sub-earphone and the right sub-earphone.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a control program that, when executed by a processor, implements the steps of the control method of the apparatus as described above.
The control method, the control terminal and the computer readable storage medium of the device provided by the embodiment of the invention are characterized in that the angle value of the detection angle corresponding to each device to be controlled is firstly obtained, wherein the detection angle is an included angle between a straight line where the first distance measuring unit and the second distance measuring unit are located and a straight line where the device to be controlled is located and a midpoint between the first distance measuring unit and the second distance measuring unit, then the device to be controlled, of which the corresponding angle value of the detection angle is within a preset range, is used as the target device to be controlled, and the received control instruction is sent to the target device to be controlled. The target equipment to be controlled can be determined according to the angle value of the detection angle and controlled, so that the user can control the equipment to be controlled only by changing the angle value of the detection angle between the terminal equipment and the target equipment to be controlled, and the effect of simplifying the control steps of the equipment control scheme is achieved.
Drawings
Fig. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating an embodiment of a method for controlling the apparatus of the present invention;
fig. 3 is a schematic diagram of a position relationship between a control terminal and a device to be controlled according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a control terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another control terminal according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a position relationship between a ranging unit of the control terminal in FIG. 3 and a device to be controlled;
fig. 7 is a schematic diagram of a position relationship between a ranging unit of a control terminal and a device to be controlled in an application scenario according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a position relationship between a ranging unit of a control terminal and a device to be controlled in another application scenario according to an embodiment of the present invention
Fig. 9 is a schematic diagram of a position relationship between a ranging unit of a control terminal and a device to be controlled in another application scenario according to an embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
With the development of science and technology, intelligent furniture has become popular. In the related art, when a plurality of smart devices exist in a user room, if it is necessary to control the plurality of devices by voice, different names need to be set for the respective devices. For example, when a plurality of independent fluorescent lamps are installed in a living room, the fluorescent lamps may be named as a fluorescent lamp 1 and a fluorescent lamp 2. However, when the number of devices that need to be controlled increases to a certain extent, a plurality of different names need to be set. When a user sets, the setting steps are very complicated. And in the control, the device name needs to be added in all the control commands, so that the control steps are very complicated. Therefore, the related intelligent equipment control scheme has the defect of complicated control steps.
In order to solve the above-mentioned drawbacks, an embodiment of the present invention provides a method for controlling a device, and the main solution thereof includes the following steps:
acquiring an angle value of a detection angle corresponding to each device to be controlled, wherein the detection angle is an included angle between a straight line where the first distance measuring unit and the second distance measuring unit are located, a middle point between the first distance measuring unit and the second distance measuring unit and the straight line where the device to be controlled is located;
the equipment to be controlled with the corresponding angle value of the detection angle within a preset range is used as target equipment to be controlled;
and sending the received control instruction to the target equipment to be controlled.
The target equipment to be controlled can be determined according to the angle value of the detection angle and controlled, so that the user can control the equipment to be controlled only by changing the angle value of the detection angle between the terminal equipment and the target equipment to be controlled, and the effect of simplifying the control steps of the equipment control scheme is achieved.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the terminal may include: a processor 1001, e.g. a CPU, a user interface 1003, a memory 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), a mouse, etc., and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The memory 1004 may be a high-speed RAM memory or a non-volatile memory, such as a disk memory. The memory 1004 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1004, which is a kind of computer storage medium, may include therein an operating system, a user interface module, and a control program.
In the terminal shown in fig. 1, the processor 1001 may be configured to call the control program stored in the memory 1004 and perform the following operations:
acquiring a first spacing distance between the first ranging unit and the equipment to be controlled and a second spacing distance between the second ranging unit and the equipment to be controlled;
acquiring a third spacing distance between the first ranging unit and the second ranging unit;
determining an angle value of a detection angle according to the first spacing distance, the second spacing distance and the third spacing distance, wherein the detection angle is an included angle between a straight line where the first ranging unit and the second ranging unit are located, a middle point between the first ranging unit and the second ranging unit and a straight line where the equipment to be controlled is located;
the equipment to be controlled, of which the corresponding angle value of the detection angle is within a preset range, is used as target equipment to be controlled;
and sending the received control instruction to the target equipment to be controlled.
Further, the processor 1001 may call the control program stored in the memory 1004, and also perform the following operations:
determining the first distance according to the first flight time of the radio frequency signal between the first ranging unit and the device to be controlled;
and determining the second interval distance according to the second flight time of the radio frequency signal between the second ranging unit and the device to be controlled.
Further, the processor 1001 may call the control program stored in the memory 1004, and further perform the following operations:
and acquiring a preset distance as the third spacing distance.
Further, the processor 1001 may call the control program stored in the memory 1004, and also perform the following operations:
when a plurality of target devices to be controlled exist, acquiring the spatial position relation between each target device to be controlled and the first ranging unit and the second ranging unit;
and sending the received control instruction to the target equipment to be controlled with the spatial position relation as a preset position relation.
Further, the processor 1001 may call the control program stored in the memory 1004, and also perform the following operations:
when a plurality of target devices to be controlled exist, determining an angle difference corresponding to each target device to be controlled, wherein the angle difference is a difference value between an angle value of the detection angle and a preset angle value, and the preset angle value is within a preset range;
and sending the received control instruction to the target equipment to be controlled with the minimum absolute value of the angle difference.
Further, the processor 1001 may call the control program stored in the memory 1004, and further perform the following operations:
when a plurality of target devices to be controlled exist, acquiring the vertical distance between each target device to be controlled and a connecting line between the first ranging unit and the second ranging unit;
and sending the received control instruction to the target equipment to be controlled with the minimum vertical distance.
Referring to fig. 2, in an embodiment of the control method of the apparatus of the present invention, the control method of the apparatus includes the steps of:
step S10, acquiring a first spacing distance between the first ranging unit and the device to be controlled and a second spacing distance between the second ranging unit and the device to be controlled;
step S20, acquiring a third spacing distance between the first ranging unit and the second ranging unit;
step S30, determining an angle value of a detection angle according to the first spacing distance, the second spacing distance and the third spacing distance, wherein the detection angle is an included angle between a straight line where the first ranging unit and the second ranging unit are located, a middle point between the first ranging unit and the second ranging unit and a straight line where the equipment to be controlled is located;
step S40, the device to be controlled with the corresponding angle value of the detection angle within a preset range is used as a target device to be controlled;
step S50, sending the received control instruction to the target device to be controlled
With the development of science and technology, intelligent furniture has become popular. In the related art, when a plurality of smart devices exist in a user room, if it is necessary to control the plurality of devices by voice, different names need to be set for the respective devices. For example, when a plurality of independent fluorescent lamps are installed in a living room, the fluorescent lamps may be named as a fluorescent lamp 1 and a fluorescent lamp 2. However, when the number of devices that need to be controlled increases to a certain extent, a plurality of different names need to be set. When a user sets, the setting steps are very complicated. In addition, during control, the device name needs to be added to all control instructions, for example, when the fluorescent lamp 1 needs to be controlled to be turned off through semantic control, the voice control instruction needing to be input is to turn off the fluorescent lamp 1, and when the control instruction of turning off is directly sent out, the control target cannot be determined. This also results in a very cumbersome control procedure. Therefore, the related intelligent device control scheme has the defect of complicated control steps.
In order to solve the foregoing defects in the prior art, an embodiment of the present invention provides a method for controlling an apparatus, where the method for controlling an apparatus is applied to a control terminal. It is understood that the control terminal may be, for example, a remote controller or a wearable device. Wherein, wearing equipment can be intelligent bracelet, intelligent glasses or intelligent earphone etc.. The present embodiment does not specifically limit the specific type of the control terminal.
Further, referring to fig. 3, the control terminal 10 includes a first ranging unit 11a and a second ranging unit 11 b. Wherein the first distance measuring unit 11a and the second distance measuring unit 11b are arranged at intervals. I.e. there is a certain separation distance between the first and second ranging units 11a, 11 b. The size of the distance between the first ranging unit 11a and the second ranging unit 11b is not particularly limited in this embodiment.
It is understood that the spaced distance between the first ranging unit 11a and the second ranging unit 11b may be fixed. For example, referring to fig. 4, when the control terminal 10 is provided as a smart eye, the first ranging unit 11a and the second ranging unit 11b may be respectively provided at both sides of the frame. Thus, the first ranging unit 11a and the second ranging unit 11b are made to be a fixed distance. Referring to fig. 5, when the control terminal 10 is set as the smart tws headset, the headset 10 may include a first sub-headset and a second sub-headset on which the first ranging unit 11a and the second ranging unit 11b are respectively disposed. When different users wear the earphone, the distance between the first sub earphone and the second sub earphone is different because of different bone widths of the users. Or the earphones are in different states (such as a wearing state and a non-wearing state), the distance between the first sub earphone and the second sub earphone is different, so that the distance between the first distance measuring unit 11a and the second distance measuring unit 11b arranged on the first sub earphone and the second sub earphone is changed along with the change of the distance between the first sub earphone and the second sub earphone.
In this embodiment, when a plurality of devices to be controlled exist in a space where the control terminal is located, the control terminal may first obtain an angle value of a detection angle corresponding to each device to be controlled. The equipment to be controlled can be intelligent furniture such as an intelligent air conditioner, an intelligent television and an intelligent electric lamp. Or other intelligent devices which can be controlled by the control terminal. The detection angle is an included angle between a straight line where the first distance measuring unit and the second distance measuring unit are located, a middle point between the first distance measuring unit and the second distance measuring unit and a straight line where the equipment to be controlled is located.
Illustratively, referring to fig. 3, in a space where the control terminal 10 is located, there are a device to be controlled a and a device to be controlled B. Wherein, the detection angle corresponding to the device A to be controlled is theta2The corresponding detection angle of the device B to be controlled is theta1
For convenience of calculation, the detection angle is generally set to be an angle smaller than or equal to 90 ° in an included angle between a straight line where the first ranging unit and the second ranging unit are located and a straight line where the device to be controlled is located and a midpoint between the first ranging unit and the second ranging unit, and is used as the detection angle.
Specifically, when obtaining the angle value of the detection angle corresponding to each device to be controlled, a first separation distance between the first distance measuring unit and the device to be controlled and a second separation distance between the second distance measuring unit and the device to be controlled may be obtained first, a third separation distance between the first distance measuring unit and the second distance measuring unit may be obtained, and then the angle value of the detection angle may be determined according to the first separation distance, the second separation distance, and the third separation distance.
Wherein the third spacing distance is a fixed constant when the distance between the first ranging unit and the second ranging unit is fixed, and thus may be previously stored in a storage medium. So that it is possible to read a pre-stored separation distance as the third separation distance. Otherwise, the third distance may be obtained by a preset distance measurement method.
Referring to fig. 6, fig. 6 is a simplified diagram of relative position relationships between the devices a and B to be controlled and the first ranging unit and the second ranging unit in fig. 3. The point A is the position of the device A to be controlled, the point B is the position of the device B to be controlled, the point O is the position of the first ranging unit, and the point P is the position of the second ranging unit.
It is understood that when the angle value of the detection angle θ 1 needs to be obtained, the first spacing distance L1A, the second spacing distance L2A, and the third spacing distance L3 may be obtained first. Further, point a, point O, and point P constitute a triangular AOP having sides L1A, L2A, and L3. And detecting the angle value of the angle theta 1, namely the angle value of &. Because G is the midpoint of the line segment OP, the length of the line-out segment AG can be calculated according to the triangle central line theorem, and then the cosine value of ≤ AGO can be calculated according to the cosine theorem. Therefore, the angle value of the ≤ AGO, namely the angle value of the detection angle θ 1, is obtained based on the cosine value of the ≤ AGO.
Similarly, based on L1B, L2B, and L3, an angle value of the detection angle θ 2 can be calculated.
As an optional implementation scheme, when a first separation distance between the first ranging unit and the device to be controlled and a second separation distance between the second ranging unit and the device to be controlled are obtained, if the first ranging unit and the second ranging unit are radio frequency ranging units, the first separation distance may be determined according to a first flight time of a radio frequency signal between the first ranging unit and the device to be controlled, and the second separation distance may be determined according to a second flight time of the radio frequency signal between the second ranging unit and the device to be controlled.
After determining the flight time t of the radio frequency signal between two points, the distance s between the two points can be calculated based on the following formula:
s=t*c
c is the propagation velocity of the radio frequency signal.
For example, the first ranging unit may be configured as a bluetooth ranging unit or a ZigBee ranging unit, and when performing ranging, a ranging signal may be transmitted first, and then the flight time of the radio frequency signal may be determined according to a time point of receiving a feedback signal of the ranging signal and a time point of transmitting the ranging signal.
It should be noted that, when the distance between the first ranging unit and the second ranging unit is not fixed, the separation distance between the first ranging unit and the second ranging unit may also be obtained based on the above method.
Further, after the angle value of the detection angle corresponding to each device to be controlled is obtained, the device to be controlled, in which the corresponding angle value of the detection angle is within a preset range, may be used as a target device to be controlled, and then the received control instruction is sent to the target device to be controlled.
As an alternative embodiment, the preset range may be set to [90 ° -a,90+ a ° ], wherein a may be set to any one of values from 0 to 10. When a user needs to control the target device to be controlled through the control terminal, the detection angle corresponding to the target device to be controlled can be within the preset range through the mobile control terminal, and then the target device to be controlled can be controlled.
Exemplarily, referring to fig. 3, the control terminal is a remote controller, the remote controller includes a voice input control button 12, and when a user needs to control the device B to be controlled, the remote controller may be oriented to control the device B to be controlled, so that an angle value of a detection angle corresponding to the device B to be controlled is 90 °. And then the user can input a voice control instruction by pressing the voice input control, and when the remote controller receives the voice control instruction, the voice control instruction is sent to the equipment B to be controlled.
Referring to fig. 4, when the device to be controlled is glasses, when a user wears the glasses, the user only needs to face the target device to be controlled, and the target device to be controlled can be controlled.
In the technical scheme disclosed in this embodiment, angle values of detection angles corresponding to the devices to be controlled are obtained first, where the detection angles are included angles between straight lines where the first ranging unit and the second ranging unit are located and a straight line where a midpoint between the first ranging unit and the second ranging unit and the device to be controlled are located, then the devices to be controlled, where the corresponding angle values of the detection angles are within a preset range, are used as target devices to be controlled, and received control instructions are sent to the target devices to be controlled. The target equipment to be controlled can be determined according to the angle value of the detection angle and controlled, so that the user can control the equipment to be controlled only by changing the angle value of the detection angle between the terminal equipment and the target equipment to be controlled, and the effect of simplifying the control steps of the equipment control scheme is achieved.
Optionally, based on the foregoing embodiment, in another embodiment, referring to fig. 3 or fig. 4, the control terminal is provided with a control plane. It is understood that, when the device to be controlled is controlled by the control terminal, the device generally set to the control surface orientation is the device that the user wants to control. For example, when the terminal is controlled by a remote controller as shown in fig. 3, the control surface is in front of the remote controller, so that the device to be controlled to which the control surface points is set as the target device to be controlled. When the control terminal is the intelligent glasses shown in fig. 4, the side of the mirror surface of the glasses, which is far away from the user, is the control surface, so that when the user controls a device through the intelligent glasses, the control can be realized only by sending a control instruction to the device.
Based on the solutions disclosed in the above embodiments, referring to fig. 7, when the device C to be controlled and the device C' to be controlled exist on the front side and the back side at the same time, the device C to be controlled is the device C to be controlled that the user wants to control. However, in this case, the angle values of the inspection angles corresponding to the device to be controlled C and the device to be controlled C' are both within the preset range, which results in the control terminal screen determining that a plurality of target devices to be controlled exist at this time. That is, the control terminal determines both the device to be controlled C and the device to be controlled C' as the target device to be controlled, and therefore, it is necessary to determine the device to be controlled to which the control terminal points (faces) as the target device to be controlled. Therefore, a spatial position relationship between each target device to be controlled and the first ranging unit and the second ranging unit can be obtained, wherein the spatial position relationship is an arrangement sequence among the target device to be controlled, the second ranging unit and the first ranging unit based on an arc in which the target device to be controlled, the second ranging unit and the first ranging unit are located. As shown in fig. 7, the target devices to be controlled C on the front side, the second ranging unit and the first ranging unit are arranged in a clockwise order, and the target devices to be controlled C' on the back side, the second ranging unit and the first ranging unit are arranged in a counterclockwise order.
In the technical solution disclosed in this embodiment, the devices to be controlled on the front side of the control terminal and the devices to be controlled on the back side of the control terminal can be distinguished by the spatial position relationship between each of the devices to be controlled and the first ranging unit and the second ranging unit.
Optionally, based on any one of the embodiments described above, in a further embodiment, referring to fig. 8, when there are a plurality of target devices to be controlled that have the same angle value α corresponding to the detection angle. And acquiring the vertical distance between each target device to be controlled and a connecting line between each target device to be controlled and the first ranging unit and the second ranging unit, and then sending the received control command to the target device to be controlled with the minimum vertical distance.
For example, referring to fig. 8, when there are a target device to be controlled D and a target device to be controlled D ' having the same angle value α of the detection angle, the vertical distance corresponding to the device to be controlled D is LD, and the vertical distance corresponding to D ' is LD '. Since LD' is larger than LD. The control instruction can be sent to the device D to be controlled.
Referring to fig. 9, when a plurality of target devices to be controlled, of which the corresponding angle values α are α 1, α 2, and α 3, exist within a preset range (a shaded area in the drawing) corresponding to the angle value of the detection angle. And determining an angle difference corresponding to each target device to be controlled, wherein the angle difference is a difference value between the angle value of the detection angle and a preset angle value, and then sending the received control command to the target device to be controlled, of which the angle difference meets a preset condition. The preset condition may be set as a target device to be controlled, where an absolute value of the difference is the smallest. It is to be understood that the preset condition may also be set to two target devices to be controlled, the absolute value of which is the smallest and the second smallest.
Optionally, referring to fig. 9, based on any one of the above embodiments, in yet another embodiment, the step of obtaining the angle value of the detection angle corresponding to each device to be controlled may be executed when a preset condition is met, where the preset condition includes:
receiving the control instruction; and/or
Detecting that the control terminal moves.
In this embodiment, the target device to be controlled may be determined after receiving the control instruction. Therefore, the control terminal does not need to frequently determine the target equipment to be controlled. The purpose of saving energy is achieved, or the control terminal can be detected to move, so that the control instruction can be immediately sent to the target equipment to be controlled when the control instruction is received, and the effect of improving the response speed of the control instruction is achieved.
In addition, an embodiment of the present invention further provides a control terminal, where the control terminal includes a memory, a processor, and a control program stored in the memory and capable of running on the processor, and the control program, when executed by the processor, implements the steps of the method for controlling the device according to the above embodiments.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a control program is stored, and the control program, when executed by a processor, implements the steps of the control method of the device according to the above embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or system in which the element is included.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a control terminal to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (9)

1. The device control method is applied to a control terminal, and is characterized in that the control terminal is used for controlling a device to be controlled, wherein a first ranging unit and a second ranging unit are arranged on the control terminal, the first ranging unit and the second ranging unit are arranged to acquire the distance between the first ranging unit and the device to be controlled, and the device control method comprises the following steps:
acquiring a first spacing distance between the first ranging unit and the equipment to be controlled and a second spacing distance between the second ranging unit and the equipment to be controlled;
acquiring a third spacing distance between the first ranging unit and the second ranging unit;
determining an angle value of a detection angle according to the first spacing distance, the second spacing distance and the third spacing distance, wherein the detection angle is an included angle which is smaller than 90 degrees between a straight line where the first ranging unit and the second ranging unit are located and a straight line where a middle point between the first ranging unit and the second ranging unit and the equipment to be controlled are located;
the equipment to be controlled, of which the corresponding angle value of the detection angle is within a preset range, is used as target equipment to be controlled;
when a plurality of target devices to be controlled exist, acquiring the spatial position relation between each target device to be controlled and the first ranging unit and the second ranging unit;
and sending the received control instruction to the target equipment to be controlled with the spatial position relation as a preset position relation.
2. The device control method according to claim 1, wherein the first ranging unit and the second ranging unit are radio frequency ranging units, and the step of obtaining a first separation distance between the first ranging unit and the device to be controlled and a second separation distance between the second ranging unit and the device to be controlled comprises:
determining the first spacing distance according to the first flight time of the radio frequency signal between the first ranging unit and the device to be controlled;
and determining the second interval distance according to the second flight time of the radio frequency signal between the second ranging unit and the device to be controlled.
3. The method of controlling an apparatus according to claim 1, wherein the step of acquiring the third separation distance between the first ranging unit and the second ranging unit includes:
and acquiring a preset distance as the third spacing distance.
4. The device control method according to claim 1, wherein the step of sending the received control instruction to the target device to be controlled includes:
when a plurality of target devices to be controlled exist, determining an angle difference corresponding to each target device to be controlled, wherein the angle difference is a difference value between an angle value of the detection angle and a preset angle value, and the preset angle value is within the preset range;
and sending the received control instruction to the target equipment to be controlled with the minimum absolute value of the angle difference.
5. The device control method according to claim 1, wherein the step of sending the received control instruction to the target device to be controlled includes:
when a plurality of target devices to be controlled exist, acquiring the vertical distance between each target device to be controlled and a connecting line between the first ranging unit and the second ranging unit;
and sending the received control instruction to the target equipment to be controlled with the minimum vertical distance.
6. The device control method according to claim 1, wherein the step of obtaining the angle value of the detection angle corresponding to each device to be controlled is performed when a preset condition is satisfied, wherein the preset condition includes:
receiving the control instruction; or
Detecting that the control terminal moves.
7. A control terminal, characterized in that the control terminal comprises: a first ranging unit, a second ranging unit, a memory, a processor and a control program stored on the memory and executable on the processor, the control program, when executed by the processor, implementing the steps of the control method of the apparatus of any one of claims 1 to 6.
8. The control terminal according to claim 7, wherein the control terminal is configured as an earphone, the earphone comprises a left sub-earphone and a right sub-earphone, and the first distance measuring unit and the second distance measuring unit are respectively disposed on the left sub-earphone and the right sub-earphone.
9. A computer-readable storage medium, characterized in that a control program is stored thereon, which control program, when being executed by a processor, carries out the steps of a method of controlling an apparatus according to any one of claims 1 to 6.
CN202110311869.8A 2021-03-24 2021-03-24 Device control method, control terminal, and storage medium Active CN113050458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110311869.8A CN113050458B (en) 2021-03-24 2021-03-24 Device control method, control terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110311869.8A CN113050458B (en) 2021-03-24 2021-03-24 Device control method, control terminal, and storage medium

Publications (2)

Publication Number Publication Date
CN113050458A CN113050458A (en) 2021-06-29
CN113050458B true CN113050458B (en) 2022-07-22

Family

ID=76514707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110311869.8A Active CN113050458B (en) 2021-03-24 2021-03-24 Device control method, control terminal, and storage medium

Country Status (1)

Country Link
CN (1) CN113050458B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0895638A (en) * 1994-09-28 1996-04-12 East Japan Railway Co Travel controller for mobile working robot
CN106970641A (en) * 2017-03-28 2017-07-21 哈尔滨工程大学 Control method of the unmanned plane around the flight of object appearance profile
CN107817800A (en) * 2017-11-03 2018-03-20 北京奇虎科技有限公司 The collision processing method of robot and robot, electronic equipment
CN108733417A (en) * 2018-03-21 2018-11-02 北京猎户星空科技有限公司 The work pattern selection method and device of smart machine
CN110456366A (en) * 2019-07-19 2019-11-15 华为技术有限公司 Location detecting apparatus and terminal
CN110636443A (en) * 2018-06-25 2019-12-31 瑞萨电子株式会社 Terminal authentication device, terminal authentication system, and terminal authentication method
CN110769351A (en) * 2019-10-29 2020-02-07 歌尔科技有限公司 Control method of audio device, and storage medium
CN111343058A (en) * 2020-02-07 2020-06-26 北京小米移动软件有限公司 Device control method, device, control device and storage medium
CN111405508A (en) * 2020-02-19 2020-07-10 华为技术有限公司 Wearable device positioning method and wearable device
CN112543446A (en) * 2020-12-02 2021-03-23 歌尔科技有限公司 Interaction method based on near field communication, wearable device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6135120B2 (en) * 2012-12-19 2017-05-31 富士通株式会社 Distance measuring device, distance measuring method and program
CN104251539B (en) * 2014-09-12 2017-02-15 广东美的制冷设备有限公司 Air conditioner and control method and control device thereof
CN111031419B (en) * 2019-12-20 2021-06-01 歌尔股份有限公司 Sound box control method, sound box and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0895638A (en) * 1994-09-28 1996-04-12 East Japan Railway Co Travel controller for mobile working robot
CN106970641A (en) * 2017-03-28 2017-07-21 哈尔滨工程大学 Control method of the unmanned plane around the flight of object appearance profile
CN107817800A (en) * 2017-11-03 2018-03-20 北京奇虎科技有限公司 The collision processing method of robot and robot, electronic equipment
CN108733417A (en) * 2018-03-21 2018-11-02 北京猎户星空科技有限公司 The work pattern selection method and device of smart machine
CN110636443A (en) * 2018-06-25 2019-12-31 瑞萨电子株式会社 Terminal authentication device, terminal authentication system, and terminal authentication method
CN110456366A (en) * 2019-07-19 2019-11-15 华为技术有限公司 Location detecting apparatus and terminal
CN110769351A (en) * 2019-10-29 2020-02-07 歌尔科技有限公司 Control method of audio device, and storage medium
CN111343058A (en) * 2020-02-07 2020-06-26 北京小米移动软件有限公司 Device control method, device, control device and storage medium
CN111405508A (en) * 2020-02-19 2020-07-10 华为技术有限公司 Wearable device positioning method and wearable device
CN112543446A (en) * 2020-12-02 2021-03-23 歌尔科技有限公司 Interaction method based on near field communication, wearable device and storage medium

Also Published As

Publication number Publication date
CN113050458A (en) 2021-06-29

Similar Documents

Publication Publication Date Title
US11106245B2 (en) Electronic apparatus for controlling size of display and control method thereof
CN107906695B (en) Air conditioner air supply control method, air conditioner and readable storage medium
US11368328B2 (en) Method for controlling terminal apparatus that remotely controls air conditioner, non-transitory recording medium storing program executed by terminal apparatus, recommend method executed by terminal apparatus, and terminal apparatus
CN111083684B (en) Method for controlling electronic equipment and electronic equipment
JP5282079B2 (en) Multi-display system, terminal, method and program
EP3131235A1 (en) Method and apparatus for controlling device
US9810444B2 (en) Method for controlling terminal apparatus that remotely controls air conditioner, non-transitory recording medium storing program executed by terminal apparatus, recommend method executed by terminal apparatus, and terminal apparatus
CN113203193B (en) Air conditioning equipment grouping method, device, equipment and storage medium
WO2018177207A1 (en) Operation control method, apparatus and storage medium
CN109472806A (en) Navigating area planing method, device and the remote controler of unmanned vehicle
CN109996050A (en) Project the control method and control device of robot
JP6175105B2 (en) Electronic device, control method, and control program
CN113050458B (en) Device control method, control terminal, and storage medium
JP2016019086A (en) Beam direction setting device and beam direction setting system
WO2018211927A1 (en) Control apparatus, control program, learning data creation method, and learning method
KR20220030260A (en) Dynamic Beamforming to Improve Signal-to-Noise Ratio of Signals Captured Using Head-Wearable Devices
CN108664929B (en) Fingerprint acquisition method and terminal
KR20170007223A (en) Portable device and docking station providing extended voice recognition service
CN113286220B (en) Wearing state detection method, wearable device and computer readable storage medium
KR101714881B1 (en) Portable device and docking station providing extended voice recognition service
KR102480327B1 (en) Electronic device using a bluetooth communication and method of operating the same
KR20200065930A (en) Electronic device and Method of controlling thereof
WO2023065799A1 (en) Human-computer interaction control method and device and storage medium
US11899896B2 (en) Flexible screen terminal and display method therefor, and computer-readable storage medium
US20230123882A1 (en) Causing a lighting device to visually indicate whether it can be commissioned using a particular wireless technology

Legal Events

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