Pam3 signal transmission method and system for industrial ethernet
Patent Information
- Application Number
- CN202311558380.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-21
- Publication Date
- 2026-09-11
- Estimated Expiration
- 2043-11-21
AI Technical Summary
需要说明的是,依照现有协议,该过程中仅传输PAM3信号,而发射端侧的极性指示符会丢失,需要接收端自行进行恢复
[0060] Before each decoding step, an error can be determined by checking whether the currently received code group allows the current rx_disparity. If an rx_disparity error occurs, it is corrected using a special ternary code group. Recording rx_disparity errors and their counts reflects the channel's transmission status and is reflected upwards before data packets are transmitted in the IDLE state. This helps prevent significant errors during data packet transmission.
Smart Images

Figure CN117640014B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of industrial Ethernet communication technology, and specifically to a method and system for transmitting PAM3 signals in industrial Ethernet. Background Technology
[0002] 10BASE-T1L is a new Ethernet communication standard proposed in IEEE 802.3cg-2019. It can operate at a speed of 10Mb / s and transmit over lines up to 1000 meters, and is widely used in industrial Ethernet. In the PCS sublayer of 10BASE-T1L, the transmitter uses the 4B3T encoding rule to encode a four-bit signal into a PAM3 signal triary code group. The receiver then receives this code, decodes it in reverse to obtain the corresponding bit signal, and then processes it according to the corresponding protocol at the upper layer.
[0003] In existing technologies, the encoding and decoding process surrounding ternary code groups has been documented in protocols, primarily employing polarity indicators combined with... Figure 1 This is achieved using the 4B3T encoding table shown. Figure 1 As shown in Table 1, the Sdn[3:0] column corresponds to the original four-bit signal, the Code-Group column corresponds to the ternary code group in the actual transmission process, and Disparity is the polarity indicator, which changes during transmission and is associated with the polarity indicator of the previous ternary code group according to the Disparity Changes. From Table 1, it is easy to see that each four-bit binary code has 16 possibilities (0000-1111), and the ternary code group has 3... 3 =27 possibilities. As shown in the table, each four-bit binary code Sdn[3:0] can correspond to one or two ternary code groups {TAn, TBn, TCn}. Generally, during the encoding process, the transmitting end looks up the current polarity indicator (Disparity, e.g., 1, 2, 3, or 4) and the current four-bit signal to be transmitted (e.g., 0010). Based on these two items, it looks up the corresponding ternary code group and the change value of the polarity indicator, encodes it, and then sends it to the receiving end for decoding. It should be noted that, according to the existing protocol, only the PAM3 signal is transmitted during this process, and the polarity indicator on the transmitting end side is lost, requiring the receiving end to recover it manually. Summary of the Invention
[0004] To address the aforementioned problems in the existing technology, a method and system for PAM3 signal transmission in industrial Ethernet is provided.
[0005] The specific technical solution is as follows:
[0006] A PAM3 signal transmission method for industrial Ethernet, applicable to the receiving end, includes:
[0007] Step S1: Receive the ternary code group of the PAM3 signal sent by the transmitter, and obtain the polarity indicator of the previous cycle as the historical polarity indicator, and determine whether the ternary code group is a flag signal group corresponding to a specific polarity indicator.
[0008] If so, proceed to step S2;
[0009] If not, proceed to step S3;
[0010] Step S2: Obtain the corresponding unique polarity indicator according to the flag signal group, use the unique polarity indicator as the polarity indicator of the current cycle, and then proceed to step S4;
[0011] Furthermore, the process of performing step S2 also includes:
[0012] Step A2: Determine whether a transmission error has occurred based on the unique polarity indicator and the historical polarity indicator corresponding to the flag signal group, and output a transmission error signal when a transmission error occurs;
[0013] Step S3: Based on the ternary code group and the historical polarity indicator, polarity recovery is performed to obtain the polarity indicator, and then proceed to step S4;
[0014] Furthermore, the process of performing step S3 also includes:
[0015] Step A3: Based on the polarity indicator change value obtained by polarity recovery of the ternary code group and the historical polarity indicator, determine whether the transmission has failed, and output the transmission error signal when a transmission error occurs;
[0016] Step S4: Decode the ternary code group based on the polarity indicator to obtain the decoded signal, and then return to step S1 to obtain the next set of the ternary code group.
[0017] On the other hand, prior to performing step S1, a flag signal group determination process is included, which includes:
[0018] Step A01: Obtain the 4B3T encoding table, traverse and compare the multiple decoded signal groups contained in the 4B3T encoding table to obtain the decoded signal group that appears only once;
[0019] Step A02: Use the filtered decoded signal group as the flag signal group, and look up the polarity indicator corresponding to the flag signal group from the 4B3T encoding table;
[0020] Step A03: Use the polarity indicator as the unique polarity indicator, and establish a correspondence between the unique polarity indicator and the flag signal group to form a correction template.
[0021] On the other hand, step S1 includes:
[0022] Step S11: Receive the ternary code group sent by the transmitter, and obtain the polarity indicator of the previous cycle as the historical polarity indicator;
[0023] Step S12: Compare the ternary code group with the correction template in sequence to determine whether there is a matching correction template;
[0024] If so, proceed to step S2;
[0025] If not, proceed to step S3.
[0026] On the other hand, step S3 includes:
[0027] Step S31: Search the ternary code group to obtain the corresponding polarity indicator change value;
[0028] Step S32: Obtain the historical polarity indicator and use the polarity indicator change value to perform pre-update to obtain a pre-update indicator;
[0029] Step S33: Determine whether the pre-update indicator is within the feasible range of the indicator, so as to eliminate the infeasible polarity indicator change value;
[0030] Step S34: Retain the filtered polarity indicator change value, and update the polarity indicator according to the polarity indicator change value.
[0031] On the other hand, step A2 includes:
[0032] Step A21: Obtain the unique polarity indicator corresponding to the flag signal group and the corresponding polarity indicator change value;
[0033] Step A22: Determine whether the unique polarity indicator can be obtained based on the polarity indicator change value and the historical polarity indicator;
[0034] If so, it indicates that the transmission was correct;
[0035] If not, it indicates a transmission error, and the transmission error signal is generated.
[0036] An industrial Ethernet PAM3 signal transmission system for implementing the above-mentioned PAM3 signal transmission method includes:
[0037] The codeword filtering module receives the ternary code group sent by the transmitting end, and obtains the polarity indicator of the previous cycle as the historical polarity indicator, and determines whether the ternary code group is a flag signal group corresponding to a specific polarity indicator.
[0038] The first indicator generation module is connected to the codeword filtering module. When the flag signal group appears, the first indicator generation module obtains the corresponding unique polarity indicator according to the flag signal group and uses the unique polarity indicator as the polarity indicator of the current period.
[0039] The first transmission error detection module is connected to the codeword filtering module. The transmission error detection module determines whether the transmission is erroneous according to the unique polarity indicator and the historical polarity indicator corresponding to the flag signal group, and outputs a transmission error signal when a transmission error occurs.
[0040] The second indicator generation module is connected to the codeword filtering module. When the flag signal group does not appear, the second indicator generation module performs polarity recovery based on the ternary code group and the historical polarity indicator to obtain the polarity indicator.
[0041] The second transmission error detection module is connected to the second indicator generation module. The second transmission error detection module determines whether the transmission is erroneous based on the polarity indicator change value obtained by polarity recovery of the ternary code group and the historical polarity indicator, and outputs the transmission error signal when a transmission error occurs.
[0042] The decoding module is connected to the first indicator generation module and the second indicator generation module respectively. The decoding module decodes the ternary code group based on the polarity indicator to obtain the decoded signal.
[0043] On the other hand, it also includes a flag signal group determination module, which includes:
[0044] A lookup module obtains a 4B3T encoding table, traverses and compares multiple decoded signal groups contained in the 4B3T encoding table, and obtains the decoded signal group that appears only once.
[0045] An indicator lookup module is connected to the table lookup module. The indicator lookup module takes the filtered decoded signal group as the flag signal group and looks up the polarity indicator corresponding to the flag signal group from the 4B3T encoding table.
[0046] A template generation module is connected to the indicator lookup module. The template generation module uses the polarity indicator as the unique polarity indicator and establishes a correspondence between the unique polarity indicator and the flag signal group to form a modified template.
[0047] On the other hand, the codeword filtering module includes:
[0048] The data acquisition module receives the ternary code group sent by the sending end, and acquires the polarity indicator of the previous cycle as the historical polarity indicator.
[0049] A template matching module is connected to the data acquisition module. The template matching module matches the decoded signal group with the correction template in sequence, determines whether there is a matching correction template, and generates a determination result.
[0050] An enabling module is connected to the template matching module, and the enabling module controls the first indicator generation module or the second indicator generation module according to the judgment result.
[0051] On the other hand, the second indicator generation module includes:
[0052] A pre-lookup module searches the ternary code group to obtain the corresponding polarity indicator change value;
[0053] A pre-update module is connected to the pre-lookup module. The pre-update module obtains the historical polarity indicator and uses the polarity indicator change value to perform pre-update to obtain a pre-update indicator.
[0054] An indicator comparison module is connected to the pre-update module. The indicator comparison module determines whether the pre-update indicator is within the feasible range of indicators, so as to eliminate infeasible polarity indicator change values.
[0055] The indicator update module retains the filtered polarity indicator change value and updates the polarity indicator according to the polarity indicator change value.
[0056] On the other hand, the transmission error detection module includes:
[0057] The parameter acquisition module acquires the unique polarity indicator corresponding to the flag signal group and the corresponding polarity indicator change value;
[0058] A transmission discrimination module is connected to the parameter acquisition module. The transmission discrimination module determines whether the unique polarity indicator can be obtained based on the polarity indicator change value and the historical polarity indicator, and generates a transmission error signal according to the discrimination result.
[0059] The above technical solution has the following advantages or beneficial effects:
[0060] Before each decoding step, an error can be determined by checking whether the currently received code group allows the current rx_disparity. If an rx_disparity error occurs, it is corrected using a special ternary code group. Recording rx_disparity errors and their counts reflects the channel's transmission status and is reflected upwards before data packets are transmitted in the IDLE state. This helps prevent significant errors during data packet transmission. Attached Figure Description
[0061] Embodiments of the invention will be described more fully with reference to the accompanying drawings. However, the drawings are for illustration and explanation only and do not constitute a limitation on the scope of the invention.
[0062] Figure 1 This is an overall schematic diagram of an embodiment of the present invention;
[0063] Figure 2 This is a schematic diagram of the ternary code group transmission method in an embodiment of the present invention;
[0064] Figure 3 This is a schematic diagram of the flag signal group in an embodiment of the present invention;
[0065] Figure 4 This is a schematic diagram of the flag signal group determination process in an embodiment of the present invention;
[0066] Figure 5 This is a schematic diagram of sub-step S1 in an embodiment of the present invention;
[0067] Figure 6 This is a schematic diagram of sub-step S3 in an embodiment of the present invention;
[0068] Figure 7 This is a schematic diagram of sub-step A2 in an embodiment of the present invention;
[0069] Figure 8 This is a schematic diagram of a ternary code group transmission system in an embodiment of the present invention;
[0070] Figure 9 This is a schematic diagram of the flag signal group determination module in an embodiment of the present invention;
[0071] Figure 10 This is a schematic diagram of the codeword filtering module in an embodiment of the present invention;
[0072] Figure 11 This is a schematic diagram of the second indicator generation module in an embodiment of the present invention;
[0073] Figure 12 This is a schematic diagram of the transmission error judgment module in an embodiment of the present invention. Detailed Implementation
[0074] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0075] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other.
[0076] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, but this is not intended to limit the scope of the invention.
[0077] This invention includes:
[0078] A method for PAM3 signal transmission in industrial Ethernet, such as Figure 2 As shown, it includes:
[0079] Step S1: Receive the ternary code group sent by the transmitter, and obtain the polarity indicator of the previous cycle as the historical polarity indicator, and determine whether the ternary code group is a flag signal group corresponding to a specific polarity indicator.
[0080] If so, proceed to step S2;
[0081] If not, proceed to step S3;
[0082] Step S2: Obtain the corresponding unique polarity indicator according to the flag signal group, use the unique polarity indicator as the polarity indicator of the current cycle, and then proceed to step S4;
[0083] Furthermore, the process of executing step S2 also includes:
[0084] Step A2: Determine whether a transmission error has occurred based on the unique polarity indicator and historical polarity indicator corresponding to the flag signal group, and output a transmission error signal when a transmission error occurs;
[0085] Step S3: Based on the ternary code group and the historical polarity indicator, polarity is recovered to obtain the polarity indicator, and then proceed to step S4;
[0086] Furthermore, the process of executing step S3 also includes:
[0087] Step A3: Determine whether there is a transmission error based on the polarity indicator change value obtained by polarity recovery of the ternary code group and the historical polarity indicator, and output a transmission error signal when a transmission error occurs;
[0088] Step S4: Decode the ternary code group based on the polarity indicator to obtain the decoded signal, and then return to step S1 to obtain the next ternary code group.
[0089] In implementation, the above scheme is mainly configured as a software embodiment in the receiving end for the decoding process. The communication and interaction between the transmitting and receiving ends mainly follow the procedures specified in the existing IEEE 802.3cg-2019 protocol, including handshake, signal encoding by the transmitting end, transmission after encoding, and local decoding by the receiving end followed by upper-layer processing. The main difference lies in the addition of steps to the original receive IDLE decoding process: detecting specific flag signal groups, replacing them according to the corresponding unique polarity indicator, and correcting and recording polarity indicator errors. Specifically, according to the protocol, at the PCS receiving end, the receiver decodes the received ternary codeword Rxn-4, and then performs descrambling and synchronization. Decoding restores the 4-bit signal according to Table 2. It is worth noting that the received signal only contains PAM3, and the rx_disparity information will be lost. Therefore, the initial rx_disparity needs to be confirmed through eight flag signal groups. Flag signal groups refer to... Figure 1 The ternary code group that appears only once in the 4B3T encoding table is obviously determined because it only appears once in the 4B3T encoding table. Based on this, the polarity indicator on the receiving end can be effectively calibrated without being affected by the cumulative errors of previous polarity recovery. Figure 3 All available ternary code groups in the 4B3T encoding table are given, totaling eight, and are marked with dashed boxes.
[0090] In one embodiment, a flag signal group determination process is further included before performing step S1, such as... Figure 4 As shown, the process of determining the flag signal group includes:
[0091] Step A01: Obtain the 4B3T encoding table, traverse and compare the multiple decoded signal groups contained in the 4B3T encoding table to obtain the decoded signal group that appears only once;
[0092] Step A02: Use the filtered decoded signal group as the flag signal group, and find the polarity indicator corresponding to the flag signal group from the 4B3T encoding table;
[0093] Step A03: Use the polarity indicator as the unique polarity indicator and establish a correspondence between the unique polarity indicator and the flag signal group to form a correction template.
[0094] Specifically, to achieve better processing results during implementation, this embodiment pre-processes a traversal and comparison of the 4B3T encoding table to obtain the aforementioned decoded signal groups that appear only once as flag signal groups. Subsequently, the corresponding polarity indicator is further searched based on the flag signal groups, serving as the corresponding unique polarity indicator. To achieve better processing results, the paired unique polarity indicators and flag signal groups are stored as a whole correction module. During subsequent matching and searching, only the correction module needs to be searched sequentially to achieve simultaneous searching of the unique polarity indicators and flag signal groups.
[0095] In one embodiment, such as Figure 5 As shown, step S1 includes:
[0096] Step S11: Receive the ternary code group sent by the transmitter, and obtain the polarity indicator of the previous cycle as the historical polarity indicator;
[0097] Step S12: Compare the ternary code group with the correction template in turn to determine whether there is a matching correction template;
[0098] If so, proceed to step S2;
[0099] If not, proceed to step S3.
[0100] Specifically, after the aforementioned process of pre-constructing the modified template, this modified template can be further used for matching. Specifically, upon receiving a new ternary code group, the ternary code group and the historical polarity indicator are obtained respectively. Then, the ternary code group is sequentially matched with the flag signal groups in the modified template to determine if a matching flag signal group exists, and the corresponding polarity identifier update method is selected based on the matching result. At this point, if a corresponding flag signal group appears, the corresponding unique polarity indicator can be directly obtained and used according to the modified template, improving processing efficiency.
[0101] In one embodiment, such as Figure 6 As shown, step S3 includes:
[0102] Step S31: Search the ternary code group to obtain the corresponding polarity indicator change value;
[0103] Step S32: Obtain the historical polarity indicator and use the polarity indicator change value to perform pre-update to obtain the pre-update indicator;
[0104] Step S33: Determine whether the pre-update indicator is within the feasible range of indicators in order to eliminate infeasible polarity indicator change values;
[0105] Step S34: Retain the filtered polarity indicator change values and update the polarity indicator according to the polarity indicator change values.
[0106] Specifically, to achieve a better polarity update effect, in this embodiment, after searching the ternary code group, the corresponding polarity indicator change value is obtained. At this time, there may be multiple matching polarity indicator change values in the ternary code group. For each polarity indicator change value, a pre-update is performed based on the historical polarity indicator to obtain a pre-update indicator. Then, it is determined whether the pre-update indicator is within the feasible range of indicators 1-4, thereby eliminating infeasible polarity indicator change values to complete the polarity update process.
[0107] In one embodiment, such as Figure 7 As shown, step A2 includes:
[0108] Step A21: Obtain the unique polarity indicator corresponding to the flag signal group and the corresponding polarity indicator change value;
[0109] Step A22: Determine whether a unique polarity indicator can be obtained based on the polarity indicator change value and the historical polarity indicator;
[0110] If so, it indicates that the transmission was correct;
[0111] If not, it indicates a transmission error and a transmission error signal is generated.
[0112] Specifically, to further control the transmission process, this embodiment adjusts the processing state, setting it to a SEND IDLE state on the transmitter side. The process involves judging the polarity indicator change value and determining whether an error will occur during the pre-update of the polarity indicator. If an error occurs, it indicates that a transmission error occurred in the ternary code group during previous transmissions, leading to accumulated errors in the polarity indicator itself. In this case, a transmission error signal needs to be generated and returned to the transmitter and the upper layer of the receiver for data verification, retransmission, or re-handshake processing using appropriate protocols. Simultaneously, the transmitter can use the received transmission error signal to judge the transmission state and estimate the transmission environment based on the number of received transmission error signals. Since the above process mainly occurs on the transmitter side in a SEND IDLE state, it does not affect the corresponding data transmission process, allowing the transmitter to adjust the transmission process before data transmission.
[0113] An industrial Ethernet PAM3 signal transmission system is provided for implementing the aforementioned PAM3 signal transmission method, such as... Figure 8 As shown, it includes:
[0114] Codeword filtering module 1 receives the ternary code group sent by the transmitter and obtains the polarity indicator of the previous cycle as the historical polarity indicator to determine whether the ternary code group is a flag signal group corresponding to a specific polarity indicator.
[0115] First indicator generation module 2 is connected to codeword filtering module 1. When a flag signal group appears, the first indicator generation module 2 obtains the corresponding unique polarity indicator according to the flag signal group and uses the unique polarity indicator as the polarity indicator of the current period.
[0116] The first transmission error detection module 2A is connected to the code word filtering module 1. The first transmission error detection module 2A determines whether the transmission is erroneous according to the unique polarity indicator and historical polarity indicator corresponding to the flag signal group, and outputs a transmission error signal when a transmission error occurs.
[0117] The second indicator generation module 3 is connected to the code word filtering module 1. When no flag signal group appears, the second indicator generation module 3 performs polarity recovery based on the ternary code group and the historical polarity indicator to obtain the polarity indicator.
[0118] The second transmission error detection module 3A is connected to the second indicator generation module 3. The second transmission error detection module 3A determines whether the transmission is erroneous based on the polarity indicator change value obtained by polarity recovery of the ternary code group and the historical polarity indicator, and outputs the transmission error signal when the transmission is erroneous.
[0119] Decoding module 4 is connected to the first indicator generation module 2 and the second indicator generation module 3 respectively. Decoding module 4 decodes the ternary code group based on the polarity indicator to obtain the decoded signal.
[0120] Specifically, addressing the problem in existing technologies where incorrect polarity recovery symbols during polarity recovery at the receiver continuously affect the decoding of subsequent ternary code groups, leading to an increased bit error rate, this embodiment adds a codeword filtering module 1 to the process of the receiver sequentially receiving ternary code groups sent by the transmitter. This module determines whether the decoded signal group corresponds to a specific polarity indicator. If so, the polarity indicator corresponding to the indicator group should be definite and unique. The first indicator generation module 2 then directly replaces the polarity indicator to be updated with the corresponding unique polarity indicator, using it as the polarity indicator for subsequent decoding. If not, the second indicator generation module 3 performs polarity recovery according to the normal process to obtain the polarity indicator for the current period. Subsequently, the decoding module 4 uses the polarity indicator obtained in the above process to perform decoding processing to obtain the decoded signal, and then enters the next period for receiving ternary code groups.
[0121] In one embodiment, a flag signal group determination module 5 is also included, such as... Figure 9 As shown, the flag signal group determination module 5 includes:
[0122] The lookup module 51 retrieves the 4B3T encoding table, traverses and compares the multiple decoded signal groups contained in the 4B3T encoding table, and obtains the decoded signal group that appears only once.
[0123] The indicator lookup module 52 is connected to the table lookup module 51. The indicator lookup module 52 takes the filtered decoded signal group as the flag signal group and looks up the polarity indicator corresponding to the flag signal group from the 4B3T encoding table.
[0124] Template generation module 53 connects to indicator lookup module 52. Template generation module 53 uses the polarity indicator as the unique polarity indicator and establishes a correspondence between the unique polarity indicator and the flag signal group to form a modified template.
[0125] Specifically, to achieve better processing results during implementation, in this embodiment, the lookup module 51 pre-performs a traversal and comparison process for the 4B3T encoding table, thereby obtaining the decoded signal group that appears only once as the flag signal group. Subsequently, the indicator lookup module 52 further searches for the corresponding polarity indicator based on the flag signal group, which serves as the corresponding unique polarity indicator. To achieve better processing results, the template generation module 53 saves the paired unique polarity indicators and flag signal groups as a whole correction module. During subsequent matching and searching, it is only necessary to search the correction module sequentially to achieve simultaneous searching of unique polarity indicators and flag signal groups.
[0126] In one embodiment, such as Figure 10 As shown, the codeword filtering module 1 includes:
[0127] The data acquisition module 11 receives the ternary code group sent by the transmitter and acquires the polarity indicator of the previous cycle as the historical polarity indicator.
[0128] Template matching module 12 is connected to data acquisition module 11. Template matching module 12 matches the decoded signal group with the correction template in sequence, determines whether there is a matching correction template, and generates a judgment result.
[0129] Enable module 13, which is connected to template matching module 12, controls the first indicator generation module 2 or the second indicator generation module 3 according to the judgment result.
[0130] Specifically, after the aforementioned process of pre-constructing the modified template, the modified template can be further used for matching. Specifically, when the data acquisition module 11 receives a new ternary code group, it acquires the ternary code group and the historical polarity indicator respectively. Subsequently, the template matching module 12 matches the ternary code group sequentially with the flag signal groups in the modified template to determine whether a matching flag signal group exists. The enabling module 13 then selects the corresponding polarity identifier update method based on the matching result.
[0131] In one embodiment, such as Figure 11 As shown, the second indicator generation module 3 includes:
[0132] The pre-lookup module 31 searches the ternary code group to obtain the corresponding polarity indicator change value;
[0133] Pre-update module 32 is connected to pre-lookup module 31. Pre-update module 32 obtains historical polarity indicators and uses the polarity indicator change value to perform pre-update to obtain pre-update indicators.
[0134] Indicator comparison module 33 is connected to pre-update module 32. Indicator comparison module 33 determines whether the pre-update indicator is within the feasible range of indicators in order to eliminate infeasible polarity indicator change values.
[0135] Indicator update module 34 retains the filtered polarity indicator change value and updates the polarity indicator according to the polarity indicator change value.
[0136] Specifically, to achieve a better polarity update effect, in this embodiment, the pre-lookup module 31 obtains the corresponding polarity indicator change value after searching the ternary code group. At this time, there may be multiple matching polarity indicator change values for the ternary code group. For each polarity indicator change value, the pre-update module 32 performs pre-update based on the historical polarity indicator to obtain a pre-update indicator. Subsequently, the indicator comparison module 33 determines whether the pre-update indicator is within the feasible range of indicators 1-4, thereby eliminating infeasible polarity indicator change values, so that the indicator update module 34 can realize the polarity update process.
[0137] In one embodiment, such as Figure 12 As shown, the transmission error detection module 2A includes:
[0138] The parameter acquisition module 2A1 acquires the unique polarity indicator corresponding to the flag signal group and the corresponding polarity indicator change value;
[0139] The transmission discrimination module 2A2 is connected to the parameter acquisition module 2A1. The transmission discrimination module 2A2 determines whether a unique polarity indicator can be obtained based on the polarity indicator change value and the historical polarity indicator, and generates a transmission error signal according to the discrimination result.
[0140] Specifically, to achieve better transmission process control, this embodiment adjusts the processing state, setting it to a SEND IDLE state on the transmitter side. The transmission judgment module 35 then judges the polarity indicator change value and determines whether an error will occur during the pre-update of the polarity indicator. If an error occurs, it indicates that a transmission error occurred in the ternary code group during previous transmission, leading to accumulated errors in the polarity indicator itself. In this case, a transmission error signal needs to be generated and returned to the transmitter and the upper layer of the receiver for data verification, retransmission, or re-handshake processing using appropriate protocols. Simultaneously, the transmitter can use the received transmission error signal to judge the transmission status and estimate the transmission environment based on the number of received transmission error signals. Since the above process mainly occurs when the transmitter is in a SEND IDLE state, it does not affect the corresponding data transmission process, allowing the transmitter to adjust the transmission process before data transmission.
[0141] The above are merely preferred embodiments of the present invention and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should recognize that any equivalent substitutions and obvious changes made based on the description and illustrations of the present invention should be included within the protection scope of the present invention.
Claims
1. A PAM3 signal transmission method for industrial Ethernet, suitable for the receiving end, characterized in that, include: Step S1: Receive the ternary code group of the PAM3 signal sent by the transmitter, and obtain the polarity indicator of the previous cycle as the historical polarity indicator, and determine whether the ternary code group is a flag signal group corresponding to a specific polarity indicator. If so, proceed to step S2; If not, proceed to step S3; Step S2: Obtain the corresponding unique polarity indicator according to the flag signal group, use the unique polarity indicator as the polarity indicator of the current cycle, and then proceed to step S4; Furthermore, the process of performing step S2 also includes: Step A2: Determine whether a transmission error has occurred based on the unique polarity indicator and the historical polarity indicator corresponding to the flag signal group, and output a transmission error signal when a transmission error occurs; Step S3: Based on the ternary code group and the historical polarity indicator, polarity recovery is performed to obtain the polarity indicator, and then proceed to step S4; Furthermore, the process of performing step S3 also includes: Step A3: Based on the polarity indicator change value obtained by polarity recovery of the ternary code group and the historical polarity indicator, determine whether the transmission has failed, and output the transmission error signal when a transmission error occurs; Step S4: Decode the ternary code group based on the polarity indicator to obtain the decoded signal, and then return to step S1 to obtain the next set of the ternary code group.
2. The ternary code group transmission method according to claim 1, characterized in that, Before performing step S1, a flag signal group determination process is also included, which includes: Step A01: Obtain the 4B3T encoding table, traverse and compare the multiple decoded signal groups contained in the 4B3T encoding table to obtain the decoded signal group that appears only once; Step A02: Use the filtered decoded signal group as the flag signal group, and look up the polarity indicator corresponding to the flag signal group from the 4B3T encoding table; Step A03: Use the polarity indicator as the unique polarity indicator, and establish a correspondence between the unique polarity indicator and the flag signal group to form a correction template.
3. The ternary code group transmission method according to claim 2, characterized in that, Step S1 includes: Step S11: Receive the ternary code group sent by the transmitter, and obtain the polarity indicator of the previous cycle as the historical polarity indicator; Step S12: Compare the ternary code group with the correction template in sequence to determine whether there is a matching correction template; If so, proceed to step S2; If not, proceed to step S3.
4. The ternary code group transmission method according to claim 1, characterized in that, Step S3 includes: Step S31: Search the ternary code group to obtain the corresponding polarity indicator change value; Step S32: Obtain the historical polarity indicator and use the polarity indicator change value to perform pre-update to obtain a pre-update indicator; Step S33: Determine whether the pre-update indicator is within the feasible range of the indicator, so as to eliminate the infeasible polarity indicator change value; Step S34: Retain the filtered polarity indicator change value, and update the polarity indicator according to the polarity indicator change value.
5. The PAM3 signal transmission method according to claim 1, characterized in that, Step A2 includes: Step A21: Obtain the unique polarity indicator corresponding to the flag signal group and the corresponding polarity indicator change value; Step A22: Determine whether the unique polarity indicator can be obtained based on the polarity indicator change value and the historical polarity indicator; If so, it indicates that the transmission was correct; If not, it indicates a transmission error, and the transmission error signal is generated.
6. A PAM3 signal transmission system for industrial Ethernet, characterized in that, A method for implementing the PAM3 signal transmission method as described in any one of claims 1-5, comprising: The codeword filtering module receives the ternary code group sent by the transmitting end, and obtains the polarity indicator of the previous cycle as the historical polarity indicator, and determines whether the ternary code group is a flag signal group corresponding to a specific polarity indicator. The first indicator generation module is connected to the codeword filtering module. When the flag signal group appears, the first indicator generation module obtains the corresponding unique polarity indicator according to the flag signal group and uses the unique polarity indicator as the polarity indicator of the current period. The first transmission error detection module is connected to the codeword filtering module. The transmission error detection module determines whether the transmission is erroneous according to the unique polarity indicator and the historical polarity indicator corresponding to the flag signal group, and outputs a transmission error signal when a transmission error occurs. The second indicator generation module is connected to the codeword filtering module. When the flag signal group does not appear, the second indicator generation module performs polarity recovery based on the ternary code group and the historical polarity indicator to obtain the polarity indicator. The second transmission error detection module is connected to the second indicator generation module. The second transmission error detection module determines whether the transmission is erroneous based on the polarity indicator change value obtained by polarity recovery of the ternary code group and the historical polarity indicator, and outputs the transmission error signal when a transmission error occurs. The decoding module is connected to the first indicator generation module and the second indicator generation module respectively. The decoding module decodes the ternary code group based on the polarity indicator to obtain the decoded signal.
7. The three-element code group transmission method according to claim 6, characterized in that, It also includes a flag signal group determination module, which includes: A lookup module obtains a 4B3T encoding table, traverses and compares multiple decoded signal groups contained in the 4B3T encoding table, and obtains the decoded signal group that appears only once. An indicator lookup module is connected to the table lookup module. The indicator lookup module takes the filtered decoded signal group as the flag signal group and looks up the polarity indicator corresponding to the flag signal group from the 4B3T encoding table. A template generation module is connected to the indicator lookup module. The template generation module uses the polarity indicator as the unique polarity indicator and establishes a correspondence between the unique polarity indicator and the flag signal group to form a modified template.
8. The three-element code group transmission method according to claim 7, characterized in that, The codeword filtering module includes: The data acquisition module receives the ternary code group sent by the sending end, and acquires the polarity indicator of the previous cycle as the historical polarity indicator. A template matching module is connected to the data acquisition module. The template matching module matches the decoded signal group with the correction template in sequence, determines whether there is a matching correction template, and generates a determination result. An enabling module is connected to the template matching module, and the enabling module controls the first indicator generation module or the second indicator generation module according to the judgment result.
9. The three-element code group transmission method according to claim 6, characterized in that, The second indicator generation module includes: A pre-lookup module searches the ternary code group to obtain the corresponding polarity indicator change value; A pre-update module is connected to the pre-lookup module. The pre-update module obtains the historical polarity indicator and uses the polarity indicator change value to perform pre-update to obtain a pre-update indicator. An indicator comparison module is connected to the pre-update module. The indicator comparison module determines whether the pre-update indicator is within the feasible range of indicators, so as to eliminate infeasible polarity indicator change values. The indicator update module retains the filtered polarity indicator change value and updates the polarity indicator according to the polarity indicator change value.
10. The ternary code group transmission system according to claim 6, characterized in that, The transmission error detection module includes: The parameter acquisition module acquires the unique polarity indicator corresponding to the flag signal group and the corresponding polarity indicator change value; A transmission discrimination module is connected to the parameter acquisition module. The transmission discrimination module determines whether the unique polarity indicator can be obtained based on the polarity indicator change value and the historical polarity indicator, and generates a transmission error signal according to the discrimination result.
Citation Information
Patent Citations
Physical layer data transmitting method and receiving method and physical layer chip
CN101026523A
System and method for using signal waveform analysis for detecting a change in a wired network
CN110325929A