CN104811422B - Data transmission method and device in a kind of Industrial Ethernet - Google Patents

Data transmission method and device in a kind of Industrial Ethernet Download PDF

Info

Publication number
CN104811422B
CN104811422B CN201410036404.6A CN201410036404A CN104811422B CN 104811422 B CN104811422 B CN 104811422B CN 201410036404 A CN201410036404 A CN 201410036404A CN 104811422 B CN104811422 B CN 104811422B
Authority
CN
China
Prior art keywords
data packet
slave station
main website
business data
feedback
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.)
Active
Application number
CN201410036404.6A
Other languages
Chinese (zh)
Other versions
CN104811422A (en
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.)
Vertiv Tech Co Ltd
Original Assignee
Vertiv Tech 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 Vertiv Tech Co Ltd filed Critical Vertiv Tech Co Ltd
Priority to CN201410036404.6A priority Critical patent/CN104811422B/en
Publication of CN104811422A publication Critical patent/CN104811422A/en
Application granted granted Critical
Publication of CN104811422B publication Critical patent/CN104811422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of method and devices of the data transmission in Industrial Ethernet, this method comprises: main website determines all slave stations that there is communication in current industrial Ethernet between main website, the determining data transfer path between each slave station, according to the business data packet transmission sequence of transmission path from the distant to the near, the business data packet of each slave station is continuously issued.Therefore main website is after determining all slave stations that there is communication between main website in Ethernet, main website will continuously issue the business data packet of all slave stations, it is in this way improved the efficiency of main website issuing service data packet, also just improves the communication efficiency of Industrial Ethernet in this way.

Description

Data transmission method and device in a kind of Industrial Ethernet
Technical field
The present invention relates to the data transmission methods and device in field of communication technology more particularly to a kind of Industrial Ethernet.
Background technique
Currently, a main website and several slave stations have been included at least in Industrial Ethernet network, each slave station includes at least Two network interfaces are being schemed by straight through cable head and the tail connection (as shown in Figure 1) between main website and slave station and between each slave station Main website and N number of slave station be in 1 to form a chain network, then main website by link by business data packet be sent to it is each from It stands.
But in the prior art, when sending business data packet to slave station, main website will be by slave station business processing for main website Process influences, such as slave station sends feedback data packet either slave station to other slave station forwarding service data packets to main website When, main website will can issue the business data packet of other slave stations after the completion of the business processing for waiting slave station, this results in masters The efficiency for issuing service data packet of standing is lower, and also reduces the communication efficiency of entire Industrial Ethernet.
Summary of the invention
The data processing method and device in a kind of Industrial Ethernet are provided in the embodiment of the present invention, it is existing to solve The lower problem of Industrial Ethernet communication efficiency in technology.
Its specific technical solution is as follows:
A kind of data transmission method in Industrial Ethernet, comprising:
Main website determines all slave stations that there is communication in current industrial Ethernet between the main website;
The main website determines itself data transfer path between each slave station;
Business data packet transmission sequence of the main website according to transmission path from the distant to the near, continuously issues each slave station Business data packet.
Optionally, the main website is issued to the in the same size of the business data packet of each slave station.
Optionally, the business data packet transmission sequence in the main website according to transmission path from the distant to the near, continuously issues After the business data packet of each slave station, further includes:
Receive the feedback data packet that the slave station in the current industrial Ethernet returns;
Determine whether there is the slave station for not returning to feedback data packet;
If it exists, it is determined that the slave station for not returning to feedback data packet is failure slave station.
A kind of data transmission method in Industrial Ethernet, comprising:
Slave station obtains described for identifying in the business data packet received when receiving the business data packet that main website is sent The slave station identifications for the target slave that business data packet is sent to;
If the slave station identifications in the business data packet received are matched with the slave station identifications that itself is saved, sent to main website Feedback data packet;
If the slave station identifications of slave station identifications and itself preservation in the business data packet received mismatch, this is connect The business data packet received is forwarded to next slave station.
Optionally, feedback data packet is sent to main website, comprising:
The time of reception for receiving business data packet is obtained, and sends the feedback moment of feedback data packet;
It regard the sum of the time of reception and the feedback moment as synchronizing information, and the synchronizing information is added to institute It states in feedback data packet;
The feedback data packet for being added to synchronizing information is sent to main website.
Optionally, after sending feedback data packet to main website, further includes:
The inclined of the time counter deviation between characterization main website and slave station is being obtained in the business data packet that this is received Difference;
According to the deviation adjustment time counter, so that the time counter between the main website is synchronous.
A kind of data transmission device in Industrial Ethernet, comprising:
First determining module, for determine in current industrial Ethernet exist between the main website communication it is all from It stands;
Second determining module, for the data transfer path between determining and each slave station;
Sending module continuously issues each slave station for the data packet transmission sequence according to transmission path from the distant to the near Business data packet.
Optionally, described device further include:
Receiving module, for receiving the feedback data packet of the return of the slave station in the current industrial Ethernet;
Determination module, for determining whether to have the slave station for not returning to feedback data packet;
Processing module, for exist do not return feedback data packet slave station when, determine do not return feedback data packet from It stands as failure slave station.
A kind of data transmission device in Industrial Ethernet, comprising:
Module is obtained, for obtaining in the business data packet received and using when receiving the business data packet that main website is sent In the slave station identifications for identifying the target slave that the business data packet is sent to;
Processing module, if the slave station identifications in business data packet for receiving are matched with the slave station identifications of itself, Feedback data packet is sent to main website;If the slave station identifications and the slave station identifications of itself in business data packet mismatch, it will receive To business data packet be forwarded to next slave station.
Optionally, the processing module, comprising:
Acquiring unit, for obtaining the time of reception for receiving business data packet, and the feedback of transmission feedback data packet Moment;
Processing unit, for regarding the sum of the time of reception and the feedback moment as synchronizing information, and will be described same Step information is added in the feedback data packet;
Feedback unit, for sending the feedback data packet for being added to synchronizing information to main website.
Optionally, described device further include:
Parsing module obtained in the business data packet by receiving at this based on time between characterization main website and slave station The deviation of number device deviation;
Module is adjusted, is used for according to the deviation adjustment time counter, so that the time between the main website counts Number device is synchronous.
A kind of method of the data transmission in Industrial Ethernet is provided in the embodiment of the present invention, this method comprises: main website It determines there are all slave stations of communication in current industrial Ethernet between main website, successively determines the number between each slave station The business of each slave station is continuously issued according to the business data packet transmission sequence of transmission path from the distant to the near according to transmission path Data packet.Therefore, main website is determining all slave stations that there is communication between main website in Ethernet in embodiments of the present invention Later, main website will continuously issue the business data packet of all slave stations, in this way obtain the efficiency of main website issuing service data packet To raising, the communication efficiency of Industrial Ethernet is also just improved in this way.
Detailed description of the invention
Fig. 1 is the networking structure schematic diagram of Industrial Ethernet in the prior art;
Fig. 2 is a kind of flow diagram of the data processing method in the embodiment of the present invention in Industrial Ethernet;
Fig. 3 is a kind of structural schematic diagram of the Industrial Ethernet of starshaped net topology in the embodiment of the present invention;
Fig. 4 is a kind of flow diagram of the data processing method in the embodiment of the present invention in Industrial Ethernet;
Fig. 5 is the data interaction schematic diagram between main website and slave station in the embodiment of the present invention in Industrial Ethernet;
Fig. 6 is a kind of structural schematic diagram of the data processing equipment in the embodiment of the present invention in Industrial Ethernet;
Fig. 7 is the structural schematic diagram of the data processing equipment in the embodiment of the present invention in another Industrial Ethernet;
Fig. 8 is the structural schematic diagram of the data processing equipment in the embodiment of the present invention in another Industrial Ethernet;
Fig. 9 is the structural schematic diagram of the data processing equipment in the embodiment of the present invention in another Industrial Ethernet.
Specific embodiment
In order to solve the problems, such as that Industrial Ethernet communication efficiency is lower in the prior art, provides one in the embodiment of the present invention Data processing method in kind Industrial Ethernet, is deposited between main website in current industrial Ethernet this method comprises: main website determines In all slave stations of communication, then main website determines itself data transfer path between each slave station, finally according to transmission road The business data packet transmission sequence of diameter from the distant to the near, continuously issues the business data packet of each slave station.Therefore, of the invention real After determining all slave stations that there is communication between main website in Ethernet, main website will will continuously own for Shi Lizhong main website The business data packet of slave station issues, and is in this way improved the efficiency of main website issuing service data packet, also just improve industry with The communication efficiency netted very much.
Technical solution of the present invention is described in detail below by attached drawing and specific embodiment, it should be understood that this hair Particular technique feature in bright embodiment and embodiment is the explanation to technical solution of the present invention rather than limits.
For first, Industrial Ethernet is made of multiple main websites and multiple slave stations, is sequentially connected under each main website Have N number of slave station, in the following embodiments with the communication link that main website and slave station form come to technical solution of the present invention into Row illustrates that the implementation process of other communication links is identical as the process in following embodiments in Industrial Ethernet, is as shown in Figure 1 The communication link formed between main website and slave station, main website connects slave station 1, slave station by straight through cable in the communication link 1 connection slave station 2, is sequentially connected to slave station N in this way.
After being connected between main website and slave station by straight through cable, then the Industrial Ethernet that is made of main website and slave station into Enter to following flow stages:
1), loitering phase:
After main website and slave station power on, main website and slave station all enter initial phase, in initial phase, main website with from Standing all has respective initialization ID, for example the initialization ID of main website is 0, and the initialization ID of each slave station is 255, system Whether the configuration data for monitoring main website is ready to complete, if being ready to complete, then enters next stage.
2) the ID stage, is calculated:
Since each slave station is all initialization ID, it is therefore desirable to need to redistribute ID for each slave station, main website is to slave station It sends and calculates ID data packet, the configuration information and starting ID of slave station are carried in calculating ID data packet, is connect with main website After first slave station receives the data packet, it will be configured according to the configuration parameter calculated in ID data packet, while will be certainly The initialization ID of body is revised as starting ID, while forbidding modifying ID flag bit, and then slave station sends feedback data packet to main website, than It such as says in Fig. 1, main website just carries starting ID:1 into the calculating ID data packet that slave station 1 is sent, and receives main website hair in slave station 1 After the calculating ID data packet sent, the initialization ID:255 of itself is revised as starting ID:1 by slave station 1.
After main website receives the feedback data packet of first slave station, determine that first slave station has been connected to.Main website is originating ID value adds 1, and the ID for adding 1 is carried and is calculating the data packet of ID and is being issued to first slave station, and first slave station detects certainly ID in body ID and calculating ID data packet is mismatched, then first slave station is forwarded to next slave station for ID data packet is calculated, Second slave station receives calculate ID data packet after, ID value be revised as calculating in ID data packet by initializing ID carry ID, while forbidding ID dirty bit, while sending feedback data packet to main website, than as shown in figure 1, the ID of slave station 1 has been modified as 1, main website just carries ID:2 into the calculating ID data packet that slave station 2 is sent, and receives the calculating ID number of main website transmission in slave station 2 After packet, the initialization ID:255 of itself is revised as starting ID:2 by slave station 2.
Certainly the ID configuration of subsequent slave station is executed all in accordance with above-mentioned process, until the least significant end slave station of link.
3), data transfer phase:
After entering data transfer phase, which will execute such as the method flow in Fig. 2 first:
S201, main website determine all slave stations that there is communication in current industrial Ethernet between the main website;
S202, main website determine itself data transfer path between each slave station;
S203, business data packet transmission sequence of the main website according to transmission path from the distant to the near, continuously issues each slave station Business data packet.
In embodiments of the present invention after the ID that main website completes slave station is calculated, main website be will go between slave station just Regular data transmits the stage, and main website is determined in locating Industrial Ethernet with itself first in the presence of all of communication in this stage Slave station, the slave station that there is communication between main website here certainly contain the slave station directly communicated with main website, also contain indirectly The slave station communicated with main website, for example there is the N number of slave station that has communicated with main website in Fig. 1, but slave station 1 is directly logical with main website News, and subsequent slave station is all by indirectly being communicated between other slave stations and main website.
It certainly, is the Industrial Ethernet of a most simple network topological structure in Fig. 1, industrial ether in practical applications There are a variety of possibilities for the network topology structure of net, but main website can determine and oneself in any network topology structure There are all slave stations of communication in body.Such as main website is also required to before sending business data packet in starshaped net topology Determine all slave stations in network.
In addition, it is necessary to illustrate, each slave station in the case where the above-mentioned calculating ID stage has confirmed each main website ID, therefore main website determines that the mode of all slave stations in network can be come really according to the ID of all slave stations in embodiments of the present invention It is fixed, such as the ID of the last one slave station of link is N in Fig. 1, then exists in the Industrial Ethernet in explanatory diagram 1 with main website logical News have N number of slave station, the determination process of slave station can be made simple and fast in this way.
Main website is continuously by the business data packet of all slave stations in same communication link in embodiments of the present invention It issues, such as the communication link structure in Fig. 1, determine that main website will there are after N number of slave station in communication link in main website Continuously the business data packet of N number of slave station is issued.
Certainly, in embodiments of the present invention in order to guarantee that the business data packet that main website is issued to slave station will not be sent out in slave station Raw data packet blocking, therefore main website will determine itself data transfer path between each slave station, then according to from main website The sending method of data transfer path " from the distant to the near ", is continuously successively sent to first for the business data packet of all slave stations Slave station.
Illustrated with the link structure in Fig. 1, will determine slave station N and master station transmission paths farthest in Tu1Zhong main website, so The slave station of transmission path from the distant to the near is successively determined afterwards are as follows: slave station N-1, slave station N-2..... slave station 1.Main website will first at this time The business data packet of slave station N is sent, the business data packet of slave station N-1 is successively sent, the business data packet of slave station N-2 is finally sent out Send the business data packet of slave station 1.
Certainly, if the topological structure of Industrial Ethernet is star, the sending method of business data packet is identical, than Main website has concatenated m slave station by network interface E2 such as in the starshaped net topology of Fig. 3, while main website is concatenated by network interface E3 N slave station, while main website has concatenated p slave station by network interface E4, for such a stellate reticulum topological structure, main website Business data packet successively will be sent to slave station m, slave station m-1...... slave station 1 by network interface E2, while main website will also pass through network interface E3 successively to slave station n, slave station n-1...... slave station 1 send business data packet, while main website will also by network interface E4 successively to from Stand p, the transmission business data packet of slave station p-1...... slave station 1, can will own under main website in this way in a communication cycle The business data packet of slave station issues.
Certainly, in order to further enhance the efficiency of transmission of business data packet in entire Ethernet, thus main website be issued to from The size needs for the business data packet stood are consistent, and business data packet not only can be avoided to accumulate in slave station, simultaneously Forward efficiency of the business data packet in slave station can also be promoted.
Further, in embodiments of the present invention in order to which whether the slave station that main website can be detected in real time under main website occurs event Barrier, therefore main website, after issuing service data packet, main website determines whether slave station breaks down based on the feedback data packet of slave station, Specifically, during receiving the feedback data packet of return of the slave station in current industrial Ethernet, main website will sentence for main website It is fixed to whether there is the slave station for not returning to feedback data packet, if in the presence of the slave station for not returning to feedback data packet, it is determined that do not return The slave station of feedback data packet is failure slave station, does not receive the feedback data packet that slave station N is returned than main website as shown in figure 1, then main website Determine that slave station N breaks down.The fault detection to slave station is also achieved during main website and the transmission of slave station data packet in this way, from And main website will not have to send specific detection frame to slave station to realize the fault detection of slave station, so that current Ethernet leads to News efficiency is greatly improved.
Further, the business data packet that main website continuously issues in embodiments of the present invention is all sent in communication link First slave station, for example, in Fig. 1, the slave station 1 that main website is directly connected to, therefore all business data packets that main website issues require By first slave station.
So in embodiments of the present invention in order to promote the communication efficiency of entire Ethernet, therefore slave station is receiving main website The step process of Fig. 4 will be carried out after the business data packet of transmission:
S401, slave station obtain in the business data packet received when receiving the business data packet that main website is sent for marking Know the slave station identifications for the target slave that business data packet is sent to;
S402 is sent out if the slave station identifications in the business data packet received are matched with the slave station identifications of itself to main website Send feedback data packet;
S403 will be received if the slave station identifications and the slave station identifications of itself in the business data packet received mismatch To business data packet be forwarded to next slave station.
What needs to be explained here is that can be added in the business data packet when main website sends business data packet to target slave The slave station identifications of target slave, so that the business data packet can be forwarded to target slave by other slave stations.That is when After slave station receives the business data packet of main website transmission, slave station will acquire the slave station identifications in business data packet, if industry When slave station identifications and the slave station identifications of itself in data packet of being engaged in mismatch, then the business data packet is forwarded to next by slave station Slave station.
Certainly, if the slave station identifications in business data packet are matched with the slave station identifications of itself, then slave station will generate anti- Data packet is presented, and feedback data packet is sent to main website.
Such as illustrated with the link structure in Fig. 1, the business data packet for the slave station N that main website is sent first, slave station 1 connects When receiving main website and being sent to the business data packet of slave station N, slave station 1 will acquire the ID of business data packet carrying, at this time business datum The ID of ID and slave station 1 itself in packet are mismatched, then the business data packet is directly forwarded to slave station 2 by slave station 1, certainly in slave station During 1 forwarding service data packet, business data packet that slave station 1 will also receive main website and be sent to slave station N-1.
If the ID in the business data packet is matched with the ID of slave station 1, then slave station 1 will be returned anti-comprising synchronizing information Data packet is presented to main website, certainly during slave station 1 is to main website feedback traffic data packet, slave station 1 still can receive main website The business data packet of transmission.Other slave stations in link are identical with above-mentioned mode to the treatment process of business data packet, In addition, in order to guarantee to accumulate a large amount of feedback data packet in slave station, therefore each slave station is back to the feedback data of main website The size needs of packet are consistent.
Process and slave station forwarding service data packet that main website sends business data packet are described respectively in the above-described embodiments Process, illustrate that main website sends business data packet and slave station forwarding service data packet and feedback data packet below by Fig. 5 Process.
Just characterization main website and each slave station are to the processing mode of business data packet in Fig. 5, and abscissa line characterizes in Fig. 5 Physical couplings between main website and slave station, the coordinate longitudinal axis characterize a normal communication period.In a normal communication When period starts, main website first issues the business data packet of slave station N, then successively continuously issues slave station N-1, slave station N-2., from Stand 1 business data packet, after slave station 1 receives business data packet, the business data packet different from self ID is continued down Forwarding, equally, 2~slave station of slave station N-1 also forward the business data packet continuation different from self ID down.Certainly, if from When the business data packet that 1 receives of standing is matched with the ID of itself, then slave station 1 can return to feedback data packet to main website, need exist for Illustrate, can be apparent from from the business data packet transmission mode in Fig. 5, slave station 1 is in the business for receiving main website transmission Also by forwarding service data packet while data packet, therefore slave station still can be real in the case where main website sends business data packet The forwarding of existing business data packet, so that the business data packet repeating process of slave station not will receive main website and send business data packet Influence, certain main website, which sends business data packet, to be influenced by slave station forwarding service data packet, so that industrial The communication efficiency of Ethernet is obviously improved.
Further, in embodiments of the present invention, slave station receives ID and self ID in main website transmission business data packet When the business data packet matched, slave station will record the time of reception T for receiving the business data packetC_rev, while slave station will determine The feedback moment T of feedback data packet is returned to main websiteC_res, then slave station regard the time of reception as synchronous letter with the sum of moment is fed back Breath, and the synchronizing information is added in feedback data packet, the feedback data packet for carrying synchronizing information is finally returned to main website, this Sample main website is there is no need to individually send synchronization frame to slave station to realize the time synchronization between main website and slave station, but in main website The process of interactive service data is achieved that synchronous between slave station, not only improves the network communication efficiency of system in this way, together When but also synchronizing process is more simple and fast.
When main website receives the feedback data packet of slave station return, record is received the time of reception of the feedback data packet by main website TZ_res, while main website will transfer the sending instant T that business data packet is sent to the slave station of preservationZ_tran, then main website will be based on Synchronizing information, time of reception T in feedback data packetZ_res, sending instant TZ_tranObtain the time counting between the slave station 1 The deviation of device can specifically be obtained by formula (1):
Tm=[TZ_tran+TZ_res(TC_rev+TC_res)]/2 (1)
Wherein, TmIt is exactly the reporting between main website and slave station, in next communication cycle, main website takes generation With deviation TmBusiness data packet, then the business data packet is sent to slave station.
In next communication cycle, which can be in the synchronous mark position for being sent to the business data packet of each slave station Synchronizing information is written, which is exactly the deviation T of the time counter between main website and slave stationm, each slave station connecing After receiving corresponding business data packet, the time counter of itself will be adjusted according to the deviation in business data packet, from And guarantee is synchronous with the time counter between main website, while synchronizing information can also be written in feedback data packet and feed back by slave station To main website.
Just circulation executes synchronizing process in later each communication cycle between main website and slave station in a manner mentioned above, It does not need not only individually to send synchronization frame between main website and slave station in this way, the communication efficiency of lifting system, and is communicated at one It can be realized within period more accurate synchronous between main website and slave station.
Data transmission method in one of corresponding embodiment of the present invention Industrial Ethernet, the embodiment of the present invention also provide A kind of data transmission device in Industrial Ethernet, the data that are illustrated in figure 6 in the embodiment of the present invention in Industrial Ethernet The structural schematic diagram of transmitting device, the device include:
There are all of communication in current industrial Ethernet between the main website for determining in the first determining module 601 Slave station;
Second determining module 602, for the data transfer path between determining and each slave station;
Sending module 603, for the data packet transmission sequence according to transmission path from the distant to the near, continuously issue it is each from The business data packet stood.
What needs to be explained here is that the first determining module 601 and the second determining module 602 can be same determining module.
Specifically, Industrial Ethernet, which is set up, completes to be to carry out initial phase and calculate the ID stage first later, this Two stages careful explanation in the above-described embodiment.
After having carried out the two stages, the first determining module 601 in the data transmission device will be determined currently There are all slave stations of communication in Industrial Ethernet with main website, each slave station that main website can be obtained by the calculating ID stage herein ID determine with main website exist communication all slave stations.Certainly after can also be that main website issues a specific detection frame, Feedback based on slave station determines all slave stations that there is communication with main website.
After the first determining module 601 in main website determines all slave stations under main website, in the data transmission device The second determining module 602 in will determine successively to determine in main website and all slave stations between each slave station data transmission Path, such as shown in figure 1, the second determining module 602 will determine that slave station N is farthest from the transmission path of main website, followed by from Stand N-1, followed by slave station N-2, and from master station transmission path it is nearest be then slave station 1.
After the second determining module 602 determines the transmission path between each slave station and main website, in sending module 603 By the data packet transmission sequence according to transmission path from the distant to the near, the business data packet of each slave station is continuously issued.Such as The network topology structure of Industrial Ethernet as shown in Figure 1, the network topology structure are the catenet of main website and N number of slave station composition Network topology, in such network topology structure, the first determining module 601 in main website is determined to be connected with N number of slave station under main website When, the sending module 603 in the main website will issue the business data packet of slave station N first at this time, then issue the business of slave station N-1 Data packet, finally issues the business data packet of slave station 1, and the process that certain main website issues slave station business data packet is continuous mistake Journey.
In network topology structure in Fig. 1, all business data packets that main website issues can all pass through slave station 1, and slave station 1 connects After receiving business data packet, as long as the ID carried in business data packet and the ID saved in slave station 1 are mismatched, slave station 1 The business data packet received is forwarded to slave station 2, certain subsequent slave station is complete to the processing mode and slave station 1 of business data packet It is exactly the same.
Further, as shown in fig. 7, data transmission device in embodiments of the present invention further include: receiving module 701 is sentenced Cover half block 702, processing module 703, wherein the slave station that receiving module 701 is used to receive in current industrial Ethernet returns anti- Present data packet.Then determination module 702 will determine whether there is the slave station for not returning to feedback data packet, last processing module 703 When determination module 702 determines the slave station for existing and not returning to feedback data packet, it is determined that the slave station of non-feedback data packet is failure Slave station.
In addition, being illustrated in figure 8 the data transmission device in the embodiment of the present invention in another Industrial Ethernet, the device Include:
Module 801 is obtained, for obtaining in the business data packet received when receiving the business data packet that main website is sent Slave station identifications for the target slave that identification service data packet is sent;
Processing module 802, if the slave station identifications in business data packet for receiving are matched with the slave station identifications of itself When, feedback data packet is sent to main website;If the slave station identifications and the slave station identifications of itself in business data packet mismatch, it will connect The business data packet received is forwarded to next slave station.
Data transmission device in fig. 8 is located in slave station, and the acquisition module 801 in slave station is getting main website transmission After business data packet, which will be parsed from business data packet from station identifications, it may be assumed that then slave station ID is incited somebody to action The slave station identifications arrived are matched with the slave station identifications that itself is saved, if mismatching, then an instruction information will be sent by obtaining module 801 To processing module 802, then the business data packet received is forwarded to next slave station by processing module 802, certainly mistake herein The business data packet that slave station will also continue to main website and issue in journey, that is to say, that the process of slave station forwarding service data packet is not Influence whether that slave station receives the process of main website issuing service data packet.
If the slave station identifications in certain business data packet are matched with the slave station identifications that slave station itself saves, then in slave station Processing module 802 will generate feedback data packet, and the feedback data packet is fed back into main website.
In addition, when slave station returns to feedback data packet to main website in embodiments of the present invention, in the processing module 802 of slave station Acquiring unit will acquire the time of reception for receiving business data packet, and send the feedback moment of feedback data packet, then locate The processing unit managed in module 802 regard the sum of the time of reception and feedback moment as synchronizing information, and synchronizing information is added to In feedback data packet, feedback unit in last processing module 802 will be in the mistake for receiving main website issuing service data packet next time Cheng Zhongxiang main website sends feedback data packet.
In addition, as shown in figure 9, on the basis of data transmission device shown in Fig. 8, the data transmission device further include:
Parsing module 901, for when acquisition in the business data packet that this is received characterizes between main website and slave station Between counter deviation deviation;
Module 902 is adjusted, is used for according to the deviation adjustment time counter, so that the time between the main website Counter synchronisation.
Wherein, parsing module 901 is connect with module 801 is obtained, and receives the business number that main website is sent obtaining module 801 After packet, parsing module 901 by from parsed in business data packet characterization main website and slave station between time counter deviation Deviation, then the adjustment module 902 in slave station will adjust the time counter of itself according to obtained deviation, thus To guarantee the synchronous of time counter between slave station and main website.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (8)

1. the data transmission method in a kind of Industrial Ethernet characterized by comprising
Main website determines all slave stations that there is communication in current industrial Ethernet between the main website;
The main website determines itself data transfer path between each slave station;
Business data packet transmission sequence of the main website according to transmission path from the distant to the near, continuously issues the business of each slave station Data packet, the main website are issued to the in the same size of the business data packet of each slave station;
Wherein, carried in any business data packet for identify target slave that any business data packet is sent to from Station identifications, so that any slave station when receiving any business data packet, obtains in any business data packet From station identifications, however, it is determined that when the slave station identifications in any business data packet are matched with the slave station identifications that itself is saved, to institute It states main website and sends feedback data packet, however, it is determined that the slave station identifications of slave station identifications and itself preservation in any business data packet When mismatch, any business data packet is forwarded to next slave station, the feedback data packet includes that the slave station receives The time of reception of the business data packet and the sum of the feedback moment for sending the feedback data packet.
2. the method as described in claim 1, which is characterized in that in business number of the main website according to transmission path from the distant to the near According to packet transmission sequence, after the business data packet for continuously issuing each slave station, further includes:
Receive the feedback data packet that the slave station in the current industrial Ethernet returns;
Determine whether there is the slave station for not returning to feedback data packet;
If it exists, it is determined that the slave station for not returning to feedback data packet is failure slave station.
3. the data transmission method in a kind of Industrial Ethernet characterized by comprising
Slave station obtains in the business data packet received when receiving the business data packet that main website is sent for identifying the business The slave station identifications for the target slave that data packet is sent to, the main website are issued to the in the same size of the business data packet of each slave station;
If the slave station identifications in the business data packet received are matched with the slave station identifications that itself is saved, sends and feed back to main website Data packet;
If the slave station identifications of slave station identifications and itself preservation in the business data packet received mismatch, this is received Business data packet be forwarded to next slave station;
Wherein, feedback data packet is sent to main website, comprising:
The time of reception for receiving business data packet is obtained, and sends the feedback moment of feedback data packet;
It regard the sum of the time of reception and the feedback moment as synchronizing information, and the synchronizing information is added to described anti- It presents in data packet;
The feedback data packet for being added to synchronizing information is sent to main website.
4. method as claimed in claim 3, which is characterized in that after sending feedback data packet to main website, further includes:
In the deviation for obtaining the time counter deviation between characterization main website and slave station in the business data packet that this is received;
According to the deviation adjustment time counter, so that the time counter between the main website is synchronous.
5. the data transmission device in a kind of Industrial Ethernet characterized by comprising
First determining module, for determining all slave stations that there is communication in current industrial Ethernet between main website;
Second determining module, for the data transfer path between determining and each slave station;
Sending module continuously issues the industry of each slave station for the data packet transmission sequence according to transmission path from the distant to the near Business data packet, the main website are issued to the in the same size of the business data packet of each slave station;
Wherein, carried in any business data packet for identify target slave that any business data packet is sent to from Station identifications, so that any slave station when receiving any business data packet, obtains in any business data packet From station identifications, however, it is determined that when the slave station identifications in any business data packet are matched with the slave station identifications that itself is saved, to institute It states main website and sends feedback data packet, however, it is determined that the slave station identifications of slave station identifications and itself preservation in any business data packet When mismatch, any business data packet is forwarded to next slave station, the feedback data packet includes that the slave station receives The time of reception of the business data packet and the sum of the feedback moment for sending the feedback data packet.
6. device as claimed in claim 5, which is characterized in that described device further include:
Receiving module, for receiving the feedback data packet of the return of the slave station in the current industrial Ethernet;
Determination module, for determining whether to have the slave station for not returning to feedback data packet;
Processing module when for not returning to the slave station of feedback data packet in presence, determines that the slave station for not returning to feedback data packet is Failure slave station.
7. the data transmission device in a kind of Industrial Ethernet characterized by comprising
Module is obtained, for when receiving the business data packet that main website is sent, obtaining in the business data packet received for marking Know the slave station identifications for the target slave that the business data packet is sent to, the main website is issued to the business data packet of each slave station It is in the same size;
Processing module, if the slave station identifications in business data packet for receiving are matched with the slave station identifications of itself, to master It stands and sends feedback data packet;If the slave station identifications and the slave station identifications of itself in business data packet mismatch, by what is received Business data packet is forwarded to next slave station;
The processing module, comprising:
Acquiring unit, for obtaining the time of reception for receiving business data packet, and the feedback moment of transmission feedback data packet;
Processing unit for regarding the sum of the time of reception and the feedback moment as synchronizing information, and the synchronization is believed Breath is added in the feedback data packet;
Feedback unit, for sending the feedback data packet for being added to synchronizing information to main website.
8. device as claimed in claim 7, which is characterized in that described device further include:
Parsing module, for obtaining the time counter between characterization main website and slave station in the business data packet that this is received The deviation of deviation;
Module is adjusted, is used for according to the deviation adjustment time counter, so that the time counter between the main website It is synchronous.
CN201410036404.6A 2014-01-24 2014-01-24 Data transmission method and device in a kind of Industrial Ethernet Active CN104811422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410036404.6A CN104811422B (en) 2014-01-24 2014-01-24 Data transmission method and device in a kind of Industrial Ethernet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410036404.6A CN104811422B (en) 2014-01-24 2014-01-24 Data transmission method and device in a kind of Industrial Ethernet

Publications (2)

Publication Number Publication Date
CN104811422A CN104811422A (en) 2015-07-29
CN104811422B true CN104811422B (en) 2019-06-04

Family

ID=53695923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410036404.6A Active CN104811422B (en) 2014-01-24 2014-01-24 Data transmission method and device in a kind of Industrial Ethernet

Country Status (1)

Country Link
CN (1) CN104811422B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847050B (en) * 2016-03-23 2019-05-14 华中科技大学 A kind of the disconnection fault detection and the synchronous restoration methods of clock of Industrial Ethernet
CN106205107A (en) * 2016-06-23 2016-12-07 广州极汇信息科技有限公司 A kind of Intelligent shopping trolley management system and method
JP7326854B2 (en) * 2019-05-09 2023-08-16 株式会社ジェイテクト Control device and inter-module communication method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132328A (en) * 2007-08-15 2008-02-27 北京航空航天大学 Real-time industry Ethernet EtherCAT communication controller
CN101425948A (en) * 2008-10-23 2009-05-06 上海大学 Industrial wireless network access industrial Ethernet, multi-protocol gateway of field bus and protocol conversion method
CN104767605A (en) * 2014-01-07 2015-07-08 艾默生网络能源有限公司 Industrial Ethernet synchronization method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10113260B4 (en) * 2001-03-16 2005-10-20 Siemens Ag Synchronous, clocked communication system with relative clock and method for constructing such a system
WO2008064539A1 (en) * 2006-11-30 2008-06-05 Jiangang Yao A real-time and concentrating control of generating set for the grid energy saving and reduction of so2 discharge

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132328A (en) * 2007-08-15 2008-02-27 北京航空航天大学 Real-time industry Ethernet EtherCAT communication controller
CN101425948A (en) * 2008-10-23 2009-05-06 上海大学 Industrial wireless network access industrial Ethernet, multi-protocol gateway of field bus and protocol conversion method
CN104767605A (en) * 2014-01-07 2015-07-08 艾默生网络能源有限公司 Industrial Ethernet synchronization method and device

Also Published As

Publication number Publication date
CN104811422A (en) 2015-07-29

Similar Documents

Publication Publication Date Title
CN106776436B (en) A kind of communication means of the high-speed serial bus suitable for multiple spot interconnection
CN105281883B (en) Multi-channel synchronization method, synchronizing device and system
CN105491017B (en) The more equipment multi-protocol analysis method and system of RS485 buses
CN103782283B (en) Method and device for serial data transmission having a flexible message size and a variable bit length
CN103414547B (en) A kind of main website controls method, main website and the system of many slave stations
US20190230005A1 (en) Service function chain detection path method and device
CN104025522A (en) Expanding network functionalities for openflow based split-architecture networks
RU2014111963A (en) METHOD AND DEVICE FOR CHECKING THE CORRECTNESS OF FUNCTIONING OF SERIAL DATA TRANSFER
JP2019528614A (en) Error code detection method, apparatus, system, and computer-readable storage medium
CN104811422B (en) Data transmission method and device in a kind of Industrial Ethernet
CN104850526A (en) Method for time synchronization in dynamically reconfigurable high-speed serial bus
CN103684580B (en) The method of Remote Radio Unit and reporting links fault thereof, wireless communication system
JP2019534609A (en) Network management information receiving / transmitting method, apparatus, transmitting apparatus, and receiving apparatus
CN104601394A (en) Business chain connectivity detection method, device and system
CN104144094A (en) Method for operating slave node of digital bus system
CN105340223A (en) Apparatus and measurement method for ascertaining the internal delay time of a CAN bus access unit
CN105183687A (en) Time-sharing serial communication method and system
CN105812221B (en) The device and method of data transmission in virtual expansible Local Area Network
CN114243916B (en) Verification method and system for network topology
CN111315026B (en) Channel selection method, device, gateway and computer readable storage medium
CN104767633B (en) A kind of Industrial Ethernet system
CN103457797A (en) Method and device for detecting validity of RCPU port
CN102404152A (en) Method and equipment for identifying response messages
CN103825793A (en) Internet of things data message distributing equipment and method
CN103840934B (en) A kind of expense transmission method automatically recovered based on clock and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518055 No. 1001 Nanshan Chi Park building B2

Applicant after: Vitamin Technology Co., Ltd.

Address before: 518057 Nanshan District science and Technology Industrial Park, Guangdong, Shenzhen Branch Road, No.

Applicant before: Aimosheng Network Energy Source Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant