CN107483313B - Data acquisition method and system based on cascade Ethernet equipment - Google Patents

Data acquisition method and system based on cascade Ethernet equipment Download PDF

Info

Publication number
CN107483313B
CN107483313B CN201710961134.3A CN201710961134A CN107483313B CN 107483313 B CN107483313 B CN 107483313B CN 201710961134 A CN201710961134 A CN 201710961134A CN 107483313 B CN107483313 B CN 107483313B
Authority
CN
China
Prior art keywords
data
data frame
terminal
physical address
equipment
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
CN201710961134.3A
Other languages
Chinese (zh)
Other versions
CN107483313A (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.)
China Shipbuilding Digital Information Technology Co ltd
Original Assignee
CSIC Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CSIC Information Technology Co Ltd filed Critical CSIC Information Technology Co Ltd
Priority to CN201710961134.3A priority Critical patent/CN107483313B/en
Publication of CN107483313A publication Critical patent/CN107483313A/en
Application granted granted Critical
Publication of CN107483313B publication Critical patent/CN107483313B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

A data acquisition method based on cascade Ethernet equipment is used for data communication between a data summarizing terminal and a plurality of sets of acquisition terminals; the plurality of sets of acquisition terminals are connected through an Ethernet cable in a hand-in-hand manner and finally connected to the data summarizing terminal to form a cascade system of Ethernet interfaces; the method is based on the expansion of the data link layer of the Ethernet, and uses an identifier and a data field, wherein the length of the identifier is 2 bytes, and the value is larger than 0x5dc. The invention also discloses a data acquisition system. The method does not need configuration, and adapts to the quantity change of network equipment; the method is efficient and easy to realize, and the data communication has better real-time performance.

Description

