Data double oversampling method, system, device, and storage medium

The data double oversampling method addresses the challenge of accurate data sampling at 2.48832Gbps by optimizing sampling phases, improving precision and stability without hardware changes, thus meeting GPON protocol requirements.

JP2024147507AActive Publication Date: 2024-10-16SHENZHEN PANGO MICROSYST CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024040163
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-03
Filing Date
2024-03-14
Publication Date
2024-10-16
Estimated Expiration
2044-03-14

AI Technical Summary

Technical Problem

The existing GPON technology faces challenges in achieving accurate data sampling at an uplink rate of 2.48832Gbps due to the clock frequency of the receiver SERDES not meeting the required specifications, especially when multiple optical network units are connected, necessitating a more efficient data sampling method.

Method used

A data double oversampling method that involves determining initial sampling phases, displacing these phases based on specific rules, and adjusting them to find an optimal sampling phase close to the intermediate phase of the read code, ensuring a sufficient window sampling margin and higher accuracy without requiring hardware changes.

Benefits of technology

The method stabilizes phase lock of recovery data within the specified time by the GPON protocol, enhancing sampling precision and accuracy while reducing costs by avoiding hardware upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024147507000001_ABST
    Figure 2024147507000001_ABST
Patent Text Reader

Abstract

To provide a data double oversampling method, system, device, and storage medium for reducing costs by stably completing phase locking of recovery data within the time specified in a protocol.SOLUTION: A method includes the steps of: obtaining an initial sampling phase corresponding to each of two adjacent bits for two adjacent bits of a read code in a GPON frame and a phase label corresponding to each initial sampling phase; displacing the phase of each initial sampling and obtaining each sampling phase after the displacement; and depending on whether adjacent phase labels of a target hopping edge before and after the displacement are equal, and whether a first reference sampling phase is located on the target hopping edge, displacing each sampling phase after the displacement again, and obtaining an optimal sampling phase corresponding to the two adjacent bits so as to sample valid data.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of electronic technology, and in particular to a data double oversampling method, system, device and storage medium. [Background technology]

[0002] GPON (Gigabit-Capable Passive Optical Network) technology has many advantages, such as high bandwidth, high efficiency, wide coverage area, and rich user interface. The uplink rate of the GPON protocol is 1.24416Gbps, and the downlink rate is 2.48832Gbps. At present, the data receiving scheme of the receiving side CDR (Clock Data Recovery) is a quadruple oversampling scheme of the SERDES in the FPGA (Field Programmable Gate Array). In this scheme, the sending side transmits data at the GPON uplink rate of 1.24416Gbps, and the receiving side SERDES samples at a linear rate of 4.97664G. The quadruple oversampling method is used to sample the received data, and the correct sampling point is first found, and then the drift of the sampling point is tracked, so that phase lock can be achieved within the time specified by the protocol.

[0003] However, as FTTR (Fiber to The Room) is deployed in thousands of homes, and the user-side optical modem is usually connected to multiple ONUs (Optical Network Units), a scheme is needed to upgrade the uplink rate to 2.48832Gbps to transmit data. If the transmitting GPON transmits data at an uplink rate of 2.488Gbps, the clock frequency of the receiving SERDES cannot meet the requirement.

[0004] Therefore, there is an urgent need for a data sampling method for a scenario in which the sender transmits data at an uplink rate of 2.48832 Gbps. Summary of the Invention

[0005] The present invention provides a data double oversampling method, system, device and storage medium, the main purpose of which is to provide a data double oversampling method for a scenario transmitting at an uplink rate of 2.48832 Gbps.

[0006] According to a first aspect, an embodiment of the present invention provides a method for double oversampling data, comprising: S110, for two adjacent bits of a lead code in a GPON frame, obtain initial sampling phases corresponding to the two adjacent bits and phase labels corresponding to each initial sampling phase, the GPON frame including the lead code and valid data; S120, shifting the phase of each initial sampling and acquiring a sampling phase after each shift; S130, according to whether the adjacent phase labels of the target hopping edge before and after the displacement are equal and whether the first reference sampling phase is located on the target hopping edge, the sampling phase after each displacement is displaced again to obtain an optimal sampling phase corresponding to the two adjacent bits, the optimal sampling phase being close to the middle phase of the corresponding lead code, and the first reference sampling phase being a post-displacement sampling phase adjacent to the target hopping edge and located after the target hopping edge; S140, sampling the valid data according to an optimal sampling phase corresponding to each bit of the read code.

[0007] Further, the step of displacing the sampling phase again after each displacement according to whether the adjacent phase labels of the target hopping edges before and after the displacement are equal and whether the first reference sampling phase is located on the target hopping edge includes: determining whether the first reference sampling phase lies on the target hopping edge; displacing the sampling phase again after each displacement according to a first predetermined displacement rule when the first reference sampling phase lies on the target hopping edge; When the first reference sampling phase is not located on the target hopping edge, obtaining a first adjacent phase label of the target hopping edge according to adjacent initial sampling phases of the target hopping edge and a phase label corresponding to each initial sampling phase; Obtaining a second adjacent phase label of the target hopping edge according to a sampling phase after an adjacent displacement of the target hopping edge; if the first adjacent phase label and the second adjacent phase label are equal, then again shifting the sampling phase after each shift according to a second predetermined shift rule; If the first adjacent phase label and the second adjacent phase label are not equal, then again displacing the sampling phase after each displacement according to a third predetermined displacement rule.

[0008] Furthermore, the first predetermined shift rule is to shift the sampling phase backward by 0.25 bits after each shift; the second predetermined shift rule is to shift the sampling phase forward by 0.125 bits after each shift; The third predetermined shifting rule is to shift the sampling phase backwards by 0.125 bits after each shift.

[0009] Furthermore, before obtaining a first adjacent phase label of the target hopping edge according to the adjacent initial sampling phases of the target hopping edge and a phase label corresponding to each initial sampling phase, the method further includes: Sampling corresponding bits during each initial sampling phase to obtain initial sampling data; performing an XOR on two adjacent initial sampling data; The method further includes the step of: when the XOR value of the two adjacent initial sampling data is 1, determining a hopping edge between the initial sampling phases corresponding to the two adjacent initial sampling data as the target hopping edge.

[0010] Furthermore, the step of obtaining optimal sampling phases corresponding to the two adjacent bits includes: determining an initial sampling phase adjacent to the hopping edge and located after the target hopping edge as a second reference sampling phase; obtaining final sampling phases after each shift; The optimum sampling phase is a final sampling phase adjacent to a final reference phase, and the final reference phase is a final sampling phase corresponding to a result of displacing the second reference sampling phase.

[0011] Furthermore, the steps S110 to S130 are simultaneously executed at least once.

[0012] Furthermore, the step of shifting the phase of each initial sampling includes: This involves shifting each initial sampling phase forward by 0.25 bits.

[0013] According to a second aspect, an embodiment of the present invention provides a data double oversampling system, comprising: A receiving module for obtaining initial sampling phases and phase labels corresponding to two adjacent bits of a lead code in a GPON frame, the initial sampling phases corresponding to the two adjacent bits, the GPON frame including the lead code and valid data; a first displacement module for displacing a phase of each initial sampling and obtaining a sampling phase after each displacement; a second displacement module, which displaces the sampling phase after each displacement according to whether the adjacent phase labels of the target hopping edge before and after the displacement are equal and whether the first reference sampling phase is located on the target hopping edge, to obtain an optimal sampling phase corresponding to the two adjacent bits, the optimal sampling phase being close to the middle phase of the corresponding lead code, and the first reference sampling phase being a post-displacement sampling phase adjacent to the target hopping edge and located after the target hopping edge; a sampling module for sampling the valid data according to an optimal sampling phase corresponding to each bit of the read code.

[0014] According to a third aspect, an embodiment of the present invention provides a computer apparatus including a memory, a processor and a computer program stored in the memory and executable on the processor, the computer program being configured to perform steps of the data double oversampling method when executed by the processor.

[0015] According to a fourth aspect, an embodiment of the present invention provides a computer storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the data double oversampling method described above.

[0016] According to the data double oversampling method, system, device and storage medium provided by the present invention, the initial sampling phase of the read code bit is shifted twice, and then the optimal sampling phase is extracted, and the optimal sampling phase is close to the middle phase of the corresponding read code through the two-time shift, and a sufficient window sampling margin is ensured, and the higher the sampling accuracy rate, the higher the sampling accuracy. From the optimal sampling phase determined by the read code, the valid data can be sampled, and the phase lock of the recovery data can be stably completed within the time specified by the protocol, and the hardware device does not need to be changed, which can reduce costs. [Brief description of the drawings]

[0017] [Figure 1] 2 is a flow chart of a data double oversampling method provided by an embodiment of the present invention; [Diagram 2] FIG. 4 is a schematic diagram of initial sampling phases corresponding to two adjacent bits in an embodiment of the present invention. [Diagram 3] 4 is a specific flowchart of a method for determining a displacement from adjacent phase labels according to an embodiment of the present invention; [Figure 4] FIG. 13 is a schematic diagram of a third initial sampling phase in the first interval segment of D2 in an embodiment of the present invention. [Diagram 5] FIG. 13 is a schematic diagram of a third initial sampling phase in the second interval segment of D2 in an embodiment of the present invention. [Figure 6] FIG. 13 is a schematic diagram of a third initial sampling phase in the third section segment of D2 in an embodiment of the present invention. [Figure 7] FIG. 13 is a schematic diagram of a third initial sampling phase in the fourth period segment of D2 in an embodiment of the present invention. [Figure 8] FIG. 2 is a structural schematic diagram of a data double oversampling system provided by an embodiment of the present invention; [Figure 9] 1 is a structural schematic diagram of a computer device provided by an embodiment of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] The realization of the objectives, functional features and advantages of the present invention will be described in detail in conjunction with the embodiments with reference to the accompanying drawings. Hereinafter, the embodiments of the present application will be described in detail, and examples of the embodiments are shown in the accompanying drawings, in which the same or similar reference numerals throughout indicate the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are illustrative and are used only for the purpose of interpreting the present application, and do not limit the present application.

[0019] In order to allow those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, other embodiments obtained by those skilled in the art without creative labor are all included in the protection scope of the present application.

[0020] In the examples of this application, at least one means one or more, and more means two or more. In the description of this application, the terms "first," "second," "third," etc. are used for distinguishing and descriptive purposes only and are not to be understood as indicating or implying a relative importance or order.

[0021] References to "one embodiment" or "some embodiments" or the like described herein mean that one or more embodiments of the present application include the particular feature, structure, or characteristic described in connection with that example. Thus, in this specification, the terms "including," "comprising," "having," and variations thereof mean "including, but not limited to," unless otherwise emphasized.

[0022] In this embodiment, the target application scenario is to implement multiple optical network units under the optical conditioning demodulator, in this embodiment, the sending side is the optical conditioning demodulator, and the receiving side is the optical network unit. The optical conditioning demodulator sends a GPON frame to the optical network unit according to the GPON protocol, and the optical network unit executes a data double oversampling method after receiving the GPON frame, samples the GPON frame to obtain the transmitted data.

[0023] In this embodiment, the sending speed of GPON frame from the sending side is 2.48832Gbps, if the receiving side samples the GPON frame at 4 times the frequency, the SERDES with the current 6.6G clock frequency in the FPGA cannot meet the requirements, so in this embodiment, the receiving side samples the GPON frame at 2 times the frequency. When the GPON protocol uplink rate data is burst interrupted and burst transferred, and the uplink rate data is upgraded to 2.48832Gbps, the receiving side is required to stably complete the phase lock of the recovery data within the time specified by the protocol.

