CN113541865A - Configuration transmission method and device, electronic equipment and storage medium - Google Patents

Configuration transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113541865A
CN113541865A CN202110686283.XA CN202110686283A CN113541865A CN 113541865 A CN113541865 A CN 113541865A CN 202110686283 A CN202110686283 A CN 202110686283A CN 113541865 A CN113541865 A CN 113541865A
Authority
CN
China
Prior art keywords
data
controller
transmission
configuration object
slice
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
CN202110686283.XA
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.)
Zhejiang Supcon Technology Co Ltd
Original Assignee
Zhejiang Supcon Technology 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 Zhejiang Supcon Technology Co Ltd filed Critical Zhejiang Supcon Technology Co Ltd
Priority to CN202110686283.XA priority Critical patent/CN113541865A/en
Publication of CN113541865A publication Critical patent/CN113541865A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments

Abstract

The application relates to a configuration transmission method, a configuration transmission device, an electronic device and a storage medium, wherein the method comprises the following steps: splitting according to the current configuration object to obtain a plurality of data pieces; distributing each data slice of the current configuration object to each channel of the controller so as to enable each data slice to be transmitted to the corresponding controller in parallel through each channel; the controller includes a plurality of channels; when all the data pieces are transmitted, determining the receiving condition of the data pieces in the controller; and carrying out transmission control on the corresponding data sheet according to the receiving condition of the data sheet. By the method and the device, configuration data management in the transmission process is greatly reduced, and the speed and the efficiency of data transmission are improved.

Description

Configuration transmission method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of industrial automation control technologies, and in particular, to a method and an apparatus for configuration transmission, an electronic device, and a storage medium.
Background
The configuration engineering is an organization unit of industrial control configuration, and the configuration engineering is relatively independent. Generally, a configuration project corresponds to a local area of an industrial control site, such as a process, plant, or plant. The engineering configuration generally includes configuration data such as control strategy, system configuration, monitoring configuration, etc. Configuration transmission is to transmit configuration object data from a data source to a data terminal through one or more data links according to a certain rule, and the main function of the configuration transmission is to realize information transmission and exchange between points. A good data transmission mode can improve the real-time performance and reliability of data transmission. However, with the rapid development of information technology, the amount of transmitted data is increasing, and the networking of machines, systems and even individual sensors in internal and external applications of industrial control systems requires not only a stable infrastructure, but also a safe, fast, high-precision, interference-free, high-bandwidth transmission path.
In an industrial control system with a plurality of pairs of redundant controllers and a multi-channel redundant architecture, configuration contents are transmitted in series, the transmission process needs to be transmitted in sequence strictly according to a packet sequence, next transmission can be performed after the previous data packet is transmitted, the transmission process is long, and even overtime waiting, retransmission and large transmission delay are needed under the condition of poor network. And the verification can be carried out only after the transmission is finished, and the download is determined to be failed after the verification is failed, so that the remedy cannot be carried out, the transmission can be carried out only once again, and the efficiency is lower.
Disclosure of Invention
The embodiment of the application provides a configuration transmission method, a configuration transmission device, an electronic device and a storage medium, so as to at least solve the problem of low efficiency of a configuration transmission process in the related art.
In a first aspect, an embodiment of the present application provides a configuration transmission method, including:
splitting according to the current configuration object to obtain a plurality of data pieces;
distributing each data slice of the current configuration object to each channel of the controller so as to enable each data slice to be transmitted to the corresponding controller in parallel through each channel; the controller includes a plurality of channels;
when all the data pieces are transmitted, determining the receiving condition of the data pieces in the controller;
and carrying out transmission control on the corresponding data sheet according to the receiving condition of the data sheet.
In some embodiments, splitting the plurality of data slices according to the current configuration object includes:
and splitting the current configuration object into a plurality of data slices by taking the size of 1K-4K bytes as a unit.
In some embodiments, splitting the current configuration object to obtain a plurality of pieces of data includes:
acquiring a current configuration object and a preorder configuration object;
determining incremental content based on the current configuration object and the preamble configuration object;
and splitting the incremental content to obtain a plurality of data pieces.
In some embodiments, allocating each data slice of the current configuration object to each channel of the controller, so that each data slice is transmitted to the corresponding controller in parallel through each channel includes:
acquiring the number of channels of all controllers;
each data slice for controlling the current configuration object is sent to the corresponding controller in parallel through each channel; and the data pieces in each channel are transmitted out of order.
In some of these embodiments, determining the receiving condition of the data slice in the controller after all the data slices are transmitted includes:
acquiring first check information of a received data piece;
matching the first check information with second check information of a data slice corresponding to the controller locally;
and determining the receiving condition of the corresponding data sheet according to the matching result.
In some embodiments, the controlling the transmission of the corresponding data slice according to the receiving condition of the data slice includes:
acquiring the receiving condition of each data piece of the current configuration object;
and when the receiving condition of the data slice is failure, distributing the corresponding data slice to each channel of the controller and sending the data slice to the corresponding controller in parallel until the receiving is successful.
In some embodiments, after performing transmission control on a corresponding data slice according to a receiving condition of the data slice, the method further includes:
and carrying out inter-packet check on each data slice of the current configuration object.
In a second aspect, an embodiment of the present application provides a configuration transmission apparatus, including:
the data splitting unit is used for splitting the current configuration object to obtain a plurality of data slices;
the parallel transmission unit is used for distributing each data slice of the current configuration object to each channel of the controller so as to enable each data slice to be transmitted to the corresponding controller in parallel through each channel; the controller includes a plurality of channels;
a receiving condition determining unit, configured to determine a receiving condition of the data slice in the controller after all data slices are transmitted;
and the transmission control unit is used for carrying out transmission control on the corresponding data slice according to the receiving condition of the data slice.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the configuration transmission method according to the first aspect is implemented.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the configuration transmission method according to the first aspect.
Compared with the related art, the configuration transmission method provided by the embodiment of the application obtains the plurality of data pieces by splitting according to the current configuration object; distributing each data slice of the current configuration object to each channel of the controller so that each data slice is transmitted to the corresponding controller in parallel through each channel, thereby greatly reducing configuration data management in the transmission process and improving the speed and efficiency of data transmission; the transmission control of the corresponding data slice is carried out according to the receiving condition of the data slice, so that the integrity and the safety of configuration transmission are guaranteed.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flow chart illustrating a configuration transmission method according to an embodiment of the present application;
fig. 2 is a block flow diagram of a configuration transmission method according to another embodiment of the present application;
FIG. 3 is a flow chart of splitting several data slices according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of parallel transmission in one embodiment of the present application;
FIG. 5 is a flow chart illustrating a process for determining the receipt of a piece of data in a controller according to one embodiment of the present application;
fig. 6 is a flowchart illustrating a configuration transmission method according to another embodiment of the present application;
FIG. 7 is a block diagram of a configuration transmission device according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device in one embodiment of the present application.
Description of the drawings: 201. a data splitting unit; 202. a parallel transmission unit; 203. a reception situation determination unit; 204. a transmission control unit; 30. a bus; 31. a processor; 32. a memory; 33. a communication interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
In an industrial control system, a redundancy architecture design refers to a technology for automatically switching to standby software and hardware equipment when the software and hardware are in failure without influencing the running state of an original system. The redundancy is mainly embodied in the aspects of power supply redundancy, communication redundancy, control component redundancy (such as a controller and an I/O module) and the like, the stop operation of the equipment during operation failure can be reduced to the greatest extent, and the operation reliability of the equipment is improved.
The configuration software is general data acquisition and process monitoring software applied to industrial automation, and provides an integrated platform for development of process monitoring software of an automatic control system. The configuration software provides rich functions for the field of industrial automation monitoring, so that engineers can select and configure according to engineering requirements to construct own monitoring system, the configuration software is widely applied to various fields of machinery, automobiles, petroleum, chemical engineering, papermaking, water treatment, process control and the like, centralized monitoring on small-sized automation equipment can be completed, and monitoring on a large-scale distributed complex network can also be completed by a multi-computer system which is interconnected.
The configuration transmission method provided by the embodiment can be applied to an industrial control system with a multi-controller redundancy architecture design. Under the design of the redundant architecture of the controllers, when one controller fails, the controller can be automatically switched to the other controller, so that the acquisition, transmission and control of data are not influenced, and the accuracy and safety of the system in a fault state are ensured. In an industrial control system with a multi-redundancy controller and a multi-channel redundancy architecture, the safe and stable operation of the system is not separated from the operation and maintenance in the transmission process of configuration software.
The embodiment provides a configuration transmission method. Fig. 1 is a flowchart of a configuration transmission method according to an embodiment of the present application, and as shown in fig. 1, the flowchart includes the following steps:
step S101, a plurality of data pieces are obtained by splitting according to the current configuration object.
Considering that queuing is often needed when the current configuration objects are transmitted in sequence, if data cannot be transmitted, the whole transmission process takes a long time and even pauses. In this embodiment, the current configuration object is transmitted in the global transmission mode. Specifically, when the current configuration object is subjected to transmission operation, the current configuration object is split to obtain a plurality of data slices, and the data slices are subjected to fragment transmission. Optionally, data fragmentation may be performed according to the size of the configuration object, the channel load, and other conditions, and the size of each data fragment may be the same or different, which is not limited herein. The current configuration object may be configuration content to be transmitted in various states such as to-be-modified, to-be-compiled, to-be-downloaded, and the like.
Step S102, distributing each data slice of the current configuration object to each channel of the controller so as to enable each data slice to be transmitted to the corresponding controller in parallel through each channel; the controller includes a plurality of channels.
In this embodiment, the controller includes a plurality of channels and may be redundantly configured. The channel is a specific term of a system device with a multiple voting architecture, such as a functional safety control system, and is a basic processing unit of the multiple voting system architecture. Typically, one channel contains one CPU (core) and corresponding memory, each channel running control logic independently and working in parallel with the other channels. Generally, in a safety hybrid control system, each channel contains the same safety control application and a conventional control application, wherein the safety control application is output externally through a specific software and hardware voting mechanism, the conventional control application is generally output by a main channel, and the auxiliary channel is not output.
In the prior art, the transmission of configuration content is performed in order, and since each channel needs to be transmitted, the transmission of the next packet of data is performed only when the previous packet of data is successfully transmitted in all channels of the controller. Different from the prior art, in the embodiment, after the current configuration object is split to obtain the plurality of data pieces, each data piece of the current configuration object is distributed into each channel of the controller and is transmitted to the corresponding controller in parallel through each channel, each channel is independently transmitted and maintained in the transmission process without influencing each other, and the receiving condition of the data pieces is not verified before all data pieces are transmitted, so that the configuration data management in the transmission process is reduced, and the transmission efficiency is improved.
Step S103, after all the data pieces are transmitted, determining the receiving condition of the data pieces in the controller.
In this embodiment, the correctness of the controller reception is not checked during the transmission, and the retransmission is not performed even if the time is out, the packet is lost or the data is damaged. And after all the data pieces are transmitted, determining the receiving condition of the data pieces in the controller. Specifically, the receiving condition of the corresponding data slice can be determined through data packet verification. Optionally, the check method may be parity check, CRC check, LRC check, gray code check, sum check, xor check, and the like, which is not limited in this application.
And step S104, carrying out transmission control of the corresponding data slice according to the receiving condition of the data slice.
Specifically, the transmission state management is performed on the data slice, and the receiving condition of the data slice can be divided into four states: initial, transmitted, failed, pass. The initial state refers to a default state when the data slice is ready and is not transmitted; the transmitted state refers to a state in which the reception condition is not checked after the transmission is completed, that is, the transmitted state is identified no matter whether the controller successfully receives or not after the transmission is completed; the pass status is a status that the data slice verification is successfully received; the failure status is a status that the data piece check fails to be successfully received.
In this embodiment, the receiving condition of each data slice of the current configuration object is obtained, and transmission control of the corresponding data slice is performed according to the receiving condition of the data slice. Specifically, data reception is performed on a data slice in an initial state; judging the receiving condition of the data sheet in the transmitted state; when the receiving condition of the data slice is a failure state, distributing the corresponding data slice into each channel of the controller and sending the data slice to the corresponding controller for secondary transmission, and circulating until the transmission state is a passing state, judging that the receiving is successful; when the data piece is transmitted and the check fails for a plurality of times and the preset times are accumulated, the transmission failure can be determined. Generally, the network condition is not very poor, and the success rate of sending and receiving is high. Through the mechanism, the configuration transmission efficiency can be greatly improved, and the data transmission speed is accelerated.
As shown in fig. 2, it should be noted that, in this embodiment, after all the data pieces are transmitted, the verification process for the controller data piece receiving condition and the data piece transmission control process in step S103 and step S104 may be performed in parallel, and only the download status management is used for interaction, so that mutual waiting and interference are avoided.
In summary, according to the configuration transmission method provided in the embodiment of the present application, a plurality of data pieces are obtained by splitting according to a current configuration object; distributing each data slice of the current configuration object to each channel of the controller so that each data slice is transmitted to the corresponding controller in parallel through each channel, thereby greatly reducing configuration data management in the transmission process and improving the speed and efficiency of data transmission; the transmission control of the corresponding data slice is carried out according to the receiving condition of the data slice, so that the integrity and the safety of configuration transmission are guaranteed.
The embodiments of the present application are described and illustrated below by means of preferred embodiments.
On the basis of the foregoing embodiments, in some embodiments, splitting the current configuration object into a plurality of pieces of data includes: and splitting the current configuration object into a plurality of data slices by taking the size of 1K-4K bytes as a unit. In this embodiment, when the data slice is larger than 4K bytes, the network delay is increased, and the transmission efficiency is reduced; when the data slice is smaller than 1K bytes, the configuration content is divided into too fine sections, and packet loss and damage are easy to occur. When the current configuration object is split by taking the size of 1K-4K bytes as a unit, the data transmission efficiency is better.
As shown in fig. 3, based on the above embodiments, in some embodiments, the splitting according to the current configuration object to obtain a plurality of data slices includes:
step S1011, obtaining a current configuration object and a preamble configuration object;
step S1012, determining an incremental content based on the current configuration object and the preamble configuration object;
and S1013, splitting the incremental content to obtain a plurality of data pieces.
Specifically, the data transmission can be performed on the current configuration object by adopting an integral transmission mode; in this embodiment, data incremental transmission may also be performed based on the preamble data version of the current configuration object, i.e., the preamble configuration object. Specifically, before configuration transmission, the incremental content may be determined according to the current configuration object and the preamble configuration object, and then the incremental content is split to obtain a plurality of data pieces for transmission. That is, only the configuration portion that has not been transmitted is transmitted, and the configuration portion that has been transmitted is not transmitted.
For example, in some embodiments, the current configuration object may be divided into a plurality of configuration portions, each configuration portion being independent of the other and configured with a corresponding version number. When the configuration content is transmitted, the corresponding version serial number is updated. Before configuration transmission, according to the version serial numbers of each configuration part in the current configuration object and the preamble configuration object, the configuration part corresponding to the version serial number updating part can be determined, and the configuration part is determined as the increment content to divide the data slice. It is understood that, in other embodiments, determining the delta content based on the current configuration object and the preamble configuration object may also adopt other alternative embodiments, which is not limited in this application.
As shown in fig. 4, based on the above embodiments, in some embodiments, allocating each data slice of the current configuration object to each channel of the controller so that each data slice is transmitted to the corresponding controller in parallel through each channel includes:
step S1021, acquiring the channel number of all controllers;
step S1022, controlling each data slice of the current configuration object to be sent to the corresponding controller in parallel through each channel; and the data pieces in each channel are transmitted out of order.
In this embodiment, after the current configuration object is split into a plurality of data slices, a plurality of transmission queues are obtained. Furthermore, each transmission queue is subdivided into a plurality of channel queues according to the number of channels of all the controllers, and the channel queues are mutually opposite and transmit configuration to the corresponding channels in parallel. The different data slices in each channel are transmitted to the corresponding controllers in parallel, independent transmission maintenance is not carried out on each channel queue in the transmission process, the receiving condition of the data slices is not checked before the transmission of all the data slices is finished, and the data transmission rate is ensured.
As shown in fig. 5, on the basis of the above embodiments, in some of the embodiments, when all the data pieces are completely transmitted, determining the receiving condition of the data pieces in the controller includes:
step S1031, acquiring first verification information of the received data slice;
step S1032, matching the first check information with second check information of a local corresponding data slice of the controller;
step S1033, determining a receiving condition of the corresponding data piece according to the matching result.
In this embodiment, the current configuration object is split to obtain a plurality of data slices, and first check information is added before the data slices are packed and transmitted. After the controller receives the data slice, acquiring the receiving condition of the data slice, and acquiring first check information of the data slice and writing the first check information into the data slice with the receiving condition of the data slice being initial or failed as transmitted; and judging whether the first check information in the data packet is consistent with the second check information of the local corresponding data piece of the controller or not for the data piece of which the receiving condition is transmitted, further determining the receiving condition of the corresponding data piece, and updating the transmission state of the corresponding data piece. And when the first check information is not matched with the second check information, the receiving condition of the corresponding data slice is passed, and when the receiving condition of the corresponding data slice is failed, the receiving condition of the transmitted data slice is continuously checked. The first check information and the second check information may be check codes obtained by performing check calculation on the data slice based on a preset check algorithm. For example, the preset verification Algorithm may be an MD5 Message Digest Algorithm (MD5 Message-Digest Algorithm), and each piece of data obtained by splitting the current configuration object may be calculated to generate a unique MD5 value, and is not easily tampered, so that the verification accuracy is improved.
As shown in fig. 6, on the basis of the above embodiments, in some embodiments, after performing transmission control on a corresponding data slice according to a receiving condition of the data slice, the method further includes:
step S105, performing inter-packet check on each data slice of the current configuration object.
Illustratively, after a current configuration object is split into a plurality of data pieces, at least first check information, inter-packet check information, data packet length information and the like need to be added when the data pieces are packed, after each data piece is sent, a controller terminal analyzes the data pieces to obtain each data piece, inter-packet check is performed on each data piece of the current configuration object, disorder is avoided, and meanwhile, each received data piece is packed to form a complete data packet.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The present embodiment further provides a configuration transmission apparatus, which is used to implement the foregoing embodiments and preferred embodiments, and the description of the configuration transmission apparatus is omitted here. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of a configuration transmission device according to an embodiment of the present application, and as shown in fig. 7, the configuration transmission device includes: a data splitting unit 201, a parallel transmission unit 202, a reception situation determination unit 203, and a transmission control unit 204.
The data splitting unit 201 is configured to split the current configuration object to obtain a plurality of data slices;
a parallel transmission unit 202, configured to allocate each data slice of the current configuration object to each channel of the controller, so that each data slice is transmitted to the corresponding controller through each channel in parallel; the controller includes a plurality of channels;
a receiving condition determining unit 203, configured to determine a receiving condition of the data slice in the controller after all data slices are transmitted;
a transmission control unit 204, configured to perform transmission control on the corresponding data slice according to the receiving condition of the data slice.
In some of these embodiments, the data splitting unit 201 includes: a first splitting module.
The first splitting module is used for splitting the current configuration object into a plurality of data slices by taking the size of 1K-4K bytes as a unit.
In some of these embodiments, the data splitting unit 201 includes: the device comprises a configuration object acquisition module, an incremental content determination module and a second splitting module.
A configuration object obtaining module for obtaining a current configuration object and a preorder configuration object;
the increment content determining module is used for determining increment content based on the current configuration object and the preamble configuration object;
and the second splitting module is used for splitting the incremental content to obtain a plurality of data pieces.
In some of these embodiments, the parallel transmission unit 202 includes: the device comprises a channel number acquisition module and a sending module.
The channel number acquisition module is used for acquiring the channel number of all the controllers;
the sending module is used for controlling each data sheet of the current configuration object to be sent to the corresponding controller in parallel through each channel; and the data pieces in each channel are transmitted out of order.
In some of these embodiments, the receiving situation determining unit 203 comprises: the device comprises a first check information acquisition module, a matching module and a receiving condition determination module.
The first check information acquisition module is used for acquiring the first check information of the received data piece;
the matching module is used for matching the first check information with second check information of a local corresponding data piece of the controller;
and the receiving condition determining module is used for determining the receiving condition of the corresponding data sheet according to the matching result.
In some of these embodiments, the transmission control unit 204 includes: a receiving condition obtaining module and a retransmission module.
A receiving condition obtaining module, configured to obtain a receiving condition of each data slice of the current configuration object;
and the retransmission module is used for distributing the corresponding data slices to each channel of the controller and sending the data slices to the corresponding controller in parallel when the receiving condition of the data slices is failure until the receiving is successful.
In some embodiments, the configuration transmitting device further comprises: and a verification unit.
And the checking unit is used for performing inter-packet checking on each data slice of the current configuration object.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
In addition, the configuration transmission method described in the embodiment of the present application with reference to fig. 1 may be implemented by an electronic device. Fig. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
The electronic device may comprise a processor 31 and a memory 32 in which computer program instructions are stored.
Specifically, the processor 31 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 32 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 32 may include a Hard Disk Drive (Hard Disk Drive, abbreviated to HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 32 may include removable or non-removable (or fixed) media, where appropriate. The memory 32 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 32 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, Memory 32 includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), Electrically rewritable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
The memory 32 may be used to store or cache various data files that need to be processed and/or used for communication, as well as possible computer program instructions executed by the processor 31.
The processor 31 may implement any of the configuration transmission methods in the above embodiments by reading and executing computer program instructions stored in the memory 32.
In some of these embodiments, the electronic device may also include a communication interface 33 and a bus 30. As shown in fig. 8, the processor 31, the memory 32, and the communication interface 33 are connected via the bus 30 to complete mutual communication.
The communication interface 33 is used for implementing communication between modules, devices, units and/or equipment in the embodiment of the present application. The communication interface 33 may also enable communication with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
The bus 30 includes hardware, software, or both that couple the components of the electronic device to one another. Bus 30 includes, but is not limited to, at least one of the following: data Bus (Data Bus), Address Bus (Address Bus), Control Bus (Control Bus), Expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example, and not limitation, Bus 30 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (Front Side Bus), an FSB (FSB), a Hyper Transport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a Video Electronics Bus (audio Association) Bus, abbreviated VLB) bus or other suitable bus or a combination of two or more of these. Bus 30 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The electronic device may execute the configuration transmission method in the embodiment of the present application based on the obtained program instruction, thereby implementing the configuration transmission method described in conjunction with fig. 8.
In addition, in combination with the configuration transmission method in the above embodiments, the embodiments of the present application may provide a computer-readable storage medium to implement the method. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the configuration transmission methods of the embodiments described above.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for configuration transmission, comprising:
splitting according to the current configuration object to obtain a plurality of data pieces;
distributing each data slice of the current configuration object to each channel of the controller so as to enable each data slice to be transmitted to the corresponding controller in parallel through each channel; the controller includes a plurality of channels;
when all the data pieces are transmitted, determining the receiving condition of the data pieces in the controller;
and carrying out transmission control on the corresponding data sheet according to the receiving condition of the data sheet.
2. The method of claim 1, wherein the splitting of the plurality of data slices according to the current configuration object comprises:
and splitting the current configuration object into a plurality of data slices by taking the size of 1K-4K bytes as a unit.
3. The method of claim 1, wherein the splitting of the current configuration object into the plurality of data slices comprises:
acquiring a current configuration object and a preorder configuration object;
determining incremental content based on the current configuration object and the preamble configuration object;
and splitting the incremental content to obtain a plurality of data pieces.
4. The method of claim 1, wherein the allocating each data slice of the current configuration object to each channel of the controller so that each data slice is transmitted to the corresponding controller in parallel via each channel comprises:
acquiring the number of channels of all controllers;
each data slice for controlling the current configuration object is sent to the corresponding controller in parallel through each channel; and the data pieces in each channel are transmitted out of order.
5. The method of claim 1, wherein determining the receiving status of the data slice in the controller after all data slices have been transmitted comprises:
acquiring first check information of a received data piece;
matching the first check information with second check information of a data slice corresponding to the controller locally;
and determining the receiving condition of the corresponding data sheet according to the matching result.
6. The method of claim 1, wherein controlling the transmission of the corresponding slice according to the reception of the slice comprises:
acquiring the receiving condition of each data piece of the current configuration object;
and when the receiving condition of the data slice is failure, distributing the corresponding data slice to each channel of the controller and sending the data slice to the corresponding controller in parallel until the receiving is successful.
7. The method of claim 1, further comprising, after controlling transmission of the corresponding slice according to the receiving status of the slice:
and carrying out inter-packet check on each data slice of the current configuration object.
8. A configuration transmission apparatus, comprising:
the data splitting unit is used for splitting the current configuration object to obtain a plurality of data slices;
the parallel transmission unit is used for distributing each data slice of the current configuration object to each channel of the controller so as to enable each data slice to be transmitted to the corresponding controller in parallel through each channel; the controller includes a plurality of channels;
a receiving condition determining unit, configured to determine a receiving condition of the data slice in the controller after all data slices are transmitted;
and the transmission control unit is used for carrying out transmission control on the corresponding data slice according to the receiving condition of the data slice.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the configuration transmission method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the configuration transmission method according to any one of claims 1 to 7.
CN202110686283.XA 2021-06-21 2021-06-21 Configuration transmission method and device, electronic equipment and storage medium Pending CN113541865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110686283.XA CN113541865A (en) 2021-06-21 2021-06-21 Configuration transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110686283.XA CN113541865A (en) 2021-06-21 2021-06-21 Configuration transmission method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113541865A true CN113541865A (en) 2021-10-22

