CN114429708A - Remote control method, storage medium and terminal equipment - Google Patents

Remote control method, storage medium and terminal equipment Download PDF

Info

Publication number
CN114429708A
CN114429708A CN202011181913.XA CN202011181913A CN114429708A CN 114429708 A CN114429708 A CN 114429708A CN 202011181913 A CN202011181913 A CN 202011181913A CN 114429708 A CN114429708 A CN 114429708A
Authority
CN
China
Prior art keywords
character
laser
information
control
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011181913.XA
Other languages
Chinese (zh)
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 CN202011181913.XA priority Critical patent/CN114429708A/en
Publication of CN114429708A publication Critical patent/CN114429708A/en
Pending legal-status Critical Current

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 application discloses a remote control method, a storage medium and a terminal device, wherein the method comprises the steps that when a main control device receives a control operation, the main control device determines control information corresponding to the control operation; and the master control equipment generates laser information based on the control information and sends the laser information to the controlled equipment so that the controlled equipment responds to the control operation. The master control equipment in this application receives control operation back, converts the control information that control operation corresponds into laser information to give controlled equipment through laser transmission, can avoid transmitting the problem that the signal that information is disturbed and produce loses on the one hand like this, on the other hand utilizes the remote transmission's of laser characteristic, can increase master control equipment's remote control scope.

Description

