Search

CN-122024460-A - Infrared remote control method and device for two-way communication

CN122024460ACN 122024460 ACN122024460 ACN 122024460ACN-122024460-A

Abstract

The invention relates to the technical field of communication control. The method includes that after a remote controller detects control instructions input by a user, corresponding verification information is added to each control instruction, the control instructions of the verification information are packaged into control instructions with verification bits by utilizing a preset infrared communication protocol and are transmitted, after the controlled equipment receives the control instructions with the verification bits, and after receiving the execution feedback instruction, the remote controller judges whether the execution of the control instruction input by the user is successful or not based on whether the receiving time of the execution feedback instruction is within the preset time window and whether the verification information carried in the execution feedback instruction is consistent with the additional verification information in the control instruction. The invention has the effect of realizing accurate communication between the remote controller and the controlled equipment.

Inventors

  • LIU RUFENG
  • ZHANG YILAN

Assignees

  • 深圳市兰丰科技有限公司

Dates

Publication Date
20260512
Application Date
20260305

Claims (10)

  1. 1. An infrared remote control method for two-way communication, comprising: After detecting control instructions input by a user, the remote controller adds corresponding verification information to each control instruction, and encapsulates the control instructions of the verification information into control instructions with verification bits by utilizing a preset infrared communication protocol and sends the control instructions; After receiving the control instruction with the verification bit, the controlled equipment completes corresponding function operation within a defined preset time window, and returns an execution feedback instruction containing the verification information to the remote controller; after the remote controller receives the execution feedback instruction, whether the execution of the control instruction input by the user is successful or not is judged based on whether the receiving time of the execution feedback instruction is within the preset time window and whether the verification information carried in the execution feedback instruction is consistent with the verification information added in the control instruction.
  2. 2. The infrared remote control method for two-way communication according to claim 1, wherein said infrared remote control method for two-way communication further comprises: when the user input comprises a plurality of continuous control instructions, the remote controller sequentially combines the plurality of control instructions to form a chain instruction sequence, and after receiving chain feedback returned by the controlled equipment, the remote controller judges corresponding execution results of the control instructions in the chain instruction sequence one by one based on response bitmap information contained in the chain feedback.
  3. 3. The method according to claim 1, wherein when the user input includes a plurality of continuous control instructions, the remote controller sequentially combines the plurality of control instructions to form a chain instruction sequence, and after receiving a chain feedback returned by the controlled device, determines, one by one, a corresponding execution result of each control instruction in the chain instruction sequence based on response bitmap information included in the chain feedback, including: Under the condition that the user input comprises a plurality of continuous control instructions, adding corresponding verification information for each control instruction in turn according to an input sequence, and constructing the chained instruction sequence; Each control instruction in the chain instruction sequence is combined and packaged in sequence to generate chain control information for transmission; After the chained control information is sent, monitoring the chained feedback returned by the controlled equipment, and extracting the response bitmap information and feedback content corresponding to the verification information from the chained feedback; Based on the response mark state of each bit in the response bitmap information, combining the arrangement sequence of each control instruction in the chained instruction sequence, judging whether each control instruction is successfully executed one by one so as to obtain the execution result.
  4. 4. The infrared remote control method according to claim 1, wherein after detecting the control command input by the user, the remote controller adds corresponding verification information to each control command, encapsulates the control command of the verification information into a control command with a verification bit by using a preset infrared communication protocol, and sends the control command, and comprises: Constructing verification information based on the function type corresponding to the control instruction and the generation time information, and embedding the verification information into a verification field of the control instruction to form to-be-sent control data; Performing field integrity check on the to-be-sent control data, and performing infrared coding encapsulation processing if the field length and format meet the requirements of the infrared communication protocol; After the encapsulation of the infrared codes is completed, encapsulated control data are added into a transmission buffer queue, and the transmission priority is determined according to the execution urgency of the control instruction and the historical response success rate; when the remote controller is in an idle state and the transmission priority of the current control instruction reaches a preset transmission threshold, triggering infrared emission operation, and recording corresponding verification information and transmission time after transmission is completed.
  5. 5. The infrared remote control method for two-way communication according to claim 4, wherein said step of determining the transmission priority comprises: Searching a corresponding emergency degree grade value based on the function type of the control instruction, and acquiring a basic priority coefficient representing the current operation intention of a user; Calculating a feedback weight coefficient representing communication stability by combining the average response success rate corresponding to the control instruction in the historical instruction feedback record; weighting the basic priority coefficient and the feedback weight coefficient to obtain the comprehensive priority score of the current control instruction; and comparing the comprehensive priority score with a preset sending threshold, and if the comprehensive priority score is higher than the sending threshold, judging that the current control instruction has a sending condition.
  6. 6. The infrared remote control method according to claim 1, wherein after receiving the control instruction with the verification bit, the controlled device completes the corresponding function operation within a defined preset time window, and returns an execution feedback instruction containing the verification information to the remote controller, and the method comprises the steps of; acquiring operation type information from the control instruction with the verification bit; judging whether the operation type information corresponds to an executable function type or not, and confirming whether the controlled equipment can complete a function response flow corresponding to the executable function type within the preset time window based on the preset time window; After the function response flow is completed, an execution feedback instruction is constructed, the verification information is filled in the execution feedback instruction, and a state identification field for indicating a function execution result is added; and packaging the execution feedback instruction into an infrared data format, and sending the infrared data format to the remote controller through the controlled equipment.
  7. 7. The method according to claim 6, wherein determining whether the operation type information corresponds to an executable function type, and determining whether the controlled device can complete a function response procedure corresponding to the executable function type within the preset time window based on the preset time window, comprises: acquiring function configuration information pre-stored in the controlled equipment, and extracting a function mapping field and a function duration field in the function configuration information; inquiring in the function mapping field according to the operation type information to obtain a corresponding function type identifier; reading the running state information of the controlled equipment, and judging whether the function corresponding to the function type identifier is in an executable state or not; Acquiring the expected execution duration corresponding to the function type identifier from the function duration field when the function is in the executable state; comparing the expected execution duration with the preset time window, and if the expected execution duration is not larger than the preset time window, confirming that the function response flow corresponding to the function type can be completed within the preset time window.
  8. 8. The method according to claim 1, wherein the remote controller, after receiving the execution feedback instruction, determines whether the execution of the control instruction input by the user is successful based on whether the reception time of the execution feedback instruction is within the preset time window and whether the verification information carried in the execution feedback instruction is consistent with the verification information attached to the control instruction, comprising: recording the corresponding sending time and the verification information of the control instruction when sending; when the execution feedback instruction is received, extracting the receiving time and the verification information; Calculating the time difference between the receiving time and the sending time, and judging whether the time difference is within the preset time window or not; Comparing the verification information carried in the execution feedback instruction with the verification information added in the control instruction under the condition that the time difference is within the preset time window; And when the verification information carried in the execution feedback instruction is consistent with the verification information added in the control instruction, judging that the control instruction input by the user is successfully executed.
  9. 9. The method according to claim 8, wherein when the authentication information carried in the execution feedback instruction is identical to the authentication information added to the control instruction, determining that the control instruction input by the user is executed successfully, further comprises: if the verification information carried in the execution feedback instruction is inconsistent with the verification information added in the control instruction, marking that the control instruction fails to execute, and clearing all information to be processed corresponding to the control instruction.
  10. 10. An infrared remote control device for two-way communication, characterized in that the infrared remote control device for two-way communication comprises: the control instruction generation module is used for adding corresponding verification information to each control instruction after the remote controller detects the control instruction input by the user, and packaging the control instruction of the verification information into a control instruction with a verification bit by utilizing a preset infrared communication protocol and sending the control instruction; The function response execution module is used for completing corresponding function operation within a defined preset time window after the controlled equipment receives the control instruction with the verification bit, and returning an execution feedback instruction containing the verification information to the remote controller; And the execution result judging module is used for judging whether the execution of the control instruction input by the user is successful or not based on whether the receiving time of the execution feedback instruction is within the preset time window and whether the verification information carried in the execution feedback instruction is consistent with the verification information added in the control instruction after the execution feedback instruction is received by the remote controller.