Family

ID=78125504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110686283.XA Pending CN113541865A (en) 2021-06-21 2021-06-21 Configuration transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113541865A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116743779A (en) * 2023-08-11 2023-09-12 之江实验室 Configuration data synchronous updating method and device and endogenous safety industrial controller

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188622A (en) * 2007-12-29 2008-05-28 腾讯科技(深圳)有限公司 A method and device for downloading file by using P2P living broadcast channel
CN101321336A (en) * 2007-06-06 2008-12-10 凤凰微电子(中国)有限公司 High-capacity data interchange method between mobile terminal and smart card
CN102790659A (en) * 2012-07-18 2012-11-21 福建先创通信有限公司 Method for transmitting data packet in mobile communication system
CN107623646A (en) * 2017-09-06 2018-01-23 华为技术有限公司 Data flow transmission method, send equipment and receiving device
CN108880753A (en) * 2018-06-20 2018-11-23 深圳无线电检测技术研究院 A kind of acquisition methods and system of grid equipment operation data
CN109257143A (en) * 2018-09-07 2019-01-22 武汉虹信通信技术有限责任公司 Method for there is sliced transmission data packet in the network transmission protocol of length limitation
CN109525542A (en) * 2017-09-20 2019-03-26 中兴通讯股份有限公司 Data reconstruction method, transmitting/receiving means and computer readable storage medium
CN110730242A (en) * 2019-10-22 2020-01-24 北京浪潮数据技术有限公司 File transmission method, device and equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321336A (en) * 2007-06-06 2008-12-10 凤凰微电子(中国)有限公司 High-capacity data interchange method between mobile terminal and smart card
CN101188622A (en) * 2007-12-29 2008-05-28 腾讯科技(深圳)有限公司 A method and device for downloading file by using P2P living broadcast channel
CN102790659A (en) * 2012-07-18 2012-11-21 福建先创通信有限公司 Method for transmitting data packet in mobile communication system
CN107623646A (en) * 2017-09-06 2018-01-23 华为技术有限公司 Data flow transmission method, send equipment and receiving device
CN109525542A (en) * 2017-09-20 2019-03-26 中兴通讯股份有限公司 Data reconstruction method, transmitting/receiving means and computer readable storage medium
CN108880753A (en) * 2018-06-20 2018-11-23 深圳无线电检测技术研究院 A kind of acquisition methods and system of grid equipment operation data
CN109257143A (en) * 2018-09-07 2019-01-22 武汉虹信通信技术有限责任公司 Method for there is sliced transmission data packet in the network transmission protocol of length limitation
CN110730242A (en) * 2019-10-22 2020-01-24 北京浪潮数据技术有限公司 File transmission method, device and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116743779A (en) * 2023-08-11 2023-09-12 之江实验室 Configuration data synchronous updating method and device and endogenous safety industrial controller
CN116743779B (en) * 2023-08-11 2024-01-09 之江实验室 Configuration data synchronous updating method and device and endogenous safety industrial controller