Remote control method, storage medium and terminal equipment
Technical Field
The present application relates to the field of remote control technologies, and in particular, to a remote control method, a storage medium, and a terminal device.
Background
With the development of science and technology of society, intelligent household equipment generally walks into people's life to become the indispensable component part of people's life. At present, remote control communication of intelligent household equipment is generally realized through remote control equipment, wherein the remote control transmission mode which is generally used is an infrared transmission mode and a Bluetooth transmission mode. However, the existing remote control transmission mode often has signal loss during transmission, which causes a problem of control identification.
Disclosure of Invention
The technical problem to be solved by the present application is to provide a remote control method, a storage medium, and a terminal device, aiming at the deficiencies of the prior art.
In order to solve the foregoing technical problem, a first aspect of an embodiment of the present application provides a remote control method, where the method is applied to a master device in a remote control system, where the remote control system includes the master device and a controlled device, and the method includes:
when a master control device receives a control operation, the master control device determines control information corresponding to the control operation;
and the master control equipment generates laser information based on the control information and sends the laser information to the controlled equipment so that the controlled equipment responds to the control operation.
The remote control method includes that when the main control device receives a control operation, the determining, by the main control device, of the control information corresponding to the control operation specifically includes:
when the master control equipment receives a control operation, the master control equipment acquires a modulation signal output by a PWM interface configured by the master control equipment;
and the master control equipment determines control information corresponding to the control operation based on the modulation signal.
The remote control method is characterized in that the control information comprises a plurality of characters, and each character of the plurality of characters is a binary character; the generating, by the master control device, the laser information based on the control information specifically includes:
reading each candidate character in the control information;
when the candidate character is 0, taking a preset first character as a target character corresponding to the candidate character;
when the candidate character is 1, determining a target character corresponding to the candidate character according to a reference character corresponding to the candidate character, wherein the reference character is one character in the control information, the reference character is 1, the reference character is located before the candidate character, and no character 1 exists between the reference character and the candidate character;
and generating the laser information according to the target characters corresponding to the candidate characters.
The remote control method, wherein the determining a target character corresponding to the candidate character according to the reference character corresponding to the candidate character specifically includes:
detecting whether a reference character exists in the control information;
if the reference character is not detected, taking a preset second character as a target character corresponding to the candidate character, wherein the second character is different from the first character;
if the reference character is detected, acquiring a target character corresponding to the reference character;
when the obtained converted character is a second character, taking a preset third character as a target character corresponding to the candidate character, wherein the third character is different from the first character and the second character;
and when the obtained converted character is a third character, taking a preset second character as a target character corresponding to the candidate character.
The remote control method includes that the master control device is provided with a plurality of laser transmitters, and the master control device sends the laser information to the controlled device, so that the controlled device responds to the control operation specifically as follows:
respectively transmitting the laser information to each laser transmitter in a plurality of laser transmitters;
and synchronously sending the laser information to the controlled equipment through each laser transmitter so that the controlled equipment responds to the control operation.
The remote control method is characterized in that the laser emitting direction of each laser emitter in the plurality of laser emitters is different.
A second aspect of the embodiments of the present application provides a remote control method, where the method is applied to a controlled device in a remote control system, where the remote control system includes a master device and the controlled device, and the method includes:
the method comprises the steps that controlled equipment receives laser information and determines control information corresponding to the received laser information, wherein the laser information is sent by main control equipment;
and the controlled equipment responds to the control information to execute the operation corresponding to the control information.
The remote control method includes the following specific steps that the controlled device determines the control information corresponding to the received laser information:
the controlled equipment respectively reads a first character, a second character and a third character in the laser information, wherein the first character, the second character and the third character are different from each other;
converting the read first character into a character 0, and converting the read second character and the read third character in the laser signal into a character 1;
and determining control information corresponding to the laser information according to the character 0 obtained by conversion and the character 1 obtained by conversion.
The remote control method includes that the controlled device is configured with a laser receiver, and the receiving of the laser information by the controlled device is specifically as follows: the controlled device receives the laser information through the laser receiver.
A third aspect of embodiments of the present application provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement steps in a remote control method as described in any of the above.
A fourth aspect of the embodiments of the present application provides a terminal device, including: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the remote control method as described in any of the above.
Has the advantages that: compared with the prior art, the remote control method, the storage medium and the terminal equipment are provided, and the method comprises the steps that when the main control equipment receives control operation, the main control equipment determines control information corresponding to the control operation; and the master control equipment generates laser information based on the control information and sends the laser information to the controlled equipment so that the controlled equipment responds to the control operation. The master control equipment in this application receives control operation back, converts the control information that control operation corresponds into laser information to give controlled equipment through laser transmission, can avoid transmitting the problem that the signal that information is disturbed and produce loses on the one hand like this, on the other hand utilizes the remote transmission's of laser characteristic, can increase master control equipment's remote control scope.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without any inventive work.
Fig. 1 is a schematic diagram of a remote control system applied to the remote control method provided by the present application.
Fig. 2 is a flowchart of a remote control method provided in the present application.
Fig. 3 is a flowchart illustrating a laser signal generated by a master control device in the remote control method provided in the present application.
Fig. 4 is a schematic diagram of digital signals in the remote control method provided in the present application.
Fig. 5 is a schematic diagram of a carrier wave in the remote control method provided in the present application.
Fig. 6 is a schematic diagram of a modulated signal in the remote control method provided in the present application.
Fig. 7 is a flowchart of determining a control signal by a controlled device in the remote control method provided by the present application.
Fig. 8 is a schematic structural diagram of a terminal device provided in the present application.
Detailed Description
The present application provides a remote control method, a storage medium, and a terminal device, and in order to make the purpose, technical solution, and effect of the present application clearer and clearer, the present application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The inventor finds that with the widespread use of smart home devices, remote control technology is a concern. The remote control transmission modes commonly used by the existing remote control technology are an infrared transmission mode and a Bluetooth transmission mode, wherein the infrared transmission mode transmits through infrared signals, and the Bluetooth transmission mode transmits through Bluetooth signals. However, whether infrared transmission or bluetooth transmission is adopted, the transmission signal is susceptible to external signal interference during transmission, and the problems of signal loss or large signal noise are caused. Meanwhile, both infrared transmission and bluetooth transmission are only suitable for near field transmission, but when the transmission distance is increased, the problem that the controlled device cannot receive the control signal occurs.
In order to solve the above problem, in this embodiment of the present application, after receiving a control operation, a master control device determines control information corresponding to the control operation; and generating laser information based on the control information, and sending the laser information to the controlled device, so that the controlled device responds to the control operation. The master control equipment in this application receives control operation back, converts the control information that control operation corresponds into laser information to give controlled equipment through laser transmission, can avoid transmitting the problem that the signal that information is disturbed and produce loses on the one hand like this, on the other hand utilizes the remote transmission's of laser characteristic, can increase master control equipment's remote control scope.
For example, the embodiment of the present application can be applied to the scenario shown in fig. 1. In this scenario, first, after receiving a control operation, the main control device 1 determines control information corresponding to the control operation; and generates laser information based on the control information and transmits the laser information to the controlled device 2. The controlled device 2 receives the laser information, converts the laser information into control information, and executes the control information to respond to the control operation.
It should be noted that the above application scenarios are only shown for the convenience of understanding the present application, and the embodiments of the present application are not limited in any way in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
The following further describes the content of the application by describing the embodiments with reference to the attached drawings.
This implementation provides a remote control method, can be used for a remote control system, as shown in fig. 1, the remote control system can include a main control device 10 and a controlled device 20, the main control device 10 and the controlled device 20 communicate through laser, the main control device 10 receives a control operation, converts control information corresponding to the control operation into laser information, and sends the converted laser information to the controlled device 20, the controlled device 20 receives the laser information, converts the laser information into control information, and responds to the control information to execute the control operation. The master control device 10 is configured with a plurality of laser transmitters, and the controlled device 20 is configured with a laser receiver; the master control device 10 sends laser information through a plurality of laser transmitters, and the controlled device 20 receives the laser information through a laser receiver; therefore, the master control device and the controlled device can realize control information transmission based on laser communication, and further realize the control of the master control device on the controlled device. In a specific implementation manner, the master control device may be a remote controller configured with a laser transmitter, and the controlled device may be a household appliance, such as a television, an air conditioner, a smart lamp, and the like.
As shown in fig. 2, the remote control method provided in this embodiment specifically includes:
and S10, when the master control equipment receives the control operation, the master control equipment determines the control information corresponding to the control operation.
Specifically, the control operation may be an operation that triggers the main control device to determine the control information, where the control operation may be an operation formed by a user through a control key on the main control device, a control operation formed by a control instruction sent to the main control device by an external device, a control operation formed by a gesture or voice, or the like. In an implementation manner of this embodiment, the control operation is an operation formed by a user through a control key on the main control device, the control key is configured on the main control device, the control key may include a mechanical key and/or a touch key according to a key type, and the control key may include a power key, a temperature adjustment key, a wind speed adjustment key, a humidity adjustment key, a volume adjustment key, a number key, and the like according to a key function.
For example, the following steps are carried out: the main control equipment is a remote controller, and a power key, a volume adjusting key and a number key are arranged on the remote controller, wherein the power key, the volume adjusting key and the number key are all mechanical keys; the control operation is clicking a power button.
The control information is used for controlling the controlled device, and the control information is determined based on the control operation received by the main control device, wherein the control information can be used for adjusting volume adjustment, turning on/off power supply, adjusting temperature, adjusting program source and the like. In a specific implementation manner, the control information may be a control code, after receiving the control operation, the master device determines the control code corresponding to the control operation, and sends the laser information corresponding to the control code to the controlled device through the configured laser transmitter, and the controlled device may receive the laser information through the configured laser receiver. For example, the control operation is to click a power key when the controlled device is in a power-on state, and the control code corresponding to the control operation is the power-on code, so that the controlled device executes the power-on operation corresponding to the power-on code after receiving the control code.
In an implementation manner of this embodiment, as shown in fig. 3, when the master control device receives a control operation, the determining, by the master control device, control information corresponding to the control operation specifically includes:
when the master control equipment receives a control operation, the master control equipment acquires a modulation signal output by a PWM interface configured by the master control equipment;
and the master control equipment determines control information corresponding to the control operation based on the modulation signal.
Specifically, the main control equipment is provided with an IO interface in advance, acquires the key signal of the control key of the main control equipment through the IO interface, and when the control key is pressed to form the key signal, the IO interface outputs a low level, and when the control key is not pressed, the IO interface outputs a high level. The IO interfaces can correspond to control keys on the main control equipment one by one, each control key corresponds to one IO interface, key signals corresponding to the control keys are collected through the IO interfaces, or a plurality of control keys on the main control equipment correspond to one IO interface, the IO interfaces can adopt a row-column array mode to collect signals, and therefore when the main control equipment is provided with a plurality of control keys, the configuration number of the IO interfaces can be reduced.
In an implementation manner of this embodiment, the low level output by the IO interface is detected by an IC chip (Integrated Circuit) configured by the main control device, and it can be understood that the main control device is configured with an IC chip for detecting a level state of the IO interface, and the IC chip can detect the low level output by the IO interface. In addition, the IC chip is configured with a PWM (Pulse Width Modulation) interface, and a Modulation signal can be output through the PWM interface, where the Modulation signal carries control information corresponding to a key signal formed by the control key. Therefore, when the master control device receives the control operation, the master control device controls the IO interface corresponding to the control operation to output the low level, and the IC chip configured by the master control device detects the low level output by the IO interface and controls the modulation signal output by the PWM interface.
Further, after the signal is modulated through the PWM interface, a pulse signal in the modulated signal may be acquired, digital character information carried by the modulated signal is read based on the pulse signal, and the control information is determined based on the acquired digital character information. For example, as shown in fig. 6, a modulation signal obtained by modulating a digital signal acquired by the IC chip shown in fig. 4 when the IO interface outputs a low level by using a 38K carrier as shown in fig. 5 is shown, where a binary number 1 in the digital signal is converted into a carrier form, and a waveform corresponding to a binary number 0 in the digital signal remains unchanged.
And S20, the master control device generates laser information based on the control information and sends the laser information to the controlled device.
Specifically, the laser information is generated based on the control information and is used for controlling the controlled device to execute an operation corresponding to the control information, wherein the laser information can be sent to the controlled device through a laser transmitter configured by the master control device, and the controlled device receives the laser information through a laser receiver configured by the controlled device, so that the master control device and the controlled device communicate through a laser signal. In addition, the coding mode of the control information is different from the coding mode of the laser information, the coding mode of the control information is a traditional coding mode of remote control communication, for example, RCA protocol coding or NEC protocol coding is adopted, and the laser information is coded by CM protocol coding and the like.
In one implementation manner of this embodiment, the control information includes a plurality of characters, and each of the plurality of characters is a binary character; the generating, by the master control device, the laser information based on the control information specifically includes:
reading each candidate character in the control information;
when the candidate character is 0, taking a preset first character as a target character corresponding to the candidate character;
when the candidate character is 1, determining a target character corresponding to the candidate character according to a reference character corresponding to the candidate character, wherein the reference character is one character in the control information, the reference character is 1, the reference character is located before the candidate character, and no character 1 exists between the reference character and the candidate character;
and generating the laser information according to the target characters corresponding to the candidate characters.
Specifically, the candidate character is a character in the control information, and each character in the control information is a binary character, so that for each character in the control information, the character is a character 0 or a character 1. Thus, the candidate character is used as a character in the control information, and the candidate character is character 0 or character 1. The first character may be preset, the first character comprising at least two binary characters. The first character is used as a converted character corresponding to the character 0, and it can be understood that, when the candidate character is the character 0, the candidate character is directly converted into the first character, in other words, the character 0 of the control information corresponds to the first character in the laser information, and in a specific implementation manner of this embodiment, the first character may be 01. For example, the characters located at the first, third, and fifth bits in the control information according to the character position order are character 0, and the characters located at the first, third, and fifth bits in the laser signal according to the character position order are character 01.
The reference character is a character in the control information, the reference character is 1, the reference character is located before the candidate character, and no character 1 exists between the reference character and the candidate character. For each candidate character, whether a reference character corresponding to the candidate character exists in the control information is detected, so that a converted character corresponding to the candidate character is determined based on the reference character. For example, for control 010011, the candidate character in the second bit is preceded by character 1, and thus is not referenced; and the character at the fifth position is the character 1, and the character 1 does not exist between the character at the second position and the character at the fifth position, so that the character 1 at the second position is the reference character corresponding to the candidate character.
Based on this, the determining, according to the reference character corresponding to the candidate character, a target character corresponding to the candidate character specifically includes:
detecting whether a reference character exists in the control information;
if the reference character is not detected, taking a preset second character as a target character corresponding to the candidate character, wherein the second character is different from the first character;
if the reference character is detected, acquiring a target character corresponding to the reference character;
when the obtained converted character is a second character, taking a preset third character as a target character corresponding to the candidate character, wherein the third character is different from the first character and the second character;
and when the obtained converted character is a third character, taking a preset second character as a target character corresponding to the candidate character.
Specifically, the second character and the third character may be preset, each of the second character and the third character includes at least two binary characters, the number of the binary characters included in the second character is the same as the number of the binary characters included in the third character, and the second character is different from the third character. In addition, the second character and the third character are both different from the first character, and the first character includes the same number of binary characters as the second character. And since the second character includes the same number of binary characters as the third character, the first character includes the same number of binary characters as the third character.
The second character and the third character can be used as converted characters corresponding to the character 1 in the control information, and it can be understood that when a candidate character is the character 1, the candidate character can be converted into the second character or the third character. In a specific implementation manner of this embodiment, the second character may be 00, and the third character may be 11. For example, the characters located at the first, third, and fifth bits in the control information in the order of the character positions are character 1, and the character located at the first bit in the order of the character positions in the laser signal is character 00, the character at the third bit is character 11, and the character at the fifth bit is character 00.
Further, it is not detected that the reference character indicates that all candidate characters located before the candidate character are character 0, and the candidate character is the first character 1 in the control information, at this time, the second character may be directly used as the target character corresponding to the candidate character. Detecting that a reference character indicates that a character 1 exists in candidate characters before the candidate character, at this time, acquiring a converted character corresponding to the reference character in laser information, and when the acquired converted character is a second character, taking a third character as a target character corresponding to the candidate character; when the obtained converted character is a third character, the second character is used as a target character corresponding to the candidate character, so that the second character and the third character are alternately used, a plurality of characters 0 or a plurality of characters 1 can be prevented from continuously appearing in the laser information, code missing in the laser information sending process can be avoided, the error probability of the laser information in the transmission process can be reduced, and the success rate of laser information transmission is improved. Of course, in practical applications, the target character corresponding to the candidate character may also be determined by using the method, for example, when the reference character is not detected, the target character corresponding to the candidate character is set as a third character, or all candidate characters that are 1 are directly set as second characters, or all candidate characters that are 1 are directly set as third characters, or for each candidate character that is 1, the ranking number of the candidate character in the control information is obtained, if the ranking number corresponding to the candidate character is an odd number, the target character corresponding to the candidate character is set as the second character, and if the ranking number corresponding to the candidate character is an even number, the target character corresponding to the candidate character is set as the third character, and the like.
In one implementation manner of this embodiment, the first character is 01, the second character is 11, and the third character is 00, and it is understood that the character 0 in the control information is 01 in the laser information, the character 1 in the control information is 11 in the laser information, or 00. For example, if the control information is 01011100, the first character is 01, the second character is 11, and the third character is 00, then for all characters 0 in the control information, the character 1 located at the second bit is converted into 00, the character 1 located at the fourth bit is converted into 11, the character 1 located at the fifth bit is converted into 00, and the character 1 located at the sixth bit is converted into 11, then the converted laser information is 0111010011000101. The laser information obtained by conversion shows that continuous codes of 4 bits or more than 4 bits do not appear in the laser information, namely 4 characters 0 or 4 characters 1 do not appear continuously, so that missing codes can be avoided in the laser information transmission process.
In an implementation manner of this embodiment, the master control device is configured with a plurality of laser transmitters, and the master control device sends the laser information to the controlled device, so that the controlled device responds to the control operation specifically as follows:
respectively transmitting the laser information to each laser transmitter in a plurality of laser transmitters;
and synchronously sending the laser information to the controlled equipment through each laser transmitter so that the controlled equipment responds to the control operation.
Specifically, each of the plurality of laser transmitters is configured to send laser information formed by the master control device, and a laser emission direction of each laser emission line of the plurality of laser transmitters is different. In an implementation manner of this embodiment, the plurality of laser transmitters are arranged on the main control device at intervals, and any two adjacent laser transmitters among the plurality of laser transmitters are respectively recorded as a first laser transmitter and a second laser transmitter, where a reverse extension line of laser light emitted by the first laser transmitter and a reverse extension line of laser light emitted by the second laser transmitter intersect. Therefore, the laser carrying the laser information is emitted to a plurality of different directions through the plurality of laser emitters, and the success rate of laser information transmission can be improved. This is because laser is unidirectional transmission, when master control equipment inclines for the laser receiver of controlled equipment, master control equipment's laser sender and controlled equipment laser receiver are not on a straight line, make the laser that master control equipment sent can't shine to controlled equipment's laser receiver on, thereby time controlled equipment can't receive the laser information that master control equipment sent, and this application sets up a plurality of laser emitter, and send laser signal simultaneously, controlled equipment can receive the laser information from the different directions of master control equipment, even when master control equipment corresponds controlled equipment and inclines, controlled equipment also can receive the laser information that master control equipment sent. In a specific implementation manner of this embodiment, there is one first laser emitter and at least one second laser emitter in the plurality of laser emitters, where the number of the second laser emitters is equal to the number of the plurality of laser emitters minus one, the plurality of second laser emitters are arranged at intervals around the first laser emitter, and when the laser emitting direction of the first laser emitter is taken as a reference, each laser emitting direction of the plurality of second laser emitters is inclined to a direction away from the reference. In addition, the distances from the second laser transmitters to the first laser transmitter can be the same, and the distances between two adjacent second laser transmitters can be the same, so that the uniformity of laser emitted by the second laser transmitters can be improved, and the probability of receiving laser information by the controlled equipment can be further improved.
And S30, the controlled device receives the laser information and determines the control information corresponding to the received laser information.
Specifically, the laser information is received by the controlled device and is sent to the controlled device by the master control device. The laser information is sent to the controlled equipment by the master control equipment through the laser transmitter, so that the controlled equipment is configured with the laser receiver and receives the laser information through the laser receiver configured by the controlled equipment. In an implementation manner of this embodiment, the laser receiver is interrupted once every preset time, and it can be understood that, as shown in fig. 7, after the laser receiver starts receiving laser information, the controlled device monitors whether a laser signal is received within a preset time period, controls the laser receiver to be interrupted if the laser information is not received within the preset time period, and restarts receiving the laser information, and determines control information corresponding to the received laser information if the laser information is received.
The control information is obtained by converting the controlled device based on the received laser information, and it can be understood that the controlled device converts the laser information into the control information after receiving the laser information, so that the controlled device can respond to the control information. The controlled device may pre-store a coding mode corresponding to the laser information and convert the laser information into the control information based on the coding mode, or the controlled device is configured with a coding mode of the control information, and after the laser information is acquired, the control information corresponding to the laser information is determined based on the laser information and the coding mode corresponding to the control information.
In an implementation manner of this embodiment, when the control information is converted into the laser information, the first character is used to replace the character 0 in the control information, and the second character and the third character are used to replace the character 1 in the control information, so that when the laser information is converted into the control information, the first character, the second character, and the third character in the laser information can be identified, after the first character is obtained, the first character is converted into the character 0, and after the second character and the third character are obtained, both the second character and the third character are converted into the character 1, so as to obtain the control information. Therefore, the determining, by the controlled device, of the control information corresponding to the received laser information specifically includes:
the controlled equipment respectively reads a first character, a second character and a third character in the laser information;
converting the read first character into a character 0, and converting the read second character and the read third character in the laser signal into a character 1;
and determining control information corresponding to the laser information according to the character 0 obtained by conversion and the character 1 obtained by conversion.
Specifically, the first character, the second character and the third character are all one character in the laser information, and when the first character, the second character and the third character in the laser information are read, the characters in the laser information can be sequentially detected as the first character, the second character or the third character according to the character sequence in the laser sequence, so as to obtain the first characters, the second characters and the third characters in the laser information. For example, the laser information is 0111010011000101, the first character is 01, the second character is 11, the third character is 00, the character located at the first bit in the order of characters is 01, the second bit is 11, the third bit is 01, the fourth bit is 00, the fifth bit is 11, the sixth bit is 00, the seventh bit is 01, and the eighth bit is 01, wherein the first, third, seventh, and eighth bits are the first character, the second and fifth bits are the second character, the fourth and sixth bits are the third character, the first, third, seventh, and eighth bits are all converted to 0, the second, fourth, fifth, and sixth bits are all converted to 1, and the obtained control information is 01011100.
And S40, the controlled device responds to the control information to execute the operation corresponding to the control information.
Specifically, the operation is an operation executed by the controlled device, and the operation is a functional operation to be implemented by the controlled device in the control information, for example, when the functional operation corresponding to the control information is a boot operation, the operation is a boot operation; when the function operation corresponding to the control information is the voice-up operation, the operation is the voice-up operation.
In summary, the present embodiment provides a remote control method, a storage medium, and a terminal device, where the method includes that when a main control device receives a control operation, the main control device determines control information corresponding to the control operation; and the master control equipment generates laser information based on the control information and sends the laser information to the controlled equipment so that the controlled equipment responds to the control operation. The master control equipment in this application receives control operation back, converts the control information that control operation corresponds into laser information to give controlled equipment through laser transmission, can avoid transmitting the problem that the signal that information is disturbed and produce loses on the one hand like this, on the other hand utilizes the remote transmission's of laser characteristic, can increase master control equipment's remote control scope.
Based on the above-described remote control method, the present embodiment provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors, to implement the steps in the remote control method according to the above-described embodiment.
Based on the above remote control method, the present application further provides a terminal device, as shown in fig. 8, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the terminal device are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. A remote control method is applied to a master control device in a remote control system, the remote control system comprises the master control device and a controlled device, and the method comprises the following steps:
when a master control device receives a control operation, the master control device determines control information corresponding to the control operation;
and the master control equipment generates laser information based on the control information and sends the laser information to the controlled equipment so that the controlled equipment responds to the control operation.
2. The remote control method according to claim 1, wherein when the master control device receives a control operation, the determining, by the master control device, the control information corresponding to the control operation specifically includes:
when the master control equipment receives a control operation, the master control equipment acquires a modulation signal output by a PWM interface configured by the master control equipment;
and the master control equipment determines control information corresponding to the control operation based on the modulation signal.
3. The remote control method of claim 1, wherein the control information includes a plurality of characters, each of the plurality of characters being a binary character; the generating, by the master control device, the laser information based on the control information specifically includes:
reading each candidate character in the control information;
when the candidate character is 0, taking a preset first character as a target character corresponding to the candidate character;
when the candidate character is 1, determining a target character corresponding to the candidate character according to a reference character corresponding to the candidate character, wherein the reference character is one character in the control information, the reference character is 1, the reference character is located before the candidate character, and no character 1 exists between the reference character and the candidate character;
and generating the laser information according to the target characters corresponding to the candidate characters.
4. The remote control method according to claim 3, wherein the determining the target character corresponding to the candidate character according to the reference character corresponding to the candidate character specifically comprises:
detecting whether a reference character exists in the control information;
if the reference character is not detected, taking a preset second character as a target character corresponding to the candidate character, wherein the second character is different from the first character;
if the reference character is detected, acquiring a target character corresponding to the reference character;
when the obtained converted character is a second character, taking a preset third character as a target character corresponding to the candidate character, wherein the third character is different from the first character and the second character;
and when the obtained converted character is a third character, taking a preset second character as a target character corresponding to the candidate character.
5. The remote control method according to claim 1, wherein the master control device is configured with a plurality of laser transmitters, and the master control device sends the laser information to the controlled device, so that the controlled device responds to the control operation specifically as follows:
respectively transmitting the laser information to each laser transmitter in a plurality of laser transmitters;
and synchronously sending the laser information to the controlled equipment through each laser transmitter so that the controlled equipment responds to the control operation.
6. The remote control method of claim 5, wherein the laser emission direction of each of the plurality of laser emitters is different.
7. A remote control method is applied to controlled equipment in a remote control system, the remote control system comprises a main control equipment and the controlled equipment, and the method comprises the following steps:
the method comprises the steps that controlled equipment receives laser information and determines control information corresponding to the received laser information, wherein the laser information is sent by main control equipment;
and the controlled equipment responds to the control information to execute the operation corresponding to the control information.
8. The remote control method according to claim 7, wherein the determining, by the controlled device, the control information corresponding to the received laser information specifically includes:
respectively reading a first character, a second character and a third character in the laser information by controlled equipment, wherein the first character, the second character and the third character are different from each other;
converting the read first character into a character 0, and converting the read second character and the read third character in the laser signal into a character 1;
and determining control information corresponding to the laser information according to the character 0 obtained by conversion and the character 1 obtained by conversion.
9. The remote control method according to claim 7, wherein the controlled device is configured with a laser receiver, and the receiving of the laser information by the controlled device is specifically: the controlled device receives the laser information through the laser receiver.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps in the remote control method according to any one of claims 1 to 6 and/or to implement the steps in the remote control method according to any one of claims 7 to 9.
11. A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the remote control method of any of claims 1-6 and/or implements the steps in the remote control method of any of claims 7-9.
CN202011181913.XA 2020-10-29 2020-10-29 Remote control method, storage medium and terminal equipment Pending CN114429708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011181913.XA CN114429708A (en) 2020-10-29 2020-10-29 Remote control method, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011181913.XA CN114429708A (en) 2020-10-29 2020-10-29 Remote control method, storage medium and terminal equipment

