CN115988003A - A Distributed Photovoltaic Data Mutual Transmission Complementary Transmission Method and System - Google Patents

A Distributed Photovoltaic Data Mutual Transmission Complementary Transmission Method and System Download PDF

Info

Publication number
CN115988003A
CN115988003A CN202211669927.5A CN202211669927A CN115988003A CN 115988003 A CN115988003 A CN 115988003A CN 202211669927 A CN202211669927 A CN 202211669927A CN 115988003 A CN115988003 A CN 115988003A
Authority
CN
China
Prior art keywords
transmission
data
layer
bit
flag
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
CN202211669927.5A
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.)
Guodian Power Hunan Wugang New Energy Development Co ltd
Northeast Electric Power University
Original Assignee
Guodian Power Hunan Wugang New Energy Development Co ltd
Northeast Dianli University
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 Guodian Power Hunan Wugang New Energy Development Co ltd, Northeast Dianli University filed Critical Guodian Power Hunan Wugang New Energy Development Co ltd
Priority to CN202211669927.5A priority Critical patent/CN115988003A/en
Publication of CN115988003A publication Critical patent/CN115988003A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention relates to a distributed photovoltaic data mutual transmission and complement full transmission method, which comprises the following steps: s1: establishing data transmission connection for two of the plurality of distributed photovoltaic nodes based on the complementary transmission control field; s2: judging whether the data to be transmitted is received or not based on the complementary transmission control field, if not, transmitting the data between the two distributed photovoltaic nodes, and if so, ending the transmission; s3: and each distributed photovoltaic node and other distributed photovoltaic nodes complete data transmission according to the steps S1-S2. A distributed photovoltaic data mutual transmission and complementation complete transmission system is used for achieving a distributed photovoltaic data mutual transmission and complementation complete transmission method and comprises a main station layer, a communication layer and a terminal layer. The invention improves the transmission efficiency; the decentralized multi-node mutual transmission is realized, the reliability of data can be greatly improved, the occurrence probability that data cannot be transmitted due to the fact that transmission of individual equipment fails is greatly reduced, and the method is more economical and stable.

Description

一种分布式光伏数据互传补全传输方法及系统A Distributed Photovoltaic Data Mutual Transmission Complementary Transmission Method and System

技术领域technical field

本发明涉及光伏数据传输领域,特别是一种分布式光伏数据互传补全传输方法及系统。The invention relates to the field of photovoltaic data transmission, in particular to a distributed photovoltaic data mutual transmission complementary transmission method and system.

背景技术Background technique

全球能源短缺以及环境污染问题日益严重,太阳能作为一种目前安全清洁且储量潜力巨大的清洁能源,人们对其的利用率正在不断提高,其中光伏发电是最主流的一种应用方式。在我国战略影响之下,分布式屋顶光伏发展潜力巨大。与集中式光伏电站不同,分布式屋顶光伏不需要额外土地资源,经济成本较低,安装便捷。与集中式光伏电站可以通过运维人员到达现场或通过统一的设备对电气参数的监测来发现其可能存在的故障不同,分布式屋顶光伏对于故障的发现通常依赖对电气参数的监测。但由于分布式屋顶光伏单体发电量较小,分布位置较为分散,对数据传输的质量要求较高。目前已有的数据传输方法对于屋顶光伏电气参数数据传输有一定局限性,因此提升分布式屋顶光伏的数据传输的可靠性及稳定性对于分布式屋顶光伏发电来说具有重大意义。The global energy shortage and environmental pollution are becoming more and more serious. As a clean energy that is safe and clean and has huge storage potential, people's utilization rate of solar energy is constantly improving. Among them, photovoltaic power generation is the most mainstream application method. Under the influence of my country's strategy, the development potential of distributed rooftop photovoltaic is huge. Unlike centralized photovoltaic power plants, distributed rooftop photovoltaics do not require additional land resources, have low economic costs, and are easy to install. Unlike centralized photovoltaic power plants, where operation and maintenance personnel can arrive at the site or monitor electrical parameters through unified equipment to detect possible faults, distributed rooftop photovoltaics usually rely on the monitoring of electrical parameters to detect faults. However, due to the small power generation of distributed rooftop photovoltaic cells and the scattered distribution locations, the quality requirements for data transmission are relatively high. The existing data transmission methods have certain limitations for the data transmission of rooftop photovoltaic electrical parameters, so improving the reliability and stability of distributed rooftop photovoltaic data transmission is of great significance for distributed rooftop photovoltaic power generation.

发明内容Contents of the invention

本发明的目的在于克服现有技术的不足,提供一种分布式光伏数据互传补全传输方法及系统,提升传输效率;极大提高数据的可靠性,大大降低因个别设备传输出现故障而导致数据无法传输的发生概率,更加经济稳定。The purpose of the present invention is to overcome the deficiencies of the prior art, provide a method and system for inter-complementary and complementary transmission of distributed photovoltaic data, improve the transmission efficiency, greatly improve the reliability of data, and greatly reduce the failure caused by the failure of individual equipment transmission. The probability of data failure to be transmitted is more economically stable.

本发明的目的是通过以下技术方案来实现的:The purpose of the present invention is achieved through the following technical solutions:

一种分布式光伏数据互传补全传输方法,包括以下步骤:A distributed photovoltaic data mutual transmission complementary transmission method, comprising the following steps:

S1:基于互传补全控制字段对多个分布式光伏节点中的两个建立数据传输连接;S1: Establish a data transmission connection for two of the multiple distributed photovoltaic nodes based on the mutual transmission completion control field;

S2:基于互传补全控制字段判断要传输的数据是否已接收到,如未接收到,则在两个分布式光伏节点之间进行数据传输,如已接收到,则结束此次传输;S2: Determine whether the data to be transmitted has been received based on the mutual transmission completion control field. If not, perform data transmission between the two distributed photovoltaic nodes. If it has been received, end the transmission;

S3:每个分布式光伏节点均与其他分布式光伏节点按照步骤S1-S2完成数据传输。S3: Each distributed photovoltaic node completes data transmission with other distributed photovoltaic nodes according to steps S1-S2.

进一步,步骤S3后进行以下步骤:Further, the following steps are performed after step S3:

S4:随机选择部分分布式光伏节点向中继网关发送数据信息,之后由中继网关将数据上传至云平台。S4: Randomly select some distributed photovoltaic nodes to send data information to the relay gateway, and then the relay gateway uploads the data to the cloud platform.

进一步,所述数据传输连接通过两次握手一次挥手建立。Further, the data transmission connection is established through two handshakes and one hand wave.

进一步,所述互传补全控制字段包括标志位层、序列号层、滑动窗口层以及数据包层。Further, the intercommunication completion control field includes a flag bit layer, a sequence number layer, a sliding window layer and a data packet layer.

进一步,所述标志位层包括连接状态标志位、传输状态标志位、断点与重传标志位、发送次数标志位、接收确认标志位、时间标志位、发送/接收标志位以及传输轮完成标志位。Further, the flag bit layer includes a connection status flag bit, a transmission status flag bit, a breakpoint and retransmission flag bit, a sending count flag bit, a reception confirmation flag bit, a time flag bit, a send/receive flag bit, and a transmission round completion flag bit.

进一步,所述互传补全控制字段的格式为:Further, the format of the intercommunication completion control field is:

第一层为所述标志位层,第一层的32位是:The first layer is the flag bit layer, and the 32 bits of the first layer are:

第一字符1位的标志位T0,表示连接状态,T0为0时没有连接;T0为连接状态标志位;The flag bit T0 of the first character 1 bit indicates the connection status. When T0 is 0, there is no connection; T0 is the connection status flag bit;

第二字符1位的标志位T1和第三字符1位的标志位T2,表示传输状态,T0为1且T1为0时代表进行传输,T2为1时表示传输结束;T1和T2为传输状态标志位;The flag bit T1 of the second character 1 bit and the flag bit T2 of the third character 1 bit indicate the transmission status. When T0 is 1 and T1 is 0, it means that the transmission is in progress, and when T2 is 1, it means that the transmission is over; T1 and T2 are the transmission status flag;

第四字符1位的标志位T3,表示断点续传状态;The flag bit T3 of the 1st bit of the fourth character indicates the state of resuming transmission from breakpoints;

第五和第六字符分别为1位的标志位T4、T5,表示断点位置,T3为1时T4、T5记录断点位置;The fifth and sixth characters are 1-bit flags T4 and T5 respectively, indicating the breakpoint position. When T3 is 1, T4 and T5 record the breakpoint position;

第七字符1位的标志位T6,表示重传状态,T6为1时重新传输数据;The flag bit T6 of the 1st bit of the seventh character indicates the retransmission status, and the data is retransmitted when T6 is 1;

T3-T6为断点与重传标志位;T3-T6 are breakpoint and retransmission flags;

第八字符1位的标志位T7,用于表示当前数据的发送次数;T7为发送次数标志位;The flag bit T7 of the eighth character 1 is used to indicate the number of times the current data is sent; T7 is the flag bit for the number of times sent;

第九字符1位的标志位T8,T8为1则表示收到接收方确认;The flag bit T8 of the 1st bit of the ninth character, if T8 is 1, it means that the receiver's confirmation is received;

第十字符1位的标志位T9,T9为1时表示完成发送但还未收到接收方确认;T8和T9为接收确认标志位;The flag bit T9 of the tenth character 1, when T9 is 1, it means that the sending is completed but the receiver has not received confirmation; T8 and T9 are the receiving confirmation flags;

第十一和十二字符分别为1位的标志位T10、T11,表示时间标志;T10和T11为时间标志位;The eleventh and twelfth characters are respectively 1 flag bits T10, T11, which represent a time flag; T10 and T11 are time flag bits;

第十三字符1位的标志位T12,T12为1则是发送端,为0则是接收端;T12为发送/接收标志位;The flag bit T12 of the thirteenth character 1 bit, T12 is 1 is the sending end, and 0 is the receiving end; T12 is the sending/receiving flag bit;

第十四位1位的标志位T13,T13为1表示已完成一轮数据传输;T13为传输轮完成标志位;The flag bit T13 of the fourteenth bit is 1, and T13 is 1 to indicate that a round of data transmission has been completed; T13 is the flag bit for the completion of the transmission round;

其余位为保留位,表示目前已经收到数据的用户信息;The remaining bits are reserved bits, indicating the user information that has received data;

序列号层包括第二层与第三层;The serial number layer includes the second layer and the third layer;

第二层为36位的序列号:标记发送数据包的电气参数与环境参数信息顺序,标记数据包含的用户,接收方与之比对补全数据与更新标志位;The second layer is a 36-bit serial number: mark the order of the electrical parameters and environmental parameter information of the sent data packet, mark the user included in the data, and the receiver compares with it to complete the data and update the flag;

第三层为16位的序号,标记断点续传或需要重新传输的数据包序号;The third layer is a 16-bit sequence number, which marks the sequence number of the data packet that needs to be retransmitted or resumed after the breakpoint;

第四层为滑动窗口层,第四层为32位滑动窗口,根据发送或接收的转换控制数据的发送与接收;The fourth layer is the sliding window layer, and the fourth layer is a 32-bit sliding window, which controls the sending and receiving of data according to the conversion of sending or receiving;

第五层为数据包层,发送所有电气参数、环境参数数据。The fifth layer is the data packet layer, which sends all electrical parameters and environmental parameter data.

一种分布式光伏数据互传补全传输系统,用于实现一种分布式光伏数据互传补全传输方法,包括主站层、通信层和终端层。A distributed photovoltaic data mutual transmission complement transmission system is used to realize a distributed photovoltaic data mutual transmission supplementary transmission method, including a master station layer, a communication layer and a terminal layer.

进一步,所述终端层包括数据采集模块、数据处理模块、数据存储模块以及数据传输模块。Further, the terminal layer includes a data acquisition module, a data processing module, a data storage module and a data transmission module.

本发明的有益效果是:The beneficial effects of the present invention are:

通过判断是否已接收到要传输的数据,减少数据传输量,实现了数据的补全,提升传输效率;通过分布式光伏节点之间两两传输,实现了去中心化多节点互传,可以极大提高数据的可靠性,大大降低因个别设备传输出现故障而导致数据无法传输的发生概率,更加经济稳定。By judging whether the data to be transmitted has been received, the amount of data transmission is reduced, data completion is realized, and transmission efficiency is improved; through two-two transmission between distributed photovoltaic nodes, decentralized multi-node mutual transmission is realized, which can be extremely Greatly improve the reliability of data, greatly reduce the probability of data transmission failure due to the failure of individual equipment transmission, and make it more economical and stable.

附图说明Description of drawings

图1是本发明的整体流程图;Fig. 1 is the overall flowchart of the present invention;

图2是本发明的网络结构图;Fig. 2 is a network structure diagram of the present invention;

图3是本发明的系统示意图;Fig. 3 is a schematic diagram of the system of the present invention;

图4是本发明的控制包文格式示意图;Fig. 4 is a schematic diagram of the control packet format of the present invention;

图5是本发明的节点传输数据补全示意图。Fig. 5 is a schematic diagram of node transmission data completion in the present invention.

具体实施方式Detailed ways

以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。Embodiments of the present invention are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, in the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.

需要说明的是,以下实施例中所提供的图示仅以示意方式说明本发明的基本构想,遂图式中仅显示与本发明中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。It should be noted that the diagrams provided in the following embodiments are only schematically illustrating the basic ideas of the present invention, and only the components related to the present invention are shown in the diagrams rather than the number, shape and shape of the components in actual implementation. Dimensional drawing, the type, quantity and proportion of each component can be changed arbitrarily during actual implementation, and the component layout type may also be more complicated.

实施例一:Embodiment one:

如图1至图5所示,一种分布式光伏数据互传补全传输方法,包括以下步骤:As shown in Figures 1 to 5, a distributed photovoltaic data mutual transmission complementary transmission method includes the following steps:

S1:基于互传补全控制字段对多个分布式光伏节点中的两个建立数据传输连接;S1: Establish a data transmission connection for two of the multiple distributed photovoltaic nodes based on the mutual transmission completion control field;

所述数据传输连接通过两次握手一次挥手建立;The data transmission connection is established by two handshakes and one wave;

以存在ABCD四个分布式光伏节点为例,A向B发起一次握手,B向A发起一次挥手,A为发送端,B为接收端;检验B是否正在进行传输(即检验B的连接状态标志位),若空闲则改变各自控制标志位并校时,然后准备连接开始传输;A再次向B握手,此时A与B建立连接开始传输数据;Take four distributed photovoltaic nodes ABCD as an example, A initiates a handshake to B, B initiates a wave to A, A is the sending end, B is the receiving end; check whether B is transmitting (that is, check the connection status flag of B bit), if idle, change the respective control flag bits and check the time, and then prepare for the connection to start transmission; A shakes hands with B again, at this time A and B establish a connection and start transmitting data;

S2:基于互传补全控制字段判断要传输的数据是否已接收到,如未接收到,则在两个分布式光伏节点之间进行数据传输,如已接收到,则结束此次传输;S2: Determine whether the data to be transmitted has been received based on the mutual transmission completion control field. If not, perform data transmission between the two distributed photovoltaic nodes. If it has been received, end the transmission;

例如,在A节点向B节点传输后,B存在A、B的数据,所以当B与C传输完成之后,A与C建立连接传输数据时,可通过互传补全控制字段第一层标志位信息与第二层序列号信息得知A的数据信息为重复,可选择忽略A信息补全其他信息,加快数据传输的效率。For example, after node A transmits to node B, B has the data of A and B, so after the transmission between B and C is completed, when A and C establish a connection to transmit data, they can complete the first layer flag bit of the control field by mutual transmission Information and the second-level serial number information know that the data information of A is duplicated, and you can choose to ignore the information of A and complete other information to speed up the efficiency of data transmission.

传输开始之后,通过系统检测接收到的用户信息并记录改变互传补全控制字段第一层标志位与第二层序列号信息,通过第四层滑动窗口发送接收确认数据传输,完成接收后,B向A发送一组指令确认传输完成,彼此关闭传输通道并准备开始与其他分布式光伏节点数据传输;After the transmission starts, the system detects the received user information and records and changes the information of the first layer flag bit and the second layer serial number of the intertransmission completion control field, and sends and receives the confirmation data transmission through the fourth layer sliding window. After receiving, B sends a set of instructions to A to confirm the completion of the transmission, close the transmission channel with each other and prepare to start data transmission with other distributed photovoltaic nodes;

S3:每个分布式光伏节点均与其他分布式光伏节点按照步骤S1-S2完成数据传输。S3: Each distributed photovoltaic node completes data transmission with other distributed photovoltaic nodes according to steps S1-S2.

S4:随机选择部分分布式光伏节点向中继网关发送数据信息,之后由中继网关将数据上传至云平台。S4: Randomly select some distributed photovoltaic nodes to send data information to the relay gateway, and then the relay gateway uploads the data to the cloud platform.

当ABCD每个分布式光伏节点都与其他分布式光伏节点完成一次发送与接收的数据传输过程之后,每个分布式光伏节点拥有全部分布式光伏节点的数据信息,此时随机选择两个分布式光伏节点向中继网关发送数据信息。等待数据接收完毕,中继网关将接收到的两组数据上传至云平台,云平台接收校验数据完成一次完整传输过程。After each distributed photovoltaic node of ABCD completes a data transmission process of sending and receiving with other distributed photovoltaic nodes, each distributed photovoltaic node has the data information of all distributed photovoltaic nodes. At this time, two distributed photovoltaic nodes are randomly selected. Photovoltaic nodes send data information to the relay gateway. Waiting for the data to be received, the relay gateway uploads the received two sets of data to the cloud platform, and the cloud platform receives the verification data to complete a complete transmission process.

通过判断是否已接收到要传输的数据,减少数据传输量,实现了数据的补全,提升传输效率;通过分布式光伏节点之间两两传输,实现了去中心化多节点互传,可以极大提高数据的可靠性,大大降低因个别设备传输出现故障而导致数据无法传输的发生概率,更加经济稳定。By judging whether the data to be transmitted has been received, the amount of data transmission is reduced, data completion is realized, and transmission efficiency is improved; through two-two transmission between distributed photovoltaic nodes, decentralized multi-node mutual transmission is realized, which can be extremely Greatly improve the reliability of data, greatly reduce the probability of data transmission failure due to the failure of individual equipment transmission, and make it more economical and stable.

所述互传补全控制字段包括标志位层、序列号层、滑动窗口层以及数据包层。The mutual completion control field includes a flag bit layer, a sequence number layer, a sliding window layer and a data packet layer.

所述标志位层包括连接状态标志位、传输状态标志位、断点与重传标志位、发送次数标志位、接收确认标志位、时间标志位、发送/接收标志位以及传输轮完成标志位。The flag bit layer includes a connection status flag, a transmission status flag, a breakpoint and retransmission flag, a sending times flag, a reception confirmation flag, a time flag, a send/receive flag, and a transmission round completion flag.

所述互传补全控制字段的格式为:The format of the mutual completion control field is:

第一层为所述标志位层,第一层的32位是:The first layer is the flag bit layer, and the 32 bits of the first layer are:

第一字符1位的标志位T0,表示连接状态,T0为0时没有连接;T0为连接状态标志位;The flag bit T0 of the first character 1 bit indicates the connection status. When T0 is 0, there is no connection; T0 is the connection status flag bit;

第二字符1位的标志位T1和第三字符1位的标志位T2,表示传输状态,T0为1且T1为0时代表进行传输,T2为1时表示传输结束;T1和T2为传输状态标志位;The flag bit T1 of the second character 1 bit and the flag bit T2 of the third character 1 bit indicate the transmission status. When T0 is 1 and T1 is 0, it means that the transmission is in progress, and when T2 is 1, it means that the transmission is over; T1 and T2 are the transmission status flag;

第四字符1位的标志位T3,表示断点续传状态;The flag bit T3 of the 1st bit of the fourth character indicates the state of resuming transmission from breakpoints;

第五和第六字符分别为1位的标志位T4、T5,表示断点位置,T3为1时T4、T5记录断点位置;The fifth and sixth characters are 1-bit flags T4 and T5 respectively, indicating the breakpoint position. When T3 is 1, T4 and T5 record the breakpoint position;

第七字符1位的标志位T6,表示重传状态,T6为1时重新传输数据;The flag bit T6 of the 1st bit of the seventh character indicates the retransmission status, and the data is retransmitted when T6 is 1;

T3-T6为断点与重传标志位;T3-T6 are breakpoint and retransmission flags;

第八字符1位的标志位T7,用于表示当前数据的发送次数;T7为发送次数标志位;The flag bit T7 of the eighth character 1 is used to indicate the number of times the current data is sent; T7 is the flag bit for the number of times sent;

第九字符1位的标志位T8,T8为1则表示收到接收方确认;The flag bit T8 of the 1st bit of the ninth character, if T8 is 1, it means that the receiver's confirmation is received;

第十字符1位的标志位T9,T9为1时表示完成发送但还未收到接收方确认;T8和T9为接收确认标志位;The flag bit T9 of the tenth character 1, when T9 is 1, it means that the sending is completed but the receiver has not received confirmation; T8 and T9 are the receiving confirmation flags;

第十一和十二字符分别为1位的标志位T10、T11,表示时间标志;T10和T11为时间标志位;The eleventh and twelfth characters are respectively 1 flag bits T10, T11, which represent a time flag; T10 and T11 are time flag bits;

第十三字符1位的标志位T12,T12为1则是发送端,为0则是接收端;T12为发送/接收标志位;The flag bit T12 of the thirteenth character 1 bit, T12 is 1 is the sending end, and 0 is the receiving end; T12 is the sending/receiving flag bit;

第十四位1位的标志位T13,T13为1表示已完成一轮数据传输;T13为传输轮完成标志位;The flag bit T13 of the fourteenth bit is 1, and T13 is 1 to indicate that a round of data transmission has been completed; T13 is the flag bit for the completion of the transmission round;

其余位为保留位,表示目前已经收到数据的用户信息;The remaining bits are reserved bits, indicating the user information that has received data;

序列号层包括第二层与第三层;The serial number layer includes the second layer and the third layer;

第二层为36位的序列号:标记发送数据包的电气参数与环境参数信息顺序,标记数据包含的用户,接收方与之比对补全数据与更新标志位;The second layer is a 36-bit serial number: mark the order of the electrical parameters and environmental parameter information of the sent data packet, mark the user included in the data, and the receiver compares with it to complete the data and update the flag;

第三层为16位的序号,标记断点续传或需要重新传输的数据包序号;The third layer is a 16-bit sequence number, which marks the sequence number of the data packet that needs to be retransmitted or resumed after the breakpoint;

第四层为滑动窗口层,第四层为32位滑动窗口,根据发送或接收的转换控制数据的发送与接收。The fourth layer is a sliding window layer, and the fourth layer is a 32-bit sliding window, which controls the sending and receiving of data according to the conversion of sending or receiving.

第五层为数据包层,发送所有电气参数、环境参数数据。The fifth layer is the data packet layer, which sends all electrical parameters and environmental parameter data.

在协议首部填加互传补全控制字段后形成如图4所示的格式。The format shown in Figure 4 is formed after the mutual transmission completion control field is added to the protocol header.

通过设立面向连接的基于数据参数消息的传输协议的互传补全控制字段,实现了数据传输的互传补全。新的协议首部,即在协议首部填加一些互传补全控制字段而形成的一种面向连接的基于消息包的传输协议,形成了可靠传输机制,提高了数据传输效率。By setting up the mutual completion control field of the connection-oriented transmission protocol based on the data parameter message, the mutual completion of data transmission is realized. The new protocol header is a connection-oriented, message packet-based transmission protocol formed by adding some mutual transmission and completion control fields in the protocol header, forming a reliable transmission mechanism and improving data transmission efficiency.

在可靠传输机制中,采用传输确认机制确认传输状态,确认接收数据的长度,保证数据传输的可靠性并节省传输时间,在此机制下发送方与接收方确认空闲并成功建立联系之后会开始数据传输,与停止等待机制相比节省了等待的时间并提高了传输的效率;采用数据互传机制,来降低因为个别传输过程出现问题而导致传输故障的概率,进一步提高数据传输的可靠性,通过相互传输数据来避免个别数据的丢失;采用数据补全机制,节约传感器的数量,减少不必要的数据采集过程,降低重复传输过程的频率,加快了传输效率与传输的可靠性,有效减少重复信息的采集,降低因节点传输过程数据丢失导致报错的可能性,有效提高数据的可靠性。In the reliable transmission mechanism, the transmission confirmation mechanism is used to confirm the transmission status, confirm the length of the received data, ensure the reliability of data transmission and save transmission time. Under this mechanism, the sender and the receiver will confirm that they are idle and successfully establish a connection. Data will start Transmission, compared with the stop waiting mechanism, saves the waiting time and improves the efficiency of transmission; adopts the data mutual transmission mechanism to reduce the probability of transmission failure due to problems in individual transmission processes, and further improves the reliability of data transmission. Mutual transmission of data to avoid the loss of individual data; adopt the data completion mechanism to save the number of sensors, reduce unnecessary data collection process, reduce the frequency of repeated transmission process, speed up the transmission efficiency and transmission reliability, and effectively reduce repeated information The collection reduces the possibility of error reporting due to data loss during node transmission, and effectively improves data reliability.

通过在应用层与传输层之间添加面向连接的传输协议互传补全控制字段,建立分布式光伏数据传输协议,其安全性、可靠性、稳定性均得到保障。By adding a connection-oriented transmission protocol between the application layer and the transmission layer to complete the control field, a distributed photovoltaic data transmission protocol is established, and its security, reliability, and stability are guaranteed.

一种分布式光伏数据互传补全传输系统,用于实现一种分布式光伏数据互传补全传输方法,包括主站层、通信层和终端层。A distributed photovoltaic data mutual transmission complement transmission system is used to realize a distributed photovoltaic data mutual transmission supplementary transmission method, including a master station layer, a communication layer and a terminal layer.

一种分布式光伏数据互传补全传输系统整体架构从上至下分为三层,分为主站层、通信层和终端层。The overall architecture of a distributed photovoltaic data mutual transmission complementary transmission system is divided into three layers from top to bottom, including the main station layer, communication layer and terminal layer.

主站层:由物联网云平台或上位机构成,具有管理设备,可视化信息,数据分析的功能。Master station layer: It is composed of IoT cloud platform or upper computer, which has the functions of managing equipment, visualizing information, and data analysis.

通信层:由中继网关组成,处理通过lora通信方式传输的终端数据,再通过4G通信方式发送给上位机,接收上位机下达指令,解析之后发送给终端。Communication layer: composed of relay gateways, which process terminal data transmitted through lora communication, and then send it to the host computer through 4G communication, receive instructions from the host computer, and send them to the terminal after analysis.

终端层:由终端设备组成,处理存储并向上传输各节点数据信息,执行主站控制指令。Terminal layer: It is composed of terminal equipment, which processes, stores and transmits the data information of each node upwards, and executes the control instructions of the master station.

所述终端层包括数据采集模块、数据处理模块、数据存储模块以及数据传输模块。The terminal layer includes a data acquisition module, a data processing module, a data storage module and a data transmission module.

数据采集模块:对光伏组件的电气数据、气象数据进行采集。Data acquisition module: collect electrical data and meteorological data of photovoltaic modules.

数据处理模块:将获取的数据根据设定的参数进行分析处理。Data processing module: analyze and process the acquired data according to the set parameters.

数据存储模块:说处理后的数据信息进行存储。Data storage module: store the processed data information.

数据传输模块:将处理之后的数据通过lora通讯方式传输到中继网关。Data transmission module: transmit the processed data to the relay gateway through lora communication.

首先终端层的各终端创建账户,每个终端通过数据采集模块对光伏组件的电气数据和部分气象数据进行采集,然后通过数据处理模块将获取的数据进行分析处理,得到处理过后的数据,再通过数据存储模块进行存储,检查传输状态,各用户验证身份信息,检查信道稳定性,建立传输节点,同时各个节点将处理好的数据通过所述方法相互传输互相补全数据,校验数据完整性,每个节点都存储全部数据,挑选随机数量节点将数据通过lora通讯方式传输到中继网关,再由网关汇集上传而来的数据采用4G通信方式传输到监控主站云平台服务器中。First, each terminal at the terminal layer creates an account, and each terminal collects the electrical data of the photovoltaic module and some meteorological data through the data collection module, and then analyzes and processes the acquired data through the data processing module to obtain the processed data, and then passes The data storage module stores, checks the transmission status, each user verifies the identity information, checks the stability of the channel, and establishes a transmission node. At the same time, each node transmits the processed data to each other through the method to complement each other and verify the integrity of the data. Each node stores all the data, and a random number of nodes is selected to transmit the data to the relay gateway through lora communication, and then the data collected and uploaded by the gateway is transmitted to the cloud platform server of the monitoring master station through 4G communication.

一种分布式光伏数据互传补全传输系统的工作流程包括:①创建账户。②采集数据。③传输数据。④补全数据。⑤上传数据。The workflow of a distributed photovoltaic data mutual transmission complementary transmission system includes: ① Create an account. ② Collect data. ③Transfer data. ④Complete the data. ⑤ Upload data.

在进行数据传输之前在各终端设备处创建账户,录入设备信息位置信息,传感器采集电气参数数据和气象参数数据。两个节点之间通过两次握手一次挥手建立连接,确认发送端与接收端,改变各自控制标志位并校时,开始传输之后忽略重复信息传输,补全其他信息,使每个节点都拥有全部节点的信息。随机选择两个节点向中继网关发送数据信息。等待数据接收完毕,中继网关将接收到的两组数据上传至云平台,云平台接收校验数据完成一次完整传输过程。Before data transmission, create an account at each terminal device, enter device information and location information, and sensors collect electrical parameter data and meteorological parameter data. Two nodes shake hands twice to establish a connection, confirm the sender and receiver, change their respective control flags and adjust the time, ignore repeated information transmission after starting transmission, and complete other information so that each node has all Node information. Randomly select two nodes to send data information to the relay gateway. Waiting for the data to be received, the relay gateway uploads the received two sets of data to the cloud platform, and the cloud platform receives the verification data to complete a complete transmission process.

以上所述实施例仅表达了本发明的具体实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。The above-mentioned embodiments only express the specific implementation manner of the present invention, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention.

Claims (8)

1.一种分布式光伏数据互传补全传输方法,其特征在于:包括以下步骤:1. A distributed photovoltaic data mutual transmission complementary transmission method, characterized in that: comprising the following steps: S1:基于互传补全控制字段对多个分布式光伏节点中的两个建立数据传输连接;S1: Establish a data transmission connection for two of the multiple distributed photovoltaic nodes based on the mutual transmission completion control field; S2:基于互传补全控制字段判断要传输的数据是否已接收到,如未接收到,则在两个分布式光伏节点之间进行数据传输,如已接收到,则结束此次传输;S2: Determine whether the data to be transmitted has been received based on the mutual transmission completion control field. If not, perform data transmission between the two distributed photovoltaic nodes. If it has been received, end the transmission; S3:每个分布式光伏节点均与其他分布式光伏节点按照步骤S1-S2完成数据传输。S3: Each distributed photovoltaic node completes data transmission with other distributed photovoltaic nodes according to steps S1-S2. 2.根据权利要求1所述的一种分布式光伏数据互传补全传输方法,其特征在于:2. A distributed photovoltaic data mutual transmission and complementary transmission method according to claim 1, characterized in that: 步骤S3后进行以下步骤:After step S3, the following steps are performed: S4:随机选择部分分布式光伏节点向中继网关发送数据信息,之后由中继网关将数据上传至云平台。S4: Randomly select some distributed photovoltaic nodes to send data information to the relay gateway, and then the relay gateway uploads the data to the cloud platform. 3.根据权利要求1所述的一种分布式光伏数据互传补全传输方法,其特征在于:3. A distributed photovoltaic data mutual transmission and complementary transmission method according to claim 1, characterized in that: 所述数据传输连接通过两次握手一次挥手建立。The data transmission connection is established through two handshakes and one wave. 4.根据权利要求1所述的一种分布式光伏数据互传补全传输方法,其特征在于:4. A distributed photovoltaic data mutual transmission and complementary transmission method according to claim 1, characterized in that: 所述互传补全控制字段包括标志位层、序列号层、滑动窗口层以及数据包层。The mutual completion control field includes a flag bit layer, a sequence number layer, a sliding window layer and a data packet layer. 5.根据权利要求4所述的一种分布式光伏数据互传补全传输方法,其特征在于:5. A distributed photovoltaic data mutual transmission and complementary transmission method according to claim 4, characterized in that: 所述标志位层包括连接状态标志位、传输状态标志位、断点与重传标志位、发送次数标志位、接收确认标志位、时间标志位、发送/接收标志位以及传输轮完成标志位。The flag bit layer includes a connection status flag, a transmission status flag, a breakpoint and retransmission flag, a sending times flag, a reception confirmation flag, a time flag, a send/receive flag, and a transmission round completion flag. 6.根据权利要求5所述的一种分布式光伏数据互传补全传输方法,其特征在于:6. A distributed photovoltaic data mutual transmission and complementary transmission method according to claim 5, characterized in that: 所述互传补全控制字段的格式为:The format of the mutual completion control field is: 第一层为所述标志位层,第一层的32位是:The first layer is the flag bit layer, and the 32 bits of the first layer are: 第一字符1位的标志位T0,表示连接状态,T0为0时没有连接;T0为连接状态标志位;The flag bit T0 of the first character 1 bit indicates the connection status. When T0 is 0, there is no connection; T0 is the connection status flag bit; 第二字符1位的标志位T1和第三字符1位的标志位T2,表示传输状态,T0为1且T1为0时代表进行传输,T2为1时表示传输结束;T1和T2为传输状态标志位;The flag bit T1 of the second character 1 bit and the flag bit T2 of the third character 1 bit indicate the transmission status. When T0 is 1 and T1 is 0, it means that the transmission is in progress, and when T2 is 1, it means that the transmission is over; T1 and T2 are the transmission status flag; 第四字符1位的标志位T3,表示断点续传状态;The flag bit T3 of the 1st bit of the fourth character indicates the state of resuming transmission from breakpoints; 第五和第六字符分别为1位的标志位T4、T5,表示断点位置,T3为1时T4、T5记录断点位置;The fifth and sixth characters are 1-bit flags T4 and T5 respectively, indicating the breakpoint position. When T3 is 1, T4 and T5 record the breakpoint position; 第七字符1位的标志位T6,表示重传状态,T6为1时重新传输数据;The flag bit T6 of the 1st bit of the seventh character indicates the retransmission status, and the data is retransmitted when T6 is 1; T3-T6为断点与重传标志位;T3-T6 are breakpoint and retransmission flags; 第八字符1位的标志位T7,用于表示当前数据的发送次数;T7为发送次数标志位;The flag bit T7 of the eighth character 1 is used to indicate the number of times the current data is sent; T7 is the flag bit for the number of times sent; 第九字符1位的标志位T8,T8为1则表示收到接收方确认;The flag bit T8 of the 1st bit of the ninth character, if T8 is 1, it means that the receiver's confirmation is received; 第十字符1位的标志位T9,T9为1时表示完成发送但还未收到接收方确认;T8和T9为接收确认标志位;The flag bit T9 of the tenth character 1, when T9 is 1, it means that the sending is completed but the receiver has not received confirmation; T8 and T9 are the receiving confirmation flags; 第十一和十二字符分别为1位的标志位T10、T11,表示时间标志;T10和T11为时间标志位;The eleventh and twelfth characters are respectively 1 flag bits T10, T11, which represent a time flag; T10 and T11 are time flag bits; 第十三字符1位的标志位T12,T12为1则是发送端,为0则是接收端;T12为发送/接收标志位;The flag bit T12 of the thirteenth character 1 bit, T12 is 1 is the sending end, and 0 is the receiving end; T12 is the sending/receiving flag bit; 第十四位1位的标志位T13,T13为1表示已完成一轮数据传输;T13为传输轮完成标志位;The flag bit T13 of the fourteenth bit is 1, and T13 is 1 to indicate that a round of data transmission has been completed; T13 is the flag bit for the completion of the transmission round; 其余位为保留位,表示目前已经收到数据的用户信息;The remaining bits are reserved bits, indicating the user information that has received data; 序列号层包括第二层与第三层;The serial number layer includes the second layer and the third layer; 第二层为36位的序列号:标记发送数据包的电气参数与环境参数信息顺序,标记数据包含的用户,接收方与之比对补全数据与更新标志位;The second layer is a 36-bit serial number: mark the order of the electrical parameters and environmental parameter information of the sent data packet, mark the user included in the data, and the receiver compares with it to complete the data and update the flag; 第三层为16位的序号,标记断点续传或需要重新传输的数据包序号;The third layer is a 16-bit sequence number, which marks the sequence number of the data packet that needs to be retransmitted or resumed after the breakpoint; 第四层为滑动窗口层,第四层为32位滑动窗口,根据发送或接收的转换控制数据的发送与接收;The fourth layer is the sliding window layer, and the fourth layer is a 32-bit sliding window, which controls the sending and receiving of data according to the conversion of sending or receiving; 第五层为数据包层,发送所有电气参数、环境参数数据。The fifth layer is the data packet layer, which sends all electrical parameters and environmental parameter data. 7.一种分布式光伏数据互传补全传输系统,用于实现权利要求1-6中任一权利要求所述的一种分布式光伏数据互传补全传输方法,其特征在于:包括主站层、通信层和终端层。7. A distributed photovoltaic data mutual transmission and complementary transmission system, which is used to realize a distributed photovoltaic data mutual transmission and complementary transmission method according to any one of claims 1-6, characterized in that it includes a main Station layer, communication layer and terminal layer. 8.根据权利要求1所述的一种分布式光伏数据互传补全传输系统,其特征在于:8. A distributed photovoltaic data mutual transmission complementary transmission system according to claim 1, characterized in that: 所述终端层包括数据采集模块、数据处理模块、数据存储模块以及数据传输模块。The terminal layer includes a data acquisition module, a data processing module, a data storage module and a data transmission module.
CN202211669927.5A 2022-12-25 2022-12-25 A Distributed Photovoltaic Data Mutual Transmission Complementary Transmission Method and System Pending CN115988003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211669927.5A CN115988003A (en) 2022-12-25 2022-12-25 A Distributed Photovoltaic Data Mutual Transmission Complementary Transmission Method and System

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211669927.5A CN115988003A (en) 2022-12-25 2022-12-25 A Distributed Photovoltaic Data Mutual Transmission Complementary Transmission Method and System

