CN111081005B - Directional remote control method, device, equipment and storage medium - Google Patents

Directional remote control method, device, equipment and storage medium Download PDF

Info

Publication number
CN111081005B
CN111081005B CN201911422615.2A CN201911422615A CN111081005B CN 111081005 B CN111081005 B CN 111081005B CN 201911422615 A CN201911422615 A CN 201911422615A CN 111081005 B CN111081005 B CN 111081005B
Authority
CN
China
Prior art keywords
remote control
code value
electrical equipment
electrical
key
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
CN201911422615.2A
Other languages
Chinese (zh)
Other versions
CN111081005A (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.)
Huizhou Shiwei New Technology Co Ltd
Original Assignee
Huizhou Shiwei New 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 Huizhou Shiwei New Technology Co Ltd filed Critical Huizhou Shiwei New Technology Co Ltd
Priority to CN201911422615.2A priority Critical patent/CN111081005B/en
Publication of CN111081005A publication Critical patent/CN111081005A/en
Application granted granted Critical
Publication of CN111081005B publication Critical patent/CN111081005B/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
    • G08C19/00Electric signal transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a directional remote control method, a directional remote control device, directional remote control equipment and a storage medium, wherein the method comprises the steps of receiving a starting instruction, sending a plurality of prestored starting key remote control code values according to the starting instruction, receiving a to-be-confirmed starting code value returned by electrical equipment based on the starting key remote control code values, matching the to-be-confirmed starting code value with each starting key remote control code value, taking the electrical equipment corresponding to the successfully-matched starting key remote control code value as target electrical equipment, and matching the returned to-be-confirmed starting code value with all prestored starting key remote control code values so as to judge which electrical equipment can carry out remote control operation; the method comprises the steps of obtaining a target electrical appliance code value corresponding to a target electrical appliance, switching the key code value into the target electrical appliance code value, remotely controlling the target electrical appliance based on the target electrical appliance code value, realizing that one remote controller can remotely control any one of a plurality of electrical appliances through switching of the key code value, and being simple and rapid to operate.

Description

