CN103199966A - Data transmission method in industrial control system, industrial control subsystems and industrial control system - Google Patents
Data transmission method in industrial control system, industrial control subsystems and industrial control system Download PDFInfo
- Publication number
- CN103199966A CN103199966A CN2012100049184A CN201210004918A CN103199966A CN 103199966 A CN103199966 A CN 103199966A CN 2012100049184 A CN2012100049184 A CN 2012100049184A CN 201210004918 A CN201210004918 A CN 201210004918A CN 103199966 A CN103199966 A CN 103199966A
- Authority
- CN
- China
- Prior art keywords
- packet
- control subsystem
- industry control
- bag
- packet header
- 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
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a data transmission method in an industrial control system, industrial control subsystems and the industrial control system. The data transmission method in the industrial control system includes the steps that a first industrial subsystem sends a data packet to a second industrial control subsystem through an unreliable link, and a packet head of the data packet carries a first sequence number; and a next data packet is sent to the second industrial control subsystem if a confirmation packet returned by the second industrial control subsystem is received within a preset time interval and the confirmation packet carries the first sequence number. The second industrial control subsystem receives the data packet sent by the first industrial control subsystem through the unreliable link, the packet head of the data packet carries the first sequence number, the confirmation packet of the data packet is generated, the confirmation packet carries the first sequence number, the confirmation packet is sent to the first industrial control subsystem, and the first industrial control subsystem sends the next data packet. According to the data transmission method in the industrial control system, the industrial control subsystems and the industrial control system, reliable data communication can be achieved on the unreliable hardware communication link between the industrial control subsystems, and hardware cost is lowered.
Description
Technical field
The present invention relates to industrial automation control field, relate in particular to data transmission method in a kind of industrial control system and industry control subsystem, industrial control system.
Background technology
In modern industrial control system, the complexity of system is more and more higher, the function of whole system often need just can be finished by a plurality of subsystem collaborative works, each subsystem is a relatively independent system, microcontroller and memory that oneself is arranged, may use different developing instruments and R﹠D team, make how to realize between each subsystem that reliable interaction becomes the technological difficulties of industrial control system.For instance, in the prior art scheme, man-machine interface subsystem (Human Man-machine Interface, abbreviation HMI) and between the master control subsystem (Main Control System is called for short MCS) need to carry out many functions of finishing whole system that cooperate alternately, for example the user is by the control command of HMI input machine, need be this order notice MCS, MCS carries out this order as requested, and the result who carries out is fed back to HMI, simultaneously the result is exported to the user.
At present, the suchlike mutual hardware link layer that possesses reliable transmission characteristic that often adopts, as Controller Area Network BUS (Controller Area Network, be called for short CAN), the reliable transmission of packet is handled by the hardware link layer, and upper layer software (applications) sends packet according to the interface that hardware provides, though reduced the R﹠D costs of software, but owing to need extra hardware interface, improved hardware cost.
But, adopt the low unreliable link of hardware cost, as common parallel bus or universal serial bus, can't guarantee the reliable transmission of packet between the subsystem again.
Summary of the invention
The embodiment of the invention provides data transmission method in a kind of industrial control system and industry control subsystem, industrial control system, the problem of the reliable transmission of packet between the industry control subsystem in the time of can't guaranteeing to adopt unreliable link in the prior art in order to solve.
On the one hand, the embodiment of the invention provides the data transmission method in a kind of industrial control system, comprising:
The first industry control subsystem sends to the second industry control subsystem with packet by unreliable link, and first sequence number is carried in the packet header of described packet;
If receive the affirmation bag that the described second industry control subsystem returns in Preset Time, and described affirmation bag carries described first sequence number, then next packet sent to the described second industry control subsystem.
On the other hand, the embodiment of the invention provides the data transmission method in a kind of industrial control system, comprising:
The second industry control subsystem receives the packet that the first industry control subsystem sends by unreliable link, and first sequence number is carried in the packet header of described packet;
Generate the affirmation bag of described packet, described affirmation bag carries described first sequence number;
Described affirmation bag is sent to the described first industry control subsystem, so that the described first industry control subsystem sends next packet.
On the other hand, the embodiment of the invention provides a kind of industry control subsystem, comprising:
First sending module is used for packet is sent to another industry control subsystem by unreliable link, and first sequence number is carried in the packet header of described packet;
First receiver module is used for if receive the affirmation bag that described another industry control subsystem returns in Preset Time, and described affirmation bag carries described first sequence number, then indicates described first sending module that next packet is sent to described another industry control subsystem.
On the other hand, the embodiment of the invention provides another kind of industry control subsystem, comprising:
Second receiver module is used for receiving the packet that another industry control subsystem sends by unreliable link, and first sequence number is carried in the packet header of described packet;
Generation module, for the affirmation bag that generates described packet, described affirmation bag carries described first sequence number;
Second sending module is used for described affirmation bag is sent to described another industry control subsystem, so that described another industry control subsystem sends next packet.
On the one hand, the embodiment of the invention provides a kind of industrial control system, comprising again:
Two kinds of above-mentioned industry control subsystems connect by unreliable link between described two kinds of industry control subsystems.
The packet that the embodiment of the invention adopts the first industry control subsystem will carry first sequence number sends to the second industry control subsystem by unreliable link, if in Preset Time, receive the affirmation bag that carries described first sequence number that the described second industry control subsystem returns, then next packet is sent to the technological means of the described second industry control subsystem, make and realize the authentic data communication at insecure hardware communication link between the industry control subsystem, reduce hardware cost, improve the flexibility that the hardware communication link is selected.
Description of drawings
The schematic flow sheet of the data transmission method in a kind of industrial control system that Fig. 1 provides for the embodiment of the invention one;
The schematic flow sheet of the data transmission method in a kind of industrial control system that provides for the embodiment of the invention two is provided Fig. 2;
The structural representation of a kind of industry control subsystem that Fig. 3 provides for the embodiment of the invention three;
The structural representation of a kind of industry control subsystem that Fig. 4 provides for the embodiment of the invention four;
The structural representation of a kind of industrial control system that Fig. 5 provides for the embodiment of the invention five;
Fig. 6 is the schematic diagram of a kind of packet format of the embodiment of the invention;
Fig. 7 is the schematic flow sheet of a kind of concrete application of the embodiment of the invention.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
The schematic flow sheet of the data transmission method in a kind of industrial control system that Fig. 1 provides for the embodiment of the invention one, as shown in Figure 1, this method comprises:
Step 101, the first industry control subsystem send to the second industry control subsystem with packet by unreliable link, and first sequence number is carried in the packet header of described packet.
For instance, the first industry control subsystem can be HMI or MCS, and correspondingly, the second industry control subsystem can be MCS or HMI.Particularly, each packet can have first a unique sequence number.Unreliable link can be serial communication mode, as RS232, or the parallel communications mode, as the parallel communications based on FIFO.
Step 102, if in Preset Time, receive the affirmation bag that the described second industry control subsystem returns, and described affirmation bag carries described first sequence number, then next packet sent to the described second industry control subsystem.
Particularly, described affirmation bag can adopt the packet format different with described packet.Alternatively, described affirmation bag also can adopt the packet format the same with described packet, and by the bag mark position to distinguish in the packet header.The first industry control subsystem can be packet or confirm bag according to what different packet formats or the bag flag bit in the packet header were confirmed to receive.
Further, for compatible reliable transmission and unreliable transmission on unreliable link, the packet header of described packet also comprises the reliable markers position, also comprises before the step 101:
Determine that described packet needs reliable transmission;
With position, described reliable markers position, so that the described second industry control subsystem returns described affirmation bag after receiving described packet.
For instance, if described packet needs reliable transmission, be 0 with described reliable markers position then, so that the described second industry control subsystem returns described affirmation bag after receiving described packet.If described packet need not reliable transmission, then to be 1, the second industry control subsystem with described reliable markers position do not return when receiving that the reliable markers position is 1 packet confirms bag.Like this, when packet need not reliably to transmit, can notify the recipient to need not to return by the reliable markers position and confirm to adapt to the high speed great amount of data transmission by bag, improve communication response speed.
Further, in order to make point-to-point communication between the subsystem process, the packet header of described packet also comprises the gap marker position, also comprises before the step 101:
Determine transmission process and the receiving process of described packet correspondence;
Determine the gap marker of described packet correspondence according to described transmission process and receiving process;
Add described gap marker to described gap marker position.
For instance, the transmission process of the first industry control subsystem specified data bag is A, receiving process is B, the mapping relations of lookup process and passage determine that corresponding gap marker is 1, add gap marker 1 to the gap marker position in packet header, second industry control subsystem reception packet, determine that according to gap marker corresponding receiving process B comes handle packet, by the gap marker position, realize the point-to-point communication of transmission process A and receiving process B, reduce the application program R﹠D costs.
Further, in order to verify the accuracy that receives packet, the packet header of described packet also comprises the bag check digit, also comprises before the step 101:
According to described packet, obtain wrapping check code;
Described bag check code is inserted described bag check digit.
Accordingly, for instance, the second industry control subsystem extracts the bag check code after receiving packet; The second industry control subsystem obtains wrapping check code according to the packet of receiving; The bag check code that extracts and the bag check code that obtains are compared, if identical, then verification is correct, and return and confirm that bag gives the first industry control subsystem, otherwise check errors, packet discard, thus guarantee that the first industry control subsystem receives correct packet.
Further, for the packet that quick verification makes mistake, the packet header of described packet also comprises the packet header check digit, also comprises before the step 101:
According to the packet header of described packet, obtain the packet header check code;
Described packet header check code is inserted described packet header check digit.
For instance, the second industry control subsystem extracts the packet header check code after receiving packet; The second industry control subsystem obtains the packet header check code according to the packet of receiving; The packet header check code that extracts and the packet header check code that obtains are compared, if different, then the second industry control subsystem receives the packet failure, and need not the accuracy of further checking data bag again, thus the packet that verification fast and effectively makes mistake.
In addition, after the step 101, if the first industry control subsystem does not receive the described affirmation bag that the described second industry control subsystem returns in Preset Time, then send described packet again.
Further, for fear of repeating repeatedly to send identical packet, transmission frequency threshold value that can the setting data bag.Particularly, describedly send described packet again and specifically comprise:
If the transmission number of times of described packet does not surpass preset threshold value, then send described packet again.
If the transmission number of times of described packet surpasses described threshold value, then confirm to send described packet failure, send described next packet.
The packet that the embodiment of the invention adopts the first industry control subsystem will carry first sequence number sends to the second industry control subsystem by unreliable link, if in Preset Time, receive the affirmation bag that carries described first sequence number that the described second industry control subsystem returns, then next packet is sent to the technological means of the described second industry control subsystem, make and realize the authentic data communication at insecure hardware communication link between the industry control subsystem, reduce hardware cost, improve the flexibility that the hardware communication link is selected.Further, the transmission of all right compatible corrupt data improves response speed, and the point-to-point communication between program process is provided, and reduces the R﹠D costs of application program.
The schematic flow sheet of the data transmission method in a kind of industrial control system that provides for the embodiment of the invention two is provided Fig. 2, and as shown in Figure 2, this method comprises:
For instance, the second industry control subsystem can be HMI or MCS, and correspondingly, the first industry control subsystem can be MCS or HMI.Particularly, each packet can have first a unique sequence number.
The affirmation bag of step 202, the described packet of generation, described affirmation bag carries described first sequence number.
Described affirmation bag can adopt the packet format different with described packet.Alternatively, described affirmation bag also can adopt the packet format the same with described packet, and by the sign of the bag in packet header digit separator.The second industry control subsystem can be packet or confirm bag according to what different packet formats or the bag in packet header sign position was confirmed to receive.
Further, for compatible reliable transmission and unreliable transmission on unreliable link, the packet header of described packet also comprises the dependable identification position, also comprises before step 202:
Determine that according to described dependable identification position described packet needs reliable transmission.
For instance, if described dependable identification position is set to 0, determine that then described packet needs reliable transmission, generates described affirmation bag and returns to the first industry control subsystem.If described dependable identification position is set to 1, determine that then described packet need not reliable transmission, do not return and confirm bag.Like this, when packet need not reliably to transmit, transmit leg can notify the recipient to need not to return the affirmation bag by the dependable identification position, adapts to the high speed great amount of data transmission, improves communication response speed.
Further, in order to make point-to-point communication between the subsystem process, the packet header of described packet also comprises the gap marker position, also comprises after the step 201:
Determine receiving process according to the gap marker in the described gap marker position;
Call described receiving process processing said data bag.
For instance, the second industry control subsystem is after receiving packet, extract gap marker 1 from the gap marker position, lookup process and the mapping relations of passage determine that gap marker 1 corresponding receiving process is B, and the second industry control subsystem is given corresponding receiving process B with packet and gone processing.
Further, for the accuracy of the packet of verifying reception, the packet header of described packet also comprises the bag check digit, also comprises before step 202:
According to the bag check code in the described bag check digit described packet is carried out verification, the affirmation verification is passed through.
For instance, the second industry control subsystem is after receiving packet, extract the bag check code from the bag check bit, the bag check code that extracts and the bag check code that calculates according to packet are compared, if different, then confirm the packet error that receives, if identical, confirm that then the packet that receives is correct, execution in step 202.
Further, for the packet that quick verification makes mistake, the packet header of described packet also comprises the packet header check digit, also comprises before step 202:
According to the packet header check code in the check digit of described packet header verification is carried out in the packet header of described packet, if the verification to packet header of described packet is passed through, then according to described bag check digit described packet is carried out verification, if the verification to packet header of described packet is not passed through, then abandon described packet.
For instance, the second industry control subsystem is after receiving packet, extract the packet header check code from the packet header check digit, the packet header check code that the packet header check code that extracts and packet header according to packet are calculated compares, if it is different, then confirm to need not the packet error receive further to carry out verification according to the bag check digit again, thus the packet that verification fast and effectively makes mistake.
Further, the accuracy of the affirmation bag that receives for opposite end checking, the packet header of described affirmation bag also comprises the bag check digit, also comprises before step 203:
According to described affirmation bag, obtain wrapping check code; Described bag check code is inserted the bag check digit of described affirmation bag.
Accordingly, for instance, the first industry control subsystem extracts the bag check code after receiving the affirmation bag; The first industry control subsystem calculates the bag check code according to the affirmation bag of receiving; The bag check code that extracts and the bag check code that calculates are compared, if identical, then verification is correct, it is correct that the first industry control subsystem confirms to receive the confirmation bag, confirm bag otherwise check errors, the first industry control subsystem abandon, thereby guarantee that the first industry control subsystem receives correct affirmation bag.
Further, for the affirmation bag that the quick verification in opposite end makes mistake, the packet header of described affirmation bag also comprises the packet header check digit, also comprises before step 203:
According to the packet header of described affirmation bag, obtain the packet header check code; Described packet header check code is inserted the packet header check digit of described affirmation bag.
Accordingly, for instance, the first industry control subsystem extracts the packet header check code after receiving the affirmation bag; The first industry control subsystem calculates the packet header check code according to the affirmation bag of receiving; The packet header check code of extraction is compared with the packet header check code that calculates, if different, then first industry control subsystem confirmation of receipt bag failure, and need not again the accuracy that bag is confirmed in further verification, thus the affirmation bag that verification fast and effectively makes mistake.
The embodiment of the invention adopts the second industry control subsystem to receive the packet that carries first sequence number that the first industry control subsystem sends by unreliable link, the affirmation bag that carries described first sequence number is returned the described first industry control subsystem so that the described first industry control subsystem sends the technological means of next packet, make and realize the authentic data communication at insecure hardware communication link between the industry control subsystem, reduce hardware cost, improve the flexibility that the hardware communication link is selected.Further, the transmission of all right compatible corrupt data improves response speed, and the point-to-point communication between program process is provided, and reduces the R﹠D costs of application program.
The structural representation of a kind of industry control subsystem that Fig. 3 provides for the embodiment of the invention three, as shown in Figure 3, this industry control subsystem comprises:
First sending module 31 is used for packet is sent to another industry control subsystem by unreliable link, and first sequence number is carried in the packet header of described packet;
Further, the packet header of described packet also comprises the dependable identification position, and described industry control subsystem also comprises:
First confirms module, is used for before first sending module 31 sends described packet, determines that described packet needs reliable transmission;
The set module is used for position, described dependable identification position, so that described another industry control subsystem returns described affirmation bag after receiving described packet.
Further, the packet header of described packet also comprises the gap marker position, and described industry control subsystem also comprises:
The first passage module, be used for before first sending module 31 sends described packet, determine transmission process and the receiving process of described packet correspondence, determine the gap marker of described packet correspondence to add described gap marker to described gap marker position according to described transmission process and receiving process.
Further, the packet header of described packet also comprises the bag check digit, and described industry control subsystem also comprises:
The first verification module is used for according to described packet, obtaining wrapping check code before first sending module 31 sends described packet, and described bag check code is inserted described bag check digit.
Further, the packet header of described packet also comprises the packet header check digit, and the described first verification module also is used for,
Before first sending module 31 sends described packet, according to the packet header of described packet, obtain the packet header check code, described packet header check code is inserted described packet header check digit.
Data transmission method in a kind of industrial control system that the specific implementation of present embodiment provides with reference to the embodiment of the invention one.The packet that the embodiment of the invention adopts the first industry control subsystem will carry first sequence number sends to the second industry control subsystem by unreliable link, if in Preset Time, receive the affirmation bag that carries described first sequence number that the described second industry control subsystem returns, then next packet is sent to the technological means of the described second industry control subsystem, make and realize the authentic data communication at insecure hardware communication link between the industry control subsystem, reduce hardware cost, improve the flexibility that the hardware communication link is selected.
The structural representation of a kind of industry control subsystem that Fig. 4 provides for the embodiment of the invention four, as shown in Figure 4, this industry control subsystem comprises:
Second sending module 43 is used for described affirmation bag is sent to described another industry control subsystem, so that described another industry control subsystem sends next packet.
Further, the packet header of described packet also comprises the dependable identification position, and described industry control subsystem also comprises:
Second confirms module, is used for before generation module 42 generates the affirmation bag of described packet, confirms that described packet needs reliable transmission.
Further, the packet header of described packet also comprises the gap marker position, and described industry control subsystem also comprises:
The second channel module is used for second receiver module 41 and receives after the described packet, determines receiving process according to the gap marker in the described gap marker position;
Calling module is used for described receiving process processing said data bag.
Further, the packet header of described packet also comprises the bag check digit, and described industry control subsystem also comprises:
The second verification module is used for according to the bag check code in the described bag check digit described packet being carried out verification before generation module 42 generates described affirmation bag, and the affirmation verification is passed through.
Further, the packet header of described packet also comprises the packet header check digit, and the described second verification module also is used for,
According to the packet header check code in the check digit of described packet header verification is carried out in the packet header of described packet, if the verification to packet header of described packet is passed through, then according to described bag check digit described packet is carried out verification, if the verification to packet header of described packet is not passed through, then abandon described packet.
Data transmission method in a kind of industrial control system that the specific implementation of present embodiment provides with reference to the embodiment of the invention two.The embodiment of the invention adopts the second industry control subsystem to receive the packet that carries first sequence number that the first industry control subsystem sends by unreliable link, the affirmation bag that carries described first sequence number is returned the described first industry control subsystem so that the described first industry control subsystem sends the technological means of next packet, make and realize the authentic data communication at insecure hardware communication link between the industry control subsystem, reduce hardware cost, improve the flexibility that the hardware communication link is selected.
The structural representation of a kind of industrial control system that Fig. 5 provides for the embodiment of the invention five, as shown in Figure 5, this industrial control system comprises:
Fig. 6 is the schematic diagram of a kind of packet format of the embodiment of the invention.In the application, packet in the embodiment of the invention and affirmation bag all can adopt packet format as shown in Figure 6, and as shown in Figure 6, the head length degree is 16, the length that expression is wrapped the sequence number end position from the original position of bag to affirmation is used for determining the deviation post of packet header check code in whole packet.Version is 4, the version of expression current transmission layer agreement.Be masked as four, first is bag sign position, and expression is to confirm bag or packet, and further, if confirm bag, then the length of data content is 0; Second is the dependable identification position, expression transport-type, the reliable transmission of 0 expression, the unreliable transmission of 1 expression; The 3rd is the sign that resets, and needs again the data passage is carried out using when synchronous transmit leg and recipient; The 4th for keeping the position.The gap marker position is 16, is used for transmit leg and inserts the gap marker corresponding with transmission process and receiving process; The bag data length is 16, the length of expression data content; The packet sequence number is 16, is used for the sequence number that transmit leg is inserted packet, whether repeats to send packet so that the recipient verifies transmit leg; Confirm that the bag sequence number is 16, be used for the recipient and insert the sequence number of confirming bag, so that transmit leg is determined to confirm the packet that bag is corresponding with this; The packet header check digit is 16, is used for the correctness of the quick verification msg bag of recipient or the quick demonstration validation bag of transmit leg; The bag check digit is 16, is used for the correctness of recipient's verification msg bag or transmit leg demonstration validation bag.
Fig. 7 is the schematic flow sheet of a kind of concrete application of the embodiment of the invention.As shown in Figure 7, comprising:
701, send packet.
Particularly, the first industry control subsystem sends packet by unreliable link to the second industry control subsystem.
702, judge whether reliable transmission, if carry out 704, carry out 703 if not;
703, send end.
Particularly, if unreliable transmission then need not the wait acknowledge bag, think that the transmission flow of this packet finishes, can send next packet.
704, wait acknowledge bag.
Particularly, as be reliable transmission, send after the packet, need the wait acknowledge bag.
705, judge in Preset Time, whether to receive the confirmation bag, if carry out 708, carry out 706 if not.
706, retransmission data bag.
Particularly, if in Preset Time, do not receive the confirmation bag, then send last packet again.
Do not confirm bag if 707 repeating transmission are repeatedly all received, carry out 714.
708, from confirming that bag extracts the bag check code.
Particularly, confirm bag if the first industry control subsystem is received, then check check code in the bag.
709, judge whether the bag check code that extracts is identical with the bag check code that calculates according to the affirmation bag, if carry out 710, otherwise carries out 713.
710, extract to confirm the bag sequence number, judge and confirm the bag sequence number sequence number with the packet of this transmission is identical, if then carry out 711, then carry out 712 if not.
711, confirm to send successfully, carry out 703.
712, judge to confirm whether the bag sequence number is identical with the sequence number of the packet that sent last time, if then carry out 713, then carry out 714 if not.
713, abandon described affirmation bag, carry out 704.
714, confirm to send failure, carry out 703.
Claims (26)
1. the data transmission method in the industrial control system is characterized in that, comprising:
The first industry control subsystem sends to the second industry control subsystem with packet by unreliable link, and first sequence number is carried in the packet header of described packet;
If receive the affirmation bag that the described second industry control subsystem returns in Preset Time, and described affirmation bag carries described first sequence number, then next packet sent to the described second industry control subsystem.
2. method according to claim 1 is characterized in that, the packet header of described packet also comprises the dependable identification position, and the described first industry control subsystem comprises before packet is sent to the second industry control subsystem by unreliable link:
Determine that described packet needs reliable transmission;
With position, described dependable identification position, so that the described second industry control subsystem returns described affirmation bag after receiving described packet.
3. method according to claim 1 and 2 is characterized in that, the packet header of described packet also comprises the gap marker position, and the described first industry control subsystem also comprises before packet is sent to the second industry control subsystem by unreliable link:
Determine transmission process and the receiving process of described packet correspondence;
Determine the gap marker of described packet correspondence according to described transmission process and receiving process;
Add described gap marker to described gap marker position.
4. method according to claim 1 is characterized in that, the packet header of described packet also comprises the bag check digit, and the described first industry control subsystem also comprises before packet is sent to the second industry control subsystem by unreliable link:
According to described packet, obtain wrapping check code;
Described bag check code is inserted described bag check digit.
5. method according to claim 4 is characterized in that, the packet header of described packet also comprises the packet header check digit, and the described first industry control subsystem also comprises before packet is sent to the second industry control subsystem by unreliable link:
According to the packet header of described packet, obtain the packet header check code;
Described packet header check code is inserted described packet header check digit.
6. method according to claim 1 is characterized in that, also comprises:
If the first industry control subsystem does not receive the described affirmation bag that the described second industry control subsystem returns in Preset Time, then send described packet again.
7. method according to claim 6 is characterized in that, describedly sends described packet again and specifically comprises:
If the transmission number of times of described packet does not surpass preset threshold value, then send described packet again.
8. method according to claim 7 is characterized in that, also comprises:
If the transmission number of times of described packet surpasses described threshold value, then confirm to send described packet failure, send described next packet.
9. the data transmission method in the industrial control system is characterized in that, comprising:
The second industry control subsystem receives the packet that the first industry control subsystem sends by unreliable link, and first sequence number is carried in the packet header of described packet;
Generate the affirmation bag of described packet, described affirmation bag carries described first sequence number;
Described affirmation bag is sent to the described first industry control subsystem, so that the described first industry control subsystem sends next packet.
10. method according to claim 9 is characterized in that, the packet header of described packet also comprises the dependable identification position, also comprises before the affirmation bag of the described packet of described generation:
Determine that according to described dependable identification position described packet needs reliable transmission.
11. according to claim 9 or 10 described methods, it is characterized in that the packet header of described packet also comprises the gap marker position, the described second industry control subsystem also comprises by the packet that unreliable link receives the transmission of the first industry control subsystem afterwards:
Determine receiving process according to the gap marker in the described gap marker position;
Call described receiving process processing said data bag.
12. method according to claim 9 is characterized in that, the packet header of described packet also comprises the bag check digit, also comprises before the affirmation bag of the described packet of described generation:
According to the bag check code in the described bag check digit described packet is carried out verification, the affirmation verification is passed through.
13. method according to claim 12 is characterized in that, the packet header of described packet also comprises the packet header check digit, describedly according to described bag check digit described packet is carried out verification and specifically comprises:
According to the packet header check code in the check digit of described packet header verification is carried out in the packet header of described packet, if the verification to packet header of described packet is passed through, then according to described bag check digit described packet is carried out verification, if the verification to packet header of described packet is not passed through, then abandon described packet.
14. method according to claim 9 is characterized in that, the packet header of described affirmation bag also comprises the bag check digit, and described described affirmation bag is sent to comprises before the described first industry control subsystem:
According to described affirmation bag, obtain wrapping check code;
Described bag check code is inserted described bag check digit.
15. method according to claim 9 is characterized in that, the packet header of described affirmation bag also comprises the packet header check digit, and described described affirmation bag is sent to also comprises before the described first industry control subsystem:
According to the packet header of described affirmation bag, obtain the packet header check code;
Described packet header check code is inserted described packet header check digit.
16. an industry control subsystem is characterized in that, comprising:
First sending module is used for packet is sent to another industry control subsystem by unreliable link, and first sequence number is carried in the packet header of described packet;
First receiver module is used for if receive the affirmation bag that described another industry control subsystem returns in Preset Time, and described affirmation bag carries described first sequence number, then indicates described first sending module that next packet is sent to described another industry control subsystem.
17. the industry control subsystem according to claim 16 is characterized in that the packet header of described packet also comprises the dependable identification position, described industry control subsystem also comprises:
First confirms module, is used for before described first sending module sends described packet, determines that described packet needs reliable transmission;
The set module is used for position, described dependable identification position, so that described another industry control subsystem returns described affirmation bag after receiving described packet.
18. the industry control subsystem according to claim 16 or 17 is characterized in that the packet header of described packet also comprises the gap marker position, described industry control subsystem also comprises:
The first passage module, be used for before described first sending module sends described packet, determine transmission process and the receiving process of described packet correspondence, determine the gap marker of described packet correspondence to add described gap marker to described gap marker position according to described transmission process and receiving process.
19. industry control subsystem according to claim 16 is characterized in that the packet header of described packet also comprises the bag check digit, described industry control subsystem also comprises:
The first verification module is used for according to described packet, obtaining wrapping check code before described first sending module sends described packet, and described bag check code is inserted described bag check digit.
20. industry control subsystem according to claim 19 is characterized in that the packet header of described packet also comprises the packet header check digit, the described first verification module also is used for,
Before described first sending module sends described packet, according to the packet header of described packet, obtain the packet header check code, described packet header check code is inserted described packet header check digit.
21. an industry control subsystem is characterized in that, comprising:
Second receiver module is used for receiving the packet that another industry control subsystem sends by unreliable link, and first sequence number is carried in the packet header of described packet;
Generation module, for the affirmation bag that generates described packet, described affirmation bag carries described first sequence number;
Second sending module is used for described affirmation bag is sent to described another industry control subsystem, so that described another industry control subsystem sends next packet.
22. industry control subsystem according to claim 21 is characterized in that the packet header of described packet also comprises the dependable identification position, described industry control subsystem also comprises:
Second confirms module, is used for before described generation module generates the affirmation bag of described packet, confirms that described packet needs reliable transmission.
23. according to claim 21 or 22 described industry control subsystems, it is characterized in that the packet header of described packet also comprises the gap marker position, described industry control subsystem also comprises:
The second channel module is used for described second receiver module and receives after the described packet, determines receiving process according to the gap marker in the described gap marker position;
Calling module is used for described receiving process processing said data bag.
24. industry control subsystem according to claim 21 is characterized in that the packet header of described packet also comprises the bag check digit, described industry control subsystem also comprises:
The second verification module is used for according to the bag check code in the described bag check digit described packet being carried out verification before described generation module generates described affirmation bag, and the affirmation verification is passed through.
25. industry control subsystem according to claim 24 is characterized in that the packet header of described packet also comprises the packet header check digit, the described second verification module also is used for,
According to the packet header check code in the check digit of described packet header verification is carried out in the packet header of described packet, if the verification to packet header of described packet is passed through, then according to described bag check digit described packet is carried out verification, if the verification to packet header of described packet is not passed through, then abandon described packet.
26. an industrial control system is characterized in that, comprising: as each described industry control subsystem among the claim 16-20 with as each described industry control subsystem among the claim 21-25, connect by unreliable link between the described industry control subsystem.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100049184A CN103199966A (en) | 2012-01-09 | 2012-01-09 | Data transmission method in industrial control system, industrial control subsystems and industrial control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100049184A CN103199966A (en) | 2012-01-09 | 2012-01-09 | Data transmission method in industrial control system, industrial control subsystems and industrial control system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103199966A true CN103199966A (en) | 2013-07-10 |
Family
ID=48722338
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100049184A Pending CN103199966A (en) | 2012-01-09 | 2012-01-09 | Data transmission method in industrial control system, industrial control subsystems and industrial control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103199966A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104601299A (en) * | 2013-10-30 | 2015-05-06 | 北京临近空间飞行器***工程研究所 | Data transmission system and method based on two-way acknowledgment |
CN107465499A (en) * | 2017-09-21 | 2017-12-12 | 中国科学院长春光学精密机械与物理研究所 | A kind of fault diagnosis filter method, apparatus and system |
CN109104401A (en) * | 2017-06-20 | 2018-12-28 | 西门子股份公司 | Safety is transmitted based on real-time data |
CN111741013A (en) * | 2020-07-21 | 2020-10-02 | 炬芯(珠海)科技有限公司 | Data transmission method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1627725A (en) * | 2003-12-10 | 2005-06-15 | 联想(北京)有限公司 | Method for guaranteeing reliability of data transmission from one point to multiple points |
CN101436978A (en) * | 2007-11-15 | 2009-05-20 | 盛乐信息技术(上海)有限公司 | Method for authentic data transmission using UDP protocol |
-
2012
- 2012-01-09 CN CN2012100049184A patent/CN103199966A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1627725A (en) * | 2003-12-10 | 2005-06-15 | 联想(北京)有限公司 | Method for guaranteeing reliability of data transmission from one point to multiple points |
CN101436978A (en) * | 2007-11-15 | 2009-05-20 | 盛乐信息技术(上海)有限公司 | Method for authentic data transmission using UDP protocol |
Non-Patent Citations (2)
Title |
---|
DAVID VELTEN,ROBERT HINDEN,JACK SAX: "Reliable Data Protocol,RFC908", 《RELIABLE DATA PROTOCOL,RFC908》 * |
商西达: "一种基于UDP的可靠传输协议", 《计算机与网络》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104601299A (en) * | 2013-10-30 | 2015-05-06 | 北京临近空间飞行器***工程研究所 | Data transmission system and method based on two-way acknowledgment |
CN104601299B (en) * | 2013-10-30 | 2017-11-28 | 北京临近空间飞行器***工程研究所 | A kind of data transmission system and method based on two-way confirmation |
CN109104401A (en) * | 2017-06-20 | 2018-12-28 | 西门子股份公司 | Safety is transmitted based on real-time data |
CN109104401B (en) * | 2017-06-20 | 2021-08-27 | 西门子股份公司 | Secure real-time based data transmission |
CN107465499A (en) * | 2017-09-21 | 2017-12-12 | 中国科学院长春光学精密机械与物理研究所 | A kind of fault diagnosis filter method, apparatus and system |
CN111741013A (en) * | 2020-07-21 | 2020-10-02 | 炬芯(珠海)科技有限公司 | Data transmission method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105656600B (en) | A kind of communication means of the adaptive two kinds of communication protocol of slave station | |
CN103620573B (en) | For matching the method and apparatus of the data transmission security in serial bus system | |
CN102761391B (en) | Oil field Internet of Things system communication method | |
CN105786753A (en) | Method and device for data transmission between master and slave devices on I2C bus | |
CN101764730A (en) | CAN bus data transmission method | |
CN105162868B (en) | A kind of reliable data transmission method between teacher side and student side | |
WO2021008248A1 (en) | Data frame reception method and device and communication method and system | |
CN102075564A (en) | Remote software upgrading technique | |
CN103199966A (en) | Data transmission method in industrial control system, industrial control subsystems and industrial control system | |
CN102324004A (en) | Verification method for webpage form input information and device | |
CN106100955B (en) | Industrial internet field layer broadband bus data depth detection implementation method | |
CN103442250B (en) | Television set debugging system and method | |
CN102123007A (en) | Communication method for realizing data transmission in numerical control system | |
CN111711609A (en) | Protocol design method in serial port communication | |
CN102237983A (en) | File transmission method, transmission device and receiving device for non-frame structure communication system | |
CN113132063A (en) | Physical layer retransmission control method | |
CN109495215A (en) | A kind of communication means of half-duplex bus, system and device and readable storage medium storing program for executing | |
CN104038316A (en) | Method for high-reliability high-timeliness asynchronous serial communication of space camera | |
CN101605128B (en) | Method for carrying out communication by LINUX primary and secondary devices through Ethernet interface | |
CN104836636B (en) | The method, apparatus and system communicated based on novel CAN frame | |
CN110048914A (en) | A kind of method for detecting packet loss for SLIP agreement | |
CN1988537A (en) | Data transmission protocol | |
CN106788916B (en) | Data transmission method and data transmission device for bus | |
CN107852275A (en) | Data transmission device and data transmission method, reception device and method of reseptance, program and data transmission system | |
CN109286472B (en) | Concurrent data asynchronous transmission method based on Beidou satellite navigation system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130710 |