CN114893888B - Message processing method, device and medium for wire controller of air conditioner indoor unit controller - Google Patents

Message processing method, device and medium for wire controller of air conditioner indoor unit controller Download PDF

Info

Publication number
CN114893888B
CN114893888B CN202210523773.2A CN202210523773A CN114893888B CN 114893888 B CN114893888 B CN 114893888B CN 202210523773 A CN202210523773 A CN 202210523773A CN 114893888 B CN114893888 B CN 114893888B
Authority
CN
China
Prior art keywords
communication
controller
air conditioner
indoor unit
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210523773.2A
Other languages
Chinese (zh)
Other versions
CN114893888A (en
Inventor
唐文
赵龙生
刘冰
沈小波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Trane Air Conditioning Systems China Co Ltd
Original Assignee
Trane Air Conditioning Systems China 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 Trane Air Conditioning Systems China Co Ltd filed Critical Trane Air Conditioning Systems China Co Ltd
Priority to CN202210523773.2A priority Critical patent/CN114893888B/en
Publication of CN114893888A publication Critical patent/CN114893888A/en
Application granted granted Critical
Publication of CN114893888B publication Critical patent/CN114893888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/88Electrical aspects, e.g. circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Selective Calling Equipment (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The application provides a message processing method, device and medium for an air conditioner indoor unit controller to a wire controller. The message processing method for the air conditioner indoor unit controller in the air conditioning system comprises the following steps: determining a communication message communicated with the wire controller; determining a communication protocol of the wire controller according to the communication message; generating and loading a configuration file according to the communication protocol of the wire controller under the condition that the communication protocol of the wire controller is different from the communication protocol of the air conditioner indoor unit controller; obtaining a protocol analysis relation pre-established with a communication protocol of the line controller according to the configuration file; and analyzing the communication message according to the protocol analysis relation to obtain the message content. The communication protocol of the air conditioner indoor unit controller, the communication protocol of the wire controller and the communication protocol of the liquid crystal display are not modified, so that the protocol security of the air conditioner indoor unit controller is improved, the workload of air conditioner manufacturers, liquid crystal display manufacturers and wire controller manufacturers is reduced, and the labor cost is reduced.

Description

Message processing method, device and medium for wire controller of air conditioner indoor unit controller
Technical Field
The present invention relates to the field of air conditioning technologies, and in particular, to a method, an apparatus, and a medium for processing a message of an indoor unit controller to a wire controller.
Background
With the continuous development of society and the progress of science and technology, air conditioning systems are also widely used. An air conditioning system is a system that artificially treats the temperature, humidity, cleanliness, and air flow rate of indoor air. The air conditioning system comprises a wire controller with a display screen, an indoor unit and an air conditioning indoor unit controller connected with the indoor unit. The air conditioner indoor unit controller is connected with the wire controller with the display screen, and the air conditioner indoor unit controller and the wire controller with the liquid crystal screen are communicated according to a prescribed communication protocol.
In the related art, when a new liquid crystal screen is replaced by a liquid crystal screen of a third party, display programs of the liquid crystal screen of the third party are written, and corresponding communication protocols are written. If the air conditioner indoor unit controller of the air conditioner is matched with a new LCD screen manufacturer, the air conditioner manufacturer is required to provide the communication protocol of the air conditioner manufacturer for the new LCD screen manufacturer, and the LCD screen manufacturer changes own software according to the requirement of the communication protocol of the air conditioner indoor unit controller. Therefore, the protocol of an air conditioner manufacturer is leaked, and the workload of software modification and software test of the LCD screen manufacturer is increased.
Disclosure of Invention
The application provides a message processing method, a device and a medium for an air conditioner indoor unit controller to a wire controller, and the method improves protocol security of the air conditioner indoor unit controller and reduces labor cost.
The application provides a message processing method of an air conditioner indoor unit controller to a wire controller, which is applied to the air conditioner indoor unit controller in an air conditioning system, wherein the message processing method of the air conditioner indoor unit controller to the wire controller comprises the following steps:
determining a communication message communicated with the wire controller;
determining a communication protocol of the line controller according to the communication message;
under the condition that the communication protocol of the wire controller is different from the communication protocol of the air conditioner indoor unit controller, acquiring a protocol analysis relation pre-established with the communication protocol of the wire controller according to the communication protocol of the wire controller;
generating and loading a configuration file according to the protocol analysis relation;
and analyzing the communication message according to the configuration file to obtain message content.
Further, the protocol analysis relation comprises analysis relation of communication format, analysis relation of communication content and transmission sequence of data.
Further, the determining a communication message for communicating with the line controller includes:
receiving a request message input by a line controller;
the transmission sequence includes a receiving sequence and a sending sequence, and the generating and loading the configuration file according to the protocol analysis relation includes:
determining that the request message is a read request message according to the analysis relation of the communication format, wherein the read request message is used for reading the data of the air conditioner indoor unit controller;
generating and loading a configuration file of the reading request message according to the analysis relation of the communication content and the receiving sequence;
the step of analyzing the communication message according to the configuration file to obtain message content comprises the following steps:
analyzing the reading request message according to the configuration file of the reading request message to obtain the content to be read;
the method further comprises the steps of: and responding to the reading request message according to the sending sequence, and transmitting the content to be read to the line controller.
Further, the transmitting the content to be read to the line controller according to the sending sequence in response to the read request message includes:
according to the sending sequence, responding to the reading request message, and according to the communication protocol of the line controller, packaging the content to be read;
and transmitting the packaged content to be read to the line controller.
Further, the determining a communication message for communicating with the line controller includes:
receiving a request message input by a line controller;
the transmission sequence includes a receiving sequence, and the generating and loading the configuration file according to the protocol analysis relation includes:
determining that the request message is a writing request message according to the analysis relation of the communication format, wherein the writing request message is used for writing data into the air conditioner indoor unit controller;
generating and loading a configuration file of the write-in request message according to the analysis relation of the communication content and the receiving sequence;
the step of analyzing the communication message according to the configuration file to obtain message content comprises the following steps:
analyzing the writing request message according to the configuration file of the writing request message to obtain the content to be written;
the method further comprises the steps of: responding to the writing request message, and obtaining a control instruction according to the content to be written;
and controlling the indoor unit according to the control instruction, wherein the indoor unit is connected with the air conditioner indoor unit controller.
Further, the communication protocol includes one or more of a general communication protocol, a communication protocol of an air conditioner manufacturer, and a communication protocol of an air conditioner provider.
Further, the method further comprises analyzing the communication message according to the communication protocol of the air conditioner indoor unit controller to obtain message content under the condition that the communication protocol of the wire controller is identical to the communication protocol of the air conditioner indoor unit controller.
The application provides a message processing apparatus of air conditioner indoor unit controller to wire controller, is applied to the air conditioner indoor unit controller in the air conditioning system, the message processing apparatus of air conditioner indoor unit controller to wire controller includes:
the communication module is used for determining a communication message communicated with the wire controller;
the protocol identification module is used for determining the communication protocol of the wire controller according to the communication message;
the protocol configuration module is used for obtaining a protocol analysis relation pre-established with the communication protocol of the line controller according to the communication protocol of the line controller under the condition that the communication protocol of the line controller is different from the communication protocol of the air conditioner indoor unit controller;
the protocol analysis module is used for generating and loading a configuration file according to the protocol analysis relation; and analyzing the communication message according to the configuration file to obtain message content.
The application provides an electronic device, comprising a processor and a memory;
a memory for storing a computer program;
a processor for implementing the method of any of the above when executing a program stored on a memory.
There is provided a computer readable storage medium having stored thereon a program which, when executed by a processor, implements a method as claimed in any one of the preceding claims.
In some embodiments, the message processing method of the air conditioner indoor unit controller of the application for the wire controller can determine a communication message for communicating with the wire controller; analyzing the protocol type of the communication of the line controller according to the communication message; and under the condition that the communication protocol of the line controller is different from the communication protocol of the air conditioner indoor unit controller, acquiring a protocol analysis relation of a pre-established communication protocol according to the communication protocol of the line controller, and analyzing the communication message to acquire the message content. The protocol analysis relation is used for reflecting the relation between the communication protocols, describing the communication protocols and the communication content, and does not need to leak the protocol of the air conditioner indoor unit controller to a liquid crystal screen manufacturer or a line controller manufacturer, and also does not need to modify the communication protocols of the air conditioner indoor unit controller, the line controller and the liquid crystal screen, so that the protocol safety of the air conditioner indoor unit controller is improved, the workload of the liquid crystal screen manufacturer or the line controller manufacturer is reduced, and the labor cost is reduced.
Drawings
Fig. 1 is a schematic diagram of an air conditioner indoor unit controller and a message processing method of the wire controller applied to an air conditioning system according to an embodiment of the present application;
fig. 2 is a flow chart illustrating a message processing method of an air conditioner indoor unit controller to a wire controller according to an embodiment of the present application;
fig. 3 is a schematic block diagram of a message processing device of an air conditioner indoor unit controller to a wire controller according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with aspects of one or more embodiments of the present description as detailed in the accompanying claims.
It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. Furthermore, individual steps described in this specification, in other embodiments, may be described as being split into multiple steps; while various steps described in this specification may be combined into a single step in other embodiments.
In order to solve the technical problems of leakage of protocols of air conditioner manufacturers and increase of workload of software modification and software testing of liquid crystal display manufacturers, the embodiment of the application provides a message processing method of an air conditioner indoor unit controller to a wire controller, which can determine communication messages communicated with the wire controller; analyzing the protocol type of the communication of the line controller according to the communication message; and under the condition that the communication protocol of the line controller is different from the communication protocol of the air conditioner indoor unit controller, acquiring a protocol analysis relation of a pre-established communication protocol according to the communication protocol of the line controller, and analyzing the communication message to acquire the message content. The protocol analysis relation is used for reflecting the relation between the communication protocols, describing the communication protocols and the communication content, and does not need to leak the protocol of the air conditioner indoor unit controller to a liquid crystal screen manufacturer or a line controller manufacturer, and also does not need to modify the communication protocols of the air conditioner indoor unit controller, the line controller and the liquid crystal screen, so that the protocol safety of the air conditioner indoor unit controller is improved, the workload of the liquid crystal screen manufacturer or the line controller manufacturer is reduced, and the labor cost is reduced.
Fig. 1 is a schematic diagram of an air conditioner indoor unit controller and a message processing method of the same applied to an air conditioning system.
As shown in fig. 1, the air conditioning system 10 includes an air conditioning unit 11 and a drive-by-wire 12 with a display screen. The air conditioning unit 11 is divided into an outdoor unit 21 and an indoor unit 22. The indoor unit 22 and the outdoor unit 21 have respective unit controllers 23, which are referred to as an air conditioner indoor unit controller 231 and an outdoor unit controller 232. The unit controller 23 is responsible for controlling the air conditioning unit 11. The air conditioner indoor unit controller 231 is responsible for controlling the indoor unit 22. The outdoor unit controller 232 is responsible for controlling the outdoor unit 21. The indoor unit controller 231 of the air conditioner is typically connected to a drive-by-wire 12 with a display screen. The liquid crystal screen of the drive-by-wire 12 is used for user operation. The line controller 12 is provided on a wall.
The air conditioner indoor unit controllers 231 may have a one-to-one correspondence with the line controllers 12. In one application scenario, one room is provided with one air conditioner indoor unit controller 231 and one line controller 12. The air conditioner controller 231 may have a one-to-many correspondence or a many-to-one correspondence with the line controller 12. In one application scenario, an air conditioner indoor unit controller 231 and a plurality of line controllers 12 are disposed in a building. In another application scenario, a plurality of air conditioner controllers 231 and one line controller 12 are provided in one room. The foregoing is merely illustrative and is not intended to be limiting in any way.
The message processing method of the air conditioner indoor unit controller to the wire controller can be applied to the air conditioner indoor unit controller. The following describes an application of the message processing method of the wire controller to the air conditioner indoor unit controller in the air conditioning system.
Fig. 2 is a flow chart illustrating a message processing method of an air conditioner indoor unit controller to a wire controller according to an embodiment of the present application.
As shown in fig. 2, the message processing method of the air conditioner controller to the line controller may include the following steps 110 to 140:
at step 110, a communication message is determined for communication with the drive-by-wire.
The communication message refers to a message that the air conditioner indoor unit controller communicates with the line controller. The communication message is transmitted or received in accordance with a specified communication protocol. The specified communication protocol includes the communication protocol and the communication protocol content of the communication protocol.
Step 120, determining the communication protocol of the wire controller according to the communication message.
The communication protocol of the line controller may include one or more of a general communication protocol, a communication protocol of an air conditioner manufacturer, and a communication protocol of a line controller manufacturer. By way of example, the general communication protocol may be Modbus. The communication protocol of the air conditioner manufacturer is TRANE AP, and the communication protocol of the air conditioner provider is a provider customized protocol. The vendor may be a drive-by-wire vendor and/or a liquid crystal display vendor.
The step 120 may further include reading the protocol type identifier Pro to determine the communication protocol according to the communication message. And analyzing a specific protocol in the communication protocol type of the line controller according to the protocol type identifier Pro to obtain the communication protocol of the line controller. The communication protocol of the wire controller comprises a communication protocol expressed as Mod, a communication protocol expressed as air conditioner manufacturer by TAP/IMC and a communication protocol expressed as vendor custom by VEN. Therefore, the communication protocol of a liquid crystal screen manufacturer or a wire controller manufacturer does not need to be changed, and the communication protocol of an air conditioner manufacturer does not need to be modified.
Step 130, under the condition that the communication protocol of the wire controller is different from the communication protocol of the air conditioner indoor unit controller, obtaining a pre-established protocol analysis relation with the communication protocol of the wire controller according to the communication protocol of the wire controller.
The protocol analysis relation is a communication protocol of a line controller taken from an air conditioner supplier and is established with a communication protocol of an air conditioner indoor unit controller. Therefore, the controller of the air conditioner indoor unit analyzes the communication message to obtain the message content, and communicates with the wire controller, so that the protocol of the controller of the air conditioner indoor unit is not required to be leaked to an air conditioner provider, and the air conditioner provider is not required to change the communication protocol of the liquid crystal display. Meanwhile, because the air conditioner suppliers are limited and the communication protocols are limited, the method is convenient and quick to establish the protocol analysis relation and is beneficial to the use of the follow-up protocol analysis relation. The protocol analysis relation can be configured into a configuration file, and the configuration file describes the communication protocol and the communication content of the wire controller to the air conditioner indoor unit controller, and can also convert the communication content into the content which can be identified by the wire controller. For example, the configuration file may indicate to the air conditioner controller what the communication format required by the line controller is, such as a communication rate, a length of each data packet, whether there is a check, and so on.
The communication protocol of the controller of the air conditioner can be a general communication protocol or a communication protocol of an air conditioner manufacturer, and at this time, the communication protocol of the wire controller is not a standard protocol, is not a communication protocol of the air conditioner manufacturer, but is a communication protocol defined by a provider. In the case that the communication protocol of the wire controller is different from the communication protocol of the air conditioner indoor unit controller, the communication protocol of the wire controller is a communication protocol defined by a provider. And obtaining a protocol analysis relation of a pre-established communication protocol according to a communication protocol defined by a provider so as to realize conversion between the communication protocol of the air conditioner indoor unit controller and the communication protocol of an air conditioner provider.
Under the condition that the communication protocol of the wire controller is the same as that of the air conditioner indoor unit controller, the communication between the wire controller and the air conditioner indoor unit controller can be realized, and the protocol analysis relation is not needed. The method further comprises the step of analyzing the communication message according to the communication protocol of the air conditioner indoor unit controller to obtain the message content under the condition that the communication protocol of the wire controller is identical to the communication protocol of the air conditioner indoor unit controller. Example one: the communication protocol of the wire controller and the communication protocol of the air conditioner indoor unit controller are all universal communication protocols. Example two: the communication protocol of the wire controller and the communication protocol of the air conditioner indoor unit controller are both communication protocols of air conditioner manufacturers.
The protocol analysis relationship may include analysis relationship of communication format, analysis relationship of communication content, and transmission sequence of data.
Illustratively, the parsing relation of the communication format may include that B-12/24/48/96/192/… …/1152 represents the baud rate, L (en) -8/9/10/… represents the data length, and P (ar) -O/E represents the parsing relation of the odd/even parity and other communication formats. Other communication formats such as B12-L8-PO, although other communication protocols may be used in other ways, and are not illustrated in detail herein.
Illustratively, the transmission order of the data and the parsing relation of the communication content may include the following:
1) The drive-by-wire receives the RX start.
RX
R1……………
R2……………
…………………
Rn……………。
T represents temperature, e.g., T12 represents 1 byte, decimal point 2 bits.
H represents humidity, e.g., H11 represents 1 byte, decimal point 1 bit.
S represents fan speed, e.g., SH/S1 represents high speed, SM/S2 represents medium speed, and SL/S3 represents low speed.
TM represents timing, such as TM365 represents 3 hours, 6 minutes, 5 seconds.
MO stands for mode, e.g. MOH stands for heating, MOC stands for cooling, and MODH stands for dehumidification.
Other contents than T, H, S, TM are possible and are not exemplified here.
2) The line controller transmits TX start:
TX
T1……………
T2……………
…………………
Tn……………。
temperature T03 represents temperature 03
Humidity H04 represents humidity of 04
The fan speed S05 represents a speed of 05
R1 corresponds to T1, i.e., after T1 exits, R1 is expected to be received; r2 and T2 should be in correspondence, i.e. after T2 has gone out, R2 is expected to be received. And so on, which are not described in detail herein.
Example one:
RX
R1-T11-H11-S1 represents that the received data sequence is temperature, humidity and high speed;
R2-MOH-STR3ABC, representing that the received data sequence is heating, STR3ABC representing 3 characters ABC, see section 3 below. ABC may be some characters specified by the vendor protocol, may be meaningful, or may be ignored.
If ABC is of interest, then an example of ABC is as follows: ERROR 1; ABD: ERROR 2; BCE: an unrecognizable air conditioner indoor unit controller command, and the like.
TX
T1-T03-H04-S05, the data sequence sent is 03, 04, 05, the data sequence is temperature, humidity and rotating speed;
T2-MO06 represents that the order of data sent is 06, this data being pattern.
3) STR n represents a communication of n bytes. If received, it may be ignored; if so, transmitting according to the definition below; such as TX STR3ABC, representing ABC three characters.
4) Configuring a transmission order RX and a reception order TX. Defining how many groups of data are received at a time and then sent; or how many sets of data are sent at a time and received. The controller of the air conditioner generally receives R1 and then sends T1; then if R2 is received, T2 is returned. The line controller may need to send multiple sets of data before the air conditioner indoor unit controller replies.
Examples:
example one: R1-R2-R3 represent each time R1, R2 and R3 are received and then sent;
T1-T2-T3, representing one transmission at a time, in the order T1, T2, T3.
Example two: R12-R23 represent two at a time, in the order of R1, R2 and R2, R3;
T12-T23, two at a time, in the order T1, T2, and T2, T3.
Example three: RALL-1-3-2-4 represents each total acceptance, in the order R1, R3, R2, R4;
TALL-1-3-2-4 represents the sequence of T1, T3, T2, T4 for each complete transmission.
In some practical use processes, the air conditioner indoor unit controller 231 can be used as a master, and the wire controller 12 can be used as a slave to realize communication. In other practical use processes, the wire controller 12 may be used as a master, and the air conditioner indoor unit controller 231 may be used as a slave to realize communication. Based on the protocol analysis relation, the protocol analysis relation also comprises the analysis relation of the master and slave machines. Wherein M represents a master and S represents a slave. If M, the controller 231 is the host and the wire controller 12 is the slave; if S, the controller 231 is the slave and the drive-by-wire 12 is the master.
In the step 130, obtaining a protocol parsing relation pre-established by a communication protocol with the drive-by-wire controller further includes first determining a parsing relation of the master-slave machine. Second, an analytical relationship of the communication format is determined. Thirdly, determining the transmission sequence of the data and the analysis relation of the communication content to determine the communication protocol.
And 140, generating and loading a configuration file according to the protocol analysis relation.
And step 150, analyzing the communication message according to the configuration file to obtain the message content.
As shown in fig. 2, the step 110 includes receiving a request message input by the wire controller. The transmission sequence includes a reception sequence and a transmission sequence. The step 140 may further include step 1, determining that the request message is a read request message according to the analysis relation of the communication format, where the read request message is used to read data of the air conditioner indoor unit controller. And 2, generating and loading a configuration file of the reading request message according to the analysis relation and the receiving sequence of the communication content. And 3, analyzing the reading request message according to the configuration file of the reading request message to obtain the content to be read. The method also comprises a step 4 of responding to the reading request message according to the sending sequence and transmitting the content to be read to the wire controller. The request message is determined according to the requirement of the line controller, and the content to be read is the content required by the read request message. Therefore, the method can provide needed contents to be read for the wire controller during communication, so that analysis of the inside of the air conditioner indoor unit controller is realized, and leakage of protocols of the air conditioner indoor unit controller is avoided.
And step 1, determining the analysis relation of the master and slave machines according to the analysis relation of the communication format, and determining the request message as a reading request message. The step 3 includes responding to the read request message according to the sending sequence, and packaging the content to be read according to the communication protocol of the line controller. And transmitting the packaged content to be read to the wire controller.
As shown in fig. 2, the step 110 includes receiving a request message input by the wire controller. The transmission sequence includes a receiving sequence, and the step 140 may further include a first step of determining that the request message is a write request message according to an analysis relationship of the communication format, where the write request message is used to write data into the air conditioner indoor unit controller. And a second step of generating and loading the configuration file of the writing request message according to the analysis relation and the receiving sequence of the communication content. And thirdly, analyzing the writing request message according to the configuration file of the writing request message to obtain the content to be written. The method further comprises a fourth step of responding to the writing request message and obtaining a control instruction according to the content to be written. And fifthly, controlling the indoor unit according to the control instruction, wherein the indoor unit is connected with an air conditioner indoor unit controller. The request message is determined according to the demand of the drive-by-wire controller, and the content to be written is the writing content required by the writing request message. Therefore, the content to be written can be written into the air conditioner indoor unit controller during communication, so that analysis of the inside of the air conditioner indoor unit controller is realized, and leakage of a protocol of the air conditioner indoor unit controller is avoided.
The first step is to determine the analysis relationship of the master and slave according to the analysis relationship of the communication format, and determine that the request message is a write request message.
The method includes 1, reading a first part of a first row of a configuration file, wherein if the analysis relation of a master machine and a slave machine is M, a host controller is used as a host, and a line controller is used as a slave machine; the second row determines the analysis relation of the communication format, and the third row determines the transmission sequence of the data and the analysis relation of the communication content. 2. The third part of the configuration file is read and the transmission order RX and the reception order TX are determined. 3. The second portion of the configuration file is read and the communication content of each transmit R and each receive T is determined. 4. The calling communication program uses the configuration file to transmit and receive, so that the communication program can be used for running the content of the configuration file.
One example of the practical application. Step 1, the temperature of the wire controller needs to be checked, and the controller of the air conditioner indoor unit receives a temperature inquiry request input by the wire controller. And 2, determining a request of temperature inquiry as a read request message by the air conditioner indoor unit controller, and determining an analysis relation of the master machine and the slave machine as S according to the read request message, wherein S represents the air conditioner indoor unit controller as a slave machine and the line controller as a master machine. And determining an analytic relationship of the communication format and determining the communication content. And step 3, the controller of the air conditioner indoor unit reads the current temperature, responds to the temperature inquiry request according to the sending sequence, and transmits the current temperature to the wire controller.
Two examples in practical application. Step 1, the temperature of the wire controller needs to be regulated, the air conditioner indoor unit controller receives a temperature regulation request input by the wire controller, and the temperature regulation request carries a specified temperature to be regulated. The specified temperature is determined based on the user's needs. And 2, determining a request of temperature regulation as a writing request message by the air conditioner indoor unit controller, and determining an analysis relation of the master machine and the slave machine as S, wherein S represents the air conditioner indoor unit controller as a slave machine and the line controller as a master machine. And determining an analytic relationship of the communication format and determining the communication content. And step 3, the controller of the air conditioner indoor unit responds to the writing request message, writes the designated temperature and obtains the control instruction. And controlling the indoor unit to adjust the temperature to the specified temperature according to the control instruction.
In the embodiment of the application, the protocol analysis relation is used for reflecting the relation between communication protocols, describing the communication protocols and the communication content, and the protocol of the air conditioner indoor unit controller is not required to be revealed to a liquid crystal screen manufacturer or a line controller manufacturer, and the communication protocols of the air conditioner indoor unit controller, the line controller and the liquid crystal screen are not required to be modified, so that the protocol safety of the air conditioner indoor unit controller is improved, the workload of the liquid crystal screen manufacturer, the liquid crystal screen manufacturer and the line controller manufacturer is reduced, and the labor cost is reduced. In addition, the embodiment of the application can adapt to different line controllers, improves the safety, reduces the workload of air conditioner manufacturers and line controller manufacturers, reduces the labor cost and also reduces potential software faults caused by software modification.
Fig. 3 is a schematic block diagram of a message processing device of an air conditioner indoor unit controller to a wire controller according to an embodiment of the present application.
As shown in fig. 3, the message processing device of the air conditioner indoor unit controller to the wire controller is applied to the air conditioner indoor unit controller in an air conditioning system, and the message processing device of the air conditioner indoor unit controller to the wire controller comprises:
a communication module 31 for determining a communication message for communication with the line controller;
and the protocol identification module 32 is used for determining the communication protocol of the wire controller according to the communication message. Protocol parsing module of course
A protocol configuration module 33, configured to obtain a protocol analysis relationship pre-established with the communication protocol of the line controller according to the communication protocol of the line controller when it is determined that the communication protocol of the line controller is different from the communication protocol of the air conditioner indoor unit controller;
a protocol parsing module 34, configured to generate and load a configuration file according to the protocol parsing relation; and analyzing the communication message according to the configuration file to obtain message content. The protocol identification module 32 and the protocol parsing module 34 may use the same module to perform their functions, such as the protocol parsing module 34.
The implementation process of the functions and roles of each module in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
The message processing system of the air conditioner indoor unit controller provided by the embodiment of the application comprises one or more processors, and is used for realizing the message processing method of the air conditioner indoor unit controller to the wire controller. Or, the message processing system of the air conditioner indoor unit controller provided by the embodiment of the application comprises the message processing device of the air conditioner indoor unit controller to the wire controller.
Fig. 4 is a schematic structural diagram of an electronic device 40 according to an embodiment of the present application. The electronic device 40 may include a processor 41, a memory 43 storing machine-executable instructions, and a communication interface 42. The processor 41 and the memory 43 may communicate via a system bus 44. Also, the processor 41 may perform the methods described above by reading and executing machine-executable instructions in the memory 43 corresponding to the data pull or data return logic.
The memory 43 referred to herein may be any electronic, magnetic, optical, or other physical storage device that may contain or store information, such as executable instructions, data, or the like. For example, a machine-readable storage medium may be: RAM (Radom Access Memory, random access memory), volatile memory, non-volatile memory, flash memory, a storage drive (e.g., hard drive), a solid state drive, any type of storage disk (e.g., optical disk, dvd, etc.), or a similar storage medium, or a combination thereof.
In some embodiments, a machine-readable storage medium, such as memory 43 in fig. 4, is also provided, having stored thereon machine-executable instructions that when executed by a processor implement the method described above. For example, the machine-readable storage medium may be ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Embodiments of the present application also provide a computer program stored on a machine readable storage medium, such as the memory 43 in fig. 4, and which when executed by a processor causes the processor 41 to perform the method described above.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.

Claims (8)

1. The message processing method for the wire controller by the air conditioner indoor unit controller is characterized by being applied to the air conditioner indoor unit controller in an air conditioning system, and the message processing method for the wire controller by the air conditioner indoor unit controller comprises the following steps:
determining a communication message communicated with the wire controller; wherein the determining a communication message for communication with the line controller includes: receiving a request message input by a line controller;
determining a communication protocol of the line controller according to the communication message;
under the condition that the communication protocol of the wire controller is different from the communication protocol of the air conditioner indoor unit controller, acquiring a protocol analysis relation pre-established with the communication protocol of the wire controller according to the communication protocol of the wire controller;
generating and loading a configuration file according to the protocol analysis relation; the configuration file is used for reflecting the communication protocol and the communication content of the wire controller to the air conditioner indoor unit controller;
analyzing the communication message according to the configuration file to obtain message content; the protocol analysis relation is used for reflecting the relation between communication protocols and describing the communication protocols and the communication contents;
the transmission sequence in the protocol analysis relation comprises a receiving sequence and a sending sequence, and the generating and loading of the configuration file according to the protocol analysis relation comprises the following steps:
determining that the request message is a read request message according to the analysis relation of the communication format in the protocol analysis relation, wherein the read request message is used for reading the data of the air conditioner indoor unit controller;
generating and loading a configuration file of the reading request message according to the analysis relation of the communication content in the protocol analysis relation and the receiving sequence;
the step of analyzing the communication message according to the configuration file to obtain message content comprises the following steps:
analyzing the reading request message according to the configuration file of the reading request message to obtain the content to be read;
the method further comprises the steps of: and responding to the reading request message according to the sending sequence, and transmitting the content to be read to the line controller.
2. The method for processing messages of an air conditioner indoor unit controller to a line controller according to claim 1, wherein the transmitting the content to be read to the line controller in response to the read request message according to the transmission sequence comprises:
according to the sending sequence, responding to the reading request message, and according to the communication protocol of the line controller, packaging the content to be read;
and transmitting the packaged content to be read to the line controller.
3. The method for processing messages of an air conditioner indoor unit controller to a wire controller according to claim 1, wherein the transmission sequence includes a receiving sequence, and the generating and loading a configuration file according to the protocol parsing relation includes:
determining that the request message is a writing request message according to the analysis relation of the communication format, wherein the writing request message is used for writing data into the air conditioner indoor unit controller;
generating and loading a configuration file of the write-in request message according to the analysis relation of the communication content and the receiving sequence;
the step of analyzing the communication message according to the configuration file to obtain message content comprises the following steps:
analyzing the writing request message according to the configuration file of the writing request message to obtain the content to be written;
the method further comprises the steps of: responding to the writing request message, and obtaining a control instruction according to the content to be written;
and controlling the indoor unit according to the control instruction, wherein the indoor unit is connected with the air conditioner indoor unit controller.
4. The method for processing messages of an air conditioner indoor unit controller to a wire controller according to claim 1, wherein the communication protocol includes one or more of a general communication protocol, a communication protocol of an air conditioner manufacturer, and a communication protocol of an air conditioner provider.
5. The method for processing messages of an air conditioner indoor unit controller to a wire controller according to claim 1, wherein the method further comprises: and under the condition that the communication protocol of the wire controller is the same as the communication protocol of the air conditioner indoor unit controller, analyzing the communication message according to the communication protocol of the air conditioner indoor unit controller to obtain the message content.
6. The utility model provides a message processing device of air conditioner indoor unit controller to wire controller which characterized in that is applied to the air conditioner indoor unit controller in the air conditioning system, the message processing device of air conditioner indoor unit controller to wire controller includes:
the communication module is used for determining a communication message communicated with the wire controller; wherein the determining a communication message for communication with the line controller includes: receiving a request message input by a line controller;
the protocol identification module is used for determining the communication protocol of the wire controller according to the communication message;
the protocol configuration module is used for obtaining a protocol analysis relation pre-established with the communication protocol of the line controller according to the communication protocol of the line controller under the condition that the communication protocol of the line controller is different from the communication protocol of the air conditioner indoor unit controller;
the protocol analysis module is used for generating and loading a configuration file according to the protocol analysis relation; analyzing the communication message according to the configuration file to obtain message content;
the transmission sequence in the protocol analysis relation comprises a receiving sequence and a sending sequence, and the generating and loading of the configuration file according to the protocol analysis relation comprises the following steps:
determining that the request message is a read request message according to the analysis relation of the communication format in the protocol analysis relation, wherein the read request message is used for reading the data of the air conditioner indoor unit controller;
generating and loading a configuration file of the reading request message according to the analysis relation of the communication content in the protocol analysis relation and the receiving sequence; the configuration file is used for reflecting the communication protocol and the communication content of the wire controller to the air conditioner indoor unit controller; the protocol analysis relation is used for reflecting the relation between communication protocols and describing the communication protocols and the communication contents;
the step of analyzing the communication message according to the configuration file to obtain message content comprises the following steps:
analyzing the reading request message according to the configuration file of the reading request message to obtain the content to be read;
the apparatus further comprises: and responding to the reading request message according to the sending sequence, and transmitting the content to be read to the line controller.
7. An electronic device comprising a processor and a memory;
a memory for storing a computer program;
a processor for implementing the method of any of claims 1-5 when executing a program stored on a memory.
8. A computer readable storage medium, having stored thereon a program which, when executed by a processor, implements the method of any of claims 1-5.
CN202210523773.2A 2022-05-13 2022-05-13 Message processing method, device and medium for wire controller of air conditioner indoor unit controller Active CN114893888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210523773.2A CN114893888B (en) 2022-05-13 2022-05-13 Message processing method, device and medium for wire controller of air conditioner indoor unit controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210523773.2A CN114893888B (en) 2022-05-13 2022-05-13 Message processing method, device and medium for wire controller of air conditioner indoor unit controller

Publications (2)

Publication Number Publication Date
CN114893888A CN114893888A (en) 2022-08-12
CN114893888B true CN114893888B (en) 2023-12-26

Family

ID=82720943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210523773.2A Active CN114893888B (en) 2022-05-13 2022-05-13 Message processing method, device and medium for wire controller of air conditioner indoor unit controller

Country Status (1)

Country Link
CN (1) CN114893888B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108758987A (en) * 2018-04-28 2018-11-06 四川虹美智能科技有限公司 A kind of air-conditioner control system
CN109269033A (en) * 2018-08-17 2019-01-25 青岛海信日立空调系统有限公司 A kind of centralized control converter and air-conditioning system
WO2019196454A1 (en) * 2018-04-13 2019-10-17 珠海格力电器股份有限公司 Data transmission method and device, and multi-split air conditioning system
CN110762738A (en) * 2019-11-08 2020-02-07 宁波奥克斯电气股份有限公司 Multi-split protocol conversion control method, device and system and air conditioning system
CN113007874A (en) * 2021-03-10 2021-06-22 珠海格力电器股份有限公司 Air conditioner, air conditioner operation method and electric appliance system
CN113339948A (en) * 2021-05-26 2021-09-03 青岛海信日立空调系统有限公司 Air conditioner control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019196454A1 (en) * 2018-04-13 2019-10-17 珠海格力电器股份有限公司 Data transmission method and device, and multi-split air conditioning system
CN108758987A (en) * 2018-04-28 2018-11-06 四川虹美智能科技有限公司 A kind of air-conditioner control system
CN109269033A (en) * 2018-08-17 2019-01-25 青岛海信日立空调系统有限公司 A kind of centralized control converter and air-conditioning system
CN110762738A (en) * 2019-11-08 2020-02-07 宁波奥克斯电气股份有限公司 Multi-split protocol conversion control method, device and system and air conditioning system
CN113007874A (en) * 2021-03-10 2021-06-22 珠海格力电器股份有限公司 Air conditioner, air conditioner operation method and electric appliance system
CN113339948A (en) * 2021-05-26 2021-09-03 青岛海信日立空调系统有限公司 Air conditioner control system

Also Published As

Publication number Publication date
CN114893888A (en) 2022-08-12

Similar Documents

Publication Publication Date Title
CN101309306B (en) Method for allocating addresses from node device in Modbus communication network
Pfeiffer et al. Embedded networking with CAN and CANopen
US20130054765A1 (en) Method for Servicing a Field Device
US6192036B1 (en) Method of operating a data transmission system
CN105527881A (en) Command processing method and device
TWI481979B (en) Programmable logic controller drive system, method and recording media
JP4146502B1 (en) Emulation device and emulation program
JP2014119907A (en) Communication unit, communication system, control method, and program
CN114893888B (en) Message processing method, device and medium for wire controller of air conditioner indoor unit controller
JP2014119906A (en) Communication unit, communication system, control method, and program
US6668205B1 (en) Control method of factory automation system, recording medium recording a program therefor and central processor of factory automation system
US8554966B2 (en) Method for data exchange
CN113498495A (en) Control system, support device, and program for support device
US7443886B1 (en) Communication protocol system and method
CN110827532B (en) Control method, terminal and storage medium
CN111371799B (en) Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller
CN112241279B (en) Self-adaptive electronic control unit software upgrading method and system and automobile
CN102576222A (en) Method for operating a field bus interface
CN105591854A (en) Interaction method, device and system based serial bus
US9898002B2 (en) Method for operating a fieldbus protocol capable field device
US20090312886A1 (en) Temperature controller system
CN114443545B (en) Interface expansion method, device, management system and related equipment
WO2006030697A1 (en) Communication device, communication control method, communication control program, and computer-readable recording medium containing the communication control program
JP2004120043A (en) Elevator control transmission system
JP2005084820A (en) Controller comprising simulating functions of input/output unit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant