Digital spectrum analyzer ground calibration system software and design method thereof

By designing a ground calibration system software for a digital spectrum analyzer, and adopting configuration file parsing and code separation as well as a tabbed interface, the high cost and complex operation of existing remote sensing data testing software are solved. This achieves low-cost, flexible data calibration and interface expansion, improving the software's versatility and development efficiency.

CN121742809APending Publication Date: 2026-03-27SHANGHAI SPACEFLIGHT ELECTRONICS & COMM EQUIP RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-01-12
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing commercial remote sensing data testing software is expensive and complex to operate, and cannot meet the specific needs of users. Traditional calibration software lacks versatility and scalability.

Method used

Design a ground calibration system software for a digital spectrum analyzer, including a bus communication module, an information acquisition module, an information processing module, a data storage module, and a user interface module. The system adopts a design that separates protocol parsing from code using configuration files, combined with a tabbed interface layout, to achieve real-time data processing and visualization, as well as functional expansion.

Benefits of technology

It achieves low-cost and easy-to-use data calibration, improves the software's versatility and flexibility, reduces maintenance costs, and ensures the accuracy of data analysis and the scalability of the interface operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121742809A_ABST
    Figure CN121742809A_ABST
Patent Text Reader

Abstract

The invention discloses digital spectrum analyzer ground calibration system software and a design method thereof, and the digital spectrum analyzer ground calibration system software comprises a bus communication module, an information acquisition module, an information processing module, a data storage module and a user interface module, the communication module is used for realizing data communication between the software interface and the digital spectrum analyzer; the information acquisition module is used for sending a control instruction and receiving serial port data to ensure that the data can be sent or received timely and completely; the information processing module is used for extracting effective data after the data are received and converting the original data into an understandable digital quantity according to a preset protocol so as to realize analysis and conversion of the data; the data storage module is used for storing and managing a large amount of data and ensuring the traceability and safety of the data; and the user interface module is used for providing a visual and simple interface design, supporting data screening, chart display and data export operation, and facilitating a user to check a decoded result.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of satellite communication, in particular to a ground calibration system software of a digital spectrum analyzer and a design method thereof. BACKGROUND

[0002] China's satellite development has experienced from the initial experiment to communication satellites, weather satellites, manned spacecraft and other stages, and has achieved remarkable achievements. Satellite remote sensing technology, as a key link, relies on high-precision sensors carried on satellite platforms to observe the earth from space and obtain information of the earth system such as the earth's surface and the atmosphere. These sensors include optical, radar, infrared, etc., which can efficiently capture the reflection and radiation information of the earth's surface and convert them into digital images or data. For this technology, a digital spectrum analyzer emerges as the times require, which is based on high-speed AD and FPGA hardware architecture, adopts high-speed polyphase filtering technology and parallel FFT algorithm, realizes sub-band division and fine spectrum estimation of ultra-wideband signals, and obtains effective remote sensing information for spaceborne information unit detectors, terahertz detectors, spaceborne microwave radiometers and other high-precision remote sensing detection.

[0003] Although the current existing several commercial remote sensing data test software such as ENVI and ERDAS are widely used in various fields, their purchase and maintenance costs are high, and the operation process is complex, which cannot meet the specific needs of all users. Therefore, designing a calibration software with comprehensive functions, simple operation and low maintenance cost has great significance for the development of satellite remote sensing communication technology, especially the digital spectrum analyzer. SUMMARY

[0004] In order to overcome the deficiencies in the prior art, the present application provides a ground calibration system software of a digital spectrum analyzer and a design method thereof, to solve the problems mentioned in the background technology, and at the same time improve the versatility of the traditional calibration software and the scalability for future needs.

[0005] In order to achieve the above application purposes and solve the technical problems, the technical solutions adopted are as follows: The present application discloses a ground calibration system software of a digital spectrum analyzer, which comprises a bus communication module, an information acquisition module, an information processing module, a data storage module and a user interface module, wherein: The bus communication module is connected with the digital spectrum analyzer through a serial bus, and is used for realizing data communication between the software interface and the digital spectrum analyzer; The information acquisition module is used for sending control instructions and receiving serial port data, and ensures that the data can be sent or received in time and completely; The information processing module is used for extracting valid data after data reception, and converting the original data into understandable digital quantities according to a preset protocol, so as to realize data analysis and conversion. The data storage module is used for storage and management of a large amount of data, and ensures traceability and security of the data. The user interface module is used for providing an intuitive and simple interface design, supporting data filtering, chart display and data export operation, and facilitating a user to view the decoded result.

[0006] Further, the information processing module integrates online and offline processing modes, the online processing mode can analyze the received data in real time, and the offline analysis mode processes and plays back the past data files, and verifies and evaluates the performance of the digital spectrum analyzer through the analyzed data.

[0007] Further, the data in the data storage module includes generation and recording of logs, storage of received data and analyzed data, and archiving of analysis process logs.

[0008] Further, the user interface module adopts a tab layout, and new tabs and related functions can be added as needed.

[0009] The application also discloses a software design method of a digital spectrum analyzer ground calibration system, which is applied to the digital spectrum analyzer ground calibration system software and includes the following steps. Step S1: the software opens a communication board card by calling an interface function, finds a slot number of the board card through bus scanning of the device, accesses a configuration space to obtain an I / O base address of the board card, reports a detected number and state of the board card, selects a corresponding board card, and sets communication parameters; Step S2: a corresponding number of communication channels are added according to requirements, and each channel is allocated a respective channel number and module number, and a user control object is newly created for each channel, so that the communication between the channels is independent and cross talk is prevented; Step S3: an interface function is called to obtain the length of writable data when an instruction is sent, the data is sent to the digital spectrum analyzer through a bus, an interface function is called to obtain the length of readable data when the data is received, the data is received through the bus, if reconnection is needed, the opened channel is closed, and then the reconnection is performed, otherwise, the board card is closed; Step S4: the received data is sequentially pressed into a queue, so that the data is analyzed, the queue is a first-in first-out queue, the data pressed into the queue first is taken out first, and the order of the data is ensured; Step S5: the data is sequentially dequeued, and effective data is extracted from the data stream through a data analysis algorithm; Step S6: condition filtering, drawing and comparison with expected index parameters are performed according to requirements, and the performance of the digital spectrum analyzer is evaluated; Step S7: the received data, the analyzed data and the chart data mentioned in the above steps are saved in the local terminal, so that the data is played back and subsequent research is performed.

[0010] Furthermore, in step S1, the data format is carried by an external configuration file, which is separated from the code. The configuration file records the names of the data frame header, data fields, and frame tail, the number of bytes occupied, the sequence number of the calculation formulas to be used, whether the parsed data is displayed, and whether it is plotted. After the software runs, it can read the contents of the configuration file. The configuration file can be modified according to requirements, while the code does not need to be modified.

[0011] Furthermore, in step S1, the communication parameters include asynchronous communication parameters and synchronous communication parameters. The asynchronous communication parameters include baud rate, data bits, start bit, end bit, and parity bit. The synchronous communication parameters include wiring system, clock frequency, clock data direction, effective level bit, and threshold value.

[0012] Furthermore, in step S5, the data parsing algorithm steps are as follows: First, search for the frame header identifier specified in the protocol byte by byte. The frame header identifier represents the starting position of the valid data, and at this time the position cursor is at the frame header. Then, compare the length of the remaining data segment with the length of a frame, denoted as L. If the remaining length is greater than L, it means that the current data is complete. Move the position cursor to the end of the frame by L bytes and extract a data segment of length L from the beginning of the frame. After the data segment is extracted, a frame end checksum is performed. If the checksum is correct, it indicates that the data frame is error-free and can proceed to the next calculation and processing step. After each data extraction, the position cursor moves to the next possible frame header position to prepare for the next data extraction. Conversely, if the checksum is incorrect, it means that the current data segment of length L is not valid data. The cursor skips the length of one frame header and searches for the next frame header. If the remaining data length is less than L, it means that the current data is incomplete and needs to wait until the next data extraction cycle to merge the remaining data with the shifted new data before parsing. During this process, the position cursor returns to the initial frame header to ensure that all data has been parsed; in this way, the expected valid data is extracted from the data stream for subsequent data analysis and processing.

[0013] Furthermore, in step S6, the software adopts a configurable strategy in its interface design. First, it uses a tab-based interface layout, allowing users to add new tabs as needed. Within each new tab, users can flexibly add buttons, text boxes, and chart controls to achieve the corresponding functions. Second, the software enables rapid deployment of new functions through configuration file operations. When a new function needs to be added, the corresponding configuration section can be added or modified in the configuration file according to requirements, defining attributes, parameters, and key information about the interaction interface with other modules. After the software loads the configuration file at runtime, it can recognize these configuration changes, thereby achieving efficient and convenient function expansion.

[0014] Furthermore, in step S7, firstly, the file to be parsed is loaded and opened, and the frame header identifier is found from the beginning of the file; secondly, if the remaining data in the file does not meet the length of a complete frame, it is necessary to determine whether there are any more files to be parsed. If so, the remaining data needs to be concatenated with the next file and parsing continues; if not, the file is closed and the process ends.

[0015] By employing the above technical solutions, this invention has the following advantages and positive effects compared with the prior art: 1. This invention provides a software design method for a ground calibration system of a digital spectrum analyzer, which realizes real-time sending and receiving of instructions, real-time acquisition of effective information, visualization of effective information, post-event data playback and data storage, with complete functions and stable software operation.

[0016] 2. This invention separates the data parsing protocol from the code by using a configuration file to carry the protocol parsing, which solves the problem of traditional software requiring a large amount of code modification to meet constantly changing requirements. This enhances the software's versatility and flexibility, greatly improves development efficiency, and reduces software maintenance costs.

[0017] 3. The interface design of this invention adopts a tab layout, which makes the interface clear and easy to operate. It allows for the addition of any required functions without changing the original layout, thereby improving the scalability of software development, further improving software development efficiency, and reducing software maintenance costs.

[0018] 4. The analytical algorithm proposed in this invention ensures that each received data stream can be analyzed with 100% accuracy, providing strong support for the calibration results of the digital spectrum analyzer. Attached Figure Description

[0019] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings: Figure 1 This is a schematic diagram of the software framework for the ground calibration system of the digital spectrum analyzer provided by the present invention; Figure 2 This is a schematic diagram of the overall design flow of the ground calibration software for the digital spectrum analyzer provided by the present invention; Figure 3 This is a schematic diagram of the data processing flow provided by the present invention; Figure 4 This is a schematic diagram of the communication interface provided by the present invention; Figure 5 This is a schematic diagram of the result display interface provided by the present invention; Figure 6 This is a schematic diagram of the drawing interface provided by the present invention. Detailed Implementation

[0020] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0021] Example 1 like Figure 1 As shown, this invention discloses a ground calibration system software for a digital spectrum analyzer, including a bus communication module, an information acquisition module, an information processing module, a data storage module, and a user interface module, wherein: The bus communication module is connected to the digital spectrum analyzer via a serial bus to enable data communication between the software interface and the digital spectrum analyzer.

[0022] The information acquisition module is used to send control commands and receive serial port data, ensuring that data can be sent or received in a timely and complete manner.

[0023] The information processing module is used to extract valid data after receiving data and convert the raw data into understandable digital quantities according to a preset protocol, thereby realizing data parsing and conversion. In this embodiment, the information processing module integrates online and offline processing modes. The online processing mode can parse the received data in real time; the offline parsing mode processes and replays previous data files, and verifies and evaluates the performance of the digital spectrum analyzer by analyzing the parsed data. The information processing module adopts a design concept of separating the parsing protocol from the running code, which enhances the software's versatility and flexibility, reduces software maintenance costs, and improves development efficiency. The design concept of separating the parsing protocol from the running code means that the parsing data protocol content is filled into a custom configuration file, which includes the names of the data frame header, data fields, and frame tail, the number of bytes they occupy, the formula numbers used in the calculation, whether the parsed data is displayed in a table, and whether it is plotted. After the software runs, it can read the contents of the configuration file. The configuration file can be modified according to requirements, while the code content does not need to be changed.

[0024] The data storage module is used for the storage and management of large amounts of data, including the generation and recording of logs, the storage of received and parsed data, and the archiving of parsing process logs, to ensure the traceability and security of the data.

[0025] The user interface module, acting as a bridge between the user and the software, provides an intuitive and simple interface design, supporting operations such as data filtering, chart display, and data export, allowing users to easily view the decoded results. In this embodiment, the user interface module adopts a tab-based layout, allowing for the addition of new tabs and related functions as needed, increasing scalability for future requirements. The tab-based layout refers to the user interface using tabs as the underlying layout, with other plugins attached to it, making the interface clear, simple, and easy to operate. Furthermore, future added functions can be implemented by directly creating new tabs on the existing foundation.

[0026] Example 2 like Figures 2-6 As shown, this invention also discloses a software design method for a ground calibration system of a digital spectrum analyzer, which is applied to the aforementioned ground calibration system software of the digital spectrum analyzer, and includes the following steps: Step S1: The software opens the communication board by calling the interface function PXI_OpenCard(), finds the slot number of the board by scanning the device via the bus, obtains the I / O base address of the board by accessing the configuration space, reports the number and status of the detected boards, selects the corresponding board, and calls the interface function PXI_SetRs422TxBaud() to set the communication parameters. Specifically, in step S1, in order to meet the data formats of various protocols and to reduce the amount of code modification and improve development efficiency, an external configuration file is used to carry the data format, which is separated from the code. The configuration file records the names of the data frame header, data fields, and frame trailer, the number of bytes occupied, the sequence number of the calculation formulas to be used, whether the parsed data is displayed, and whether to draw a graph. After the software runs, it can read the contents of the configuration file. The configuration file can be modified according to requirements, while the code does not need to be modified.

[0027] Furthermore, in step S1, the communication parameters include asynchronous communication parameters and synchronous communication parameters. The asynchronous communication parameters include baud rate, data bits, start bit, end bit, and parity bit. The synchronous communication parameters include wiring system, clock frequency, clock data direction, effective level bit, and threshold value.

[0028] Step S2: Add the required number of communication channels according to the needs, and assign each channel a channel number and module number. Create a new user control object for each channel. The purpose is to ensure that the communication between each channel is independent and to prevent crosstalk. Step S3: When sending a command, call the interface function to obtain the length of writable data and send it to the digital spectrum analyzer via the bus. When receiving data, call the interface function to obtain the length of readable data and receive it via the bus. If reconnection is required, close the open channel first and then reconnect; otherwise, shut down the board. In this embodiment, call the interface function PXI_Rs422DMAWriteBuffer() to send a command to the digital spectrum analyzer to obtain the length of writable data. When receiving data, call the interface function PXI_Rs422DMAReadBuffer() to obtain the length of readable data.

[0029] Step S4: The received data is pushed into the queue in sequence for easy parsing. The queue follows a first-in, first-out (FIFO) principle, so the data pushed in first will be taken out first, ensuring the order of the data. Step S5: Data is dequeued sequentially, and after passing through the data parsing algorithm, valid data is extracted from the data stream; Specifically, such as Figure 3 As shown, in step S5, the data parsing algorithm steps are as follows: First, the frame header identifier, as specified in the protocol, is located byte by byte. This identifier represents the start of valid data, and the cursor is initially positioned at the frame header. Next, the length of the remaining data segment is compared to the length of a single frame, denoted as L. If the remaining length is greater than L, the current data is complete, and the cursor moves L bytes towards the end of the frame, extracting a data segment of length L from the frame header. After extracting the segment, a checksum is performed on the frame header. If the checksum is correct, the data frame is error-free, and the next calculation process can begin. After each data extraction, the cursor moves to the next possible frame header position to prepare for the next data extraction. Conversely, if the checksum is incorrect, the current L-length data segment is not valid, and the cursor skips the length of one frame header to find the next header. If the remaining data length is less than L, the current data is incomplete, and the process must wait until the next data extraction cycle to merge the remaining data with the shifted new data before parsing. During this process, the position cursor returns to the initial frame header to ensure that all data has been parsed; in this way, the expected valid data is extracted from the data stream for subsequent data analysis and processing.

[0030] Step S6: Filter conditions and draw graphs according to requirements, compare with expected index parameters, and evaluate the performance of the digital spectrum analyzer; Specifically, in step S6, considering future expansion needs, the software adopts a configurable strategy in its interface design. First, it uses a tab-based interface layout, allowing users to add new tabs as needed. Within each new tab, users can flexibly add various controls (such as buttons, text boxes, charts, etc.) to achieve corresponding functions. Second, to further optimize the integration process of new functions, the software enables rapid deployment of new functions through configuration file operations. Specifically, when a new function needs to be added, the corresponding configuration section can be added or modified in the configuration file according to requirements, defining key information such as attributes, parameters, and interaction interfaces with other modules. After the software loads the configuration file at runtime, it can recognize these configuration changes, thereby achieving efficient and convenient function expansion. This software architecture, which combines modular design principles with a tab-based interface layout, improves the software's scalability and maintainability.

[0031] In this embodiment, the interface is displayed as follows: Figures 4-6 As shown, where Figure 4 It is the communication interface, including the settings and control software sending commands to the digital spectrum analyzer once or continuously, and receiving data streams returned by the digital spectrum analyzer. Figure 5 This is the results display interface, which displays the data analysis results in a pre-set format. The data refresh cycle depends on the data reception frequency. Through this interface, the performance of the digital spectrum analyzer can be intuitively evaluated. Figure 6It is a graphing interface that further represents the results in the form of curves, allowing for a clearer observation of data fluctuations and providing strong support for verifying the performance of the digital spectrum analyzer.

[0032] Step S7: Save the received data, parsed data, and chart data mentioned in the above steps locally for later playback and subsequent research.

[0033] Specifically, in step S7, firstly, the file to be parsed is loaded and opened, and the frame header identifier is found from the beginning of the file; secondly, if the remaining data in the file does not meet the length of a complete frame, it is necessary to determine whether there are any more files to be parsed. If so, the remaining data needs to be concatenated with the next file and parsing continues; if not, the file is closed and the process ends.

[0034] The above description is merely a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A ground calibration system software for a digital spectrum analyzer, characterized in that, It includes a bus communication module, an information acquisition module, an information processing module, a data storage module, and a user interface module, among which: The bus communication module is connected to the digital spectrum analyzer via a serial bus to realize data communication between the software interface and the digital spectrum analyzer. The information acquisition module is used to send control commands and receive serial port data, ensuring that data can be sent or received in a timely and complete manner. The information processing module is used to extract valid data after receiving data, and convert the raw data into understandable digital quantities according to a preset protocol, thereby realizing data parsing and conversion. The data storage module is used for storing and managing large amounts of data, and ensures the traceability and security of the data; The user interface module provides an intuitive and easy-to-use interface design, supports data filtering, chart display, and data export operations, and makes it convenient for users to view the decoded results.

2. The ground calibration system software for a digital spectrum analyzer according to claim 1, characterized in that, The information processing module integrates online and offline processing modes. The online processing mode can parse the received data in real time; the offline parsing mode processes and replays previous data files, and verifies and evaluates the performance of the digital spectrum analyzer by analyzing the parsed data.

3. The ground calibration system software for a digital spectrum analyzer according to claim 1, characterized in that, The data storage module includes the generation and recording of logs, the storage of received and parsed data, and the archiving of parsing process logs.

4. The ground calibration system software for a digital spectrum analyzer according to claim 1, characterized in that, The user interface module adopts a tab layout, and new tabs and related functions can be added as needed.

5. A software design method for a ground calibration system of a digital spectrum analyzer, characterized in that, The software for ground calibration of the digital spectrum analyzer as described in any one of claims 1-4 includes the following steps: Step S1: The software opens the communication board by calling the interface function, finds the slot number of the board by scanning the device through the bus, obtains the I / O base address of the board by accessing the configuration space, reports the number and status of the detected boards, selects the corresponding board, and sets the communication parameters. Step S2: Add the required number of communication channels according to the needs, and assign each channel a channel number and module number. Create a new user control object for each channel. The purpose is to ensure that the communication between each channel is independent and to prevent crosstalk. Step S3: When sending a command, call the interface function to obtain the length of writable data and send it to the digital spectrum analyzer via the bus. When receiving data, call the interface function to obtain the length of readable data and receive it via the bus. If reconnection is required, close the open channels first and then reconnect; otherwise, shut down the board. Step S4: The received data is pushed into the queue in sequence for easy parsing. The queue follows a first-in, first-out (FIFO) principle, so the data pushed in first will be taken out first, ensuring the order of the data. Step S5: Data is dequeued sequentially, and after passing through the data parsing algorithm, valid data is extracted from the data stream; Step S6: Filter conditions and draw graphs according to requirements, compare with expected index parameters, and evaluate the performance of the digital spectrum analyzer; Step S7: Save the received data, parsed data, and chart data mentioned in the above steps locally for later playback and subsequent research.

6. The software design method for a ground calibration system of a digital spectrum analyzer according to claim 5, characterized in that, In step S1, the data format is carried by an external configuration file, which is separated from the code. The configuration file records the names of the data frame header, data fields, and frame trailer, the number of bytes occupied, the sequence number of the calculation formulas to be used, whether the parsed data is displayed, and whether to draw a graph. After the software runs, it can read the contents of the configuration file. The configuration file can be modified according to requirements, while the code does not need to be modified.

7. The software design method for a ground calibration system of a digital spectrum analyzer according to claim 5, characterized in that, In step S1, the communication parameters include asynchronous communication parameters and synchronous communication parameters. The asynchronous communication parameters include baud rate, data bits, start bit, end bit, and parity bit. The synchronous communication parameters include wiring system, clock frequency, clock data direction, effective level bit, and threshold value.

8. The software design method for a ground calibration system of a digital spectrum analyzer according to claim 1, characterized in that, In step S5, the data parsing algorithm steps are as follows: First, search for the frame header identifier specified in the protocol byte by byte. The frame header identifier represents the starting position of the valid data, and at this time the position cursor is at the frame header. Then, compare the length of the remaining data segment with the length of a frame, denoted as L. If the remaining length is greater than L, it means that the current data is complete. Move the position cursor to the end of the frame by L bytes and extract a data segment of length L from the beginning of the frame. After the data segment is extracted, a frame end checksum is performed. If the checksum is correct, it indicates that the data frame is error-free and can proceed to the next calculation and processing step. After each data extraction, the position cursor moves to the next possible frame header position to prepare for the next data extraction. Conversely, if the checksum is incorrect, it means that the current data segment of length L is not valid data. The cursor skips the length of one frame header and searches for the next frame header. If the remaining data length is less than L, it means that the current data is incomplete and needs to wait until the next data extraction cycle to merge the remaining data with the shifted new data before parsing. During this process, the position cursor returns to the initial frame header to ensure that all data has been parsed; in this way, the expected valid data is extracted from the data stream for subsequent data analysis and processing.

9. The software design method for a ground calibration system of a digital spectrum analyzer according to claim 5, characterized in that, In step S6, the software adopts a configurable strategy in its interface design. First, it uses a tab-based interface layout, allowing users to add new tabs as needed. Within each new tab, users can flexibly add buttons, text boxes, and chart controls to achieve the corresponding functions. Second, the software enables rapid deployment of new functions through configuration file operations. When a new function needs to be added, the corresponding configuration section can be added or modified in the configuration file according to requirements, defining attributes, parameters, and key information about the interaction interface with other modules. After the software loads the configuration file at runtime, it can recognize these configuration changes, thereby achieving efficient and convenient function expansion.

10. The software design method for a ground calibration system of a digital spectrum analyzer according to claim 5, characterized in that, In step S7, firstly, the file to be parsed is loaded and opened, and the frame header identifier is found from the beginning of the file; secondly, if the remaining data in the file does not meet the length of a complete frame, it is necessary to determine whether there are any more files to be parsed. If so, the remaining data needs to be concatenated with the next file and parsing continues; if not, the file is closed and the process ends.