File transmission method and system based on power distribution automation

文档序号:1478680 发布日期:2020-02-25 浏览:4次 中文

阅读说明:本技术 一种基于配电自动化的文件传输方法及系统 (File transmission method and system based on power distribution automation ) 是由 胡期红 许光 张亚锋 于 2019-10-22 设计创作,主要内容包括:本发明公开了一种基于配电自动化的文件传输方法及系统,用于实现:第一收发区将待发送文件复制到隔离区,通过隔离区将接收到的待发送文件通过通信协议发送给第二收发区;第二收发区在接收到待发送文件后,通过隔离区向第一收发区发送接收回执,第一收发区在收到由隔离区发送的所述接收回执后,确认文件传输完成,结束操作。本发明的有益效果为:有效解决正反向隔离传输文件丢失的问题,同时及时反馈传输结果,为操作人员提供有效及时的信息,有利于电力系统的正常运作。(The invention discloses a file transmission method and a file transmission system based on power distribution automation, which are used for realizing the following steps: the first transceiving area copies the file to be transmitted to an isolation area, and transmits the received file to be transmitted to the second transceiving area through a communication protocol through the isolation area; and after receiving the receipt sent by the isolation area, the first transceiving area confirms that the file transmission is finished, and the operation is finished. The invention has the beneficial effects that: the problem that files are lost in forward and reverse isolation transmission is effectively solved, and meanwhile, transmission results are fed back in time, so that effective and timely information is provided for operators, and normal operation of a power system is facilitated.)

1. A file transmission method based on distribution automation is characterized by comprising the following steps:

s100, copying a file to be transmitted to an isolation area by a first transceiving area;

s200, the isolation area sends the received file to be sent to a second transceiving area through a communication protocol;

s300, after receiving the file to be sent, the second transceiving area sends a receiving receipt to the isolation area;

s400, after the first transceiving area receives the receipt sent by the isolation area, the first transceiving area confirms that the file transmission is finished, and the operation is finished.

2. The power distribution automation-based file transfer method according to claim 1, wherein the S100 further comprises:

s110, copying the file to be transmitted to an isolation area by the first transceiving area for preparation for transmission;

and S120, backing up the file to be sent to a backup area.

3. The power distribution automation-based file transfer method according to claim 2, wherein the S400 further comprises:

after receiving the receipt sent by the isolation area, the first transceiving area sends a backup file deleting instruction to the backup area;

and after receiving the command of deleting the backup files, the backup area deletes the backed-up files to be sent.

4. The power distribution automation-based file transfer method according to claim 2, wherein the S400 further comprises:

the open communication interface receives the receipt returned by the second transceiving area within the designated time, wherein the designated time can be customized;

and when the receiving receipt is not received within the appointed time, closing the communication interface and sending timeout information to the first transceiving area.

5. The power distribution automation-based file transfer method of claim 4, further comprising the steps of:

after the overtime information is sent to the first transceiving area, the overtime times are accumulated;

and judging whether the overtime times are larger than a threshold value, if so, returning to execute the step S100, otherwise, deleting the file to be sent in the backup area, prompting that the file is abnormally transmitted, and ending the operation, wherein the threshold value can be defined by users.

6. The power distribution automation-based file transfer method according to claim 1, wherein the S200 further comprises:

s210, the isolation area generates a corresponding check code according to the received file to be sent;

s220, the file to be sent and the corresponding check code are sent to the second transceiving area through a communication protocol.

7. The power distribution automation-based file transfer method according to claim 6, wherein the S300 further comprises:

s310, the second transceiving area receives the file to be sent and the corresponding check code sent by the first transceiving area;

s320, verifying the integrity of the file to be transmitted according to the corresponding check code, if the verification is complete, transmitting the receiving receipt to the isolation area, otherwise, not executing operation.

8. The power distribution automation-based file transfer method of claim 1 wherein the communication protocol is a transmission control protocol.

9. A file transfer system based on distribution automation, characterized by comprising:

the first transceiver module is used for transmitting a file to be transmitted to the second transceiver module or receiving the file to be transmitted from the second module through the isolation module;

the isolation module is used for transmitting files, receipt and messages between the first transceiver module and the second transceiver module;

and the second transceiver module is used for transmitting the file to be transmitted to the first transceiver module or receiving the file to be transmitted from the first transceiver module through the isolation module.

10. The power distribution automation-based file transfer system of claim 9 wherein the isolation module further comprises:

the backup unit is used for backing up the file to be sent to a backup area;

the instruction generating unit is used for sending an instruction for deleting the backup file to the backup area and sending timeout information to the corresponding transceiving area;

the accumulation unit is used for accumulating the times of not receiving the receipt in the specified time, wherein the specified time can be defined by a user;

and the overtime judging unit is used for judging overtime according to the output result of the accumulating unit and sending the judgment result to the instruction generating unit.

Technical Field

The invention relates to the field of power distribution system communication, in particular to a file transmission method and system based on power distribution automation.

Background

The distribution automation system has a concept of partition, which is divided into a first partition and a fourth partition, servers of different partitions can not directly communicate and must rely on forward and reverse isolation, the first partition transmits data to the fourth partition through the forward isolation, the fourth partition transmits data to the first partition through the reverse isolation, the reverse isolation is a unidirectional file transmission device, files in an appointed directory of the server of the fourth partition are transmitted to an appointed directory of the server of the first partition, the files cannot be transmitted in the reverse direction, the forward isolation is a unidirectional data transmission device, an application program in the server of the first partition establishes connection with the server of the fourth partition through the forward isolation and transmits data, and in the distribution automation system, data transmitted between the first partition and the fourth partition are critical and are not lost.

The existing transmission means can not know whether the file reaches the destination or not when the file is transmitted in a reverse isolation mode, and no remedial measure is provided once the file is lost.

Disclosure of Invention

In order to solve at least one of the technical problems in the prior art, the present invention provides a file transmission method and system based on power distribution automation, including a first transceiving region copying a file to be transmitted to an isolation region, and transmitting the received file to be transmitted to a second transceiving region through a communication protocol via the isolation region; and after receiving the receipt sent by the isolation area, the first transceiving area confirms that the file transmission is finished, and the operation is finished. The method is used for solving the problems of low file transmission reliability and no feedback of the power distribution automation system at the present stage.

The first aspect of the technical scheme adopted by the invention to solve the problems is as follows: a file transmission method based on distribution automation is characterized by comprising the following steps: s100, copying a file to be transmitted to an isolation area by a first transceiving area; s200, the isolation area sends the received file to be sent to a second transceiving area through a communication protocol; s300, after receiving the file to be sent, the second transceiving area sends a receiving receipt to the isolation area; s400, after the first transceiving area receives the receipt sent by the isolation area, the first transceiving area confirms that the file transmission is finished, and the operation is finished.

Has the advantages that: the problem that files are lost in forward and reverse isolation transmission is effectively solved, and meanwhile, transmission results are fed back in time, so that effective and timely information is provided for operators, and normal operation of a power system is facilitated.

According to the first aspect of the present invention, S100 further comprises: s110, copying the file to be transmitted to an isolation area by the first transceiving area for preparation for transmission; and S120, backing up the file to be sent to a backup area.

According to the first aspect of the present invention, S400 further comprises: after receiving the receipt sent by the isolation area, the first transceiving area sends a backup file deleting instruction to the backup area; and after receiving the command of deleting the backup files, the backup area deletes the backed-up files to be sent.

According to the first aspect of the present invention, S400 further comprises: the open communication interface receives the receipt returned by the second transceiving area within the designated time, wherein the designated time can be customized; and when the receiving receipt is not received within the appointed time, closing the communication interface and sending timeout information to the first transceiving area.

The file transfer method based on distribution automation according to the first aspect of the present invention further includes the steps of:

after the overtime information is sent to the first transceiving area, the overtime times are accumulated;

and judging whether the overtime times are larger than a threshold value, if so, returning to execute the step S100, otherwise, deleting the file to be sent in the backup area, prompting that the file is abnormally transmitted, and ending the operation, wherein the threshold value can be defined by users.

According to the first aspect of the present invention, S200 further comprises: s210, the isolation area generates a corresponding check code according to the received file to be sent; s220, the file to be sent and the corresponding check code are sent to the second transceiving area through a communication protocol.

According to the first aspect of the present invention, S300 further comprises: s310, the second transceiving area receives the file to be sent and the corresponding check code sent by the first transceiving area; s320, verifying the integrity of the file to be transmitted according to the corresponding check code, if the verification is complete, transmitting the receiving receipt to the isolation area, otherwise, not executing operation.

According to a first aspect of the invention, the communication protocol is a transmission control protocol.

The second aspect of the technical scheme adopted by the invention to solve the problems is as follows: a file transfer system based on distribution automation, characterized by comprising: the first transceiver module is used for transmitting a file to be transmitted to the second transceiver module or receiving the file to be transmitted from the second module through the isolation module; the isolation module is used for transmitting files, receipt and messages between the first transceiver module and the second transceiver module; and the second transceiver module is used for transmitting the file to be transmitted to the first transceiver module or receiving the file to be transmitted from the first transceiver module through the isolation module.

Has the advantages that: the problem that files are lost in forward and reverse isolation transmission is effectively solved, and meanwhile, transmission results are fed back in time, so that effective and timely information is provided for operators, and normal operation of a power system is facilitated.

According to a second aspect of the invention, the isolation module further comprises: the backup unit is used for backing up the file to be sent to a backup area; the instruction generating unit is used for sending an instruction for deleting the backup file to the backup area and sending timeout information to the corresponding transceiving area; the accumulation unit is used for accumulating the times of not receiving the receipt in the specified time, wherein the specified time can be defined by a user; and the overtime judging unit is used for judging overtime according to the output result of the accumulating unit and sending the judgment result to the instruction generating unit.

Drawings

FIG. 1 is a schematic flow diagram of a method according to a preferred embodiment of the present invention;

FIG. 2 is a schematic diagram of a system architecture according to a preferred embodiment of the present invention;

fig. 3 is a schematic diagram of a first preferred embodiment of the present invention.

Detailed Description

The conception, the specific structure and the technical effects of the present invention will be clearly and completely described in conjunction with the embodiments and the accompanying drawings to fully understand the objects, the schemes and the effects of the present invention.

It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly fixed or connected to the other feature or indirectly fixed or connected to the other feature. Furthermore, the descriptions of upper, lower, left, right, etc. used in the present disclosure are only relative to the mutual positional relationship of the constituent parts of the present disclosure in the drawings. As used in this disclosure, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Furthermore, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any combination of one or more of the associated listed items.

It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element of the same type from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language ("e.g.," such as "or the like") provided herein, is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed.

Referring to fig. 1, there is a schematic flow chart of a method according to a preferred embodiment of the present invention,

s100, copying a file to be transmitted to an isolation area by a first transceiving area;

s200, the isolation area sends the received file to be sent to a second transceiving area through a communication protocol;

s300, after receiving the file to be sent, the second transceiving area sends a receiving receipt to the isolation area;

s400, after the first transceiving area receives the receipt sent by the isolation area, the first transceiving area confirms that the file transmission is finished, and the operation is finished.

Referring to fig. 2, there is shown a schematic diagram of a system architecture according to a preferred embodiment of the present invention,

the method comprises the following steps: the first transceiver module is used for transmitting a file to be transmitted to the second transceiver module or receiving the file to be transmitted from the second module through the isolation module; the isolation module is used for transmitting files, receipt and messages between the first transceiver module and the second transceiver module; and the second transceiver module is used for transmitting the file to be transmitted to the first transceiver module or receiving the file to be transmitted from the first transceiver module through the isolation module.

According to a second aspect of the invention, the isolation module further comprises: the backup unit is used for backing up the file to be sent to a backup area; the instruction generating unit is used for sending an instruction for deleting the backup file to the backup area and sending timeout information to the corresponding transceiving area; the accumulation unit is used for accumulating the times of not receiving the receipt in the specified time, wherein the specified time can be defined by a user; and the overtime judging unit is used for judging overtime according to the output result of the accumulating unit and sending the judgment result to the instruction generating unit.

Referring to fig. 3, a schematic diagram of a first preferred embodiment of the present invention is shown,

copying a file to be transmitted to an isolation area by the first transceiving area;

backing up the file to be sent to a backup area

The isolation area sends the received file to be sent to a second transceiving area through a communication protocol;

after receiving the file to be sent, the second transceiving area sends a receiving receipt to the isolation area;

the isolation area receives the receipt returned by the second transceiver area by the open communication interface within the appointed time, and after receiving the corresponding receipt within the appointed time, the first transceiver area confirms that the file transmission is finished after receiving the receipt sent by the isolation area, and sends a command of deleting the backup file to the backup area; and after receiving the command of deleting the backup file, the backup area deletes the backed-up file to be sent and ends the operation.

And when the receiving receipt is not received within the specified time, closing the communication interface and sending the timeout information to the first transceiver zone.

After the overtime information is sent to the first transceiving area, the overtime times are accumulated;

and judging whether the overtime times are larger than a threshold value, if so, returning to execute the first step, otherwise, deleting the file to be sent in the backup area, prompting that the file is abnormally transmitted, and ending the operation, wherein the threshold value can be defined by users.

The concept of having partitions in a distribution automation system is divided into one and four zones. Servers of different partitions cannot communicate directly and must rely on forward and reverse isolation. One region transmits data to four regions through forward isolation, and four regions transmits data to one region through reverse isolation.

Reverse segregation is a unidirectional file transfer mechanism. And transmitting the files in the specified directory of the four-zone server to the specified directory of the one-zone server, and otherwise, not executing the files.

Forward isolation is a unidirectional data transfer device. And the application program in the first area server establishes a TCP connection with the four area server through forward isolation and transmits data.

In the distribution automation system, data transmitted between four areas is critical and is not lost.

The method is characterized in that file receiving confirmation is added between a four-zone file sender and a one-zone file receiver, a waiting and overtime retransmission mechanism is added for the four-zone file sender, and the basic steps are as follows:

1) and the four-area file sender copies the file to be sent to the reverse isolation sending directory, backups the file at the same time, and waits for the file receiving confirmation of one area.

2) When the file receiver in one area processes the file transmitted in the reverse isolation, the file receiving confirmation (including the file name) is transmitted to the four areas through the forward isolation.

3) And the four-zone file sender receives the file transmission confirmation, relieves the waiting, deletes the file backup and normally ends the file transmission.

4) And the four-zone file sender waits for overtime of file receiving confirmation, returns to the step 1 if the file receiving confirmation is overtime for the first time), deletes the file backup if the file receiving confirmation is not overtime for the first time, and abnormally ends the file transmission.

It should be recognized that embodiments of the present invention can be realized and implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer-readable storage medium configured with the computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, according to the methods and figures described in the detailed description. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.

Further, the operations of processes described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and/or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) collectively executed on one or more processors, by hardware, or combinations thereof. The computer program includes a plurality of instructions executable by one or more processors.

Further, the method may be implemented in any type of computing platform operatively connected to a suitable interface, including but not limited to a personal computer, mini computer, mainframe, workstation, networked or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and the like. Aspects of the invention may be embodied in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optically read and/or write storage medium, RAM, ROM, or the like, such that it may be read by a programmable computer, which when read by the storage medium or device, is operative to configure and operate the computer to perform the procedures described herein. Further, the machine-readable code, or portions thereof, may be transmitted over a wired or wireless network. The invention described herein includes these and other different types of non-transitory computer-readable storage media when such media include instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. The invention also includes the computer itself when programmed according to the methods and techniques described herein.

A computer program can be applied to input data to perform the functions described herein to transform the input data to generate output data that is stored to non-volatile memory. The output information may also be applied to one or more output devices, such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including particular visual depictions of physical and tangible objects produced on a display.

The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means. The invention is capable of other modifications and variations in its technical solution and/or its implementation, within the scope of protection of the invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种面向电力监控系统的网络安全威胁溯源方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类