Multi-data source reconfiguration framing communication system and method
By unifying parameter management through the control unit and coordinating the data acquisition, transmission, and sending processes, the problems of data loss, high resource consumption, poor timing constraints, and low scalability in existing communication systems have been solved, thereby improving the stability and flexibility of data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ZHONGKE XINGTU TIANCHEN SKY RESEARCH INSTITUTE (XIAMEN) CO LTD
- Filing Date
- 2026-04-02
- Publication Date
- 2026-07-10
AI Technical Summary
Existing communication systems suffer from problems such as data loss risk, high resource consumption, poor timing constraints, low scalability, and insufficient flexibility during data transmission, especially when transmitting data from multiple data sources.
The control unit is used to uniformly manage processing parameters, transmission parameters, and reconstruction parameters. A polling mechanism is used to coordinate the data acquisition, transmission, and sending processes, enabling synchronous acquisition and framing, reducing buffer pressure, and optimizing data transmission rhythm.
It improves the stability and reliability of data transmission, reduces resource consumption, enhances the flexibility and scalability of the system, and reduces development time.
Smart Images

Figure CN122372149A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of multiplexing communication technology, and in particular to a multi-data source reconfiguration frame communication system and method. Background Technology
[0002] In existing technologies, there are various data sources, such as RS422 data, image data, 1553B data, and PCM data. Data from multiple data sources are combined into a data frame with a fixed frame format and transmitted through a high-speed transmission bus (network, rapdio, etc.).
[0003] Figure 1 An embodiment of a prior art multi-data source communication system is shown, such as Figure 1 As shown, the communication system includes a data acquisition device 20 and an encoding output device 30. The data acquisition device 20 collects data from multiple data sources 10 and uploads the data to the encoding output device 30. The encoding output device 30 identifies the data collected by the data acquisition device according to the data identification identifier, puts the data into a storage area for caching, and then encodes and outputs it. The existing communication system mainly faces the following disadvantages: First: The existing frame transmission method of the communication system does not consider whether there is a moment when the output speed of the encoding output device is lower than that of the data acquisition device, which may lead to data loss.
[0004] Second: The framing transmission method of the existing communication system consumes a lot of resources from the encoding output device, resulting in tight equipment resources and poor timing constraints.
[0005] Third: The existing communication system has a low upper limit on the types of data it can collect. Each type of data needs to be cached separately in the encoding output device, which consumes resources. The types of data that can be configured are limited by the resources of the selected chip.
[0006] Fourth: The existing communication system has poor flexibility, and the interface program needs to be redesigned when adding new types of data to be collected.
[0007] Figure 2 Another embodiment of a prior art multi-data source communication system is shown, such as Figure 2 As shown, the existing multi-data source framing communication system includes multiple data acquisition units, one data transmission unit, and one data transmission unit: Multiple data acquisition units collect data from multiple data sources, transmitting the collected data completely to a data transmission unit. The data transmission unit transmits the data to a data sending unit without any data processing. Upon receiving the data from the data transmission unit, the data sending unit identifies the data according to its identifier, places the data into its respective storage area, and then frames and outputs the data. The above communication system has the following technical problems: First: The data transmission unit performs full-frame buffering and sequential transmission of data from multiple data sources collected by the data acquisition unit; data recognition, full-frame buffering, and framing are all completed by the data transmission unit, resulting in high buffering pressure on the data transmission unit and the data transmission unit. Second: In the event of a data burst, the data transmission unit and the data sending unit are at risk of data overflow, and since it is impossible to obtain the size of the burst, the risk of data overflow cannot be completely solved by expanding the cache space; Third: The data sampling period and the framing period of the data sending unit are mismatched, and the data transmission to the data transmission unit and the data sending unit frame output speed are inconsistent, which can easily lead to empty data anomalies between a packet of sampled data.
[0008] Fourth: The data sending unit needs to identify and process each type of data separately, resulting in poor versatility.
[0009] Fifth: Due to the different caching and framing methods for each type of data, adding new data types later has a significant impact on the overall program and results in poor system scalability.
[0010] In summary, existing communication systems suffer from drawbacks such as data loss risk, high resource consumption, poor timing constraints, low scalability, and insufficient flexibility. Meanwhile, various missile-borne, shipborne, and airborne telemetry systems are acquiring increasingly diverse data types, characterized by high bandwidth (e.g., 4K image bandwidth can reach over 100Mbps) and burst traffic (e.g., a sudden increase in data volume during scene changes). Clearly, existing communication systems cannot meet the demands of telemetry systems.
[0011] Therefore, improving the stability of timing constraints, ensuring no data loss, reducing resource consumption, increasing flexibility, and reducing development time are important issues that the industry urgently needs to address. Summary of the Invention
[0012] In view of this, the present invention provides a multi-data source reconstruction frame communication system. One or more embodiments of this specification also relate to a multi-data source reconstruction frame communication method to address the technical deficiencies existing in the prior art.
[0013] According to a first aspect of the present invention, a multi-data source reconstruction frame communication system is provided, comprising a control unit, multiple data acquisition units, a data transmission unit, and a data transmission unit: The control unit is configured to load processing parameters, transmission parameters, and reconstruction parameters into the data acquisition unit, data transmission unit, and data sending unit, respectively, and to trigger the data sending unit to poll the data transmission unit for data requests and control the data transmission unit to poll the data acquisition unit for data requests when a data request is received. The plurality of data acquisition units are configured to acquire data from multiple data sources and process the data according to processing parameters to obtain structured data; The data transmission unit is configured to synchronously frame structured data and / or filler data with the data acquisition unit according to transmission parameters to form structured frame data. The data transmission unit is configured to reconstruct and frame structured frame data according to reconstruction parameters to form transmission frames.
[0014] The multi-data source reconstruction framed communication system of the present invention solves the problems of data loss risk, high resource consumption, poor timing constraints, low scalability and insufficient flexibility in the prior art communication systems. To mitigate the risk of data loss: When the control unit receives a data request, it triggers the data sending unit to poll the data transmission unit to request data, and controls the data transmission unit to poll the data acquisition unit to request data. This polling mechanism can better coordinate the data transmission rhythm between the units, avoid data loss caused by the output speed of the encoding output device being lower than that of the data acquisition device, and ensure that data transmission is not lost.
[0015] Reduced resource consumption: The data transmission unit synchronously frames structured data and / or filler data with the data acquisition unit according to the transmission parameters to form structured frame data. This changes the resource-intensive method in the existing technology, which requires separate caching of each type of data and separate identification and processing by the data sending unit. It reduces the caching pressure on the data transmission unit and the data sending unit, reduces the situation of equipment resource shortage, and reduces resource consumption.
[0016] Improved timing constraint stability: The control unit loads processing parameters, transmission parameters, and reconstruction parameters into the data acquisition unit, data transmission unit, and data sending unit respectively. By setting the parameters, the data sampling period and framing period are better coordinated, avoiding problems such as mismatch between the data sampling period and the framing period of the data sending unit, and inconsistent data transmission and framing output speeds, thus improving the timing constraint stability.
[0017] Improved flexibility and scalability: When adding new data acquisition types, this invention does not require redesigning the interface program as in existing technologies, resulting in better system scalability, increased flexibility, and reduced development time.
[0018] In summary, this invention solves the technical problems in the prior art and achieves technical effects such as improving the stability of timing constraints, ensuring no data transmission loss, reducing resource consumption, improving flexibility, and reducing development time.
[0019] In one possible implementation, the data transmission unit sends a synchronous acquisition instruction to the plurality of data acquisition units, and the plurality of data acquisition units receive the synchronous acquisition instruction and perform synchronous acquisition on the plurality of data sources.
[0020] This invention's synchronous acquisition ensures that data from multiple data sources are collected at the same or similar times, avoiding data deviations and inconsistencies caused by asynchronous acquisition times. For example, in industrial production scenarios, simultaneously collecting equipment operating parameters and raw material supply data provides a more accurate data foundation for production process analysis and decision-making. Synchronous acquisition better coordinates the timing relationship between data acquisition and subsequent data processing, transmission, and framing, avoiding mismatches between data sampling periods and subsequent processing periods, improving the stability of the entire system's timing constraints, and reducing data anomalies caused by timing issues, such as empty data anomalies between batches of sampled data. The synchronously acquired data is synchronized in the time dimension. When performing data analysis (such as correlation analysis and trend analysis), it can more accurately discover the relationships and patterns between different data sources, improving the efficiency and quality of data analysis. It also facilitates subsequent data transmission units in performing framing and other processing operations according to transmission parameters. In scenarios with high real-time requirements (such as financial transaction data acquisition and real-time monitoring), synchronous acquisition can quickly obtain the latest status information from multiple data sources, enabling the system to respond promptly and provide timely data support for decision-making.
[0021] In one possible implementation, the data transmission unit periodically or according to a transmission pattern sends synchronous acquisition commands to the plurality of data acquisition units.
[0022] This invention ensures data consistency: synchronous acquisition commands ensure that multiple data acquisition units collect data at similar times, resulting in temporal synchronization of the acquired data. In scenarios requiring multi-channel data collaborative analysis (such as monitoring multi-phase current and voltage in power systems, and fusion of multi-sensor data in industrial automation equipment), this synchronization guarantees accurate correspondence between data from different data sources, facilitating subsequent analysis and processing, and improving data consistency and reliability. For example, in power systems, synchronous acquisition of three-phase current and voltage data is necessary for accurate analysis of system parameters such as power and phase. It also facilitates time-series analysis: because each data acquisition unit collects data under synchronous commands, the temporal relationship between the data is clear, which is beneficial for time-series analysis. For example, in systems with high real-time requirements (such as financial transaction monitoring, sensor networks, etc.), it can better track the sequence of events, providing accurate time clues for fault diagnosis and behavioral analysis. Finally, it reduces system complexity: compared to asynchronous acquisition methods, synchronous acquisition does not require complex callback, event, or polling mechanisms to handle asynchronous acquisition results. The logic is relatively clear and simple, reducing the complexity of system design and development, and also reducing thread safety and callback issues that may arise from handling asynchronous operations. Improved resource utilization: By coordinating the work of data acquisition units through synchronous acquisition commands, unnecessary data acquisition and transmission are avoided, allowing for a more rational allocation and utilization of system resources (such as storage resources and transmission bandwidth), reducing resource waste. For example, in devices with limited hardware resources, orderly synchronous acquisition can prevent excessive resource consumption caused by disordered acquisition. Meeting specific scenario requirements: In scenarios with strict time synchronization requirements (such as distributed systems, multi-card synchronous acquisition, etc.), synchronous acquisition commands, combined with relevant synchronization technologies (such as using the PPS signal of a GPS module to achieve distributed system synchronization triggering, master-slave card clock cascading, or sharing an external clock source to achieve multi-card synchronization), can meet the system's high-precision synchronization needs and ensure the normal operation of the system.
[0023] In one possible implementation, the multi-data source reconstruction frame communication system includes multiple data transmission units.
[0024] In one possible implementation, the data sending unit sends a synchronization framing instruction to the plurality of data transmission units, and the plurality of data transmission units perform synchronization framing after receiving the synchronization framing instruction.
[0025] This synchronous framing method, triggered by unified commands from the data transmission unit, better coordinates the working rhythm of each data transmission unit, avoiding data transmission chaos caused by asynchronous operation of each unit and improving the stability of timing constraints. It changes the existing technology where data transmission and data transmission units process data independently, resulting in high cache pressure. Synchronous framing allows for more rational allocation of cache tasks, reducing resource consumption. It avoids the risk of data loss due to inconsistent data transmission rhythms, ensuring the integrity of data transmission. Simultaneously, this unified command synchronization method makes the system more adaptable to changes in data types and volumes, improving system flexibility and scalability, and reducing development time costs caused by insufficient system scalability.
[0026] In one possible implementation, the data sending unit periodically or according to a transmission pattern sends synchronization framing instructions to the plurality of data transmission units.
[0027] By periodically or systematically sending synchronization framing commands, the working rhythm between the data sending unit and multiple data transmission units can be better coordinated, avoiding problems such as mismatch between data sampling period and framing period, and inconsistent data transmission and framing output speeds, effectively improving the stability of timing constraints. This synchronization framing command mechanism makes data transmission between units more orderly, reducing the risk of data loss due to chaotic data transmission rhythms and ensuring the reliability of data transmission. At the same time, this orderly synchronization mechanism also helps to reduce the additional resource consumption that may be caused by chaotic data transmission, further optimizing the utilization of system resources.
[0028] In one possible implementation, the data sending unit sends a data sending request instruction to the data transmission unit, and the data transmission unit sends a response instruction after receiving the data sending request instruction, sending the structured frame data of the previous period to the data sending unit.
[0029] The data sending unit sends a data sending request command to the data transmission unit. Upon receiving the command, the data transmission unit sends a response command and transmits the structured frame data from the previous frame to the data sending unit. This mechanism optimizes the interaction during data transmission. Compared to existing technologies where the data transmission and sending units experience high buffer pressure and data overflow risks, the request-response mechanism better coordinates the data transmission rhythm between the two, reducing buffer pressure and the risk of data overflow. Simultaneously, the orderly command interaction helps improve the stability of timing constraints and avoids data loss due to chaotic data transmission rhythms. Furthermore, this relatively standardized interaction method provides a foundation for the system's scalability and flexibility. When the system needs adjustments or new functions, this explicit interaction mechanism makes modification and expansion easier, thus addressing, to some extent, the low scalability and insufficient flexibility issues of existing technologies.
[0030] In one possible implementation, the data sending unit periodically or according to a transmission pattern sends a data sending request instruction to the data transmission unit.
[0031] This approach changes the existing technology's methods, which often result in high buffer pressure and data overflow risks due to data transmission units buffering data from multiple data sources and sending data sequentially, and data sending units only identifying data after receiving it. By using periodic or regular request commands, it better coordinates the data transmission rhythm between the data sending and data transmission units, reducing the buffer pressure on both units and mitigating the risk of data overflow in the event of data bursts. Simultaneously, this regular request method also helps to better coordinate data sampling and framing periods, avoiding mismatches between the data sampling and framing periods of the data sending units, improving the stability of timing constraints, ensuring the reliability of data transmission, and reducing the risk of data loss due to data transmission problems.
[0032] In one possible implementation, the data transmission unit sends a data transmission request instruction to the corresponding multiple data acquisition units. After receiving the data transmission request instruction, the data acquisition module sends a response instruction and sends the structured data processed in the previous cycle to the data transmission unit.
[0033] The data transmission unit sends data transmission request commands to multiple data acquisition units. Upon receiving these commands, the data acquisition modules send response commands and transmit the structured data processed in the previous cycle. This request-response data transmission method clarifies the rhythm and order of data transmission, better coordinates the work between the data acquisition units and the data transmission units, avoids the risk of data loss due to inconsistent data transmission rhythms in existing technologies, and ensures the stability of data transmission. Furthermore, compared to existing technologies where the data transmission unit performs full-frame buffering and sequential transmission of data from multiple data sources, and the data transmission unit individually identifies and processes each type of data, which consumes significant resources, this solution, through an ordered request-response mechanism, reduces unnecessary buffering and processing operations, lowers the buffering pressure and processing burden on the data transmission unit and other related units, and thus reduces resource consumption. In addition, this ordered transmission method also facilitates better timing control, improves the stability of timing constraints, and makes the system more adaptable to different data acquisition needs, thereby improving flexibility and scalability to a certain extent.
[0034] In one possible implementation, the data transmission unit periodically or according to a transmission pattern sends data transmission request instructions to multiple corresponding data acquisition units.
[0035] The data transmission unit periodically or according to a transmission pattern sends data transmission request commands to multiple corresponding data acquisition units. This improvement has the following technical effects: In terms of avoiding data loss, this regular request command sending mechanism better coordinates the data transmission rhythm between the data transmission unit and the data acquisition unit, avoiding data loss due to mismatched transmission speeds and ensuring data transmission integrity. In terms of reducing resource consumption, it changes the resource-intensive methods of existing technologies, such as full-frame buffering and sequential transmission by the data transmission unit and the data transmission unit undertaking a large amount of data identification and buffering, reducing the buffering pressure on both the data transmission and data transmission units and lowering resource consumption. In terms of timing constraints, this regular sending mechanism helps to better coordinate the data sampling period and transmission period, avoiding problems such as mismatch between the data sampling period and the framing period, and improving the stability of timing constraints. In terms of scalability and flexibility, the system adapts better when new data acquisition types are introduced, and its scalability and flexibility are improved.
[0036] In one possible implementation, the processing parameters include the data length.
[0037] In one possible implementation, the transmission parameters include frame parameters, which include a frame header, a frame ID, and a frame length.
[0038] In one possible implementation, the reconstruction parameters include deframe rules and reframe rules, wherein the deframe rules include a mapping between data types and buffer areas, and the reframe rules include a mapping between data types and transmission requirements.
[0039] The processing parameters, including data length, help the data acquisition unit to collect and process data more accurately, reduce the collection and transmission of invalid data, and lower resource consumption. The frame parameters in the transmission parameters include frame header, frame ID, and frame length. The frame header can be used for data synchronization, the frame ID facilitates the identification and management of different frames, and the explicit setting of the frame length can better coordinate the data transmission rhythm between units, avoiding the risk of data loss due to mismatched data transmission rhythms, and also helps improve the stability of timing constraints. The deframe rules in the reconstruction parameters include mappings between data types and buffer areas, and the reframe assembly rules include mappings between data types and transmission requirements. This explicit mapping relationship allows the system to handle different types of data more flexibly, without requiring complex processing for each type of data. When adding new data acquisition types, there is no need to redesign the interface program, improving the system's flexibility and scalability. Furthermore, through reasonable mapping and rule settings, the data processing flow is optimized, further reducing resource consumption. This invention, through these parameter settings, effectively solves the problems of existing technologies, achieving technical effects such as reducing resource consumption, ensuring no data loss, improving the stability of timing constraints, and enhancing flexibility and scalability.
[0040] In one possible implementation, the structured data includes one or more of padding data, collected data, and combined data, wherein the combined data is data that combines collected data and padding data to reach the data length of the processing parameters.
[0041] Regarding data integrity, data imputation, as a data preprocessing technique, can handle incomplete datasets, maintain dataset integrity, and avoid sample size reduction due to missing value deletion. This solves the problems that may arise from improper handling of missing data in existing technologies. In terms of data processing workflow and resource utilization, structured data has fixed formats and fields. Compared to existing technologies where complex business systems use traditional hard-coded field definitions, leading to configuration chaos, difficulty in debugging, and lack of reusability, structured data is easier to process and reuse, reducing resource consumption and improving data processing efficiency. Regarding flexibility and scalability, compared to existing technologies that struggle to cope with new data processing needs and have poor flexibility, structured data, as long as it follows the corresponding format, can be collected automatically or manually. To a certain extent, it is easier to cope with changes in data types and requirements, offering better flexibility and scalability.
[0042] In one possible implementation, the data acquisition unit includes a first cache unit, a first data link layer, and a second cache unit. The first cache unit is used to cache data acquired from multiple data sources. The first data link layer is used to process the data according to processing parameters to obtain structured data. The second cache unit is used to store the structured data.
[0043] The first cache unit caches data collected from multiple data sources, which can mitigate the risk of data loss during transmission to some extent. The first data link layer processes the data according to processing parameters to obtain structured data. Compared to existing technologies that consume significant resources by caching and processing each type of data separately, this centralized processing method reduces resource consumption. The second cache unit stores the structured data, providing a stable data source for subsequent data transmission. Working in conjunction with the first cache unit and the first data link layer, it better coordinates the data processing rhythm, avoiding mismatches between data sampling periods and framing periods, and improving the stability of timing constraints. Furthermore, this modular design eliminates the need to redesign interface programs when adding new data types, as required by existing technologies, thus improving flexibility and scalability. This data acquisition unit solves many problems in existing technologies, achieving the technical effects of ensuring no data loss, reducing resource consumption, improving the stability of timing constraints, increasing flexibility, and reducing development time.
[0044] In one possible implementation, the data transmission unit includes a third buffer unit and a second data link layer, wherein the second data link layer is used to frame structured data into structured frame data according to transmission parameters; and the third buffer unit is used to buffer the structured frame data.
[0045] The second data link layer frames structured data into structured frames according to transmission parameters, changing the situation in existing technologies where data sending units individually identify and process data, resulting in high buffer pressure and reduced resource consumption. The third buffer unit buffers structured frame data, coordinating with the framing operation of the second data link layer to better coordinate the data transmission rhythm and avoid the risk of data loss due to inconsistencies between data transmission and framing output speeds, ensuring that data transmission is not lost. At the same time, this configuration improves the mismatch between data sampling period and framing period through the coordination of transmission parameters, thereby improving the stability of timing constraints. In addition, since it does not adopt methods such as separate caching for each type of data, the impact on the overall system is small when new data collection types are added, improving the system's flexibility and scalability.
[0046] In one possible implementation, the data sending unit includes multiple fourth buffer units and a third data link layer. The third data link layer is used for disassembling structured frame data and reconstructing the disassembled data. The multiple fourth buffer units are used for storing the disassembled data according to the data source.
[0047] The third data link layer decomposes structured frame data and reconstructs the decomposed data. Compared with the existing technology of separate identification and processing by the data sending unit, this optimizes the data processing flow, reduces unnecessary resource consumption, and alleviates the problem of equipment resource shortage. Multiple fourth buffer units store the decomposed data according to the data source, avoiding the risk of data loss due to unreasonable caching. In addition, this overall structural design helps to better coordinate the data transmission rhythm, improves the stability of timing constraints, and reduces the risk of data loss due to the lack of coordination in data transmission rhythm.
[0048] According to a second aspect of the present invention, a multi-data source reconstruction frame communication method is provided, comprising: Data acquisition steps: Collect data from multiple data sources; process the data according to the set processing parameters to obtain structured data, and cache it; Data transmission steps: The above structured data is framed according to the set transmission parameters to obtain structured frame data, and then cached; Data request steps: Receive data request; poll for the structured frame data corresponding to the data request; poll for the structured data corresponding to the structured frame data; respond and obtain the corresponding structured data, then obtain the corresponding structured frame data. Data transmission steps: The structured frame data is disassembled and reconstructed according to the reconstruction parameters to form a transmission frame for transmission.
[0049] The multi-data source reconstruction and framing communication method of this invention processes the acquired data into structured data according to processing parameters and caches it in the data acquisition step, standardizing the data format and facilitating subsequent processing. In the data transmission step, the structured data is framed and cached according to transmission parameters, changing the resource-intensive methods of full-frame caching and sequential transmission in the prior art, reducing caching pressure and resource consumption. In the data request step, structured frame data and its corresponding structured data are requested through polling, and the structured frame data is obtained after the structured data is received in response. This polling mechanism coordinates the data transmission rhythm between steps, avoids data loss due to differences in data transmission speed, and ensures the integrity of data transmission. In the data transmission step, the structured frame data is disassembled and reconstructed according to reconstruction parameters to form transmission frames for transmission. It does not mention operations that require separate processing of each type of data, which consume resources and affect scalability. While improving flexibility and scalability, it also helps to coordinate the data processing cycle and improve the stability of timing constraints. This method solves the problems of the prior art and achieves the technical effects of ensuring no data loss, reducing resource consumption, improving the stability of timing constraints, and improving flexibility and scalability.
[0050] In one possible implementation, the data acquisition step includes: Simultaneously collect data from multiple data sources.
[0051] In one possible implementation, the processing parameters include the data length.
[0052] In one possible implementation, the transmission parameters include frame parameters, which include a frame header, a frame ID, and a frame length.
[0053] In one possible implementation, the reconstruction parameters include deframe rules and reframe rules, wherein the deframe rules include a mapping between data types and buffer areas, and the reframe rules include a mapping between data types and transmission requirements.
[0054] In one possible implementation, the structured data includes one or more of padding data, collected data, and combined data, wherein the combined data is data that combines collected data and padding data to reach the data length of the processing parameters.
[0055] In one possible implementation, the data transmission step includes: The structured frame data is broken down and cached into the buffers corresponding to each data source according to the reconstruction parameters; The data from the read buffer is decomposed and then reassembled into transmission frames according to the reconstruction parameters.
[0056] The multi-data source reconstruction and framing communication system of the present invention reduces the resource pressure on the data sending unit, improves the stability of timing constraints, ensures no data transmission loss, increases flexibility, and reduces development time by decomposing and structuring the data of the data sending unit, framing the data of the data transmission unit, reconstructing the data of the data sending unit, and binding the parameters of the above three units by the control unit. It effectively solves the problems of speed mismatch, asynchrony and data overflow of multiple data sources in the existing data frame framing process.
[0057] The multi-data source reconstruction frame communication system of the present invention distributes the data caching pressure. The data collected by each unit in the data acquisition unit, data transmission unit and data sending unit is cached in each unit. In the data transmission unit and data sending unit, only the data required for framing needs to be cached twice, which greatly relieves the pressure on the storage resources of the two parts.
[0058] The multi-data source reconstruction frame communication method described in this invention can be configured in real time through binding parameters when facing different sampling rates, different frame formats, and different data placement requirements. It is flexible in framing, adaptable to multiple data sources, does not require different processing based on data type, and has a certain degree of versatility.
[0059] The multi-data source reconstruction frame communication method described in this invention improves the stability of image data and ensures data integrity. For example, when image data bursts, it is buffered by the corresponding data acquisition unit. The buffer space is independent and large, which will not cause data overflow during transmission and ensure stable image data without frame loss. Attached Figure Description
[0060] Figure 1 This is a schematic diagram of an embodiment of a prior art multi-data source communication system; Figure 2 This is a schematic diagram of another embodiment of a prior art multi-data source communication system; Figure 3 This is a schematic block diagram of an embodiment of the multi-data source reconstruction frame communication system described in this invention; Figure 4 This is a schematic diagram of an embodiment of the data acquisition unit of the present invention converting acquired data into structured data according to processing parameters; Figure 5 This is a schematic block diagram illustrating one embodiment of the data acquisition unit described in this invention; Figure 6 This is a schematic diagram of an embodiment of the structured frame data of the data transmission unit described in this invention; Figure 7 This is a schematic block diagram illustrating one embodiment of the data transmission unit described in this invention; Figure 8This is a schematic diagram of an embodiment of data processing in the data transmission unit of the present invention; Figure 9 This is a schematic diagram of an embodiment of the data transmission unit reconstructing frame according to the present invention; Figure 10 This is a schematic diagram of an embodiment of the communication mechanism of the multi-data source reconstruction framing communication system described in this invention; Figure 11 This is a schematic diagram of an embodiment of the data processing by each unit of the multi-data source reconstruction frame communication system described in this invention; Figure 12 This is a flowchart illustrating an embodiment of the multi-data source reconstruction frame communication method described in this invention; Wherein: 10, data source; 11, first data source; 12, second data source; 13, third data source; 14, fourth data source; 20, data acquisition device; 30, encoding output device; 100, data acquisition unit; 110, first buffer unit; 120, first data link layer; 130, second buffer unit; 101, first data acquisition unit; 102, second data acquisition unit; 200, data transmission unit; 201, first data transmission unit; 202, second data transmission unit; 203, third data transmission unit; 300, data sending unit; 310, fourth buffer unit; 320, third data link layer; 400, control unit. Detailed Implementation
[0061] Many specific details are set forth in the following description to provide a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.
[0062] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of this specification. The singular forms “a” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0063] It should be understood that although the terms first, second, S1, S2, etc., may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another and do not represent a limitation on the order. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this specification, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."
[0064] Existing communication systems suffer from drawbacks such as data loss risk, high resource consumption, poor timing constraints, low scalability, and insufficient flexibility. To address these shortcomings, this invention provides a multi-data source reconstructing frame-grouping communication system, such as... Figure 3 As shown, the multi-data source reconstruction frame communication system includes a control unit 400, multiple data acquisition units 100, a data transmission unit 200, and a data sending unit 300. The control unit 400 is configured to load processing parameters, transmission parameters, and reconstruction parameters into the data acquisition unit 100, the data transmission unit 200, and the data sending unit 300, and, upon receiving a data request, control the data sending unit 300 to poll the data transmission unit 200 for data and control the data transmission unit 200 to poll the data acquisition unit 100 for data. The plurality of data acquisition units 100 are configured to acquire data from a plurality of data sources 10 and process the data according to processing parameters to obtain structured data; The data transmission unit 200 is configured to frame structured data according to transmission parameters to form structured frame data; The data transmission unit 300 is configured to reconstruct and frame structured frame data according to reconstruction parameters to form a transmission frame.
[0065] This invention manages the data acquisition, transmission, and sending processes uniformly by controlling the system's binding processing parameters, transmission parameters, and reconstruction parameters, avoiding resource contention and data loss. The data acquisition unit 100 processes raw data on demand to generate structured data, reducing the buffering pressure on the transmission unit. The data transmission unit 200 frames data according to transmission parameters, avoiding full-frame buffering and improving the ability to handle bursty data. The data sending unit 300 dynamically frames data according to reconstruction parameters, supporting flexible expansion of data types. The control unit 400's polling mechanism ensures data acquisition and transmission synchronization, eliminating the problem of sampling period mismatch.
[0066] In one feasible embodiment, the multi-data source reconstruction frame communication system includes multiple data transmission units 200, and each data transmission unit 200 corresponds to multiple data acquisition units 100.
[0067] This invention employs multiple data transmission units 200 to optimize the data processing architecture: multiple data transmission units 200 allow parallel transmission of data from multiple data sources 10, significantly improving system throughput and real-time performance; each data transmission unit 200 independently processes a group of data sources 10, avoiding caching pressure and processing bottlenecks caused by excessive data volume in a single data transmission unit 200; when a new data source 10 is added, it can be flexibly allocated to different data transmission units 200, avoiding the limitations of existing technologies that require redesigning interface programs. Through parallel processing, load balancing, fault isolation, and resource optimization, multiple data transmission units 200 significantly improve system performance and reliability.
[0068] The following details the constituent modules of the multi-data source reconstruction frame communication system of the present invention: Data acquisition unit 100: In one feasible embodiment, such as Figure 4 and Figure 5 As shown, the processing parameters used by the data acquisition unit 100 to process data include data length. The data lengths of different data sources 10 can be the same or different. The data acquisition unit 100 structures the data collected from multiple data sources 10 according to the processing parameters to obtain structured data.
[0069] The data acquisition unit 100 of the present invention performs structured processing on the acquired data according to the data length of the processing parameters, supports multi-channel expansion, and avoids framing errors caused by inconsistent data length.
[0070] In one feasible embodiment, the above processing parameters also include parameters such as acquisition accuracy, calibration, and data transmission format to ensure the accuracy of the acquired data and to be recognizable by the data transmission unit 200.
[0071] In one feasible embodiment, the above processing parameters may also include one or more of the following: padding rules, sampling period, data preprocessing rules (such as fixed-length processing of PCM data, byte extraction of 1553B data, packet format recognition of 422 data, caching strategy for image data, etc.) and multi-channel extension configuration.
[0072] The aforementioned structured data includes one or more of padding data, collected data, and combined data. The combined data is data obtained by combining collected data and padding data to achieve the required processing length. Specifically, for example... Figure 4 As shown: When no data is collected, the data acquisition unit 100 fills the data to the corresponding length using padding data. After receiving a data transmission request instruction from the data transmission unit 200, it responds by sending padding data, for example, when the data length is... When no data is collected, padding data FF is used to fill the length. ; When the length of the collected data is less than the data length corresponding to the processing parameters, the data acquisition unit 100 concatenates and pads the collected data to the specified data length to form combined data. Upon receiving a data transmission request instruction from the data transmission unit 200, it responds by sending the combined data. For example, the data length of the collected data... Less than the set data length Then, the data is spliced after collection. The filling data; When the length of the collected data is greater than the length of the data corresponding to the processing parameters, the collected data is truncated and cached according to the processing parameters. If the collected data is an integer multiple of the data length, the system responds by sending the collected data of the specified length after receiving the data sending request instruction. When the collected data is not an integer multiple of the data length, data is appended to the last segment of the truncated data to make up the data length. After receiving the data sending request instruction, the system responds by sending the collected data of the specified length and the last combined segment of data in sequence.
[0073] In one feasible embodiment, such as Figure 5 As shown, the data acquisition unit 100 includes a first cache unit 110, a first data link layer 120, and a second cache unit 130. The first cache unit 110 is used to cache data collected from multiple data sources 10; the first data link layer 120 is used to process the data according to processing parameters to obtain structured data; and the second cache unit 130 is used to store the structured data.
[0074] In one feasible embodiment, the data acquisition unit 100 further includes multiple acquisition channels, through which data from multiple data sources 10 are acquired synchronously.
[0075] In one feasible embodiment, the data acquisition unit 100 includes a plurality of first cache units 110, which respectively cache the acquired data from a plurality of data sources 10.
[0076] Data transmission unit 200: After receiving the structured data from the data acquisition unit 100, the data transmission unit 200 frames the received structured data from multiple data sources 10 according to the transmission parameters to form structured frame data. After receiving the data transmission request instruction from the data transmission unit 300, it responds and sends the structured frame data to the data transmission unit 300.
[0077] In one feasible embodiment, such as Figure 6 As shown, the transmission parameters include frame parameters, which include a frame header, a frame ID, and a frame length: The frame header is generally fixed data used to identify the beginning of the frame data; The frame ID is determined by the specific format and content of the transmitted data. It is bound by the control unit 400 according to the usage. One frame ID represents a data transmission format and a fixed data source 10 in the corresponding transmission format. The frame length represents the length of the structured frame data, which is bound by the control unit 400. The frame lengths of different data sources 10 can be the same or different.
[0078] In one feasible embodiment, a priority field is added to the frame header, and link arbitration is performed during transmission according to the order of priority from high to low.
[0079] The data transmission unit 200 of this invention only reads the cached data according to the length and does not perform identification processing. The data transmission unit 200 receives the structured data from the data acquisition unit 100 and caches the data in their respective buffer areas according to the hardware interface. During transmission, the frame ID and frame length are obtained from the control unit 400 in the early stage. The length of each data source 10 is fixed when the data transmission unit 200 performs frame assembly.
[0080] In one feasible embodiment, the above transmission parameters also include frame count, synchronous framing trigger condition, and asynchronous data request trigger condition.
[0081] In one feasible embodiment, the transmission parameters further include 10 types of data sources and / or frame types.
[0082] In one feasible embodiment, the data transmission unit 200 includes a third buffer unit (not shown) and a second data link layer (not shown), wherein the second data link layer is used to frame structured data into structured frame data according to transmission parameters; and the third buffer unit is used to buffer the structured frame data.
[0083] The data transmission unit 200 of this invention reads data from the corresponding second buffer unit only according to the data length during framing, without recognizing or otherwise processing the structured data. The structured data in the buffer includes acquired data or padding data, determined by the data source 10. The acquired data is transmitted in a continuous and complete format. After being sent to the data sending unit 300 via the data acquisition unit 100 and the data transmission unit 200, the data in the data sending unit 300 is continuous and complete.
[0084] Data transmission unit 300: like Figure 7 As shown, after receiving the structured frame data, the data sending unit 300 decomposes, identifies and caches the multi-source data in the structured frame data according to the reconstruction parameters, and performs frame reconstruction on the collected data from the various data sources 10 obtained from the decomposition according to the reconstruction parameters to form a transmission frame.
[0085] In one feasible embodiment, the reconstruction parameters include deframe rules and reframe rules, wherein the deframe rules include a mapping between data types and buffer areas, and the reframe rules include a mapping between data types and transmission requirements.
[0086] In one feasible embodiment, the deframe rules include one or more of the position, length, and cache allocation strategies of each data source 10 in the frame.
[0087] In one feasible embodiment, the reconstructing framing rules include one or more of the following: packet identifier, data type identifier, priority, rate, and output timing.
[0088] In one feasible embodiment, the data sending unit 300 includes a plurality of fourth buffer units 310 and a third data link layer 320. The third data link layer 320 is used for disassembling structured frame data and reconstructing the disassembled data. The plurality of fourth buffer units 310 are used for storing the disassembled data according to the data source 10.
[0089] like Figure 8 As shown, after receiving structured frame data, the data sending unit 300 identifies the specific location, specific data source 10, and data volume of the structured frame data uploaded by the data transmission module according to the bound transmission parameters. Based on the deframe rules bound by the control unit 400, it decomposes the structured data and caches them separately. The data sending unit 300 has the ability to frame all data collected by the data acquisition units 100. During frame reconstruction, the decomposed data is read from the corresponding buffer areas. According to the frame reconstruction rules bound by the control unit 400, various types of acquired data are placed in fixed positions. For example, the buffer area is used as the reconstruction area of the data source 10. For example, the deframed data of the first data source 11, the second data source 12, the third data source 13, and the fourth data source 14 are stored in their respective data source 10 reconstruction areas. The decomposed data is read from the four data source 10 reconstruction areas and reconstructed into frames, generating reconstructed frame 1, reconstructed frame 2, reconstructed frame 3… reconstructed frames. , as a transmission frame.
[0090] In one feasible embodiment, such as Figure 9The transmission requirements in the reconstruction parameters include a data packet identifier and a data type identifier. The data packet identifier identifies the data source 10, and the data type identifier identifies the format and structure of the data. After the structured frame data is decomposed, the data collected by each data source 10 is stored in its corresponding fourth buffer unit 310. Multiple fourth buffer units 310 respectively store the data source 10 data and padding data of each data source 10. The data corresponding to the data source 10 is read from the fourth buffer unit 310 according to the data packet identifier, and the read data is reconstructed and framed according to the data type identifier.
[0091] The data sending unit 300 of the present invention can identify padding data and sampling data from structured framed data, and send the sampling data continuously and completely in sequence; each data source 10 of the data sending unit 300 only buffers one frame of structured frame data; the data do not interfere with each other; the data sending format and quantity are fixed; the data padding method and position are determined by the data transmission unit 200 and the data acquisition unit 100, reducing the pressure on the data sending unit 300 and reducing the risk of padding discrimination errors in the data sending unit 300.
[0092] Figure 10 This is a schematic diagram of an embodiment of the communication mechanism of the multi-data source reconstruction framing communication system described in this invention, as shown below. Figure 10 As shown, the multi-data source reconstruction and framing communication system of this invention uses synchronous acquisition and asynchronous transmission for communication. Data acquisition and transmission are completed through periodic (or transmission regular) synchronous acquisition instructions, synchronous framing instructions, data transmission request instructions, and data response instructions, specifically including: Each cycle begins with a synchronization phase. At the start of the synchronization phase, the data sending unit 300 sends a synchronization framing instruction to all data transmission units 200 (e.g., the first data transmission unit 201, the second data transmission unit 202, and the third data transmission unit 203). Each data transmission unit 200 sends a synchronization acquisition instruction to its corresponding multiple data acquisition units 100 (e.g., the first data transmission unit 201 corresponds to the first data acquisition unit 101 and the second data acquisition unit 102). After receiving the synchronization framing instruction, the multiple data transmission units 200 begin to synchronously perform the next stage of data framing. After receiving the synchronization acquisition instruction, the multiple data acquisition units 100 begin to synchronously perform the next stage of data acquisition processing. After the synchronization phase ends, the asynchronous phase begins.
[0093] Asynchronous Phase: Data sending unit 300 begins to send data sending request instructions to all data transmission units 200 in turn. Each data transmission unit 200, upon receiving a data sending request instruction, sends a response instruction and transmits the structured frame data from the previous cycle to data sending unit 300. Each data transmission unit 200 then begins to send data sending request instructions to all corresponding data acquisition units 100 in turn. Upon receiving a data sending request instruction, the data acquisition unit 100 sends a response instruction and transmits the structured data processed in the previous cycle to data transmission unit 200.
[0094] By using synchronous acquisition and asynchronous transmission, each cycle data transmission unit 300 will receive all data from all data acquisition units 100 under all data transmission modules of the previous cycle.
[0095] The multi-data source reconstruction and framing communication system of this invention achieves synchronization of data acquisition and framing between the data acquisition unit 100 and the data transmission unit 200 during the synchronization phase. That is, the data transmission unit 200 does not wait for the data acquisition unit 100 to upload structured data before starting framing; instead, it proceeds synchronously with the acquisition. Before receiving structured data, it can fill in data frames and / or framing the data corresponding to the previous cycle. Data acquisition synchronization is achieved through the data acquisition unit 100 and the data transmission unit 200, while the asynchronous phase uses a polling data request mechanism to enable the data transmission unit 300 to asynchronously send transmission frames. This separates the data acquisition and transmission timing, solving the problems of speed mismatch, resource scarcity, and poor scalability among multiple data sources, and avoiding data overflow caused by rate mismatch. Synchronous data acquisition ensures that data is collected from all data sources at the same point in time, avoiding data inconsistencies or loss due to differences in acquisition timing. Asynchronous transmission allows data transmission units to process data flexibly after acquisition, improving overall transmission efficiency.
[0096] Ensuring that the data acquisition rate matches the frame rate fundamentally avoids data overflow or loss due to speed mismatch.
[0097] Synchronization eliminates timing misalignment, reduces resource waste caused by waiting and retransmission, and makes the system more stable and resource allocation more efficient.
[0098] Asynchronous transmission avoids data overflow or loss caused by a mismatch between the transmission rate and the acquisition rate.
[0099] Synchronization mechanisms reduce buffering pressure on data transmission units and avoid the risk of sudden data overflow. Asynchronous transmission utilizes bandwidth efficiently through a polling mechanism, reducing transmission latency.
[0100] The synchronous acquisition-asynchronous transmission mechanism significantly improves data real-time performance, system stability, and resource utilization through unified acquisition timing and flexible transmission strategies, making it a core advantage of multi-data source communication systems.
[0101] In this invention, the data sending unit 300 sends synchronization framing instructions to multiple data transmission units 200, each data transmission unit 200 sends synchronization acquisition instructions to its corresponding multiple data acquisition units 100, and the data sending unit 300 sends data sending request instructions to the data transmission units 200. The data transmission units 200 send data request instructions to their corresponding multiple data acquisition units 100, instead of all instructions being sent uniformly by the control unit 400. This reduces the burden on the control unit 400, and the hierarchical processing allows the control unit 400 to handle more data acquisition units 100, thereby improving the system's data throughput.
[0102] In one feasible embodiment, the control unit 400 binds the processing parameters of the data acquisition unit 100 through the data transmission module, thereby achieving isolation between the data acquisition unit 100 and the control unit 400 in terms of physical direct connection, and realizing data transmission between multiple remote data acquisition units 100.
[0103] In one feasible embodiment, the control unit schedules and constrains the throughput of the data transmission unit by combining the binding transmission parameters with the following formula (1), and the data transmission unit responds with data based on the throughput: (1) in, This refers to the throughput of the data transmission unit. For the first Priority weight of data types (alarms > control > monitoring > logs, such as alarms) ,log ); For the first The effective payload of class data; the contribution of high-priority data to system throughput is amplified, and system performance evaluation prioritizes critical data; For synchronous data acquisition cycle; To reduce frame processing delay; This represents the maximum response waiting time.
[0104] In one feasible embodiment, the control unit adaptively scales the framing window of the data transmission unit in conjunction with the binding transmission parameters using the following formula (2): (2) in, As a priority factor, ; This represents the maximum number of data packets that can be framed per acquisition cycle. Physical link bandwidth; The average length of a single frame (in bytes) means that higher priority data can be packed into more frames under the same bandwidth, significantly improving response speed.
[0105] In one feasible embodiment, the control unit controls the transmission efficiency of the data transmission unit by loading priority weights into the transmission parameters, using the following formula (3): (3) in, For transmission efficiency; The overhead is dynamically adjusted based on priority: The payload data size (in bytes); Total protocol overhead (bytes), for example, alarm frames ( ): Compress the address field, keeping only the source ID. B; Log frame ( ): Keep the complete address and serial number. B; High-priority data is elevated through a simplified protocol header. Indirectly improve and .
[0106] Figure 11 This is a schematic diagram of an embodiment of the data processing by each unit of the multi-data source reconstruction frame communication system described in this invention, as shown below. Figure 11 As shown: Multiple data sources 10 include 422 devices, image devices, PCM data devices, and 1553B devices.
[0107] The characteristics of 422 data generated by 422 devices are: the data frequency is not fixed, the length is not fixed but the length types are limited, and the transmission requirements are: it needs to be able to adapt to multiple lengths and variable frequencies.
[0108] The characteristics of image data generated by imaging devices are: variable data frequency, variable length with varying and even excessively long data lengths, and bursty data transmission, sending multiple packets of excessively long data within a short period. Transmission requirements include: sufficient buffer space and adaptation to variable packet frequencies.
[0109] The characteristics of PCM data generated by PCM data equipment are: continuous, stable, fixed length, and fixed rate. The transmission requirements are: based on the fixed length and fixed speed characteristics of PCM data, data transmission should be carried out using a fixed frequency and fixed data size.
[0110] The characteristics of 1553B data generated by 1553B devices are: byte messages, high frequency but not fixed. The transmission requirements are: accuracy and precision are required.
[0111] Traditional multi-data source communication systems employ multiple data acquisition units 100 to collect data from different data sources 10. The raw data from each acquisition is then transmitted completely to a data transmission unit 200, which only performs pass-through processing. Finally, the data transmission unit 300 receives the data. The data transmission unit 300 must independently complete the entire process, including data identification and parsing, storage by category in corresponding areas, framing and encapsulation, and output. This communication system has significant drawbacks: the data transmission unit 300, due to its centralized responsibility for identification, storage, and framing, suffers from severe cache resource shortages; data transmission and transmission units are prone to overflow during data bursts, and simply expanding the cache cannot completely resolve the issue because the scale of the burst cannot be predicted; the data sampling period and framing period are not synchronized, and the mismatch between transmission rate and framing output speed leads to empty data anomalies between sampled data packets; the data transmission unit 300 requires customized identification logic for each type of data, limiting its versatility; furthermore, to save cache resources, the system employs differentiated caching and framing strategies for different data types, requiring significant program modifications when adding new data types, resulting in poor scalability.
[0112] In the multi-data source reconstruction frame communication system described in this invention: The control unit 400 is used for dynamic parameter configuration and polling scheduling between units, specifically: The control unit 400 sets different processing parameters for different data acquisition units 100 corresponding to different data sources 10. For example, the control unit 400 configures processing parameters including multiple data length types for the data acquisition unit 100 corresponding to the 422 device; the control unit 400 configures processing parameters including large buffer space for the data acquisition unit 100 corresponding to the image device; the control unit 400 configures processing parameters including fixed rate and data length for the data acquisition unit 100 corresponding to the PCM device; and the control unit 400 configures processing parameters including high-precision timestamps for the data acquisition unit 100 corresponding to the 1553B device. The flexible configuration of processing parameters ensures that the data acquisition can accurately match the respective needs.
[0113] The control unit 400 flexibly defines the transmission parameters loaded by the data transmission unit 200 through frame header, frame ID and frame length, supporting variable-length frames of 422 devices, large packet fragmentation of image devices, fixed-length frames of PCM devices and byte messages of 1553B devices, and achieving multi-protocol compatibility.
[0114] The control unit 400 can establish mapping rules between data types, buffer areas, and transmission requirements by binding the reconstructed parameters of the data transmission unit 300. For example, it can allocate independent buffer areas of different sizes to each data source 10, or allocate fixed bandwidth to PCM data to ensure reasonable resource allocation during transmission.
[0115] Data acquisition unit 100 performs structured processing on data from different data sources 10 according to processing parameters to generate structured data. The data acquisition unit 100 performs dynamic length detection and frequency statistics on the 422 data of the 422 device according to the processing parameters, converting the variable-length data into structured data to adapt to various length types.
[0116] The data acquisition unit 100 uses sliding window caching and burst flow control to process the image data from the image device according to the processing parameters, dividing the excessively long data into fixed lengths to avoid data loss.
[0117] The data acquisition unit 100 performs fixed-rate sampling and fixed-length packaging of the PCM data from the PCM device according to the processing parameters, generating a continuous and stable data stream.
[0118] The data acquisition unit 100 performs high-precision timestamp and byte message parsing on the 1553 data of the 1553B device according to the processing parameters to ensure data accuracy and timing.
[0119] The data transmission unit 200 frames and schedules structured data according to transmission parameters. For example, it allocates variable-length frames to 422 devices, fragmented frames to image devices, fixed-length frames to PCM devices, and byte message frames to 1553B devices. It can also determine the transmission priority of structured data of different data types, such as prioritizing transmission and transmitting low-priority data (such as images) on demand.
[0120] The data transmission unit 300 disassembles and reassembles the structured frame data according to the reconstructed frame parameters. For example, it can allocate independent buffers for each data source 10, allocate fixed bandwidth for PCM data, allocate variable-length frames for 422 devices, and allocate fragmented frames for image devices.
[0121] The multi-data source reconstruction and framing communication system of the present invention collects, structures and caches, frames and caches, decomposes and caches, and reconstructs frames from multiple data sources 10, and has the following beneficial effects: First, the amount of cached data is small. The transmission and sending using the reconstruction method caches data in each functional unit. The data sending unit 300 only needs to cache one frame of data that is being sent or waiting to be sent, which greatly reduces the amount of data compared to caching the entire frame of data. Second, the cached content is not entirely valid data. The data transmission unit 200 transmits fixed data. When there is collected data, it sends the collected data. When there is no collected data, it will fill in the data to ensure that the data transmission module sends data of fixed length and fixed position each time. Third, there is no risk of data overflow in data storage; the sudden or excessively long issues with image data will not be affected during storage. Fourth, there is no differential processing in data storage. The length of the data from multiple data sources 10 in the data sending unit 300 and the data from the data source 10 in the binding is related to the actual data content. Fifth, there is no read-empty anomaly in the stored data. The data uploaded by the data transmission unit 200 is filled when there is no data and the length of the uploaded data is fixed, ensuring that the data length meets the frame-making requirements each time the frame is framed, and that the continuous valid data will not be interrupted due to the data transmission being slower than the frame-making process and the data being read empty momentarily.
[0122] This invention achieves efficient and reliable transmission from multiple data sources through layered processing and dynamic parameter configuration, making it highly suitable for complex scenarios such as industrial control and communication equipment. Dynamic parameter configuration supports various data sources and transmission protocols. A polling mechanism and dynamic scheduling prevent data loss and congestion.
[0123] This invention also provides a multi-data source reconstruction frame communication method, such as... Figure 12 As shown, the specific steps include: Step S1, Data Acquisition and Framing Steps: Acquire data from multiple data sources; process the above data according to the set processing parameters to obtain structured data and cache it; synchronize and frame the structured data or padding data according to the set transmission parameters to obtain structured frame data and cache it. Step S2, Data Request Step: Receive data request; Poll for the structured frame data corresponding to the data request; Poll for the structured data corresponding to the structured frame data; Response: After obtaining the corresponding structured data, obtain the corresponding structured frame data; Step S3, data transmission step: The structured frame data is disassembled and reconstructed according to the reconstruction parameters to form a transmission frame for transmission.
[0124] In one feasible embodiment, step S1 includes: Simultaneously collect data from multiple data sources.
[0125] In one feasible embodiment, the processing parameters in step S1 include the data length.
[0126] In one feasible embodiment, the structured data in step S1 includes one or more of padding data, collected data, and combined data, wherein the combined data is data that combines collected data and padding data to reach the data length of the processing parameters.
[0127] In one feasible embodiment, the transmission parameters in step S1 include frame parameters, which include a frame header, a frame ID, and a frame length.
[0128] In one feasible embodiment, step S2 includes: The structured frame data is broken down and cached into the buffers corresponding to each data source according to the reconstruction parameters; The data from the read buffer is decomposed and then reassembled into transmission frames according to the reconstruction parameters.
[0129] In one feasible embodiment, the reconstruction parameters in step S3 include deframe rules and reframe rules. The deframe rules include a mapping between data types and buffer areas, and the reframe rules include a mapping between data types and transmission requirements.
[0130] The above is an illustrative scheme of a multi-data source reconstruction frame communication method according to this embodiment. It should be noted that the technical solution of this multi-data source reconstruction frame communication method and the technical solution of the multi-data source reconstruction frame communication system described above belong to the same concept. For details not described in detail in the technical solution of the multi-data source reconstruction frame communication method, please refer to the description of the technical solution of the multi-data source reconstruction frame communication system described above.
[0131] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0132] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments in this specification are not limited to the described order of actions, because according to the embodiments in this specification, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments in this specification.
[0133] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0134] The preferred embodiments disclosed above are merely illustrative of this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the embodiments described herein. These embodiments are selected and specifically described in this specification to better explain the principles and practical applications of the embodiments, thereby enabling those skilled in the art to better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
1. A multi-data source reconstruction frame communication system, characterized in that, It includes a control unit, multiple data acquisition units, a data transmission unit, and a data transmission unit: The control unit is configured to load processing parameters, transmission parameters, and reconstruction parameters into the data acquisition unit, data transmission unit, and data sending unit, respectively, and to trigger the data sending unit to poll the data transmission unit for data requests and control the data transmission unit to poll the data acquisition unit for data requests when a data request is received. The plurality of data acquisition units are configured to acquire data from multiple data sources and process the data according to processing parameters to obtain structured data; The data transmission unit is configured to synchronously frame structured data and / or filler data with the data acquisition unit according to transmission parameters to form structured frame data. The data transmission unit is configured to reconstruct and frame structured frame data according to reconstruction parameters to form transmission frames.
2. The multi-data source reconstruction frame communication system according to claim 1, characterized in that, The data transmission unit sends a synchronous acquisition instruction to the plurality of data acquisition units, and the plurality of data acquisition units receive the synchronous acquisition instruction and perform synchronous acquisition on the plurality of data sources; Or / and, the data sending unit sends a data sending request instruction to the data transmission unit, and the data transmission unit sends a response instruction after receiving the data sending request instruction, and sends the structured frame data of the previous period to the data sending unit. Or / and, the data transmission unit sends a data transmission request instruction to the corresponding multiple data acquisition units. After receiving the data transmission request instruction, the data acquisition module sends a response instruction and sends the structured data processed in the previous cycle to the data transmission unit.
3. The multi-data source reconstruction frame communication system according to claim 2, characterized in that, The data transmission unit periodically or according to a transmission pattern sends synchronous acquisition commands to the multiple data acquisition units. Or / and, the data sending unit periodically or according to the transmission pattern sends a data sending request instruction to the data transmission unit; Or / and, the data transmission unit periodically or according to the transmission pattern sends data transmission request instructions to the corresponding multiple data acquisition units.
4. The multi-data source reconstruction frame communication system according to claim 1, characterized in that, Includes multiple data transmission units; Or / and, the data sending unit sends a synchronization framing instruction to a plurality of data transmission units, and the plurality of data transmission units perform synchronization framing after receiving the synchronization framing instruction; Or / and, the data sending unit periodically or according to the transmission pattern sends synchronization framing instructions to multiple data transmission units.
5. The multi-data source reconstruction frame communication system according to claim 1, characterized in that, The processing parameters include data length; Or / and, the transmission parameters include frame parameters, which include a frame header, a frame ID, and a frame length; Or / and, the reconstruction parameters include deframe rules and reframe rules, the deframe rules include a mapping between data types and buffer areas, and the reframe rules include a mapping between data types and transmission requirements.
6. The multi-data source reconstruction frame communication system according to claim 5, characterized in that, The structured data includes one or more of padding data, collected data, and combined data. The combined data is data that combines collected data and padding data to reach the data length of the processing parameters.
7. The multi-data source reconstruction frame communication system according to claim 1, characterized in that, The data acquisition unit includes a first cache unit, a first data link layer, and a second cache unit. The first cache unit is used to cache data collected from multiple data sources. The first data link layer is used to process the data according to processing parameters to obtain structured data. The second cache unit is used to store the structured data. Or / and, the data transmission unit includes a third buffer unit and a second data link layer, wherein the second data link layer is used to frame structured data into structured frame data according to transmission parameters; and the third buffer unit is used to buffer the structured frame data. Or / and, the data sending unit includes multiple fourth buffer units and a third data link layer, the third data link layer is used for disassembling structured frame data and reconstructing the disassembled data, and the multiple fourth buffer units are used for storing the disassembled data according to the data source.
8. A multi-data source reconstruction frame communication method, characterized in that, include: Data acquisition steps: Collect data from multiple data sources; The above data is processed according to the set processing parameters to obtain structured data, which is then cached. Data transmission steps: The above structured data is framed according to the set transmission parameters to obtain structured frame data, and then cached; Data request steps: Receive data request; Poll the structured frame data corresponding to the data request; Polling requests the structured data corresponding to the structured frame data; After obtaining the corresponding structured data, the response obtains the corresponding structured frame data; Data transmission steps: The structured frame data is disassembled and reconstructed according to the reconstruction parameters to form a transmission frame for transmission.
9. The multi-data source reconstruction frame communication method according to claim 8, characterized in that, The data acquisition steps include: Simultaneously collect data from multiple data sources; Or / and, the processing parameters include data length; Or / and, the transmission parameters include frame parameters, which include a frame header, a frame ID, and a frame length; Or / and, the reconstruction parameters include deframe rules and reconstruction frame rules, the deframe rules include a mapping between data types and buffer areas, and the reconstruction frame rules include a mapping between data types and transmission requirements; Or / and, the data transmission step includes: The structured frame data is broken down and cached into the buffers corresponding to each data source according to the reconstruction parameters; The data from the read buffer is decomposed and then reassembled into transmission frames according to the reconstruction parameters.
10. The multi-data source reconstruction frame communication method according to claim 9, characterized in that, The structured data includes one or more of padding data, collected data, and combined data. The combined data is data that combines collected data and padding data to reach the data length of the processing parameters.