Publications (1)

Publication Number Publication Date
CN114429708A true CN114429708A (en) 2022-05-03

Family

ID=81309096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011181913.XA Pending CN114429708A (en) 2020-10-29 2020-10-29 Remote control method, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN114429708A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067898A (en) * 2007-05-18 2007-11-07 天津通广微电子有限公司 Domestic electric appliance remote controller utilizing laser transmission technique to control remote-control signal
CN101620664A (en) * 2008-07-03 2010-01-06 中兴通讯股份有限公司 Method for transmitting data information from reader to label
CN101626214A (en) * 2008-07-08 2010-01-13 上海雷诺尔科技股份有限公司 Motor soft starting cabinet with laser remote control system
CN102129580A (en) * 2011-01-18 2011-07-20 北京航空航天大学 Data communication method from label to reader-writer based on Miller codes
CN102325067A (en) * 2011-09-16 2012-01-18 白军民 Intelligent household remote control monitoring system
CN104867312A (en) * 2015-06-02 2015-08-26 阔地教育科技有限公司 Remote control method and remote controller
CN106416143A (en) * 2016-09-02 2017-02-15 北京小米移动软件有限公司 Device control method and device
CN108594777A (en) * 2018-04-20 2018-09-28 百度在线网络技术(北京)有限公司 Intelligent home furnishing control method, device, equipment, system and storage medium
CN109035733A (en) * 2018-07-27 2018-12-18 上海与德科技有限公司 A kind of remote control equipment of household electrical appliances, system, method and storage medium
CN110486895A (en) * 2019-08-30 2019-11-22 珠海格力电器股份有限公司 Air-conditioning switch function control method, computer installation and computer readable storage medium
CN111147085A (en) * 2019-12-20 2020-05-12 苏州浪潮智能科技有限公司 Decoding method and device for signal transcoding

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067898A (en) * 2007-05-18 2007-11-07 天津通广微电子有限公司 Domestic electric appliance remote controller utilizing laser transmission technique to control remote-control signal
CN101620664A (en) * 2008-07-03 2010-01-06 中兴通讯股份有限公司 Method for transmitting data information from reader to label
CN101626214A (en) * 2008-07-08 2010-01-13 上海雷诺尔科技股份有限公司 Motor soft starting cabinet with laser remote control system
CN102129580A (en) * 2011-01-18 2011-07-20 北京航空航天大学 Data communication method from label to reader-writer based on Miller codes
CN102325067A (en) * 2011-09-16 2012-01-18 白军民 Intelligent household remote control monitoring system
CN104867312A (en) * 2015-06-02 2015-08-26 阔地教育科技有限公司 Remote control method and remote controller
CN106416143A (en) * 2016-09-02 2017-02-15 北京小米移动软件有限公司 Device control method and device
CN108594777A (en) * 2018-04-20 2018-09-28 百度在线网络技术(北京)有限公司 Intelligent home furnishing control method, device, equipment, system and storage medium
CN109035733A (en) * 2018-07-27 2018-12-18 上海与德科技有限公司 A kind of remote control equipment of household electrical appliances, system, method and storage medium
CN110486895A (en) * 2019-08-30 2019-11-22 珠海格力电器股份有限公司 Air-conditioning switch function control method, computer installation and computer readable storage medium
CN111147085A (en) * 2019-12-20 2020-05-12 苏州浪潮智能科技有限公司 Decoding method and device for signal transcoding

