Debugging method for radio frequency signal detection in radio frequency optical terminal based on network communication
By designing the network communication interface of the network management board program, efficient debugging of RF signal detection in RF optical transceivers is achieved, solving the problem of low debugging efficiency of single boards in existing technologies, and supporting online remote updates and mass production.
Patent Information
- Application Number
- CN202411529857.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-10-30
AI Technical Summary
The existing RF service boards require individual board debugging and assembly into a complete system when debugging RF signal detection. Data testing, writing and modification are troublesome and the debugging efficiency is low.
The network management board program is designed to use the network communication interface of the power sampling meter. The sampling meter is sent to the RF service board program via the network port and saved to the internal Flash of the microcontroller. After the RF service board program starts, it identifies and loads the sampling meter and looks up the table to calculate the detection value.
No need to disassemble the RF service board to update the program, improving debugging efficiency. Supports online remote updates, maintains the overall structural integrity, is suitable for maintenance of installed equipment, and is suitable for flexible processes in mass production.
Smart Images

Figure CN119519829B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of optical transceiver technology, and in particular to a debugging method for radio frequency signal detection in a network communication-based radio frequency optical transceiver. Background Technology
[0002] An RF optical transceiver typically consists of a network management board plugged into a backplane and multiple RF service boards. The RF service boards implement optical transmission of RF signals, and their microcontroller programs monitor the detection status of these signals. The network management board and each RF service board communicate via serial port to collect the detection status of each service board's RF signals, and then report this information to the monitoring computer in the equipment room via Ethernet interface, enabling overall monitoring of all RF signals from the optical transceiver.
[0003] Existing RF service boards suffer from drawbacks such as cumbersome data testing, writing, and modification, and low debugging efficiency when debugging RF signal detection. Each RF service board must first undergo individual board debugging before being assembled into a complete system. Specifically, during individual board debugging, the service board is powered separately, connected to an RF signal source, and connected to a debugging computer via a download / debugging cable. The service board program is then debugged on the debugging computer. RF signals of different power levels within the transmission range are sampled one by one by an AD converter according to their power values. The power values and sampled values (hereinafter referred to as the power sampling table) are then defined in the service board program as a constant data table. The program is then compiled and downloaded to the microcontroller's internal Flash memory. After the program runs, the real-time AD sampling value is calculated using a lookup table method to determine the corresponding RF signal detection value. This completes the debugging of the RF signal detection for one RF service board, and the debugging process is repeated for the next RF service board. Summary of the Invention
[0004] The purpose of this invention is to provide a debugging method for radio frequency signal detection in a network communication-based radio frequency optical transceiver, aiming to solve the problems of the existing method of debugging each radio frequency service board individually before assembling it into a complete machine, which is cumbersome for testing, writing, and modifying detection data, and has low program debugging efficiency.
[0005] To achieve the above objectives, this invention provides a debugging method for radio frequency signal detection in a network communication-based radio frequency optical transceiver, comprising the following steps:
[0006] Design a network management board program for the network communication interface that measures, writes, and reads the power sampling meter;
[0007] The power sampling table is sent to the RF service board program via the network port, and it is saved to the internal Flash of the microcontroller in a specific format.
[0008] After the RF service board program starts, it identifies and loads the power sampling table and calculates the detection value by looking up the table.
[0009] After the radio frequency service board program starts, it needs to determine whether the power sampling table read from the Flash is valid. An invalid frame format indicates that the data is invalid.
[0010] The specific method of measurement by the power sampling meter is as follows:
[0011] Enter the index of the RF service board to be tested on the PC network management software interface, and send a command to query the RF signal sampling value of the specified RF service board;
[0012] The network management board software receives the command, processes it, and forwards it to the designated radio frequency service board program, which calculates the radio frequency signal sampling value.
[0013] The radio frequency service board program reports the radio frequency signal sample value to the network management board software for processing and then reports it.
[0014] On the PC network management software, for the input service board index, the sampling values of radio frequency signals with different power levels within the transmission range are queried one by one according to their power values and displayed in a table.
[0015] The specific method for writing the power sampling table is as follows:
[0016] Enter the specified RF service board index on the PC network management software interface and send the command to write to the power sampling table;
[0017] The network management board software receives the command, processes it, and forwards it to the designated radio frequency service board program for processing, and stores the power sampling table in the internal Flash high address area;
[0018] The radio frequency service board program reports the processing results to the network management board software according to the response format, and the network management board software then reports the processing results to the PC network management software.
[0019] The specific method for reading the power sampling table is as follows:
[0020] Enter the specified RF service board index on the PC network management software interface and send a command to read the power sampling table;
[0021] The network management board software receives the command, processes it, and forwards it to the designated radio frequency service board program;
[0022] After receiving the command, the radio frequency service board program processes it and reports the power sampling table to the network management board software according to the response format.
[0023] After receiving the response, the network management board software processes it and then reports the power sampling table to the PC network management software.
[0024] This invention discloses a debugging method for radio frequency (RF) signal detection in a network-communication-based RF optical transceiver. The method involves designing a network management board program that uses the network communication interface for measuring, writing to, and reading from the power sampling table. The power sampling table is sent to the RF service board program via the network port and saved in a specific format to the microcontroller's internal Flash memory. Upon startup, the RF service board program identifies and loads the power sampling table, and calculates the detected value by looking up the table. This method eliminates the need for software developers to use specialized tools (download / debugger, software compiler) to update the RF service board program whenever the power sampling table needs modification. Production debugging personnel can complete the task using PC-based host computer software. The power sampling table can be updated without removing the RF service boards from the main unit, thus preserving the structural integrity of the entire unit. When the RF optical transceiver is installed at the test site and in operation, power outages to interrupt signal services are often unacceptable. In this case, the power sampling table can be updated online or remotely, allowing equipment maintenance to be performed during operation. In mass production, the entire unit can be assembled first, followed by simultaneous measurement and writing of the detection data for all RF service boards within the RF optical transceiver. This improves efficiency, increases process flexibility, and solves the problem of low debugging efficiency caused by requiring individual board debugging before assembling the entire unit. Attached Figure Description
[0025] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0026] Figure 1 This is a schematic diagram of the working principle of the radio frequency optical transceiver service board.
[0027] Figure 2 This is a flowchart of the debugging method for radio frequency signal detection in a network communication-based radio frequency optical transceiver provided by the present invention.
[0028] Figure 3 This is a flowchart illustrating the specific method for measuring power using a power sampling meter.
[0029] Figure 4 This is a flowchart illustrating the specific method for writing power sampling data.
[0030] Figure 5 This is a flowchart illustrating the specific method for reading the power sampling table.
[0031] Figure 6 This is a schematic diagram of the power sampling table storage format.
[0032] Figure 7This is a schematic diagram of the command format for querying radio frequency signal sample values.
[0033] Figure 8 This is a schematic diagram of the response format of radio frequency signal sample values.
[0034] Figure 9 This is a schematic diagram of the command format for writing the power sampling table.
[0035] Figure 10 This is a schematic diagram of the command response format for writing the power sampling table.
[0036] Figure 11 This is a schematic diagram of the command format for reading the power sampling table.
[0037] Figure 12 This is a schematic diagram of the command response format for reading the power sampling table. Detailed Implementation
[0038] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.
[0039] Please see Figures 1 to 12 This invention provides a debugging method for radio frequency signal detection in a network communication-based radio frequency optical transceiver, comprising the following steps:
[0040] The S1 design management board program is for the network communication interface that measures, writes, and reads the power sampling meter.
[0041] In this embodiment of the invention, the power sampling meter measurement process is as follows: The index of the RF service board to be tested is entered on the PC network management software interface. A command to query the RF signal sampling value of the specified RF service board is sent to the optical transceiver via the network port. The network management software receives the command, processes it, and forwards it to the specified RF service board program. After receiving the command, the RF service board program calculates the RF signal sampling value and reports the RF signal sampling value result to the network management software according to the response format. After receiving the response, the network management software processes it and reports the RF signal sampling value result to the PC network management software according to the response format. For example... Figure 1 As shown. The command and response formats for querying RF signal sample values are as follows: Figure 7 , Figure 8As shown in the diagram, the source and destination of data are distinguished based on the source and destination codes. When the PC network management software sends a command to the network management board software, the source is 01H and the destination is 02H; when the network management board software sends a command to the RF service board program, the source is 02H and the destination is 03H. The transmission of response data follows the same principle. On the PC network management software interface, for the input service board index, the AD sampling value of RF signals with different power levels within the transmission range is queried one by one according to the power value. Each power value and the corresponding sampling value are clearly displayed in a table on the PC network management software interface, thus completing the measurement of the power sampling table.
[0042] The power sampling table writing process is similar to the measurement process. After the power sampling table measurement, the specified RF service board index is entered on the PC network management software interface. A command to write the power sampling table is sent to the optical transceiver via the network port. The network management board software receives the command, processes it, and forwards it to the specified RF service board program. The RF service board program receives the command, processes it, and then... Figure 6 The format stores the power sampling table in the high address area of the internal Flash memory, and follows the... Figure 4 The response process involves reporting the processing result to the network management board software. Upon receiving the response, the network management board software processes it and then reports the result back to the PC network management software. (See diagram below.) Figure 1 As shown. The command format and response format for writing RF signal sample values are as follows: Figure 9 , Figure 10 As shown.
[0043] The table distinguishes the source and destination of data based on source and destination codes. When the PC network management software sends a command to the network management board software, the source is 01H and the destination is 02H; when the network management board software sends a command to the RF service board program, the source is 02H and the destination is 03H. The transmission of response data follows the same principle.
[0044] The process for reading the power sampling table: After the power sampling table is written, it must also support reading to facilitate reuse. On the PC network management software interface, enter the specified RF service board index and send a command to read the power sampling table to the optical transceiver via the network port. The network management board software receives the command, processes it, and forwards it to the specified RF service board program. The RF service board program receives the command, processes it, and then... Figure 5 The response flow shown is as follows: the power sampling table is reported to the network management board software. After receiving the response, the network management board software processes it and then reports the power sampling table back to the PC network management software. (See diagram below.) Figure 1 As shown. The command format and response format for reading the power sampling table are as follows: Figure 11 , Figure 12As shown in the diagram, the source and destination of data are distinguished based on the source and destination codes. When the PC network management software sends a command to the network management board software, the source is 01H and the destination is 02H; when the network management board software sends a command to the RF service board program, the source is 02H and the destination is 03H. The transmission of response data follows the same principle. After the power sampling table is read, it can be reused for other RF service boards with highly consistent hardware characteristics.
[0045] Specific methods:
[0046] S101 inputs the index of the RF service board to be tested on the PC network management software interface and sends a command to query the RF signal sampling value of the specified RF service board.
[0047] The S102 network management board software receives the command, processes it, and forwards it to the designated radio frequency service board program, which calculates the radio frequency signal sampling value.
[0048] S103 The radio frequency service board program reports the radio frequency signal sampling value to the network management board software for processing and reporting;
[0049] S104 uses the PC network management software to query the sampled values of radio frequency signals with different power levels within the transmission range according to the power value of the input service board index, and displays them in the form of a table.
[0050] The specific method for writing the power sampling table is as follows:
[0051] S111 inputs the specified RF service board index on the PC network management software interface and sends a command to write to the power sampling table;
[0052] The S112 network management board software receives the command, processes it, and forwards it to the designated radio frequency service board program for processing, which stores the power sampling table in the internal Flash high address area;
[0053] The radio frequency service board program in S113 reports the processing result to the network management board software according to the response format, and the network management board software then reports the processing result to the PC network management software.
[0054] The specific method for reading the power sampling table is as follows:
[0055] S121 inputs the specified RF service board index on the PC network management software interface and sends a command to read the power sampling table;
[0056] The S122 network management board software receives the command, processes it, and forwards it to the designated radio frequency service board program.
[0057] After receiving the command, the radio frequency service board program in S123 processes it and reports the power sampling table to the network management board software according to the response format.
[0058] After receiving the response, the network management board software in S124 processes it and then reports the power sampling table to the PC network management software.
[0059] S2 sends the power sampling table to the RF service board program via the network port, and the table is saved to the internal Flash of the microcontroller in a specific format.
[0060] In this embodiment of the invention, the power sampling table of the RF service board is separated from the RF service board program. The power sampling table can be stored in the sector space following the internal Flash memory of the microcontroller on the RF service board. In this way, the space occupied by the program is not affected (the program is stored starting from the internal Flash memory address), and no additional external Flash memory is required.
[0061] After the S3 RF service board program starts, it identifies and loads the power sampling table, and calculates the detection value by looking up the table.
[0062] In this embodiment of the invention, after the RF service board program starts, it first determines whether the power sampling table read from the high address area of the internal Flash is valid: an invalid frame format indicates that the data is invalid; the first power represents the RF signal power corresponding to the sampled value AD1, and for precision, it only needs to retain one decimal place, multiplying it by 10 to convert it into an integer for easy transmission and storage; the RF signal power corresponding to AD1 to ADn is arranged in an arithmetic sequence, and the difference between the previous power value and the next power value is the power step, represented by a 1-byte signed number (int8 type); the number of AD sampled values is represented by a 1-byte unsigned number (uint8 type); finally, a CRC-16 check value is calculated for all data bytes from the first power to ADn, and appended to the end of the frame to verify the data integrity of the power sampling table, wherein the storage format of the power sampling table is as follows: Figure 6 As shown.
[0063] The beneficial effects of this method are:
[0064] 1. Whenever the power sampling table needs to be modified, software developers do not need to use professional tools (download / debugger, software compiler) to update the RF service board program. Production debugging personnel can update the power sampling table through PC host computer software.
[0065] Second, whenever the power sampling meter needs to be modified, it is not necessary to remove the RF service board from the whole machine to update the program, which will not damage the structural integrity of the whole machine;
[0066] Third, when measuring the power sampling meter of the RF service board, it is not necessary to remove the RF service board from the whole machine. The electromagnetic environment at this time is the final working environment of the RF service board. The measured power sampling meter will be more accurate, and the RF signal detection calculated by the service board program will also be more realistic and accurate.
[0067] 4. When the RF optical transceiver equipment has been installed at the test site and is in operation, it is often not permissible to power off the optical transceiver and interrupt the signal service. In this case, the power sampling meter can be updated online or remotely, and equipment maintenance can be carried out while the equipment is in operation.
[0068] Fifth, since the power sampling meter and program are separated, all RF service boards use a unified program, which facilitates software archiving and large-scale downloading. On the other hand, for RF service boards with highly consistent power sampling meters, the power sampling meter can be measured once (or read from a pre-measured value) and then reused repeatedly, enabling batch use and significantly improving efficiency.
[0069] VI. In the mass production process, the entire machine can be assembled first, and then the detection and writing of all radio frequency service boards in the radio frequency optical transceiver can be performed together, which improves efficiency and makes the process more flexible.
[0070] The above-disclosed embodiments are merely preferred embodiments of the debugging method for radio frequency signal detection in a radio frequency optical transceiver based on network communication according to the present invention. Of course, they should not be construed as limiting the scope of the present invention. Those skilled in the art can understand that implementing all or part of the above embodiments and making equivalent changes in accordance with the claims of the present invention still fall within the scope of the invention.
Claims
1. A debugging method for radio frequency signal detection in a network communication-based radio frequency optical transceiver, characterized in that, Includes the following steps: Design a network management board program for the network communication interface for power sampling meter measurement, writing, and reading; The specific method of measurement by the power sampling meter: Enter the index of the RF service board to be tested on the PC network management software interface, and send a command to query the RF signal sampling value of the specified RF service board; The network management board software receives the command, processes it, and forwards it to the designated radio frequency service board program, which calculates the radio frequency signal sampling value. The RF service board program reports the RF signal sample values to the network management board software for processing and then uploads them. On the PC network management software, for the input service board index, the sampling values of radio frequency signals with different power levels within the transmission range are queried one by one according to the power value and displayed in the form of a table; The specific method for writing the power sampling table is as follows: Enter the specified RF service board index on the PC network management software interface and send the command to write to the power sampling table; The network management board software receives the command, processes it, and forwards it to the designated radio frequency service board program for processing, which stores the power sampling table in the internal Flash high address area; The radio frequency service board program reports the processing result to the network management board software according to the response format, and the network management board software then reports the processing result to the PC network management software. The specific method for reading the power sampling table is as follows: Enter the specified RF service board index on the PC network management software interface and send a command to read the power sampling table; The network management board software receives the command, processes it, and forwards it to the designated radio frequency service board program; After receiving the command, the radio frequency service board program processes it and reports the power sampling table to the network management board software according to the response format. After receiving the response, the network management board software processes it and then reports the power sampling table to the PC network management software. The power sampling table is sent to the RF service board program via the network port, and it is saved to the internal Flash of the microcontroller in a specific format. After the radio frequency service board program starts, it identifies and loads the power sampling table, and calculates the detection value by looking up the table.
2. The debugging method for radio frequency signal detection in a network communication-based radio frequency optical transceiver as described in claim 1, characterized in that, After the RF service board program starts, it needs to determine whether the power sampling table read from the Flash is valid. An invalid frame format indicates that the data is invalid.
Citation Information
Patent Citations
Power Sensor Frequency Response Testing and Compensation Device and Method
CN102262187A
Single board and single board management method and system
CN105634788A