Publications (1)

Publication Number Publication Date
CN115988003A true CN115988003A (en) 2023-04-18

Family

ID=85964298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211669927.5A Pending CN115988003A (en) 2022-12-25 2022-12-25 A Distributed Photovoltaic Data Mutual Transmission Complementary Transmission Method and System

Country Status (1)

Country Link
CN (1) CN115988003A (en)

Similar Documents

Publication Publication Date Title
WO2012152082A1 (en) Data acquisition concentrator and data acquisition method
CN104796415B (en) A kind of conversion method between multi-protocols and TCP procotols in RS485 buses
CN112398946A (en) Source network load storage scheduling control system and configuration method
CN103812724A (en) Communication management device for transformer substation online monitoring system
CN108650111A (en) Information security electric power semi-physical emulation platform building method and system
CN114448094A (en) A data sharing system based on edge computing of intelligent service terminals in Taiwan area
CN112133074A (en) Data acquisition method, equipment, server and system of multiple metering sensors
CN108417004A (en) A dual-channel-based multi-type meter data centralized acquisition system and method
CN107809475A (en) A kind of multi-source information exchange method of energy internet physical message system
CN103578251A (en) Micropower wireless networking method based on flooding
CN106921660A (en) A kind of method for supporting random communication protocol shared channel resources
CN103715771B (en) Auto generation coordination control platform
CN202798802U (en) Apparatus used for obtaining and transmitting data of offshore blower fan control system
CN111667685A (en) A bypass data monitoring system based on power carrier
CN111917182A (en) Method and system for directly transmitting data of double main stations of low-voltage distribution network
CN104468703A (en) Communication method and system for distributed small power source and upper computer
CN103023895B (en) The data transfer device of Zigbee protocol and GOOSE agreement during a kind of small power station IED nets
CN104579424A (en) Power carrier communication method
Yongyong et al. Design of data acquisition system of electric meter based on ZigBee Wireless Technology
CN103428677B (en) The sending method and signaling channel of grouping busihess data send the method for reseptance of information
CN212727292U (en) Quasi-real-time data acquisition system adaptive to competitive power market
CN115988003A (en) A Distributed Photovoltaic Data Mutual Transmission Complementary Transmission Method and System
CN104300681B (en) A kind of station level device node state monitoring method of intelligent substation
CN111413902A (en) Bridge monitoring communication method and acquisition system based on Can bus
CN204013610U (en) Photovoltaic plant data processing transmission system

Legal Events

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