Data acquisition method and system based on cascade Ethernet equipment
Technical Field
The invention relates to a data acquisition method, in particular to a data acquisition method based on cascade Ethernet, and also discloses a data acquisition system applying the data acquisition method.
Background
Industrial automation systems are evolving towards distributed, intelligent real-time control, where communication is critical, and ethernet is widely regarded as the best solution for future industrial networks due to its "one-to-bottom" reputation.
The data acquisition is an interface technology for acquiring data from the outside of a system and inputting the data into the inside of the system by using a device, and the data is repeatedly acquired at the same point at certain intervals (called sampling period), so that the data acquisition method is widely applied to various fields. With the rapid development of the internet industry, data acquisition combined with ethernet has been widely used in the internet and distributed fields, bringing data acquisition into a new era.
The periodic data acquisition adopts a working architecture of a client/server, a data summarizing end is used as the client, an acquisition terminal is used as the server, when the data summarizing end needs to acquire data, a command request is sent to the acquisition terminal, and the acquisition terminal responds to the command request and returns the data to be acquired. According to the communication flow, the data acquisition of other residual acquisition terminals is completed in one sampling period. The defects are that: the cascaded ethernet terminal devices need to specify IP addresses, and the IP addresses between the ports of adjacent devices must be in one network segment. The number of terminal devices cannot be dynamically adjusted, and when the number of cascade devices is increased or decreased, network connection configuration items of associated devices need to be modified to ensure that adjacent devices can access each other after the increase or decrease.
In addition, the number of cascade devices is increased, the number of required IP addresses is increased in multiple, the time for each device to operate the TCP/IP protocol stack cannot be ignored, and the real-time performance of data communication is greatly reduced.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a cascade Ethernet equipment-based data acquisition method which is free from configuration and adaptive to the quantity change of network equipment.
Another technical problem to be solved by the present invention is to provide a system applying the aforementioned data acquisition method.
The technical problems to be solved by the invention are realized by the following technical proposal. The invention relates to a data acquisition method based on cascade Ethernet equipment, which is characterized in that the method is used for data communication between a data summarizing terminal and a plurality of sets of acquisition terminals; the data summarizing terminal and the acquisition terminal are terminal equipment;
the plurality of sets of acquisition terminals are connected through an Ethernet cable in a hand-in-hand manner and finally connected to the data sink terminal to form a cascade system of Ethernet interfaces;
the method is based on the expansion of the data link layer of the Ethernet, and uses an identifier and a data field, wherein the length of the identifier is 2 bytes, and the value is larger than 0x5dc.
The data acquisition method based on cascade Ethernet equipment, which is disclosed by the invention, has the further preferable technical scheme that: for a data summarizing terminal or an acquisition terminal connected to the cascading system, a new data frame is received, whether the numerical value in the identifier domain is the same as the defined numerical value or not is judged, and if the numerical value is the same, a data acquisition method is adopted for processing; if not, then processing is performed by a standard protocol stack.
The data acquisition method based on cascade Ethernet equipment, which is disclosed by the invention, has the further preferable technical scheme that: using the first byte of the data field as a command code, and completing communication with different functions according to different values; designing a second byte of the data field as an auxiliary code; the definition of the command code is as follows:
(1) "0x1" means transmitting a data frame to a specified terminal device
The terminal equipment sends a data frame to the terminal equipment with the appointed hardware physical address, and the terminal equipment conforming to the address receives the data frame and performs corresponding functional processing according to the auxiliary code;
(2) "0x2" means a request in response to the command code "0x1
After receiving the data frame with the command code of 0x1, the terminal equipment replies the data frame with the command code of 0x 2;
(3) "0x3" means transmitting data frames to a plurality of terminal devices
The terminal equipment sends a data frame with a command code of 0x3 to other equipment in the whole cascade system, and the terminal equipment which receives the data frame carries out corresponding functional processing according to the auxiliary code;
(4) "0x4" means a request in response to the command code "0x3
After receiving the data frame with the command code of 0x3, the terminal equipment replies the data frame with the command code of 0x 4.
The data acquisition method based on cascade Ethernet equipment, which is disclosed by the invention, has the further preferable technical scheme that: the terminal equipment in the cascade system rapidly acquires the hardware physical addresses of the adjacent equipment and the serial equipment thereof by adopting the following method:
(1) The terminal equipment, namely the terminal equipment with the adjacent request direction, namely the response party 1, sends a data frame with the command code of 0x3, the source physical address in the data frame is the self physical address, the destination physical address is the broadcast address of all 1's, the auxiliary code is 1, and the 3 rd to 8 th positions of the data domain store the self physical address;
(2) After receiving the data frame, the responder 1 responds to the data frame with the command code of 0x4, the auxiliary code of 1, and the positions from 3 rd to 8 th of the data field store the physical address of the requester, and the positions from 9 th to 14 th of the data field store the physical address of the responder; meanwhile, the data frame is forwarded to the adjacent terminal equipment, namely the responder 2, through another port, and the source physical address is changed into the physical address of the responder 1 before forwarding;
(3) After receiving the data frame, the responder 2 responds to the data frame with the command code of 0x4, and forwards the data frame to the adjacent terminal equipment, namely the responder 3, through another port;
after receiving the response data frame of the response party 2, the response party 1 forwards the response data frame through another Ethernet port until the request party receives the response data frame;
(4) After receiving the response data frame of the response party 2, the response party 1 forwards the response data frame through another Ethernet port until the request party receives the response data frame;
(5) And so on until the last terminal device responds by sending a data frame with a command code of "0x 4".
The data acquisition method based on cascade Ethernet equipment, which is disclosed by the invention, has the further preferable technical scheme that: the data communication is carried out between any two terminal devices in the cascade system, the functions of configuration, control and alarm lamp are completed, the terminal device X and the terminal device Y carry out data communication, and a transfer device is arranged between the two devices, wherein the data communication method is as follows:
(1) The terminal equipment X sends a data frame with a command code of 0X1 to the adjacent transfer equipment, wherein the source physical address in the data frame is a broadcast address of which the destination physical address is all 1, the auxiliary code is 1, the 3 rd to 8 th positions of the data field store the physical address of the terminal Y, and the 9 th to 14 th positions of the data field store the physical address of the terminal Y;
(2) After the transfer equipment receives the data frame and judges that the 9 th to 14 th positions of the data domain are different from the physical address of the transfer equipment, the data frame is transferred through another Ethernet port, and the source physical address is changed into the physical address of the transfer equipment before the transfer;
(3) The terminal equipment Y receives the data frame forwarded by the transfer equipment, judges that the numerical value of the 9 th to 14 th positions of the data domain is the same as the physical address of the terminal equipment Y, and processes different functions according to the value of the auxiliary code;
(4) The terminal equipment Y sends a response data frame with a command code of 0X2 to the transfer equipment, the source physical address in the data frame is the address of the transfer equipment, the destination physical address is the address of the transfer equipment, the auxiliary code is 1, the 3 rd to 8 th positions of the data field store the physical address of the terminal equipment X, and the 9 th to 14 th positions of the data field store the physical address of the terminal equipment X;
(5) After the transfer equipment receives the data frame and judges that the command code is 0X2 and the values from 3 rd to 8 th of the data domain are different from the self address, the data frame is forwarded through another Ethernet port, the source physical address is changed into the physical address of the transfer equipment before forwarding, and the target physical address is the address of the terminal equipment X;
(6) After receiving the forwarding frame, the terminal device X determines that the command code is "0X2" and the values from 3 rd to 8 th of the data field are the same as the self address, and finally receives the response data frame of the terminal device Y.
The data acquisition method based on cascade Ethernet equipment, which is disclosed by the invention, has the further preferable technical scheme that: the data summarizing terminal initiates a communication request to a plurality of collecting terminals, and the data summarizing terminal is required to return the respective collected data to the data summarizing terminal, so that a one-to-many periodical data communication process is realized; in a communication period of 'one-to-many', the 'data summarizing end' only needs to send a command request once, and a plurality of 'acquisition terminals' respond in turn and return acquired data of the terminal:
(1) The data summarizing terminal, namely the acquisition terminal with the adjacent request direction, namely the response party 1, sends a data frame with the command code of 0x3, the source physical address in the data frame is the broadcast address of all 1's, the auxiliary code of 2's, and the 3 rd to 8 th positions of the data domain store the physical address of the data frame;
(2) After receiving the data frame, the responder 1 responds to the data frame with the command code of 0x4, the auxiliary code of 2, and the positions from 3 rd to 8 th of the data field store the physical address of the requester, and the positions from 9 th to 14 th of the data field store the physical address of the responder; meanwhile, the data frame is forwarded to the adjacent terminal equipment, namely the responder 2, through another port, and the source physical address is changed into the physical address of the responder 1 before forwarding;
(3) After receiving the data frame, the responder 2 responds to the data frame with the command code of 0x4, and forwards the data frame to the adjacent terminal equipment, namely the responder 3, through another port;
(4) After receiving the response data frame of the response party 2, the response party 1 forwards the response data frame through another Ethernet port until the request party receives the response data frame;
(5) And so on until the last terminal device responds by sending a data frame with a command code of "0x 4".
The technical problems to be solved by the invention can be further realized by the following technical scheme. The invention also discloses a data acquisition system based on the cascade Ethernet equipment for realizing the data acquisition method, which is characterized by comprising a data summarizing terminal and a plurality of sets of acquisition terminals, wherein the sets of acquisition terminals are connected by an Ethernet cable in a hand-in-hand manner and finally connected to the data summarizing terminal to form the cascade system of the Ethernet interface. Each acquisition terminal is provided with 2 Ethernet interfaces.
Based on the fact that the ethernet device can receive all "1" physical addresses or data frames identical to its own physical address, data frames not conforming to the physical address will be discarded. According to the principle, the invention designs the methods of 'quick physical address exchange', 'point-to-point communication' and 'one-to-many communication', and realizes the data acquisition method of the cascade Ethernet.
1. Unique identifier design
Data frames conforming to the identifier features of the present invention can only be processed by distinguishing the identifier from data frames such as TCP/IP. The identifier designed by the invention is compatible with the existing hardware network equipment and the standard software protocol stack. In other words, the terminal device adopting the invention can coexist with other standard network devices in a local area network.
2. The self-adaptive terminal equipment is increased or decreased without configuration
The user does not have to set the IP address, nor care whether the IP address is in a network segment. Even if the cascade network dynamically contracts and terminal equipment is increased or reduced, the method of the invention can still work normally without being influenced.
Compared with the prior art, the invention has the following advantages and technical effects:
(1) Configuration-free, adaptive network device number change
The user does not have to set the IP address, nor care whether the IP address is in a network segment. Even if the cascade network dynamically contracts and terminal equipment is increased or reduced, the method of the invention can still work normally without being influenced.
(2) High efficiency, easy realization, and better real-time performance of data communication
a) The prior art needs to run a huge TCP/IP protocol stack to forward a data frame, and the time spent is far longer than the time spent in the invention.
b) The method of the invention can be realized by FPGA (field programmable gate array) technology or custom chips, the receiving/processing/forwarding of the data frames can be performed in parallel, and the forwarding time of the data frames can be ignored.
Drawings
FIG. 1 is a schematic diagram of the overall cascade system architecture of the present invention;
FIG. 2 is a schematic diagram of an Ethernet data frame format;
FIG. 3 is a flow chart of a process of receiving a new data frame;
FIG. 4 is a schematic diagram of a fast hardware address exchange flow;
FIG. 5 is a schematic diagram of a point-to-point communication process;
fig. 6 is a schematic diagram of a one-to-many communication method.
Description of the embodiments
Specific embodiments of the invention will be further described below with reference to the accompanying drawings, in order to facilitate a further understanding of the invention by those skilled in the art, without limiting the scope of the claims thereto.
Embodiment 1, a cascade ethernet-based data acquisition method: the method is used for data communication between data summarizing terminals and N sets of acquisition terminals (N is more than or equal to 1).
N sets of 'acquisition terminals' are connected through an Ethernet cable in a hand-in-hand mode and finally connected to the 'data sink terminal', so that a cascade system structure of an Ethernet interface is formed. The overall cascade system architecture is shown in fig. 1.
The data acquisition method does not conflict with the existing HUB, switch and other network devices and TCP/IP and other standard protocol stacks.
The data acquisition method is extended based on a data link layer of the Ethernet, and uses an identifier and a data field, wherein the length of the identifier is 2 bytes, and the value is more than 0x5dc. As shown in fig. 2.
For a data summarizing terminal or an acquisition terminal connected to the cascading system, a new data frame is received, whether the numerical value in an identifier domain is the same as the numerical value defined by the method is judged, and if the numerical value is the same as the numerical value defined by the method, the method is adopted for processing; if different, then processing is done by a standard protocol stack (TCP/IP, etc.). The whole data frame processing flow is shown in fig. 3.
The method uses the first byte of the data field as a command code, and completes the communication of different functions according to different values. The present invention designs the second byte of the data field as an auxiliary code.
For convenience of description, the data summarizing terminal and the collecting terminal are simply called as terminal equipment.
Definition of command codes:
(1) "0x1" means transmitting a data frame to a specified terminal device
The terminal equipment sends a data frame to the terminal equipment with the appointed hardware physical address, and the terminal equipment conforming to the address receives the data frame and performs corresponding functional processing according to the auxiliary code.
(2) "0x2" means a request in response to the command code "0x1
After receiving the data frame with the command code of 0x1, the terminal equipment replies the data frame with the command code of 0x 2.
(3) "0x3" means transmitting data frames to a plurality of terminal devices
The terminal equipment sends a data frame with the command code of 0x3 to other equipment in the whole cascade system, and the terminal equipment which receives the data frame carries out corresponding functional processing according to the auxiliary code.
(4) "0x4" means a request in response to the command code "0x3
After receiving the data frame with the command code of 0x3, the terminal equipment replies the data frame with the command code of 0x 4.
The related communication method is as follows:
(1) Quick hardware address exchange method
The terminal equipment in the cascade system can rapidly acquire the hardware physical addresses of the adjacent equipment and the serial equipment thereof by using the method.
a) The terminal device (the requesting party) sends a data frame with a command code of 0x3 to the adjacent terminal device (the responding party 1), the source physical address in the data frame is a broadcast address with a destination physical address of all 1, the auxiliary code is 1, and the 3 rd to 8 th positions of the data domain store the physical address of the data frame.
b) After receiving the data frame, the responder 1 responds to the data frame with the command code of 0x4, the auxiliary code of 1, and the positions from 3 rd to 8 th of the data field store the physical address of the requester, and the positions from 9 th to 14 th of the data field store the physical address of the responder; and simultaneously, the data frame is forwarded to the adjacent terminal equipment (the responder 2) through another port, and the source physical address is changed into the physical address of the responder 1 before forwarding.
c) After receiving the data frame, the responder 2 responds to the data frame with the transmission command code of "0x4", and forwards the data frame to the adjacent terminal equipment (the responder 3) through another port.
After receiving the response data frame of the response party 2, the response party 1 forwards the response data frame through another Ethernet port until the request party receives the response data frame
d) After receiving the response data frame of the response party 2, the response party 1 forwards the response data frame through another Ethernet port until the request party receives the response data frame
e) And so on until the last terminal device responds by sending a data frame with a command code of "0x 4".
The whole process is shown in fig. 4. In the figure, "AB", "CD", "EF", etc. represent hardware addresses of terminal devices, as follows.
(2) Point-to-point data communication
And data communication is carried out between any two terminal devices in the cascade system, so that the functions of configuration, control and alarm lamp are completed.
The terminal X (AB) and the terminal Y (EF) communicate data, and a transfer device (CD) is provided between the two devices.
a) The terminal X sends a data frame with a command code of 0X1 to adjacent transfer equipment, the source physical address in the data frame is a broadcast address with a destination physical address of all 1, the auxiliary code is 1, the 3 rd to 8 th positions of the data field store the physical address of the terminal Y, and the 9 th to 14 th positions of the data field store the physical address of the terminal Y;
b) After the transfer equipment receives the data frame and judges that the 9 th to 14 th positions of the data domain are different from the physical address of the transfer equipment, the data frame is transferred through another Ethernet port, and the source physical address is changed into the physical address of the transfer equipment before the transfer;
c) The terminal Y receives the data frame forwarded by the transfer equipment, judges that the numerical value of the 9 th to 14 th positions of the data domain is the same as the physical address of the terminal Y, and processes different functions according to the value of the auxiliary code;
d) The terminal Y sends a response data frame with a command code of 0X2 to the transfer equipment, the source physical address in the data frame is the address of the transfer equipment, the destination physical address is the address of the transfer equipment, the auxiliary code is 1, the 3 rd to 8 th positions of the data field store the physical address of the terminal X, and the 9 th to 14 th positions of the data field store the physical address of the terminal X;
e) After the transfer equipment receives the data frame and judges that the command code is 0X2 and the values from 3 rd to 8 th of the data domain are different from the self address, the data frame is forwarded through another Ethernet port, the source physical address is changed into the physical address of the transfer equipment before forwarding, and the target physical address is the address of the terminal X;
f) After receiving the forwarding frame, the terminal X determines that the command code is "0X2" and the values from 3 rd to 8 th of the data field are the same as the self address, and finally receives the response data frame of the terminal Y.
The whole process is shown in fig. 5. In the figure, "XXXX", "YYYY", and the like denote data in a data frame, and the following is the same.
(3) One-to-many communication method
The data summarizing terminal initiates communication requests to a plurality of collecting terminals, and the data summarizing terminal is required to return the respective collected data to the data summarizing terminal, and the one-to-many communication is a periodical data communication process.
In a one-to-many communication period, the data summarizing end only needs to send a command request once, and a plurality of acquisition terminals respond in turn according to the method of the invention and return the acquired data of the terminals. The whole process is shown in fig. 6.
a) The data summarizing end (requesting party) sends a data frame with a command code of 0x3 to an adjacent acquisition terminal (responding party 1), the source physical address in the data frame is the broadcasting address of all 1's, the auxiliary code is 2, and the 3 rd to 8 th positions of the data domain store the physical address of the data frame.
b) After receiving the data frame, the responder 1 responds to the data frame with the command code of 0x4, the auxiliary code of 2, and the positions from 3 rd to 8 th of the data field store the physical address of the requester, and the positions from 9 th to 14 th of the data field store the physical address of the responder; and simultaneously, the data frame is forwarded to the adjacent terminal equipment (the responder 2) through another port, and the source physical address is changed into the physical address of the responder 1 before forwarding.
c) After receiving the data frame, the responder 2 responds to the data frame with the transmission command code of "0x4", and forwards the data frame to the adjacent terminal equipment (the responder 3) through another port.
d) After receiving the response data frame of the response party 2, the response party 1 forwards the response data frame through another Ethernet port until the request party receives the response data frame
e) And so on until the last terminal device responds by sending a data frame with a command code of "0x 4".
In embodiment 2, referring to fig. 1, a cascade ethernet device-based data acquisition system for implementing the data acquisition method described in embodiment 1 includes a "data summary terminal" and several sets of "acquisition terminals", where several sets of "acquisition terminals" are connected by an ethernet cable in a hand-in-hand manner and finally connected to the "data summary terminal" to form a cascade system of ethernet interfaces. Each acquisition terminal is provided with 2 Ethernet interfaces.

