CN114553350B - Deterministic low-delay message processing method - Google Patents
Deterministic low-delay message processing method Download PDFInfo
- Publication number
- CN114553350B CN114553350B CN202011327510.1A CN202011327510A CN114553350B CN 114553350 B CN114553350 B CN 114553350B CN 202011327510 A CN202011327510 A CN 202011327510A CN 114553350 B CN114553350 B CN 114553350B
- Authority
- CN
- China
- Prior art keywords
- circuit
- receiving
- signal
- local
- transmitting
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 9
- 238000012545 processing Methods 0.000 claims abstract description 83
- 230000003993 interaction Effects 0.000 claims abstract description 57
- 230000005540 biological transmission Effects 0.000 claims abstract description 31
- 238000000034 method Methods 0.000 claims abstract description 14
- 238000006243 chemical reaction Methods 0.000 claims description 50
- 238000012795 verification Methods 0.000 claims description 10
- 230000008569 process Effects 0.000 claims description 7
- 239000000284 extract Substances 0.000 claims description 3
- 238000009825 accumulation Methods 0.000 claims description 2
- 125000004122 cyclic group Chemical group 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 3
- 238000003780 insertion Methods 0.000 description 3
- 230000037431 insertion Effects 0.000 description 3
- 230000005577 local transmission Effects 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000003245 working effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L7/00—Automatic control of frequency or phase; Synchronisation
- H03L7/06—Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
- H03L7/08—Details of the phase-locked loop
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0015—Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
- H04L1/0017—Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy where the mode-switching is based on Quality of Service requirement
- H04L1/0018—Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy where the mode-switching is based on Quality of Service requirement based on latency requirement
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention relates to a rapid message processing method, in particular to a message processing circuit and a method which are used for an industrial network, are realized based on hardware, and have the characteristics of time certainty, low transmission delay and the like. The system comprises a receiving circuit, a digital phase-locked loop, a transmitting circuit and a local message interaction processing module. The circuit of the invention is oriented to an industrial network, and can provide low delay and low delay jitter based on hardware implementation. The method adopts the circuit structures of a fast forwarding circuit, a control state machine and the like, and provides lower and fixed message forwarding delay for messages which are not processed by industrial network nodes and only need to be forwarded to other nodes to be rapidly sent to a sending circuit. The circuit adopts circuit structures such as a digital phase-locked loop, a receiving circuit and the like, can synchronize a serial bus receiving signal to a local working clock, and can provide more accurate signal processing delay.
Description
Technical Field
The invention relates to a rapid message processing method, in particular to a message processing circuit and a method which are used for an industrial network, are realized based on hardware, and have the characteristics of time certainty, low transmission delay and the like.
Background
In the application scene of the industrial network, the certainty and low-delay index of message processing are important indexes of the industrial network, and the indexes are closely related to the performance of the industrial network system. The delay of message processing in the industrial network refers to the time spent by a certain node in the industrial network from the time of receiving the messages of other nodes to the time of starting to send the messages of the node; the certainty of message processing in an industrial network means that the delay jitter degree of the delay keeps a certain stability. The delay and the certainty among the network nodes have larger correlation with the performance of the industrial network system, and the technical indexes such as the response speed, the synchronization performance, the number of nodes, the minimum cycle period and the like of the industrial network system are determined.
The traditional industrial network message processing method comprises the following steps: whether the message is the message of the current node or not, the message is processed by a processor in the current node and then forwarded to the next node. In the process of processing the message by the node, the message needs to be processed by a processor or DMA, and is subjected to processes such as memory storage forwarding, so that larger delay is additionally introduced, and the controllability of delay jitter is poor. The message processing method adopts a hardware processing structure, and the message is directly transferred out of the sending port from the receiving port through fixed delay. Compared with the hardware message processing scheme, the traditional processing method has poorer performance in terms of time delay and certainty, and is not applicable to industrial network application scenes with strong real-time requirements; meanwhile, the clock at the network side is not synchronous with the local clock of the network node, so that the certainty of the data transmission delay cannot be ensured.
Disclosure of Invention
Aiming at the defects in the traditional industrial network message processing, the invention aims to provide a hardware-based low-delay deterministic message processing circuit and method for industrial network nodes, which are oriented to industrial network application scenes with strong real-time requirements. The circuit comprises two improvements on the traditional industrial network message processing circuit: firstly, a digital phase-locked loop circuit is added, and clock phase correction is carried out after a node receives a message and before the node sends the message; and secondly, a hardware processing structure is adopted, a fast forwarding circuit is added, and the message which is originally required to be processed by the memory store-and-forward structure is directly forwarded to the next node.
The technical scheme adopted by the invention for achieving the purpose is as follows:
a deterministic low-delay message processing method comprises the following steps:
the receiving circuit receives serial bus receiving signals from a network side, extracts an industrial network clock and outputs the industrial network clock to the digital phase-locked loop;
the digital phase-locked loop receives an industrial network clock and a local reference clock, generates a local working clock and a sending circuit clock, respectively sends the local working clock to the receiving circuit and the local message interaction processing module, and sends the sending circuit clock to the sending circuit;
the receiving circuit receives a local working clock, synchronizes a serial bus receiving signal to the local working clock, generates a serial bus receiving signal 1, and sends the serial bus receiving signal 1 to the local message interaction processing module;
the local message interaction processing module processes the serial bus receiving signal 1, generates a serial bus transmitting signal 1 and transmits the serial bus transmitting signal 1 to the transmitting circuit;
the transmitting circuit receives the serial bus transmitting signal 1 and transmits the serial bus transmitting signal to the industrial network in combination with the transmitting circuit clock.
The phase difference between the local working clock and the industrial network clock is kept fixed, and the phase difference between the sending circuit clock and the industrial network clock is kept fixed.
The processing of the serial bus receiving signal 1 by the local message interaction processing module comprises the following steps:
the checking circuit receives the serial bus receiving signal 1, generates a checking indication signal and sends the checking indication signal to the outside of the local message interaction processing module, namely other functional modules in the node;
the receiving serial-parallel conversion circuit receives a serial bus receiving signal 1 and a control signal 1 from a control state machine, converts the serial bus receiving signal 1 into parallel receiving data, sends the parallel receiving data to the outside of a local message interaction processing module, namely other functional modules in the local node, simultaneously generates a receiving timestamp latching signal, sends the receiving timestamp latching signal to the outside of the local message interaction processing module, namely other functional modules in the local node, and sends the parallel receiving data to the control state machine after receiving the control signal 1 from the control state machine;
the control state machine receives parallel received data, generates a received data field indication, sends the received data field indication to the outside of the local message interaction processing module, namely other functional modules in the node, sends a control signal 1 to a receiving serial-parallel conversion circuit, sends a control signal 2 to a sending parallel-serial conversion circuit, sends a control signal 3 to a fast forwarding circuit, and sends a control signal 4 to a verification generation circuit;
after receiving the control signal 2, the transmitting parallel-serial conversion circuit converts local parallel transmitting data from the outside of the local message interaction processing module into local transmitting data, transmits the local transmitting data to the fast forwarding circuit, and simultaneously generates a transmitting timestamp latching signal and transmits the transmitting timestamp latching signal to the outside of the local message interaction processing module, namely other functional modules in the node;
the fast forwarding circuit selectively processes the serial bus receiving signal 1 or local transmitting data according to the control signal 3 and transmits the serial bus receiving signal 1 or the local transmitting data as transmitting data to the verification generating circuit;
after receiving the transmission data, the check generating circuit generates transmission check data according to the control signal 4 and transmits the transmission check data to the quick forwarding circuit;
the fast forwarding circuit sends the serial bus receiving signal 1 or the local sending data plus the sending verification data as the serial bus sending signal 1 to the sending circuit according to the control signal 3.
The check indication signal is generated by any one of parity check, accumulation and check, or cyclic redundancy check.
A deterministic low latency message processing system comprising: the system comprises a receiving circuit, a digital phase-locked loop, a local message interaction processing module and a transmitting circuit, wherein:
the receiving circuit is used for receiving the serial bus receiving signal from the network side, extracting an industrial network clock, outputting the industrial network clock to the digital phase-locked loop and receiving a local working clock, synchronizing the serial bus receiving signal to the local working clock, generating a serial bus receiving signal 1, and sending the serial bus receiving signal 1 to the local message interaction processing module;
the digital phase-locked loop is used for receiving the industrial network clock and the local reference clock, generating a local working clock and a sending circuit clock, respectively sending the local working clock to the receiving circuit and the local message interaction processing module, and sending the sending circuit clock to the sending circuit;
the local message interaction processing module is used for processing the serial bus receiving signal 1, generating a serial bus sending signal 1 and sending the serial bus sending signal to the sending circuit;
and the transmitting circuit is used for receiving the serial bus transmitting signal 1 and transmitting the serial bus transmitting signal to the industrial network by combining a transmitting circuit clock.
The local message interaction processing module comprises: the system comprises a checking circuit, a receiving serial-parallel conversion circuit, a control state machine, a transmitting parallel-serial conversion circuit, a quick forwarding circuit and a checking generation circuit, wherein:
the checking and checking circuit is used for receiving the serial bus receiving signal 1, generating a checking indication signal and sending the checking indication signal to the outside of the local message interaction processing module;
the receiving serial-parallel conversion circuit is used for receiving the serial bus receiving signal 1 and the control signal 1 from the control state machine, converting the serial bus receiving signal 1 into parallel receiving data, sending the parallel receiving data to the outside of the local message interaction processing module, generating a receiving timestamp latching signal at the same time, sending the receiving timestamp latching signal to the outside of the local message interaction processing module, and sending the parallel receiving data to the control state machine after receiving the control signal 1 from the control state machine;
the control state machine is used for receiving parallel received data, generating a received data field indication, a control signal 1, a control signal 2, a control signal 3 and a control signal 4, sending the received data field indication to the outside of the local message interaction processing module, namely other functional modules in the node, sending the control signal 1 to a receiving serial-parallel conversion circuit for enabling serial-parallel conversion, sending the control signal 2 to a sending serial-parallel conversion circuit for controlling the conversion of local parallel sending data to local sending data, sending the control signal 3 to a quick forwarding circuit for controlling the multiplexing selection of the serial bus received signal 1, the local sending data and sending check data, and sending the control signal 4 to a check generation circuit for controlling the generation of sending check data;
the transmitting parallel-serial conversion circuit is used for converting the local parallel transmitting data from the outside of the local message interaction processing module into local transmitting data after receiving the control signal 2, transmitting the local parallel transmitting data to the fast forwarding circuit, generating a transmitting timestamp latching signal at the same time, and transmitting the transmitting timestamp latching signal to the outside of the local message interaction processing module;
the fast forwarding circuit is used for selectively processing the serial bus receiving signal 1 or the local transmitting data according to the control signal 3, transmitting the serial bus receiving signal 1 or the local transmitting data as transmitting data to the check generating circuit, and transmitting the serial bus receiving signal 1 or the local transmitting data plus the transmitting check data as the serial bus transmitting signal 1 to the transmitting circuit according to the control signal 3.
And the check generating circuit is used for generating the transmission check data according to the control signal 4 after receiving the transmission data and transmitting the transmission check data to the quick forwarding circuit.
The invention has the following beneficial effects and advantages:
1. the circuit of the invention is oriented to an industrial network, and can provide low delay and low delay jitter based on hardware implementation.
2. The circuit adopts circuit structures such as a digital phase-locked loop, a receiving circuit and the like, can synchronize a serial bus receiving signal to a local working clock, and can provide more accurate signal processing delay.
3. The invention adopts the circuit structures of a fast forwarding circuit, a control state machine and the like, and provides lower and fixed message forwarding delay for messages which are not processed by industrial network nodes and only need to be forwarded to other nodes to be rapidly sent to a sending circuit.
4. The circuit adopts circuit structures such as a digital phase-locked loop, a transmitting circuit and the like, and can adjust the clock of the serial bus transmitting signal 1 to a signal with a fixed phase difference with an industrial network clock, thereby avoiding the influence of local clock drift on industrial network data transmission.
Drawings
FIG. 1 is a block diagram of deterministic low latency message processing circuitry;
FIG. 2 is a schematic diagram of an industrial network circuit delay;
FIG. 3 is a schematic diagram of a fast forwarding circuit generating a message;
fig. 4 is a schematic diagram of the internal operation of the fast forwarding circuit;
FIG. 5 is a schematic diagram of the internal workings of the control state machine;
fig. 6 is a state transition diagram inside the state machine 1.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
When an asynchronous serial signal on the industrial network side passes through the receiving circuit, the receiving circuit can clock and sample the signal, and the serial signal is clock-synchronous with a local working clock.
The serial signal after clock synchronization is sent to a fast forwarding circuit, and the other path is sent to the local network node through a serial-parallel circuit; the local transmitting data can be changed into serial signals through the parallel-serial conversion circuit and sent to the quick forwarding circuit, the quick forwarding circuit can select to directly forward the serial signals from the network under the indication signal of the control state machine, the local serial data can also be transmitted, and meanwhile the check generating circuit is controlled to check the two serial data and generate check data.
The transmitting circuit adjusts the phase of the serial signal transmitted by the fast forwarding circuit according to the clock signal given by the digital phase-locked loop to form a signal with a fixed phase difference with the industrial network clock, and then the signal is transmitted to the industrial network.
The principle of the circuit of the invention is described as follows:
the receiving circuit is used for clock sampling of an asynchronous serial signal at the industrial network side, extracting of the clock signal at the industrial network side and clock synchronization of the asynchronous serial signal and a local working clock.
The digital phase-locked loop is used for generating a local working clock signal and a transmitting circuit clock signal which are at fixed phase offset with the industrial network clock according to the local reference clock and the industrial network clock.
The fast forwarding circuit acts like a selector, and under the instruction of the control signal 3 sent by the state control machine, the serial bus receiving signal 1 from the receiving circuit or the local transmitting data from the transmitting parallel-serial conversion circuit and the corresponding check data of the two data can be selected to be transmitted.
The function of the receiving serial-parallel conversion circuit is to convert the serial bus receiving signal 1 from the receiving circuit into multiple parallel signals, send the converted parallel receiving data to the local processor, and latch the time when the serial bus receiving signal 1 enters the receiving serial-parallel conversion circuit to generate a receiving timestamp latching signal.
The transmitting parallel-serial conversion circuit is used for carrying out parallel-serial conversion on local parallel transmission data from the local, transmitting the data after parallel-serial conversion to the fast forwarding circuit as local transmission data, and generating a transmission timestamp latching signal at the transmission moment.
The control state machine is used for receiving parallel received data from the receiving serial-parallel conversion circuit and then generating a received data field indication; the control signal 1, the control signal 2, the control signal 3 and the control signal 4 respectively control the serial-to-parallel conversion of the receiving serial-to-parallel conversion circuit, control the parallel-to-serial conversion of the transmitting parallel-to-serial conversion circuit, control the selection of the transmitting data of the quick forwarding circuit and control the generation and the transmission of the check data of the check generation circuit.
The function of the check circuit is to check the serial bus received signal 1 from the receiving circuit and check whether its check data is correct, and then generate a check indication signal.
The check generating circuit is used for performing check operation on the transmission data from the fast forwarding circuit under the instruction of the control signal 4 from the control state machine and sending the generated transmission check data back to the fast forwarding circuit.
The transmitting circuit adjusts the phase of the serial signal transmitted by the fast forwarding circuit according to the clock signal given by the digital phase-locked loop to form a signal with a fixed phase difference with the industrial network clock, and then transmits the signal to the industrial network.
The method of the invention comprises the following steps:
a. the receiving circuit receives serial bus receiving signals from a network side, extracts an industrial network clock and outputs the clock signals to the digital phase-locked loop;
b. the digital phase-locked loop receives an industrial network clock and a local reference clock from a receiving circuit, generates a local working clock and a sending circuit clock which keep a fixed phase difference with the industrial network clock, sends the local working clock to the receiving circuit and a local message interaction processing module, and sends the sending circuit clock to the sending circuit;
c. the receiving circuit receives a local working clock output by the digital phase-locked loop, synchronizes a serial bus receiving signal of a network side to the local working clock, generates a serial bus receiving signal 1, and sends the serial bus receiving signal 1 to a checking circuit, a receiving serial-parallel conversion circuit and a quick forwarding circuit of the local message interaction processing module;
d. the checking circuit receives the serial bus receiving signal 1 output by the receiving circuit, generates a checking indication signal and sends the checking indication signal to the outside of the local message interaction processing module;
e. the receiving serial-parallel conversion circuit receives a serial bus receiving signal 1 from the receiving circuit and a control signal 1 from the control state machine, converts the serial bus receiving signal 1 into parallel receiving data, sends the parallel receiving data to the outside of the local message interaction processing module, simultaneously generates a receiving timestamp latching signal, sends the receiving timestamp latching signal to the outside of the local message interaction processing module, and sends the parallel receiving data to the control state machine after receiving the control signal 1 from the control state machine;
f. the control state machine receives parallel received data from the receiving serial-parallel conversion circuit, generates a received data field indication, sends the received data field indication to the outside of the local message interaction processing module, sends a control signal 2 to the sending parallel-serial conversion circuit, sends a control signal 3 to the fast forwarding circuit, and sends a control signal 4 to the verification generating circuit;
g. after receiving the control signal 2, the transmitting parallel-serial conversion circuit converts local parallel transmitting data from the outside of the local message interaction processing module into local transmitting data, transmits the local transmitting data to the fast forwarding circuit, and simultaneously generates a transmitting timestamp latching signal and transmits the transmitting timestamp latching signal to the outside of the local message interaction processing module;
h. the fast forwarding circuit can selectively process the serial bus receiving signal 1 from the receiving circuit or the local transmitting data from the transmitting parallel-serial converting circuit under the instruction of the control signal 3, and sends the local transmitting data as transmitting data to the check generating circuit;
i. the check generating circuit receives the transmission data from the fast forwarding circuit, generates the transmission check data under the instruction of a control signal 4 from the control state machine and transmits the transmission check data to the fast forwarding circuit;
j. the fast forwarding circuit adds the serial bus receiving signal 1 or the local transmitting data with the transmitting check data under the instruction of the control signal 3, and then sends the serial bus receiving signal 1 or the local transmitting data to the transmitting circuit as the serial bus transmitting signal 1;
k. the transmitting circuit receives the serial bus transmitting signal 1 from the fast forwarding circuit and transmits the serial bus transmitting signal to the industrial network under the clock action of the transmitting circuit from the digital phase-locked loop.
The embodiment is written by using Verilog codes, and can be comprehensively realized by using a Synopsys DesignCompiler comprehensive tool.
The structural block diagram and the connection relation of the present embodiment are shown in fig. 1. In this embodiment, three kinds of data are transmitted, including the serial bus receiving signal 1, the local transmitting data, and the transmitting of the transmitting verification data. The embodiment only shows one implementation mode of the invention patent, and the variety of the transmitted data can be increased or decreased according to actual needs.
An input/output port of a deterministic low-delay message processing circuit implemented in this embodiment includes: the external input port comprises a serial bus receiving signal, a local reference clock and local parallel transmitting data; the external output port includes a serial bus transmit signal, a check indication signal, parallel receive data, receive timestamp latch signal, receive data field indication, transmit timestamp latch signal.
The functional modules of the deterministic low-delay message processing circuit comprise a receiving circuit module, a digital phase-locked loop module, a sending circuit module and a local message interaction processing module, wherein the local message interaction processing module comprises a checking circuit module, a fast forwarding circuit module, a receiving serial-parallel conversion circuit module, a control state machine module, a sending parallel-serial conversion circuit module and a checking generation module.
The connection relation of the present embodiment is as follows:
the external input serial bus receiving signal is connected to the receiving circuit module, and the receiving circuit module outputs the serial bus receiving signal 1 and the industrial network clock; the serial bus receiving signal 1 output by the receiving circuit module is connected to the local message interaction processing module;
the external input local reference clock is connected with the digital phase-locked loop module, the industrial network clock output by the receiving circuit is connected with the digital phase-locked loop module, and the digital phase-locked loop module outputs a local working clock and a sending circuit clock; the local working clock output by the digital phase-locked loop module is connected to the receiving circuit module and the local message interaction processing module, and the transmitting circuit clock output by the digital phase-locked loop module is connected to the transmitting circuit module;
the local message interaction processing module comprises a checking circuit module, a receiving serial-parallel conversion circuit module, a control state machine module, a quick forwarding circuit module, a transmitting parallel-serial conversion circuit module and a checking generation circuit module;
the serial bus receiving signal 1 output by the receiving circuit module is connected to a checking circuit module, a receiving serial-parallel circuit module and a quick forwarding circuit module in the local message interaction processing module;
the checking and checking circuit module outputs a checking indication signal to the outside;
the receiving serial-parallel conversion circuit module outputs parallel receiving data and a receiving timestamp latching signal to the outside, and outputs the parallel receiving data to the control state machine module;
the control state machine module outputs a control signal 1, a control signal 2, a control signal 3 and a control signal 4, and is respectively connected with the receiving serial-parallel conversion circuit module, the transmitting parallel-serial conversion circuit module, the quick forwarding circuit module and the verification generating circuit module to output a received data field indication to the outside;
the local parallel transmission data input from the outside is connected to the transmission parallel-serial conversion circuit module, and the transmission parallel-serial conversion circuit module outputs a transmission time stamp latching signal to the outside and outputs the local transmission data to the quick forwarding circuit module;
the quick forwarding circuit module outputs transmission data to the verification generating circuit module and outputs a serial bus transmission signal 1 to the transmitting circuit module;
the check generating circuit module outputs and sends check data to the quick forwarding circuit module;
the transmitting circuit module outputs a serial bus transmitting signal to the outside;
as shown in fig. 2, the circuit delay in this embodiment includes the delay of the receiving circuit module, the delay of the fast forwarding circuit module, and the delay of the transmitting circuit module.
As shown in fig. 3, the message generated by the fast forwarding circuit in this embodiment is selected from the serial bus receiving signal 1, the local transmitting data and the transmitting check data by the control signal 3.
The control state machine circuit principle is shown in fig. 5, wherein the received data analysis module adopts a general circuit structure, and functions are that a message start instruction, a data check start instruction, a message end instruction, a local data insertion start instruction and a local data insertion end instruction are extracted from parallel received data, the parallel received data is counted by the received data counter, a received data count value is output, the received data count value indicates current message receiving position information, the state machine 1 adopts a typical state machine circuit, the state transition is shown in fig. 6, and comprises an idle state, a state 1, a state 2 and a state 3, wherein the control signal 1 is reset, the control signal 2 is reset, the control signal 3 is reset, the control signal 4 is reset, the data receiving field indication signal indicates a reset state, the control signal 1 is set, the control signal 2 is reset, the control signal 3 is "serial bus receiving signal 1" strobe valid ", the data receiving field indication signal indicates a local data receiving state, the control signal 2 is set, the control signal 3 controls" local transmitting data "strobe valid", the data receiving field indication signal indicates a local data insertion state, the state 3 is shown in fig. 6, the state in which the idle state is shown in fig. 1, the state 3 is reset, the control signal 4 indicates the strobe signal valid, and the control signal indicates the state is set.
The principle of the fast forwarding circuit is shown in fig. 4, the multiplexer is controlled by a control signal 3, the control signal 3 gates the serial bus receiving signal 1, the local transmitting data and the transmitting check data respectively according to the state 1, the state 2 and the state 3 jump in the state controller, the selector outputs the transmitting data, and the transmitting data outputs the serial bus transmitting signal 1 after passing through the trigger. The trigger working clock is a local working clock, and the overall delay of the fast forwarding circuit is the trigger delay, namely the delay 2 in fig. 2.
Claims (4)
1. The deterministic low-delay message processing method is characterized by comprising the following steps of:
the receiving circuit receives serial bus receiving signals from a network side, extracts an industrial network clock and outputs the industrial network clock to the digital phase-locked loop;
the digital phase-locked loop receives an industrial network clock and a local reference clock, generates a local working clock and a sending circuit clock, respectively sends the local working clock to the receiving circuit and the local message interaction processing module, and sends the sending circuit clock to the sending circuit;
the receiving circuit receives a local working clock, synchronizes a serial bus receiving signal to the local working clock, generates a serial bus receiving signal 1, and sends the serial bus receiving signal 1 to the local message interaction processing module;
the local message interaction processing module processes the serial bus receiving signal 1, generates a serial bus transmitting signal 1 and transmits the serial bus transmitting signal 1 to the transmitting circuit;
the transmitting circuit receives the serial bus transmitting signal 1 and transmits the serial bus transmitting signal to the industrial network by combining a transmitting circuit clock;
the processing of the serial bus receiving signal 1 by the local message interaction processing module comprises the following steps:
the checking circuit receives the serial bus receiving signal 1, generates a checking indication signal and sends the checking indication signal to the outside of the local message interaction processing module, namely other functional modules in the node;
the receiving serial-parallel conversion circuit receives a serial bus receiving signal 1 and a control signal 1 from a control state machine, converts the serial bus receiving signal 1 into parallel receiving data, sends the parallel receiving data to the outside of a local message interaction processing module, namely other functional modules in the local node, simultaneously generates a receiving timestamp latching signal, sends the receiving timestamp latching signal to the outside of the local message interaction processing module, namely other functional modules in the local node, and sends the parallel receiving data to the control state machine after receiving the control signal 1 from the control state machine;
the control state machine receives parallel received data, generates a received data field indication, sends the received data field indication to the outside of the local message interaction processing module, namely other functional modules in the node, sends a control signal 1 to a receiving serial-parallel conversion circuit, sends a control signal 2 to a sending parallel-serial conversion circuit, sends a control signal 3 to a fast forwarding circuit, and sends a control signal 4 to a verification generation circuit;
after receiving the control signal 2, the transmitting parallel-serial conversion circuit converts local parallel transmitting data from the outside of the local message interaction processing module into local transmitting data, transmits the local transmitting data to the fast forwarding circuit, and simultaneously generates a transmitting timestamp latching signal and transmits the transmitting timestamp latching signal to the outside of the local message interaction processing module, namely other functional modules in the node;
the fast forwarding circuit selectively processes the serial bus receiving signal 1 or local transmitting data according to the control signal 3 and transmits the serial bus receiving signal 1 or the local transmitting data as transmitting data to the verification generating circuit;
after receiving the transmission data, the check generating circuit generates transmission check data according to the control signal 4 and transmits the transmission check data to the quick forwarding circuit;
the fast forwarding circuit sends the serial bus receiving signal 1 or the local sending data plus the sending verification data as the serial bus sending signal 1 to the sending circuit according to the control signal 3.
2. The method of claim 1, wherein the phase difference between the local operating clock and the industrial network clock is kept fixed, and the phase difference between the transmit circuit clock and the industrial network clock is kept fixed.
3. The method for processing deterministic low-latency messages according to claim 1, wherein said check indication signal is generated by any one of parity check, accumulation and check or cyclic redundancy check.
4. A deterministic low latency message processing system comprising: the system comprises a receiving circuit, a digital phase-locked loop, a local message interaction processing module and a transmitting circuit, wherein:
the receiving circuit is used for receiving the serial bus receiving signal from the network side, extracting an industrial network clock, outputting the industrial network clock to the digital phase-locked loop and receiving a local working clock, synchronizing the serial bus receiving signal to the local working clock, generating a serial bus receiving signal 1, and sending the serial bus receiving signal 1 to the local message interaction processing module;
the digital phase-locked loop is used for receiving the industrial network clock and the local reference clock, generating a local working clock and a sending circuit clock, respectively sending the local working clock to the receiving circuit and the local message interaction processing module, and sending the sending circuit clock to the sending circuit;
the local message interaction processing module is used for processing the serial bus receiving signal 1, generating a serial bus sending signal 1 and sending the serial bus sending signal to the sending circuit;
the transmitting circuit is used for receiving the serial bus transmitting signal 1 and transmitting the serial bus transmitting signal to the industrial network by combining a transmitting circuit clock;
the local message interaction processing module comprises: the system comprises a checking circuit, a receiving serial-parallel conversion circuit, a control state machine, a transmitting parallel-serial conversion circuit, a quick forwarding circuit and a checking generation circuit, wherein:
the checking and checking circuit is used for receiving the serial bus receiving signal 1, generating a checking indication signal and sending the checking indication signal to the outside of the local message interaction processing module;
the receiving serial-parallel conversion circuit is used for receiving the serial bus receiving signal 1 and the control signal 1 from the control state machine, converting the serial bus receiving signal 1 into parallel receiving data, sending the parallel receiving data to the outside of the local message interaction processing module, generating a receiving timestamp latching signal at the same time, sending the receiving timestamp latching signal to the outside of the local message interaction processing module, and sending the parallel receiving data to the control state machine after receiving the control signal 1 from the control state machine;
the control state machine is used for receiving parallel received data, generating a received data field indication, a control signal 1, a control signal 2, a control signal 3 and a control signal 4, sending the received data field indication to the outside of the local message interaction processing module, namely other functional modules in the node, sending the control signal 1 to a receiving serial-parallel conversion circuit for enabling serial-parallel conversion, sending the control signal 2 to a sending serial-parallel conversion circuit for controlling the conversion of local parallel sending data to local sending data, sending the control signal 3 to a quick forwarding circuit for controlling the multiplexing selection of the serial bus received signal 1, the local sending data and sending check data, and sending the control signal 4 to a check generation circuit for controlling the generation of sending check data;
the transmitting parallel-serial conversion circuit is used for converting the local parallel transmitting data from the outside of the local message interaction processing module into local transmitting data after receiving the control signal 2, transmitting the local parallel transmitting data to the fast forwarding circuit, generating a transmitting timestamp latching signal at the same time, and transmitting the transmitting timestamp latching signal to the outside of the local message interaction processing module;
the fast forwarding circuit is used for selectively processing the serial bus receiving signal 1 or the local transmitting data according to the control signal 3, transmitting the serial bus receiving signal 1 or the local transmitting data as transmitting data to the check generating circuit, and transmitting the serial bus receiving signal 1 or the local transmitting data plus the transmitting check data as the serial bus transmitting signal 1 to the transmitting circuit according to the control signal 3;
and the check generating circuit is used for generating the transmission check data according to the control signal 4 after receiving the transmission data and transmitting the transmission check data to the quick forwarding circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011327510.1A CN114553350B (en) | 2020-11-24 | 2020-11-24 | Deterministic low-delay message processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011327510.1A CN114553350B (en) | 2020-11-24 | 2020-11-24 | Deterministic low-delay message processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114553350A CN114553350A (en) | 2022-05-27 |
CN114553350B true CN114553350B (en) | 2023-09-05 |
Family
ID=81659199
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011327510.1A Active CN114553350B (en) | 2020-11-24 | 2020-11-24 | Deterministic low-delay message processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114553350B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008041022A (en) * | 2006-08-10 | 2008-02-21 | Yaskawa Electric Corp | I/o device, communication device, servomotor control device, control system and robot system |
JP3144078U (en) * | 2008-06-04 | 2008-08-14 | 冠宇國際電訊股▲ふん▼有限公司 | Baseband hardware transmission structure |
CN101394678A (en) * | 2008-11-07 | 2009-03-25 | 烽火通信科技股份有限公司 | Serialization/de-serialization interface module generally used in GEPON/GPON |
EP2680466A1 (en) * | 2012-06-26 | 2014-01-01 | ABB Research Ltd. | Low latency transparent clock |
CN104426873A (en) * | 2013-08-30 | 2015-03-18 | 中国科学院声学研究所 | Method and system for generating and sending IP (Internet Protocol) message based on user requirements |
CN105450321A (en) * | 2015-11-06 | 2016-03-30 | 瑞斯康达科技发展股份有限公司 | Network data transmission method and device |
CN106209691A (en) * | 2016-07-18 | 2016-12-07 | 南京磐能电力科技股份有限公司 | A kind of network port mirror method possessing independent mac source address |
CN206472148U (en) * | 2017-03-06 | 2017-09-05 | 南京曦光信息科技有限公司 | A kind of physical layer multicast Optical Switch Node device and network that can be integrated on piece |
CN207939521U (en) * | 2017-12-06 | 2018-10-02 | 云南电网有限责任公司大理供电局 | A kind of clock synchronization apparatus towards digital transformer substation debugging |
CN110943899A (en) * | 2019-12-13 | 2020-03-31 | 重庆邮电大学 | EPA industrial bus and time sensitive network adaptation system and method |
WO2020067977A1 (en) * | 2018-09-27 | 2020-04-02 | Telefonaktiebolaget Lm Ericsson (Publ) | Inter-working between a time-sensitive network and a cellular communication network |
CN111447031A (en) * | 2020-04-02 | 2020-07-24 | 桂林电子科技大学 | Network-on-chip router structure with clock synchronization function |
CN111600754A (en) * | 2020-05-11 | 2020-08-28 | 重庆邮电大学 | Industrial heterogeneous network scheduling method for interconnection of TSN (transmission time network) and non-TSN (non-Transmission time network) |
CN111726189A (en) * | 2020-06-15 | 2020-09-29 | 哈工大机器人(合肥)国际创新研究院 | Dual-core system clock synchronization method and device based on timestamp marking circuit |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080240168A1 (en) * | 2007-03-31 | 2008-10-02 | Hoffman Jeffrey D | Processing wireless and broadband signals using resource sharing |
US9106352B2 (en) * | 2012-02-27 | 2015-08-11 | Telefonaktiebolaget L M Ericsson (Publ) | Frequency distribution using precision time protocol |
US8836394B2 (en) * | 2012-03-26 | 2014-09-16 | Rambus Inc. | Method and apparatus for source-synchronous signaling |
-
2020
- 2020-11-24 CN CN202011327510.1A patent/CN114553350B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008041022A (en) * | 2006-08-10 | 2008-02-21 | Yaskawa Electric Corp | I/o device, communication device, servomotor control device, control system and robot system |
JP3144078U (en) * | 2008-06-04 | 2008-08-14 | 冠宇國際電訊股▲ふん▼有限公司 | Baseband hardware transmission structure |
CN101394678A (en) * | 2008-11-07 | 2009-03-25 | 烽火通信科技股份有限公司 | Serialization/de-serialization interface module generally used in GEPON/GPON |
EP2680466A1 (en) * | 2012-06-26 | 2014-01-01 | ABB Research Ltd. | Low latency transparent clock |
CN104426873A (en) * | 2013-08-30 | 2015-03-18 | 中国科学院声学研究所 | Method and system for generating and sending IP (Internet Protocol) message based on user requirements |
CN105450321A (en) * | 2015-11-06 | 2016-03-30 | 瑞斯康达科技发展股份有限公司 | Network data transmission method and device |
CN106209691A (en) * | 2016-07-18 | 2016-12-07 | 南京磐能电力科技股份有限公司 | A kind of network port mirror method possessing independent mac source address |
CN206472148U (en) * | 2017-03-06 | 2017-09-05 | 南京曦光信息科技有限公司 | A kind of physical layer multicast Optical Switch Node device and network that can be integrated on piece |
CN207939521U (en) * | 2017-12-06 | 2018-10-02 | 云南电网有限责任公司大理供电局 | A kind of clock synchronization apparatus towards digital transformer substation debugging |
WO2020067977A1 (en) * | 2018-09-27 | 2020-04-02 | Telefonaktiebolaget Lm Ericsson (Publ) | Inter-working between a time-sensitive network and a cellular communication network |
CN110943899A (en) * | 2019-12-13 | 2020-03-31 | 重庆邮电大学 | EPA industrial bus and time sensitive network adaptation system and method |
CN111447031A (en) * | 2020-04-02 | 2020-07-24 | 桂林电子科技大学 | Network-on-chip router structure with clock synchronization function |
CN111600754A (en) * | 2020-05-11 | 2020-08-28 | 重庆邮电大学 | Industrial heterogeneous network scheduling method for interconnection of TSN (transmission time network) and non-TSN (non-Transmission time network) |
CN111726189A (en) * | 2020-06-15 | 2020-09-29 | 哈工大机器人(合肥)国际创新研究院 | Dual-core system clock synchronization method and device based on timestamp marking circuit |
Non-Patent Citations (1)
Title |
---|
一种同步输出的稀疏树前导零检测电路;刘臻,王剑,王昊;《高技术通讯》;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114553350A (en) | 2022-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7912169B2 (en) | Synchronization device and semiconductor device | |
CN113535620A (en) | Multichannel synchronous high-speed data acquisition device | |
JP2747077B2 (en) | Frame synchronization circuit | |
CN100465934C (en) | Device and method for transmitting data in asynchronous clock domain | |
CN110222001B (en) | Feedback control system and feedback control method based on PXIe chassis | |
US20060193347A1 (en) | Serializer for generating serial clock based on independent clock source and method for serial data transmission | |
WO2014187375A2 (en) | System and method for accelerating and decelerating packets | |
JP4823056B2 (en) | Optical transmission system | |
CN102707766B (en) | signal synchronization device | |
TWI438605B (en) | Method and device for aligning multi - channel data in transmission system | |
CN114553350B (en) | Deterministic low-delay message processing method | |
JP2006511142A (en) | Frame synchronization device and method | |
JP2010098561A (en) | Serial signal receiving apparatus, serial transmission system and serial transmission method | |
US7881290B2 (en) | Serial interface circuit and serial receiver | |
JP5084954B2 (en) | In-station device, PON system, and data reception processing method | |
JP6413585B2 (en) | Transmission circuit, integrated circuit, and parallel-serial conversion method | |
CN108008676B (en) | Multi-processing unit relay protection system and synchronization method thereof | |
KR20060131876A (en) | Interface device and method for synchronizing data | |
CN111371524B (en) | Time synchronization precision detection system based on camera link protocol | |
JP2011045076A (en) | System and method for detection of multiple timing masters in network | |
US7375561B2 (en) | Timing adjustment circuit and method thereof | |
WO2001016774A1 (en) | A circuit design for high-speed digital communication | |
JP2003244085A (en) | Phase matching control system and phase matching control method in a plurality of system transmission lines | |
JP2007115036A (en) | Asynchronous transfer device and asynchronous transfer method | |
CN113193931B (en) | ARINC818 node time certainty transmission device and method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |