A device and method for simulating multi-channel optical fiber real-time data transmission
By simulating the real-time data sending device and method of multi-channel optical fiber, the problem of low development efficiency caused by signal processing software relying on DBF hardware is solved, and data transmission is realized independently of the hardware is improved, and software development efficiency and data transmission flexibility and reliability are improved.
Patent Information
- Application Number
- CN202210606039.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2042-05-31
AI Technical Summary
The development efficiency of signal processing software in the prior art is that its data source relies on DBF hardware, resulting in the inability to perform performance testing in a timely manner.
It provides a device and method for simulating multi-channel optical fiber real-time data transmission, and receives multi-channel optical fiber real-time data under different scenario types through the initialization module and the scene configuration module, configures data transmission files, determines the target address, and directly sends data independently of DBF hardware.
It improves the development efficiency of signal processing software, realizes data transmission before DBF hardware is completed, independently verify performance problems in various scenario types, and improves the flexibility and reliability of data transmission.
Smart Images

Figure CN114911584B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a device and method for simulating multi-channel optical fiber real-time data transmission. Background Art
[0002] Currently, radar signal processing software relies on digital beamforming (DBF) hardware for data. DBF hardware uses digital signal processing to perform weighted summation on the signals received by the array elements to form an antenna beam, and then sends the output signal to the signal processing software. This has limited the development progress of the signal processing software to a certain extent. Because projects are carried out simultaneously, the development progress of DBF hardware and signal processing software for different projects cannot be completely consistent. If the DBF hardware cannot be completed before the development of the signal processing software, it will not be able to provide the data required for signal processing software performance testing in a timely manner. For signal processing software, performance testing after development is also extremely important.
[0003] Therefore, in order to meet performance testing requirements, improve the efficiency of signal processing software development, and ensure that the performance of signal processing software meets the requirements, it is urgently necessary to provide a device and method for simulating the real-time data transmission of multiple optical fibers, which is used to simulate the transmission of real-time data of multiple optical fibers, so that the signal processing software can be independent of the DBF hardware and the efficiency of signal processing software development can be improved. Summary of the Invention
[0004] In view of this, it is necessary to provide a device and method for simulating real-time data transmission of multiple optical fibers to solve the technical problem in the prior art that the data source of the signal processing software depends on the DBF hardware, resulting in low efficiency in signal processing software development.
[0005] In order to solve the above technical problems, the present invention provides a device for simulating multi-channel optical fiber real-time data transmission, comprising:
[0006] Initialization module and scene configuration module;
[0007] The initialization module is used to load the scenario configuration module, configure initialization parameters, and initialize the operating environment and memory size;
[0008] The scene configuration module is used to receive multiple optical fiber real-time data under different scene types, and configure a data sending file, determine a target address for receiving the multiple optical fiber real-time data based on the data sending file, and send the multiple optical fiber real-time data to the target address.
[0009] In some possible implementations, the scene configuration module includes a timing control unit and a drive control unit;
[0010] The timing control unit is used to configure a timing control file, determine a scheduling strategy for sending the multi-channel optical fiber real-time data based on the timing control file, and send the multi-channel optical fiber real-time data to the driving control unit based on the scheduling strategy;
[0011] The drive control unit is used to receive and cache the multiple optical fiber real-time data, configure a drive control file, determine the target address based on the drive control file, and send the multiple optical fiber real-time data to the target address.
[0012] In some possible implementations, the file type of the timing control file is ini; and the file type of the drive control file is XML.
[0013] In some possible implementations, the timing control file includes a multicast sending address, a multicast sending port, a preliminary timing code, a processing type, a number of cycles, and a preset sending interval.
[0014] In some possible implementations, the drive control file includes an I multicast receiving address, a multicast receiving port, a local IP address, a precise timing code, a number of points, a cycle, and a processing method.
[0015] In some possible implementations, the target address includes a plurality of target sub-addresses;
[0016] The driving control unit is further configured to send the multi-channel optical fiber real-time data to the multiple target sub-addresses.
[0017] In some possible implementations, the simulated multi-channel optical fiber real-time data transmission device further includes a transmission time monitoring module and an early warning module;
[0018] The transmission time monitoring module is used to monitor the real-time transmission interval time of the real-time data of the multiple optical fibers in real time;
[0019] The early warning module is configured to generate an early warning signal when a difference between the real-time transmission interval and the preset transmission interval is greater than a threshold difference.
[0020] In some possible implementations, the device for simulating multi-channel optical fiber real-time data transmission further includes a thread configuration module;
[0021] The thread configuration module is used to obtain the total amount of the multi-channel optical fiber real-time data, and configure the target thread and the target core bound to the target thread according to the total amount of data;
[0022] The driving control unit is further configured to send the multi-channel optical fiber real-time data to the target address according to the target number of threads and the target core.
[0023] In some possible implementations, the simulated multi-channel optical fiber real-time data transmission device further includes a CPU occupancy monitoring module;
[0024] The CPU occupancy monitoring module is used to monitor the CPU occupancy rate in real time when the driving control unit sends the multi-channel optical fiber real-time data.
[0025] On the other hand, the present invention also provides a method for simulating multi-channel optical fiber real-time data transmission, comprising:
[0026] Load the scene configuration module and configure the initialization parameters to initialize the operating environment and memory size;
[0027] Based on the scenario configuration module, multiple optical fiber real-time data under different scenario types are received, and a data sending file is configured. Based on the data sending file, a target address for receiving the multiple optical fiber real-time data is determined, and the multiple optical fiber real-time data is sent to the target address.
[0028] The beneficial effects of adopting the above embodiment are as follows: the device for simulating multi-channel optical fiber real-time data transmission provided by the present invention receives multi-channel optical fiber real-time data under different scenario types by setting a scenario configuration module, and configures a data transmission file, determines a target address for receiving the multi-channel optical fiber real-time data based on the data transmission file, and transmits the multi-channel optical fiber real-time data to the target address. The multi-channel optical fiber real-time data under different scenarios can be sent to the target address based on the configured data transmission file, and there is no need to wait for the DBF hardware development to be completed before the multi-channel optical fiber real-time data can be sent to the target address, thereby improving the development efficiency of the signal processing software corresponding to the target address.
[0029] Furthermore, data transmission in multiple scenario types can be achieved by modifying the data transmission file, which improves the flexibility of real-time data transmission of multiple optical fibers, and thus can independently verify performance issues in multiple scenario types. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 work.
[0031] Figure 1 A schematic structural diagram of an embodiment of a device for simulating multi-channel optical fiber real-time data transmission provided by the present invention;
[0032] Figure 2 A schematic diagram of an embodiment of the real-time data transmission interval monitoring provided by the present invention;
[0033] Figure 3 The present invention provides a flow chart of an embodiment of a method for simulating multi-channel optical fiber real-time data transmission. DETAILED DESCRIPTION
[0034] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present invention.
[0035] It should be understood that the schematic drawings are not drawn to scale. The flowcharts used in the present invention illustrate operations implemented according to some embodiments of the present invention. It should be understood that the operations in the flowcharts may be implemented out of sequence, and steps that do not have a logical contextual relationship may be reversed or performed simultaneously. In addition, those skilled in the art, guided by the present disclosure, may add one or more additional operations to the flowcharts or remove one or more operations from the flowcharts.
[0036] In the description of the embodiments of the present invention, unless otherwise specified, "plurality" means two or more. "And / or" describes the association relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone.
[0037] Some of the blocks shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor systems and / or microcontroller systems.
[0038] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0039] The present invention provides a device and method for simulating multi-channel optical fiber real-time data transmission, which are described below.
[0040] Figure 1 A schematic structural diagram of an embodiment of the device for simulating multi-channel optical fiber real-time data transmission provided by the present invention is shown as follows: Figure 1As shown, the embodiment of the present invention provides a device 10 for simulating real-time data transmission of multiple optical fibers, including: an initialization module 100 and a scene configuration module 200;
[0041] The initialization module 100 is used to load the scenario configuration module, configure initialization parameters, and initialize the operating environment and memory size;
[0042] The scene configuration module 200 is used to receive multi-channel optical fiber real-time data under different scene types, configure data sending files, determine the target address for receiving multi-channel optical fiber real-time data based on the data sending files, and send the multi-channel optical fiber real-time data to the target address.
[0043] It should be understood that the target address is the address of the signal processing software.
[0044] Compared with the prior art, the simulated multi-channel optical fiber real-time data sending device 10 provided in an embodiment of the present invention receives multi-channel optical fiber real-time data under different scenario types by setting a scenario configuration module 200, and configures a data sending file. The target address for receiving the multi-channel optical fiber real-time data is determined based on the data sending file, and the multi-channel optical fiber real-time data is sent to the target address. The multi-channel optical fiber real-time data under different scenarios can be sent to the target address based on the configured data sending file. There is no need to wait for the DBF hardware development to be completed before sending the multi-channel optical fiber real-time data to the target address, thereby improving the development efficiency of the signal processing software corresponding to the target address.
[0045] Furthermore, the embodiments of the present invention can realize data transmission in multiple scenario types by modifying the data transmission file, thereby improving the flexibility of real-time data transmission of multiple optical fibers, and further enabling independent verification of performance issues in multiple scenario types.
[0046] In some embodiments of the present invention, the operating environment of the device 10 for simulating multi-channel optical fiber real-time data transmission is linux, gcc 8.2.1.
[0047] In some embodiments of the present invention, Figure 1 As shown, the scene configuration module 200 includes a timing control unit 210 and a driving control unit 220;
[0048] The timing control unit 210 is used to configure a timing control file, and determine a scheduling strategy for sending the multi-channel optical fiber real-time data based on the timing control file, and send the multi-channel optical fiber real-time data to the driving control unit 220 based on the scheduling strategy;
[0049] The drive control unit 220 is used to receive and cache the real-time data of multiple optical fibers, configure a drive control file, determine a target address based on the drive control file, and send the real-time data of multiple optical fibers to the target address.
[0050] In a specific embodiment of the present invention, the scene types include four scenes: no main lobe interference at low wave position, no main lobe interference at high wave position, main lobe interference at low wave position, and main lobe interference at high wave position.
[0051] It should be noted that the timing control unit 210 is a single-threaded process. In one timing sequence, the information sent includes the total number of wave position pulses, the wave position sequence code, the wave position timing code, etc.
[0052] It should also be noted that the timing control unit 210 can configure the timing control file by registering the timing control component. Similarly, the drive control unit 220 can configure the drive control file by registering the drive control component.
[0053] Since the timing control component and the drive control component are flexible and easy to operate, their specific configuration can be determined by the configuration files corresponding to the components, which can further improve the flexibility of real-time data transmission of multiple optical fibers.
[0054] In some embodiments of the present invention, the file type of the timing control file is ini; the file type of the drive control file is XML.
[0055] In a specific embodiment of the present invention, the timing control file includes the multicast sending address, multicast sending port, preliminary timing code, processing type, number of cycles, and preset transmission interval. The driver control file includes the multicast receiving address, multicast receiving port, local IP address, precise timing code, number of points, cycle, and processing mode.
[0056] The embodiment of the present invention includes a processing mode in the driver control file, allowing users to select a processing mode according to test requirements, namely, a transmission mode, thereby improving test diversity and thus improving the applicability of the multi-channel optical fiber real-time data sending device 10.
[0057] Since in some actual application scenarios, the target address includes multiple target sub-addresses, that is, it is necessary to send multiple optical fiber real-time data to multiple target sub-addresses, in order to improve the transmission efficiency of multiple optical fiber real-time data, in some embodiments of the present invention, the drive control unit 220 is also used to send multiple optical fiber real-time data to multiple target sub-addresses.
[0058] The embodiment of the present invention can realize one-to-many transmission of multi-channel optical fiber real-time data by setting multiple target sub-addresses, thereby improving the transmission efficiency of multi-channel optical fiber real-time data.
[0059] In order to avoid problems such as network jitter during the multi-channel optical fiber real-time data transmission process, which may cause the multi-channel optical fiber real-time data to be not sent according to the preset transmission interval time, resulting in problems in the multi-channel optical fiber real-time data transmission, in some embodiments of the present invention, such as Figure 1As shown, the simulated multi-channel optical fiber real-time data transmission device 10 further includes a transmission time monitoring module 300 and an early warning module 400;
[0060] The transmission time monitoring module 300 is used to monitor the real-time transmission interval time of the real-time data of multiple optical fibers in real time;
[0061] The warning module 400 is configured to generate a warning signal when the difference between the real-time transmission interval and the preset transmission interval is greater than a threshold difference.
[0062] The embodiment of the present invention can monitor the real-time transmission interval by providing the transmission time monitoring module 300 and the early warning module 400, thereby improving the reliability of the real-time data transmission process of multiple optical fibers.
[0063] It should be understood that the threshold difference can be adjusted according to actual conditions, which will not be described in detail here.
[0064] In a specific embodiment of the present invention, in a low-wavelength, main lobe interference-free scenario, the preset transmission interval is 4500 microseconds, the threshold difference is 50 microseconds, and the real-time transmission interval of the multi-channel optical fiber real-time data monitored by the transmission time monitoring module 400 is as follows: Figure 2 As shown, it can be seen that the maximum difference between the 14 real-time transmission intervals and the preset transmission interval is 20 microseconds, which is less than the threshold difference. It can be seen that the multi-channel optical fiber real-time data sent by the simulated multi-channel optical fiber real-time data sending device 10 in the embodiment of the present invention meets the performance test requirements of the signal processing software.
[0065] In order to further improve the transmission efficiency of the simulated multi-channel optical fiber real-time data, in some embodiments of the present invention, such as Figure 1 As shown, the device 10 for simulating multi-channel optical fiber real-time data transmission further includes a thread configuration module 500;
[0066] The thread configuration module 500 is used to obtain the total amount of real-time data of multiple optical fibers and set the target number of threads and the target core bound to the target thread according to the total amount of data;
[0067] The driving control unit 220 is further configured to send the multi-channel optical fiber real-time data to the target address according to the target number of threads and the target core.
[0068] This embodiment of the present invention uses thread configuration module 500 to determine target threads and target core counts, enabling multi-threaded transmission of multi-channel optical fiber real-time data. This significantly improves the efficiency of multi-channel optical fiber real-time data transmission compared to single-threaded transmission. Furthermore, this embodiment of the present invention configures the target number of threads and target core counts based on the total amount of data, ensuring that multi-channel optical fiber real-time data is delivered to the signal processing software within the data transmission time limit, thereby ensuring the timely transmission of multi-channel optical fiber real-time data.
[0069] In order to avoid the situation where the CPU occupancy rate is too high when the simulated multi-channel optical fiber real-time data transmitting device 10 transmits data, which causes the computer to run slowly and cause errors, in some embodiments of the present invention, for example, Figure 1 As shown, the simulated multi-channel optical fiber real-time data transmission device 10 further includes a CPU occupancy monitoring module 600;
[0070] The CPU occupancy monitoring module 600 is used to monitor the CPU occupancy rate in real time when the driving control unit 220 sends multiple optical fiber real-time data.
[0071] It should be understood that when the CPU occupancy rate is greater than the threshold occupancy rate, a prompt message may be generated to prompt the user to intervene and close the data sending process.
[0072] It should also be understood that the threshold occupancy rate can be adjusted according to actual conditions, which will not be described in detail here.
[0073] The embodiment of the present invention provides a CPU occupancy monitoring module 600 to monitor the CPU occupancy rate in real time, so that the user can know the CPU occupancy status in real time and ensure the reliability of the multi-channel optical fiber real-time data transmission process.
[0074] In a specific embodiment of the present invention, when the scenario type is a low-wavelength, no-mainlobe interference scenario, the CPU occupancy rate is relatively uniform and less than 50%. When the four scenarios of low-wavelength, no-mainlobe interference, high-wavelength, mainlobe interference, and high-wavelength interference are running simultaneously, except for the relatively high system occupancy rate of the ZMQ binding core of the signal processing software communication, the other CPU occupancy rates are all less than 50%, meeting the signal processing performance test requirements.
[0075] In summary, the simulated multi-channel optical fiber real-time data sending device 10 proposed in an embodiment of the present invention can correctly send multi-channel optical fiber real-time data to the target address, and the timing control file and drive control file configured in the timing control unit and the drive control unit are easy to modify, which effectively improves the development efficiency of the signal processing software.
[0076] On the other hand, the embodiment of the present invention further provides a method for simulating multi-channel optical fiber real-time data transmission, which is applicable to the simulating multi-channel optical fiber real-time data transmission device 10 in any of the above embodiments, such as Figure 3 As shown, the method for simulating multi-channel optical fiber real-time data transmission includes:
[0077] S301, load the scene configuration module, configure initialization parameters, and initialize the operating environment and memory size;
[0078] S302: Receive multiple optical fiber real-time data under different scenario types based on the scenario configuration module, configure a data sending file, determine a target address for receiving the multiple optical fiber real-time data based on the data sending file, and send the multiple optical fiber real-time data to the target address.
[0079] The method for simulating multi-channel optical fiber real-time data transmission provided in the above embodiment can implement the technical solution described in the above embodiment of the device for simulating multi-channel optical fiber real-time data transmission. The specific implementation principles of the above steps can be found in the corresponding content in the above embodiment of the device for simulating multi-channel optical fiber real-time data transmission, and will not be repeated here.
[0080] Those skilled in the art will appreciate that all or part of the process steps of the above-described embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, such as a magnetic disk, an optical disk, a read-only memory, or a random access memory.
[0081] The above is a detailed introduction to the simulated multi-channel optical fiber real-time data transmission device and method provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, based on the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.
Claims
1. A device for simulating multi-channel optical fiber real-time data transmission, characterized in that: include: Initialization module and scene configuration module; The initialization module is used to load the scenario configuration module, configure initialization parameters, and initialize the operating environment and memory size; The scenario configuration module is used to receive multiple optical fiber real-time data under different scenario types, configure a data sending file, determine a target address for receiving the multiple optical fiber real-time data based on the data sending file, and send the multiple optical fiber real-time data to the target address; The data transmission file includes a timing control file and a drive control file; the scene configuration module includes a timing control unit and a drive control unit; The timing control unit is used to configure a timing control file, determine a scheduling strategy for sending the multi-channel optical fiber real-time data based on the timing control file, and send the multi-channel optical fiber real-time data to the driving control unit based on the scheduling strategy; The drive control unit is used to receive and cache the multiple optical fiber real-time data, configure a drive control file, determine the target address based on the drive control file, and send the multiple optical fiber real-time data to the target address; The timing control file includes a multicast sending address, a multicast sending port, a preliminary timing code, a processing type, a number of cycles, and a preset sending interval; The drive control file includes a multicast receiving address, a multicast receiving port, a local IP address, a precise timing code, a number of points, a cycle and a processing method.
2. The device for simulating multi-channel optical fiber real-time data transmission according to claim 1, characterized in that: The file type of the timing control file is ini; the file type of the drive control file is XML.
3. The device for simulating multi-channel optical fiber real-time data transmission according to claim 1, characterized in that: The target address includes a plurality of target sub-addresses; The driving control unit is further configured to send the multi-channel optical fiber real-time data to the multiple target sub-addresses.
4. The device for simulating multi-channel optical fiber real-time data transmission according to claim 1, characterized in that: The simulated multi-channel optical fiber real-time data transmission device also includes a transmission time monitoring module and an early warning module; The transmission time monitoring module is used to monitor the real-time transmission interval time of the real-time data of multiple optical fibers in real time; The early warning module is configured to generate an early warning signal when a difference between the real-time transmission interval and the preset transmission interval is greater than a threshold difference.
5. The device for simulating multi-channel optical fiber real-time data transmission according to claim 1, characterized in that: The device for simulating multi-channel optical fiber real-time data transmission also includes a thread configuration module; The thread configuration module is used to obtain the total amount of data of the multi-channel optical fiber real-time data, and configure the target number of threads and the target core bound to the target thread according to the total amount of data; The driving control unit is further configured to send the multi-channel optical fiber real-time data to the target address according to the target number of threads and the target core.
6. The device for simulating multi-channel optical fiber real-time data transmission according to claim 1, characterized in that: The simulated multi-channel optical fiber real-time data transmission device also includes a CPU occupancy monitoring module; The CPU occupancy monitoring module is used to monitor the CPU occupancy rate in real time when the driving control unit sends the multi-channel optical fiber real-time data.
7. A method for simulating real-time data transmission via multiple optical fibers, characterized in that: The device for simulating multi-channel optical fiber real-time data transmission according to any one of claims 1 to 6, wherein the method comprises: Load the scene configuration module and configure the initialization parameters to initialize the operating environment and memory size; Based on the scenario configuration module, multiple optical fiber real-time data under different scenario types are received, and a data sending file is configured. Based on the data sending file, a target address for receiving the multiple optical fiber real-time data is determined, and the multiple optical fiber real-time data is sent to the target address.
Citation Information
Patent Citations
Optical fiber interface data cache management method based on FPGA
CN113434455A