Claims (7)

1. The data acquisition method based on the cascade Ethernet equipment is characterized in that the method is used for data communication between a data summarizing terminal and a plurality of sets of acquisition terminals; the data summarizing terminal and the acquisition terminal are terminal equipment;
the plurality of sets of acquisition terminals are connected through an Ethernet cable in a hand-in-hand manner and finally connected to the data summarizing terminal to form a cascade system of Ethernet interfaces;
the method is based on the expansion of the data link layer of the Ethernet, uses an identifier and a data field, wherein the length of the identifier is 2 bytes, and the value is more than 0x5dc;
for a data summarizing terminal or an acquisition terminal connected to the cascading system, a new data frame is received, whether the numerical value in the identifier domain is the same as the defined numerical value or not is judged, and if the numerical value is the same, a data acquisition method is adopted for processing; if different, processing by a standard protocol stack;
using the first byte of the data field as a command code, and completing communication with different functions according to different values; the second byte of the data field is designed as an auxiliary code.
2. The cascade ethernet device-based data acquisition method of claim 1, wherein: the definition of the command code is as follows:
(1) "0x1" means transmitting a data frame to a specified terminal device
The terminal equipment sends a data frame to the terminal equipment with the appointed hardware physical address, and the terminal equipment conforming to the address receives the data frame and performs corresponding functional processing according to the auxiliary code;
(2) "0x2" means a request in response to the command code "0x1
After receiving the data frame with the command code of 0x1, the terminal equipment replies the data frame with the command code of 0x 2;
(3) "0x3" means transmitting data frames to a plurality of terminal devices
The terminal equipment sends a data frame with a command code of 0x3 to other equipment in the whole cascade system, and the terminal equipment which receives the data frame carries out corresponding functional processing according to the auxiliary code;
(4) "0x4" means a request in response to the command code "0x3
After receiving the data frame with the command code of 0x3, the terminal equipment replies the data frame with the command code of 0x 4.
3. The cascade ethernet device-based data acquisition method of claim 1, wherein the terminal device in the cascade system rapidly acquires the hardware physical address of the neighboring device and the tandem device thereof by using the following method:
(1) The terminal equipment, namely the terminal equipment with the adjacent request direction, namely the response party 1, sends a data frame with the command code of 0x3, the source physical address in the data frame is the self physical address, the destination physical address is the broadcast address of all 1's, the auxiliary code is 1, and the 3 rd to 8 th positions of the data domain store the self physical address;
(2) After receiving the data frame of 0x3, the responder 1 responds to the data frame with the command code of 0x4, the auxiliary code of 1, the 3 rd to 8 th positions of the data field store the physical address of the requester, and the 9 th to 14 th positions of the data field store the physical address of the responder; meanwhile, the 0x3 data frame is forwarded to the adjacent terminal equipment, namely the responder 2 through another port, and the source physical address is changed into the physical address of the responder 1 before forwarding;
(3) After receiving the data frame, the responder 2 responds to the data frame with the command code of 0x4, and forwards the 0x3 data frame to the adjacent terminal equipment, namely the responder 3, through another port;
(4) After receiving the response data frame of the response party 2, the response party 1 forwards the response data frame through another Ethernet port until the request party receives the response data frame;
(5) And so on until the last terminal device responds by sending a data frame with a command code of "0x 4".
4. The cascade ethernet device-based data acquisition method of claim 1, wherein data communication is performed between any two terminal devices in the cascade system to complete configuration, control, and alarm lamp functions, and the terminal device X and the terminal device Y perform data communication, and a transfer device is disposed between the two devices, and the data communication method comprises the following steps:
(1) The terminal equipment X sends a data frame with a command code of 0X1 to the adjacent transfer equipment, wherein the source physical address in the data frame is a broadcast address of which the destination physical address is all 1, the auxiliary code is 1, the 3 rd to 8 th positions of the data field store the physical address of the terminal Y, and the 9 th to 14 th positions of the data field store the physical address of the terminal Y;
(2) After the transfer equipment receives the data frame and judges that the 9 th to 14 th positions of the data domain are different from the physical address of the transfer equipment, the data frame is transferred through another Ethernet port, and the source physical address is changed into the physical address of the transfer equipment before the transfer;
(3) The terminal equipment Y receives the data frame forwarded by the transfer equipment, judges that the numerical value of the 9 th to 14 th positions of the data domain is the same as the physical address of the terminal equipment Y, and processes different functions according to the value of the auxiliary code;
(4) The terminal equipment Y sends a response data frame with a command code of 0X2 to the transfer equipment, the source physical address in the data frame is the address of the transfer equipment, the destination physical address is the address of the transfer equipment, the auxiliary code is 1, the 3 rd to 8 th positions of the data field store the physical address of the terminal equipment X, and the 9 th to 14 th positions of the data field store the physical address of the terminal equipment X;
(5) After the transfer equipment receives the data frame and judges that the command code is 0X2 and the values from 3 rd to 8 th of the data domain are different from the self address, the data frame is forwarded through another Ethernet port, the source physical address is changed into the physical address of the transfer equipment before forwarding, and the target physical address is the address of the terminal equipment X;
(6) And after the terminal equipment X receives the forwarding frame and judges that the command code is 0X2 and the values from 3 rd to 8 th of the data domain are the same as the self address, the terminal equipment X finally receives the response data frame of the terminal equipment Y.
5. The cascade ethernet equipment-based data acquisition method of claim 1, wherein the data aggregation terminal initiates communication requests to the plurality of acquisition terminals, and the acquisition terminals are required to return respective acquisition data to the data aggregation terminal, so as to realize a one-to-many periodic data communication process; in a one-to-many communication period, the data summarizing terminal only needs to send a command request once, and a plurality of collecting terminals respond in sequence and return the collected data of the terminal:
(1) The data summarizing terminal, namely the acquisition terminal with the adjacent request direction, namely the response party 1, sends a data frame with the command code of 0x3, the source physical address in the data frame is the data frame, the destination physical address is the broadcast address of all 1's, the auxiliary code is 2, and the 3 rd to 8 th positions of the data domain store the physical address of the data frame;
(2) After receiving the data frame of 0x3, the responder 1 responds to the data frame with the command code of 0x4, the auxiliary code of 2, the 3 rd to 8 th positions of the data field store the physical address of the requester, and the 9 th to 14 th positions of the data field store the physical address of the responder; meanwhile, the 0x3 data frame is forwarded to the adjacent terminal equipment, namely the responder 2 through another port, and the source physical address is changed into the physical address of the responder 1 before forwarding;
(3) After receiving the data frame, the responder 2 responds to the data frame with the command code of 0x4, and forwards the 0x3 data frame to the adjacent terminal equipment, namely the responder 3, through another port;
(4) After receiving the response data frame of the response party 2, the response party 1 forwards the response data frame through another Ethernet port until the request party receives the response data frame;
(5) And so on until the last terminal device responds by sending a data frame with a command code of "0x 4".
6. A cascade ethernet equipment-based data acquisition system for implementing the data acquisition method according to any one of claims 1-5, wherein the data acquisition system comprises a data summarizing terminal and a plurality of sets of acquisition terminals, the plurality of sets of acquisition terminals are connected by an ethernet cable in a hand-in-hand manner and finally connected to the data summarizing terminal to form a cascade system of an ethernet interface.
7. The data acquisition system based on cascade ethernet equipment for data acquisition method as recited in claim 6, wherein each acquisition terminal is provided with 2 ethernet interfaces.
CN201710961134.3A 2017-10-14 2017-10-14 Data acquisition method and system based on cascade Ethernet equipment Active CN107483313B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710961134.3A CN107483313B (en) 2017-10-14 2017-10-14 Data acquisition method and system based on cascade Ethernet equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710961134.3A CN107483313B (en) 2017-10-14 2017-10-14 Data acquisition method and system based on cascade Ethernet equipment

