Bidirectional communication method, controller and remote controller
By generating and sending a specific sequence of pseudo information, interval information and command information in the remote control, the problem of the air conditioner being unable to correctly identify the command information is solved, and the integrity and reliability of two-way communication between the remote control and the air conditioner are achieved.
Patent Information
- Application Number
- CN202410768392.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-11
AI Technical Summary
In the existing two-way communication technology between the remote control and the air conditioner, the command information lacks a standard sending sequence during the transmission process, resulting in the air conditioner being unable to correctly identify it and causing erroneous feedback information.
By generating the sending sequence of pseudo information, interval information and command information in the remote control, and sending it to the air conditioner in this order through the sending component, the air conditioner determines the instructions of the remote control according to the sending sequence, and analyzes the air conditioner through the receiving component reply information to ensure the integrity and reliability of communication.
This ensures that the air conditioner can correctly identify the start and end of the transmission of command information, avoids conflicts between messages and data loss, and improves the integrity and reliability of communication.
Smart Images

Figure CN118764042A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of two-way communication, and in particular to a two-way communication method, a controller and a remote controller. Background Art
[0002] With the development of science and technology, it has affected all aspects of people's lives. Air conditioners have become more intelligent and life has become more technological. As the control center of the air conditioner, the remote control, wired remote control and wireless remote control play an important role. The traditional air conditioner remote control has a one-to-one one-way communication function with the air conditioner. The communication distance is short, and the air conditioner maintenance is difficult. It cannot meet the user's refined management needs. Users prefer the technical solution of two-way communication between the air conditioner remote control and the air conditioner.
[0003] However, there are still many deficiencies in the existing technical solutions for two-way communication between remote controllers and air conditioners. For example, the operation status of the air conditioner can be checked through the existing two-way communication remote controller, but when the user changes the air conditioner state by pressing a button and wants to check the operation status of the air conditioner, the remote controller will send multiple commands to the air conditioner in a short period of time. There is no standard sending order in the continuous command information stream, and the air conditioner cannot correctly identify the information of each command, thereby sending out wrong feedback information. Summary of the invention
[0004] The embodiments of the present application provide a two-way communication method, a controller and a remote controller, which help the air conditioner to correctly identify the start and end of the transmission of command information and ensure the integrity and reliability of the communication.
[0005] In a first aspect, an embodiment of the present application provides a two-way communication method, which is applied to a remote controller, wherein the remote controller includes a sending component, a receiving component, and a display component, and the remote controller is communicatively connected with an air conditioner, and the two-way communication method includes:
[0006] In response to a key command, switching to a sending state, generating instruction information according to the key command, the instruction information being used to query the operating parameters of the air conditioner and / or instructing the air conditioner to adjust the operating parameters;
[0007] generating a sending order of pseudo information, interval information and the instruction information according to the key command, and sending the pseudo information, the interval information and the instruction information to the air conditioner through the sending component according to the sending order, so that the air conditioner determines the instruction of the remote controller according to the sending order;
[0008] Switching to a receiving state and waiting for a reply message sent by the air conditioner;
[0009] When the receiving component receives the reply information sent by the air conditioner, the reply information is parsed to obtain the operating status data of the air conditioner, wherein the reply information includes the current operating status data of the air conditioner;
[0010] The operating status data is displayed via the display component.
[0011] In some embodiments, generating instruction information according to the key instruction includes:
[0012] If the key command is used to query the operating parameters of the air conditioner, encoding is performed according to the key command to generate first command information as the command information;
[0013] If the key command is used to instruct the air conditioner to adjust operating parameters, encoding is performed according to the key command to generate second command information and third command information as the command information.
[0014] In some embodiments, the generating of the pseudo information, the interval information and the sending order of the instruction information according to the key instruction includes:
[0015] If the instruction information is the first instruction information, determining the sending order to be the dummy information, the interval information and the first instruction information;
[0016] If the instruction information is the second instruction information and the third instruction information, the sending order is determined to be the dummy information, the interval information, the second instruction information, the interval information and the third instruction information.
[0017] In some embodiments, the two-way communication method further comprises:
[0018] When it is determined that the receiving time of the reply information does not exceed the preset time period, verifying the reply information;
[0019] Determine that the reply information that passes the verification corresponds to the instruction information.
[0020] In some embodiments, the two-way communication method further comprises:
[0021] When it is determined that the receiving time of the reply information exceeds the preset time period, the reply information sent by the air conditioner is received again.
[0022] In some embodiments, the two-way communication method further comprises:
[0023] When the reply message verification fails, the display component prompts the user to press the button again and starts timing;
[0024] When no key command from the user is received within the preset timing period, the trusted state is exited.
[0025] In some embodiments, displaying the operating status data by the display component includes:
[0026] Obtaining multiple parameters of the air conditioner according to the operating status data;
[0027] The display component switches and displays the plurality of parameters at fixed display time intervals.
[0028] In a second aspect, an embodiment of the present application provides a communication method, which is applied to an air conditioner, wherein the air conditioner is communicatively connected with a remote controller applied to the two-way communication method as described in the first aspect, and the communication method includes:
[0029] identifying a sending order of the pseudo information, the interval information, and the instruction information to obtain sequence information;
[0030] If the sequence information matches the preset information, a reply message is generated according to the instruction information, and the reply message is sent to the remote controller.
[0031] In a third aspect, an embodiment of the present application provides a controller including a memory and a processor, wherein the memory stores a computer program, and the processor implements the two-way communication method described in the first aspect when executing the computer program.
[0032] In a fourth aspect, an embodiment of the present application provides a remote controller, comprising a sending component, a receiving component, a display component and the controller as described in the third aspect.
[0033] A two-way communication method, controller, remote control and medium provided in an embodiment of the present application have at least the following beneficial effects: the remote control switches to a sending state in response to a key command, generates command information according to the key command, generates a sending order of pseudo information, interval information and command information according to the key command, and sends the pseudo information, interval information and command information to the air conditioner through the sending component in the sending order, so that the air conditioner determines the command of the remote control according to the sending order, switches to a receiving state to wait for the reply information sent by the air conditioner, and when the reply information sent by the air conditioner is received by the receiving component, the reply information is parsed to obtain the operating status data of the air conditioner, and the operating status data is displayed by the display component; therefore, in the two-way communication process between the remote control and the air conditioner, in the embodiment of the present application, command information is generated and a sending order is determined according to the key command in the remote control, and the determined sending order helps the air conditioner to correctly identify the start and end of the command information transmission, avoids conflicts between messages and data loss, and ensures the integrity and reliability of communication.
[0034] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flowchart of a two-way communication method provided in an embodiment of the present application;
[0036] Figure 2 It is a flowchart of a method for generating instruction information provided in an embodiment of the present application;
[0037] Figure 3 It is a flowchart of a method for determining a sending order provided in an embodiment of the present application;
[0038] Figure 4 It is a flowchart of a method for verifying reply information provided by an embodiment of the present application;
[0039] Figure 5 It is a flowchart of another method for verifying reply information provided by an embodiment of the present application;
[0040] Figure 6 It is a flowchart of a method for displaying operating status data of an air conditioner provided in an embodiment of the present application;
[0041] Figure 7 It is a flow chart of a communication method provided in an embodiment of the present application;
[0042] Figure 8 is a schematic diagram of the structure of a controller provided in an embodiment of the present application;
[0043] Fig. 9 It is a schematic diagram of the overall process of a two-way communication method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In addition, the characteristics, operations or features described in the specification can be combined in any appropriate manner to form various implementation methods. At the same time, the steps or actions in the method description can also be replaced or adjusted in order in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the accompanying drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a necessary sequence, unless otherwise specified that a certain sequence must be followed.
[0045] In the description of this application, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0046] The serial numbers of the components in this document, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning. The "connection" and "coupling" mentioned in this application, unless otherwise specified, include direct and indirect connections (couplings).
[0047] With the development of science and technology, it affects all aspects of people's lives. Air conditioners have become more intelligent, and life has become more technological. There are two technical solutions for remote controllers in the market. The first is to control the air conditioner through one-way communication between the wireless remote controller and the air conditioner. The user issues a key command on the wireless remote controller, and the wireless remote controller sends the command to the air conditioner, thereby changing the operating state of the air conditioner, but cannot obtain the operating information of the air conditioner; the second is to control the air conditioner through two-way communication between the wired remote controller and the air conditioner. The user issues a key command on the wired remote controller, and the command is sent to the air conditioner through a wired connection, thereby changing the operating state of the air conditioner or obtaining the operating information of the air conditioner, but it limits the user's range of movement and usage scenarios. Both of the above solutions have shortcomings. If the two solutions are combined, the wireless remote controller and the wired air conditioner can communicate with the air conditioner in a two-way manner. However, the air conditioner operating information needs to be viewed on the wired remote controller, which cannot really solve the problem, and the production cost is higher. Therefore, users prefer the technical solution of two-way communication between the air conditioner remote controller and the air conditioner.
[0048] However, the existing technical solutions for two-way communication between remote controllers and air conditioners are still in the development stage and have many shortcomings. For example, the operation status of the air conditioner can be checked through the existing two-way communication remote controller, but when the user changes the air conditioner state by pressing a button and wants to check the operation status of the air conditioner, the remote controller will send multiple commands to the air conditioner in a short period of time. There is no standard sending order in the continuous command information stream, and the air conditioner cannot correctly identify the information of each command, thereby sending out wrong feedback information.
[0049] Based on this, the embodiment of the present application provides a two-way communication method, a controller and a remote control, which help the air conditioner to correctly identify the start and end of the command information transmission, and ensure the integrity and reliability of the communication.
[0050] A two-way communication method, a controller and a remote controller are described below with reference to the accompanying drawings.
[0051] Reference Figure 1 As shown, Figure 1 1 is a flow chart of a two-way communication method provided in an embodiment of the present application. The method is applied to a remote controller, the remote controller includes a sending component, a receiving component and a display component, and the remote controller is connected to the air conditioner for communication. The method may include but is not limited to the following steps:
[0052] Step S110, in response to the key command, switching to the sending state, generating instruction information according to the key command, the instruction information is used to query the operating parameters of the air conditioner and / or instruct the air conditioner to adjust the operating parameters;
[0053] It should be noted that when a user presses a button on the remote control to trigger a button command, the controller in the remote control parses the button command into a corresponding operation type, such as querying operating parameters or adjusting operating parameters, according to a predefined mapping relationship. According to the operation type obtained by the analysis, the sending component generates corresponding instruction information, including the instruction type and possible parameters. For example, if it is a query operation, the instruction information may be "query operating parameters"; if it is an adjustment operation, the instruction information may include specific parameter settings.
[0054] It is understandable that the generated instruction information may need to be encapsulated to ensure the integrity and correctness of the data.
[0055] Step S120, generating a sending order of dummy information, interval information and command information according to the key command, and sending the dummy information, interval information and command information to the air conditioner in the sending order through the sending component, so that the air conditioner determines the remote control command according to the sending order;
[0056] It should be noted that the controller in the remote control generates the sending order of pseudo information, interval information and command information according to the key instructions, such as querying operating parameters or adjusting operating parameters, wherein the pseudo information can be false data added to increase the amount of data, confuse information or test the system, which is only used to fill in the gaps in the communication or provide certain interference, thereby making the communication content more complex, increasing security or protecting privacy; the interval information can be a specific time interval used to separate different data frames or signals, and each command information is marked at the end by a fixed interval information to inform the recipient of the end of the current command information and prepare to receive the next command information.
[0057] It can be understood that in the embodiments of the present application, by determining the sending order, it can ensure that messages are transmitted and processed in a specific order in two-way communication, avoiding message confusion and disorder; determining the sending order can help avoid conflicts and data loss between messages, ensure the integrity and reliability of communication, and the air conditioner effectively identifies the remote control's instructions through the sending order, thereby improving communication efficiency and accuracy.
[0058] Step S130, switching to a receiving state and waiting for a reply message sent by the air conditioner;
[0059] It should be noted that after the remote control sends information to the air conditioner, it automatically switches to the receiving state and enters the waiting mode. The controller monitors the information received by the receiving component and prepares to receive reply information from the air conditioner.
[0060] Step S140, when the reply information sent by the air conditioner is received by the receiving component, the reply information is parsed to obtain the operating status data of the air conditioner, and the reply information includes the current operating status data of the air conditioner;
[0061] It should be noted that after receiving the reply information, the receiving component needs to parse the data and extract the operating status data of the air conditioner, which may include the current temperature setting, ambient temperature, working mode, wind speed, current power consumption and power consumption of the air conditioner.
[0062] It should be noted that the format and structure of the data are determined in the received data, and the received data is segmented according to predefined rules to extract separate data fields. For each data field, parsing is performed according to the communication protocol and data format. In the process of parsing the data content, the field containing the air conditioner operating status data is found.
[0063] It can be understood that by receiving the reply information sent by the air conditioner through the receiving component and parsing to obtain the operating status data of the air conditioner, it can help the user to monitor and control the operating status of the air conditioner in real time to provide better user experience and management convenience.
[0064] Step S150, displaying the running status data via a display component.
[0065] It should be noted that after parsing and extracting the operating status data of the air conditioner, the controller can pass the data to the display device or controller for displaying the current operating status of the air conditioner. This can be to display the relevant information on the screen or present it to the user in other ways.
[0066] Reference Figure 2 As shown, Figure 2 : is a flow chart of a method for generating instruction information provided by an embodiment of the present application, and the method may include but is not limited to the following steps:
[0067] Step S210, if the key command is used to query the operating parameters of the air conditioner, encode according to the key command to generate first command information as the command information;
[0068] It should be noted that when the user presses a button on the remote control, the query button instruction is triggered, and the button instruction is parsed into an operation type for querying the operating parameters of the air conditioner according to a pre-defined mapping relationship, thereby encoding and generating the first instruction information for querying the air conditioner set temperature, ambient temperature, operating time and air conditioner operating version.
[0069] Step S220: If the key command is used to instruct the air conditioner to adjust the operating parameters, the key command is encoded to generate second command information and third command information as command information.
[0070] It should be noted that when the user presses a button on the remote control, the set button instruction is triggered, and the button instruction is parsed into an operation type instructing the air conditioner to adjust the operating parameters according to a pre-defined mapping relationship, thereby encoding and generating a second instruction information for instructing the air conditioner to adjust the operating mode and operating time and a third instruction information for instructing the air conditioner to feedback the operating information, wherein the operating information may include power consumption and operating mode.
[0071] Reference Figure 3 As shown, Figure 3 : is a flow chart of a method for determining a sending order provided in an embodiment of the present application. The method may include but is not limited to the following steps:
[0072] Step S310, if the instruction information is the first instruction information, determining the sending order is dummy information, interval information and the first instruction information;
[0073] It should be noted that the sending order is determined to be pseudo information, interval information and first instruction information to ensure that the transmission and reception of instruction information can be carried out correctly. First, pseudo information is sent. Pseudo information is virtual information used to start the communication process, sometimes also called synchronization information. Sending pseudo information can help the receiving device accurately locate the start of communication and ensure the correct reception of subsequent data. Pseudo information is usually pre-defined fixed data or pattern used to start the communication process; then send interval information. Interval information is used to provide a time interval between sending different data packets or instructions to avoid conflicts or confusion between data packets. By inserting interval information, it can be ensured that the receiving device has enough time to process the previous data packet and prepare to receive the next data packet. Interval information helps to improve the reliability and stability of communication; finally, send the first instruction information. The first instruction information is the actual content of the generated instruction to query the operating parameters of the air conditioner, and is also the actual instruction sent to the air conditioner, which is used to request the current operating parameter data of the air conditioner.
[0074] Step S320: If the instruction information is the second instruction information and the third instruction information, determine the sending order as dummy information, interval information, second instruction information, interval information and third instruction information.
[0075] It should be noted that after sending the pseudo information and the interval information, the second instruction information is sent. The second instruction information actually contains instruction content instructing the air conditioner to perform specific operations or adjust operating parameters, which is used to issue specific instructions or requests to the air conditioner; then the interval information is sent again to separate the second instruction information and the third instruction information to ensure that the air conditioner correctly receives and processes the second instruction information to avoid conflicts with subsequent instruction information; finally, the third instruction information is sent, which contains relevant content of the query instruction to ensure that the air conditioner correctly executes the operation specified in the second instruction information or adjusts the operating parameters, and feeds back the operating parameters to the remote control.
[0076] Reference Figure 4 As shown, Figure 4 : is a flowchart of a method for verifying reply information provided by an embodiment of the present application. The method may include but is not limited to the following steps:
[0077] Step S410, when it is determined that the time of receiving the reply information does not exceed the preset time period, verify the reply information, and determine that the reply information that passes the verification corresponds to the instruction information;
[0078] Step S420: When it is determined that the receiving time of the reply information exceeds the preset time period, the reply information sent by the air conditioner is received again.
[0079] It should be noted that after receiving the reply information, it is necessary to record the time when the reply information is received and compare it with the preset time period, which can be 2 seconds. If the time when the reply information is received does not exceed the preset time period, the reply information needs to be verified to ensure that the reply information corresponds to the command information sent by the remote control. After verification, it can be determined that the reply information is a reply to the command information sent previously, and the reply information can be parsed and processed accordingly, such as obtaining the execution result or extracting the operation information; if it is determined that the reception time of the reply information exceeds the preset time period, the re-receiving mechanism is immediately started to re-obtain the correct reply information to ensure the timeliness and reliability of communication.
[0080] Reference Figure 5 As shown, Figure 5 : is a flow chart of another method for verifying reply information provided by an embodiment of the present application. The method may include but is not limited to the following steps:
[0081] Step S510, when the reply message verification fails, the display component prompts the user to press the key again and starts timing;
[0082] Step S520: When no key input from the user is received within the preset timing period, the trusted state is exited.
[0083] It should be noted that the time of receiving the reply information does not exceed the preset time period, and the reply information is verified to ensure that the reply information corresponds to the command information sent by the remote control. By comparing whether the air conditioner model code in the received data is consistent with the remote control model code, if the two are consistent, it means that the communication parties match, and the data can continue to be verified; by further comparing the sent command information and the received reply information, if the command information matches the reply information, it means that the reply information corresponds to the command information; by calculating the received check value, and comparing it with the check value of the reply information, if the check value matches, it means that the data is not damaged or wrong during the transmission process. When any of the requirements are not met during the verification process, the verification result of the reply information received by the remote control is not passed, and the display component can display a prompt message to the user, prompting the user to press the button again to resend the command, which can be achieved by displaying the corresponding text or prompt on the screen, and starting the timer, at which time the user can press the button again to trigger the key command and perform the corresponding operation; if the user's key command is not received within the preset time, the system should exit the trusted state and take corresponding processing measures, which may include clearing the current state, displaying an error message or returning to the previous state.
[0084] It is understandable that the received data is checked usually by using a checksum, CRC check or other check methods, which are not listed here one by one.
[0085] Reference Figure 6 As shown, Figure 6 1 is a flow chart of a method for displaying operating status data of an air conditioner provided in an embodiment of the present application. The method may include but is not limited to the following steps:
[0086] Step S610, obtaining multiple parameters of the air conditioner according to the operating status data;
[0087] Step S620, switching and displaying multiple parameters at fixed intervals of display time by display components.
[0088] It should be noted that, based on the operating status data of the air conditioner, multiple parameters that need to be displayed, such as temperature, humidity, wind speed, mode, etc., are obtained, and the time interval for displaying each parameter is determined, such as switching the parameter display every few seconds.
[0089] In one embodiment of the present application, switching jumps are performed on the screen of the display component every 2 seconds, in the order of air conditioner maintenance status, air conditioner operation status, perceived temperature, indoor humidity, outdoor temperature, today's electricity bill, this month's electricity bill and last month's electricity bill, and finally returns to the home page interface.
[0090] Reference Figure 7 As shown, Figure 7 : is a flow chart of a communication method provided in an embodiment of the present application. The method is applied to an air conditioner. The air conditioner is connected to a remote controller for communication with the two-way communication method described above. The method may include but is not limited to the following steps:
[0091] Step S710, identifying the sending order of the pseudo information, the interval information and the instruction information, and obtaining the sequence information;
[0092] It should be noted that the air conditioner obtains the sending sequence information of the remote control by identifying the sending sequence of pseudo information, interval information and command information, thereby quickly receiving and processing the command information from the remote control, thereby improving the response speed; on the other hand, it ensures that the air conditioner receives and executes the commands from the remote control in the correct order, avoids confusion or errors in command execution, avoids data conflicts and command interference, ensures that each command is executed in the correct timing, and increases the stability of two-way communication.
[0093] Step S720: If the sequence information matches the preset information, a reply message is generated according to the instruction information, and the reply message is sent to the remote controller.
[0094] It should be noted that it is necessary to verify whether the sending sequence information of the remote control matches the preset information of the air conditioner, and determine the operation and response content to be taken by identifying and parsing the command information. According to the parsed command information, the air conditioner changes the operating status and generates corresponding reply information or generates corresponding reply information separately. The reply information may include confirmation of command reception, execution status feedback, current status information, etc. The air conditioner returns the generated reply information to the remote control.
[0095] Reference Figure 8 As shown, Figure 8 It is a structural schematic diagram of a controller provided in an embodiment of the present application.
[0096] The controller 800 includes:
[0097] The processor 810 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant instructions to implement the technical solutions provided in the embodiments of the present application;
[0098] The memory 820 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 820 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 820, and the processor 810 calls and executes the technical solutions of the embodiments of this application;
[0099] Input / output interface 830, used to implement information input and output;
[0100] The communication interface 840 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0101] bus 850 , which transmits information between the various components of the device (e.g., processor 810 , memory 820 , input / output interface 830 , and communication interface 840 );
[0102] The processor 810 , the memory 820 , the input / output interface 830 and the communication interface 840 are connected to each other in communication within the device via a bus 850 .
[0103] The embodiment of the present application also provides a remote controller, including a sending component, a receiving component, a display component and the controller 800 as described above.
[0104] Reference Fig. 9 As shown, Fig. 9 This is a schematic diagram of the overall process of a two-way communication method provided in an embodiment of the present application. The method may include but is not limited to the following steps:
[0105] Step S910, in response to a key command, switching to a sending state, generating command information according to the key command;
[0106] Step S920, if the key command is used to query the operating parameters of the air conditioner, encode according to the key command, generate first command information as the command information, and determine the sending order as the dummy information, the interval information and the first command information;
[0107] Step S930, if the key command is used to instruct the air conditioner to adjust the operating parameters, encode according to the key command, generate the second command information and the third command information as the command information, and determine the sending order as the dummy information, the interval information, the second command information, the interval information and the third command information;
[0108] Step S940, sending the dummy information, the interval information and the command information to the air conditioner in a sending order through the sending component, so that the air conditioner determines the command of the remote controller according to the sending order;
[0109] Step S950, switching to a receiving state and waiting for a reply message sent by the air conditioner;
[0110] Step S960, when it is determined that the receiving time of the reply information does not exceed the preset time period, verify the reply information and determine that the reply information that passes the verification corresponds to the instruction information;
[0111] Step S970, parsing the reply information to obtain the operating status data of the air conditioner;
[0112] Step S980, obtaining multiple parameters of the air conditioner according to the operating status data;
[0113] Step S990, switching and displaying multiple parameters at fixed intervals of display time through a display component.
[0114] In one embodiment of the present application, a user presses a button on a remote control to trigger a button command, and the remote control enters a sending state. When a query button command is triggered, the button command is parsed into an operation type for querying the operating parameters of the air conditioner according to a predefined mapping relationship, thereby encoding and generating a first instruction information for querying the set temperature, ambient temperature, operating time, and operating version of the air conditioner, and determining the sending order to be pseudo information, interval information, and first instruction information to ensure that the transmission and reception of the instruction information can be carried out correctly; when a set button command is triggered, the button command is parsed into an operation type for instructing the air conditioner to adjust the operating parameters according to a predefined mapping relationship, thereby encoding and generating a second instruction information for instructing the air conditioner to adjust the operating mode and operating time and a third instruction information for instructing the air conditioner to feedback the operating information, wherein the operating information may include power consumption and operating mode, and determining the sending order to be pseudo information, interval information, second instruction information, interval information, and third instruction information, and the second instruction information and the third instruction information are separated by the interval information to ensure that the air conditioner correctly receives and processes the second instruction information to avoid conflicts with subsequent instruction information. After receiving the reply information, it is necessary to record the time when the reply information is received and compare it with the preset time period, which can be 2 seconds. If the time when the reply information is received does not exceed the preset time period, the reply information needs to be verified to ensure that the reply information corresponds to the command information sent by the remote control. After verification, it can be determined that the reply information is a reply to the previously sent command information. By parsing the reply information and performing corresponding processing, such as obtaining the execution result or extracting the operation information, the operation status data of the air conditioner is obtained, and the various parameters are switched and displayed on the screen of the display component every 2 seconds, in the order of air conditioner maintenance status, air conditioner operation status, body temperature, indoor humidity, outdoor temperature, today's electricity bill, this month's electricity bill and last month's electricity bill, and finally switching back to the home page interface.
[0115] In the embodiment of the present application, the remote controller switches to the sending state in response to the key command, generates command information according to the key command, generates the sending order of pseudo information, interval information and command information according to the key command, and sends the pseudo information, interval information and command information to the air conditioner through the sending component in the sending order, so that the air conditioner determines the remote controller's command according to the sending order, switches to the receiving state to wait for the reply information sent by the air conditioner, and when the reply information sent by the air conditioner is received by the receiving component, the reply information is parsed to obtain the operating status data of the air conditioner, and the operating status data is displayed by the display component; therefore, in the two-way communication process between the remote controller and the air conditioner, the embodiment of the present application generates command information and determines the sending order according to the key command in the remote controller, and helps the air conditioner to correctly identify the start and end of the transmission of the command information through the determined sending order, so as to avoid conflicts between messages and data loss. The pseudo information, interval information and command information are sent to the air conditioner by the sending component in the sending order, so as to ensure that the order in which the air conditioner receives the pseudo information, interval information and command information is the same as the sending order, thereby ensuring the integrity and reliability of the communication. After the remote control sends information to the air conditioner, it automatically switches to the receiving state and enters the waiting mode. The controller monitors the information received by the receiving component and prepares to receive the reply information from the air conditioner.
[0116] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0117] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0118] It should also be understood that the various implementations provided in the embodiments of the present application can be combined arbitrarily to achieve different technical effects.
[0119] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A two-way communication method, characterized in that: Applied to a remote controller, the remote controller includes a sending component, a receiving component and a display component, the remote controller is connected to an air conditioner for communication, and the two-way communication method includes: In response to a key command, switching to a sending state, generating instruction information according to the key command, the instruction information being used to query the operating parameters of the air conditioner and / or instructing the air conditioner to adjust the operating parameters; generating a sending order of pseudo information, interval information and the instruction information according to the key command, and sending the pseudo information, the interval information and the instruction information to the air conditioner through the sending component according to the sending order, so that the air conditioner determines the instruction of the remote controller according to the sending order; Switching to a receiving state and waiting for a reply message sent by the air conditioner; When the receiving component receives the reply information sent by the air conditioner, the reply information is parsed to obtain the operating status data of the air conditioner, wherein the reply information includes the current operating status data of the air conditioner; The operating status data is displayed via the display component.
2. The two-way communication method according to claim 1, characterized in that: The generating instruction information according to the key instruction includes: If the key command is used to query the operating parameters of the air conditioner, encoding is performed according to the key command to generate first command information as the command information; If the key command is used to instruct the air conditioner to adjust operating parameters, encoding is performed according to the key command to generate second command information and third command information as the command information.
3. The two-way communication method according to claim 2, characterized in that: The generating of the pseudo information, the interval information and the sending order of the instruction information according to the key instruction comprises: If the instruction information is the first instruction information, determining the sending order to be the dummy information, the interval information and the first instruction information; If the instruction information is the second instruction information and the third instruction information, the sending order is determined to be the dummy information, the interval information, the second instruction information, the interval information and the third instruction information.
4. The two-way communication method according to claim 1, characterized in that: The two-way communication method further includes When it is determined that the receiving time of the reply information does not exceed the preset time period, verifying the reply information; Determine that the reply information that passes the verification corresponds to the instruction information.
5. The two-way communication method according to claim 4, characterized in that: The two-way communication method further comprises: When it is determined that the receiving time of the reply information exceeds the preset time period, the reply information sent by the air conditioner is received again.
6. The two-way communication method according to claim 4, characterized in that: The two-way communication method further comprises: When the reply message verification fails, the display component prompts the user to press the button again and starts timing; When no key command from the user is received within the preset timing period, the trusted state is exited.
7. The two-way communication method according to claim 1, characterized in that: The displaying of the operating status data by the display component includes: Obtaining multiple parameters of the air conditioner according to the operating status data; The display component switches and displays the plurality of parameters at fixed display time intervals.
8. A communication method, characterized in that: Applied to an air conditioner, the air conditioner is communicatively connected with a remote controller using the two-way communication method according to any one of claims 1 to 7, the communication method comprising: identifying a sending order of the pseudo information, the interval information, and the instruction information to obtain sequence information; If the sequence information matches the preset information, a reply message is generated according to the instruction information, and the reply message is sent to the remote controller.
9. A controller, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the bidirectional communication method according to any one of claims 1 to 7 is implemented.
10. A remote controller, characterized in that: It comprises a sending component, a receiving component, a display component and the controller as claimed in claim 9.
Citation Information
Cited By
Serial port instruction injection method and device
CN122431314A