[0024] SERDES is a communication system that includes a serializer and a deserializer, where the serializer is a device that converts parallel data into serial data, and the deserializer is a device that restores serial data to parallel data. In actual application scenarios, the receiving side realizes the corresponding data receiving function through FPGA, and since FPGAs usually have SERDES built in, the receiving side realizes data reception through the SERDES built in FPGA.

[0025] When the sender communicates with the receiver, according to the GPON protocol, the sender sends a GPON frame through the serializer, and when the receiver receives the GPON frame, according to the assigned time slot, the optical modem is in a non-illuminated state at this time, and after the receiver receives the optical signal of the GPON frame, it converts the optical signal of the GPON frame into an electrical signal of the GPON frame and sends it to the deserializer.

[0026] FIG. 1 is a flow chart of a data double oversampling method provided by an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:

[0027] S110, for two adjacent bits of a lead code in a GPON frame, obtain initial sampling phases corresponding to the two adjacent bits and phase labels corresponding to each initial sampling phase, the GPON frame including the lead code and valid data; When the receiving side is in an idle state, the receiving side receives a GPON frame, where the GPON frame refers to the electrical signal of the GPON frame obtained by converting the optical signal of the GPON frame, and the GPON frame includes two parts: a lead code and valid data. The function of the lead code is mainly to synchronize the bits of the transmitting side and the receiving side, and the valid data refers to the valid information contained in the GPON frame.

[0028] In order to easily explain the present technical solution, this embodiment will take the case where the read code is 4'b1010 as an example, where 4 indicates the number of bits of the read code, b indicates that the read code is binary, and 1010 indicates the specific value of the read code. In this embodiment, the read code includes a total of four bits, and for any two adjacent bits among these four bits, such as "10", "01", etc., the case where the two adjacent bits are "01" will be taken as an example.

[0029] First, obtain the initial sampling phases corresponding to the two adjacent bits, and in this embodiment, sampling is performed at double frequency, that is, double oversampling is performed for each bit of the lead code. Therefore, each bit corresponds to two different initial sampling phases, and FIG. 2 is a schematic diagram of the initial sampling phases corresponding to each of the two adjacent bits in the embodiment of the present invention, as shown in FIG. 2, D1 and D2 in the figure indicate two adjacent bits of the lead code, and in this embodiment, an example is described in which D1 is "0" and D2 is "1". The dotted lines indicated by s1 and s2 in the figure are the two initial sampling phases of D1, which are called the first initial sampling phase and the second initial sampling phase, respectively, and the dotted lines indicated by s3 and s4 are the two initial sampling phases of D2, which are called the third initial sampling phase and the fourth initial sampling phase, respectively, and s1, s2, s3, and s4 are the phase labels of the first initial sampling phase, the second initial sampling phase, the third initial sampling phase, and the fourth initial sampling phase, respectively, and s1' in the figure is the initial sampling phase of the bits after D2.

[0030] S120, shifting the phase of each initial sampling, and obtaining a sampling phase after each shift; Then, each initial sampling phase is displaced, and each post-displacement sampling phase is obtained, and each initial sampling phase is displaced, and the specific displacement direction and displacement magnitude are set according to the actual situation, and are not particularly limited in the embodiment of the present invention. Displacing each initial sampling phase means that each initial sampling phase is moved by a certain magnitude in a certain direction, and each initial sampling phase after the movement is called post-displacement sampling phase, and correspondingly, the post-displacement sampling phase includes the first post-displacement sampling phase, the second post-displacement sampling phase, the third post-displacement sampling phase and the fourth post-displacement sampling phase, and the first post-displacement sampling phase is obtained by displacing the first initial sampling phase, the second post-displacement sampling phase is obtained by displacing the second initial sampling phase, the third post-displacement sampling phase is obtained by displacing the third initial sampling phase, and the fourth post-displacement sampling phase is obtained by displacing the fourth initial sampling phase.

[0031] It is easy to understand that for the initial sampling phase and the corresponding post-displacement sampling phase, the phase label of the post-displacement sampling phase does not change and is the same as the phase label of the initial sampling phase before displacement, that is, the sampling phase after the first displacement, the sampling phase after the second displacement, the sampling phase after the third displacement and the sampling phase after the fourth displacement are s1, s2, s3, s4, respectively.

[0032] In this embodiment, displacing each initial sampling phase means moving each initial sampling phase forward by 0.25 bits, i.e., the first initial sampling phase, the second initial sampling phase, the third initial sampling phase and the fourth initial sampling phase are each moved forward by 0.25 bits.

[0033] In this embodiment, forward movement means moving forward in time based on timing, and backward movement means moving backward in time based on time. With reference to FIG. 2, forward movement means moving to the left, and backward movement means moving to the right.

[0034] S130, according to whether the adjacent phase labels of the target hopping edge before and after the displacement are equal and whether the first reference sampling phase is located on the target hopping edge, displacing the sampling phase after each displacement again to obtain an optimal sampling phase corresponding to the two adjacent bits, the optimal sampling phase being close to the middle phase of the corresponding lead code, and the first reference sampling phase being a post-displacement sampling phase adjacent to the target hopping edge and located after the target hopping edge; Then, determine whether the adjacent phase labels of the target hopping edge before and after the displacement are equal and whether the first reference sampling phase is located on the target hopping edge, and displace the sampling phase after each displacement again. Specifically, the target hopping edge refers to the hopping edge between the D1 bit and the D2 bit, and as can be seen from FIG. 2, the hopping edge between the second initial sampling phase and the third initial sampling phase is the target hopping edge.

[0035] After determining the target hopping edge, it is necessary to select a first reference sampling phase from the sampling phase after the first displacement, the sampling phase after the second displacement, the sampling phase after the third displacement, and the sampling phase after the fourth displacement according to the positional relationship between the sampling phase after the first displacement, the sampling phase after the second displacement, the sampling phase after the third displacement, and the sampling phase after the fourth displacement. A specific selection method is to select the displacement sampling phase adjacent to the target hopping edge and behind the target hopping edge as the first reference sampling phase.

[0036] When the first reference sampling phase is at the target hopping edge, all the post-displacement sampling phases are at a relatively special position, and each post-displacement sampling phase is displaced again according to the processing rule of the special position.

[0037] Here, the first reference sampling phase being at the target hopping edge may mean that the first reference sampling phase is at the target hopping edge, or may mean that the first reference sampling phase is in a preset interval before and after the target hopping edge, and may be specifically set according to the actual situation. The preset interval is obtained by extending forward and backward with the target hopping edge as a reference point, and the specific length of the preset interval may be set according to the actual situation. When the first reference sampling phase is in the preset interval, it means that the first reference sampling phase is at the target hopping edge, and conversely, it means that the first reference sampling phase is not located at the target hopping edge.

[0038] The two initial sampling phases adjacent to the target hopping edge are the second initial sampling phase and the third initial sampling phase, so the adjacent phase labels of the target hopping edge before the displacement are s2 and s3. The position of the target hopping edge after the displacement does not change, and the adjacent displacement of the target hopping edge may change according to the relative position of the third initial sampling phase in D2, and the adjacent sampling phases of the target hopping edge after the displacement may be the sampling phase after the second displacement and the sampling phase after the third displacement, or may be the sampling phase after the third displacement and the sampling phase after the fourth displacement, that is, the adjacent phase labels of the target hopping edge may be s2 and s3, or s3 and s4.

[0039] The displacement direction of the sampling phase after each displacement is determined based on whether the adjacent phase labels of the target hopping edge before and after the displacement are equal, i.e., whether the adjacent phase labels of the target hopping edge after the displacement have changed. That is, based on whether the adjacent phase labels of the target hopping edge after the displacement have changed, the sampling phase after the first displacement, the sampling phase after the second displacement, the sampling phase after the third displacement and the sampling phase after the fourth displacement are displaced again to obtain the final sampling phases, i.e., the first final sampling phase, the second final sampling phase, the third final sampling phase and the fourth final sampling phase.

[0040] In this embodiment, regarding the optimal sampling phase, several sampling phases are selected as optimal sampling phases from the first final sampling phase, the second final sampling phase, the third final sampling phase and the fourth final sampling phase, and the selected optimal sampling phases are close to the intermediate phase of the corresponding read code. The specific selection method can be determined according to the actual situation, and is not particularly limited in this embodiment.

[0041] For example, after two more shifts, the final sampling phase in the D1 read code corresponds to the first final sampling phase and the second final sampling phase. Taking the intermediate phase of the D1 read code as a reference, if the distance between the first final sampling phase and the intermediate phase is shorter than the distance between the second final sampling phase and the intermediate phase, the first final sampling phase becomes the optimal sampling phase of D1; if the distance between the second final sampling phase and the intermediate phase is shorter than the distance between the first final sampling phase and the intermediate phase, the second final sampling phase becomes the optimal sampling phase of D1.

[0042] If the final sampling phase in the D2 read code corresponds to the third final sampling phase and the fourth final sampling phase, and if the distance between the third final sampling phase and the intermediate phase is shorter than the distance between the fourth final sampling phase and the intermediate phase based on the intermediate phase of the D2 read code, then the third final sampling phase becomes the optimal sampling phase for D2, and if the distance between the fourth final sampling phase and the intermediate phase is shorter than the distance between the third final sampling phase and the intermediate phase, then the fourth final sampling phase becomes the optimal sampling phase for D2.

[0043] The optimal sampling phase in this embodiment includes an optimal sampling phase corresponding to each bit of the read code. In general, during the process of sampling the read code, the more the sampling phase shifts, the closer the sampling phase is to the middle phase of the read code, and the more sufficient the window sampling margin is ensured, and the higher the sampling accuracy is, in this embodiment, due to the influence of the number of read codes, the sampling phase cannot be displaced a maximum of two times, and the finally determined optimal sampling phase is close to the middle phase of the corresponding read code, and a sufficient window sampling margin is ensured. The closer the sampling phase is to the middle, the higher the sampling accuracy is, and the sampling accuracy can be improved.

[0044] S140, sampling the valid data according to an optimal sampling phase corresponding to each bit of the read code.

[0045] Finally, the valid data of the GPON frame is sampled according to the optimal sampling phase corresponding to each bit of the lead code, and the data is locked within the time specified by the GPON protocol.

[0046] In the specific implementation process, the hardware device of this embodiment is the same as the existing hardware device that transmits data at an uplink rate of 1.24416 Gbps. When the uplink rate is upgraded to 2.48832 Gbps, the software code is directly modified to realize a scheme for transmitting data at an uplink rate of 2.48832 Gbps, and there is no need to change the hardware device, which can reduce costs.

[0047] This embodiment provides a data double oversampling method, the initial sampling phase of the read code bit is shifted twice, and finally the optimal sampling phase is extracted, and by shifting twice, the optimal sampling phase is close to the middle phase of the corresponding read code, and a sufficient window sampling margin is ensured, and the higher the sampling accuracy rate, the higher the sampling accuracy. From the optimal sampling phase determined by the read code, the valid data can be sampled, and the phase lock of the recovery data can be stably completed within the time specified by the protocol, and the hardware device does not need to be changed, so the cost can be reduced.

[0048] In some embodiments, FIG. 3 is a specific flowchart of a method for determining a displacement from adjacent phase labels according to an embodiment of the present invention. As shown in FIG. 3, in step S130, the step of displacing the sampling phase after each displacement again according to whether the adjacent phase labels of the target hopping edge before and after the displacement are equal and whether the first reference sampling phase is located on the target hopping edge is: S131, determining whether the first reference sampling phase is located on the target hopping edge; if the first reference sampling phase is located on the target hopping edge, re-displacing the sampling phase after each displacement according to a first predetermined displacement rule; First, it is determined whether the first reference sampling phase is located at the target hopping edge. For the specific determination method, refer to the above embodiment. If the first reference sampling phase is located at the target hopping edge, the sampling phase is in a special position, and this situation is handled separately. Specifically, the sampling phase after each displacement is displaced again according to a first predetermined displacement rule. The first predetermined displacement rule can be set according to the actual situation, and is not particularly limited in this embodiment.

[0049] Optionally, the first predetermined shifting rule is to shift the sampling phase after each shift backward by 0.25 bits. As an optional aspect, in this embodiment, when the first reference sampling phase is located at the target hopping edge, referring to FIG. 2, the sampling phase after the third shift is the first reference sampling phase, and the sampling phase after the third shift is located at the target hopping edge, which means that the second initial sampling phase and the fourth initial sampling phase are all located at the middle phase of the corresponding lead code, that is, the second initial sampling phase is located at the middle phase of D1, and the fourth initial sampling phase is located at the middle phase of D2, and since each initial sampling phase is shifted forward by 0.25 bits at the first shift, only by shifting backward by 0.25 bits at the second shift, the optimal sampling phase is located at the middle phase of the corresponding lead code. Therefore, when the first reference sampling phase is located at the target hopping edge, only by directly shifting the sampling phase after each shift backward by 0.25 bits at the second shift, there is no need to determine the adjacent phase labels before and after the shift of the target hopping edge.

[0050] S132, when the first reference sampling phase is not located at the target hopping edge, obtain a first adjacent phase label of the target hopping edge according to the adjacent initial sampling phases of the target hopping edge and the phase labels corresponding to each initial sampling phase; If the first reference sampling phase is not located at the target hopping edge, determine the first adjacent phase label according to the adjacent initial phase and phase label of the target hopping edge. Take Fig. 2 as an example, as can be seen from the description of the above embodiment, the first adjacent phase labels in this embodiment are s2 and s3.

[0051] S133, obtaining a second adjacent phase label of the target hopping edge according to a sampling phase after an adjacent displacement of the target hopping edge; According to the sampling phase after the adjacent displacement of the target hopping edge, the second adjacent phase label of the target hopping edge is determined, and because the position of the third initial sampling phase in D2 is different, the second adjacent phase label of the target hopping edge is affected, and the second adjacent phase label changes according to the position of the third initial sampling phase.

[0052] In this embodiment, the positional relationship between the third initial sampling phase and D2 is analyzed, and finally summarized, and then the displacement is again determined. In this embodiment, the positional relationship between the third initial sampling phase and D2 is divided into the following four cases: Since the target hopping edge is located between the second initial sampling phase and the third initial sampling phase, and the first initial sampling phase after the target hopping edge is the third initial sampling phase, the phase is sampled based on the third initial sampling phase, and displacement is performed based on the reference sampling phase.

[0053] (1), the third initial sampling phase is in the first section segment of D2, the entire section in which D2 is located is 1 bit, the first section segment is 0 to 1 / 8 bit, FIG. 4 is a schematic diagram of the third initial sampling phase in the first section segment of D2 in an embodiment of the present invention, as shown in FIG. 4, when the third initial sampling phase is 0 to 1 / 8 bit, the adjacent sampling phases of the target hopping edge are the second initial sampling phase and the third initial sampling phase, and the first adjacent phase labels of the target phase are s2 and s3. After first moving 0.25 bit to the left, the sampling phase after the third displacement is at the position of 3 / 4 bit to 7 / 8 bit of D1, the adjacent sampling phases of the target hopping edge are the sampling phase after the third displacement and the sampling phase after the fourth displacement, and the second adjacent phase labels of the target phase are s3 and s4.

[0054] (2), the third initial sampling phase is in the second section segment of D2, and the first section segment is 1 / 8 to 1 / 4 bit, and FIG. 5 is a schematic diagram of the third initial sampling phase in the second section segment of D2 in an embodiment of the present invention, as shown in FIG. 5, when the third initial sampling phase is 1 / 8 to 1 / 4 bit, the adjacent sampling phases of the target hopping edge are the second initial sampling phase and the third initial sampling phase, and the first adjacent phase labels of the target phase are s2 and s3. After first moving 0.25 bit to the left, the sampling phase after the third displacement is in the position of 7 / 8 bit to 1 bit of D1, the adjacent sampling phases of the target hopping edge are the sampling phase after the third displacement and the sampling phase after the fourth displacement, and the second adjacent phase labels of the target phase are s3 and s4.

[0055] (3), the third initial sampling phase is the third section segment of D2, the third section segment is 1 / 4 to 3 / 8 bit, FIG. 6 is a schematic diagram of the third initial sampling phase in the third section segment of D2 in an embodiment of the present invention, as shown in FIG. 6, when the third initial sampling phase is 1 / 4 to 3 / 8 bbit, the adjacent sampling phases of the target hopping edge are the second initial sampling phase and the third initial sampling phase, and the first adjacent phase labels of the target phase are s2 and s3. After first moving 0.25 bit to the left, the sampling phase after the third displacement is at the position of 0 bit to 1 / 8 bit of D2, the adjacent sampling phases of the target hopping edge are the sampling phase after the second displacement and the sampling phase after the third displacement, and the second adjacent phase labels of the target phase are s2 and s3.

[0056] (4), the third initial sampling phase is in the fourth section segment of D2, the third section segment is 3 / 8 to 1 / 2 bit, Figure 7 is a schematic diagram of the third initial sampling phase in the fourth section segment of D2 in an embodiment of the present invention, as shown in Figure 7, when the third initial sampling phase is 3 / 8 to 1 / 2 bit, the adjacent sampling phases of the target hopping edge are the second initial sampling phase and the third initial sampling phase, and the first adjacent phase labels of the target phase are s2 and s3. After first moving 0.25 bit to the left, the sampling phase after the third displacement is in the position between 1 / 8 bit and 1 / 4 bit of D2, the adjacent sampling phases of the target hopping edge are the sampling phase after the second displacement and the sampling phase after the third displacement, and the second adjacent phase labels of the target phase are s2 and s3.

[0057] S134, if the first adjacent phase label and the second adjacent phase label are equal, the sampling phase after each displacement is displaced again according to a second predetermined displacement rule, and if the first adjacent phase label and the second adjacent phase label are not equal, the sampling phase after each displacement is displaced again according to a third predetermined displacement rule.

[0058] As can be seen from the above analysis, when the third initial sampling phase is in 1 / 4 to 1 / 2 bit of D2, the second adjacent sampling phase is s2 and s3, and the first adjacent phase label and the second adjacent phase label are equal, at this time, the sampling phase after each displacement is displaced again according to the second predetermined displacement rule; when the third initial sampling phase is in 0 to 1 / 4 bit of D2, the second adjacent sampling phase is s3 and s4, and the first adjacent phase label and the second adjacent phase label are not equal, at this time, the sampling phase after each displacement is displaced again according to the third predetermined displacement rule.

[0059] Optionally, the second predetermined shifting rule is to shift the sampling phase forward by 0.125 bits after each shift, and the third predetermined shifting rule is to shift the sampling phase backward by 0.125 bits after each shift.

[0060] In this embodiment, when the third initial sampling phase is between 0 and 1 / 4 bit of D2, the second adjacent sampling phase is s3 and s4, the first adjacent phase label and the second adjacent phase label are not equal, and the sampling phase after each displacement is moved backward by 0.125 bit; when the third initial sampling phase is between 1 / 4 and 1 / 2 bit of D2, the second adjacent sampling phase is s2 and s3, the first adjacent phase label and the second adjacent phase label are equal, and the sampling phase after each displacement is moved forward by 0.125 bit.

[0061] During the specific implementation process, the initial sampling phase is shifted twice according to the above method, and simulation and actual testing are carried out. The experimental results show that the phase lock can be completed within the time specified by the GPON protocol. The determined optimal sampling phase is used to sample the valid data.

[0062] In some embodiments, before obtaining a first adjacent phase label of the target hopping edge according to adjacent initial sampling phases of the target hopping edge and a phase label corresponding to each initial sampling phase, the method further comprises: Sampling corresponding bits during each initial sampling phase to obtain initial sampling data; performing an XOR on two adjacent initial sampling data; The method further includes the step of: when the XOR value of the two adjacent initial sampling data is 1, determining a hopping edge between the initial sampling phases corresponding to the two adjacent initial sampling data as the target hopping edge.

[0063] This embodiment further provides a method for determining a target hopping edge, which first samples corresponding bits through each initial sampling phase to obtain initial sampling data, the initial sampling data includes first initial sampling data, second initial sampling data, third initial sampling data and fourth initial sampling data, which are respectively indicated as d1, d2, d3 and d4. Specifically, the first initial sampling phase and the second initial sampling phase are used to sample D1 to obtain the first initial sampling data and the second initial sampling data, and the third initial sampling phase and the fourth initial sampling phase are used to sample D2 to obtain the third initial sampling data and the fourth initial sampling data.

[0064] The result of XORing any two adjacent initial sampling data among the four initial sampling data is

number

[0065] In some embodiments, the step of obtaining optimal sampling phases corresponding to the two adjacent bits comprises: an initial sampling phase adjacent to the hopping edge and after the target hopping edge is a second reference sampling phase; obtaining final sampling phases after each shift; The optimum sampling phase is a final sampling phase adjacent to a final reference phase, and the final reference phase is a final sampling phase corresponding to a result of displacing the second reference sampling phase.

[0066] In this embodiment, the sampling phase after each shift is shifted again to obtain a final sampling phase, which includes a first final sampling phase, a second final sampling phase, a third final sampling phase and a fourth final sampling phase.

[0067] Since the third initial sampling data is the first bit data after the target hopping edge, the third initial sampling phase is selected as the second reference sampling phase, the second reference sampling phase corresponds to the third final sampling phase, and the two adjacent final sampling phases of the third final sampling phase are the optimal sampling phases, that is, the second final sampling phase and the fourth final sampling phase are the optimal sampling phases.

[0068] In some embodiments, the steps S110 to S130 are performed simultaneously at least once.

[0069] Specifically, the above steps S110 to S130 are simultaneously executed at least once, and the data double oversampling method is simultaneously executed multiple times, i.e., the same steps are executed multiple times, so that even if an abnormal error occurs in one execution, it will not affect the results of other executions, and will not affect the finally determined optimal sampling phase, and the influence of the X state can be avoided.

[0070] FIG. 8 is a structural schematic diagram of a data double oversampling system provided by an embodiment of the present invention. As shown in FIG. 8, the system includes: a receiving module 810, a first displacement module 820, a second displacement module 830, and a sampling module 840; The receiving module 810 obtains, for two adjacent bits of a lead code in a GPON frame, initial sampling phases corresponding to the two adjacent bits and phase labels corresponding to each initial sampling phase, and the GPON frame includes the lead code and valid data; The first displacement module 820 is used to displace the phase of each initial sampling and obtain the sampling phase after each displacement; The second displacement module 830 displaces the sampling phase after each displacement again according to whether the adjacent phase labels of the target hopping edge before and after the displacement are equal and whether the first reference sampling phase is located on the target hopping edge, to obtain an optimal sampling phase corresponding to the two adjacent bits, the optimal sampling phase being close to the middle phase of the corresponding lead code, and the first reference sampling phase being a post-displacement sampling phase adjacent to the target hopping edge and located after the target hopping edge; A sampling module 840 is used to sample the valid data according to an optimal sampling phase corresponding to each bit of the read code.

[0071] Furthermore, the second displacement module includes a main judgment unit, a first displacement unit, a first adjacent unit, a second adjacent unit and a sub-judgment unit; The main judgment unit is used to judge whether the first reference sampling phase is located on the target hopping edge; The first displacement unit is used to displace the sampling phase again after each displacement according to a first predetermined displacement rule when the first reference sampling phase is located on the target hopping edge; The first neighbor unit is used to obtain a first neighbor phase label of the target hopping edge according to the neighboring initial sampling phases of the target hopping edge and the phase label corresponding to each initial sampling phase when the first reference sampling phase is not located on the target hopping edge; The second neighbor unit is used to obtain a second neighbor phase label of the target hopping edge according to a sampling phase after an adjacent displacement of the target hopping edge; The judgment unit is used to displace the sampling phase after each displacement again according to a second predetermined displacement rule when the first adjacent phase label and the second adjacent phase label are equal, and to displace the sampling phase after each displacement again according to a third predetermined displacement rule when the first adjacent phase label and the second adjacent phase label are not equal.

[0072] Furthermore, the first predetermined shift rule is to shift the sampling phase backward by 0.25 bits after each shift; the second predetermined shift rule is to shift the sampling phase forward by 0.125 bits after each shift; The third predetermined shifting rule is to shift the sampling phase backwards by 0.125 bits after each shift.

[0073] Furthermore, the data double oversampling system further comprises an initial module, an XOR module and a decision module; The initial module is used to sample corresponding bits during each initial sampling phase to obtain initial sampling data; The XOR module is used to perform XOR on two adjacent initial sampling data; The determination module is used to determine a hopping edge between the initial sampling phases corresponding to the two adjacent initial sampling data as the target hopping edge when the XOR value of the two adjacent initial sampling data is 1.

[0074] In addition, the second displacement module further comprises a reference unit, an acquisition unit and an optimization unit; The reference unit is adjacent to the hopping edge and is used to set an initial sampling phase after the target hopping edge as a second reference sampling phase; The acquisition unit is used to acquire each final sampling phase after the sampling phase after each displacement is displaced again, The optimization unit determines a final sampling phase adjacent to a final reference phase as the optimal sampling phase, where the final reference phase is a corresponding final sampling phase after displacing the second reference sampling phase.

[0075] Furthermore, the first displacement module comprises a first displacement unit; The first displacement unit is used to displace each initial sampling phase forward by 0.25 bits.

[0076] The whole or part of each module in the data double oversampling system can be realized by software, hardware, or a combination thereof. Each module can be integrated into a processor in a computer device in the form of hardware, or can be independent of the processor, or can be stored in a memory in a computer device in the form of software, and the operations corresponding to each module can be called and executed by the processor.

[0077] FIG. 9 is a structural schematic diagram of a computer device provided by an embodiment of the present invention, which may be a server, and its internal structure is shown in FIG. 9. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. Here, the processor of the computer device provides calculation and control capabilities. The memory of the computer device includes a computer storage medium and an internal memory. An operating system, a computer program, and a database are stored in the computer storage medium. The internal memory provides an environment for the operation of the operating system and the computer program in the computer storage medium. The database of the computer device stores data, such as lead codes and valid data, generated or acquired during the execution of the data double oversampling method. The network interface of the computer device is communicatively connected to an external terminal via a network. The data double oversampling method is implemented when the computer program is executed by the processor.

[0078] In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and operable on the processor, and when the processor executes the computer program, the steps of the data double oversampling method of the above embodiment are performed, or when the processor executes the computer program, the functions of each module / unit in the embodiment of the data double oversampling system are realized.

[0079] In one embodiment, a computer storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data double oversampling method in the above embodiment are performed, or when the computer program is executed by a processor, the functions of each module / unit in the above embodiment of the data double oversampling system are realized.

[0080] Those skilled in the art should understand that the flow of implementing all or part of the method of the above embodiments can be executed by related hardware using a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium, and can include the flow of each of the above method embodiments when the computer program is executed. Here, any reference to memory, storage, database or other medium used in each embodiment provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of example and not limitation, RAM may include static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0081] For convenience and simplicity of explanation, the division of each of the above functional units and modules has been described as an example, but in actual applications, the above functions can be assigned to be performed by different functional units or modules as necessary, i.e., it will be apparent to those skilled in the art that the internal structure of the device can be divided into different functional units or modules to perform all or part of the above functions.

[0082] The above embodiments are used to explain the technical solutions of the present invention, and are not limited thereto. The present invention has been described in detail with reference to the above embodiments. However, those skilled in the art may modify the technical solutions described in the above embodiments or make equivalent substitutions for some technical features. These modifications and substitutions do not deviate the essence of the relevant technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and are all within the protection scope of the present invention.

Claims

1. S110, for two adjacent bits of a lead code in a GPON frame, obtain initial sampling phases corresponding to the two adjacent bits and phase labels corresponding to each initial sampling phase, and the GPON frame includes the lead code and valid data; S120, shifting the phase of each initial sampling and acquiring the sampling phase after each shift; S130, according to whether the adjacent phase labels of the target hopping edge before and after the displacement are equal and whether the first reference sampling phase is located on the target hopping edge, the sampling phase after each displacement is displaced again to obtain an optimal sampling phase corresponding to the two adjacent bits, and the first reference sampling phase is a sampling phase after the displacement that is adjacent to the target hopping edge and located after the target hopping edge; S140. Sampling the valid data according to an optimal sampling phase corresponding to each bit of the read code; The step of displacing the sampling phase again after each displacement depending on whether adjacent phase labels of the target hopping edges before and after the displacement are equal and whether a first reference sampling phase is located on the target hopping edge includes: determining whether the first reference sampling phase lies on the target hopping edge; displacing the sampling phase again after each displacement according to a first predetermined displacement rule if the first reference sampling phase lies on the target hopping edge; When the first reference sampling phase is not located on the target hopping edge, obtaining a first adjacent phase label of the target hopping edge according to adjacent initial sampling phases of the target hopping edge and a phase label corresponding to each initial sampling phase; Obtaining a second adjacent phase label of the target hopping edge according to a sampling phase after an adjacent displacement of the target hopping edge; if the first adjacent phase label and the second adjacent phase label are equal, then again shifting the sampling phase after each shift according to a second predetermined shift rule; if the first adjacent phase label and the second adjacent phase label are not equal, then again shifting the sampling phase after each shift according to a third predetermined shift rule; Before obtaining a first adjacent phase label of the target hopping edge according to the adjacent initial sampling phases of the target hopping edge and a phase label corresponding to each initial sampling phase, the method includes: Sampling corresponding bits during each initial sampling phase to obtain initial sampling data; A step of performing an XOR operation on two adjacent initial sampling data; When the XOR value of the two adjacent initial sampling data is 1, a hopping edge between the initial sampling phases corresponding to the two adjacent initial sampling data is set as the target hopping edge; The step of obtaining an optimal sampling phase corresponding to the two adjacent bits includes: determining an initial sampling phase adjacent to the hopping edge and located after the target hopping edge as a second reference sampling phase; obtaining final sampling phases after each shift; a final sampling phase adjacent to a final reference phase is set as the optimum sampling phase, and the final reference phase is a final sampling phase corresponding to a result of displacing the second reference sampling phase.

2. the first predetermined shift rule is to shift the sampling phase backward by 0.25 bits after each shift; the second predetermined shift rule is to shift the sampling phase forward by 0.125 bits after each shift; 2. The method of claim 1, wherein the third predetermined shift rule is to shift the sampling phase backward by 0.125 bits after each shift.

3. 3. The method for double oversampling data according to claim 1, wherein steps S110 to S130 are simultaneously performed at least once.

4. The step of shifting the phase of each initial sampling includes:

3. A method according to claim 1, further comprising: shifting each initial sampling phase forward by 0.25 bits.

5. A receiving module for obtaining initial sampling phases and phase labels corresponding to each of two adjacent bits of a lead code in a GPON frame, the GPON frame including the lead code and valid data; a first shifting module for shifting the phase of each initial sampling and obtaining a sampling phase after each shift; a second displacement module, which displaces the sampling phase after each displacement again according to whether the adjacent phase labels of the target hopping edge before and after the displacement are equal and whether the first reference sampling phase is located on the target hopping edge, to obtain an optimal sampling phase corresponding to the two adjacent bits, the optimal sampling phase being close to the middle phase of the corresponding lead code, and the first reference sampling phase being a post-displacement sampling phase adjacent to the target hopping edge and located after the target hopping edge; a sampling module for sampling the valid data according to an optimal sampling phase corresponding to each bit of the read code; The step of displacing the sampling phase again after each displacement depending on whether adjacent phase labels of the target hopping edges before and after the displacement are equal and whether a first reference sampling phase is located on the target hopping edge includes: determining whether the first reference sampling phase lies on the target hopping edge; displacing the sampling phase again after each displacement according to a first predetermined displacement rule if the first reference sampling phase lies on the target hopping edge; When the first reference sampling phase is not located on the target hopping edge, obtaining a first adjacent phase label of the target hopping edge according to adjacent initial sampling phases of the target hopping edge and a phase label corresponding to each initial sampling phase; Obtaining a second adjacent phase label of the target hopping edge according to a sampling phase after an adjacent displacement of the target hopping edge; if the first adjacent phase label and the second adjacent phase label are equal, then again shifting the sampling phase after each shift according to a second predetermined shift rule; if the first adjacent phase label and the second adjacent phase label are not equal, then again shifting the sampling phase after each shift according to a third predetermined shift rule; Before obtaining a first adjacent phase label of the target hopping edge according to the adjacent initial sampling phases of the target hopping edge and a phase label corresponding to each initial sampling phase, the method includes: Sampling corresponding bits during each initial sampling phase to obtain initial sampling data; A step of performing an XOR operation on two adjacent initial sampling data; When the XOR value of the two adjacent initial sampling data is 1, a hopping edge between the initial sampling phases corresponding to the two adjacent initial sampling data is set as the target hopping edge; The step of obtaining an optimal sampling phase corresponding to the two adjacent bits includes: determining an initial sampling phase adjacent to the hopping edge and located after the target hopping edge as a second reference sampling phase; obtaining final sampling phases after each shift; a final sampling phase adjacent to a final reference phase is set as the optimum sampling phase, and the final reference phase is a final sampling phase corresponding to a result of displacing the second reference sampling phase.

6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the computer device performing the steps of the data double oversampling method according to any one of claims 1 to 4 when the processor executes the computer program.

7. A computer storage medium having a computer program stored thereon, the computer program being adapted to perform the steps of the data double oversampling method according to any one of claims 1 to 4 when executed by a processor.

Citation Information

Patent Citations

  • Phase comparator

    JP2006109208A

  • Reception circuit

    JP2015027040A

  • Clock data recovery circuit

    JP2016171387A

  • Multimode phase frequency detector for clock and data recovery

    JP2018523380A

  • Methods and apparatus to provide clock resynchronization in communication networks

    US20080159459A1