Publications (2)

Publication Number Publication Date
CN107483313A CN107483313A (en) 2017-12-15
CN107483313B true CN107483313B (en) 2023-09-08

Family

ID=60606519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710961134.3A Active CN107483313B (en) 2017-10-14 2017-10-14 Data acquisition method and system based on cascade Ethernet equipment

Country Status (1)

Country Link
CN (1) CN107483313B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2020250728A1 (en) * 2019-06-10 2020-12-17
CN110515885A (en) * 2019-08-20 2019-11-29 杭州嘉楠耘智信息科技有限公司 Computing system
CN114710480B (en) * 2022-04-08 2023-05-26 西南科技大学 Processing method and system for read-out electronic data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281229A (en) * 2013-05-03 2013-09-04 杭州正嘉数控设备有限公司 Motion control bus communication method based on Ethernet physical layer
CN106100703A (en) * 2016-06-16 2016-11-09 国网江苏省电力公司常州供电公司 The electric-power metering Site Detection bluetooth data means of communication
CN106875664A (en) * 2017-04-18 2017-06-20 连云港杰瑞深软科技有限公司 A kind of exclusive formula collecting method based on CAN
CN106921660A (en) * 2017-02-28 2017-07-04 国网福建省电力有限公司 A kind of method for supporting random communication protocol shared channel resources
CN107229586A (en) * 2017-06-09 2017-10-03 厦门尚为科技股份有限公司 Communication means based on RS485 bridge circuit devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105989380A (en) * 2015-01-30 2016-10-05 富泰华工业(深圳)有限公司 Data acquisition terminal and data acquisition system applying same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281229A (en) * 2013-05-03 2013-09-04 杭州正嘉数控设备有限公司 Motion control bus communication method based on Ethernet physical layer
CN106100703A (en) * 2016-06-16 2016-11-09 国网江苏省电力公司常州供电公司 The electric-power metering Site Detection bluetooth data means of communication
CN106921660A (en) * 2017-02-28 2017-07-04 国网福建省电力有限公司 A kind of method for supporting random communication protocol shared channel resources
CN106875664A (en) * 2017-04-18 2017-06-20 连云港杰瑞深软科技有限公司 A kind of exclusive formula collecting method based on CAN
CN107229586A (en) * 2017-06-09 2017-10-03 厦门尚为科技股份有限公司 Communication means based on RS485 bridge circuit devices

Also Published As

Publication number Publication date
CN107483313A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
US10521283B2 (en) In-node aggregation and disaggregation of MPI alltoall and alltoallv collectives
US8908704B2 (en) Switch with dual-function management port
CN107483313B (en) Data acquisition method and system based on cascade Ethernet equipment
US8571408B2 (en) Hardware accelerated data frame forwarding
CN104394080A (en) Method and device for achieving function of security group
WO2012055660A1 (en) Managing communication between different communication protocol networks
JP6752141B2 (en) Methods and forwarders for processing packets
US10609125B2 (en) Method and system for transmitting communication data
JP6627964B2 (en) SDN-based ARP implementation method and apparatus
WO2015108106A1 (en) Packet transfer device, control device, communication system, communication method, and program
JP2006262193A (en) Controller, packet transferring method, and packet processor
CN113612801B (en) EPA gateway equipment and EPA cross-network communication method
CN109088957B (en) NAT rule management method, device and equipment
US20070217392A1 (en) Programmbale controller and communication unit
CN100377550C (en) Routing table next-hop IP address to MAC address analytic method
US7428250B2 (en) System and associated method for receiving data telegrams in communication systems having redundant network paths
EP3032801B1 (en) Method and device for generating forwarding information
CN113330715A (en) Method for detecting network users in an automation network and automation network
EP3691210B1 (en) Flexible ethernet message forwarding method and apparatus
CN106875664B (en) Exclusive data acquisition method based on CAN bus
US8031713B2 (en) General multi-link interface for networking environments
CN105493454A (en) Active-active access to transparent interconnection of lots of links (TRILL) edges
CN112637081A (en) Bandwidth speed limiting method and device
US10038566B1 (en) Systems and methods for multicast message routing
CN113810261B (en) Apparatus and method for routing packets between a time-sensitive network and a non-time-sensitive network by operating a virtual area network tag

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 222000 No.42, Hailian East Road, Haizhou District, Lianyungang City, Jiangsu Province

Applicant after: CSIC Information Technology Co.,Ltd.

Address before: 222000 No.42, Hailian East Road, Haizhou District, Lianyungang City, Jiangsu Province

Applicant before: LIANYUNGANG JARI SHENRUAN TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 222000 No.42, Hailian East Road, Haizhou District, Lianyungang City, Jiangsu Province

Patentee after: China Shipbuilding Digital Information Technology Co.,Ltd.

Address before: 222000 No.42, Hailian East Road, Haizhou District, Lianyungang City, Jiangsu Province

Patentee before: CSIC Information Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder