[go: up one dir, main page]

CN106453019A - Communication method of multiple online internal and external machines - Google Patents

Communication method of multiple online internal and external machines Download PDF

Info

Publication number
CN106453019A
CN106453019A CN201610816146.2A CN201610816146A CN106453019A CN 106453019 A CN106453019 A CN 106453019A CN 201610816146 A CN201610816146 A CN 201610816146A CN 106453019 A CN106453019 A CN 106453019A
Authority
CN
China
Prior art keywords
communication
internal
data
level
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610816146.2A
Other languages
Chinese (zh)
Inventor
禚百田
时斌
程绍江
王军
张锐钢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Air Conditioning Electric Co Ltd
Original Assignee
Qingdao Haier Air Conditioning Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Air Conditioning Electric Co Ltd filed Critical Qingdao Haier Air Conditioning Electric Co Ltd
Priority to CN201610816146.2A priority Critical patent/CN106453019A/en
Publication of CN106453019A publication Critical patent/CN106453019A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling
    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40143Bus networks involving priority mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/103Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

本发明公开了一种多联机内外机通信方法,包括一个外机和若干个内机,所述内外机通信方法包括以下步骤:(1)、将内机中的数据划分等级(2)、根据所述等级的级别确定各等级的发送频次;(3)、内机每轮通信发送其中一个等级内的所有数据,按照所述发送频次确定一个通信周期内各等级的通信轮数,按照所述等级的级别确定一个通信周期内各等级的通信顺序;(4)、外机发送询问消息后,内机按照步骤(3)中所确定的各等级的通信顺序以及一个通信周期内各等级的通信轮数轮询发送至外机,进行应答。本发明的多联机内外机通信方法,通信方式更加灵活,可以极大的提高系统响应速度以及提高了通信抗干扰能力。

The invention discloses a multi-line internal and external machine communication method, which includes an external machine and several internal machines. The internal and external machine communication method includes the following steps: (1), dividing the data in the internal machine into levels (2), according to The level of the level determines the transmission frequency of each level; (3), the internal unit sends all the data in one level in each round of communication, and the number of communication rounds of each level in a communication cycle is determined according to the transmission frequency. The level of the level determines the communication sequence of each level within a communication cycle; (4), after the external unit sends an inquiry message, the internal unit follows the communication sequence of each level determined in step (3) and the communication of each level within a communication cycle The round polling is sent to the external unit for reply. The multi-line internal and external machine communication method of the present invention has a more flexible communication mode, can greatly improve the system response speed and improve the communication anti-interference ability.

Description

一种多联机内外机通信方法A communication method for multi-line internal and external machines

技术领域technical field

本发明涉及空调通信技术领域,具体地说,是涉及一种多联机内外机通信方法。The invention relates to the technical field of air conditioner communication, in particular to a communication method for multi-connected internal and external units.

背景技术Background technique

多联机系统中,通常外机连接多个内机,每台内机均包含状态、温度、湿度、各种传感器、阀的参数需要在通信过程中传递。在一轮通信中,外机为主设备,把自己的数据或指令发到通信总线上后,每台内机轮流把自己的数据发送到通信总线上,外机进行检测接收。比如系统连接了10台内机,则一轮内外机通信流程是:外机—内机1—内机2—内机3—内机4—内机5—内机6—内机7—内机8—内机9—内机10。In a multi-connected system, the outdoor unit is usually connected to multiple indoor units, and each indoor unit includes parameters such as status, temperature, humidity, various sensors, and valves that need to be transmitted during the communication process. In a round of communication, the external unit is the main device, after sending its own data or instructions to the communication bus, each internal unit sends its own data to the communication bus in turn, and the external unit performs detection and reception. For example, if the system is connected to 10 indoor units, the communication process of a round of internal and external units is: external unit—inner unit 1—inner unit 2—inner unit 3—inner unit 4—inner unit 5—inner unit 6—inner unit 7—inner Machine 8—inner machine 9—inner machine 10.

由于内机台数多,内外机一轮通信时间会比较长。因此,如何提升内外机通信速度成为研发重点。通常的做法是,提高硬件性能,加快数据传送速度,系统的响应速度加快,该种方式的缺陷是一方面改进硬件会增加成本,另一方面受周围环境的影响,速度越快越容易受到各种干扰,导致数据传送错误。Due to the large number of internal units, the round communication time of internal and external units will be relatively long. Therefore, how to improve the communication speed of internal and external units has become the focus of research and development. The usual method is to improve hardware performance, speed up data transmission, and speed up system response. The disadvantage of this method is that on the one hand, improving hardware will increase costs, and on the other hand, affected by the surrounding environment, the faster the speed, the easier it is to be affected by various interference, resulting in data transmission errors.

