CN110491117B - Remote control method, apparatus, device and medium - Google Patents

Remote control method, apparatus, device and medium Download PDF

Info

Publication number
CN110491117B
CN110491117B CN201910796260.7A CN201910796260A CN110491117B CN 110491117 B CN110491117 B CN 110491117B CN 201910796260 A CN201910796260 A CN 201910796260A CN 110491117 B CN110491117 B CN 110491117B
Authority
CN
China
Prior art keywords
remote control
control device
spatial
space
information
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
CN201910796260.7A
Other languages
Chinese (zh)
Other versions
CN110491117A (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.)
Xian Wingtech Electronic Technology Co Ltd
Original Assignee
Xian Wingtech Electronic Technology 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 Xian Wingtech Electronic Technology Co Ltd filed Critical Xian Wingtech Electronic Technology Co Ltd
Priority to CN201910796260.7A priority Critical patent/CN110491117B/en
Publication of CN110491117A publication Critical patent/CN110491117A/en
Application granted granted Critical
Publication of CN110491117B publication Critical patent/CN110491117B/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
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared

Abstract

The embodiment of the invention discloses a remote control method, a remote control device, remote control equipment and a remote control medium. Wherein the method comprises the following steps: determining spatial deflection information of the remote control device; respectively matching the spatial deflection information of the remote control device with the spatial deflection information which is predetermined and associated with each controlled device, and determining a target controlled device pointed by the remote control device; and switching the infrared control code of the remote control device to the infrared control code of the target controlled equipment so as to control the target controlled equipment. According to the embodiment of the invention, the space deflection information of the remote control device is matched with the space deflection information associated with the preset controlled equipment to control the target controlled equipment, so that the remote control device can realize free switching control of a plurality of target controlled equipment only according to the self space deflection information, the complicated process of manually switching control modes by a user is avoided, and the intelligence level of the remote control device is improved.

Description

Remote control method, apparatus, device and medium
Technical Field
The embodiment of the invention relates to the technical field of intelligent control, in particular to a remote control method, a remote control device, remote control equipment and a remote control medium.
Background
With the development of infrared remote control products, various remote control supporting terminal devices are increasingly appearing in daily work and life of people.
Generally, one device corresponds to one or more remote controllers, and a user also needs to continuously change the remote controllers according to requirements during use to realize different remote control on different devices. At present, most of the existing intelligent remote controllers are carried on a mobile phone, and in the actual use process, a user needs to manually select brands and equipment to realize remote control of different equipment.
However, the smart remote controller on the mobile phone needs to perform manual matching operation according to different devices, so that the operation is complicated, the matching speed is slow, and the effect that the user can use the smart remote controller by lifting his hands is not achieved.
Disclosure of Invention
The invention provides a remote control method, a remote control device, equipment and a medium, which are used for realizing the free switching control of a remote control device among a plurality of different controlled equipment, avoiding the complicated process of manually switching control modes by a user and improving the intelligent level of the remote control device.
In a first aspect, an embodiment of the present invention provides a remote control method, where the method includes:
determining spatial deflection information of the remote control device;
respectively matching the spatial deflection information of the remote control device with the spatial deflection information which is predetermined and associated with each controlled device, and determining a target controlled device pointed by the remote control device;
and switching the infrared control code of the remote control device to the infrared control code of the target controlled equipment so as to control the target controlled equipment.
In a second aspect, an embodiment of the present invention further provides a remote control device, where the device includes:
the spatial deflection information determining module is used for determining the spatial deflection information of the remote control device;
the target controlled equipment determining module is used for respectively matching the spatial deflection information of the remote control device with the spatial deflection information which is predetermined and associated with each controlled equipment to determine the target controlled equipment pointed by the remote control device;
and the target controlled equipment control module is used for switching the infrared control code of the remote control device to the infrared control code of the target controlled equipment so as to control the target controlled equipment.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a remote control method as in any of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the remote control method according to any one of the embodiments of the present invention.
The embodiment of the invention determines the target controlled equipment pointed by the remote control device by determining the space deflection information of the remote control device and respectively matching the space deflection information of the remote control device with the space deflection information which is predetermined and associated with each controlled equipment, and further switches the infrared control code of the remote control device to the infrared control code of the target controlled equipment to realize the control of the target controlled equipment. According to the embodiment of the invention, the space deflection information of the remote control device is matched with the space deflection information which is predetermined and associated with the controlled equipment, so that the target controlled equipment is controlled, the remote control device can realize free switching control of a plurality of target controlled equipment only according to the self space deflection information, the complicated process of manually switching control modes by a user is avoided, and the intelligence level of the remote control device is improved.
Drawings
Fig. 1 is a flowchart of a remote control method according to an embodiment of the present invention;
fig. 2 is a flowchart of a remote control method according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a spatial coordinate system according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of reference position information provided in the second embodiment of the present invention;
FIG. 5 is a schematic view illustrating a calibration of a heading angle of a remote control device according to a second embodiment of the present invention;
fig. 6 is a schematic view of pitch angle calibration of a remote control device according to a second embodiment of the present invention;
fig. 7 is a flowchart of a remote control method according to a third embodiment of the present invention;
fig. 8 is a structural diagram of a remote control device according to a fourth embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a remote control method according to an embodiment of the present invention. The embodiment of the invention is suitable for the situation that the controlled equipment is controlled by the remote control device, and the method can be executed by the remote control device. The device can be realized by software and/or hardware, and is preferably a remote controller or a mobile phone. As shown in fig. 1, the remote control method provided in this embodiment may specifically include the following steps:
step 110, determining spatial deflection information of the remote control device.
The spatial deflection information of the remote control device is obtained by comparing the current spatial position information and the current spatial angle information of the remote control device with the spatial position information and the spatial angle information of the reference position information respectively. In which a reference position may be set in advance for the remote control device, and spatial position information of the remote control device at the reference position is determined, thereby determining spatial deflection information of the remote control device based on the reference position. The reference position information in the remote control device is the spatial position information and the spatial angle information of the remote control at the reference position, and the specific calculation process will be explained in detail in the following embodiments.
Further, the spatial position information and the spatial angle information may be obtained by providing a wireless positioning device in the device space. The wireless positioning device is used for transmitting a wireless positioning signal in real time or at regular time, the wireless positioning device can be an ultrasonic positioning device, an infrared positioning device and the like, and the wireless positioning signal at least comprises wireless positioning information such as position information of the wireless positioning device, identification information of the wireless positioning device, signal intensity and the like, so that the remote control device can perform space positioning based on the wireless positioning information, and space deflection information of the remote control device can be obtained.
The wireless positioning device comprises a positioning device carrying a wireless communication module, and can transmit and receive wireless signals in a wireless communication mode. Accordingly, a wireless communication module may be mounted on the main controller of the remote control device. Based on the wireless communication modules in the wireless positioning device and the remote control device, the functions of realizing the communication between the wireless positioning device and the remote control device, the intercommunication between the wireless positioning modules, the synchronization of the timer in the wireless positioning device and the like are realized.
For example, if the wireless positioning device is an ultrasonic positioning device, an ultrasonic receiver is mounted on the remote control device for receiving an ultrasonic signal transmitted by the ultrasonic positioning device. The three ultrasonic positioning devices can be installed in a space containing controlled equipment, the installation positions of the three ultrasonic positioning devices are not on the same straight line, and the distance between the ultrasonic positioning devices is determined through initial correction of the three ultrasonic positioning devices.
Specifically, after the ultrasonic positioning device is installed, the remote control device sends a correction prompt message to the user to prompt the user to correct the ultrasonic positioning device. Taking the calibration process of two ultrasonic positioning devices as an example, after the intelligent remote controller detects the calibration operation of a user, the intelligent remote controller sends calibration information to the first ultrasonic positioning device, the ultrasonic positioning device transmits ultrasonic waves after receiving the calibration command, meanwhile, the second ultrasonic positioning device starts the timer to receive the ultrasonic waves when receiving the calibration command, after the second ultrasonic positioning device receives the ultrasonic information transmitted by the first ultrasonic positioning device, the timer is stopped, the distance between the two ultrasonic positioning devices can be obtained by calculating the time value recorded by the timer and the propagation speed of the ultrasonic waves, and the obtained distance value is transmitted back to the remote control device through the wireless communication module. By analogy, the distance value between any two ultrasonic positioning devices can be calculated. The first ultrasonic positioning device and the second ultrasonic positioning device are only used for distinguishing and describing the ultrasonic positioning devices and do not contain any sequence information.
Further, after the distance between the ultrasonic positioning devices is determined, a space coordinate system can be established by taking one of the ultrasonic positioning devices as an origin, and the distance between the remote control device and each ultrasonic positioning device can be determined through the transmission and the reception of ultrasonic signals, so that the position information of the intelligent remote control device in the space coordinate system can be further determined.
After the space coordinate system is established, the space position information of the remote control device can be determined in real time through the distance between the remote control device and the ultrasonic positioning device, and the space angle information of the remote control device can also be obtained in real time through the angle sensor. And in the process that the remote control device moves under the coordinate system, the deflection information of the remote control device can be determined in real time by calculating through integrating the space position information and the space angle information which are acquired in real time and the reference position information.
And 120, respectively matching the spatial deflection information of the remote control device with the spatial deflection information which is predetermined and associated with each controlled device, and determining a target controlled device pointed by the remote control device.
In this embodiment, by comparing the spatial position information and the spatial angle information when the remote control device points at each controlled device with the reference position information, the spatial deflection information associated with each controlled device can be determined, that is, the remote controllable range of each controlled device can be determined.
The method comprises the steps of determining space deflection information of the remote control device in real time in the moving process of the remote control device, matching the space deflection information with the space deflection information which is predetermined and associated with each controlled device, and determining a target controlled device pointed by the remote control device according to the association relation between the controlled device and the space deflection information if the space deflection information of the current remote control device is the same as the predetermined space deflection information of the controlled device, namely the current remote control device is detected to be positioned in the remote control range of a certain controlled device.
And step 130, switching the infrared control code of the remote control device to the infrared control code of the target controlled equipment so as to control the target controlled equipment.
The infrared control code is used for carrying out corresponding remote control operation on the controlled equipment.
In this embodiment, different controlled devices correspond to different infrared control codes, and after the target controlled device is determined, the infrared control code of the remote control device is automatically switched to the infrared control code of the controlled target device, so that the target controlled device is controlled by the infrared control code of the target controlled device.
According to the technical scheme of the embodiment, the target controlled device pointed by the remote control device is determined by determining the spatial deflection information of the remote control device and respectively matching the spatial deflection information of the remote control device with the spatial deflection information which is predetermined and associated with each controlled device, and then the infrared control code of the remote control device is switched to the infrared control code of the target controlled device, so that the control of the target controlled device is realized. According to the embodiment of the invention, the space deflection information of the remote control device is matched with the space deflection information associated with the preset controlled equipment to control the target controlled equipment, so that the remote control device can freely switch and control a plurality of target controlled equipment only according to the self space deflection information, the complicated process of manually switching control modes by a user is avoided, and the intelligence level of the remote control device is improved.
Example two
Fig. 2 is a flowchart of a remote control method according to a second embodiment of the present invention. The present embodiment is based on the above embodiment, and before step 110, further includes: establishing a space coordinate system according to space position information of a wireless positioning device fixedly configured in space; determining reference position information of the remote control device based on the space coordinate system; according to the space coordinate system, respectively calibrating the space position information of each controlled device; and acquiring the infrared control codes corresponding to the controlled devices, and establishing and storing the association relation between each controlled device and the corresponding infrared control code. As shown in fig. 2, the method may specifically include the following steps:
step 210, establishing a spatial coordinate system according to spatial position information of the wireless positioning device fixedly configured in the space.
In this embodiment, the wireless positioning devices are respectively installed at different positions in the space, and it is ensured that the installation positions of the wireless positioning devices are not on the same straight line. Through the wireless communication module mounted in the wireless positioning device, wireless signals can be transmitted and received between the wireless positioning devices, and therefore distance information between the wireless positioning devices can be obtained. The above embodiment describes the process of establishing a spatial coordinate system by three ultrasonic positioning devices, and more particularly, referring to fig. 3, it is exemplary that three ultrasonic positioning devices L, R and F can be installed on three walls of the left, right and front of the room, respectively. The three ultrasonic positioning devices are respectively corrected through the remote control device K, specifically, the remote control device K sends a correction command to the L and the R through the wireless communication module, the L sends ultrasonic waves after receiving the correction command, the R is informed to start a periodical device to prepare for receiving the ultrasonic waves after receiving the correction command, the R stops the timer after receiving the ultrasonic waves, the distance c between the L and the R is calculated through the time value and the sound speed recorded by the timer, and the distance c is sent to the remote control device K through the wireless communication module. And in the same way, the remote control device K sequentially sends correction commands to L and F and R and F, the distance b between L and F and the distance a between R and F can be further obtained, and the obtained distances b and a are sent to the remote control device K through the wireless communication module.
Further, the information of the included angle between the ultrasonic positioning device L, R and F can be calculated by the cosine law according to the distance between the ultrasonic positioning device L, R and F. The specific calculation formula is as follows:
cosA=(c2+b2-a2)/(2bc),sinA=sqrt(1-cos2A);
cosB=(a2+c2-b2)/(2ac),sinB=sqrt(1-cos2B);
cosC=(a2+b2-c2)/(2ab),sinC=sqrt(1-cos2C)。
where A, B, C are the corners where sides a, b, c, respectively, oppose.
Through the above calculation, three-side information and angle information of a triangle ABC composed of three ultrasonic positioning apparatuses are determined. Optionally, a space coordinate system is established, where F is an origin, the side a is an x axis, and a direction perpendicular to the side a is a y axis, and under the space coordinate system, the coordinate of R may be obtained as (a, 0). Making an auxiliary line perpendicular to the x axis for L, and determining the coordinate of L according to the calculated angle information and the distance information between the ultrasonic positioning devices, wherein the specific calculation formula is as follows:
the coordinates of L are (a-ccosB, csinB) from Lx ═ a-ccosB and Ly ═ csinB.
Further, the remote control device K, which serves as a receiving end of the ultrasonic signal, may calculate spatial coordinates of the remote control device K in the spatial coordinate system based on the distances L1, L2, and L3 from the remote control devices K to F, R and L, and the height difference h between the plane formed by the ultrasonic positioning device and the remote control device K. The specific calculation formula is as follows:
h2+x2+y2=L12
h2+(x-a)2+y2=L22
h2+(x-Lx)2+(y-Ly)2=L32
the above three equations can be solved:
x=(L12-L22+a2)/2a,y=(L12-L32+Ly2+Lx2-2xLx)/(2Ly),
the value of h can be obtained by substituting the obtained x and y values into any formula containing h, and the value of h is the coordinate value of the remote control device K on the z axis, namely the space coordinate (x, y, z) of the remote control device K can be obtained.
Step 220, determining reference position information of the remote control device based on the space coordinate system.
In this embodiment, the reference position is a position where the remote control device is calibrated before use, and the reference position information is spatial coordinate information and spatial angle information of the remote control device at the reference position.
Specifically, the determining reference position information of the remote control device based on the spatial coordinate system includes: determining a reference direction in a space coordinate system; determining spatial coordinates and spatial angles of the remote control device when facing a reference direction; and determining reference position information of the remote control device according to the space coordinates and the space angle.
Before the remote control device is used, the remote control device prompts a user to perform geomagnetic correction at a reference position, firstly, the geomagnetic orientation of the remote control device is calibrated, for example, referring to fig. 4, assuming that the direction opposite to the F direction is taken as the reference position, the geomagnetic angle alpha of the remote control device K opposite to the F direction can be measured by arranging a magnetometer inside the remote control device K, wherein the geomagnetic angle refers to an included angle between the geomagnetic north at any position on the earth and the geographic north. Furthermore, the coordinates (x, y, z) of the remote control device K at the reference position and the angle δ between the reference position of the remote control device K and the x-axis are known as arctan (y/x) through the spatial coordinate system established by the ultrasonic positioning module.
And step 230, calibrating the spatial position information of each controlled device according to the spatial coordinate system.
The spatial position information of the controlled device comprises coordinate information of the controlled device in a spatial coordinate system and a spatial deflection angle associated with each controlled device.
Further referring to fig. 4, it is assumed that three controlled devices, i.e., device 1, device 2, and device 3, are included in the current coordinate system space. Optionally, the remote control device K is respectively placed on the device 1, the device 2, and the device 3, and coordinates of each controlled device in the spatial coordinate system are calibrated by calculating coordinate information of the remote control device K at each device.
Furthermore, after the coordinates of each controlled device are calibrated, the spatial deflection information corresponding to the remote control device K pointing to the controlled device is calibrated, and the spatial deflection information includes the angle rotated by the remote control device K when pointing to the target controlled device compared with the reference position.
For example, referring to fig. 5, it is assumed that the geomagnetic angle of the remote control K pointing to the apparatus 1 is yaw degrees, which can be measured by a magnetometer provided inside the remote control K, when the remote control K is pointing to the apparatus 1. Assuming that the two-dimensional coordinates of the device 1 are (o, p), when the remote control K points at the device 1, the angle β between the remote control K and the device 1 is arctan (y-p)/(x-o). At this time, the spatial deflection information of the remote control device K corresponding to the apparatus 1 is (δ - β) - (α -yaw). By analogy, the corresponding spatial deflection angle when the remote control device K points to other controlled devices can be further determined.
The geomagnetic angle deflection information represents deflection information of the remote control device K in the horizontal direction, that is, heading angle deflection information of the remote control device K, and can be obtained by a magnetometer or an electronic compass sensor. Furthermore, other angle information such as a pitch angle and a roll angle of the remote control device K during moving can be obtained through an acceleration sensor and an angular velocity sensor.
Wherein, go downElevation angle represents the deflection information of the remote control K in the vertical direction, which can be measured by an acceleration sensor. Referring specifically to fig. 6, for example, when the remote control device K points at the apparatus 1, assuming that the three-dimensional coordinates of the apparatus 1 are (o, p, z1) and the three-dimensional coordinates of the remote control device K are (x, y, z), the angle Q to be raised when the remote control device K points at the apparatus 1 can be represented by the formula
Figure BDA0002181043410000111
And (4) calculating. By analogy, the pitch angle deflection information corresponding to the remote control device K pointing to other controlled devices can be further determined.
From the above calculations it is possible to determine the angle at which the remote control K is to be steered in different directions, pointing towards the respective controlled device.
And 240, acquiring the infrared control codes corresponding to the controlled devices, and establishing and storing the association relationship between each controlled device and the corresponding infrared control code.
In this embodiment, the infrared control codes of the controlled devices are learned through the infrared receiver installed on the remote control device, and specifically, the infrared control codes of the controlled devices may be obtained in the manners of infrared code matching, scanning bar codes of the controlled devices, or manual input, and the like, the learned infrared control codes are stored in a flash memory of the remote control device main controller in a digital manner, and the association relationship between the infrared control codes corresponding to the controlled devices is further established and stored.
Step 250, determining spatial deflection information of the remote control device.
And step 260, respectively matching the spatial deflection information of the remote control device with the spatial deflection information which is predetermined and associated with each controlled device, and determining a target controlled device pointed by the remote control device.
And 270, switching the infrared control code of the remote control device to the infrared control code of the target controlled equipment to control the target controlled equipment.
According to the technical scheme of the embodiment, a space coordinate system is established according to space position information of the wireless positioning device fixedly configured in space, so that reference position information of the remote control device is determined, space position information calibration is respectively performed on each controlled device according to the established space coordinate system, and the association relationship between each controlled device and the corresponding infrared control code is established and stored, so that after the remote control device determines the target controlled device, the remote control device can automatically switch to the infrared control code of the target device according to the association relationship between the target controlled device and the infrared control code, so that switching control of different controlled devices is realized, manual operation is not needed, and the intelligence level of the remote control device is improved.
EXAMPLE III
Fig. 7 is a flowchart of a remote control method according to a third embodiment of the present invention. The present embodiment is based on the above embodiments, and further refines the step 110 into the step 310 and 320, and further refines the step 130 into the steps 340 and 350. As shown in fig. 7, the method may specifically include the following steps:
and step 310, acquiring the current space coordinate and the current space angle of the remote control device.
In this embodiment, in the spatial coordinates determined by the wireless positioning module, the wireless positioning module and the remote control device can transmit and receive wireless signals in real time, so that the distance information between the remote control device and the wireless positioning module can be updated in real time. According to the distance information updated in real time, the real-time space coordinate of the remote control device in the space coordinate system can be calculated. Specifically, the attitude angle information of the remote control device includes attitude angle information such as a pitch angle, a roll angle, a heading angle and the like of the remote control device in the moving process, and can be obtained by real-time calculation according to sensors such as an acceleration sensor, an angular velocity sensor, an electronic compass sensor and the like.
And step 320, comparing the current space coordinate and the current space angle of the remote control device with the reference position information to determine the space deflection information of the remote control device.
In this embodiment, the spatial coordinates and spatial angles of the remote control device may determine pointing information of the remote control device. The reference position of the remote control device represents spatial coordinates and angular information of the remote control device when pointing to the reference position, and spatial deflection information of the remote control device during movement can be determined by comparing the spatial coordinates and spatial angle of the remote control device during movement with the spatial coordinates and spatial angle of the remote control device at the reference position.
For example, if it is detected that the coordinates of the current remote control device are (x1, y1, z1), the pitch angle is a1, the coordinates of the remote control device at the reference position are (x0, y0, z0), and the pitch angle is a2, the spatial yaw information of the remote control device at the current position with respect to the reference position information can be determined from the difference between the coordinates (x1, y1, z1) and the coordinates (x0, y0, z0), and the angular difference between a1 and a 2.
And step 330, respectively matching the spatial deflection information of the remote control device with the spatial deflection information which is predetermined and associated with each controlled device, and determining a target controlled device pointed by the remote control device.
In this embodiment, if the coordinates and the angle in the determined spatial deflection information are within the predetermined coordinate range and angle range, the target controlled device pointed by the remote control apparatus is determined according to the matching information.
And 340, determining a target infrared control code associated with the target controlled device according to the target controlled device and the stored association relationship between each controlled device and the corresponding infrared control code.
In this embodiment, the infrared control code is used to perform remote control operation on the controlled device, and may be transmitted to the controlled device by the remote control device to control the controlled device to respond to the corresponding remote control operation.
And when the target controlled equipment pointed by the remote control device at present is determined, determining the target infrared control code associated with the target controlled equipment according to the target controlled equipment and the stored association relationship between each controlled equipment and the corresponding infrared control code.
And 350, switching the infrared control code of the remote control device to the target infrared control code according to the infrared control code associated with the target controlled equipment so as to control the target controlled equipment.
In this embodiment, the target device is controlled by the infrared control code associated with the target controlled device.
Furthermore, after the target equipment pointed by the remote control device is determined, the remote control device is automatically switched to the UI interface of the target controlled equipment, the numbers of the infrared control codes are converted into carrier waves and codes by clicking the UI interface, and the carrier waves and the codes are sent out through the infrared transmitting tube, so that the remote control function of the target controlled equipment is realized. The remote control device in the embodiment has an infrared learning function, a payment code library is not needed, and the use cost can be reduced.
The technical solution of this embodiment is to determine the spatial position information of the remote control device in the spatial coordinate system according to the received wireless positioning information of at least one wireless positioning device, further determining the spatial angle information of the remote control device in a spatial coordinate system according to the spatial position information of the remote control device and the spatial position information of the controlled equipment, determining the spatial deflection information of the remote control device relative to the reference position information according to the spatial position information and the spatial angle information of the remote control device, then matching the spatial deflection information of the remote control with the spatial deflection information associated with the predetermined controlled device, determining a target controlled device at which the remote control is pointed, after determining the target controlled device, and switching the infrared control codes of the remote control device, and controlling the remote control device according to the infrared control codes associated with the target equipment. The remote control device provided by the embodiment of the invention can realize free switching control of a plurality of target controlled devices only according to the self space deflection information, thereby improving the intelligent level of the remote control device.
Example four
Fig. 8 is a structural diagram of a remote control device according to a third embodiment of the present invention. Referring to fig. 8, the remote control method provided in any embodiment of the present invention may be executed, where a remote control apparatus provided in an embodiment of the present invention includes: the spatial deflection information determination module 410, the target controlled device determination module 420 and the target device control module 430.
The spatial deflection information determining module 410 determines spatial deflection information of the remote control device.
And the target controlled device determining module 420 is configured to match the spatial deflection information of the remote control with the spatial deflection information predetermined and associated with each controlled device, respectively, and determine a target controlled device pointed by the remote control. The target device control module 430 switches the infrared control code of the remote control apparatus to the infrared control code of the target controlled device to control the target controlled device.
The remote control device provided by the embodiment of the invention can execute the remote control method provided by any embodiment of the invention, has corresponding functional modules and beneficial effects of the execution method, and is not described again here.
On the basis of the above embodiment, the remote control device further includes: a spatial coordinate system establishing module 440, a reference position information determining module 450, a spatial position information calibrating module 460 and an association relationship establishing module 470.
The spatial coordinate system establishing module 440 is configured to establish a spatial coordinate system according to spatial location information of the wireless positioning apparatus fixedly configured in space;
a reference position information determining module 450 for determining reference position information of the remote control device based on the spatial coordinate system;
the spatial position information calibration module 460 is configured to calibrate spatial position information of each controlled device according to a spatial coordinate system and according to the spatial coordinate system;
the association relationship establishing module 470 is configured to acquire the infrared control codes corresponding to the respective controlled devices, and establish and store an association relationship between each controlled device and the corresponding infrared control code. .
On the basis of the foregoing embodiment, the reference position information determining module 450 is specifically configured to: determining a reference direction in a space coordinate system; determining spatial coordinates and spatial angles of the remote control device when facing a reference direction; and determining reference position information of the remote control device according to the space coordinates and the space angle.
On the basis of the foregoing embodiment, the spatial deflection information determining 410 module is specifically configured to: acquiring a current space coordinate and a current space angle of the remote control device; and comparing the current space coordinate and the current space angle of the remote control device with the reference position information to determine the space deflection information of the remote control device.
On the basis of the foregoing embodiment, the target device control module 430 is specifically configured to determine a target infrared control code associated with the target controlled device according to the target controlled device and stored association relationships between each controlled device and the corresponding infrared control code; and switching the infrared control code of the remote control device to the target infrared control code according to the infrared control code associated with the target controlled equipment so as to control the target controlled equipment.
The remote control device provided in the foregoing embodiments can execute the remote control method provided in the foregoing embodiments, and has functional modules and beneficial effects corresponding to the execution method, which are not described herein again.
EXAMPLE five
Fig. 9 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present invention. Fig. 9 illustrates a block diagram of an exemplary device 912 suitable for use in implementing embodiments of the present invention. The device 912 shown in fig. 9 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 9, device 912 may take the form of a general purpose computing device. Components of device 912 may include, but are not limited to: one or more processors 916 or processing units, a system memory device 928, and a bus 918 that couples various system components including the system memory device 928 and the processors 916.
Bus 918 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 912 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 912 and includes both volatile and nonvolatile media, removable and non-removable media.
The storage 928 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)930 and/or cache memory 932. Device 912 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 934 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, and typically referred to as a "hard disk drive"). Although not shown in FIG. 9, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 918 through one or more data media interfaces. Storage 928 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 940 having a set (at least one) of program modules 942, which may include but is not limited to an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment, may be stored in, for example, the storage device 928. The program modules 942 generally perform the functions and/or methodologies of the described embodiments of the invention.
Device 912 may also communicate with one or more external devices 914 (e.g., keyboard, pointing device), display 924, etc., and may also communicate with one or more devices that enable a user to interact with device 912, and/or any devices (e.g., network card, modem, etc.) that enable device 912 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 922. Also, device 912 can communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) through network adapter 920. As shown, the network adapter 920 communicates with the other modules of the device 912 via the bus 918. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with device 912, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 916 executes various functional applications and data processing, such as implementing a remote control method provided by an embodiment of the present invention, by executing a program stored in the system memory 928.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a remote control method applied to a remote control apparatus, the method including:
determining spatial deflection information of the remote control device;
respectively matching the spatial deflection information of the remote control device with the spatial deflection information which is predetermined and associated with each controlled device, and determining a target controlled device pointed by the remote control device;
and switching the infrared control code of the remote control device to the infrared control code of the target controlled equipment so as to control the target controlled equipment.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the remote control method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a terminal, or a network device) to execute the methods of the embodiments of the present invention.
It should be noted that, in the above embodiment of the remote control device, the units and modules included in the embodiment are merely divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A remote control method, applied to a remote control apparatus, the method comprising:
determining spatial deflection information of the remote control device;
before determining the spatial deflection information of the remote control device, the method further comprises the following steps:
establishing a space coordinate system according to space position information of a wireless positioning device fixedly configured in space;
determining reference position information of the remote control device based on the spatial coordinate system; specifically, the space coordinates of the remote control device in a space coordinate system are determined by the distance between three positioning devices and the distance from the three positioning devices to the remote control device, and the space coordinates are used as reference position information of the remote control device; before the remote control device is used, the remote control device prompts a user to carry out geomagnetic correction at a reference position, and carries out geomagnetic orientation calibration of the orientation of the remote control device;
according to the space coordinate system, respectively calibrating space position information of each controlled device;
acquiring infrared control codes corresponding to the controlled devices, and establishing and storing association relations between the controlled devices and the corresponding infrared control codes;
respectively matching the spatial deflection information of the remote control device with the spatial deflection information which is predetermined and associated with each controlled device, and determining a target controlled device pointed by the remote control device;
and switching the infrared control code of the remote control device to the infrared control code of the target controlled equipment so as to control the target controlled equipment.
2. The method of claim 1, wherein determining reference position information for the remote control device based on the spatial coordinate system comprises:
determining a reference direction in a space coordinate system;
determining spatial coordinates and spatial angles of the remote control device when facing the reference direction;
and determining the reference position information of the remote control device according to the space coordinates and the space angle.
3. The method of claim 1, wherein determining spatial deflection information for the remote control device comprises:
acquiring a current space coordinate and a current space angle of the remote control device;
and comparing the current space coordinate and the current space angle of the remote control device with the reference position information to determine the space deflection information of the remote control device.
4. The method of claim 1, wherein switching the infrared control code of the remote control device to the infrared control code of the target controlled device to control the target controlled device comprises:
determining target infrared control codes associated with the target controlled equipment according to the target controlled equipment and the stored association relationship between each controlled equipment and the corresponding infrared control codes;
and switching the infrared control code of the remote control device to the target infrared control code according to the infrared control code associated with the target controlled equipment so as to control the target controlled equipment.
5. A remote control apparatus, characterized in that the apparatus comprises:
the spatial deflection information determining module is used for determining the spatial deflection information of the remote control device;
the space coordinate system establishing module is used for establishing a space coordinate system according to the space position information of the wireless positioning device fixedly configured in the space;
a reference position information determination module for determining reference position information of the remote control device based on the spatial coordinate system; specifically, the space coordinates of the remote control device in a space coordinate system are determined by the distance between three positioning devices and the distance from the three positioning devices to the remote control device, and the space coordinates are used as reference position information of the remote control device; before the remote control device is used, the remote control device prompts a user to carry out geomagnetic correction at a reference position, and carries out geomagnetic orientation calibration of the orientation of the remote control device;
the spatial position information calibration module is used for respectively calibrating spatial position information of each controlled device according to the spatial coordinate system;
the incidence relation establishing module is used for acquiring the infrared control codes corresponding to the controlled devices, and establishing and storing the incidence relation between each controlled device and the corresponding infrared control code;
the target controlled equipment determining module is used for respectively matching the spatial deflection information of the remote control device with the spatial deflection information which is predetermined and associated with each controlled equipment to determine the target controlled equipment pointed by the remote control device;
and the target controlled equipment control module is used for switching the infrared control code of the remote control device to the infrared control code of the target controlled equipment so as to control the target controlled equipment.
6. The apparatus of claim 5, wherein the spatial deflection information determination module is specifically configured to:
acquiring a current space coordinate and a current space angle of the remote control device;
and comparing the current space coordinate and the current space angle of the remote control device with the reference position information to determine the space deflection information of the remote control device.
7. An apparatus, characterized in that the apparatus comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the remote control method of any of claims 1-4.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the remote control method according to any one of claims 1 to 4.
CN201910796260.7A 2019-08-27 2019-08-27 Remote control method, apparatus, device and medium Active CN110491117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910796260.7A CN110491117B (en) 2019-08-27 2019-08-27 Remote control method, apparatus, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910796260.7A CN110491117B (en) 2019-08-27 2019-08-27 Remote control method, apparatus, device and medium

Publications (2)

Publication Number Publication Date
CN110491117A CN110491117A (en) 2019-11-22
CN110491117B true CN110491117B (en) 2021-08-06

Family

ID=68554403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910796260.7A Active CN110491117B (en) 2019-08-27 2019-08-27 Remote control method, apparatus, device and medium

Country Status (1)

Country Link
CN (1) CN110491117B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114743368B (en) * 2022-04-01 2023-03-21 深圳市多亲科技有限公司 Universal remote control device automatically configured through spatial orientation sensing and operation method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101511041A (en) * 2008-02-12 2009-08-19 冲电气工业株式会社 Remote controller position detection apparatus, remote controller position detection system and method
CN106369753A (en) * 2016-09-12 2017-02-01 珠海格力电器股份有限公司 Air-conditioner and control method and device thereof
CN108762509A (en) * 2018-06-06 2018-11-06 上海瀚创机器人技术有限公司 A kind of method and operating system of operation remotely-controlled object

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004166193A (en) * 2002-09-27 2004-06-10 Matsushita Electric Ind Co Ltd Remote control device
JP4107288B2 (en) * 2004-12-10 2008-06-25 セイコーエプソン株式会社 Control system, controlled apparatus and remote control apparatus compatible with this system
EP2298035A1 (en) * 2008-06-11 2011-03-23 Koninklijke Philips Electronics N.V. A wireless, remotely controlled, device selection system and method
CN201499231U (en) * 2009-06-04 2010-06-02 北京思比科微电子技术有限公司 Infrared positioning television remote control device
CN103713746B (en) * 2013-12-18 2017-01-04 深圳市宇恒互动科技开发有限公司 The input method of three-dimensional inertia remote control unit and three-dimensional inertia remote control unit
CN103942947B (en) * 2014-04-11 2017-03-08 苏州佳世达电通有限公司 A kind of control method of remote control and remote control
CN104658230A (en) * 2015-03-14 2015-05-27 长春富维—江森自控汽车饰件系统有限公司 Intelligent portable device remote control system of automobile seat
KR102465643B1 (en) * 2015-09-30 2022-11-09 엘지전자 주식회사 Remote controller capable of remotely controlling a plurality of device
CN106023554A (en) * 2016-06-17 2016-10-12 深圳市元征科技股份有限公司 Remote control method and remote controller
CN206234970U (en) * 2016-09-28 2017-06-09 北京绿百顺科技有限公司 For the remote control of ceiling type air purifier
CN107067695A (en) * 2017-05-15 2017-08-18 深圳市冠旭电子股份有限公司 A kind of intelligent distant control method, system and intelligent remote controller
CN107590979B (en) * 2017-09-04 2019-11-19 珠海格力电器股份有限公司 A kind of Working mode switching method and device of remote controler

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101511041A (en) * 2008-02-12 2009-08-19 冲电气工业株式会社 Remote controller position detection apparatus, remote controller position detection system and method
CN106369753A (en) * 2016-09-12 2017-02-01 珠海格力电器股份有限公司 Air-conditioner and control method and device thereof
CN108762509A (en) * 2018-06-06 2018-11-06 上海瀚创机器人技术有限公司 A kind of method and operating system of operation remotely-controlled object

Also Published As

Publication number Publication date
CN110491117A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN106919171B (en) Indoor robot positioning and navigation system and method
CN110967011B (en) Positioning method, device, equipment and storage medium
US11740690B2 (en) Systems and methods for tracking a controller
US20050200325A1 (en) Remote robot control method using three-dimensional pointing procedure and robot control system using the remote robot control method
US10503393B2 (en) Touch screen sonar adjustment systems and methods
US20160284131A1 (en) Display control method and information processing apparatus
CN102441277B (en) Multi-purpose game controller, system and method with posture sensing function
CN107807347A (en) Positioning control method of aircraft
CN113804191A (en) Mobile equipment and method for obtaining posture of mobile equipment
US11662817B2 (en) Method for controlling gimbal by somatosensory controller, gimbal, somatosensory controller, and system
KR102328673B1 (en) Method And System for Controlling SmartHome based on Location
CN103389486A (en) Control method and electronic device
CN110491117B (en) Remote control method, apparatus, device and medium
US11620846B2 (en) Data processing method for multi-sensor fusion, positioning apparatus and virtual reality device
KR20180106178A (en) Unmanned aerial vehicle, electronic device and control method thereof
CN109309709B (en) Control method capable of remotely controlling unmanned device
CN110595480A (en) Navigation method, device, equipment and storage medium
CN116540284B (en) Indoor navigation positioning method, device, system and storage medium
CA3107907C (en) System for object tracking in physical space with aligned reference frames
CN114115297B (en) AUV tracking control method and device based on sight guidance method
CN109343561B (en) Operation method for displaying and operating unmanned device on electronic device
WO2022000209A1 (en) Positioning method and positioning device
JP7144991B2 (en) Autonomous mobile device, autonomous mobile program and position estimation system
CN116546437A (en) Pose determination method and device, electronic equipment and readable storage medium
CN113341421A (en) Positioning method and system for underwater robot

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