Description

Infrared remote control method and device for two-way communication Technical Field The invention relates to the technical field of communication control, in particular to an infrared remote control method and device for two-way communication. Background In the age of rapid development of technology today, infrared remote control technology is widely used in a plurality of fields. From various electrical equipment in families, such as televisions, air conditioners, sound equipment and the like, to some industrial control scenes, the infrared remote control greatly improves the control experience of people on the equipment by virtue of convenience and low cost. The device enables a user to easily operate the device outside a certain distance without complicated physical contact, and brings great convenience to life and work. With the rise of the intelligent home concept, the infrared remote control technology becomes an important bridge for connecting users and various intelligent devices, and the development of home intellectualization is further promoted. However, the conventional unidirectional communication infrared remote control method has obvious defects. Without a feedback mechanism, the remote control cannot know whether the controlled device successfully receives and executes the control instruction. When the instruction execution fails due to signal interference, equipment failure and the like, a user cannot obtain feedback in time and can only repeatedly try to send the instruction, so that the control efficiency and reliability are reduced. Meanwhile, when a plurality of continuous control instructions are processed, because of lack of effective management on instruction execution results, it is difficult to accurately judge the execution condition of each instruction, and control confusion may occur. Disclosure of Invention In order to realize accurate communication between a remote controller and controlled equipment, the application provides an infrared remote control method and device for two-way communication. The first object of the present application is achieved by the following technical solutions: An infrared remote control method of two-way communication, comprising: After detecting control instructions input by a user, the remote controller adds corresponding verification information to each control instruction, and encapsulates the control instructions of the verification information into control instructions with verification bits by utilizing a preset infrared communication protocol and sends the control instructions; After receiving the control instruction with the verification bit, the controlled equipment completes corresponding function operation within a defined preset time window, and returns an execution feedback instruction containing the verification information to the remote controller; after the remote controller receives the execution feedback instruction, whether the execution of the control instruction input by the user is successful or not is judged based on whether the receiving time of the execution feedback instruction is within the preset time window and whether the verification information carried in the execution feedback instruction is consistent with the verification information added in the control instruction. By adopting the technical scheme, the bidirectional verification relation between the control instructions and the execution feedback can be established, and the execution state of each control instruction after infrared transmission can be accurately judged. And adding verification information into each control instruction, packaging in a form with verification bits, and transmitting the verification information, so that feedback information returned by the controlled equipment after execution has verifiability. After the remote controller receives the feedback information, whether the control instruction is successfully executed is comprehensively judged according to whether the receiving time falls within a defined preset time window and whether the verification information in the feedback is consistent with the sending time, so that the control instruction can be timely found and responded when the instruction has interference, delay or abnormality. Preferably, the infrared remote control method for two-way communication further comprises: when the user input comprises a plurality of continuous control instructions, the remote controller sequentially combines the plurality of control instructions to form a chain instruction sequence, and after receiving chain feedback returned by the controlled equipment, the remote controller judges corresponding execution results of the control instructions in the chain instruction sequence one by one based on response bitmap information contained in the chain feedback. By adopting the technical scheme, the high-efficiency control logic for instruction combination, unified transmission and distributed verificat