发明内容Contents of the invention

本发明为了解决现有内外机一轮通信时间较长,通过提高硬件性能进行改进的话造成增加成本以及增大数据传送错误率的问题,提出了一种多联机内外机通信方法,可以解决上述问题。In order to solve the problem that the existing internal and external machines have a long round of communication time, and the problem of increasing the cost and increasing the error rate of data transmission caused by improving the hardware performance, the present invention proposes a multi-line internal and external machine communication method, which can solve the above problems .

为了解决上述技术问题,本发明采用以下技术方案予以实现:In order to solve the above-mentioned technical problems, the present invention adopts the following technical solutions to achieve:

一种多联机内外机通信方法,包括一个外机和若干个内机,所述内外机通信方法包括以下步骤:A multi-line internal and external machine communication method, including an external machine and several internal machines, the internal and external machine communication method includes the following steps:

(1)、将内机中的数据划分等级,每一等级包括一种类型或者多种类型的数据;(1) Divide the data in the internal unit into levels, each level includes one type or multiple types of data;

(2)、以位于同一等级的内机数据为单位,根据所述等级的级别确定各等级的发送频次;(2) Taking the internal machine data at the same level as the unit, determine the sending frequency of each level according to the level of the level;

(3)、内机每轮通信发送其中一个等级内的所有数据,按照所述发送频次确定一个通信周期内各等级的通信轮数,按照所述等级的级别确定一个通信周期内各等级的通信顺序,所述通信周期为所有等级的内机数据至少完成一轮通信所用的时间;(3) The internal unit sends all the data in one level in each round of communication, the number of communication rounds of each level in a communication cycle is determined according to the transmission frequency, and the communication of each level in a communication cycle is determined according to the level of the level In order, the communication period is the time it takes for all levels of internal machine data to complete at least one round of communication;

(4)、外机发送询问消息后,内机按照步骤(3)中所确定的各等级的通信顺序以及一个通信周期内各等级的通信轮数轮询发送至外机,进行应答。(4) After the external unit sends an inquiry message, the internal unit polls and sends it to the external unit according to the communication sequence of each level determined in step (3) and the number of communication rounds of each level within a communication cycle, and responds.

进一步的,在步骤(4)的任一轮通信初始,所述内机首先判断当前通信所要发送数据的等级,找出位于当前通信所要发送数据的等级中的所有数据作为待发送数据,然后所有内机按照顺序将本内机中待发送数据发送至外机。Further, at the beginning of any round of communication in step (4), the internal unit first judges the level of the data to be sent in the current communication, finds out all the data in the level of the data to be sent in the current communication as the data to be sent, and then all The internal unit sends the data to be sent in the internal unit to the external unit in sequence.

进一步的,在步骤(4)的一轮通信中,还包括内机将本轮通信本内机待发送的数据与当前等级所对应前一轮通信中本内机所发送的数据进行比较的步骤,若两者不一致,则正常发送完整的数据帧,否则,将本轮通信本内机待发送的数据进行压缩发送。Further, in the round of communication in step (4), the internal unit also includes the step of comparing the data to be sent by the internal unit in the current round of communication with the data sent by the internal unit in the previous round of communication corresponding to the current level , if the two are inconsistent, the complete data frame will be sent normally, otherwise, the data to be sent by the internal unit of the current round of communication will be compressed and sent.

进一步的,在步骤(4)的一轮通信中,将待发送的数据进行压缩的方法为:将待发送的数据生成一个特征码,并将该特征码发送至外机。Further, in the round of communication in step (4), the method of compressing the data to be sent is: generating a feature code from the data to be sent, and sending the feature code to the external machine.

进一步的,所述特征码为内机采用计算公式算出,所述外机收到所述特征码后,对当前等级所对应前一轮通信中该内机的完整数据,使用同样的计算公式算出首特征码,并将所述首特征码与所述特征码进行比较,如果一致,确认本轮通信所述内机数据没有改变,否则外机通知发送特征码的内机,在当前等级所对应的下一轮通信中需要发送完整的数据帧。Further, the feature code is calculated by the internal machine using a calculation formula. After the external machine receives the feature code, it uses the same calculation formula to calculate the complete data of the internal machine in the previous round of communication corresponding to the current level. First feature code, and compare the first feature code with the feature code, if they are consistent, confirm that the data of the internal machine in this round of communication has not changed, otherwise the external machine will notify the internal machine that sent the feature code, and the corresponding internal machine at the current level A complete data frame needs to be sent in the next round of communication.

进一步的,步骤(1)中将内机中的数据划分等级的依据为外机对数据实时性要求高低,实时性要求越高,相应级别越高,该等级的通信顺序越靠前。Further, in step (1), the basis for classifying the data in the internal unit is the level of real-time data requirements of the external unit. The higher the real-time requirement, the higher the corresponding level, and the higher the communication sequence of this level.

与现有技术相比,本发明的优点和积极效果是:本发明的多联机内外机通信方法,通过对通信数据进行等级划分处理,每轮轮询仅发送位于同一等级内的所有内机的数据,数据量减少,缩短每轮通信的通信时间,而且由于每轮通信的数据量减少,即便是本轮数据受到干扰,最多舍弃本轮通信的数据,不会对其他数据造成影响,可以有效避免现有技术中一轮通信中传输内机的所有通信数据,由于传输数据较多导致其中一地方出错需要舍弃所有数据的问题,本通信方式更加灵活,可以极大的提高系统响应速度以及提高了通信抗干扰能力,此外,通过划分等级,且为各等级分别赋予通信频次,可以根据通信实际要求对数据做出通信先后顺序以及通信频率进行划分,使得通信更加直接、高效。Compared with the prior art, the advantages and positive effects of the present invention are: the multi-line internal and external unit communication method of the present invention, by classifying the communication data, each round of polling only sends the data of all internal units within the same level. Data, the amount of data is reduced, the communication time of each round of communication is shortened, and because the amount of data in each round of communication is reduced, even if the data of this round is disturbed, at most the data of this round of communication will be discarded, and other data will not be affected, which can effectively Avoid the problem of transmitting all the communication data of the internal machine in one round of communication in the prior art. Due to the large amount of transmitted data, it is necessary to discard all the data due to an error in one place. This communication method is more flexible, which can greatly improve the system response speed and improve In addition, by dividing the levels and assigning communication frequencies to each level, the order of data communication and the division of communication frequencies can be made according to the actual requirements of communication, making communication more direct and efficient.

结合附图阅读本发明实施方式的详细描述后,本发明的其他特点和优点将变得更加清楚。Other features and advantages of the present invention will become more apparent after reading the detailed description of the embodiments of the present invention in conjunction with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明所提出的多联机内外机通信方法的一种实施例流程图。Fig. 1 is a flow chart of an embodiment of the multi-line internal and external machine communication method proposed by the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

实施例一,本实施例提出了一种多联机内外机通信方法,包括一个外机和若干个内机,如图1所示,所述内外机通信方法包括以下步骤:Embodiment 1. This embodiment proposes a multi-connection internal and external machine communication method, including an external machine and several internal machines. As shown in FIG. 1, the internal and external machine communication method includes the following steps:

S1、将内机中的数据划分等级,每一等级包括一种类型或者多种类型的数据;S1. Divide the data in the internal unit into levels, each level includes one type or multiple types of data;

S2、以位于同一等级的内机数据为单位,根据所述等级的级别确定各等级的发送频次;S2. Using the internal unit data at the same level as a unit, determine the sending frequency of each level according to the level of the level;

S3、内机每轮通信发送其中一个等级内的所有数据,按照所述发送频次确定一个通信周期内各等级的通信轮数,按照所述等级的级别确定一个通信周期内各等级的通信顺序,所述通信周期为所有等级的内机数据至少完成一轮通信所用的时间;S3. The internal machine sends all data in one level in each round of communication, determines the number of communication rounds of each level in a communication cycle according to the sending frequency, and determines the communication sequence of each level in a communication cycle according to the level of the level, The communication cycle is the time taken for all levels of internal machine data to complete at least one round of communication;

S4、外机发送询问消息后,内机按照步骤3中所确定的各等级的通信顺序以及一个通信周期内各等级的通信轮数轮询发送至外机,进行应答。S4. After the external unit sends an inquiry message, the internal unit polls and sends it to the external unit according to the communication order of each level determined in step 3 and the number of communication rounds of each level within one communication cycle, and responds.

例如,每台内机的数据可以分为运行状态、传感器、配置参数三种类型。运行状态是实时性要求最高的,比如空调的运转模式(制冷还是制热)、风速、设定温度等,这些数据是控制器经常需要控制、直接展示给用户的。其次是传感器类,包括温度、湿度传感器、膨胀阀等,这些数据变化相对缓慢,主要是用来监控系统运行状况的。配置参数通常是一些出厂或现场调试后就固定的数据,比如能力匹数、内机类型等。For example, the data of each indoor unit can be divided into three types: operating status, sensors, and configuration parameters. The operating status has the highest real-time requirements, such as the operating mode of the air conditioner (cooling or heating), wind speed, set temperature, etc. These data are often controlled by the controller and directly displayed to the user. The second is sensors, including temperature, humidity sensors, expansion valves, etc. These data change relatively slowly and are mainly used to monitor the operating status of the system. The configuration parameters are usually some fixed data after leaving the factory or on-site debugging, such as the number of horses of capacity, the type of internal machine, etc.

假如内机参数总共60个,其中运行状态20个、传感器30个、配置参数10个,按类型划分后每帧的数据量明显减少,提高了通信抗干扰能力。If there are a total of 60 internal machine parameters, including 20 operating states, 30 sensors, and 10 configuration parameters, the amount of data per frame is significantly reduced after being divided by type, which improves the anti-interference ability of communication.

本实施例的多联机内外机通信方法,通过对通信数据进行等级划分处理,每轮轮询仅发送位于同一等级内的所有内机的数据,数据量减少,缩短每轮通信的通信时间,而且由于每轮通信的数据量减少,即便是本轮数据受到干扰,最多舍弃本轮通信的数据,不会对其他数据造成影响,可以有效避免现有技术中一轮通信中传输内机的所有通信数据,由于传输数据较多导致其中一地方出错需要舍弃所有数据的问题,本通信方式更加灵活,可以极大的提高系统响应速度,此外,通过划分等级,且为各等级分别赋予通信频次,可以根据通信实际要求对数据做出通信先后顺序以及通信频率进行划分,使得通信更加直接、高效。In the communication method of multi-connected internal and external units in this embodiment, by classifying the communication data, only the data of all internal units located in the same level are sent in each round of polling, the amount of data is reduced, and the communication time of each round of communication is shortened. Due to the reduction of the amount of data in each round of communication, even if the current round of data is disturbed, at most the data of this round of communication will be discarded without affecting other data, which can effectively avoid all the communication of the internal machine in a round of communication in the prior art Data, due to the large amount of transmitted data, it is necessary to discard all the data due to an error in one place. This communication method is more flexible and can greatly improve the system response speed. In addition, by dividing levels and assigning communication frequencies to each level, you can According to the actual requirements of communication, the order of communication and the frequency of communication are divided to make communication more direct and efficient.

在步骤S4的任一轮通信初始,所述内机首先判断当前通信所要发送数据的等级,找出位于当前通信所要发送数据的等级中的所有数据作为待发送数据,然后所有内机按照顺序将本内机中待发送数据发送至外机。At the beginning of any round of communication in step S4, the internal unit first judges the level of the data to be sent in the current communication, finds out all the data in the level of the data to be sent in the current communication as the data to be sent, and then all the internal units sequentially send The data to be sent in the internal unit is sent to the external unit.

外机发送询问后,内机数据分类型、分时应答。等级级别高的数据实时性高,提高应答频次,而等级级别低的数据降低应答频次。以系统具有10个内机为例,通信流程类似如下过程:After the outdoor unit sends an inquiry, the internal unit responds by data type and time division. High-level data has high real-time performance and increases the response frequency, while low-level data reduces the response frequency. Taking the system with 10 internal units as an example, the communication process is similar to the following process:

外机—内机1状态—内机2状态…—内机10状态(第1轮)Outdoor unit—indoor unit 1 status—indoor unit 2 status…—indoor unit 10 status (first round)

外机—内机1状态—内机2状态…—内机10状态(第2轮)Outer unit—inner unit 1 status—inner unit 2 status…—inner unit 10 status (second round)

外机—内机1状态—内机2状态…—内机10状态(第i轮)Outer unit—inner unit 1 status—inner unit 2 status…—inner unit 10 status (round i)

外机—内机1传感器—内机2传感器…—内机10传感器(第i+1轮)Outer unit—inner unit 1 sensor—inner unit 2 sensor…—inner unit 10 sensor (round i+1)

外机—内机1状态—内机2状态…—内机10状态(第i+2轮)Outer unit—inner unit 1 status—inner unit 2 status…—inner unit 10 status (round i+2)

外机—内机1状态—内机2状$传感器…—内机10传感器(第j+1轮)Outer unit—inner unit 1 state—inner unit 2 status $sensor…—inner unit 10 sensor (round j+1)

外机—内机1状态—内机2状态…—内机10状态(第j+2轮)Outer unit—inner unit 1 status—inner unit 2 status…—inner unit 10 status (round j+2)

外机—内机1状态—内机2状态…—内机10状态(第k轮)Outer unit—inner unit 1 status—inner unit 2 status…—inner unit 10 status (round k)