Similar Documents

Publication Publication Date Title
RU2604422C1 (en) Method and apparatus for transmitting infrared signal and remote control panel
WO2016107007A1 (en) Infrared remote control circuit, method, and terminal
US20110153885A1 (en) Plug-in Peripheral Device for Enabling Smart Portable Device to be Universal Remote Control
CN203325206U (en) Infrared remote-control learning and control device
EP1015977B1 (en) Systems and methods for intermittently communicating diagnostic information from user input devices
CN102325067A (en) Intelligent household remote control monitoring system
CN102461339B (en) Pushbits for semi-synchronized pointing
CN101719311A (en) Method for infrared remote control of computer
CN102483879B (en) Remote controllers and utilize it to select the method for light source from multiple light source
CN103812535A (en) Bluetooth equipment connecting method and Bluetooth equipment
CN103812536A (en) Bluetooth equipment connecting method and Bluetooth equipment
CN113034886A (en) Remote control method and device
CN111627200B (en) Signal modulation method and circuit based on infrared protocol and remote control terminal
JP6612853B2 (en) Remote control device, user device, system, method, computer program, identification signal
CN104794881A (en) Remote control method and remote controller
CN114429708A (en) Remote control method, storage medium and terminal equipment
KR100495959B1 (en) Remote Controller System
CN112558797B (en) Active pen, control method and device thereof, and computer-readable storage medium
JP5424493B2 (en) Remote control conversion adapter device
CN207966177U (en) Network self-adapting remote control
CN105516766A (en) Remote-control sending device and method and remote-control receiving device and method
CN211183930U (en) Infrared remote control switch based on singlechip
GB2396234A (en) Transmitting and receiving wireless keyboard data
JP2006333348A (en) Remote controller, command transmission method, and command receiver
CN113905262B (en) Control method, device, system 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