Optical fiber data acquisition method and system and handheld communication installation and maintenance terminal
By integrating ARM and FPGA units in handheld communication installation and maintenance terminals, controlling the acquisition and processing of OTDR data, the problems of high hardware resource demand and high cost in the prior art are solved, and efficient fiber data acquisition and cost reduction are achieved.
Patent Information
- Application Number
- CN202311852557.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-07-01
AI Technical Summary
The handheld devices of existing fiber optic communication equipment have high requirements for hardware resources during functional development, resulting in increased production costs.
By setting up a system on-chip module in the handheld communication installation terminal, integrating the ARM unit and the FPGA unit, using the ARM unit to send parameter information to the FPGA unit, controlling the acquisition and processing of OTDR data, realizing data splicing and uploading, and optimizing the utilization of hardware resources.
It effectively reduces the demand and production costs of hardware resources, and at the same time increases the acquisition of fiber optic data, achieving efficient data acquisition under limited hardware resources.
Smart Images

Figure CN120238189A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical fiber data acquisition, and more specifically, to an optical fiber data acquisition method, system and handheld communication installation and maintenance terminal. Background Art
[0002] Optical fiber communication technology has become one of the most important technologies in the current communication technology field. With the continuous development of optical fiber communication technology, the number of optical fiber lines is also increasing continuously. The maintenance of optical fiber lines faces huge challenges and also consumes a large amount of costs. In order to achieve the maintenance of optical fiber lines more quickly, the maintenance equipment is constantly developing towards miniaturization and portability. The biggest problem faced by miniaturization is the allocation of hardware resources and cost control. In the prior art, handheld device products with OTDR (optical time-domain reflectometer) related functions will develop functions under relatively sufficient hardware resources, and the existing framework has relatively high requirements for resources on hardware devices, which will lead to an increase in production costs. Summary of the Invention
[0003] The present invention aims to overcome at least one defect of the above prior art, and provides an optical fiber data acquisition method, system and handheld communication installation and maintenance terminal, which are used to reduce production costs and increase the amount of optical fiber data acquisition.
[0004] The technical solution adopted by the present invention is as follows:
[0005] On the one hand, the present invention provides an optical fiber data acquisition method, which is applied to a handheld communication installation and maintenance terminal. The handheld communication installation and maintenance terminal is provided with a system-on-chip module, and the system-on-chip module is provided with an ARM unit and an FPGA unit. The method includes:
[0006] The ARM unit sends parameter information to the FPGA unit; the parameter information at least includes the OTDR reported data volume;
[0007] The FPGA unit samples the optical fiber to be sampled according to the parameter information to obtain OTDR data;
[0008] The FPGA unit preprocesses the OTDR data and stores it in the buffer area of the FPGA unit;
[0009] The FPGA unit determines that the data volume of the OTDR data stored in the buffer area meets the OTDR reported data volume, then takes out all the OTDR data from the buffer area, and processes the OTDR data according to the parameter information to obtain OTDR reported data; the OTDR reported data volume does not exceed the capacity of the buffer area;
[0010] The FPGA unit transfers the OTDR reported data to the ARM unit;
[0011] The ARM unit obtains the OTDR reported data and stores the OTDR reported data in the queue of the ARM unit; Preferably, before the OTDR reported data is stored in the queue, the OTDR reported data needs to be verified;
[0012] The ARM unit calculates the total amount of all the OTDR reported data in the queue, determines whether the total amount of data meets the preset data volume. If it meets, all the OTDR reported data in the queue are sequentially spliced to obtain a display data stream; If it does not meet, new parameter information is sent to the FPGA unit to enable the FPGA unit to continue collecting data and reporting;
[0013] The ARM unit processes the display data stream in the queue, takes out the processed display data stream from the queue and uploads it to the application layer for display.
[0014] By configuring the required amount of OTDR reported data once by the ARM unit for the FPGA unit, the FPGA unit will collect the corresponding amount of OTDR data according to the amount of OTDR reported data. All the OTDR reported data are stored in the queue of the ARM unit through multiple collections. The OTDR reported data are spliced in the queue, and small data are formed into large data by splicing, reasonably utilizing the hardware resources of the ARM unit and the FPGA unit, and can effectively utilize lower hardware resources to achieve more fiber optic data collection, thereby reducing the hardware cost; At the same time, the ARM unit also controls the total amount of the OTDR reported data. When the OTDR reported data stored in the queue meets the preset data volume, all the OTDR reported data are spliced and uploaded to the application layer for display, releasing the resources of the queue, and then being able to continue receiving the OTDR reported data reported by the FPGA unit to achieve continuous collection, and can reduce the allocation of the hardware resources of the queue, thereby reducing the hardware cost.
[0015] OTDR reported data OTDR reported data OTDR reported data
[0016] Further, after the FPGA unit finishes collecting OTDR data according to the parameter information, it sends a collection completion signal to the ARM unit;
[0017] If the ARM unit does not receive the acquisition completion signal from the FPGA unit after a preset time for sending parameter information, it is determined that the data acquisition fails, and the parameter information is resent to the FPGA unit to make the FPGA unit re-acquire data and report it.
[0018] If the number of consecutive times that the ARM unit determines the data acquisition fails exceeds the preset acquisition times, it is determined that the status of the FPGA unit is unstable, and the FPGA unit is reset and initialized.
[0019] By setting the acquisition completion signal to judge whether the acquisition is completed, the ARM unit and the FPGA unit can better perform asynchronous operations and improve the efficiency of data acquisition and transmission.
[0020] Further, the parameter information further includes pulsed beam information.
[0021] The FPGA unit samples the optical fiber to be acquired according to the parameter information to obtain OTDR data, specifically:
[0022] The FPGA unit configures a pulsed beam according to the pulsed beam information in the parameter information, sends the pulsed beam to the optical fiber to be acquired, and samples the signal fed back by the optical fiber to be acquired to obtain the OTDR data.
[0023] Further, the parameter information further includes a sampling start position and a segmentation flag.
[0024] The FPGA unit processes the OTDR data according to the parameter information to obtain OTDR reporting data, specifically including:
[0025] The FPGA unit adds the sampling start position in the parameter information to the beginning of the first OTDR data acquired according to the corresponding parameter information, and adds the segmentation flags in the parameter information to the end of the last OTDR data acquired according to the corresponding parameter information to obtain the OTDR reporting data.
[0026] The ARM unit sequentially splices all the OTDR reporting data in the queue to obtain a display data stream, specifically including:
[0027] The ARM unit identifies all the OTDR reporting data acquired by the FPGA unit according to the sampling start position and the segmentation flag, and sequentially splices all the OTDR reporting data to obtain the display data stream.
[0028] Further, before the ARM unit sends parameter information to the FPGA unit, the ARM unit obtains the version information of the FPGA unit and initializes the FPGA unit according to the version information. The initialization may include adjusting the allocation of the buffer area in the FPGA unit;
[0029] In a second aspect, the present invention further provides an optical fiber data acquisition system, which is applied to a handheld communication installation and maintenance terminal. The handheld communication installation and maintenance terminal is provided with a system-on-chip module, and the system is applied to the system-on-chip module. The system includes an ARM unit and an FPGA unit,
[0030] The ARM unit includes:
[0031] A first data interaction unit, configured to send parameter information to the FPGA unit of the handheld communication installation and maintenance terminal, and obtain OTDR reported data collected and reported by the FPGA unit according to the parameter information; the parameter information at least includes the amount of OTDR reported data, and the OTDR reported data matches the amount of OTDR reported data;
[0032] A queue, which is used to store the OTDR reported data received by the first data interaction unit;
[0033] Preferably, before the OTDR reported data is stored in the queue, the OTDR reported data needs to be verified;
[0034] An analysis and calculation unit, configured to calculate the total amount of data of all the OTDR reported data in the queue, and determine whether the total amount of data meets a preset data amount. If it meets, a data processing signal is sent. If it does not meet, a continue collection signal is sent;
[0035] A data processing unit, configured to receive the data processing signal sent by the analysis and calculation unit, and sequentially splice all the OTDR reported data in the queue according to the data processing signal to obtain a display data stream;
[0036] A data upload unit, configured to process the display data stream spliced by the data processing unit, take out the processed display data stream from the queue and upload it to the application layer for display;
[0037] The first data interaction unit is further configured to receive the continue collection signal sent by the analysis and calculation unit, and continue to send new parameter information to the FPGA unit of the handheld communication installation and maintenance terminal according to the continue collection signal, so that the FPGA unit continues to collect data and report;
[0038] The FPGA unit includes:
[0039] The second data interaction unit is used to receive the parameter information sent by the first data interaction unit 11 and report the OTDR reported data to the first data interaction unit of the ARM unit;
[0040] The data acquisition unit is used to sample the optical fiber to be sampled according to the parameter information to obtain OTDR data;
[0041] The data preprocessing unit is used to preprocess the OTDR data obtained by the data acquisition unit;
[0042] The buffer is used to store the OTDR data preprocessed by the data preprocessing unit;
[0043] The reporting and analysis unit is used to analyze whether the data volume of the OTDR data stored in the buffer meets the OTDR reporting data volume. If it meets, the reporting and analysis unit takes out all the OTDR data from the buffer and processes it to obtain the OTDR reporting data and transmits it to the second data interaction unit; the OTDR reporting data volume does not exceed the capacity of the buffer.
[0044] Further, after the second data interaction unit completes the acquisition of OTDR data according to the parameter information, it sends an acquisition completion signal to the first data interaction unit;
[0045] If the first data interaction unit does not receive the acquisition completion signal from the second data interaction unit after a preset time of sending the parameter information, it is determined that the data acquisition fails, and the first data interaction unit resends the parameter information to the second data interaction unit to make the second data interaction re-acquire data and report it;
[0046] If the number of times the first data interaction unit continuously determines that the data acquisition fails exceeds the preset acquisition times, it is determined that the FPGA unit is in an unstable state, and the FPGA unit is reset and initialized.
[0047] Further, the parameter information further includes pulsed beam information;
[0048] The data acquisition unit samples the optical fiber to be sampled according to the parameter information to obtain OTDR data, specifically:
[0049] The data acquisition unit configures a pulsed beam according to the pulsed beam information in the parameter information, sends the pulsed beam to the optical fiber to be sampled, and samples the signal fed back by the optical fiber to be sampled to obtain the OTDR data.
[0050] Further, the parameter information further includes a sampling start position and a segmentation flag;
[0051] The data processing unit processes the OTDR data according to the parameter information to obtain OTDR reporting data, specifically including:
[0052] The data processing unit adds the sampling start position in the parameter information to the beginning of the first OTDR data collected according to the corresponding parameter information, and adds the segmentation flags in the parameter information to the end of the last OTDR data collected according to the corresponding parameter information to obtain the OTDR reporting data.
[0053] The data uploading unit sequentially splices all the OTDR reporting data in the queue to obtain a display data stream, specifically including:
[0054] The data uploading unit identifies all the OTDR reporting data in the queue according to the sampling start position and the segmentation flag, and sequentially splices all the OTDR reporting data to obtain the display data stream.
[0055] In a third aspect, the present invention further provides a handheld communication installation and maintenance terminal, which is provided with a system-on-chip module. The system-on-chip module integrates an ARM unit and an FPGA unit, and the ARM unit is electrically connected to the FPGA unit;
[0056] The system-on-chip module is used to execute a fiber optic data acquisition method as described above.
[0057] Compared with the prior art, the beneficial effects of the present invention are:
[0058] 1. In the present invention, the ARM unit issues parameter information to the FPGA unit to configure the data volume of the OTDR data collected by the FPGA unit at one time. After the FPGA unit completes the collection, the OTDR data is processed to form OTDR reporting data and reported to the ARM unit. When the data volume of the OTDR reporting data meets the preset data volume, all the OTDR reporting data is spliced to form a display data stream, and the display data stream is uploaded to the application layer for display; it can effectively utilize the limited hardware resources of the FPGA unit through the ARM unit, reduce the hardware resource requirements of the FPGA unit, and thus reduce the hardware cost of the FPGA unit;
[0059] 2. The present invention collects the OTDR data with a relatively small amount of data through the FPGA unit and generates the OTDR reported data. Then, the ARM unit splices the OTDR reported data into the display data stream with a relatively large amount of data, which can effectively utilize the hardware resources of the FPGA unit and the ARM unit. On the premise of limited hardware resources, it can obtain larger fiber optic data, and on the premise of ensuring the amount of data obtained, it reduces the production cost of the overall hardware resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 It is a flowchart of the steps of the method according to Embodiment 1 of the present invention.
[0061] Figure 2 It is a system structure diagram of Embodiment 2 of the present invention.
[0062] Reference numerals in the drawings: ARM unit 10, first data interaction unit 11, queue 12, analysis and calculation unit 13, data processing unit 14, data upload unit 15, FPGA unit 20, second data interaction unit 21, buffer 22, data acquisition unit 23, reported data analysis unit 24. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0063] The drawings of the present invention are only for illustrative purposes and should not be construed as a limitation to the present invention. For better explaining the following embodiments, some components in the drawings will be omitted, enlarged or reduced, and do not represent the dimensions of the actual product; for those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0064] Embodiment 1
[0065] As Figure 1As shown in the figure, this embodiment provides a fiber optic data acquisition method, which is applied to a handheld communication installation and maintenance terminal. The specific working principle of the handheld communication installation and maintenance terminal is as follows: Connect the handheld communication installation and maintenance terminal to the fiber optic cable, then send a pulsed light beam into the fiber optic cable, and receive the returned signal, and analyze the returned signal to obtain the situation of the fiber optic cable; A System-on-Chip (SoC) module is provided in the handheld communication installation and maintenance terminal, and an ARM (Advanced RISC Machines) unit and an FPGA (Field Programmable Gate Array) unit are integrated on the SoC module; The ARM unit is electrically connected to the FPGA unit; Communication can be achieved between the ARM unit 10 and the FPGA unit 20 through SPI (Serial Peripheral Interface); By integrating the ARM unit 10 and the FPGA unit 20 on the SoC module, the production cost of the handheld communication installation and maintenance terminal can be significantly reduced; Among them, the interaction steps between the ARM unit 10 and the FPGA unit 20 specifically include:
[0066] S1: The ARM unit 10 sends parameter information to the FPGA unit 20; The parameter information includes the OTDR reported data volume. The FPGA unit 20 can report OTDR data to the ARM unit 10 according to the OTDR reported data volume, and the OTDR reported data volume will be set according to the actual hardware resource capacity of the FPGA unit 20;
[0067] S2: The FPGA unit 20 samples the fiber optic cable to be collected according to the parameter information to obtain OTDR data;
[0068] Specifically, the parameter information also includes pulsed light beam information; In this embodiment, the FPGA unit 20 emits a preset pulsed light beam into the fiber optic cable to be collected, and collects the signal fed back from the fiber optic cable to be collected through the FPGA unit 20; That is, after the FPGA unit 20 receives the parameter information, it configures the pulsed light beam according to the pulsed light beam information in the parameter information, emits the pulsed light beam into the fiber optic cable to be collected, and uses the principle of Rayleigh scattering effect, etc., to receive the OTDR data fed back from the fiber optic cable to be collected; Among them, the pulsed light beam information may include the frequency and intensity of the pulse; The FPGA unit 20 can collect the fiber optic cable to be collected by means of ADC sampling.
[0069] In addition, in this step, after the FPGA unit 20 completes collecting OTDR data according to the parameter information, it sends a collection completion signal to the ARM unit 10 to mark the completion of data collection;
[0070] S3: The FPGA unit 20 preprocesses the OTDR data and stores it in the buffer 22 of the FPGA unit 20;
[0071] Specifically, in this step, the FPGA unit 20 will preprocess the OTDR data multiple times, where the number of preprocessing times is set according to the actual situation; the preprocessing includes at least one of data acquisition, data accumulation, and data denoising.
[0072] Among them, the buffer 22 is allocated according to the hardware resources of the FPGA unit 20, and the OTDR reported data volume matches the hardware resources of the FPGA unit 20, that is, the ARM unit 10 controls the data volume collected and reported by the FPGA unit 20 by sending the OTDR reported data volume to the FPGA unit 20; in actual settings, the OTDR reported data volume does not exceed the capacity of the buffer 22, and the ARM unit 10 will set the OTDR reported data volume according to the actual capacity of the buffer 22. Preferably, the OTDR reported data volume is equal to the capacity of the buffer 22. Exemplarily, in a specific implementation manner of this embodiment, the capacity of the buffer 22 allocated to the FPGA unit 20 is 64k, then the OTDR reported data volume can be correspondingly set to 64k, that is, the data volume of the collected data collected and reported is 64k.
[0073] S4: The FPGA unit 20 determines that the data volume of the OTDR data stored in the buffer 22 meets the OTDR reported data volume, then takes out all the OTDR data from the buffer 22, and processes the OTDR data according to the parameter information to obtain the OTDR reported data;
[0074] Specifically, the parameter information also includes the sampling start position and the segmentation flag;
[0075] In this step, the processing of the OTDR data according to the parameter information to obtain the OTDR reported data is specifically as follows: the FPGA unit 20 adds the sampling start position in the parameter information to the beginning of the first OTDR data collected according to the corresponding parameter information, and adds the segmentation flags in the parameter information to the end of the last OTDR data collected according to the corresponding parameter information to obtain the OTDR reported data. At the same time, after taking out the OTDR data from the buffer 22, the space of the buffer 22 can be released to store new OTDR data.
[0076] S5: The FPGA unit 20 transfers the OTDR reported data to the ARM unit 10; after transferring the OTDR reported data to the ARM unit 10, the FPGA unit 20 enters the idle state and waits for the ARM unit 10 to send new parameter information to activate it again;
[0077] S6: The ARM unit 10 obtains the OTDR reported data and stores the OTDR reported data in the queue 12 of the ARM unit 10;
[0078] Specifically, in step S2, after the FPGA unit 20 collects the OTDR data, it sends the collection completion signal to the ARM unit 10. The ARM unit 10 receives the collection completion signal from the FPGA unit 20 and adds the OTDR reported data to the queue 12; preferably, before the OTDR reported data is stored in the queue 12, the OTDR reported data needs to be verified;
[0079] To avoid data exchange blockage between the FPGA unit 20 and the ARM unit 10, a re - collection strategy can be set in the ARM unit 10. Specifically, it can be set as follows: if the ARM unit 10 does not receive the collection completion signal from the FPGA unit 20 after a preset time of sending the parameter information, it is determined that the data collection fails, and the parameter information is sent to the FPGA unit 20 again to make the FPGA unit 20 re - collect data and report it;
[0080] If the number of consecutive data collection failures judged by the ARM unit 10 exceeds the preset collection times, it is determined that the state of the FPGA unit 20 is unstable, and the FPGA unit 20 is reset and initialized.
[0081] S7: The ARM unit 10 calculates the total amount of all the OTDR reported data in the queue 12 and judges whether the total amount meets the preset data volume;
[0082] If it meets the requirement, all the OTDR reported data in the queue 12 are sequentially spliced to obtain the display data stream; if it does not meet the requirement, new parameter information is sent to the FPGA unit 20 to make the FPGA unit 20 continue to collect data and report it;
[0083] Preferably, the preset data volume is set according to the capacity of the queue 12 allocated to the ARM unit 10, and the preset data volume does not exceed the capacity of the queue 12. The purpose is to enable the ARM unit 10 to store as many OTDR reported data reported by the FPGA unit 20 as possible, so that the OTDR reported data with a smaller data volume can be spliced in the queue 12 into the display data stream with a larger data volume, ensuring that the data volume collected by the handheld communication installation and maintenance terminal from the optical fiber can be stored to meet the display requirements of the application layer of the handheld communication installation and maintenance terminal. Preferably, the preset data volume is equal to the capacity of the queue 12; in addition, the capacity of the queue 12 is usually greater than the OTDR reported data volume, so that the queue 12 can store the OTDR reported data obtained multiple times.
[0084] Further, in step S4, the FPGA unit 20 sets the sampling start position and the segmentation flag at the head and tail of the OTDR reported data.
[0085] Then, the sequential splicing of all the OTDR reported data in the queue 12 to obtain the display data stream is specifically as follows:
[0086] Traverse all the OTDR reported data in the queue 12 according to the sampling start position and the segmentation flag, arrange them in order, and splice all the arranged OTDR reported data in sequence to obtain the display data stream. The sampling start position is the starting position of sampling by the sampling module, and can also be used as the identification bit of a segment of OTDR reported data. Combining with the segmentation flag, it is easy to identify a segment of OTDR reported data from the queue 12.
[0087] Exemplarily, in a specific implementation manner of this embodiment, the capacity of the queue 12 allocated by the ARM unit 10 can be set to 128k. Correspondingly, the preset data volume matches the capacity of the queue 12, and the preset data volume can be set to 128k. And the OTDR reported data volume reported by the FPGA unit 20 at one time is 64k. Then, after the FPGA unit 20 reports the OTDR reported data for the first time, the total amount of data in the queue 12 is 64k, which does not meet the preset data volume. New parameter information is sent to the FPGA unit 20 to enable the FPGA unit 20 to continue collecting data and reporting. The FPGA unit 20 continues to collect 64k of the OTDR reported data and reports it to the ARM unit 10. At this time, the data volume in the queue 12 is 128k, which meets the preset data volume. Then, two segments of 64k of the OTDR reported data in the queue 12 are obtained according to the sampling start position and the segmentation flag, and the two segments of the OTDR reported data are spliced in the order of upload to obtain the 128k display data stream.
[0088] S8: The ARM unit 10 processes the display data stream in the queue 12, takes out the processed display data stream from the queue 12 and uploads it to the application layer for display. Preferably, the processing may include OTDR processing; after the display data stream is processed, the situation in the optical fiber to be collected can be correspondingly displayed at the application layer of the handheld communication installation and maintenance terminal. And after the display data stream is taken out from the queue 12, the space of the queue 12 is released, which can be used to receive new OTDR reported data and realize splicing to achieve continuous collection.
[0089] In addition, before the above step method is executed, that is, before the ARM unit 10 sends parameter information to the FPGA unit 20, the ARM unit 10 obtains the version information of the FPGA unit 20 and initializes the FPGA unit 20 according to the version information. The initialization may include adjusting the allocation of the buffer 22 in the FPGA unit 20.
[0090] Embodiment 2
[0091] Such as Figure 2As shown, this embodiment provides an optical fiber data acquisition system, which is applied to a handheld communication installation and maintenance terminal. The specific working principle of the handheld communication installation and maintenance terminal is as follows: Connect the handheld communication installation and maintenance terminal to the optical fiber, then send a pulsed light beam into the optical fiber, and receive the returned signal, and analyze the returned signal to obtain the situation of the optical fiber; A System-on-Chip module is provided in the handheld communication installation and maintenance terminal. The system of this embodiment is applied to the System-on-Chip module. An ARM (Advanced RISC Machines) unit and an FPGA (Field Programmable Gate Array) unit are integrated on the System-on-Chip module. Communication can be achieved between the ARM unit 10 and the FPGA unit 20 through SPI (Serial Peripheral Interface); By integrating the ARM unit 10 and the FPGA unit 20 on the System-on-Chip module, the production cost of the handheld communication installation and maintenance terminal can be significantly reduced; Specifically,
[0092] The ARM unit 10 includes:
[0093] A first data interaction unit 11, which is used to send parameter information to the FPGA unit 20 of the handheld communication installation and maintenance terminal, and obtain the OTDR reported data collected and reported by the FPGA unit 20 according to the parameter information; The parameter information at least includes the amount of OTDR reported data; The OTDR reported data matches the amount of OTDR reported data;
[0094] Preferably, the amount of OTDR reported data matches the hardware resources of the FPGA unit 20. The ARM unit 10 will configure the amount of OTDR reported data according to the capacity of the hardware resources allocated to the FPGA unit 20 for caching data, and make full use of the capacity of the hardware resources of the FPGA unit 20 to reasonably and effectively configure the hardware resources of the FPGA unit 20;
[0095] In order to better implement the asynchronous execution of the ARM unit 10 and the FPGA unit 20, the first data interaction unit 11 will also receive the acquisition completion signal of the FPGA unit 20, and then add the OTDR reported data to the queue 12 set in the ARM unit 10; The acquisition completion signal is sent by the FPGA unit 20 after the data is acquired according to the parameter information;
[0096] Queue 12 is used to store the OTDR reported data received by the first data interaction unit 11; the queue 12 is set according to the hardware resources of the ARM unit 10, and the amount of the OTDR reported data is less than the capacity of the queue 12; preferably, before the OTDR reported data is stored in the queue 12, the OTDR reported data needs to be verified;
[0097] Analysis and calculation unit 13 is used to calculate the total amount of all the OTDR reported data in the queue 12, and judge whether the total amount meets the preset data volume. If it meets, a data processing signal is sent. If it does not meet, a continue collection signal is sent;
[0098] Data processing unit 14 is used to receive the data processing signal sent by the analysis and calculation unit 13, and sequentially splice all the OTDR reported data in the queue 12 according to the data processing signal to obtain a display data stream;
[0099] Preferably, the preset data volume is set according to the capacity of the queue 12 allocated by the ARM unit 10, and the preset data volume does not exceed the capacity of the queue 12. The purpose is to enable the ARM unit 10 to store as many OTDR reported data reported by the FPGA unit 20 as possible, so that the OTDR reported data with a smaller data volume can be spliced in the queue 12 into a display data stream with a larger data volume, ensuring that the data volume collected by the handheld communication installation and maintenance terminal from the optical fiber can be stored to meet the display requirements of the application layer of the handheld communication installation and maintenance terminal. Preferably, the preset data volume is equal to the capacity of the queue 12;
[0100] Further, the parameter information further includes a segmentation flag and a sampling start position; the OTDR reported data contains the sampling start position and the segmentation flag; specifically, the sampling start position and the segmentation flag are respectively set at the head and tail of the OTDR reported data;
[0101] Then, the sequential splicing of all the OTDR reported data in the queue 12 to obtain a display data stream is specifically as follows:
[0102] The data processing unit 14 traverses all the OTDR reported data in the queue 12 according to the sampling start position and the segmentation flag, arranges them in order, and sequentially splices all the arranged OTDR reported data to obtain the display data stream. The sampling start position is the start position of sampling by the sampling module, and can also be used as an identification bit for a segment of the OTDR reported data. Combining with the segmentation flag, a segment of the OTDR reported data can be easily identified from the queue 12.
[0103] A data upload unit 15 is configured to process the display data stream spliced by the data processing unit 14, take out the processed display data stream from the queue 12 and upload it to the application layer for display. Preferably, the processing may include OTDR processing. After being processed, the display data stream can correspondingly display the situation of the optical fiber to be collected at the application layer of the handheld communication installation and maintenance terminal. Moreover, after the display data stream is taken out from the queue 12, the space of the queue 12 is released, which can be used to receive new OTDR reported data and perform splicing to achieve continuous acquisition.
[0104] The first data interaction unit 11 is further configured to receive the continue acquisition signal sent by the analysis and calculation unit 13, and continue to send new parameter information to the FPGA unit 20 of the handheld communication installation and maintenance terminal according to the continue acquisition signal, so that the FPGA unit 20 continues to collect data and report it.
[0105] The FPGA unit 20 includes:
[0106] A second data interaction unit 21 is configured to receive the parameter information sent by the first data interaction unit 11, and report the OTDR reported data to the first data interaction unit 11 of the ARM unit 10. The parameter information includes the amount of OTDR reported data. The first data interaction unit 11 can report OTDR reported data to the first data interaction unit 11 according to the amount of OTDR reported data, and the amount of OTDR reported data will be set according to the actual hardware resource capacity of the FPGA unit 20.
[0107] In addition, after the second data interaction unit 21 of the FPGA unit 20 transmits the OTDR reported data to the first data interaction module, it enters an idle state and waits to be activated again by the first data interaction module sending parameter information.
[0108] A data acquisition unit 23 is configured to sample the optical fiber to be collected according to the parameter information to obtain OTDR data.
[0109] Specifically, the parameter information further includes pulsed beam information; in this embodiment, the data acquisition unit 23 emits a preset pulsed beam to the fiber to be sampled, and the FPGA unit 20 acquires the signal fed back in the fiber to be sampled; that is, after receiving the parameter information, the data acquisition unit 23 configures a pulsed beam according to the pulsed beam information in the parameter information, emits the pulsed beam into the fiber to be sampled, and uses principles such as Rayleigh scattering effect to receive the OTDR data fed back by the fiber to be sampled; wherein, the pulsed beam information may include the frequency and intensity of the pulse; the data acquisition unit 23 can collect the fiber to be sampled by means of ADC sampling.
[0110] A data preprocessing unit, which is used to preprocess the OTDR data obtained by the data acquisition unit 23 and store the preprocessed OTDR data in the buffer 22;
[0111] Specifically, the data processing unit 14 will preprocess the OTDR data multiple times, where the number of preprocessing times is set according to the actual situation; the preprocessing includes at least one of data acquisition, data accumulation, and data denoising.
[0112] The buffer 22 is used to store the OTDR data preprocessed by the data preprocessing unit;
[0113] The buffer 22 is allocated according to the hardware resources of the FPGA unit 20, and the OTDR reported data volume matches the hardware resources of the FPGA unit 20, that is, the ARM unit 10 controls the data volume collected and reported by the FPGA unit 20 by sending the OTDR reported data volume to the FPGA unit 20; in actual settings, the OTDR reported data volume does not exceed the capacity of the buffer 22, and the ARM unit 10 will set the OTDR reported data volume according to the actual capacity of the buffer 22. Preferably, the OTDR reported data volume is equal to the capacity of the buffer 22. Exemplarily, in a specific implementation manner of this embodiment, the capacity of the buffer 22 allocated by the FPGA unit 20 is 64k, then the OTDR reported data volume can be correspondingly set to 64k, that is, the data volume of the collected data collected and reported is 64k.
[0114] The reporting analysis unit 24 is used to analyze whether the data volume of the OTDR data stored in the buffer 22 meets the OTDR reporting data volume. If it meets, the reporting analysis unit 24 retrieves all the OTDR data from the buffer 22 and processes it to obtain the OTDR reporting data and transmits it to the second data interaction unit 21; the OTDR reporting data volume does not exceed the capacity of the buffer 22.
[0115] In addition, after the reporting analysis unit 24 determines that the parameter information collection of the OTDR data is completed, that is, the data volume of the OTDR data meets the OTDR reporting data volume, it sends a collection completion signal to the first data interaction unit 11 of the ARM unit 10 through the second data interaction unit 21 to mark the completion of data collection;
[0116] Specifically, the parameter information includes a sampling start position and a segmentation flag;
[0117] Then, the retrieving all the OTDR data from the buffer 22 and processing it to obtain the OTDR reporting data is specifically as follows: the reporting analysis unit 24 adds the sampling start position in the parameter information to the beginning of the first OTDR data collected according to the corresponding parameter information, and adds the segmentation flags in the parameter information to the end of the last OTDR data collected according to the corresponding parameter information to obtain the OTDR reporting data. At the same time, after the OTDR data is retrieved from the buffer 22, the space of the buffer 22 can be released to store new OTDR data.
[0118] Exemplarily, in a specific implementation manner of this embodiment, the capacity of the queue 12 allocated by the ARM unit 10 can be set to 128k. Correspondingly, the preset data volume matches the queue 12, and the preset data volume can be set to 128k; the capacity of the buffer 22 allocated by the FPGA unit 20 is 64k. Correspondingly, the OTDR reporting data volume can be set to 64k, that is, the data volume of the OTDR reporting data reported by the second data interaction unit 21 at one time is 64k;
[0119] The data acquisition unit 23 continuously acquires OTDR data. The data preprocessing unit preprocesses the OTDR data and stores the OTDR data in the buffer 22. The reporting and analysis unit 24 judges the OTDR data in the buffer 22. When the reporting and analysis unit 24 judges that the data volume of the OTDR data in the buffer 22 meets the OTDR reporting data volume, that is, the data volume of the OTDR data is 64k, the OTDR data is taken out from the buffer 22, and the sampling inspiration position and the segmentation flag are added to the OTDR data to obtain the 64k OTDR reporting data, and then the OTDR reporting data is reported to the first interaction unit through the second data interaction unit 21;
[0120] After the second data interaction unit 21 reports the OTDR reporting data to the first data interaction unit 11, the first data interaction unit 11 stores the OTDR reporting data in the first storage area; the analysis and calculation unit 13 calculates that the total data volume in the queue 12 is 64k, judges that it does not meet the preset data volume, and sends a continuous acquisition signal to the first data interaction unit 11; after the first data interaction unit 11 receives the continuous acquisition signal, it continues to send new parameter information to the FPGA unit 20 to make the FPGA unit 20 continue to acquire data and report. The FPGA unit 20 continues to acquire 64k of the OTDR reporting data and reports it to the first data interaction unit 11 of the ARM unit 10. The first data interaction unit 11 stores the OTDR reporting data in the first storage area; at this time, the analysis and calculation unit 13 calculates that the data volume in the queue 12 is 128k, judges that it meets the preset data volume, and then sends a data processing signal to the data processing unit 14; after the data processing unit 14 receives the processing signal, it obtains two segments of 64k of the OTDR reporting data in the queue 12 according to the sampling start position and the segmentation flag, and splices the two segments of the OTDR reporting data in the order of upload to obtain the 128k display data stream; after the data upload unit 15 performs OTDR processing on the 128k display data stream, it takes out the display data stream from the queue 12 and uploads it to the application layer display of the handheld communication installation and maintenance terminal.
[0121] In addition, before the first data interaction unit 11 sends parameter information to the second data interaction unit 21, the ARM unit 10 obtains the version information of the FPGA unit 20 and initializes the FPGA unit 20 according to the version information.
[0122] Embodiment 3
[0123] This embodiment provides a handheld communication installation and maintenance terminal, which is provided with a system-on-chip module. The system-on-chip module integrates an ARM unit and an FPGA unit, and the ARM unit is electrically connected to the FPGA unit;
[0124] The system-on-chip module is used to execute an optical fiber data acquisition method as described in Embodiment 1 above.
[0125] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the technical solutions of the present invention, rather than limitations on the specific implementation manners of the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the claims of the present invention shall be included within the protection scope of the claims of the present invention.
Claims
1. A fiber optic data acquisition method, applied to a handheld communication installation and maintenance terminal, characterized in that, The handheld communication installation and maintenance terminal is provided with a system-on-chip module, and the system-on-chip module integrates an ARM unit and an FPGA unit. The method includes: The ARM unit sends parameter information to the FPGA unit; the parameter information at least includes the OTDR reporting data volume; The FPGA unit samples the optical fiber to be sampled according to the parameter information to obtain OTDR data; The FPGA unit preprocesses the OTDR data and stores it in the buffer area of the FPGA unit; If the FPGA unit determines that the data volume of the OTDR data stored in the buffer area meets the OTDR reporting data volume, it takes out all the OTDR data from the buffer area and processes the OTDR data according to the parameter information to obtain OTDR reporting data; the OTDR reporting data volume does not exceed the capacity of the buffer area; The FPGA unit transmits the OTDR reporting data to the ARM unit; The ARM unit obtains the OTDR reporting data and stores the OTDR reporting data in the queue of the ARM unit; The ARM unit calculates the total data volume of all the OTDR reporting data in the queue, determines whether the total data volume meets the preset data volume. If it meets, it sequentially splices all the OTDR reporting data in the queue to obtain a display data stream; if it does not meet, it continues to send new parameter information to the FPGA unit to make the FPGA unit continue to collect data and report; The ARM unit processes the display data stream in the queue, takes out the processed display data stream from the queue and uploads it to the application layer for display.
2. The optical fiber data acquisition method according to claim 1, characterized in that, After the FPGA unit completes sampling the OTDR data according to the parameter information, it sends a sampling completion signal to the ARM unit; If the ARM unit does not receive the sampling completion signal from the FPGA unit after the preset time for sending the parameter information, it determines that the data collection fails, and sends the parameter information to the FPGA unit again to make the FPGA unit re-collect data and report; If the number of times the ARM unit continuously determines that the data collection fails exceeds the preset collection times, it determines that the state of the FPGA unit is unstable, and resets and initializes the FPGA unit.
3. A method for optical fiber data acquisition according to claim 1, characterized in that, The parameter information further includes pulse beam information; The FPGA unit samples the optical fiber to be sampled according to the parameter information to obtain OTDR data, specifically: The FPGA unit configures a pulse beam according to the pulse beam information in the parameter information, sends the pulse beam to the optical fiber to be sampled, and samples the signal fed back by the optical fiber to be sampled to obtain the OTDR data.
4. A fiber optic data acquisition method according to any one of claims 1 to 3, characterized in that, The parameter information further includes a sampling start position and a segmentation flag; The FPGA unit processes the OTDR data according to the parameter information to obtain OTDR reporting data, specifically including: The FPGA unit adds the sampling start position in the parameter information to the beginning of the first OTDR data collected according to the corresponding parameter information, and adds the segmentation flags in the parameter information to the end of the last OTDR data collected according to the corresponding parameter information, to obtain the OTDR reported data. The ARM unit sequentially splices all the OTDR reported data in the queue to obtain a display data stream, specifically including: The ARM unit identifies all the OTDR reported data in the queue according to the sampling start position and the segmentation flags, and sequentially splices all the OTDR reported data to obtain the display data stream.
5. A method for fiber optic data acquisition according to any one of claims 1 to 3, characterized in that Before the ARM unit sends parameter information to the FPGA unit, the ARM unit obtains the version information of the FPGA unit and initializes the FPGA unit according to the version information.
6. A fiber optic data acquisition system, which is applied to a handheld communication installation and maintenance terminal, is characterized in that, The handheld communication installation and maintenance terminal is provided with a system-on-chip module, and the system is applied to the system-on-chip module. The system includes an ARM unit and an FPGA unit; The ARM unit includes: A first data interaction unit, configured to send parameter information to the FPGA unit of the handheld communication installation and maintenance terminal, and obtain the OTDR reported data reported by the FPGA unit according to the parameter information; the parameter information includes at least the amount of OTDR reported data, and the OTDR reported data matches the amount of OTDR reported data; A queue, which is used to store the OTDR reported data received by the first data interaction unit; An analysis and calculation unit, configured to calculate the total amount of data of all the OTDR reported data in the queue, and determine whether the total amount of data meets a preset data amount. If it meets, a data processing signal is sent. If it does not meet, a continue collection signal is sent; A data processing unit, configured to receive the data processing signal sent by the analysis and calculation unit, and sequentially splice all the OTDR reported data in the queue according to the data processing signal to obtain a display data stream; A data upload unit, configured to process the display data stream spliced by the data processing unit, take out the processed display data stream from the queue and upload it to the application layer for display; The first data interaction unit is further configured to receive the continue collection signal sent by the analysis and calculation unit, and continue to send new parameter information to the FPGA unit of the handheld communication installation and maintenance terminal according to the continue collection signal, so that the FPGA unit continues to collect data and report; The FPGA unit includes: A second data interaction unit, configured to receive the parameter information sent by the first data interaction unit, and report the OTDR reported data to the first data interaction unit of the ARM unit; A data collection unit, configured to sample the optical fiber to be sampled according to the parameter information to obtain OTDR data; A data preprocessing unit, configured to preprocess the OTDR data obtained by the data collection unit; A buffer for storing the OTDR data preprocessed by the data preprocessing unit; A reporting and analysis unit for analyzing whether the data volume of the OTDR data stored in the buffer meets the OTDR reporting data volume. If it meets, the reporting and analysis unit retrieves all the OTDR data from the buffer, processes it to obtain the OTDR reporting data, and transmits it to the second data interaction unit; the OTDR reporting data volume does not exceed the capacity of the buffer.
7. An optical fiber data acquisition system according to claim 6, characterized in that, After the second data interaction unit completes the acquisition of OTDR data according to the parameter information, it sends an acquisition completion signal to the first data interaction unit; If the first data interaction unit does not receive the acquisition completion signal from the second data interaction unit after a preset time of sending the parameter information, it determines that the data acquisition fails, and resends the parameter information to the second data interaction unit to make the second data interaction re-acquire and report the data; If the number of consecutive times the first data interaction unit determines that the data acquisition fails exceeds the preset acquisition times, it determines that the state of the FPGA unit is unstable, and resets and initializes the FPGA unit.
8. An optical fiber data acquisition system according to claim 6, characterized in that, The parameter information further includes pulse beam information; The data acquisition unit samples the optical fiber to be acquired according to the parameter information to obtain OTDR data, specifically: The data acquisition unit configures a pulse beam according to the pulse beam information in the parameter information, sends the pulse beam to the optical fiber to be acquired, and samples the signal fed back by the optical fiber to be acquired to obtain the OTDR data.
9. A fiber optic data acquisition system according to any one of claims 6 to 8, characterized in that, The parameter information further includes a sampling start position and a segmentation flag; The data processing unit processes the OTDR data according to the parameter information to obtain OTDR reporting data, specifically including: The data processing unit adds the sampling start position in the parameter information to the beginning of the first OTDR data acquired according to the corresponding parameter information, and adds the segmentation flags in the parameter information to the end of the last OTDR data acquired according to the corresponding parameter information to obtain the OTDR reporting data. The data upload unit sequentially splices all the OTDR reporting data in the queue to obtain a display data stream, specifically including: The data upload unit identifies all the OTDR reporting data in the queue according to the sampling start position and the segmentation flag, and sequentially splices all the OTDR reporting data to obtain the display data stream.
10. A handheld communication installation and maintenance terminal, characterized in that, The handheld communication installation and maintenance terminal is provided with a system-on-chip module, which integrates an ARM unit and an FPGA unit, and the ARM unit is electrically connected to the FPGA unit; The system-on-chip module is used to execute a fiber optic data acquisition method according to any one of claims 1 to 5.