外机—内机1配置参数—内机2配置参数…—内机10配置参数(第k+1轮)External unit—inner unit 1 configuration parameters—inner unit 2 configuration parameters…—inner unit 10 configuration parameters (round k+1)

外机—内机1状态—内机2状态…—内机10状态(第k+2轮)Outer unit—inner unit 1 status—inner unit 2 status…—inner unit 10 status (round k+2)

假如内外机通信一轮时间为5秒,每隔1分钟内机应答一次传感器类数据,每隔5分钟内机应答一次配置参数,其它时间应答运行状态数据。这样10分钟内外机通信共进行了10*60÷5=120轮,其中内机发送传感器数据10次,发送配置参数2次,而发送运行状态数据共120-10-2=108次,可明显提高运行状态数据的传送,加快系统的响应速度。If the round time of the internal and external machine communication is 5 seconds, the internal machine responds to sensor data every 1 minute, the internal machine responds to configuration parameters every 5 minutes, and responds to operating status data at other times. In this way, a total of 10*60÷5=120 rounds of communication between the internal and external units have been carried out in 10 minutes. Among them, the internal unit sends sensor data 10 times, sends configuration parameters 2 times, and sends operating status data a total of 120-10-2=108 times, which is obvious. Improve the transmission of running status data and speed up the response speed of the system.

为了进一步减少每一轮通信中传输的数据量,在步骤S4的一轮通信中,还包括内机将本轮通信本内机待发送的数据与当前等级所对应前一轮通信中本内机所发送的数据进行比较的步骤,若两者不一致,则正常发送完整的数据帧,否则,将本轮通信本内机待发送的数据进行压缩发送。以内机运行状态为例,如果某轮内外机通信中,内机先正常发送,下一轮通信时,如果此内机的所有状态参数都与上次发给外机的一致,则进行压缩发送,如果某个时刻运转模式改变,如由制冷改为制热,则运行状态数据需要完整的打包发送,下一轮通信时,如果又保持一致,则再次进行压缩发送。In order to further reduce the amount of data transmitted in each round of communication, in the round of communication in step S4, the internal unit also includes the data to be sent by the internal unit in the current round of communication and the internal unit in the previous round of communication corresponding to the current level. The step of comparing the sent data, if the two are not consistent, send the complete data frame normally, otherwise, compress and send the data to be sent by the internal unit of the current round of communication. Taking the running state of the internal unit as an example, if a round of communication between the internal and external units, the internal unit first sends normally, and in the next round of communication, if all the state parameters of the internal unit are consistent with those sent to the external unit last time, the compressed transmission will be performed. , if the operation mode changes at a certain moment, such as from cooling to heating, the operation status data needs to be sent in a complete package. In the next round of communication, if it remains consistent, it will be compressed and sent again.

所谓的压缩发送,是指尽量减少数据量,用一个数据可以代表多个数据。用特殊标志1个或2个字节就可以表示上次的多个数据N个字节,用最少的字节表示足够的信息。The so-called compressed transmission refers to reducing the amount of data as much as possible, and one data can represent multiple data. Using 1 or 2 bytes of special flags can represent the multiple data N bytes of the last time, and represent enough information with the least bytes.

在步骤S4的一轮通信中,将待发送的数据进行压缩的方法为:将待发送的数据生成一个特征码,并将该特征码发送至外机。In the round of communication in step S4, the method of compressing the data to be sent is: generating a feature code from the data to be sent, and sending the feature code to the external machine.

压缩发送时,数据帧里只注明特殊标志字符,不发送状态数据。外机收到此特殊标志字符,可以判断出内机的状态数据未改变,仍旧存储原先的内机状态。因此,若在一轮通信中,内机待发送的数据与前一轮发送的数据没有发生改变,跟以前发过外机的数据是一致的,就不用把所有的参数再发给外机了,而是发送一个特殊标志,给外机指明数据没有变化,外机继续使用以前的内机数据,这样可以少发很多数据,因此可以进一步提高系统响应速度。When compressing and sending, only special flag characters are indicated in the data frame, and status data is not sent. When the outdoor unit receives this special flag character, it can judge that the status data of the inner unit has not changed, and still store the original status of the inner unit. Therefore, if in a round of communication, the data to be sent by the internal unit does not change from the data sent in the previous round, and is consistent with the data sent to the external unit before, then there is no need to send all the parameters to the external unit. , but send a special flag to indicate to the external unit that the data has not changed, and the external unit continues to use the previous data of the internal unit, so that a lot of data can be sent less, so the system response speed can be further improved.

为了确保内机判断正确,防止通信出错,外机需要对内机做出的数据无变化结论做出进一步印证,以提高数据通信质量,特征码为内机采用计算公式算出,所述外机收到所述特征码后,对当前等级所对应前一轮通信中该内机的完整数据,使用同样的计算公式算出首特征码,并将所述首特征码与所述特征码进行比较,如果一致,确认本轮通信所述内机数据没有改变,否则外机通知发送特征码的内机,在当前等级所对应的下一轮通信中需要发送完整的数据帧。In order to ensure the correct judgment of the internal unit and prevent communication errors, the external unit needs to further confirm the conclusion made by the internal unit that the data has not changed, so as to improve the quality of data communication. The feature code is calculated by the internal unit using a calculation formula. After arriving at the feature code, use the same calculation formula to calculate the first feature code for the complete data of the internal machine in the previous round of communication corresponding to the current level, and compare the first feature code with the feature code, if Consistent, confirm that the data of the internal unit in this round of communication has not changed, otherwise the external unit will notify the internal unit that sent the feature code that a complete data frame needs to be sent in the next round of communication corresponding to the current level.

同时出错的内机可能为一个或者多个,外机在通知出错的内机时,可以通过广播通知所有内机、或单播方式通知某个或者某些出错的内机,需要该内机下次发送正常数据帧。There may be one or more faulty internal units at the same time. When the external unit notifies the faulty internal units, it can notify all the internal units by broadcast, or notify one or some faulty internal units by unicast. Send normal data frame once.

步骤S1中将内机中的数据划分等级的依据为外机对数据实时性要求高低,实时性要求越高,相应级别越高,该等级的通信顺序越靠前。In step S1, the basis for classifying the data in the internal unit is that the external unit has high or low real-time requirements for data. The higher the real-time requirement, the higher the corresponding level, and the higher the communication sequence of this level.

本通信方法不涉及对硬件的改进,因此可以解决目前通过改进硬件解决通信速度所带来的一切弊端和不足。The communication method does not involve the improvement of the hardware, so it can solve all the disadvantages and deficiencies brought about by improving the hardware to solve the communication speed at present.

当然,上述说明并非是对本发明的限制,本发明也并不仅限于上述举例,本技术领域的普通技术人员在本发明的实质范围内所做出的变化、改型、添加或替换,也应属于本发明的保护范围。Of course, the above descriptions are not intended to limit the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by those skilled in the art within the scope of the present invention shall also belong to protection scope of the present invention.

Claims (6)