Similar Documents

Publication Publication Date Title
CN109361740B (en) Block generation method, device, equipment and medium of block chain
US20100138573A1 (en) System including transmitter and receiver
CN109508295B (en) Block chain consensus algorithm testing method and device, calculating device and storage medium
DE102015119896A1 (en) Data integrity technologies of multiple network packet operations
CN110138867A (en) File transmission and method of reseptance, computer equipment and storage medium
CN110389772B (en) Dual-core MCU application program upgrading method
CN109542602B (en) Block chain-based distributed task processing method, device and system
CN113541865A (en) Configuration transmission method and device, electronic equipment and storage medium
CN113254375A (en) Data transmission method and device, electronic equipment and storage medium
CN114788199A (en) Data verification method and device
CN104579605A (en) Data transmission method and device
CN116257389B (en) Synchronization method of two-by-two-out-of-two platform based on full electronic interlocking system
CN113411198B (en) Communication method and device based on dual channels and RSSP-I, electronic equipment and storage medium
CN106685854A (en) Data transmission method and system
US20110144771A1 (en) Safety control apparatus
CN114115046A (en) Industrial safety controller, control method, electronic device, and storage medium
JP2019029921A (en) Transmitter, receiver, and communication method
CN115904488A (en) Data transmission method, system, device and equipment
CN113169925A (en) Computing device and method for operating a computing device
CN113938450B (en) Avionics system communication fault processing method, avionics system communication fault processing device, computer equipment and medium
US9641287B2 (en) Methods and apparatus for high-integrity data transfer with preemptive blocking
JP6295609B2 (en) Reception device, communication system, and program
JP5545067B2 (en) Information processing apparatus and self-diagnosis method of information processing apparatus
CN114978426B (en) Data transmission method and system
CN115389911B (en) Chip scheduler fault judgment method and device, electronic equipment and storage medium

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