Directional remote control method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of equipment control, in particular to a directional remote control method, a directional remote control device, directional remote control equipment and a storage medium.
Background
With the rapid development of modern society, the living standard of people is continuously improved, more and more electrical equipment is used in daily life in a home, most of the electrical equipment is provided with a remote controller for convenient operation, the remote controller is piled, and the remote controller cannot be found and the remote controller corresponding to the electrical equipment is forgotten. The current solutions to these problems are: the mode I is that the remote controller in a house is kept to be stored and placed at a designated position, or a label is pasted on the remote controller, so that the old and children can conveniently distinguish and use the remote controller. And in the second mode, the software of the remote controller is downloaded in the mobile phone, and the equipment is remotely controlled through the mobile phone. And thirdly, purchasing voice intelligent control terminal equipment for remote control.
The above method has the following problems: the method is characterized in that the problems are not solved fundamentally, and the problems that remote control cannot be found and remote controllers are too many still exist; in the second mode, the mobile phone must have infrared configuration, otherwise the function cannot be used, and downloaded remote control software needs to match the equipment one by one for classification management, so that the operation is inconvenient; and in a third mode, the voice intelligent control terminal equipment has more functions, is more expensive compared with a remote controller, has the voice control problems of high false triggering rate, inaccurate semantic analysis and the like through voice control, and is also not convenient for the old to understand, operate and use. Therefore, how to conveniently and quickly realize the remote control of a plurality of electrical equipment through a remote controller is a technical problem to be solved urgently.
The above is only for the purpose of assisting understanding of the technical solution of the present invention, and does not represent an admission that the above is the prior art.
Disclosure of Invention
The invention mainly aims to provide a directional remote control method, a directional remote control device, directional remote control equipment and a storage medium, and aims to solve the technical problem that the remote control process of a plurality of electrical equipment is complicated to operate through a remote controller in the prior art to a certain extent.
In order to achieve the above object, the present invention provides a directional remote control method, comprising the steps of:
receiving a starting-up instruction, and sending a plurality of pre-stored starting-up key remote control code values according to the starting-up instruction;
receiving a to-be-confirmed power-on code value returned by the electrical equipment based on the power-on key remote control code value;
matching the startup code value to be confirmed with each startup key remote control code value;
taking the electrical equipment corresponding to the successfully matched remote control code value of the power-on key as target electrical equipment;
acquiring a target electrical appliance code value corresponding to the target electrical appliance equipment;
and switching the key code value of the remote controller into the target electrical appliance code value, and remotely controlling the target electrical appliance equipment based on the target electrical appliance code value.
Preferably, after receiving the power-on code value to be confirmed returned by the electrical device based on the power-on key remote control code value, the directional remote control method further includes:
judging whether the number of the electrical equipment returning the startup code value to be confirmed is larger than a first preset number or not;
when the number of the electrical equipment is larger than the first preset number, selecting electrical equipment to be remotely controlled from the electrical equipment according to a preset rule;
matching the value of the starting code to be confirmed with the value of the remote control code of the starting key, specifically comprising:
and matching the value of the startup code to be confirmed returned by the electrical equipment to be remotely controlled with the value of the remote control code of each startup key.
Preferably, when the number of the electrical devices is greater than the first preset number, selecting an electrical device to be remotely controlled from the electrical devices according to a preset rule, specifically including:
when the number of the electrical equipment is larger than the first preset number, obtaining distance information of each electrical equipment from the remote controller;
and selecting the electrical equipment to be remotely controlled from the electrical equipment according to the distance information.
Preferably, selecting the electrical equipment to be remotely controlled from the electrical equipment according to the distance information specifically includes:
extracting distance values corresponding to the electrical equipment from the distance information;
sorting the distance values from small to large to obtain a distance sorting list;
and selecting the electrical equipment corresponding to the minimum distance value from the distance sorted list as the electrical equipment to be remotely controlled.
Preferably, the selecting, from the distance sorted list, the electrical device corresponding to the minimum distance value as the electrical device to be remotely controlled specifically includes:
judging whether the number of the minimum distance values is larger than a second preset number or not;
and when the number of the minimum distance values is larger than the second preset number, carrying out alarm prompt so that the user carries out distance adjustment based on the alarm prompt.
Preferably, when the number of the electrical devices is greater than the first preset number, selecting an electrical device to be remotely controlled from the electrical devices according to a preset rule, specifically including:
acquiring the signal intensity of each received startup code value to be confirmed;
sorting the signal intensities from big to small to obtain a signal intensity sorting list;
and selecting the electrical equipment corresponding to the maximum signal intensity from the signal intensity ordered list as the electrical equipment to be remotely controlled.
Preferably, the obtaining of the target appliance code value corresponding to the target appliance device specifically includes:
and acquiring a target electrical code value corresponding to the target electrical equipment from a mapping relation table, wherein the mapping relation table comprises the corresponding relation between the electrical equipment and the electrical code value.
Furthermore, to achieve the above object, the present invention further provides a directional remote control device, which includes a memory, a processor, and a directional remote control program stored on the memory and executable on the processor, the directional remote control program being configured to implement the steps of the directional remote control method as described above.
Furthermore, to achieve the above object, the present invention further provides a storage medium having stored thereon a directional remote control program, which when executed by a processor, implements the steps of the directional remote control method as described above.
In addition, in order to achieve the above object, the present invention further provides a directional remote control device, which includes a sending module, a receiving module and a control module, wherein the sending module is used for receiving a power-on command, sending a plurality of pre-stored startup key remote control code values according to the startup instruction, wherein the receiving module is used for receiving a startup code value to be confirmed returned by the electrical equipment based on the startup key remote control code value, the control module is used for matching the startup code value to be confirmed with each startup key remote control code value, and is used for taking the electric equipment corresponding to the successfully matched remote control code value of the power-on key as target electric equipment, and the remote controller is used for acquiring a target electrical appliance code value corresponding to the target electrical appliance equipment, switching a key code value of a remote controller into the target electrical appliance code value, and remotely controlling the target electrical appliance equipment based on the target electrical appliance code value.
In the invention, the remote controller can send a plurality of pre-stored startup key remote control code values according to the startup instruction through the received startup instruction, receive the startup code value to be confirmed returned by the electrical equipment based on the startup key remote control code value, match the startup code value to be confirmed with each startup key remote control code value, take the electrical equipment corresponding to the startup key remote control code value successfully matched as the target electrical equipment, match the returned startup code value to be confirmed with all the pre-stored startup key remote control code values, and thus judge what electrical equipment can be remotely controlled; the method comprises the steps of obtaining a target electrical appliance code value corresponding to a target electrical appliance, switching the key code value into the target electrical appliance code value, remotely controlling the target electrical appliance based on the target electrical appliance code value, realizing that one remote controller can remotely control any one of a plurality of electrical appliances through switching of the key code value, and being simple and rapid to operate.
Drawings
FIG. 1 is a schematic diagram of a directional remote control device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a directional remote control method according to a first embodiment of the present invention;
FIG. 3 is a flow chart of a directional remote control method according to a second embodiment of the present invention;
FIG. 4 is a flow chart of a third embodiment of the directional remote control method according to the present invention;
fig. 5 is a block diagram of the directional remote control device according to the first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained 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 do not limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a directional remote control device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the directional remote control device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may further include a standard wired interface and a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory or a Non-volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 is not intended to be limiting of directional remote control devices 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, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a directional remote control program.
In the directional remote control device shown in fig. 1, the network interface 1004 is mainly used for connecting with a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting user equipment; the directional remote control device calls a directional remote control program stored in the memory 1005 through the processor 1001 and executes the directional remote control method provided by the embodiment of the present invention.
The directional remote control device invokes a directional remote control program stored in memory 1005 via processor 1001 and performs the following operations:
receiving a starting-up instruction, and sending a plurality of pre-stored starting-up key remote control code values according to the starting-up instruction;
receiving a to-be-confirmed power-on code value returned by the electrical equipment based on the power-on key remote control code value;
matching the startup code value to be confirmed with each startup key remote control code value;
taking the electrical equipment corresponding to the successfully matched remote control code value of the power-on key as target electrical equipment;
acquiring a target electrical appliance code value corresponding to the target electrical appliance equipment;
and switching the key code value of the remote controller into the target electrical appliance code value, and remotely controlling the target electrical appliance equipment based on the target electrical appliance code value.
Further, the directional remote control device invokes, via the processor 1001, a directional remote control program stored in the memory 1005, and further performs the following operations:
judging whether the number of the electrical equipment returning the startup code value to be confirmed is larger than a first preset number or not;
when the number of the electrical equipment is larger than the first preset number, selecting electrical equipment to be remotely controlled from the electrical equipment according to a preset rule;
matching the value of the starting code to be confirmed with the value of the remote control code of the starting key, specifically comprising:
and matching the value of the startup code to be confirmed returned by the electrical equipment to be remotely controlled with the value of the remote control code of each startup key.
Further, the directional remote control device invokes, via the processor 1001, a directional remote control program stored in the memory 1005, and further performs the following operations:
when the number of the electrical equipment is larger than the first preset number, obtaining distance information of each electrical equipment from the remote controller;
and selecting the electrical equipment to be remotely controlled from the electrical equipment according to the distance information.
Further, the directional remote control device invokes, via the processor 1001, a directional remote control program stored in the memory 1005, and further performs the following operations:
extracting distance values corresponding to the electrical equipment from the distance information;
sorting the distance values from small to large to obtain a distance sorting list;
and selecting the electrical equipment corresponding to the minimum distance value from the distance sorted list as the electrical equipment to be remotely controlled.
Further, the directional remote control device invokes, via the processor 1001, a directional remote control program stored in the memory 1005, and further performs the following operations:
judging whether the number of the minimum distance values is larger than a second preset number or not;
and when the number of the minimum distance values is larger than the second preset number, carrying out alarm prompt so that the user carries out distance adjustment based on the alarm prompt.
Further, the directional remote control device invokes, via the processor 1001, a directional remote control program stored in the memory 1005, and further performs the following operations:
acquiring the signal intensity of each received startup code value to be confirmed;
sorting the signal intensities from large to small to obtain a signal intensity sorting list;
and selecting the electrical equipment corresponding to the maximum signal intensity from the signal intensity ordered list as the electrical equipment to be remotely controlled.
Further, the directional remote control device invokes, via the processor 1001, a directional remote control program stored in the memory 1005, and further performs the following operations:
and acquiring a target electrical appliance code value corresponding to the target electrical appliance from a mapping relation table, wherein the mapping relation table comprises the corresponding relation between the electrical appliance and the electrical appliance code value.
In this embodiment, the remote controller can send a plurality of pre-stored power-on key remote control code values according to the power-on instruction through the received power-on instruction, receive a power-on code value to be confirmed returned by the electrical equipment based on the power-on key remote control code value, match the power-on code value to be confirmed with each power-on key remote control code value, use the electrical equipment corresponding to the successfully-matched power-on key remote control code value as target electrical equipment, match the returned power-on code value to be confirmed with all pre-stored power-on key remote control code values, and thus determine what electrical equipment can be remotely controlled; the method comprises the steps of obtaining a target electrical appliance code value corresponding to a target electrical appliance, switching the key code value into the target electrical appliance code value, remotely controlling the target electrical appliance based on the target electrical appliance code value, realizing that one remote controller can remotely control any one of a plurality of electrical appliances through switching of the key code value, and being simple and rapid to operate.
Based on the hardware structure, the embodiment of the directional remote control method is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the directional remote control method of the present invention, and provides the first embodiment of the directional remote control method of the present invention.
In a first embodiment, the directional remote control method comprises the steps of:
step S10: and receiving a starting-up instruction, and sending a plurality of pre-stored starting-up key remote control code values according to the starting-up instruction.
It should be understood that the execution subject of the present embodiment is the directional remote control apparatus including a remote controller or the like, and the present embodiment is not limited thereto. And the directional remote control equipment responds to the starting instruction, acquires all stored starting key remote control code values and sends out all the starting key remote control code values so that the electrical equipment receives and feeds back the starting key remote control code values. The directional remote control equipment stores a startup key remote control code value corresponding to each electric equipment in advance, and can start the corresponding electric equipment through the startup key remote control code value.
Step S20: and receiving a to-be-confirmed starting code value returned by the electric equipment based on the starting key remote control code value.
It can be understood that the number of the electrical equipment may be one or more, the electrical equipment receives the power-on key remote control code value sent by the directional remote control equipment, performs feedback based on the power-on key remote control code value, and returns the power-on code value to be confirmed to the directional remote control equipment. For example, the number of the electrical equipment is four, and the electrical equipment is electrical equipment a, electrical equipment B, electrical equipment C, and electrical equipment D, the directional remote control equipment sends a plurality of pre-stored power-on key remote control code values to the electrical equipment a, the electrical equipment B, the electrical equipment C, and the electrical equipment D, and the electrical equipment a, the electrical equipment B, the electrical equipment C, and the electrical equipment D receive the power-on key remote control code values and respectively return the power-on code values to be confirmed to the directional remote control equipment. The electrical apparatus includes: the present embodiment is not limited to the electric appliances such as tv, fan, and electric lamp.
Step S30: and matching the value of the startup code to be confirmed with the value of the remote control code of each startup key.
It should be noted that, when the number of the electrical equipment is one, the to-be-confirmed boot code value returned by the electrical equipment is matched with each of the boot key remote control code values respectively. When the number of the electrical equipment is more than one, firstly, one electrical equipment is selected from the electrical equipment to be remotely controlled, and the to-be-confirmed boot code value returned by the electrical equipment to be remotely controlled is matched with the boot key remote control code value respectively.
Step S40: and taking the electrical equipment corresponding to the successfully matched remote control code value of the power-on key as target electrical equipment.
In a specific implementation, the directional remote control device stores a power-on key remote control code value corresponding to each of a plurality of electrical devices, the power-on key value to be confirmed is matched with each power-on key remote control code value, if the power-on key remote control code value is successfully matched, the electrical device corresponding to the successfully matched power-on key remote control code value is used as a target electrical device, and the target electrical device is the electrical device which the user wants to remotely control.
Step S50: and acquiring a target electrical appliance code value corresponding to the target electrical appliance equipment.
It should be understood that, the directional remote control device stores in advance the electrical code values corresponding to the electrical devices, may establish in advance a correspondence between each electrical device and each electrical code value, and stores in a mapping relationship table, and when determining the target electrical device that a user needs to perform remote control, obtains the target electrical code value corresponding to the target electrical device from the mapping relationship table. In this embodiment, the step S50 includes: and acquiring a target electrical appliance code value corresponding to the target electrical appliance from a mapping relation table, wherein the mapping relation table comprises the corresponding relation between the electrical appliance and the electrical appliance code value.
Step S60: and switching the key code value of the remote controller into the target electrical appliance code value, and remotely controlling the target electrical appliance equipment based on the target electrical appliance code value.
It can be understood that, the directional remote control device switches the key code value of the remote controller to the target electrical appliance code value corresponding to the target electrical appliance, and then the directional remote control device remotely controls the target electrical appliance based on the target electrical appliance code value. And the user can remotely control the target electrical appliance through the directional remote control equipment with the key code value switched. For any one of the electrical equipment, the key code value can be switched into the corresponding electrical code value, so that the electrical equipment can be operated by the directional remote control equipment. One directional remote control device can realize remote control of a plurality of electrical equipment.
In this embodiment, the remote controller can send a plurality of pre-stored power-on key remote control code values according to the power-on instruction through the received power-on instruction, receive a power-on code value to be confirmed returned by the electrical equipment based on the power-on key remote control code value, match the power-on code value to be confirmed with each power-on key remote control code value, use the electrical equipment corresponding to the successfully-matched power-on key remote control code value as target electrical equipment, match the returned power-on code value to be confirmed with all pre-stored power-on key remote control code values, and thus determine what electrical equipment can be remotely controlled; the method comprises the steps of obtaining a target electrical appliance code value corresponding to a target electrical appliance, switching the key code value into the target electrical appliance code value, remotely controlling the target electrical appliance based on the target electrical appliance code value, realizing that one remote controller can remotely control any one of a plurality of electrical appliances through switching of the key code value, and being simple and rapid to operate.
Referring to fig. 4, fig. 4 is a flowchart illustrating a second embodiment of the directional remote control method according to the present invention, and the second embodiment of the directional remote control method according to the present invention is proposed based on the first embodiment illustrated in fig. 2.
In the second embodiment, after the step S20, the method further includes:
step S201: and judging whether the number of the electrical equipment returning the to-be-confirmed boot code value is larger than a first preset number or not.
It should be understood that the first preset number may be set to one, the directional remote control device determines whether the number of the electrical devices returning the startup code value to be confirmed is greater than one, and when the number of the electrical devices returning the startup code value to be confirmed is greater than one, it needs to further determine which electrical device needs to be selected as the electrical device needing remote control, and then the startup code value to be confirmed returned by the electrical device is checked.
Further, in the present embodiment, when the number of the electrical devices is equal to the first preset number, the step S30 is executed.
It can be understood that, when the number of the electrical devices is equal to the first preset number, that is, the number of the electrical devices is one, the step of matching the start code value to be confirmed with the start key remote control code value may be directly performed by the directional remote control device. And checking the value of the starting code to be confirmed so as to judge which electrical equipment needs to be remotely controlled.
Step S202: and when the number of the electrical equipment is larger than the first preset number, selecting electrical equipment to be remotely controlled from the electrical equipment according to a preset rule.
It should be noted that, when the number of the electrical equipment is greater than the first preset number, that is, the number of the electrical equipment is greater than one, and may be two or more, one electrical equipment needs to be selected from the electrical equipment as the electrical equipment to be remotely controlled, so as to remotely control the electrical equipment with remote control through the directional remote control equipment. The preset rule may be selected according to the distance between each electrical apparatus and the remote controller, or according to the signal strength of the remote controller receiving the power-on code value to be confirmed returned by each electrical apparatus.
Further, in this embodiment, the step S202 includes: acquiring the signal intensity of each received startup code value to be confirmed; sorting the signal intensities from large to small to obtain a signal intensity sorting list; and selecting the electrical equipment corresponding to the maximum signal intensity from the signal intensity ordered list as the electrical equipment to be remotely controlled.
It should be understood that, when a user usually aims the directional remote control device at a target electrical device to perform an operation when the target electrical device is remotely controlled, the signal strength of the target electrical device returning the startup code value to be confirmed is usually greater than that of other electrical devices. The signal intensity of each received startup code value to be confirmed can be obtained, the signal intensities are sorted from large to small to obtain a signal intensity sorted list, and the electrical equipment corresponding to the maximum signal intensity is selected from the signal intensity sorted list to serve as the electrical equipment to be remotely controlled.
The step S30 specifically includes:
step S301: and matching the value of the startup code to be confirmed returned by the electrical equipment to be remotely controlled with the value of the remote control code of each startup key.
In a specific implementation, the directional remote control device selects the electrical device to be remotely controlled from two or more electrical devices, and then matches the startup code value to be confirmed returned by the electrical device to be remotely controlled with each startup key remote control code value respectively to determine the electrical device to be remotely controlled, so as to switch the key code value to be the corresponding electrical device code value to remotely control the electrical device.
In this embodiment, when the number of the electrical equipment is greater than the first preset number, electrical equipment to be remotely controlled is selected from the electrical equipment according to a preset rule, and a to-be-confirmed power-on code value returned by the electrical equipment to be remotely controlled is matched with each power-on key remote control code value, so that the electrical equipment to be remotely controlled is selected from two or more electrical equipment to be accurately remotely controlled.
Referring to fig. 5, fig. 5 is a schematic flow chart of a directional remote control method according to a third embodiment of the present invention, and the directional remote control method according to the third embodiment of the present invention is proposed based on the first embodiment or the second embodiment; in this example, explanation is made based on the second embodiment.
In this embodiment, the step S202 includes:
step S2021: and when the number of the electrical equipment is larger than the first preset number, obtaining distance information of each electrical equipment from the remote controller.
It should be understood that, when the number of the electrical devices is greater than the first preset number, that is, the number of the electrical devices is greater than one, and may be two or more, one electrical device needs to be selected from the electrical devices as the electrical devices to be remotely controlled, distance information of each electrical device from the remote controller may be obtained, where the distance information includes a distance value of each electrical device from the remote controller, and may also include information such as a direction and an angle of the electrical device from the remote controller, which is not limited in this embodiment.
Step S2022: and selecting the electrical equipment to be remotely controlled from the electrical equipment according to the distance information.
It can be understood that, when a user needs to operate an electrical apparatus, the user usually brings the remote controller close to the electrical apparatus and performs remote control operation on the electrical apparatus. The distance information may be used to extract a distance value between each electrical device and the remote controller, and the distance values are sorted from small to large to obtain a distance sorted list, where the smaller the distance value is, the closer the electrical device corresponding to the distance value is to the remote controller is, and the electrical device corresponding to the smallest distance value is selected from the distance sorted list as the electrical device to be remotely controlled. In this embodiment, the step S2022 includes: extracting distance values corresponding to the electrical equipment from the distance information; sorting the distance values from small to large to obtain a distance sorting list; and selecting the electrical equipment corresponding to the minimum distance value from the distance sorted list as the electrical equipment to be remotely controlled.
It should be noted that, a distance value and a direction of each electrical device from the remote controller may also be extracted from the distance information, where the direction includes whether the electrical device is located in front of or behind the remote controller, and the electrical device with the smallest distance value among the electrical devices located in front of the remote controller may be used as the electrical device to be remotely controlled. The direction also comprises that each electrical equipment is positioned right in front, left in front or from the front of the remote controller, and the electrical equipment with the minimum distance value in the electrical equipment positioned right in front of the remote controller can be used as the electrical equipment to be remotely controlled. The electrical equipment corresponding to the minimum distance value can be selected by deleting according to the distance value, if the number of the electrical equipment corresponding to the minimum distance value is larger than a second preset number, the second preset number is one, namely when the number of the electrical equipment corresponding to the minimum distance value is larger than one, the electrical equipment corresponding to the minimum distance value can be further selected through the direction, the direction can comprise angle information, namely an included angle between a connecting line between the remote controller and the electrical equipment and a perpendicular bisector of the electrical equipment, and when the number of the electrical equipment corresponding to the minimum distance value is larger than one, the electrical equipment with the minimum included angle is obtained from the electrical equipment corresponding to the minimum distance value and serves as the electrical equipment to be remotely controlled.
Further, in this embodiment, selecting the electrical device corresponding to the minimum distance value from the distance sorted list as the electrical device to be remotely controlled includes:
judging whether the number of the minimum distance values is larger than a second preset number or not;
when the number of the minimum distance values is larger than the second preset number, carrying out alarm prompt so that the user carries out distance adjustment based on the alarm prompt;
and when the number of the minimum distance values is equal to the second preset number, executing the step of selecting the electrical equipment corresponding to the minimum distance value from the distance sorted list as the electrical equipment to be remotely controlled.
In a specific implementation, the second preset number is set to be one, and when the number of the minimum distance values is greater than one, an alarm prompt is performed to prompt a user to perform distance adjustment of the remote controller, and the user can enable the remote controller to be close to the electrical equipment to be remotely controlled, or adjust the remote controller to be right in front of the electrical equipment to be remotely controlled. And the user adjusts the distance based on the alarm prompt, and then returns to the step S10 to perform subsequent operations to identify the target electrical equipment.
It should be understood that, when the number of the minimum distance values is equal to one, the remote controller performs a step of selecting the electrical equipment corresponding to the minimum distance value from the distance sorted list as the electrical equipment to be remotely controlled.
In this embodiment, when the number of the electrical equipment is greater than the second preset number, distance information between each electrical equipment and the remote controller is obtained, and the remote controller selects electrical equipment to be remotely controlled from each electrical equipment according to the distance information, so that a target device is selected from two or more electrical equipment, and the remote controller can accurately remotely control the target electrical equipment.
In addition, an embodiment of the present invention further provides a storage medium, where a directional remote control program is stored on the storage medium, and when executed by a processor, the directional remote control program implements the following steps:
receiving a starting-up instruction, and sending a plurality of pre-stored starting-up key remote control code values according to the starting-up instruction;
receiving a to-be-confirmed power-on code value returned by the electrical equipment based on the power-on key remote control code value;
matching the value of the starting code to be confirmed with the value of the remote control code of each starting key;
taking the electrical equipment corresponding to the successfully matched remote control code value of the power-on key as target electrical equipment;
acquiring a target electrical appliance code value corresponding to the target electrical appliance equipment;
and switching the key code value of the remote controller into the target electrical appliance code value, and remotely controlling the target electrical appliance equipment based on the target electrical appliance code value.
Further, the directional remote control program when executed by the processor further performs the following operations:
judging whether the number of the electrical equipment returning the startup code value to be confirmed is larger than a first preset number or not;
when the number of the electrical equipment is larger than the first preset number, selecting electrical equipment to be remotely controlled from the electrical equipment according to a preset rule;
matching the value of the starting code to be confirmed with the value of the remote control code of the starting key, specifically comprising:
and matching the value of the startup code to be confirmed returned by the electrical equipment to be remotely controlled with the value of the remote control code of each startup key.
Further, the directional remote control program when executed by the processor further performs the following operations:
when the number of the electrical equipment is larger than the first preset number, obtaining distance information of each electrical equipment from the remote controller;
and selecting the electrical equipment to be remotely controlled from the electrical equipment according to the distance information.
Further, the directional remote control program when executed by the processor further performs the following operations:
extracting distance values corresponding to the electrical equipment from the distance information;
sorting the distance values from small to large to obtain a distance sorting list;
and selecting the electrical equipment corresponding to the minimum distance value from the distance sorted list as the electrical equipment to be remotely controlled.
Further, the directional remote control program when executed by the processor further performs the following operations:
judging whether the number of the minimum distance values is larger than a second preset number or not;
and when the number of the minimum distance values is larger than the second preset number, carrying out alarm prompt so that the user carries out distance adjustment based on the alarm prompt.
Further, the directional remote control program when executed by the processor further performs the following operations:
acquiring the signal intensity of each received startup code value to be confirmed;
sorting the signal intensities from large to small to obtain a signal intensity sorting list;
and selecting the electrical equipment corresponding to the maximum signal intensity from the signal intensity ordered list as the electrical equipment to be remotely controlled.
Further, the directional remote control program when executed by the processor further performs the following operations:
and acquiring a target electrical appliance code value corresponding to the target electrical appliance from a mapping relation table, wherein the mapping relation table comprises the corresponding relation between the electrical appliance and the electrical appliance code value.
In this embodiment, the remote controller can send a plurality of pre-stored power-on key remote control code values according to the power-on instruction through the received power-on instruction, receive a power-on code value to be confirmed returned by the electrical equipment based on the power-on key remote control code value, match the power-on code value to be confirmed with each power-on key remote control code value, use the electrical equipment corresponding to the successfully-matched power-on key remote control code value as target electrical equipment, match the returned power-on code value to be confirmed with all pre-stored power-on key remote control code values, and thus determine what electrical equipment can be remotely controlled; the method comprises the steps of obtaining a target electrical appliance code value corresponding to a target electrical appliance, switching the key code value into the target electrical appliance code value, remotely controlling the target electrical appliance based on the target electrical appliance code value, realizing that one remote controller can remotely control any one of a plurality of electrical appliances through switching of the key code value, and being simple and rapid to operate.
In addition, referring to fig. 5, an embodiment of the present invention further provides a directional remote control device, where the directional remote control device includes: a transmitting module 10, a receiving module 20 and a control module 30;
the sending module 10 is configured to receive a power-on instruction, and send a plurality of pre-stored values of remote control codes of the power-on key according to the power-on instruction.
It should be understood that, a user inputs the power-on instruction by pressing a power-on key of the directional remote control device, the directional remote control device responds to the power-on instruction, acquires all stored power-on key remote control code values, and sends out all the power-on key remote control code values, so that the electrical equipment receives and feeds back the power-on key remote control code values. The directional remote control equipment stores a startup key remote control code value corresponding to each electric equipment in advance, and can start the corresponding electric equipment through the startup key remote control code value.
The receiving module 20 is configured to receive a to-be-confirmed power-on code value returned by the electrical equipment based on the power-on key remote control code value.
It can be understood that the number of the electrical equipment may be one or more, the electrical equipment receives the power-on key remote control code value sent by the directional remote control equipment, performs feedback based on the power-on key remote control code value, and returns the power-on code value to be confirmed to the directional remote control equipment. For example, the number of the electrical equipment is four, and the electrical equipment is electrical equipment a, electrical equipment B, electrical equipment C, and electrical equipment D, the directional remote control equipment sends a plurality of pre-stored power-on key remote control code values to the electrical equipment a, the electrical equipment B, the electrical equipment C, and the electrical equipment D, and the electrical equipment a, the electrical equipment B, the electrical equipment C, and the electrical equipment D receive the power-on key remote control code values and respectively return the power-on code values to be confirmed to the directional remote control equipment. The electrical apparatus includes: the present embodiment is not limited to the electric appliances such as a television, a fan, and an electric lamp.
The control module 30 is configured to match the power-on code value to be confirmed with each of the power-on key remote control code values, to use the electrical equipment corresponding to the successfully-matched power-on key remote control code value as target electrical equipment, to obtain a target electrical code value corresponding to the target electrical equipment, to switch the key code value of the remote controller to the target electrical code value, and to remotely control the target electrical equipment based on the target electrical code value.
It should be noted that, when the number of the electrical equipment is one, the to-be-confirmed boot code value returned by the electrical equipment is matched with each of the boot key remote control code values respectively. When the number of the electrical equipment is more than one, firstly, one electrical equipment is selected from the electrical equipment to be remotely controlled, and the to-be-confirmed boot code value returned by the electrical equipment to be remotely controlled is matched with the boot key remote control code value respectively.
In a specific implementation, the directional remote control device stores a start key remote control code value corresponding to each of a plurality of electrical devices, the start code value to be confirmed is matched with each start key remote control code value, if the matching is successful, the electrical device corresponding to the successfully matched start key remote control code value is used as a target electrical device, and the target electrical device is the electrical device which the user wants to remotely control.
It should be understood that, the directional remote control device stores in advance the electrical code values corresponding to the electrical devices, may establish in advance a correspondence between each electrical device and each electrical code value, and stores in a mapping relationship table, and when determining the target electrical device that a user needs to perform remote control, obtains the target electrical code value corresponding to the target electrical device from the mapping relationship table. In this embodiment, the obtaining the target electrical appliance code value corresponding to the target electrical appliance includes: and acquiring a target electrical code value corresponding to the target electrical equipment from a mapping relation table, wherein the mapping relation table comprises the corresponding relation between the electrical equipment and the electrical code value.
It can be understood that, the directional remote control device switches the key code value of the remote controller to the target electrical appliance code value corresponding to the target electrical appliance, and then the directional remote control device remotely controls the target electrical appliance based on the target electrical appliance code value. And the user can remotely control the target electrical appliance through the directional remote control equipment with the key code value switched. For any one of the electrical equipment, the key code value can be switched into the corresponding electrical code value, so that the electrical equipment can be operated by the directional remote control equipment. One directional remote control device can realize remote control of a plurality of electrical equipment.
In this embodiment, the remote controller can send a plurality of pre-stored power-on key remote control code values according to the power-on instruction through the received power-on instruction, receive a power-on code value to be confirmed returned by the electrical equipment based on the power-on key remote control code value, match the power-on code value to be confirmed with each power-on key remote control code value, use the electrical equipment corresponding to the successfully-matched power-on key remote control code value as target electrical equipment, match the returned power-on code value to be confirmed with all pre-stored power-on key remote control code values, and thus determine what electrical equipment can be remotely controlled; the method comprises the steps of obtaining a target electrical appliance code value corresponding to a target electrical appliance, switching the key code value into the target electrical appliance code value, remotely controlling the target electrical appliance based on the target electrical appliance code value, realizing that one remote controller can remotely control any one of a plurality of electrical appliances through switching of the key code value, and being simple and rapid to operate.
Other embodiments or specific implementation manners of the directional remote control device according to the present invention may refer to the above method embodiments, and are not described herein again.
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 like elements in a process, method, article, or system that comprises the element.
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. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third and the like do not denote any order, but rather the words first, second and the like may be interpreted as indicating any order.
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 solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) 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 not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A directional remote control method, characterized in that the directional remote control method comprises the steps of:
receiving a starting-up instruction, and sending a plurality of pre-stored starting-up key remote control code values according to the starting-up instruction;
receiving a to-be-confirmed power-on code value returned by the electrical equipment based on the power-on key remote control code value;
judging whether the number of the electrical equipment returning the startup code value to be confirmed is larger than a first preset number or not;
when the number of the electrical equipment is larger than the first preset number, obtaining distance information of each electrical equipment from the remote controller;
selecting electrical equipment to be remotely controlled from the electrical equipment according to the distance information;
matching the startup code value to be confirmed returned by the electrical equipment to be remotely controlled with the remote control code value of each startup key;
taking the electrical equipment corresponding to the successfully matched remote control code value of the power-on key as target electrical equipment;
acquiring a target electrical appliance code value corresponding to the target electrical appliance equipment;
and switching the key code value of the remote controller into the target electrical appliance code value, and remotely controlling the target electrical appliance equipment based on the target electrical appliance code value.
2. The directional remote control method according to claim 1, wherein selecting an electrical device to be remotely controlled from among the electrical devices according to the distance information specifically comprises:
extracting distance values corresponding to the electrical equipment from the distance information;
sorting the distance values from small to large to obtain a distance sorting list;
and selecting the electrical equipment corresponding to the minimum distance value from the distance sorted list as the electrical equipment to be remotely controlled.
3. The directional remote control method according to claim 2, wherein selecting the electrical device corresponding to the minimum distance value from the distance sorted list as the electrical device to be remotely controlled specifically comprises:
judging whether the number of the minimum distance values is larger than a second preset number or not;
and when the number of the minimum distance values is larger than the second preset number, carrying out alarm prompt so that the user carries out distance adjustment based on the alarm prompt.
4. The directional remote control method as claimed in claim 1, wherein when the number of the electrical devices is greater than the first preset number, selecting an electrical device to be remotely controlled from each of the electrical devices according to a preset rule, specifically comprising:
acquiring the signal intensity of each received startup code value to be confirmed;
sorting the signal intensities from big to small to obtain a signal intensity sorting list;
and selecting the electrical equipment corresponding to the maximum signal intensity from the signal intensity ordered list as the electrical equipment to be remotely controlled.
5. The directional remote control method according to any one of claims 1 to 4, wherein obtaining a target appliance code value corresponding to the target appliance device specifically comprises:
and acquiring a target electrical code value corresponding to the target electrical equipment from a mapping relation table, wherein the mapping relation table comprises the corresponding relation between the electrical equipment and the electrical code value.
6. A directional remote control device, characterized in that the directional remote control device comprises: memory, a processor and a directional remote control program stored on the memory and executable on the processor, the directional remote control program when executed by the processor implementing the steps of the directional remote control method of any of claims 1 to 5.
7. A storage medium, characterized in that the storage medium has stored thereon a directional remote control program, which when executed by a processor implements the steps of the directional remote control method according to any one of claims 1 to 5.
8. The directional remote control device is characterized by comprising a sending module, a receiving module and a control module, wherein the sending module is used for receiving a starting instruction and sending a plurality of pre-stored starting key remote control code values according to the starting instruction, the receiving module is used for receiving a starting code value to be confirmed returned by electrical equipment based on the starting key remote control code values, the control module is used for matching the starting code value to be confirmed with each starting key remote control code value, taking the electrical equipment corresponding to the successfully matched starting key remote control code value as target electrical equipment, acquiring a target electrical code value corresponding to the target electrical equipment, switching a key code value of a remote controller into the target electrical code value, and remotely controlling the target electrical equipment based on the target electrical code value.
CN201911422615.2A 2019-12-30 2019-12-30 Directional remote control method, device, equipment and storage medium Active CN111081005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911422615.2A CN111081005B (en) 2019-12-30 2019-12-30 Directional remote control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911422615.2A CN111081005B (en) 2019-12-30 2019-12-30 Directional remote control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111081005A CN111081005A (en) 2020-04-28
CN111081005B true CN111081005B (en) 2022-05-06

Family

ID=70321533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911422615.2A Active CN111081005B (en) 2019-12-30 2019-12-30 Directional remote control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111081005B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114251791B (en) * 2020-09-22 2023-05-26 美的集团股份有限公司 Control terminal, remote controller, air conditioner, control method and readable storage medium
CN112911574A (en) * 2021-01-28 2021-06-04 惠州Tcl移动通信有限公司 Matching method and device of mobile terminal and automobile central control, automobile central control and storage medium
CN115307267A (en) * 2022-08-16 2022-11-08 珠海格力电器股份有限公司 Control method and device of air conditioner, air conditioner and storage medium
CN117576883A (en) * 2023-11-28 2024-02-20 广东辰奕智能科技股份有限公司 Multi-device remote control method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097652A (en) * 2006-06-30 2008-01-02 佛山市顺德区顺达电脑厂有限公司 Remote control setting method
KR20110031872A (en) * 2009-09-21 2011-03-29 한국과학기술원 System and method for supporting remote controller for displaying function of key which is mapped with remote controller
CN103164938A (en) * 2011-12-16 2013-06-19 联想(北京)有限公司 Method for pairing of devices, remote controller and controlled device
CN103164940A (en) * 2013-02-04 2013-06-19 上海仪电电子股份有限公司 General remote controller
CN103440760A (en) * 2013-08-02 2013-12-11 康佳集团股份有限公司 Multi-control infrared remote controller and remote control method thereof
CN103843355A (en) * 2011-09-29 2014-06-04 艾科星科技公司 Assisting use of control devices with different electronic devices
CN104065993A (en) * 2014-07-09 2014-09-24 陈玮君 Remote control method and remote control system
CN109874041A (en) * 2017-12-05 2019-06-11 深圳Tcl新技术有限公司 A kind of method, storage medium and the television set of the switching of control television system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6223348B1 (en) * 1997-09-03 2001-04-24 Universal Electronics Inc. Universal remote control system
JP2005198825A (en) * 2004-01-15 2005-07-28 Olympus Corp Biological tissue formation promotor and production method thereof
CN101217841B (en) * 2008-01-08 2011-06-22 天津市英克瑞电子技术有限公司 A distributed scene light control system
US9513718B2 (en) * 2008-03-19 2016-12-06 Computime, Ltd. User action remote control
US8736427B2 (en) * 2008-09-03 2014-05-27 Apple Inc. Intelligent infrared remote pairing
CN103956040A (en) * 2014-05-22 2014-07-30 重庆大学 Learnable-type remote controller system based on intelligent equipment
CN108174255B (en) * 2017-12-25 2021-04-16 深圳Tcl数字技术有限公司 Smart television starting method, smart television and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097652A (en) * 2006-06-30 2008-01-02 佛山市顺德区顺达电脑厂有限公司 Remote control setting method
KR20110031872A (en) * 2009-09-21 2011-03-29 한국과학기술원 System and method for supporting remote controller for displaying function of key which is mapped with remote controller
CN103843355A (en) * 2011-09-29 2014-06-04 艾科星科技公司 Assisting use of control devices with different electronic devices
CN103164938A (en) * 2011-12-16 2013-06-19 联想(北京)有限公司 Method for pairing of devices, remote controller and controlled device
CN103164940A (en) * 2013-02-04 2013-06-19 上海仪电电子股份有限公司 General remote controller
CN103440760A (en) * 2013-08-02 2013-12-11 康佳集团股份有限公司 Multi-control infrared remote controller and remote control method thereof
CN104065993A (en) * 2014-07-09 2014-09-24 陈玮君 Remote control method and remote control system
CN109874041A (en) * 2017-12-05 2019-06-11 深圳Tcl新技术有限公司 A kind of method, storage medium and the television set of the switching of control television system

Also Published As

Publication number Publication date
CN111081005A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN111081005B (en) Directional remote control method, device, equipment and storage medium
CN111413883A (en) Control method and control device for household electrical appliance and computer storage medium
CN108648431B (en) Method and device for configuring functions of remote controller, terminal equipment and readable storage medium
CN107231607B (en) Unlocking method and device of Bluetooth intelligent lock and computer readable storage medium
CN111413884A (en) Control method and control device for household electrical appliance and computer storage medium
CN113253625A (en) Intelligent household control method, device, equipment and storage medium
CN113064683B (en) Display method and system for control interface of electric control equipment, terminal and electric control equipment
US11050828B2 (en) Electronic device, server and method of controlling the same
CN111147402A (en) Method and device for customizing factory setting items of switch, switch and system
CN110933772A (en) Connection method of wireless device, mobile terminal and computer readable storage medium
CN113938733A (en) Shortcut key control method and device for remote control equipment, storage medium and device
CN114245062A (en) Video conference control method, system, device and storage medium
CN114415530A (en) Control method, control device, electronic equipment and storage medium
CN111625108B (en) Button simulation method, device, equipment and storage medium based on USB module
JP2023524546A (en) Home appliance and its network setting method, control terminal, computer storage medium
CN110891265B (en) Wireless connection control method and device, mobile terminal and storage medium
CN112464771A (en) Virtual remote controller generation method, device, terminal equipment and medium
CN111459272A (en) Interaction method, interaction device, storage medium and electronic equipment
CN111246268B (en) Pairing method of infrared devices, television and storage medium
CN113325722B (en) Multi-mode implementation method and device for intelligent cooking and intelligent cabinet
CN115884434A (en) Connection method of terminal and household appliance, terminal, household appliance and readable storage medium
CN115942283A (en) Switching system, method, device and medium for controlling starting of equipment
CN112265879B (en) Elevator control system, debugging method thereof, debugging equipment and readable storage medium
CN106407786B (en) Intelligent unlocking method and system
CN111726451A (en) Wearable device, mobile terminal, mode entering method of wearable device and mobile terminal, and storage medium

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