A high-efficiency calibration method and system for combo ONU board optical devices
Patent Information
- Application Number
- CN202610755730.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-28
- Publication Date
- 2026-08-18
AI Technical Summary
[0004]但是现有技术中,XGPON方案芯片厂商往往仅提供串口维度的调试接口,例如通过串口操作BOB的I2C、控制SerDes PRBS与长发光,若针对XGPON单独开发整套校准上位机与产线流程,存在开发周期长、与GPON双栈并行时工位连接复杂、产线节拍下降问题,为此,本发明提供一种Combo ONU板上光器件的高效校准方法及系统
1.本发明所述的一种Combo ONU板上光器件的高效校准方法及系统,通过可完全复用产线既有Telnet校准体系,无需为XGPON侧重新开发完整的校准上位机、协议栈与测试流程,仅需完成串口命令约定与映射实现,大幅缩短XGPON方案的产线导入周期,同时降低重复开发、双链路部署带来的硬件改造成本与维护成本。
Smart Images

Figure CN122601092A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of optical access network terminal equipment production testing and optical module calibration technology, specifically a high-efficiency calibration method and system for optical devices on a Combo ONU board. Background Technology
[0002] Combo ONUs typically integrate two independent PON MAC and processing systems. One system carries GPON services, while the other carries XGPON family high-speed PON services. The two systems share or work together to use the optical board (BOB). During the mass production line, each Combo ONU must undergo a full-process calibration and testing process, including writing BOB-related parameters, optical power testing, and bit error rate verification, to ensure the communication performance and reliability of the equipment after it leaves the factory.
[0003] Currently, production line calibration instruments and automated testing systems in the industry generally use Telnet or equivalent network remote login to interact with the ONU-side software. They complete I2C bus access, PRBS code stream transmission, long-term emission control, and error statistics calibration steps by issuing standardized commands. This solution is mature in its integration with Manufacturing Execution System (MES) and automated test scripts, and is the mainstream technical solution for production line calibration of optical access terminal equipment.
[0004] However, in existing technologies, XGPON solution chip manufacturers often only provide serial port-level debugging interfaces, such as operating the BOB's I2C and controlling the SerDes PRBS and continuous emission through the serial port. If a complete calibration host computer and production line process are developed separately for XGPON, there are problems such as long development cycle, complex workstation connection when running in parallel with GPON dual stack, and reduced production line cycle time. Therefore, this invention provides an efficient calibration method and system for optical devices on a Combo ONU board. Summary of the Invention
[0005] In order to overcome the shortcomings of the prior art, at least one technical problem raised in the background art is solved.
[0006] The technical solution adopted by this invention to solve its technical problem is: a high-efficiency calibration method for optical devices on a Combo ONU board, comprising the following steps: Step 1: Inside the Combo ONU, interconnect the GPON main control unit and the XGPON main control unit via a serial link to build an internal debugging and control channel; Step 2: The production line calibrator connects to the GPON main control unit via the Telnet protocol and issues a unified BOB calibration command compatible with GPON products; Step 3: Configure the calibration target flag in the GPON master control unit to distinguish between local calibration mode and peer calibration mode; Step 4: In peer mode, the BOB calibration command is mapped to a serial text command that the XGPON master control unit can recognize through the command adaptation layer, and then sent to the XGPON master control unit for execution via the internal serial link. Step 5: Analyze the echo data from the XGPON main control unit and restore it to the calibration result consistent with the local mode to complete the XGPON-side BOB calibration.
[0007] Preferably, the serial link is a UART universal asynchronous transceiver link, and the serial port parameters are configured as 115200 baud rate, 8 data bits, no parity, and 1 stop bit.
[0008] Preferably, the calibration target flag is persistently stored and retrieved through configuration files, flag files, environment variables, or RPC parameters.
[0009] Preferably, the command mapping includes an I2C operation mapping: Convert local I2C read / write commands into i2c_read and i2c_write serial port text commands, extract specified fields from the echoed data and restore them to a standard byte stream.
[0010] Preferably, the command mapping includes PRBS and error handling mapping: The local SerDes control commands are converted into serial port PRBS control sequences, and the echo is read using an extended waiting and idle stop strategy, thus unifying the calibration result reporting format.
[0011] Preferably, the command mapping includes peer session and state recovery steps: After PRBS is turned off or SerDes is reset, log configuration and I2C channel reconstruction sequence are performed according to the XGPON chip requirements to ensure reliable execution of subsequent calibration.
[0012] A high-efficiency calibration system for optical devices on a Combo ONU board, applied to the high-efficiency calibration method for optical devices on a Combo ONU board as described above, includes: Hardware interconnection unit, used to establish a serial communication channel between the GPON master control unit and the XGPON master control unit within the Combo ONU; The calibration entry unit is used to enable the production line calibrator to connect to the GPON main control unit via the Telnet protocol and receive unified BOB calibration commands. The mode configuration unit is used to set the local / peer calibration target flag in the GPON master control unit; Command adaptation unit, used to map BOB calibration commands to serial port text commands recognizable by the XGPON side in peer mode; The calibration execution and parsing unit is used to control the XGPON master to execute serial port commands, retrieve echoed data, and restore it to the standard calibration result.
[0013] Preferably, the command adaptation unit includes an I2C operation mapping module and a PRBS error code operation mapping module, which respectively realize the serial port command conversion and result parsing of the corresponding calibration operation.
[0014] Preferably, the command adaptation unit includes a peer session recovery unit, used to rebuild the I2C communication channel and chip session state in scenarios where PRBS is off and SerDes is reset.
[0015] Preferably, the command adaptation unit includes a Combo optical path selection unit, used to specify the physical optical path of the current operation, and to complete the GPON and XGPON dual-stack sequential calibration in conjunction with the local / peer calibration mode.
[0016] The beneficial effects of this invention are as follows: 1. The present invention provides an efficient calibration method and system for optical devices on a Combo ONU board. By fully reusing the existing Telnet calibration system on the production line, it eliminates the need to redevelop a complete calibration host computer, protocol stack, and testing process for the XGPON side. Only the serial port command agreement and mapping implementation need to be completed, which greatly shortens the production line introduction cycle of the XGPON solution and reduces the hardware modification and maintenance costs caused by repeated development and dual-link deployment.
[0017] 2. The efficient calibration method and system for optical devices on a Combo ONU board described in this invention achieves one-stop calibration of GPON and XGPON dual-stack BOBs by unifying the calibration entry and command semantics. This reduces the complexity of dual-cable and dual-session operations at workstations, reduces human error and cable replacement time, and significantly improves the mass production calibration efficiency of Combo ONUs. Furthermore, the software architecture reuses the same command tree through calibration target branches, effectively reducing code forks, lowering regression testing costs, and improving system stability and maintainability. Attached Figure Description
[0018] The invention will now be further described with reference to the accompanying drawings.
[0019] Figure 1 This is a schematic diagram of the process of Combo ONU dual MAC, UART interconnection and calibrator Telnet access in this invention; Figure 2 This is a flowchart illustrating the comparison of software paths in local mode and peer mode in this invention. Figure 3This is a schematic diagram of the I2C-to-serial port mapping process in this invention; Figure 4 This is a schematic diagram of the PRBS peer mode serial port interaction process in this invention; Figure 5 This is a schematic diagram of the dual-stack sequential calibration process with BOSA selection in this invention. Detailed Implementation
[0020] To make the technical means, creative features, objectives and effects of this invention easier to understand, the invention will be further described below in conjunction with specific embodiments.
[0021] like Figure 1-5 As shown in the embodiment of the present invention, an efficient calibration method for optical devices on a Combo ONU board includes the following steps: Step 1: Inside the Combo ONU, interconnect the GPON main control unit and the XGPON main control unit via a serial link to build an internal debugging and control channel; Internal serial link setup: During the Combo ONU hardware design phase, the UART_TX and UART_RX pins of the GPON main control unit are directly connected to the corresponding UART transceiver pins of the XGPON main control unit. No external adapter chip is required, forming a board-level private serial control channel. This channel is only used for command interaction during the calibration phase, does not occupy the service data channel, and does not affect normal optical communication services. Step 2: The production line calibrator connects to the GPON main control unit via the Telnet protocol and issues a unified BOB calibration command compatible with GPON products; Telnet calibration entry point establishment: The production line calibrator establishes a network connection with the service port of the Combo ONU through the Ethernet interface, and initiates remote login using a standard Telnet client. The account, password, and port number are completely consistent with the existing GPON ONU calibration configuration. After successful login, it enters the Linux user-space shell environment on the GPON side, without the need to configure the network or login permissions separately for the XGPON side. Step 3: Configure the calibration target flag in the GPON master control unit to distinguish between local calibration mode and peer calibration mode; Unified calibration command issuance: The calibrator issues standardized calibration commands of the gccli bob series via Telnet session, including BOB parameter reading and writing, optical power calibration, PRBS testing, and bit error statistics. The command format, parameter definition, and calling logic are exactly the same as those of a pure GPON ONU, and the production line scripts and MES system can be directly reused without modification. Step 4: In peer mode, the BOB calibration command is mapped to a serial text command that the XGPON master control unit can recognize through the command adaptation layer, and then sent to the XGPON master control unit for execution via the internal serial link. Calibration mode switching and command mapping: The GPON-side master controller determines that the current calibration mode is the peer (XGPON) by using the preset calibration target flag, triggering the command adaptation layer to work. The command adaptation layer intercepts the upper-layer BOB calibration command, converts it into a plain text serial port instruction that can be recognized by the XGPON firmware, and sends it to the XGPON master control unit through the internal UART link. Step 5: Analyze the echo data from the XGPON main control unit and restore it to the calibration result consistent with the local mode to complete the XGPON-side BOB calibration; Echo Parsing and Result Restoration: After the XGPON master controller executes the serial port command, it sends the execution result, register data, and test values back to the GPON master controller in a fixed format. The GPON side parses the key fields in the echo data, removes serial port debugging logs and redundant characters, and encapsulates the data into a return format that is completely consistent with the local I2C / driver mode, and sends it back to the calibrator, realizing XGPONBOB calibration that is imperceptible to the upper layer.
[0022] like Figure 1-5 As shown, the serial link is a UART universal asynchronous transceiver link, and the serial port parameters are configured as 115200 baud rate, 8 data bits, no parity, and 1 stop bit; By adopting a Universal Asynchronous Receiver / Transmitter (UART) as the interconnect link, replacing SPI and USB high-speed interfaces, the hardware compatibility is strong, the driver is mature, and it is compatible with serial port debugging solutions from all XGPON chip manufacturers, reducing hardware development costs. On the GPON side, the UART device node, such as / dev / ttyS0, is opened, and the serial port is configured as follows: Raw Mode, baud rate 115200, 8 data bits, no parity bit, 1 stop bit, hardware flow control (RTS / CTS) disabled, and software flow control (XON / XOFF) disabled. This configuration is completely matched with the default debugging serial port parameters of the XGPON chip manufacturer, requiring no firmware modification. Before sending serial port commands, the serial port receive buffer is cleared, and after sending, a fixed delay of 50ms is added to wait for the XGPON firmware response. The Linux system's select and read functions are used to poll and receive echo data to avoid data loss. For long-running test commands, a maximum waiting timeout (10s) is set to prevent process blocking.
[0023] like Figure 1-5 As shown, the calibration target flag is persistently stored and retrieved through configuration files, flag files, environment variables, or RPC parameters; A flag file named bob_calib_target is created in the / var / directory of the Linux system on the GPON side. When executing the gcclibobcal_peer command, the character "peer" is written to the file to indicate peer mode; when executing the gcclibobcal_local command, the character "local" is written to indicate local mode. Before each execution of the BOB command, the system first reads this file to determine the calibration target. In addition to the flag file, the system supports passing the calibration target identifier through environment variables (export BOB_CALIB_TARGET=peer), RPC call parameters, and configuration files ( / etc / gpon / bob_calib.conf), adapting to different versions of the gccli command-line tool and calibration scripts. After the entire calibration process is completed, the system automatically resets the flag file to local to avoid affecting the normal business operation of the equipment after it leaves the factory and to reduce the risk of accidentally triggering peer mode during non-calibration phases.
[0024] like Figure 1-5 As shown, the command mapping includes I2C operation mapping: converting local I2C read and write commands into i2c_read and i2c_write serial port text commands, extracting specified fields from the echo data and restoring them into a standard byte stream; The local I2C write command includes five parameters: bus number, slave address, register address, data length, and data to be written. The command adaptation layer converts these parameters into a serial text command named i2c_write -b [bus]-a[slave address]-r[register]-l[length]-d[data], which is then sent byte by byte to the XGPON side. After parsing the command, the XGPON firmware completes the BOB chip writing operation through its own I2C controller. Local I2C read commands are processed in blocks of up to 8 bytes, and converted into the serial port command i2c_read -b[bus] -a[slave address] -r[register] -l[length]; After XGPON executes the command, it echoes data in the format 'data=0x12,0x34,0x56...'. The GPON side extracts the hexadecimal byte sequence after 'data=' and restores it to a continuous byte stream, which is completely consistent with the data format returned by the local I2C read. For the multi-page register configuration of the BOB chip, the local page switching command is mapped to the serial I2C write command and written to the page select register. After the page switching is completed, there is a 100ms delay to ensure the stability of the I2C bus on the XGPON side before executing subsequent read and write operations, ensuring accurate register configuration.
[0025] like Figure 1-5 As shown, the command mapping includes PRBS and error operation mapping: local SerDes control commands are converted into serial port PRBS control sequences, and the echo is read using extended waiting and idle stop strategies, and the calibration result reporting format is unified; In local mode, SerDesPRBS transmission is triggered via ioctl character device. In peer mode, this is converted to the serial port command sequence serds_ioctlprbs_tx=1 and serds_prbs_txenable, which is then sent to the XGPON side to start continuous optical emission and PRBS stream transmission. The serds_prbs_rx bist=1 command is sent to trigger the built-in error self-test, which adopts an extended waiting (5s) and idle stop strategy: the serial port echo is continuously read until there is no new data output for 100ms, at which point the test is considered complete. The fields result=0 (no error), result=1 (with error), and duration=xxx ms in the echo are parsed, and the statistical results are written to the temporary file / tmp / bob_peer_prbs_rx_bist.result. The data in the temporary file is converted to the local ioctl mode reporting format, and LOS (loss of signal) anomalies are mapped to fixed error codes to ensure that the calibration script does not need to distinguish between local and peer modes when reading the results, thus achieving full compatibility.
[0026] like Figure 1-5 As shown, the command mapping includes peer session and state recovery steps: after PRBS is closed or SerDes is reset, log configuration and I2C channel reconstruction sequence are executed according to the XGPON chip requirements to ensure reliable execution of subsequent calibration; After executing `serds_ioctl prbs_tx=0` to disable PRBS, the `shutdown 0` command is issued to reset the SerDes module, with a 2-second delay to wait for the chip state to stabilize. Then, `setlogLevel 0` is executed again to disable the debug log, and `i2c_create-b 0` is executed to rebuild the I2C communication channel, restoring the XGPON side calibration context. If the XGPON chip automatically resets due to an anomaly, the command adaptation layer automatically retransmits the serial port initialization sequence: first configuring the log level, then creating the I2C channel, and finally synchronizing the calibration target flag, ensuring that subsequent I2C read / write, PRBS testing, and other operations are uninterrupted and error-free. If the I2C channel reconstruction fails, the system automatically retryes 3 times; if it still fails, a calibration error is reported, triggering a production line re-inspection to reduce the influx of defective equipment into the next process.
[0027] like Figure 1-5 As shown, a high-efficiency calibration system for optical devices on a Combo ONU board, applied to any of the above-described high-efficiency calibration methods for optical devices on a Combo ONU board, includes: The hardware interconnection unit is used to establish a serial communication channel between the GPON main control unit and the XGPON main control unit inside the Combo ONU. It consists of the UART physical link on the Combo ONU board and the level conversion circuit, realizing board-level serial communication between the GPON and XGPON main control units. The communication rate is stable, the anti-interference ability is strong, and it is suitable for mass production environments on production lines. The calibration entry unit is used to enable the production line calibrator to connect to the GPON main control unit via the Telnet protocol, receive unified BOB calibration commands, integrate Telnet server, gccli command line parsing module, BOB command interface, provide a unified calibration entry point, be compatible with existing calibrators, scripts, and MES system, and retain all calibration operation habits on the GPON side. The mode configuration unit is used to set the local / peer calibration target flag in the GPON main control unit. It includes a flag file read / write module, an environment variable parsing module, and a parameter verification module to realize the configuration, storage, reading and automatic switching of calibration targets, and supports one-click switching between local and peer modes. The command adaptation unit is used to map the BOB calibration command into a serial port text command that can be recognized by the XGPON side in peer mode. It is a core software module responsible for command semantic conversion, serial port message encapsulation, data format mapping, and shielding the underlying differences between GPONTelnet commands and XGPON serial port commands. The calibration execution and parsing unit is used to control the XGPON master controller to execute serial port commands, collect echoed data and restore it to the standard calibration result, drive the XGPON firmware to execute serial port commands, collect echoed data, complete data parsing, field extraction, format restoration, output standardized calibration results, and complete the full-process calibration of the XGPON-side BOB.
[0028] like Figure 1-5 As shown, the command adaptation unit includes an I2C operation mapping module and a PRBS error operation mapping module, which respectively realize the serial port command conversion and result parsing of the corresponding calibration operation; It independently encapsulates I2C command conversion, data parsing, block read / write, and page switching functions, supports I2C register operations for all BOB chips, and can be upgraded to adapt to different BOB device models. It also independently encapsulates SerDes control, PRBS start / stop, bit error rate statistics, BIST testing, and anomaly handling functions, supports multiple PRBS code types (PRBS7, PRBS15, PRBS31), and is compatible with XGPON full-rate optical module testing. The two modules exchange data through an internal message queue. After the I2C module completes the BOB parameter configuration, it notifies the PRBS module to start optical power and bit error rate testing. After the test is completed, the results are sent back to the upper layer, realizing the automation of the calibration process.
[0029] like Figure 1-5As shown, the command adaptation unit includes a peer session recovery unit, which is used to rebuild the I2C communication channel and chip session state in the scenarios of PRBS being closed and SerDes being reset; The system monitors the PRBS switch status, SerDes operating status, and I2C bus communication status in real time. When PRBS is detected as off, SerDes as reset, or I2C timeout triggers, the session recovery process is automatically initiated. Following the timing specified by the XGPON chip manufacturer, log configuration, port initialization, I2C channel creation, and chip status synchronization are executed sequentially to ensure complete restoration of the calibration session. The session recovery unit is encapsulated as an independent background daemon (bob_calib_daemon). The Telnet session communicates with the daemon through a local Unix socket. The daemon resides in memory and responds to status recovery requests in real time, improving system stability and calibration efficiency. The technical effect is completely equivalent to the direct integration mode.
[0030] like Figure 1-5 As shown, the command adaptation unit includes a Combo optical path selection unit, which is used to specify the physical optical path of the current operation and complete the GPON and XGPON dual-stack sequential calibration in conjunction with the local / peer calibration mode. The physical optical path to be calibrated can be specified by the bosa_sel[optical path number] command, which supports independent selection of GPON optical path and XGPON optical path and is compatible with single BOSA and dual BOSA Combo ONU hardware architectures. Dual-stack sequential calibration process: Step 1: Execute bosa_sel gpon to select the GPON optical path, set the calibration target to local, and complete the writing of GPON-side BOB parameters, optical power calibration, and bit error rate test; Step 2: Execute bosa_sel xgpon to select the XGPON optical path, set the calibration target to the peer end, and complete the full-process calibration of the XGPON-side BOB through command mapping; Step 3: After successful calibration, execute the gccli bob save command to write the dual-stack BOB calibration parameters into the Flash and A2 registers, completing the factory calibration of the device. Dual-stack calibration requires only one Telnet login and one workstation connection, eliminating the need to switch calibration devices and scripts. This reduces calibration time per device by more than 30%, significantly improving production line efficiency.
[0031] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of the present invention is defined by the appended claims and their equivalents.
Claims
1. A highly efficient calibration method for optical devices on a Combo ONU board, characterized in that, The method includes the following steps: Step 1: Inside the Combo ONU, interconnect the GPON main control unit and the XGPON main control unit via a serial link to build an internal debugging and control channel; Step 2: The production line calibrator connects to the GPON main control unit via the Telnet protocol and issues a unified BOB calibration command compatible with GPON products; Step 3: Configure the calibration target flag in the GPON master control unit to distinguish between local calibration mode and peer calibration mode; Step 4: In peer mode, the BOB calibration command is mapped to a serial text command that the XGPON master control unit can recognize through the command adaptation layer, and then sent to the XGPON master control unit for execution via the internal serial link. Step 5: Analyze the echo data from the XGPON main control unit and restore it to the calibration result consistent with the local mode to complete the XGPON-side BOB calibration.
2. The efficient calibration method for optical devices on a Combo ONU board according to claim 1, characterized in that: The serial link is a UART universal asynchronous transceiver link, and the serial port parameters are configured as 115200 baud rate, 8 data bits, no parity, and 1 stop bit.
3. The efficient calibration method for optical devices on a Combo ONU board according to claim 1, characterized in that: The calibration target flag is persistently stored and retrieved through configuration files, flag files, environment variables, or RPC parameters.
4. The efficient calibration method for optical devices on a Combo ONU board according to claim 1, characterized in that: The command mapping includes I2C operation mapping: Convert local I2C read / write commands into i2c_read and i2c_write serial port text commands, extract specified fields from the echoed data and restore them to a standard byte stream.
5. The efficient calibration method for optical devices on a Combo ONU board according to claim 1, characterized in that: The command mapping includes PRBS and error handling mapping: The local SerDes control commands are converted into serial port PRBS control sequences, and the echo is read using an extended waiting and idle stop strategy, thus unifying the calibration result reporting format.
6. The efficient calibration method for optical devices on a Combo ONU board according to claim 1, characterized in that: The command mapping includes peer session and state recovery steps: After PRBS is turned off or SerDes is reset, log configuration and I2C channel reconstruction sequence are performed according to the XGPON chip requirements to ensure reliable execution of subsequent calibration.
7. The high-efficiency calibration system for optical devices on a Combo ONU board according to claim 1, applied to the high-efficiency calibration method for optical devices on a Combo ONU board according to any one of claims 1-6, characterized in that: include: Hardware interconnection unit, used to establish a serial communication channel between the GPON master control unit and the XGPON master control unit within the Combo ONU; The calibration entry unit is used to enable the production line calibrator to connect to the GPON main control unit via the Telnet protocol and receive unified BOB calibration commands. The mode configuration unit is used to set the local / peer calibration target flag in the GPON master control unit; Command adaptation unit, used to map BOB calibration commands to serial port text commands recognizable by the XGPON side in peer mode; The calibration execution and parsing unit is used to control the XGPON master to execute serial port commands, retrieve echoed data, and restore it to the standard calibration result.
8. The high-efficiency calibration system for optical devices on a Combo ONU board according to claim 7, characterized in that: The command adaptation unit includes an I2C operation mapping module and a PRBS error operation mapping module, which respectively realize the serial port command conversion and result parsing of the corresponding calibration operation.
9. The high-efficiency calibration system for optical devices on a Combo ONU board according to claim 7, characterized in that: The command adaptation unit includes a peer session recovery unit, which is used to rebuild the I2C communication channel and chip session state in scenarios where PRBS is off and SerDes is reset.
10. The high-efficiency calibration system for optical devices on a Combo ONU board according to claim 7, characterized in that: The command adaptation unit includes a Combo optical path selection unit, which is used to specify the physical optical path of the current operation and complete the GPON and XGPON dual-stack sequential calibration in conjunction with the local / peer calibration mode.