WO2021233475A1 - Communication method for indoor and outdoor units of multi-split air conditioner, and multi-split air conditioner - Google Patents

Communication method for indoor and outdoor units of multi-split air conditioner, and multi-split air conditioner Download PDF

Info

Publication number
WO2021233475A1
WO2021233475A1 PCT/CN2021/101826 CN2021101826W WO2021233475A1 WO 2021233475 A1 WO2021233475 A1 WO 2021233475A1 CN 2021101826 W CN2021101826 W CN 2021101826W WO 2021233475 A1 WO2021233475 A1 WO 2021233475A1
Authority
WO
WIPO (PCT)
Prior art keywords
level
communication
internal
task
external
Prior art date
Application number
PCT/CN2021/101826
Other languages
French (fr)
Chinese (zh)
Inventor
禚百田
时斌
程绍江
张锐钢
王军
高玉辉
Original Assignee
青岛海尔空调电子有限公司
青岛海尔空调器有限总公司
海尔智家股份有限公司
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 青岛海尔空调电子有限公司, 青岛海尔空调器有限总公司, 海尔智家股份有限公司 filed Critical 青岛海尔空调电子有限公司
Publication of WO2021233475A1 publication Critical patent/WO2021233475A1/en

Links

Images

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/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data
    • 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/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • F24F11/49Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring ensuring correct operation, e.g. by trial operation or configuration checks
    • 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
    • F24F11/58Remote control using Internet communication
    • 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
    • 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/89Arrangement or mounting of control or safety devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the invention belongs to the technical field of air conditioners, and specifically provides a multi-connection internal and external machine communication method and multi-connection.
  • multi-line is divided into two types: one-to-many and multi-to-many.
  • One-to-many refers to the cooperation of an external machine and multiple internal machines arranged in parallel, and multi-to-many refers to parallel connection with each other.
  • the multiple external machines set up and the multiple internal machines set up in parallel work together. Whether it’s one-to-many or multi-to-many connections, usually an external machine is selected as the master external machine.
  • the master external machine is communicatively connected with each internal machine and external machine, and uses the same or different communication protocols to communicate and interact. , To transmit control commands or data.
  • the quality and speed of communication between internal and external computers are improved through improved hardware design methods, such as the use of anti-interference and faster communication chips, program main chips, and so on.
  • one aspect of the present invention provides a multi-connected internal and external machine communication method.
  • the multi-connections include external communication tasks and internal tasks.
  • the external communication tasks refer to the communication tasks between the main control external machine and the internal machine of the multi-connections
  • the internal tasks refer to the processing of the internal machine itself.
  • the internal task includes at least one zero-level task, characterized in that the internal and external machine communication method includes the following steps: S1, determining the communication error rate of the internal machine; S2, comparing the communication error rate and The magnitude relationship between the communication error rate thresholds; S3.
  • the second-level task consists of multiple subtasks forming a new internal task before executing the second communication strategy, or directly executing the third communication strategy.
  • the communication error rate threshold includes a first communication error rate threshold r set1 ; when r ⁇ r set1 , the step S3 includes the following steps: S30, determining the internal The task level is level 0; S35. Execute the first communication strategy; the first communication strategy includes running at least one round of programs in one communication cycle, and each round of the program includes one of the external communication tasks and all of the external communication tasks. Zero task.
  • the communication error rate threshold further includes a second communication error rate threshold r set2 , and r set1 ⁇ r set2 ; when r set1 ⁇ r ⁇ r set2 , the step S3 includes the following steps: S31. Determine that the level of the internal task is level 1; S311. Disassemble at least one of the zero-level tasks into multiple first-level subtasks; S312.
  • the zero-level task constitutes a new internal task; S36, execute a second communication strategy; the second communication strategy includes running multiple rounds of programs in one communication cycle, and each round of the program includes one of the external communication tasks, not disassembled The zero-level task and one of the first-level subtasks after disassembly.
  • the communication error rate threshold further includes a third communication error rate threshold r set3 , and r set2 ⁇ r set3 ; when r set2 ⁇ r ⁇ r set3 , the step S3 includes the following steps: S32, determining that the level of the internal task is level 2; S321, disassembling at least one of the zero-level tasks into multiple first-level subtasks, and then disassembling at least one of the first-level subtasks as multiple subtasks. Two second-level subtasks; S322.
  • the strategy includes running multiple rounds of programs in one communication cycle, and each round of the program includes one of the external communication task, the undisassembled zero-level task, and one of the first-level subtasks of the disassembled zero-level task. Or one of the secondary subtasks.
  • the communication error rate threshold further includes a fourth communication error rate threshold r set4 , and r set3 ⁇ r set4 ; when r set3 ⁇ r ⁇ r set44 , the step S3 includes the following steps: S33, determining that the level of the internal task is level 3; S331, disassembling at least one of the zero-level tasks into multiple first-level subtasks, and then disassembling at least one of the first-level subtasks as multiple subtasks. Continue to disassemble at least one of the second-level subtasks into multiple third-level subtasks; S332.
  • the task and the second-level subtask constitute a new internal task;
  • S36 execute the second communication strategy;
  • the second communication strategy includes running multiple rounds of programs in one communication cycle, and each round of the program includes one of the external communication tasks ,
  • the step S3 includes the following steps: S34, determining that the level of the internal task is level 4; S37, executing the third communication strategy;
  • the third communication strategy includes running at least one round of the program in one communication cycle, and each round of the program includes multiple external communication tasks and all the zero-level tasks.
  • the step S1 specifically includes the following steps: S10. Acquire the total number of communications A and the number of successful communications a between the master control external machine and the internal machine in a communication cycle S11. Calculate the communication error rate r of the internal machine according to the following formula:
  • the internal and external machine communication method further includes the following steps: S4. Return to the step S1 after keeping the current communication strategy running for a preset period of time.
  • the step S4 is specifically to keep running under the current communication strategy for 5 minutes and then return to the step S1.
  • the multi-connection of the present invention includes an external communication task and an internal task.
  • the external communication task refers to the communication task between the main control external machine and the internal machine of the multi-connection
  • the internal task refers to the processing of the internal machine itself.
  • the internal task includes at least one zero-level task, and the multi-online internal and external computer communication method includes the following steps: S1, determining the communication error rate of the internal computer; S2, comparing the communication error rate and communication The magnitude relationship between the bit error rate thresholds; S3.
  • the internal and external computer communication method determines the level of internal tasks according to the comparison result of the relationship between the communication error rate and the communication error rate threshold, and then selects and executes three different communication strategies according to different levels, especially when the hierarchical disassembly is in The higher the level of internal tasks, the higher the level, the more the level of disassembly, and then the disassembled internal tasks are formed into new internal tasks, and finally the corresponding communication strategy is executed to increase the number of external communication tasks in a communication cycle , To speed up the communication speed of the internal and external machines and improve the communication quality.
  • the present invention also provides a multi-connection, one main control external machine and multiple internal machines, the main control external machine and the internal machine are communicatively connected by the above-mentioned internal and external machine communication method.
  • the air conditioner of the present invention has all the technical effects of the above-mentioned internal and external machine communication method. Those skilled in the art can know without any doubt based on the foregoing description, so the details are not described herein again.
  • Figure 1 is a flowchart of the main steps of the multi-connection internal and external machine communication method of the present invention
  • Fig. 3 is a detailed step flowchart of another embodiment of the multi-connection internal and external machine communication method of the present invention.
  • the one-to-many multi-line includes a main control external machine and multiple internal machines arranged in parallel with each other. Control outside machine. Whether it is one-to-many-on-line or multi-to-many-on-line, the master external machine is connected to the internal machine or the external machine through communication, and the two interact through the same or different communication protocols to transmit control commands or data between each other.
  • Multi-connection usually includes external communication tasks and internal tasks.
  • the external communication task refers to the communication task between the main control external machine and the internal machine, such as: the main control external machine and the internal machine or the main control external machine and the external machine to realize the mutual communication and execution of some functional function combinations , Such as receiving data function, sending data function, communication state conversion function, etc.
  • Internal tasks refer to functions that have nothing to do with communication and do not need to communicate with the outside world. They are only some functional functions handled by the internal or external machine itself, such as: fault alarm processing, digital tube display, key operation, dial code selection, wind speed adjustment, operation mode Judgment, sensor detection, etc.
  • the following example illustrates the communication strategy between multi-connected internal and external machines:
  • the external communication task is I
  • the internal task includes three zero-level tasks, which include A, B, and C, respectively, between the internal and external machines.
  • the program is run according to the first communication strategy.
  • the first communication strategy refers to running at least one round of the program in one communication cycle, and each round of the program includes an external communication task I and all zero-level tasks.
  • the communication cycle refers to the time it takes for the external communication task and the internal task to complete at least one round of communication
  • the zero-level task refers to the internal task before the disassembly process.
  • the first communication strategy is to run programs in the following order: I-A-B-C-I-A-B-C....
  • the present invention provides a multi-connected internal and external machine communication method to achieve improved multi-connections.
  • the multi-connection internal and external machine communication method of the present invention mainly includes the following steps:
  • the master external machine In multi-line internal and external machine communication, the master external machine is the main transmitter, and the internal machine responds after receiving the correct data from the master external machine, otherwise it does not respond. After the main control external machine receives the correct response data from the internal machine, it will reply the reception OK signal to the internal machine, and the internal machine will stop sending the response after receiving this signal. If it does not receive the OK signal from the master external computer, the internal computer will continue to send responses until the maximum number of transmissions is reached.
  • the internal computer program needs to process many internal tasks, and it is prone to delays when processing external communication tasks such as receiving or sending data, which affects the normal communication sequence, causes data errors in the communication bus, and causes the external computer to not receive a response or receive.
  • the OK signal cannot be returned when the error response is reached;
  • the communication bus interference is serious.
  • the program sends and receives data according to the normal sequence, the bus data error is caused by the interference, and the internal machine cannot receive the correct data from the main control external machine and does not respond. Or the internal machine responded after receiving the correct data from the main control external machine, but the main control external machine could not receive the correct response data from the internal machine and could not reply to the reception OK signal, causing the internal machine to try to send multiple times. For example, if the maximum number of transmissions of the internal machine is limited to 100 times, if the main control external machine still cannot receive the data of the internal machine normally within these 100 times, the internal machine will give up the opportunity to send data in this round. But these 100 invalid communications occupies communication resources, greatly reducing the quality and speed of internal and external communications.
  • the communication quality and speed between the main control external machine and the internal machine are measured by the indicator of communication error rate.
  • the internal and external computer communication method determines the level of internal tasks according to the comparison result of the relationship between the communication error rate and the communication error rate threshold, and then selects and executes three different communication strategies according to different levels, especially when the hierarchical disassembly is in The higher the level of internal tasks, the higher the level, the more the level of disassembly, and then the disassembled internal tasks are formed into new internal tasks, and finally the corresponding communication strategy is executed to increase the number of external communication tasks in a communication cycle , To speed up the communication speed of the internal and external machines and improve the communication quality.
  • FIGS. 2 and 3 are used to describe the multi-connection internal and external machine communication method of the present invention in detail with reference to FIGS. 2 and 3.
  • 2 is a detailed flow chart of the first embodiment of the multi-connection internal and external machine communication method of the present invention
  • FIG. 3 is a detailed step flow chart of the second embodiment of the multi-connection internal and external machine communication method of the present invention.
  • the multi-connection includes external communication task I, and the internal task includes a zero-level task A.
  • the multi-line internal and external computer communication method includes the following steps:
  • the total number of communications A refers to the total number of times the master external machine sends to an internal machine
  • the number of successful communications a refers to the number of times the master external machine can correctly accept and reply an OK signal after the internal machine only responds once.
  • the communication error rate of this internal machine is:
  • four communication error rate thresholds are set, which are the first communication error rate threshold r set1 , the second communication error rate threshold r set2 , the third communication error rate threshold r set3 and the fourth communication error rate threshold.
  • the code rate threshold is r set4 , and r set1 ⁇ reet2 ⁇ r set3 ⁇ r set4 . It should be noted that the specific number of communication error rate thresholds can be adjusted by those skilled in the art according to actual needs, for example, it can be two or three or more than four.
  • the specific value of the communication error rate threshold depends on the installation and operation environment of the multi-connection, etc., and those skilled in the art set according to the actual situation.
  • the first communication error rate threshold rset1 is 5%
  • the second communication error rate threshold is 5%
  • the rate threshold r set2 is 10%
  • the third communication error rate threshold r set3 is 15%
  • the fourth communication error rate threshold r set4 is 20%.
  • step S20 Determine whether the communication error rate r is less than the first communication error rate threshold r set1 , if yes, perform step S30, otherwise, perform step S21.
  • the first communication strategy includes executing at least one round of the program in one communication cycle, and each round of the program includes an external communication task and all zero-level tasks.
  • the first communication strategy is to run programs in the following order: I-A-I-A....
  • step S21 Continue to determine whether the communication error rate r is less than the second communication error rate threshold r set2 , if it is (ie r set1 ⁇ r ⁇ r set2 ), perform step S31, otherwise, perform step S22.
  • step S312. After identifying multiple first-level subtasks to form a new internal task, execute step S36, that is, the second communication strategy.
  • the second communication strategy includes running multiple rounds of programs in one communication cycle, and each round of programs includes an external communication task and disassembly. A first-level subtask of the post-zero-level task.
  • step S311 For example, suppose that the internal task A is disassembled in step S311 into two first-level subtasks A1 and A2, and A1 and A2 are determined as the first new internal tasks in step S312, and then the I-A1-I- A2-I-A1 toast The program is run in sequence.
  • step S22 Continue to determine whether the communication error rate r is less than the third communication error rate threshold r set3 , if yes (ie, r set2 ⁇ r ⁇ r set3 ), perform step S32, otherwise, perform step S23.
  • step S322. After determining that the second-level subtask and the undisassembled first-level subtask form a new internal task, perform step S36, that is, the second communication strategy.
  • the second communication strategy includes running multiple rounds of programs in one communication cycle, and each round includes A first-level subtask or a second-level subtask of an external communication task and the zero-level task after disassembly.
  • the internal task A is disassembled into two first-level subtasks A1 and A2 in step S321, and then the first-level subtask A1 is disassembled into two second-level subtasks A11 and A12, and then A11 is determined in step S322 , A12 and A2 are the second new internal tasks, and finally run the program in the order of I-A11-I-A2-I-A12-I-A11-I-A2-I-A12... according to the second communication strategy.
  • step S23 r continues to judge the communication error rate is less than a fourth communication error rate threshold r set4, if (i.e., r set3 ⁇ r ⁇ r set4) is executed step S33, the NO (i.e. r ⁇ r set4) executes step S34.
  • step S36 is executed, that is, the second communication strategy is executed, and the second communication strategy includes running in one communication cycle Multiple rounds of the program, each round of the program includes an external communication task and a first-level subtask, a second-level subtask or a third-level subtask of the zero-level task after disassembly.
  • the internal task A is disassembled into two first-level subtasks A1 and A2 in step S331, and then the first-level subtask A1 is disassembled into two second-level subtasks A11 and A12, and the second-level subtask is continued to be disassembled A11 is A111 and A112, and then A111, A112, A12, and A2 are identified as the second new internal tasks in step S332, and finally I-A111-I-A2-I-A12-I-A112-I is adopted according to the second communication strategy -A111-I-A2» The program is run in sequence.
  • the number of task dismantling layers is related to the functions implemented by the program. The finer the dismantling, the shorter the running time of each subtask, but the more complex the program design and implementation. Therefore, in order to achieve the difference between the speed of communication and the difficulty of program design Balanced, so that the communication cost of the internal and external machines is at a normal level.
  • the internal task A is determined to be level 4
  • no new internal tasks are formed through hierarchical disassembly, but step S37 is directly executed.
  • the third communication task includes running at least one round of the program in one communication cycle, and each round of the program includes multiple external communication tasks and all zero-level tasks.
  • the internal and external machine communication method of this embodiment determines the level of internal tasks according to the comparison result of the magnitude relationship between the communication error rate and the communication error rate threshold, and disassembles the internal tasks at a higher level in a hierarchical manner, the higher the level is The more levels of disassembly, the disassembled internal tasks are formed into new internal tasks, and finally run in accordance with the normal communication strategy, which increases the number of external communication tasks in a communication cycle, thereby accelerating the communication speed of internal and external machines, and improving Communication quality.
  • the internal and external machine communication method of this embodiment defines the highest level of internal tasks as level 4.
  • level 4 it is a means to directly increase the number of times of external communication tasks in the normal communication strategy to achieve acceleration
  • the communication speed of internal and external computers is to improve the quality of communication, so as to avoid the problem of excessive dismantling of levels and excessive difficulty in program design, so as to achieve a balance between speeding up communication, improving communication quality and controlling costs.
  • step S3 the multi-connection internal and external machine communication method further includes the following steps:
  • step S4 Return to step S10 after running the current communication strategy for a preset period of time.
  • step S4 the internal and external machine communication method
  • the internal task level of the internal machine can be dynamically adjusted to better adapt to the use and installation of multiple connections.
  • the current communication strategy runs for 5 minutes and then returns to step S10.
  • those skilled in the art can set the value according to actual needs.
  • the internal tasks in this embodiment include multiple zero-level tasks, which can be specifically the first zero-level task A, the second zero-level task B, and the third zero-level task C, for example: the first zero-level task.
  • Level task A is sensor detection
  • the second zero level task B is wind speed adjustment
  • the third zero level task C is the operation mode judgment. It should be noted that this article is only for illustrative purposes and lists the above three zeros.
  • level tasks those skilled in the art can set the number of zero-level tasks in the internal tasks and the specific content referred to by each zero-level task according to actual conditions, and the external tasks are still represented by I.
  • the total number of communications A refers to the total number of times the master external machine sends to an internal machine
  • the number of successful communications a refers to the number of times the master external machine can correctly accept and reply an OK signal after the internal machine only responds once.
  • the communication error rate of this internal machine is:
  • four communication error rate thresholds are set, which are the first communication error rate threshold r set1 , the second communication error rate threshold r set2 , the third communication error rate threshold r set3 and the fourth communication error rate threshold.
  • the code rate threshold is r set4 , and r set1 ⁇ r set2 ⁇ r set3 ⁇ r set4 . It should be noted that the specific number of communication error rate thresholds can be adjusted by those skilled in the art according to actual needs, for example, it can be two or three or more than four.
  • the specific value of the communication error rate threshold depends on the installation and operation environment of the multi-connection, etc., and those skilled in the art set according to the actual situation.
  • the first communication error rate threshold rset1 is 5%
  • the second communication error rate threshold is 5%
  • the rate threshold r set2 is 10%
  • the third communication error rate threshold r set3 is 15%
  • the fourth communication error rate threshold r set4 is 20%.
  • step S20' Determine whether the communication error rate r is less than the first communication error rate threshold r set1 , if yes, perform step S30', otherwise, perform step S21'.
  • the first communication strategy includes running at least one round of the program in a communication cycle, and each round of the program includes an external communication task and all zero-level tasks.
  • the running sequence of the first communication strategy in this embodiment is: I-A-B-C-I-A-B-C....
  • step S21' continue to determine whether the communication error rate r is less than the second communication error rate threshold r set2 , if yes, perform step S31', otherwise, perform step S22'.
  • At least one zero-level task of disassembling internal tasks is multiple first-level subtasks
  • step S36' that is, the second communication strategy, which includes running multiple rounds of programs in one communication cycle, and each round of the program Including an external communication task, an undisassembled zero-level task, and a first-level subtask of the disassembled zero-level task.
  • first zero-level task A is disassembled into two first-level subtasks A1 and A2 in step S311, and the second zero-level task B is disassembled into three first-level subtasks B1, B2, and B3, step S312
  • the first-level subtasks A1, A2, B1, B2, and B3 and the undisassembled third zero-level task C are identified as the first new internal task, and then the program is run in the following order according to the second communication strategy:
  • step S22' continue to determine whether the communication error rate r is less than the third communication error rate threshold r set3 , if yes, perform step S32', otherwise, perform step S23'.
  • S321' Disassemble at least one zero-level task into multiple first-level subtasks, and then disassemble at least one first-level subtask into multiple second-level subtasks;
  • step S322' after determining that the second-level subtask, the undisassembled first-level subtask and the zero-level task are the second new internal tasks, perform step S36', that is, the second communication task, which includes running multiple rounds of programs in one communication cycle, Each round of the program includes an external communication task, an undisassembled zero-level task, and a first-level subtask or a second-level subtask of the disassembled zero-level task.
  • step S321' the internal task A is disassembled into two first-level subtasks A1 and A2, and the second zero-level task B is disassembled into three first-level subtasks B1, B2, and B3, and then one is disassembled.
  • the first-level subtask A1 is three second-level subtasks A11, A12, and A13
  • the first-level subtask B2 is disassembled into two second-level subtasks B21 and B22, and then A11, A12, A13, A2, B1 are identified in step S322 , B21, B22, B3 and C are the second new internal tasks, and finally run the program in the following order according to the second communication strategy:
  • step S23' continue to determine whether the communication error rate r is less than the fourth communication error rate threshold r set4 , if yes, perform step S33', otherwise, perform step S34'.
  • S331' Disassemble at least one zero-level task into multiple first-level subtasks, then disassemble at least one first-level subtask into multiple second-level subtasks, and continue to disassemble at least one second-level subtask into multiple third-level subtasks Task;
  • step S332' after determining that the three-level subtask and the undisassembled zero-level task, the first-level subtask and the second-level subtask are the third new internal tasks, perform step S36', that is, the second communication task, and the device is included in one communication cycle
  • step S36' that is, the second communication task
  • each round of the program includes an external communication task, a first-level subtask, a second-level subtask, or a third-level subtask for the disassembled zero-level task and the disassembled zero-level task.
  • step S331' suppose in step S331' that the first zero-level task A is disassembled into two first-level subtasks A1 and A2, and the second zero-level task B is disassembled into three first-level subtasks B1, B2, and B3, and then Disassemble the first level subtask A1 into three second level subtasks A11, A12 and A13, disassemble the first level subtask B2 into two second level subtasks B21 and B22, and continue to disassemble the second level subtask A11 into two three subtasks.
  • the number of task dismantling layers is related to the functions implemented by the program. The finer the dismantling, the shorter the running time of each subtask, but the more complex the program design and implementation. Therefore, in order to achieve the difference between the speed of communication and the difficulty of program design Balanced, so that the communication cost of the internal and external machines is at a normal level.
  • the level of internal task A is level 4
  • no new internal tasks are formed through hierarchical disassembly, and step S50' is directly executed. .
  • the third communication strategy includes running at least one round of programs in one communication cycle, and each round of programs includes multiple external communication tasks and all zero-level tasks.
  • step S3 the internal and external machine communication method of this embodiment further includes the following steps:
  • step S4 Return to step S10' after running for a preset period of time according to the current communication strategy.
  • the present invention also provides a multi-connection including a master external machine and a plurality of internal machines.
  • the master external machine and the plurality of internal machines are communicatively connected by the above internal and external machine communication method.
  • the basic functional components and working principles constituting the air conditioner are basically the same as those in the prior art, and those skilled in the art can fully implement it based on the prior art, so this article will not repeat them.

Abstract

The present invention relates to the technical field of air conditioners. Provided are a communication method for indoor and outdoor units of a multi-split air conditioner, and a multi-split air conditioner, which aim to solve the problems of the low communication speed and poor communication quality of indoor and outdoor units of an existing multi-split air conditioner. The multi-split air conditioner comprises an external communication task and an internal task, wherein the internal task at least comprises a zero-level task. The communication method for indoor and outdoor units of a multi-split air conditioner comprises the following steps: S1, determining a communication bit error rate of an indoor unit; S2, comparing the communication bit error rate with a communication bit error rate threshold to obtain a magnitude relationship therebetween; and S3, determining the level of an internal task according to a comparison result, selectively directly executing a first communication policy according to the level of the internal task, or hierarchically splitting a zero-level task into a plurality of subtasks to form a new internal task, and then executing a second communication policy, or directly executing a third communication policy. By means of the communication method for indoor and outdoor units, the level of an internal task is determined, and different communication policies are then selectively executed according to the level, so as to increase the communication speed of the indoor and outdoor units, and improve the communication quality thereof.

Description

多联机的内外机通信方法及多联机Multi-connection internal and external machine communication method and multi-connection 技术领域Technical field
本发明属于空调技术领域,具体提供一种多联机的内外机通信方法及多联机。The invention belongs to the technical field of air conditioners, and specifically provides a multi-connection internal and external machine communication method and multi-connection.
背景技术Background technique
根据内外机数量不同,多联机分为一拖多和多拖多两种类型,其中一拖多是指一个外机和相互并联设置的多个内机配合工作,而多拖多是指相互并联设置的多个外机和相互并联设置的多个内机配合工作。不论是一拖多还是多拖多多联机,通常都会选取一个外机作为主控外机,该主控外机与每个内机和外机都通信连接,利用相同或不同的通信协议来通信交互,以传输控制指令或数据。According to the number of internal and external machines, multi-line is divided into two types: one-to-many and multi-to-many. One-to-many refers to the cooperation of an external machine and multiple internal machines arranged in parallel, and multi-to-many refers to parallel connection with each other. The multiple external machines set up and the multiple internal machines set up in parallel work together. Whether it’s one-to-many or multi-to-many connections, usually an external machine is selected as the master external machine. The master external machine is communicatively connected with each internal machine and external machine, and uses the same or different communication protocols to communicate and interact. , To transmit control commands or data.
多联机的内机数量很多,目前最大数量可达到128台。主控外机连接内机数量越多,通信数据量越大,程序中各种处理任务执行速度越慢,影响了通信实时任务,容易出现通信接收发送数据时序等错误导致误判。另外,内机数量越多,引入的干扰越多,使通信质量可靠性进一步降低。There are many internal machines with multiple connections, and the maximum number can reach 128 at present. The more the main control external machine is connected to the internal machine, the larger the amount of communication data, the slower the execution speed of various processing tasks in the program, which affects the real-time communication tasks, and is prone to errors in the timing of communication receiving and sending data, which may lead to misjudgment. In addition, the greater the number of internal computers, the more interference is introduced, which further reduces the reliability of communication quality.
目前,通过改进硬件设计的方法来改善内外机之间的通信质量和速度,比如使用抗干扰强的速度更快的通信芯片、程序主芯片等。At present, the quality and speed of communication between internal and external computers are improved through improved hardware design methods, such as the use of anti-interference and faster communication chips, program main chips, and so on.
但是,采用更换抗干扰强的速度更快的各种芯片,一方面增加了硬件设计成本,另一方面软件要根据不同的硬件同步调整,可能造成不同的硬件无法兼容用在同一个内外机系统中的问题。However, the use of various chips with strong anti-interference and faster speed increases the cost of hardware design on the one hand, and on the other hand, the software needs to be adjusted synchronously according to different hardware, which may cause different hardware to be incompatible with the same internal and external computer system. In the problem.
有鉴于此,本领域技术人员亟待另辟蹊径,来解决现有多联机的内外机通信速度慢、质量差的问题。In view of this, those skilled in the art urgently need to find another way to solve the problems of slow communication speed and poor quality of the existing multi-connection internal and external computers.
发明内容Summary of the invention
为了解决现有多联机的内外机通信速度慢、质量差的问题,本发明一方面提供了一种多联机的内外机通信方法。In order to solve the problems of slow communication speed and poor quality of the existing multi-connected internal and external machines, one aspect of the present invention provides a multi-connected internal and external machine communication method.
所述多联机包括外部通信任务和内部任务,所述外部通信任务是指所述多联机的主控外机和内机之间的通信任务,所述内部任务是指所述内机自身处理的任务,所述内部任务至少包括一个零级任务,其特征在于,所述内外机通信方法包括如下步骤:S1、确定所述内机的通信误码率;S2、比较所述通信误码率和通信误码率阈值之间的大小关系;S3、根据比较结果确定所述内部任务的等级,并根据所述内部任务的等级选择性的直接执行第一通信策略,或者分层拆解所述零级任务为多个子任务组成新内部任务后再执行第二通信策略,或者直接执行第三通信策略。The multi-connections include external communication tasks and internal tasks. The external communication tasks refer to the communication tasks between the main control external machine and the internal machine of the multi-connections, and the internal tasks refer to the processing of the internal machine itself. The internal task includes at least one zero-level task, characterized in that the internal and external machine communication method includes the following steps: S1, determining the communication error rate of the internal machine; S2, comparing the communication error rate and The magnitude relationship between the communication error rate thresholds; S3. Determine the level of the internal task according to the comparison result, and selectively execute the first communication strategy directly according to the level of the internal task, or disassemble the zero in a hierarchical manner The second-level task consists of multiple subtasks forming a new internal task before executing the second communication strategy, or directly executing the third communication strategy.
上述内外机通信方法的一优选方案中,所述通信误码率阈值包括第一通信误码率阈值r set1;当r<r set1时,所述步骤S3包括如下步骤:S30、确定所述内部任务的等级为0级;S35、执行所述第一通信策略;所述第一通信策略包括在一个通信周期内至少运行一轮程序,每轮程序中包括一个所述外部通信任务和所有所述零级任务。 In a preferred solution of the foregoing internal and external machine communication method, the communication error rate threshold includes a first communication error rate threshold r set1 ; when r<r set1 , the step S3 includes the following steps: S30, determining the internal The task level is level 0; S35. Execute the first communication strategy; the first communication strategy includes running at least one round of programs in one communication cycle, and each round of the program includes one of the external communication tasks and all of the external communication tasks. Zero task.
上述内外机通信方法的一优选方案中,所述通信误码率阈值还包括第二通信误码率阈值r set2,并且r set1<r set2;当r set1≤r<r set2时,所述步骤S3包括如下步骤:S31、确定所述内部任务的等级为1级;S311、至少拆解一个所述零级任务为多个一级子任务;S312、将所述一级子任务和未拆解的所述零级任务组成新内部任务;S36、执行第二通信策略;所述第二通信策略包括在一个通信周期内运行多轮程序,每轮程序包括一个所述外部通信任务、未拆解的所述零级任务和拆解后的一个所述一级子任务。 In a preferred solution of the foregoing internal and external computer communication method, the communication error rate threshold further includes a second communication error rate threshold r set2 , and r set1 <r set2 ; when r set1 ≤ r <r set2 , the step S3 includes the following steps: S31. Determine that the level of the internal task is level 1; S311. Disassemble at least one of the zero-level tasks into multiple first-level subtasks; S312. Disassemble the first-level subtasks and undisassembled The zero-level task constitutes a new internal task; S36, execute a second communication strategy; the second communication strategy includes running multiple rounds of programs in one communication cycle, and each round of the program includes one of the external communication tasks, not disassembled The zero-level task and one of the first-level subtasks after disassembly.
上述内外机通信方法的一优选方案中,所述通信误码率阈值还包括第三通信误码率阈值r set3,并且r set2<r set3;当r set2≤r<r set3时,所述步骤S3包括如下步骤:S32、确定所述内部任务的等级为2级;S321、至少拆解一个所述零级任务为多个一级子任务,再拆解至少一个所述一级子任务为多个二级子任务;S322、将所述二级子任务和未拆解的所述零级任务和所述一级子任务组成新内部任务;S36、执行第二通信策略;所述第二通信策略包括在一个通信周期内运行多轮程序,每轮程序包括一个所述外部通信任务、未拆解的所述零级任务 和拆解后的所述零级任务的一个所述一级子任务或者一个所述二级子任务。 In a preferred solution of the foregoing internal and external computer communication method, the communication error rate threshold further includes a third communication error rate threshold r set3 , and r set2 <r set3 ; when r set2 ≤ r <r set3 , the step S3 includes the following steps: S32, determining that the level of the internal task is level 2; S321, disassembling at least one of the zero-level tasks into multiple first-level subtasks, and then disassembling at least one of the first-level subtasks as multiple subtasks. Two second-level subtasks; S322. Combine the second-level subtask, the undisassembled zero-level task and the first-level subtask into a new internal task; S36, execute a second communication strategy; the second communication The strategy includes running multiple rounds of programs in one communication cycle, and each round of the program includes one of the external communication task, the undisassembled zero-level task, and one of the first-level subtasks of the disassembled zero-level task. Or one of the secondary subtasks.
上述内外机通信方法的一优选方案中,所述通信误码率阈值还包括第四通信误码率阈值r set4,并且r set3<r set4;当r set3≤r<r set44时,所述步骤S3包括如下步骤:S33、确定所述内部任务的等级为3级;S331、至少拆解一个所述零级任务为多个一级子任务,再至少拆解一个所述一级子任务为多个二级子任务,继续至少拆解一个所述二级子任务为多个三级子任务;S332、将所述三级子任务和未拆解的所述零级任务、所述一级子任务和所述二级子任务组成新内部任务;S36、执行所述第二通信策略;所述第二通信策略包括在一个通信周期内运行多轮程序,每轮程序包括一个所述外部通信任务、未拆解的所述零级任务和拆解后的所述零级任务的一个所述一级子任务、一个所述二级子任务或者一个所述三级子任务。 In a preferred solution of the foregoing internal and external machine communication method, the communication error rate threshold further includes a fourth communication error rate threshold r set4 , and r set3 <r set4 ; when r set3 ≤ r <r set44 , the step S3 includes the following steps: S33, determining that the level of the internal task is level 3; S331, disassembling at least one of the zero-level tasks into multiple first-level subtasks, and then disassembling at least one of the first-level subtasks as multiple subtasks. Continue to disassemble at least one of the second-level subtasks into multiple third-level subtasks; S332. Disassemble the third-level subtask, the undisassembled zero-level task, and the first-level subtask; The task and the second-level subtask constitute a new internal task; S36, execute the second communication strategy; the second communication strategy includes running multiple rounds of programs in one communication cycle, and each round of the program includes one of the external communication tasks , The undisassembled zero-level task and one of the first-level subtasks, one of the second-level subtasks, or one of the third-level subtasks of the disassembled zero-level tasks.
上述内外机通信方法的一优选方案中,当r≥r set4时,所述步骤S3包括如下步骤:S34、确定所述内部任务的等级为4级;S37、执行所述第三通信策略;所述第三通信策略包括在一个通信周期内至少运行一轮程序,每轮程序包括多个外部通信任务和所有所述零级任务。 In a preferred solution of the above-mentioned internal and external machine communication method, when r≥r set4 , the step S3 includes the following steps: S34, determining that the level of the internal task is level 4; S37, executing the third communication strategy; The third communication strategy includes running at least one round of the program in one communication cycle, and each round of the program includes multiple external communication tasks and all the zero-level tasks.
上述内外机通信方法的一优选方案中,所述步骤S1具体包括如下步骤:S10、获取一个通信周期内所述主控外机和所述内机之间的总通信次数A和成功通信次数a;S11、根据如下公式计算所述内机的通信误码率r:In a preferred solution of the above-mentioned internal and external machine communication method, the step S1 specifically includes the following steps: S10. Acquire the total number of communications A and the number of successful communications a between the master control external machine and the internal machine in a communication cycle S11. Calculate the communication error rate r of the internal machine according to the following formula:
Figure PCTCN2021101826-appb-000001
Figure PCTCN2021101826-appb-000001
在所述步骤S3之后,所述内外机通信方法还包括如下步骤:S4、保持以当前通信策略运行预设时长后返回所述步骤S1。After the step S3, the internal and external machine communication method further includes the following steps: S4. Return to the step S1 after keeping the current communication strategy running for a preset period of time.
上述内外机通信方法的一优选方案中,所述步骤S4具体为保持以当前通信策略运行5分钟后返回所述步骤S1。In a preferred solution of the foregoing internal and external machine communication method, the step S4 is specifically to keep running under the current communication strategy for 5 minutes and then return to the step S1.
本发明的多联机包括外部通信任务和内部任务,所述外部通信任务是指所述多联机的主控外机和内机之间的通信任务,所述内部任务是指所述内机自身处理的任务,所述内部任务至少包括一个零级任务,该多联机的内外机通信方法包括如下步骤:S1、确定所述内 机的通信误码率;S2、比较所述通信误码率和通信误码率阈值之间的大小关系;S3、根据比较结果确定所述内部任务的等级,根据所述内部任务的等级选择性的直接执行第一通信策略,或者分层拆解所述零级任务为多个子任务组成新内部任务后再执行第二通信策略,或者直接执行第三通信策略。The multi-connection of the present invention includes an external communication task and an internal task. The external communication task refers to the communication task between the main control external machine and the internal machine of the multi-connection, and the internal task refers to the processing of the internal machine itself. The internal task includes at least one zero-level task, and the multi-online internal and external computer communication method includes the following steps: S1, determining the communication error rate of the internal computer; S2, comparing the communication error rate and communication The magnitude relationship between the bit error rate thresholds; S3. Determine the level of the internal task according to the comparison result, and selectively execute the first communication strategy directly according to the level of the internal task, or disassemble the zero-level task hierarchically After forming a new internal task for multiple subtasks, execute the second communication strategy, or directly execute the third communication strategy.
该内外机通信方法根据通信误码率和通信误码率阈值之间大小关系的比较结果确定内部任务的等级,再根据不同等级来选择执行三种不同的通信策略,尤其是分层拆解处于较高等级的内部任务,等级越高拆解层级越多,然后将拆解后的内部任务形成新的内部任务,最后执行相应的通信策略,以增加一个通信周期内外部通信任务的数量的方式,来加快内外机的通信速度,提高通信质量。The internal and external computer communication method determines the level of internal tasks according to the comparison result of the relationship between the communication error rate and the communication error rate threshold, and then selects and executes three different communication strategies according to different levels, especially when the hierarchical disassembly is in The higher the level of internal tasks, the higher the level, the more the level of disassembly, and then the disassembled internal tasks are formed into new internal tasks, and finally the corresponding communication strategy is executed to increase the number of external communication tasks in a communication cycle , To speed up the communication speed of the internal and external machines and improve the communication quality.
另一方面,本发明还提供一种多联机,一个主控外机和多个内机,所述主控外机和所述内机通过如上所述的内外机通信方法通信连接。On the other hand, the present invention also provides a multi-connection, one main control external machine and multiple internal machines, the main control external machine and the internal machine are communicatively connected by the above-mentioned internal and external machine communication method.
需要说明的是,本发明的空调具有上述内外机通信方法的所有技术效果,本领域技术人员根据前面表述可以毫无疑义的获知,故而本文在此不再赘述。It should be noted that the air conditioner of the present invention has all the technical effects of the above-mentioned internal and external machine communication method. Those skilled in the art can know without any doubt based on the foregoing description, so the details are not described herein again.
附图说明Description of the drawings
图1是本发明的多联机的内外机通信方法的主要步骤流程图;Figure 1 is a flowchart of the main steps of the multi-connection internal and external machine communication method of the present invention;
图2是本发明的多联机的内外机通信方法的一实施例的详细步骤流程图;2 is a detailed step flowchart of an embodiment of the multi-connection internal and external machine communication method of the present invention;
图3是本发明的多连接的内外机通信方法的另一实施例的详细步骤流程图。Fig. 3 is a detailed step flowchart of another embodiment of the multi-connection internal and external machine communication method of the present invention.
具体实施方式Detailed ways
下面参照附图来描述本发明的优选实施方式。本领域技术人员应当理解的是,这些实施方式仅仅用于解释本发明的技术原理,并非旨在限制本发明的保护范围。The preferred embodiments of the present invention will be described below with reference to the drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present invention, and are not intended to limit the protection scope of the present invention.
在本申请的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of this application, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance.
众所周知,根据外机数量不同,多联机分为一拖多多联机和多拖多多联机。其中,一拖多多联机包括一个主控外机和相互并联设置的多个内机,多拖多多联机包括相互并联的多个外机和相互并联的多个内机,并且选取一个外机作为主控外机。不论是一拖多多联机还是多拖多多联机,主控外机和内机或外机通信连接,两者通过相同或不同的通信协议进行交互,相互之间传输控制指令或数据。As we all know, according to the number of external machines, multi-connections are divided into one-to-multi-connections and multi-to-multi-connections. Among them, the one-to-many multi-line includes a main control external machine and multiple internal machines arranged in parallel with each other. Control outside machine. Whether it is one-to-many-on-line or multi-to-many-on-line, the master external machine is connected to the internal machine or the external machine through communication, and the two interact through the same or different communication protocols to transmit control commands or data between each other.
多联机通常包括外部通信任务和内部任务。其中,外部通信任务是指主控外机和内机之间的通信任务,例如:主控外机和内机或者主控外机和外机之间为实现互相通信执行的一些功能函数组合体,如接收数据函数、发送数据函数、通信状态转换函数等。内部任务是指跟通信无关,不需要跟外界通信,仅是内机或外机自身处理的一些功能函数,如:故障报警处理、数码管显示、按键操作、拨码选择、风速调整、运转模式判断、传感器检测等。Multi-connection usually includes external communication tasks and internal tasks. Among them, the external communication task refers to the communication task between the main control external machine and the internal machine, such as: the main control external machine and the internal machine or the main control external machine and the external machine to realize the mutual communication and execution of some functional function combinations , Such as receiving data function, sending data function, communication state conversion function, etc. Internal tasks refer to functions that have nothing to do with communication and do not need to communicate with the outside world. They are only some functional functions handled by the internal or external machine itself, such as: fault alarm processing, digital tube display, key operation, dial code selection, wind speed adjustment, operation mode Judgment, sensor detection, etc.
为了便于理解,下面举例来说明多联机的内外机之间的通信策略:例如,外部通信任务为I,内部任务包括三个零级任务,其分别为包括A、B和C,内外机之间按照第一通信策略运行程序,第一通信策略是指在一个通信周期内至少运行一轮程序,每轮所述程序包括一个外部通信任务I和所有零级任务。其中,通信周期是指外部通信任务和内部任务至少完成一轮通信所用的时间,零级任务是指未进行拆解处理前的内部任务。举例来说,第一通信策略是按照如下顺序运行程序:I-A-B-C-I-A-B-C……。For ease of understanding, the following example illustrates the communication strategy between multi-connected internal and external machines: For example, the external communication task is I, and the internal task includes three zero-level tasks, which include A, B, and C, respectively, between the internal and external machines. The program is run according to the first communication strategy. The first communication strategy refers to running at least one round of the program in one communication cycle, and each round of the program includes an external communication task I and all zero-level tasks. Among them, the communication cycle refers to the time it takes for the external communication task and the internal task to complete at least one round of communication, and the zero-level task refers to the internal task before the disassembly process. For example, the first communication strategy is to run programs in the following order: I-A-B-C-I-A-B-C....
如前面背景技术中所述,多联机的内机数量越多,其通信速度越慢,通信质量越差,为此本发明提供了一种多联机的内外机通信方法,来实现提高多联机的通信速度和质量的目的。As described in the previous background art, the more the number of multi-connected internal machines, the slower the communication speed, and the worse the communication quality. For this reason, the present invention provides a multi-connected internal and external machine communication method to achieve improved multi-connections. The purpose of communication speed and quality.
参见图1,本发明的多联机的内外机通信方法的主要包括如下步骤:Referring to Fig. 1, the multi-connection internal and external machine communication method of the present invention mainly includes the following steps:
S1、确定内机的通信误码率。S1. Determine the communication error rate of the internal machine.
在多联机的内外机通信中,主控外机为主发,内机收到主控外机的正确数据后进行应答,否则不进行应答。主控外机接收到内 机的正确应答数据后会给内机回复接收OK信号,内机收到这个信号后停止发送应答。如果收不到主控外机回复的这个OK信号,内机就会持续发送应答,直到达到最大发送次数为止。In multi-line internal and external machine communication, the master external machine is the main transmitter, and the internal machine responds after receiving the correct data from the master external machine, otherwise it does not respond. After the main control external machine receives the correct response data from the internal machine, it will reply the reception OK signal to the internal machine, and the internal machine will stop sending the response after receiving this signal. If it does not receive the OK signal from the master external computer, the internal computer will continue to send responses until the maximum number of transmissions is reached.
造成内机持续发送应答,但没收到主控外机回复OK信号的原因主要有两个:There are two main reasons that cause the internal machine to continuously send a response, but it does not receive the OK signal from the main control external machine:
第一、内机程序需要处理的内部任务多,处理接收或发送数据等外部通信任务时容易出现延误,从而影响了正常的通信时序,导致通信总线数据错误,导致外机没有收到应答或收到错误应答而无法回复OK信号;First, the internal computer program needs to process many internal tasks, and it is prone to delays when processing external communication tasks such as receiving or sending data, which affects the normal communication sequence, causes data errors in the communication bus, and causes the external computer to not receive a response or receive. The OK signal cannot be returned when the error response is reached;
第二、通信总线干扰严重,虽然程序按正常时序发送接收数据,但由于干扰导致总线数据错误,出现内机接收不到主控外机的正确数据,不进行应答。或者内机接收到主控外机的正确数据后进行应答了,但主控外机接收不到内机的正确应答数据无法回复接收OK信号,导致内机尝试多次发送。比如:限定内机的最大发送次数是100次,则在这100次内主控外机仍无法正常接收该内机数据时,该内机放弃本轮发送数据机会。但这100次无效通信占用了通信资源,极大降低了内外机通信的质量和速度。Second, the communication bus interference is serious. Although the program sends and receives data according to the normal sequence, the bus data error is caused by the interference, and the internal machine cannot receive the correct data from the main control external machine and does not respond. Or the internal machine responded after receiving the correct data from the main control external machine, but the main control external machine could not receive the correct response data from the internal machine and could not reply to the reception OK signal, causing the internal machine to try to send multiple times. For example, if the maximum number of transmissions of the internal machine is limited to 100 times, if the main control external machine still cannot receive the data of the internal machine normally within these 100 times, the internal machine will give up the opportunity to send data in this round. But these 100 invalid communications occupies communication resources, greatly reducing the quality and speed of internal and external communications.
目前,通过通信误码率这一指标来衡量主控外机和内机之间的通信质量和速度。At present, the communication quality and speed between the main control external machine and the internal machine are measured by the indicator of communication error rate.
S2、比较通信误码率和通信误码率阈值之间的大小关系;S2. Compare the magnitude relationship between the communication error rate and the communication error rate threshold;
S3、根据比较结果确定所述内部任务的等级,根据确定后的等级选择性的执行第一通信策略,或者分层拆解内部任务组成新内部任务后执行第二通信策略,或者执行第三通信策略。S3. Determine the level of the internal task according to the comparison result, and selectively execute the first communication strategy according to the determined level, or execute the second communication strategy after disassembling the internal tasks into new internal tasks in layers, or execute the third communication Strategy.
该内外机通信方法根据通信误码率和通信误码率阈值之间大小关系的比较结果确定内部任务的等级,再根据不同等级来选择执行三种不同的通信策略,尤其是分层拆解处于较高等级的内部任务,等级越高拆解层级越多,然后将拆解后的内部任务形成新的内部任务,最后执行相应的通信策略,以增加一个通信周期内外部通信任务的数量的方式,来加快内外机的通信速度,提高通信质量。The internal and external computer communication method determines the level of internal tasks according to the comparison result of the relationship between the communication error rate and the communication error rate threshold, and then selects and executes three different communication strategies according to different levels, especially when the hierarchical disassembly is in The higher the level of internal tasks, the higher the level, the more the level of disassembly, and then the disassembled internal tasks are formed into new internal tasks, and finally the corresponding communication strategy is executed to increase the number of external communication tasks in a communication cycle , To speed up the communication speed of the internal and external machines and improve the communication quality.
为了便于更好地理解,下面结合图2和3,以两个实施例来详细说明本发明的多联机的内外机通信方法。其中,图2是本发明 的多联机的内外机通信方法的实施例一的详细步骤流程图,图3是本发明的多联机的内外机通信方法的实施例二的详细步骤流程图。In order to facilitate a better understanding, the following two embodiments are used to describe the multi-connection internal and external machine communication method of the present invention in detail with reference to FIGS. 2 and 3. 2 is a detailed flow chart of the first embodiment of the multi-connection internal and external machine communication method of the present invention, and FIG. 3 is a detailed step flow chart of the second embodiment of the multi-connection internal and external machine communication method of the present invention.
实施例一:Example one:
假设本实施例中多联机包括外部通信任为I,内部任务包括一个零级任务A。Assuming that in this embodiment, the multi-connection includes external communication task I, and the internal task includes a zero-level task A.
该多联机的内外机通信方法包括如下步骤:The multi-line internal and external computer communication method includes the following steps:
S10、获取一个通信周期内主控外机和内机之间的总通信次数A和成功通信次数a。S10. Obtain the total number of communications A and the number of successful communications a between the main control external machine and the internal machine in one communication cycle.
其中,总通信次数A是指主控外机给一个内机发送的总次数,成功通信次数a是指内机只进行一次正常应答后主控外机就能正确接受并且回复OK信号的次数。Among them, the total number of communications A refers to the total number of times the master external machine sends to an internal machine, and the number of successful communications a refers to the number of times the master external machine can correctly accept and reply an OK signal after the internal machine only responds once.
S11、根据如下公式计算内机的通信误码率r:S11. Calculate the internal communication bit error rate r according to the following formula:
Figure PCTCN2021101826-appb-000002
Figure PCTCN2021101826-appb-000002
例如:假设主控外机和一个内机之间的总通信次数为80次,成功通信次数为76次,其它情况是内机不发送或多次发送,该内机的通信误码率为:For example: suppose that the total number of communication times between the main control external machine and an internal machine is 80 times, and the number of successful communications is 76 times. In other cases, the internal machine does not send or sends multiple times. The communication error rate of this internal machine is:
Figure PCTCN2021101826-appb-000003
Figure PCTCN2021101826-appb-000003
本实施例中设置了四个通信误码率阈值,分别为第一通信误码率阈值r set1、第二通信误码率阈值r set2、第三通信误码率阈值r set3和第四通信误码率阈值r set4,并且r set1<r eet2<r set3<r set4。需要说明都是,通信误码率阈值的具体个数本领域技术人员可根据实际需要调整,例如可以为两个或三个或大于四个等。 In this embodiment, four communication error rate thresholds are set, which are the first communication error rate threshold r set1 , the second communication error rate threshold r set2 , the third communication error rate threshold r set3 and the fourth communication error rate threshold. The code rate threshold is r set4 , and r set1 < reet2 <r set3 <r set4 . It should be noted that the specific number of communication error rate thresholds can be adjusted by those skilled in the art according to actual needs, for example, it can be two or three or more than four.
另外,通信误码率阈值具体数值取决于多联机的安装运行环境等,本领域技术人员根据实际情况设定,本实施例中第一通信误码率阈值rset1为5%,第二通信误码率阈值r set2为10%,第三通信误码率阈值r set3为15%,第四通信误码率阈值r set4为20%。 In addition, the specific value of the communication error rate threshold depends on the installation and operation environment of the multi-connection, etc., and those skilled in the art set according to the actual situation. In this embodiment, the first communication error rate threshold rset1 is 5%, and the second communication error rate threshold is 5%. The rate threshold r set2 is 10%, the third communication error rate threshold r set3 is 15%, and the fourth communication error rate threshold r set4 is 20%.
S20、判断通信误码率r是否小于第一通信误码率阈值r set1,若是则执行步骤S30,否则执行步骤S21。 S20. Determine whether the communication error rate r is less than the first communication error rate threshold r set1 , if yes, perform step S30, otherwise, perform step S21.
S30、确定内部任务A的等级为0级;S30. Determine the level of internal task A as level 0;
S35、执行第一通信策略。S35. Execute the first communication strategy.
其中,第一通信策略包括在一个通信周期内至少执行一轮程序,每轮程序包括一个外部通信任务和所有零级任务。举例来说:第一通信策略是按照如下顺序运行程序:I-A-I-A……。Among them, the first communication strategy includes executing at least one round of the program in one communication cycle, and each round of the program includes an external communication task and all zero-level tasks. For example: the first communication strategy is to run programs in the following order: I-A-I-A....
S21、继续判断通信误码率r是否小于第二通信误码率阈值r set2,若是(即r set1≤r<r set2)则执行步骤S31,否则执行步骤S22。 S21. Continue to determine whether the communication error rate r is less than the second communication error rate threshold r set2 , if it is (ie r set1 ≤r<r set2 ), perform step S31, otherwise, perform step S22.
S31、确定内部任务A的等级为1级;S31. Determine the level of internal task A as level 1;
S311、拆解内部任务A为多个一级子任务;S311. Disassemble the internal task A into multiple first-level subtasks;
S312、认定多个一级子任务组成新内部任务后执行步骤S36,即第二通信策略,第二通信策略包括在一个通信周期内运行多轮程序,每轮程序包括一个外部通信任务和拆解后零级任务的一个一级子任务。S312. After identifying multiple first-level subtasks to form a new internal task, execute step S36, that is, the second communication strategy. The second communication strategy includes running multiple rounds of programs in one communication cycle, and each round of programs includes an external communication task and disassembly. A first-level subtask of the post-zero-level task.
举例来说,假设步骤S311中拆解内部任务A为两个一级子任务A1和A2,步骤S312中认定A1和A2为第一新内部任务,然后按照正常通信策略以I-A1-I-A2-I-A1……的顺序运行程序。For example, suppose that the internal task A is disassembled in step S311 into two first-level subtasks A1 and A2, and A1 and A2 are determined as the first new internal tasks in step S312, and then the I-A1-I- A2-I-A1...... The program is run in sequence.
S22、继续判断通信误码率r是否小于第三通信误码率阈值r set3,若是(即r set2≤r<r set3)则执行步骤S32,否则执行步骤S23。 S22. Continue to determine whether the communication error rate r is less than the third communication error rate threshold r set3 , if yes (ie, r set2 ≤r <r set3 ), perform step S32, otherwise, perform step S23.
S32、确定内部任务A的等级为2级;S32. Determine the level of internal task A as level 2;
S321、拆解内部任务A为多个一级子任务,再至少拆解一个一级子任务为多个二级子任务;S321. Disassemble the internal task A into multiple first-level subtasks, and then disassemble at least one first-level subtask into multiple second-level subtasks;
S322、认定二级子任务和未拆解的一级子任务组成新内部任务后执行步骤S36,即第二通信策略,第二通信策略包括在一个通信周期内运行多轮程序,每轮程序包括一个外部通信任务和拆解后零级任务的一个一级子任务或一个二级子任务。S322. After determining that the second-level subtask and the undisassembled first-level subtask form a new internal task, perform step S36, that is, the second communication strategy. The second communication strategy includes running multiple rounds of programs in one communication cycle, and each round includes A first-level subtask or a second-level subtask of an external communication task and the zero-level task after disassembly.
举例来说,假设步骤S321中拆解内部任务A为两个一级子任务A1和A2,再拆解一级子任务A1为两个二级子任务A11和A12,然后在步骤S322中认定A11、A12和A2为第二新内部任务,最后按照第二通信策略以I-A11-I-A2-I-A12-I-A11-I-A2-I-A12……的顺序运行程序。For example, suppose that the internal task A is disassembled into two first-level subtasks A1 and A2 in step S321, and then the first-level subtask A1 is disassembled into two second-level subtasks A11 and A12, and then A11 is determined in step S322 , A12 and A2 are the second new internal tasks, and finally run the program in the order of I-A11-I-A2-I-A12-I-A11-I-A2-I-A12... according to the second communication strategy.
S23、继续判断通信误码率r是否小于第四通信误码率阈值r set4,若是(即r set3≤r<r set4)则执行步骤S33,否(即r≥r set4)则执行步骤S34。 S23, r continues to judge the communication error rate is less than a fourth communication error rate threshold r set4, if (i.e., r set3 ≤r <r set4) is executed step S33, the NO (i.e. r≥r set4) executes step S34.
S33、确定内部任务A的等级为3级;S33. Determine the level of internal task A as level 3;
S331、拆解内部任务A为多个一级子任务,再至少拆解一个一级子任务为多个二级子任务,继续至少拆解一个二级子任务为多个三级子任务;S331. Disassemble the internal task A into multiple first-level subtasks, then disassemble at least one first-level subtask into multiple second-level subtasks, and continue to disassemble at least one second-level subtask into multiple third-level subtasks;
S332、认定三级子任务和未拆解的一级子任务和二级子任务为第三新内部任务后执行步骤S36,即执行第二通信策略,第二通信策略包括在一个通信周期内运行多轮程序,每轮程序包括一个外部通信任务和拆解后零级任务的一个一级子任务、一个二级子任务或者一个三级子任务。S332. After determining that the third-level subtask and the undisassembled first-level subtask and the second-level subtask are the third new internal tasks, step S36 is executed, that is, the second communication strategy is executed, and the second communication strategy includes running in one communication cycle Multiple rounds of the program, each round of the program includes an external communication task and a first-level subtask, a second-level subtask or a third-level subtask of the zero-level task after disassembly.
举例来说,假设步骤S331中拆解内部任务A为两个一级子任务A1和A2,再拆解一级子任务A1为两个二级子任务A11和A12,继续拆解二级子任务A11为A111和A112,然后在步骤S332中认定A111、A112、A12和A2为第二新内部任务,最后按照第二通信策略以I-A111-I-A2-I-A12-I-A112-I-A111-I-A2……的顺序运行程序。For example, suppose that the internal task A is disassembled into two first-level subtasks A1 and A2 in step S331, and then the first-level subtask A1 is disassembled into two second-level subtasks A11 and A12, and the second-level subtask is continued to be disassembled A11 is A111 and A112, and then A111, A112, A12, and A2 are identified as the second new internal tasks in step S332, and finally I-A111-I-A2-I-A12-I-A112-I is adopted according to the second communication strategy -A111-I-A2...... The program is run in sequence.
S34、确定内部任务A的等级为4级。S34. Determine the level of the internal task A as level 4.
需要说明的是,任务拆解层数与程序实现的功能有关,拆解越细每个子任务运行耗时越短,但程序设计实现越复杂,因此为了在加快通信速度和程序设计难度之间取得平衡,以使内外机通信成本处于正常水平,本实施例中当确定内部任务A等等级为4级时,不再通过分层拆解方式来形成新的内部任务,而是直接执行步骤S37。It should be noted that the number of task dismantling layers is related to the functions implemented by the program. The finer the dismantling, the shorter the running time of each subtask, but the more complex the program design and implementation. Therefore, in order to achieve the difference between the speed of communication and the difficulty of program design Balanced, so that the communication cost of the internal and external machines is at a normal level. In this embodiment, when the internal task A is determined to be level 4, no new internal tasks are formed through hierarchical disassembly, but step S37 is directly executed.
S37、执行第三通信任务。第三通信任务包括在一个通信周期内至少运行一轮程序,每轮程序包括多个外部通信任务和所有零级任务。S37. Perform the third communication task. The third communication task includes running at least one round of the program in one communication cycle, and each round of the program includes multiple external communication tasks and all zero-level tasks.
举例来说,如果r≥r set4时,按照I-I-……-I-A-I-I-……-I-A……的顺序执行程序。 For example, if r≥r set4 , execute the program in the order of II-...-IAII-...-IA....
可见,本实施例的内外机通信方法根据通信误码率和通信误码率阈值之间大小关系的比较结果确定内部任务的等级,并且分层拆解处于较高等级的内部任务,等级越高拆解层级越多,然后将拆解后的内部任务形成新的内部任务,最后按照正常通信策略运行,增加了一个通信周期内外部通信任务的数量,从而加快了内外机的通信速度,提高了通信质量。It can be seen that the internal and external machine communication method of this embodiment determines the level of internal tasks according to the comparison result of the magnitude relationship between the communication error rate and the communication error rate threshold, and disassembles the internal tasks at a higher level in a hierarchical manner, the higher the level is The more levels of disassembly, the disassembled internal tasks are formed into new internal tasks, and finally run in accordance with the normal communication strategy, which increases the number of external communication tasks in a communication cycle, thereby accelerating the communication speed of internal and external machines, and improving Communication quality.
另外,本实施例的内外机通信方法中限定了内部任务的最高等级为4级,当确定内部任务的等级为4级时直接在正常通信策略中增加外部通信任务的运行次数的手段,实现加快内外机通信速度,提高通信质量的目的,以避免拆解层级过多造成程序设计难度过大的问题,以便在加快通信速度、提高通信质量和控制成本之间达到一个平衡。In addition, the internal and external machine communication method of this embodiment defines the highest level of internal tasks as level 4. When it is determined that the level of internal tasks is level 4, it is a means to directly increase the number of times of external communication tasks in the normal communication strategy to achieve acceleration The communication speed of internal and external computers is to improve the quality of communication, so as to avoid the problem of excessive dismantling of levels and excessive difficulty in program design, so as to achieve a balance between speeding up communication, improving communication quality and controlling costs.
继续参见图2,在步骤S3后,多联机的内外机通信方法还包括如下步骤:Continuing to refer to Fig. 2, after step S3, the multi-connection internal and external machine communication method further includes the following steps:
S4、以当前通信策略运行预设时长后返回步骤S10。S4. Return to step S10 after running the current communication strategy for a preset period of time.
在实际运转中,由于安装环境和内机机型差异等原因,每台内机的误码率可能都不一样,因此内部任务的等级也各不相同,增设步骤S4后,该内外机通信方法可以动态调整内机的内部任务的等级,以便更好地适应多联机的使用及安装情况。本实施例中,以当前通信策略运行5分钟后返回步骤S10,当然,本领域技术人员可以根据实际需求来设定该数值。In actual operation, due to the differences in the installation environment and internal machine models, the bit error rate of each internal machine may be different, so the level of internal tasks is also different. After the addition of step S4, the internal and external machine communication method The internal task level of the internal machine can be dynamically adjusted to better adapt to the use and installation of multiple connections. In this embodiment, the current communication strategy runs for 5 minutes and then returns to step S10. Of course, those skilled in the art can set the value according to actual needs.
实施例二:Embodiment two:
与实施例一相比,本实施例中的内部任务包括多个零级任务,具体可以为第一零级任务A、第二零级任务B和第三零级任务C,例如:第一零级任务A为传感器检测,第二零级任务B为风速调整,第三零级任务C为运转模式判断,需要说明的是,本文在此仅是为了便于说明示例性等列出上述三个零级任务,本领域技术人员可以根据实际来设定内部任务中零级任务的个数以及每个零级任务所指代的具体内容,外部任务仍用I表示。Compared with the first embodiment, the internal tasks in this embodiment include multiple zero-level tasks, which can be specifically the first zero-level task A, the second zero-level task B, and the third zero-level task C, for example: the first zero-level task. Level task A is sensor detection, the second zero level task B is wind speed adjustment, and the third zero level task C is the operation mode judgment. It should be noted that this article is only for illustrative purposes and lists the above three zeros. For level tasks, those skilled in the art can set the number of zero-level tasks in the internal tasks and the specific content referred to by each zero-level task according to actual conditions, and the external tasks are still represented by I.
本实施例的多联机的内外机通信方法包括如下步骤:The multi-connection internal and external machine communication method of this embodiment includes the following steps:
S10'、获取一个通信周期内主控外机和内机之间的总通信次数A和成功通信次数a。S10'. Obtain the total number of communications A and the number of successful communications a between the main control external machine and the internal machine in one communication cycle.
其中,总通信次数A是指主控外机给一个内机发送的总次数,成功通信次数a是指内机只进行一次正常应答后主控外机就能正确接受并且回复OK信号的次数。Among them, the total number of communications A refers to the total number of times the master external machine sends to an internal machine, and the number of successful communications a refers to the number of times the master external machine can correctly accept and reply an OK signal after the internal machine only responds once.
S11'、根据如下公式计算内机的通信误码率r:S11'. Calculate the internal communication bit error rate r according to the following formula:
Figure PCTCN2021101826-appb-000004
Figure PCTCN2021101826-appb-000004
例如:假设主控外机和一个内机之间的总通信次数为80次,成功通信次数为76次,其它情况是内机不发送或多次发送,该内机的通信误码率为:For example: suppose that the total number of communication times between the main control external machine and an internal machine is 80 times, and the number of successful communications is 76 times. In other cases, the internal machine does not send or sends multiple times. The communication error rate of this internal machine is:
Figure PCTCN2021101826-appb-000005
Figure PCTCN2021101826-appb-000005
本实施例中设置了四个通信误码率阈值,分别为第一通信误码率阈值r set1、第二通信误码率阈值r set2、第三通信误码率阈值r set3和第四通信误码率阈值r set4,并且r set1<r set2<r set3<r set4。需要说明都是,通信误码率阈值的具体个数本领域技术人员可根据实际需要调整,例如可以为两个或三个或大于四个等。 In this embodiment, four communication error rate thresholds are set, which are the first communication error rate threshold r set1 , the second communication error rate threshold r set2 , the third communication error rate threshold r set3 and the fourth communication error rate threshold. The code rate threshold is r set4 , and r set1 <r set2 <r set3 <r set4 . It should be noted that the specific number of communication error rate thresholds can be adjusted by those skilled in the art according to actual needs, for example, it can be two or three or more than four.
另外,通信误码率阈值具体数值取决于多联机的安装运行环境等,本领域技术人员根据实际情况设定,本实施例中第一通信误码率阈值rset1为5%,第二通信误码率阈值r set2为10%,第三通信误码率阈值r set3为15%,第四通信误码率阈值r set4为20%。 In addition, the specific value of the communication error rate threshold depends on the installation and operation environment of the multi-connection, etc., and those skilled in the art set according to the actual situation. In this embodiment, the first communication error rate threshold rset1 is 5%, and the second communication error rate threshold is 5%. The rate threshold r set2 is 10%, the third communication error rate threshold r set3 is 15%, and the fourth communication error rate threshold r set4 is 20%.
S20'、判断通信误码率r是否小于第一通信误码率阈值r set1,若是则执行步骤S30',否则执行步骤S21'。 S20': Determine whether the communication error rate r is less than the first communication error rate threshold r set1 , if yes, perform step S30', otherwise, perform step S21'.
S30'、确定内部任务的等级为0级;S30'. Determine the level of internal tasks as level 0;
S40'、执行第一通信任务。S40', perform the first communication task.
第一通信策略包括在一个通信周期内至少运行一轮程序,每轮程序包括一个外部通信任务和所有零级任务。The first communication strategy includes running at least one round of the program in a communication cycle, and each round of the program includes an external communication task and all zero-level tasks.
举例来说,本实施例中第一通信策略运行顺序为:I-A-B-C-I-A-B-C……。For example, the running sequence of the first communication strategy in this embodiment is: I-A-B-C-I-A-B-C....
S21'、继续判断通信误码率r是否小于第二通信误码率阈值r set2,若是则执行步骤S31',否则执行步骤S22'。 S21', continue to determine whether the communication error rate r is less than the second communication error rate threshold r set2 , if yes, perform step S31', otherwise, perform step S22'.
S31、确定内部任务的等级为1级;S31. Determine the level of internal tasks as level 1;
S311、至少拆解内部任务的一个零级任务为多个一级子任务;S311. At least one zero-level task of disassembling internal tasks is multiple first-level subtasks;
S312、认定多个一级子任务和未拆解的零级任务为第一新内部任务后执行步骤S36',即第二通信策略,其包括在一个通信周期内运行多轮程序,每轮程序包括一个外部通信任务、未拆解的零级任务和拆解后的零级任务的一个一级子任务。S312. After identifying multiple first-level subtasks and undisassembled zero-level tasks as the first new internal task, execute step S36', that is, the second communication strategy, which includes running multiple rounds of programs in one communication cycle, and each round of the program Including an external communication task, an undisassembled zero-level task, and a first-level subtask of the disassembled zero-level task.
举例来说,假设步骤S311中拆解第一零级任务A为两个一级子任务A1和A2,拆解第二零级任务B为三个一级子任务B1、B2和B3,步骤S312中认定一级子任务A1、A2、B1、B2和B3以及未拆解的第三零级任务C为第一新内部任务,然后按照第二通信策略以如下顺序运行程序:For example, suppose that the first zero-level task A is disassembled into two first-level subtasks A1 and A2 in step S311, and the second zero-level task B is disassembled into three first-level subtasks B1, B2, and B3, step S312 The first-level subtasks A1, A2, B1, B2, and B3 and the undisassembled third zero-level task C are identified as the first new internal task, and then the program is run in the following order according to the second communication strategy:
I—A1—B1—CI—A1—B1—C
—I—A2—B2—C—I—A2—B2—C
—I—A1—B3—C…。—I—A1—B3—C....
S22'、继续判断通信误码率r是否小于第三通信误码率阈值r set3,若是则执行步骤S32',否则执行步骤S23'。 S22', continue to determine whether the communication error rate r is less than the third communication error rate threshold r set3 , if yes, perform step S32', otherwise, perform step S23'.
S32'、确定内部任务的等级为2级;S32', determine the level of internal tasks as level 2;
S321'、至少拆解一个零级任务为多个一级子任务,再至少拆解一个一级子任务为多个二级子任务;S321'. Disassemble at least one zero-level task into multiple first-level subtasks, and then disassemble at least one first-level subtask into multiple second-level subtasks;
S322'、认定二级子任务和未拆解的一级子任务和零级任务为第二新内部任务后执行步骤S36',即第二通信任务,其包括一个通信周期内运行多轮程序,每轮程序包括一个外部通信任务、未拆解的零级任务和拆解后的零级任务的一个一级子任务或者一个二级子任务。S322', after determining that the second-level subtask, the undisassembled first-level subtask and the zero-level task are the second new internal tasks, perform step S36', that is, the second communication task, which includes running multiple rounds of programs in one communication cycle, Each round of the program includes an external communication task, an undisassembled zero-level task, and a first-level subtask or a second-level subtask of the disassembled zero-level task.
举例来说,假设步骤S321'中拆解内部任务A为两个一级子任务A1和A2,拆解第二零级任务B为三个一级子任务B1、B2和B3,再拆解一级子任务A1为三个二级子任务A11、A12和A13,拆解一级子任务B2为两个二级子任务B21和B22,然后在步骤S322中认定A11、A12、A13、A2、B1、B21、B22、B3和C为第二新内部任务,最后按照第二通信策略以如下顺序运行程序:For example, suppose that in step S321', the internal task A is disassembled into two first-level subtasks A1 and A2, and the second zero-level task B is disassembled into three first-level subtasks B1, B2, and B3, and then one is disassembled. The first-level subtask A1 is three second-level subtasks A11, A12, and A13, and the first-level subtask B2 is disassembled into two second-level subtasks B21 and B22, and then A11, A12, A13, A2, B1 are identified in step S322 , B21, B22, B3 and C are the second new internal tasks, and finally run the program in the following order according to the second communication strategy:
I—A11—B1—CI—A11—B1—C
—I—A2—B21—C—I—A2—B21—C
—I—A12—B3—C—I—A12—B3—C
—I—A2—B1—C—I—A2—B1—C
—I—A13—B22—C—I—A13—B22—C
—I—A2—B3—C—I—A2—B3—C
…。….
S23'、继续判断通信误码率r是否小于第四通信误码率阈值r set4,若是则执行步骤S33',否则执行步骤S34'。 S23', continue to determine whether the communication error rate r is less than the fourth communication error rate threshold r set4 , if yes, perform step S33', otherwise, perform step S34'.
S33'、确定内部任务的等级为3级;S33', determine the level of internal tasks as level 3;
S331'、至少拆解一个零级任务为多个一级子任务,再至少拆解一个一级子任务为多个二级子任务,继续至少拆解一个二级子任务为多个三级子任务;S331'. Disassemble at least one zero-level task into multiple first-level subtasks, then disassemble at least one first-level subtask into multiple second-level subtasks, and continue to disassemble at least one second-level subtask into multiple third-level subtasks Task;
S332'、认定三级子任务和未拆解的零级任务、一级子任务和二级子任务为第三新内部任务后执行步骤S36',即第二通信任务,器包括在一个通信周期内运行多轮程序,每轮程序包括一个外部通信任务、为拆解的零级任务和拆解后的零级任务的一个一级子任务、一个二级子任务或者一个三级子任务。S332', after determining that the three-level subtask and the undisassembled zero-level task, the first-level subtask and the second-level subtask are the third new internal tasks, perform step S36', that is, the second communication task, and the device is included in one communication cycle There are multiple rounds of programs running inside, and each round of the program includes an external communication task, a first-level subtask, a second-level subtask, or a third-level subtask for the disassembled zero-level task and the disassembled zero-level task.
举例来说,假设步骤S331'中拆解第一零级任务A为两个一级子任务A1和A2,拆解第二零级任务B为三个一级子任务B1、B2和B3,再拆解一级子任务A1为三个二级子任务A11、A12和A13,拆解一级子任务B2为两个二级子任务B21和B22,继续拆解二级子任务A11为两个三级子任务A111和A112,然后在步骤S322'中认定A111、A112、A113、A12、A13、A2、B1、B21、B22、B3和C为第二新内部任务,最后按照第二通信策略以如下顺序运行程序:For example, suppose in step S331' that the first zero-level task A is disassembled into two first-level subtasks A1 and A2, and the second zero-level task B is disassembled into three first-level subtasks B1, B2, and B3, and then Disassemble the first level subtask A1 into three second level subtasks A11, A12 and A13, disassemble the first level subtask B2 into two second level subtasks B21 and B22, and continue to disassemble the second level subtask A11 into two three subtasks. Level subtasks A111 and A112, then in step S322', A111, A112, A113, A12, A13, A2, B1, B21, B22, B3 and C are identified as the second new internal tasks, and finally according to the second communication strategy as follows Run the program sequentially:
I—A111—B1—CI—A111—B1—C
—I—A2—B21—C—I—A2—B21—C
—I—A12—B3—C—I—A12—B3—C
—I—A112—B1—C—I—A112—B1—C
—I—A2—B1—C—I—A2—B1—C
—I—A13—B22—C—I—A13—B22—C
—I—A2—B3—C—I—A2—B3—C
…。….
S34'、确定内部任务A的等级为4级。S34'. Determine the level of the internal task A as level 4.
需要说明的是,任务拆解层数与程序实现的功能有关,拆解越细每个子任务运行耗时越短,但程序设计实现越复杂,因此为了在加快通信速度和程序设计难度之间取得平衡,以使内外机通信成本 处于正常水平,本实施例中当确定内部任务A等等级为4级时,不再通过分层拆解方式来形成新的内部任务,而使直接执行步骤S50'。It should be noted that the number of task dismantling layers is related to the functions implemented by the program. The finer the dismantling, the shorter the running time of each subtask, but the more complex the program design and implementation. Therefore, in order to achieve the difference between the speed of communication and the difficulty of program design Balanced, so that the communication cost of the internal and external machines is at a normal level. In this embodiment, when it is determined that the level of internal task A is level 4, no new internal tasks are formed through hierarchical disassembly, and step S50' is directly executed. .
S37'、第三通信策略。第三通信策略包括在一个通信周期内运行至少一轮程序,每轮程序包括多个外部通信任务和所有零级任务。S37', the third communication strategy. The third communication strategy includes running at least one round of programs in one communication cycle, and each round of programs includes multiple external communication tasks and all zero-level tasks.
举例来说,如果r≥r set4时,按照第三通信策略以如下顺序运行程序:I-I-……-I-A-B-C-I-I-……-I-A-B-C……。 For example, if r≥r set4 , run the program in the following order according to the third communication strategy: II-...-IABCII-...-IABC....
同样,继续参见图3,步骤S3后,本实施例的内外机通信方法还包括如下步骤:Similarly, continue to refer to Fig. 3, after step S3, the internal and external machine communication method of this embodiment further includes the following steps:
S4、以当前通信策略运行预设时长后返回步骤S10'。S4. Return to step S10' after running for a preset period of time according to the current communication strategy.
除了上述内外机通信方法外,本发明还提供一种多联机,该多联机包括主控外机和多个内机,该主控外机和多个内机通过如上的内外机通信方法通信连接。需要说明的是,构成空调的基本功能部件及工作原理与现有技术基本相同,本领域的技术人员基于现有技术完全可以实现,故本文不再赘述。In addition to the above-mentioned internal and external machine communication method, the present invention also provides a multi-connection including a master external machine and a plurality of internal machines. The master external machine and the plurality of internal machines are communicatively connected by the above internal and external machine communication method. . It should be noted that the basic functional components and working principles constituting the air conditioner are basically the same as those in the prior art, and those skilled in the art can fully implement it based on the prior art, so this article will not repeat them.
至此,已经结合附图所示的优选实施方式描述了本发明的技术方案,但是,本领域技术人员容易理解的是,本发明的保护范围显然不局限于这些具体实施方式。在不偏离本发明的原理的前提下,本领域技术人员可以对相关技术特征作出等同的更改或替换,这些更改或替换之后的技术方案都将落入本发明的保护范围之内。So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims (10)

  1. 一种多联机的内外机通信方法,所述多联机包括外部通信任务和内部任务,所述外部通信任务是指所述多联机的主控外机和内机之间的通信任务,所述内部任务是指所述内机自身处理的任务,所述内部任务至少包括一个零级任务,其特征在于,所述内外机通信方法包括如下步骤:A multi-connection internal and external machine communication method, the multi-connection includes an external communication task and an internal task, the external communication task refers to the communication task between the multi-connection master external machine and the internal machine, the internal A task refers to a task processed by the internal machine itself, the internal task includes at least one zero-level task, and is characterized in that the internal and external machine communication method includes the following steps:
    S1、确定所述内机的通信误码率;S1. Determine the communication error rate of the internal machine;
    S2、比较所述通信误码率和通信误码率阈值之间的大小关系;S2. Compare the magnitude relationship between the communication error rate and the communication error rate threshold;
    S3、根据比较结果确定所述内部任务的等级,并根据所述内部任务的等级选择性的执行第一通信策略,或者分层拆解所述零级任务为多个子任务组成新内部任务后再执行第二通信策略,或者执行第三通信策略。S3. Determine the level of the internal task according to the comparison result, and selectively execute the first communication strategy according to the level of the internal task, or disassemble the zero-level task into multiple subtasks to form a new internal task. Execute the second communication strategy, or execute the third communication strategy.
  2. 根据权利要求1所述的内外机通信方法,其特征在于,所述通信误码率阈值包括第一通信误码率阈值r set1The internal and external computer communication method according to claim 1, wherein the communication error rate threshold comprises a first communication error rate threshold r set1 ;
    当r<r set1时,所述步骤S3包括如下步骤: When r<r set1 , the step S3 includes the following steps:
    S30、确定所述内部任务的等级为0级;S30. Determine that the level of the internal task is level 0;
    S35、执行所述第一通信策略;S35. Execute the first communication strategy;
    所述第一通信策略包括在一个通信周期内至少运行一轮程序,每轮程序中包括一个所述外部通信任务和所有所述零级任务。The first communication strategy includes running at least one round of the program in one communication cycle, and each round of the program includes one of the external communication tasks and all of the zero-level tasks.
  3. 根据权利要求2所述的内外机通信方法,其特征在于,所述通信误码率阈值还包括第二通信误码率阈值r set2,并且r set1<r set2The internal and external computer communication method according to claim 2, wherein the communication error rate threshold further comprises a second communication error rate threshold r set2 , and r set1 <r set2 ;
    当r set1≤r<r set2时,所述步骤S3包括如下步骤: When r set1 ≤r<r set2 , the step S3 includes the following steps:
    S31、确定所述内部任务的等级为1级;S31. Determine the level of the internal task as level 1;
    S311、至少拆解一个所述零级任务为多个一级子任务;S311. Disassemble at least one of the zero-level tasks into multiple first-level subtasks.
    S312、认定所述一级子任务和未拆解的所述零级任务组成新内部任务;S312. Determine that the first-level subtask and the undisassembled zero-level task form a new internal task;
    S36、执行所述第二通信策略;S36. Execute the second communication strategy;
    所述第二通信策略包括在一个通信周期内运行多轮程序,每轮程序包括一个所述外部通信任务、未拆解的所述零级任务和拆解后的一 个所述一级子任务。The second communication strategy includes running multiple rounds of programs in one communication cycle, and each round of the program includes one of the external communication tasks, the undisassembled zero-level task, and the disassembled first-level subtask.
  4. 根据权利要求3所述的内外机通信方法,其特征在于,所述通信误码率阈值还包括第三通信误码率阈值r set3,并且r set2<r set3The internal and external computer communication method according to claim 3, wherein the communication error rate threshold further comprises a third communication error rate threshold r set3 , and r set2 <r set3 ;
    当r set2≤r<r set3时,所述步骤S3包括如下步骤: When r set2 ≤r <r set3, the step S3 includes the following steps:
    S32、确定所述内部任务的等级为2级;S32. Determine that the level of the internal task is level 2;
    S321、至少拆解一个所述零级任务为多个一级子任务,再拆解至少一个所述一级子任务为多个二级子任务;S321. Disassemble at least one of the zero-level tasks into multiple first-level subtasks, and then disassemble at least one of the first-level subtasks into multiple second-level subtasks;
    S322、将所述二级子任务和未拆解的所述零级任务和所述一级子任务组成新内部任务;S322. Combine the second-level subtask and the undisassembled zero-level task and the first-level subtask into a new internal task;
    S36、执行所述第二通信策略;S36. Execute the second communication strategy;
    所述第二通信策略包括在一个通信周期内运行多轮程序,每轮程序包括一个所述外部通信任务、未拆解的所述零级任务和拆解后的所述零级任务的一个所述一级子任务或者一个所述二级子任务。The second communication strategy includes running multiple rounds of programs in one communication cycle, and each round of the program includes one of the external communication task, the undisassembled zero-level task, and the disassembled zero-level task. The first-level subtask or one of the second-level subtasks.
  5. 根据权利要求4所述的内外机通信方法,其特征在于,所述通信误码率阈值还包括第四通信误码率阈值r set4,并且r set3<r set4The internal and external computer communication method according to claim 4, wherein the communication error rate threshold further comprises a fourth communication error rate threshold r set4 , and r set3 <r set4 ;
    当r set3≤r<r set4时,所述步骤S3包括如下步骤: When r set3 ≤r <r set4 , the step S3 includes the following steps:
    S33、确定所述内部任务的等级为3级;S33. Determine the level of the internal task to be level 3;
    S331、至少拆解一个所述零级任务为多个一级子任务,再至少拆解一个所述一级子任务为多个二级子任务,继续至少拆解一个所述二级子任务为多个三级子任务;S331. Disassemble at least one of the zero-level tasks into multiple first-level subtasks, and then disassemble at least one of the first-level subtasks into multiple second-level subtasks, and continue to disassemble at least one of the second-level subtasks. Multiple three-level subtasks;
    S332、将所述三级子任务和未拆解的所述零级任务、所述一级子任务和所述二级子任务组成新内部任务;S332. Combine the three-level subtask and the undisassembled zero-level task, the first-level subtask, and the second-level subtask into a new internal task;
    S36、执行所述第二通信策略;S36. Execute the second communication strategy;
    所述第二通信策略包括在一个通信周期内运行多轮程序,每轮程序包括一个所述外部通信任务、未拆解的所述零级任务和拆解后的所述零级任务的一个所述一级子任务、一个所述二级子任务或者一个所述三级子任务。The second communication strategy includes running multiple rounds of programs in one communication cycle, and each round of the program includes one of the external communication task, the undisassembled zero-level task, and the disassembled zero-level task. The first-level subtask, the second-level subtask, or the third-level subtask.
  6. 根据权利要求5所述的内外机通信方法,其特征在于,The internal and external machine communication method according to claim 5, characterized in that,
    当r≥r set4时,所述步骤S3包括如下步骤: When r≥r set4 , the step S3 includes the following steps:
    S34、确定所述内部任务的等级为4级;S34. Determine that the level of the internal task is level 4;
    S37、执行所述第三通信策略;S37. Execute the third communication strategy;
    所述第三通信策略包括在一个通信周期内至少运行一轮程序,每轮程序包括多个外部通信任务和所有所述零级任务。The third communication strategy includes running at least one round of the program in one communication cycle, and each round of the program includes multiple external communication tasks and all the zero-level tasks.
  7. 根据权利要求1至6中任一项所述的内外机通信方法,其特征在于,所述步骤S1具体包括如下步骤:The internal and external computer communication method according to any one of claims 1 to 6, wherein the step S1 specifically includes the following steps:
    S10、获取一个通信周期内所述主控外机和所述内机之间的总通信次数A和成功通信次数a;S10. Acquire the total number of communications A and the number of successful communications a between the master control external machine and the internal machine in one communication cycle;
    S11、根据如下公式计算所述内机的通信误码率r:S11. Calculate the communication error rate r of the internal machine according to the following formula:
    Figure PCTCN2021101826-appb-100001
    Figure PCTCN2021101826-appb-100001
  8. 根据权利要求1至6中任一项所述的内外机通信方法,其特征在于,在所述步骤S3之后,所述内外机通信方法还包括如下步骤:The internal and external machine communication method according to any one of claims 1 to 6, characterized in that, after the step S3, the internal and external machine communication method further comprises the following steps:
    S4、保持以当前通信策略运行预设时长后返回所述步骤S1。S4: Keep running with the current communication strategy for a preset period of time and then return to the step S1.
  9. 根据权利要求8所述的内外机通信方法,其特征在于,所述步骤S4具体为保持以当前通信策略运行5分钟后返回所述步骤S1。The internal and external computer communication method according to claim 8, wherein the step S4 is specifically to keep running under the current communication strategy for 5 minutes and then return to the step S1.
  10. 一种多联机,其包括一个主控外机和多个内机,其特征在于,所述主控外机和所述内机通过权利要求1至9任一项所述的内外机通信方法通信连接。A multi-connection, comprising a main control external machine and multiple internal machines, characterized in that the main control external machine and the internal machine communicate through the internal and external machine communication method according to any one of claims 1 to 9 connect.
PCT/CN2021/101826 2020-11-20 2021-06-23 Communication method for indoor and outdoor units of multi-split air conditioner, and multi-split air conditioner WO2021233475A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011311531.4A CN112611083B (en) 2020-11-20 2020-11-20 Multi-split internal and external machine communication method and multi-split machine
CN202011311531.4 2020-11-20

Publications (1)

Publication Number Publication Date
WO2021233475A1 true WO2021233475A1 (en) 2021-11-25

Family

ID=75225531

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/101826 WO2021233475A1 (en) 2020-11-20 2021-06-23 Communication method for indoor and outdoor units of multi-split air conditioner, and multi-split air conditioner

Country Status (2)

Country Link
CN (1) CN112611083B (en)
WO (1) WO2021233475A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112611083B (en) * 2020-11-20 2022-07-12 青岛海尔空调电子有限公司 Multi-split internal and external machine communication method and multi-split machine
CN115102669B (en) * 2022-06-24 2024-04-26 珠海格力电器股份有限公司 Multi-split air conditioning system network communication method and device and multi-split air conditioning system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080028154A (en) * 2006-09-26 2008-03-31 엘지전자 주식회사 Multi air-conditioner and controlling method for the same
CN105163391A (en) * 2015-09-11 2015-12-16 小米科技有限责任公司 Data transmission method, terminal and wireless access point
CN106453019A (en) * 2016-09-12 2017-02-22 青岛海尔空调电子有限公司 Communication method of multiple online internal and external machines
CN206207672U (en) * 2016-11-03 2017-05-31 江苏英索纳智能科技有限公司 Air-conditioned intelligence control system
CN112611083A (en) * 2020-11-20 2021-04-06 青岛海尔空调电子有限公司 Multi-split internal and external machine communication method and multi-split machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080028154A (en) * 2006-09-26 2008-03-31 엘지전자 주식회사 Multi air-conditioner and controlling method for the same
CN105163391A (en) * 2015-09-11 2015-12-16 小米科技有限责任公司 Data transmission method, terminal and wireless access point
CN106453019A (en) * 2016-09-12 2017-02-22 青岛海尔空调电子有限公司 Communication method of multiple online internal and external machines
CN206207672U (en) * 2016-11-03 2017-05-31 江苏英索纳智能科技有限公司 Air-conditioned intelligence control system
CN112611083A (en) * 2020-11-20 2021-04-06 青岛海尔空调电子有限公司 Multi-split internal and external machine communication method and multi-split machine

Also Published As

Publication number Publication date
CN112611083A (en) 2021-04-06
CN112611083B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
WO2021233475A1 (en) Communication method for indoor and outdoor units of multi-split air conditioner, and multi-split air conditioner
WO2022068278A1 (en) Outdoor unit communication method of several-driven-several multi-split air conditioner and several-driven-several multi-split air conditioner
US10120820B2 (en) Direct memory access transmission control method and apparatus
CN111353266B (en) Verification system and verification method for cooperative work among integrated circuit modules
WO2017016025A1 (en) Indoor environment monitoring method and internet-of-things terminal
CN107332707B (en) A kind of acquisition method and device of SDN network measurement data
US9350803B2 (en) Information management method and device
US20160321147A1 (en) Dynamic Service Fault Detection and Recovery Using Peer Services
CN107707612B (en) Method and device for evaluating resource utilization rate of load balancing cluster
CN105744593B (en) A kind of node method of network entry and device
CN104765349A (en) Method for managing smart home equipment, server and center control equipment
US20230066178A1 (en) Ai intelligentialization based on signaling interaction
CN104270287B (en) A kind of packet out-ordering detection method and device
CN112596985B (en) IT asset detection method, device, equipment and medium
CN106878112B (en) Gateway controller, data transmission method and device
CN107147719A (en) A kind of hardware update method, master node, slave node and server cluster
CN111858458A (en) Method, device, system, equipment and medium for adjusting interconnection channel
CN115037651B (en) RDMA bandwidth transmission test method, system and storage medium
CN115509931A (en) System-based performance test method and device, electronic equipment and storage medium
CN202870525U (en) Networked data acquisition apparatus applied to changing environment
CN113364625B (en) Data transmission method, intermediate transmission equipment and storage medium
CN108848193B (en) Industrial sensor node update rate optimization method based on dynamic weighting
WO2021098157A1 (en) Detection method and apparatus of communication chip, and device and medium
CN113835946A (en) Pressure testing method for data exchange
CN103944927A (en) Server stretching processing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21808732

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21808732

Country of ref document: EP

Kind code of ref document: A1