1.一种多联机内外机通信方法,其特征在于,包括一个外机和若干个内机,所述内外机通信方法包括以下步骤:1. A multi-line internal and external machine communication method, is characterized in that, comprises an external machine and several internal machines, and described internal and external machine communication method comprises the following steps: (1)、将内机中的数据划分等级,每一等级包括一种类型或者多种类型的数据;(1) Divide the data in the internal unit into levels, each level includes one type or multiple types of data; (2)、以位于同一等级的内机数据为单位,根据所述等级的级别确定各等级的发送频次;(2) Taking the internal machine data at the same level as the unit, determine the sending frequency of each level according to the level of the level; (3)、内机每轮通信发送其中一个等级内的所有数据,按照所述发送频次确定一个通信周期内各等级的通信轮数,按照所述等级的级别确定一个通信周期内各等级的通信顺序,所述通信周期为所有等级的内机数据至少完成一轮通信所用的时间;(3) The internal unit sends all the data in one level in each round of communication, the number of communication rounds of each level in a communication cycle is determined according to the transmission frequency, and the communication of each level in a communication cycle is determined according to the level of the level In order, the communication period is the time it takes for all levels of internal machine data to complete at least one round of communication; (4)、外机发送询问消息后,内机按照步骤(3)中所确定的各等级的通信顺序以及一个通信周期内各等级的通信轮数轮询发送至外机,进行应答。(4) After the external unit sends an inquiry message, the internal unit polls and sends it to the external unit according to the communication sequence of each level determined in step (3) and the number of communication rounds of each level within a communication cycle, and responds. 2.根据权利要求1所述的多联机内外机通信方法,其特征在于,在步骤(4)的任一轮通信初始,所述内机首先判断当前通信所要发送数据的等级,找出位于当前通信所要发送数据的等级中的所有数据作为待发送数据,然后所有内机按照顺序将本内机中待发送数据发送至外机。2. The communication method of multi-line internal and external units according to claim 1, characterized in that, at the beginning of any round of communication in step (4), the internal unit first judges the level of the data to be sent in the current communication, and finds out the All the data in the level of the data to be sent in the communication is used as the data to be sent, and then all the internal units send the data to be sent in the internal unit to the external unit in order. 3.根据权利要求2所述的多联机内外机通信方法,其特征在于,在步骤(4)的一轮通信中,还包括内机将本轮通信本内机待发送的数据与当前等级所对应前一轮通信中本内机所发送的数据进行比较的步骤,若两者不一致,则正常发送完整的数据帧,否则,将本轮通信本内机待发送的数据进行压缩发送。3. The multi-connection internal and external unit communication method according to claim 2, characterized in that, in the round of communication in step (4), the internal unit further includes the data to be sent by the internal unit for this round of communication and the current level. Corresponding to the step of comparing the data sent by the internal unit in the previous round of communication, if the two are inconsistent, send the complete data frame normally, otherwise, compress and send the data to be sent by the internal unit in the current round of communication. 4.根据权利要求3所述的多联机内外机通信方法,其特征在于,在步骤(4)的一轮通信中,将待发送的数据进行压缩的方法为:将待发送的数据生成一个特征码,并将该特征码发送至外机。4. The multi-connection internal and external machine communication method according to claim 3, characterized in that, in the round of communication in step (4), the method of compressing the data to be sent is: generating a characteristic of the data to be sent code, and send the code to the external unit. 5.根据权利要求4所述的多联机内外机通信方法,其特征在于,所述特征码为内机采用计算公式算出,所述外机收到所述特征码后,对当前等级所对应前一轮通信中该内机的完整数据,使用同样的计算公式算出首特征码,并将所述首特征码与所述特征码进行比较,如果一致,确认本轮通信所述内机数据没有改变,否则外机通知发送特征码的内机,在当前等级所对应的下一轮通信中需要发送完整的数据帧。5. The multi-connection internal and external machine communication method according to claim 4, characterized in that, the feature code is calculated by the internal machine using a calculation formula, and after the external machine receives the feature code, it performs an operation on the previous level corresponding to the current level. For the complete data of the internal machine in a round of communication, use the same calculation formula to calculate the first feature code, and compare the first feature code with the said feature code, if they are consistent, confirm that the data of the internal machine in this round of communication has not changed , otherwise the external machine notifies the internal machine sending the feature code that a complete data frame needs to be sent in the next round of communication corresponding to the current level. 6.根据权利要求1-5任一项所述的多联机内外机通信方法,其特征在于,步骤(1)中将内机中的数据划分等级的依据为外机对数据实时性要求高低,实时性要求越高,相应级别越高,该等级的通信顺序越靠前。6. The multi-connection internal and external machine communication method according to any one of claims 1-5, characterized in that the basis for classifying the data in the internal machine in step (1) is the level of real-time data requirements of the external machine, The higher the real-time requirement, the higher the corresponding level, and the higher the communication sequence of this level.
CN201610816146.2A 2016-09-12 2016-09-12 Communication method of multiple online internal and external machines Pending CN106453019A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610816146.2A CN106453019A (en) 2016-09-12 2016-09-12 Communication method of multiple online internal and external machines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610816146.2A CN106453019A (en) 2016-09-12 2016-09-12 Communication method of multiple online internal and external machines

Publications (1)

Publication Number Publication Date
CN106453019A true CN106453019A (en) 2017-02-22

Family

ID=58169006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610816146.2A Pending CN106453019A (en) 2016-09-12 2016-09-12 Communication method of multiple online internal and external machines

Country Status (1)

Country Link
CN (1) CN106453019A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231281A (en) * 2017-06-26 2017-10-03 珠海格力电器股份有限公司 Air conditioning system and data transmission method and device thereof
CN108800455A (en) * 2018-04-13 2018-11-13 珠海格力电器股份有限公司 Air conditioning unit, control method of air conditioning unit and central coordinator
CN111371660A (en) * 2020-03-13 2020-07-03 珠海格力电器股份有限公司 Data acquisition method and device for improving balance and multi-split system
CN112283886A (en) * 2020-10-13 2021-01-29 珠海格力电器股份有限公司 Control method and device of multi-connected air conditioning unit and multi-connected air conditioning unit
CN112611083A (en) * 2020-11-20 2021-04-06 青岛海尔空调电子有限公司 Multi-split internal and external machine communication method and multi-split machine
CN112611016A (en) * 2020-11-23 2021-04-06 青岛海尔空调电子有限公司 Multi-split multi-split outdoor unit communication method and multi-split unit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1485727A (en) * 2002-09-23 2004-03-31 ��Ϊ�������޹�˾ A device data polling scheduling method
CN1852160A (en) * 2005-12-30 2006-10-25 华为技术有限公司 Method for realizing data slow synchronization and system thereof
CN104348783A (en) * 2013-07-26 2015-02-11 海尔集团公司 Method for rapid communication between internal machines and external machine in a multi-online system according to multiple protocols and device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1485727A (en) * 2002-09-23 2004-03-31 ��Ϊ�������޹�˾ A device data polling scheduling method
CN1852160A (en) * 2005-12-30 2006-10-25 华为技术有限公司 Method for realizing data slow synchronization and system thereof
CN104348783A (en) * 2013-07-26 2015-02-11 海尔集团公司 Method for rapid communication between internal machines and external machine in a multi-online system according to multiple protocols and device thereof

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231281A (en) * 2017-06-26 2017-10-03 珠海格力电器股份有限公司 Air conditioning system and data transmission method and device thereof
CN107231281B (en) * 2017-06-26 2019-11-08 珠海格力电器股份有限公司 Air conditioning system and data transmission method and device thereof
CN108800455A (en) * 2018-04-13 2018-11-13 珠海格力电器股份有限公司 Air conditioning unit, control method of air conditioning unit and central coordinator
CN108800455B (en) * 2018-04-13 2023-06-06 珠海格力电器股份有限公司 Air conditioning unit, control method of air conditioning unit and central coordinator
CN111371660A (en) * 2020-03-13 2020-07-03 珠海格力电器股份有限公司 Data acquisition method and device for improving balance and multi-split system
CN112283886A (en) * 2020-10-13 2021-01-29 珠海格力电器股份有限公司 Control method and device of multi-connected air conditioning unit and multi-connected air conditioning unit
CN112611083A (en) * 2020-11-20 2021-04-06 青岛海尔空调电子有限公司 Multi-split internal and external machine communication method and multi-split machine
WO2021233475A1 (en) * 2020-11-20 2021-11-25 青岛海尔空调电子有限公司 Communication method for indoor and outdoor units of multi-split air conditioner, and multi-split air conditioner
CN112611083B (en) * 2020-11-20 2022-07-12 青岛海尔空调电子有限公司 Multi-split internal and external machine communication method and multi-split machine
CN112611016A (en) * 2020-11-23 2021-04-06 青岛海尔空调电子有限公司 Multi-split multi-split outdoor unit communication method and multi-split unit
WO2022068278A1 (en) * 2020-11-23 2022-04-07 青岛海尔空调电子有限公司 Outdoor unit communication method of several-driven-several multi-split air conditioner and several-driven-several multi-split air conditioner

Similar Documents

Publication Publication Date Title
CN106453019A (en) Communication method of multiple online internal and external machines
CN106452671B (en) Multi-line internal and external communication method
CN103036754B (en) A multi-connected air conditioner communication system and communication method
CN112468372B (en) Method and device for detecting equipment state in power line communication network
CN103546467A (en) Method for transmitting Modbus RTU protocol on TCP/IP network
CN106656712A (en) Exception handling methods for buses, controllers for robots
CN105157294A (en) Control method and system for intelligent oil return of multi-split air conditioner and multi-split air conditioner system
CN110601945A (en) Dual-redundancy CAN bus communication system and communication method
CN106557033A (en) A kind of intelligent home equipment control method, apparatus and system
CN107505883A (en) A kind of highly reliable dual redundant integrated control module based on microcontroller
CN100492992C (en) Alarm processing method and its device
CN104270452B (en) A kind of tele-medicine data management system and its wireless network communication method
WO2021036748A1 (en) Control method and apparatus, chip and device
WO2023020078A1 (en) Control method and device for air conditioner, and server
CN114608145B (en) Control method and control device for air conditioner, air conditioner and storage medium
WO2022242265A1 (en) Method and apparatus for controlling display temperature of air conditioner, and air conditioner
CN112611083B (en) Multi-split internal and external machine communication method and multi-split machine
CN109548121B (en) Communication method and device of wireless local area network, access point equipment and site equipment
CN105843046B (en) Intelligent household electrical appliance master control communication method and system
CN111988417A (en) Communication control method of physical network terminal
CN104656604B (en) A kind of utilization MODBUS communication protocols realize the safety and stability control device of electric network and its method of man-machine interaction
CN112503717B (en) Control method and device of universal air conditioner controller and universal air conditioner controller
CN116624990A (en) Method and device for controlling air conditioning system, air conditioning system and storage medium
CN108848193B (en) A method for optimizing the update rate of industrial sensor nodes based on dynamic weighting
US20150312861A1 (en) Method and system for device aware power save

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222

RJ01 Rejection of invention patent application after publication