Multi-board analog acquisition method and system

By introducing programmable logic and multi-threaded collaborative control, the architectural flexibility and data stability issues of multi-board analog acquisition solutions are solved, and efficient and accurate data acquisition is achieved.

CN120370827BActive Publication Date: 2025-09-09XIAN SHENGXIN TECH DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510879583.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-09-09
Estimated Expiration
2045-06-27

AI Technical Summary

Technical Problem

Existing multi-board analog acquisition solutions have problems such as insufficient architectural flexibility, difficulty in adapting acquisition logic to complex scenarios, and poor data acquisition accuracy and stability.

Method used

By introducing programming logic to make acquisition architecture decisions, adopting multi-threaded dynamic collaboration and self-driving control, decoupling and determining the microcontroller logic, ensuring the joint drive collaboration between the main board and the acquisition board, and realizing scene simulation data acquisition.

Benefits of technology

It achieves efficient adaptation and flexible response to acquisition scenarios under the collaboration of multiple boards, ensuring the accuracy and stability of scene simulation data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120370827B_ABST
    Figure CN120370827B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-board analog acquisition method and system, which relates to the field of acquisition control technology. The method includes: deploying and connecting multiple boards according to the acquisition scenario; introducing a programming logic device and embedding it in the main board to make acquisition architecture decisions, making acquisition logic decisions with multi-threaded dynamic collaboration under the scenario cycle, initializing the programming logic device, and determining the scene acquisition logic; using the self-drive control of the acquisition board to decouple the scene acquisition logic to determine the microcontroller logic and the coupling relationship; and executing the scene simulation data acquisition under the joint drive of the main board and the acquisition board. The present invention solves the technical problems in the prior art of multi-board analog acquisition, such as insufficient architectural flexibility, difficulty in adapting the acquisition logic to complex scenarios, and poor data acquisition accuracy and stability. It achieves efficient adaptation and flexible response to acquisition scenarios under the collaboration of multiple boards, ensuring the accuracy and stability of scene simulation data acquisition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of acquisition control technology, and in particular to a multi-board analog acquisition method and system. Background Art

[0002] In fields such as industrial automation and intelligent monitoring, multi-board analog acquisition technology is widely used for real-time data acquisition and processing. However, existing multi-board analog acquisition solutions have numerous shortcomings. Firstly, the fixed architecture of the main and acquisition boards makes it difficult to flexibly adjust deployment strategies to suit different acquisition scenarios, resulting in low acquisition efficiency. Secondly, the acquisition logic lacks dynamic decision-making capabilities, making it unable to adapt to cyclical scenarios and the demands of multi-threaded collaboration, leading to data acquisition delays and loss. Furthermore, the lack of effective decoupling and coordination between acquisition boards makes it difficult to ensure the accuracy and stability of collected data.

[0003] The existing technology has technical problems such as insufficient architectural flexibility of multi-board analog acquisition, difficulty in adapting acquisition logic to complex scenarios, and poor data acquisition accuracy and stability. Summary of the Invention

[0004] The present application provides a multi-board analog acquisition method and system, which is used to solve the technical problems in the prior art of multi-board analog acquisition, such as insufficient architectural flexibility, difficulty in adapting acquisition logic to complex scenarios, and poor data acquisition accuracy and stability.

[0005] In view of the above problems, the present application provides a multi-board analog acquisition method and system.

[0006] A first aspect of the present application provides a multi-board analog acquisition method, the method comprising:

[0007] For the acquisition scenario, multiple boards are deployed and connected, including the planning and deployment of the main board and the acquisition board, and the main board executes the upper logic drive; the programming logic is introduced and embedded in the main board, and by interpreting the acquisition scenario, the acquisition architecture decision is made based on the acquisition board-acquisition channel-acquisition mode, and the acquisition logic decision is made based on the multi-threaded dynamic collaboration under the scene cycle. The programming logic is initialized to determine the scene acquisition logic; the scene acquisition logic is decoupled to determine the micro-control logic and the coupling relationship by the self-drive control of the acquisition board, wherein the micro-control logic corresponds to the acquisition board; according to the micro-control logic and the coupling relationship, the scene simulation data acquisition is executed under the joint drive of the main board and the acquisition board.

[0008] A second aspect of the present application provides a multi-board analog acquisition system, the system comprising:

[0009] A multi-board deployment module is used to deploy and connect multiple boards for acquisition scenarios, including planning and deployment of the main board and acquisition board, and the main board executes the upper logic drive; a scene acquisition logic determination module is used to introduce the programming logic and deploy it in an embedded manner on the main board, interpret the acquisition scenario, make acquisition architecture decisions based on the acquisition board-acquisition channel-acquisition mode, make acquisition logic decisions based on multi-threaded dynamic collaboration under the scene cycle, initialize the programming logic, and determine the scene acquisition logic; a coupling relationship determination module is used to decouple the scene acquisition logic and determine the micro-control logic with the self-drive control of the acquisition board, and determine the coupling relationship, wherein the micro-control logic corresponds to the acquisition board; a scene simulation data acquisition module is used to execute scene simulation data acquisition under the joint drive of the main board and the acquisition board according to the micro-control logic and the coupling relationship.

[0010] One or more technical solutions provided in this application have at least the following technical effects or advantages:

[0011] Based on the acquisition scenario, multiple boards are deployed and interconnected. A programming logic controller is introduced and embedded in the mainboard. By interpreting the acquisition scenario, the acquisition architecture is determined based on the acquisition board, acquisition channel, and acquisition mode. The acquisition logic is determined through dynamic multi-threaded collaboration within the scenario cycle. The programming logic controller is initialized to determine the scene acquisition logic. The acquisition board's self-drive control decouples the scene acquisition logic to determine the microcontroller logic and the coupling relationship. Based on the microcontroller logic and the coupling relationship, scene simulation data acquisition is executed under the joint drive of the mainboard and acquisition board. This achieves efficient adaptation and flexible response to the acquisition scenario through multi-board collaboration, ensuring the accuracy and stability of scene simulation data acquisition. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0013] Figure 1 A schematic flow chart of a multi-board analog acquisition method provided in an embodiment of the present application;

[0014] Figure 2 A schematic diagram of the structure of a multi-board analog acquisition system provided in an embodiment of the present application.

[0015] Description of the accompanying drawings: multi-board deployment module 10, scene acquisition logic determination module 20, coupling relationship determination module 30, scene simulation data acquisition module 40. DETAILED DESCRIPTION

[0016] This application provides a multi-board analog acquisition method and system to solve the technical problems in the existing technology of multi-board analog acquisition, such as insufficient architectural flexibility, difficulty in adapting acquisition logic to complex scenarios, and poor data acquisition accuracy and stability.

[0017] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative work are within the scope of protection of this application.

[0018] Example 1, as Figure 1 As shown, the present application provides a multi-board analog acquisition method, the method comprising:

[0019] Step S100: for the acquisition scenario, multiple boards are deployed and connected, including the planning and deployment of the main board and the acquisition board, and the main board executes the upper logic drive.

[0020] Specifically, in the multi-board simulation acquisition method, the type, quantity, and functional configuration of the required boards are determined based on the specific acquisition scenario, such as industrial equipment status monitoring and environmental parameter acquisition, and then the deployment and interconnection of the multiple boards are carried out. In this process, the planning and deployment of the main board and acquisition board are key parts. The main board is responsible for executing the upper-level logic drive, that is, receiving external control instructions and configuration information, and generating the corresponding control signals and data transmission protocols according to the requirements of the acquisition scenario. For example, in the scenario of collecting parameters such as temperature and pressure on an industrial production line, the main board decomposes and assigns the acquisition tasks to each acquisition board based on pre-set production process requirements and data acquisition rules. The main board and acquisition board are connected through specific communication interfaces and bus protocols to ensure the accuracy and efficiency of data transmission, providing a stable hardware architecture and control foundation for the acquisition logic decision-making, microcontroller logic determination, and final simulation data acquisition in the subsequent steps.

[0021] Step S200: Introduce the programming logic and embed it in the mainboard. By interpreting the acquisition scenario, make acquisition architecture decisions based on the acquisition board, acquisition channel, and acquisition mode. Make acquisition logic decisions based on multi-threaded dynamic collaboration under the scenario cycle. Initialize the programming logic and determine the scenario acquisition logic.

[0022] Specifically, in the multi-board analog acquisition process, after the boards are deployed, the programming logic is introduced and embedded into the mainboard. This programming logic possesses powerful analytical and decision-making capabilities. It first interprets the acquisition scenario and analyzes the acquisition requirements. For example, if the acquisition scenario involves parameter monitoring in a chemical production process, the programming logic analyzes key information such as the chemical parameters to be collected (temperature, pressure, flow), the accuracy requirements, and the acquisition frequency. Based on this information, the programming logic makes acquisition architecture decisions based on three aspects: the acquisition board, the acquisition channels, and the acquisition mode. Different acquisition boards have different functional focuses and performance characteristics. The programming logic allocates acquisition tasks to each acquisition board based on actual needs. For each acquisition board, the programming logic determines which channels are used to collect specific data types, optimizing resource allocation. Furthermore, the programming logic selects the appropriate acquisition mode from automatic to controlled, prioritizing controlled acquisition mode in online situations and automatic acquisition mode in offline situations. To make acquisition logic decisions, the programming logic utilizes a multi-threaded dynamic coordination mechanism within the scenario cycle. It determines the sampling frequency and data encapsulation method based on the characteristics of the acquired analog quantity, and then determines the single-threaded logic. For example, for rapidly changing analog quantities, the sampling frequency is increased and a suitable compact data encapsulation method is adopted; for slowly changing analog quantities, the sampling frequency is reduced and a simple data encapsulation method is adopted. To avoid data conflicts during the acquisition process, a synchronization data threshold is set, and the frequency-shifted acquisition logic is determined to implement alternating deployment of synchronous and frequency-shifted acquisition. After completing the above decisions, the programming logic is initialized and the results of the acquisition architecture and acquisition logic decisions are converted into specific executable program code and configuration parameters. This determines the scene acquisition logic applicable to the acquisition scenario, provides clear operating rules and control instructions for subsequent acquisition work, and ensures that the acquisition work is carried out efficiently and orderly.

[0023] Step S300: Decoupling the scene acquisition logic to determine the micro-control logic and determining the coupling relationship by using the self-driving control of the acquisition board, wherein the micro-control logic corresponds to the acquisition board.

[0024] Specifically, after determining the scene acquisition logic, the acquisition board's self-driving control function is used to further process this logic. Based on its own hardware characteristics and the acquisition task it undertakes, the acquisition board independently decouples the scene acquisition logic. This means that the acquisition board breaks down the complex overall acquisition logic into the smallest units that it can directly execute, forming its own corresponding microcontrol logic. For example, when acquiring analog data, the acquisition board breaks down the specific operations of data acquisition, processing, and transmission into a set of directly controllable microinstructions based on the previously determined sampling frequency and data encapsulation method. These microinstruction sets constitute the microcontrol logic. Furthermore, during the decoupling process, the acquisition board must also determine the coupling relationships with other acquisition boards and the main board. This coupling relationship clarifies the method and timing of data exchange between each acquisition board, as well as the rules for communication with the main board. This ensures accurate data transmission and orderly acquisition tasks when multiple boards work together. By defining the microcontrol logic and coupling relationships, each acquisition board clearly understands its specific responsibilities and collaboration methods within the overall acquisition task, thereby ensuring the stable and efficient operation of the entire analog acquisition system.

[0025] Step S400: Execute scene simulation data acquisition under the joint driving of the main board and the acquisition board according to the micro-control logic and the coupling relationship.

[0026] Specifically, after completing the previous steps to determine the microcontroller logic and coupling relationships, the scenario simulation data acquisition phase begins. The mainboard and acquisition boards work together based on the established microcontroller logic and coupling relationships. The mainboard, acting as a higher-level logic driver, coordinates the operating sequence and timing of each acquisition board according to the pre-planned acquisition architecture. Each acquisition board independently controls the operation of its acquisition channels based on its corresponding microcontroller logic. For different analog quantities to be collected, the acquisition board initiates data acquisition at a set sampling frequency. For example, for analog quantities with high frequency fluctuations, the acquisition board collects data quickly to ensure accurate capture of their changing trends; for analog quantities with low frequency fluctuations, it collects data at a lower frequency to optimize resource utilization. The collected data is first temporarily stored within the acquisition board and then transmitted to the mainboard in an orderly manner via the data transmission path specified by the coupling relationship. During the data transmission process, to improve data stability and reliability, a cache node is deployed before the serial port interface of each acquisition board. The analog data collected by multiple threads in the acquisition board is first temporarily stored in the cache node. In the cache node, the encryption level of the sensitive part is determined according to the sensitivity of the analog data, and the corresponding data encapsulation method is matched according to the analog characteristics. After encryption and encapsulation, it is imported into the storage area. At the same time, taking into account the abnormal situations that may occur during the acquisition process, such as abnormal operation of the acquisition channel, the micro-control logic built into the control module will be transferred from the abnormal operation acquisition channel to the backup acquisition channel according to the redundant configuration strategy in the acquisition logic decision, so as to realize the acquisition drive replacement processing and ensure the continuity of data acquisition. In addition, according to the channel hardware characteristics, accumulated running time and environmental changes, the acquisition dynamic calibration and acquisition board alternating acquisition operations will be performed, so as to realize stable and efficient scene simulation data acquisition under the joint drive of the main board and the acquisition board, providing a reliable data foundation for subsequent data processing and analysis.

[0027] In one possible implementation, step S300 further includes:

[0028] Step S310: In the control module of each acquisition board, divide the blank logic blocks.

[0029] Step S320: deploying blank logic blocks in the mapped acquisition board with respect to the micro-control logic, wherein logic time constraints are imposed on the blank logic blocks based on the scene acquisition cycle.

[0030] Specifically, internal planning is performed for each acquisition board's control module. As the core component for executing acquisition tasks, the acquisition board's control module requires a reasonable logical layout to host the subsequent microcontroller logic. At this point, the control module's logical space is segmented based on factors such as the complexity of the acquisition task, the number of acquisition channels, and data processing requirements. Unused logic areas within the control module are divided into multiple independent, blank logic blocks. The size and functionality of these blank logic blocks are yet to be determined. They will serve as the fundamental units for the subsequent microcontroller logic deployment, providing the physical space and logical foundation for the precise mapping and orderly execution of the microcontroller logic in subsequent steps, ensuring the efficient and stable operation of the entire acquisition system.

[0031] After the blank logic blocks of each acquisition board's control module are partitioned, they are mapped to the blank logic blocks within the corresponding acquisition board based on the defined microcontroller logic and deployed accordingly. Each acquisition board has its own microcontroller logic, tailored to its functional role and division of labor within the overall acquisition system. This microcontroller logic is assigned to the corresponding blank logic blocks, ensuring that each logic block performs its specific control tasks. Furthermore, to ensure that acquisition operations align with actual scenario requirements, logical time constraints are imposed on the blank logic blocks based on the scenario acquisition cycle. The scenario acquisition cycle specifies the time interval and cadence for data acquisition, and the microcontroller logic in the blank logic blocks is only active within a specific acquisition cycle. At the beginning of a collection cycle, the corresponding logic block is activated and controls the acquisition board according to the pre-set logic to complete data acquisition and processing operations. At the end of the collection cycle, the logic block automatically deactivates and ceases operation until the next collection cycle. This logical time constraint ensures the orderly operation of the acquisition system, improving acquisition efficiency and the accuracy and validity of data.

[0032] In one possible implementation, step S200 further includes:

[0033] Step S210: Determine a plurality of collected analog quantities according to the collection scenario.

[0034] Step S220: traverse the plurality of collected analog quantities, and determine the sampling frequency and data encapsulation method based on the characteristics of the analog quantities.

[0035] Step S230: Determine single-thread logic based on the sampling frequency and the data encapsulation method.

[0036] Specifically, a comprehensive analysis of the acquisition scenario is conducted to clarify the physical environment, industrial processes, or experimental requirements involved in the scenario. For example, if the acquisition scenario is a chemical production process, parameters such as temperature, pressure, flow, and liquid level in the chemical reaction need to be considered; if it is a power system monitoring scenario, indicators such as voltage, current, and power factor should be paid attention to. By deeply understanding the characteristics and requirements of the scenario, combined with the acquisition goals and functions of the system, various analog quantities related to the scenario are identified. Then, based on the importance of the analog quantity to the scene description, the collectability, and the processing capabilities of the system, multiple representative and critical acquisition analog quantities are selected. These analog quantities will serve as the basic data for subsequent acquisition architecture decisions and acquisition logic decisions, ensuring that the system can accurately and effectively obtain information related to the scenario.

[0037] After determining multiple analog quantities to be collected, a traversal operation is performed on these quantities. A detailed analysis is performed on the characteristics of each analog quantity, such as its rate of change, fluctuation range, and data accuracy requirements. For rapidly changing analog quantities, a higher sampling frequency is required to accurately capture their changes. For slowly changing analog quantities, a lower sampling frequency can meet collection requirements while also conserving system resources. The data encapsulation method is determined by comprehensively considering the analog quantity's data type, transmission bandwidth, and subsequent processing requirements. For analog quantities with small data volumes and simple structures, a simpler data encapsulation method is used. For analog quantities with large data volumes and complex structures, a more efficient and reasonable encapsulation format is required to ensure data integrity and efficiency during transmission and facilitate subsequent data processing and analysis. By considering the characteristics of each analog quantity, the most appropriate sampling frequency and data encapsulation method are determined for each, providing an accurate basis for subsequent collection operations.

[0038] After determining the sampling frequency and data encapsulation method for each acquired analog quantity, the single-threaded logic is determined based on this. This single-threaded logic dictates that within a single thread, acquisition operations proceed in an orderly manner according to the established sampling frequency. For each acquired analog quantity, the thread triggers acquisition actions punctually based on its corresponding sampling frequency, acquiring analog data from the corresponding acquisition channel. Upon acquiring the data, the thread immediately processes it using the previously determined data encapsulation method, converting it into a format suitable for transmission and storage. Throughout this process, the single-threaded logic ensures that the acquisition and encapsulation operations for each acquired analog quantity do not interfere with each other and are completed sequentially, ensuring accurate and consistent data acquisition. Furthermore, this logic monitors the acquisition and encapsulation processes and, if any anomalies occur, implements appropriate error handling mechanisms, thereby laying a stable and reliable foundation for subsequent multi-threaded collaborative acquisition and the coordinated acquisition between the mainboard and acquisition board.

[0039] In one possible implementation, step S220 further includes:

[0040] Step S221: by setting a synchronous data threshold, setting an error frequency acquisition logic based on the sampling frequency for the multiple acquired analog quantities.

[0041] Step S222: In combination with the staggered frequency acquisition logic, perform alternating deployment of synchronous acquisition and staggered frequency acquisition for the scene period.

[0042] Specifically, after a multi-board analog acquisition system identifies multiple analog quantities to be collected based on the acquisition scenario and specifies the sampling frequency and data encapsulation method for each, it sets a synchronization data threshold to optimize the acquisition process and improve system efficiency and stability. This threshold is then used to implement sampling frequency-staggered acquisition logic for each of these quantities. Based on the characteristics of each analog quantity, such as its rate of change and fluctuation range, the sampling frequency is adaptively configured to ensure effective acquisition of key information from each analog quantity. Furthermore, the system's data processing capability and storage capacity are fully considered during a single operation, and staggered acquisition is performed for multiple analog quantities using the set synchronization data threshold. For example, if there are multiple acquisition channels with the same analog sampling frequency, but the total amount of data collected simultaneously is too large, this can impact the overall consistency and stability of the acquisition system. In this case, the initial sampling frequencies of these analog quantities are staggered. Due to the different initial sampling times, the sampling times of each analog quantity in subsequent polling processes will be out of sync, resulting in staggered acquisition. This staggered acquisition logic ensures that the amount of data acquired simultaneously at each time point is within a pre-set upper and lower limit. The amount of data is neither too much to cause the system to experience problems such as jamming and data loss due to excessive processing burden, nor too little to cause idle and wasted system resources, so that the acquisition system can run efficiently and stably.

[0043] After setting up the staggered frequency acquisition logic based on the synchronization data threshold, to meet the needs of coupled analysis of multiple analog quantities at the same timestamp and ensure stable operation of the acquisition system, the established staggered frequency acquisition logic is combined to implement alternating synchronous and staggered frequency acquisition based on the scenario cycle. Because coupled analysis of multiple analog quantities at the same timestamp is required, staggered frequency acquisition cannot be used exclusively. Instead, staggered and synchronous (synchronous) acquisition should be performed alternately. This alternation is controlled according to a preset frequency. For example, synchronous acquisition is performed after a certain number of staggered frequency acquisitions. During the synchronous acquisition phase, multiple analog quantities are collected at the same time, generating a large amount of data. However, cache nodes can serve as a data buffer. They temporarily store this large amount of data, preventing the system from being overloaded by the sudden influx of data and potentially crashing the system. During the staggered frequency acquisition phase, each analog quantity collects data at different times according to the staggered frequency acquisition logic. This balances the system's data processing load and prevents excessive data volume at any given moment. By alternately deploying synchronous acquisition and staggered frequency acquisition, we can ensure the data integrity and time consistency required for coupled analysis of multiple analog quantities, and ensure the stability and reliability of the acquisition system when processing large amounts of data.

[0044] In one possible implementation, step S400 further includes:

[0045] Step S410: introducing a cache node, wherein the cache node is pre-deployed at the serial port interface of each acquisition board.

[0046] Step S420: temporarily storing the analog data collected by the multi-thread in the acquisition board in the cache node, encapsulating the analog data in the cache node and importing it into the storage area.

[0047] Specifically, in order to optimize the efficiency of data transmission and processing, a key component, cache nodes, is introduced. These cache nodes are deployed in front of the serial port interface of each acquisition board. The reason for choosing to deploy the cache node in front of the serial port interface is that the serial port interface is an important channel for the acquisition board to exchange data with other devices. Setting the cache node here can receive and temporarily store the data as soon as it is output from the acquisition board. When the acquisition board quickly collects a large amount of analog data, the cache node can be used as a temporary data storage area to avoid data loss due to lack of time for processing. At the same time, it also provides convenient location conditions for subsequent data packaging and processing in the cache node and transmission to the storage area, effectively improving the data processing performance and stability of the entire acquisition system.

[0048] After the acquisition board efficiently collects analog data through multi-threading, multiple threads on the board work in parallel, rapidly collecting large amounts of analog data. This data is immediately and temporarily stored in a cache node pre-deployed on the acquisition board's serial port. The cache node receives and temporarily stores this data, allowing for subsequent processing. Within the cache node, a series of key encapsulation operations are performed on the analog data. First, the encryption level for sensitive portions is determined based on the data's sensitivity, with a higher encryption level set for data containing important information to ensure data security. Then, the appropriate data encapsulation method is matched based on the analog data's characteristics, such as data type and transmission requirements. Combining these two methods, the analog data is encrypted and encapsulated, ensuring data integrity and confidentiality during transmission and storage. After encapsulation, the processed data is orderly imported into a storage area, where it will be stored long-term for subsequent in-depth data analysis and processing, as well as for providing data support for various applications. This seamless process ensures efficient and reliable data processing.

[0049] In one possible implementation, step S420 further includes:

[0050] Step S421: Determine the encryption level of the sensitive portion of the analog data based on the data sensitivity.

[0051] Step S422: matching the data encapsulation method according to the analog quantity characteristics, and performing encryption encapsulation in combination with the encryption level to obtain single-sample scene simulation data.

[0052] Specifically, after the analog data collected by the acquisition board's multi-threaded process is temporarily stored in a cache node, data security is considered and the encryption level of the sensitive portions of the analog data is determined based on the data's sensitivity. First, the analog data is thoroughly analyzed to identify any sensitive information it contains. This information may include production data involving commercial secrets, user information concerning personal privacy, or parameters critical to system security. Next, these sensitive portions are assigned different encryption levels based on factors such as the importance of the sensitive information, the potential impact of a leak, and the usage scenario. Sensitive data whose leakage could cause serious consequences, such as significant economic losses, endangering life safety, or disrupting system stability, is assigned a higher encryption level and protected by a complex and high-strength encryption algorithm. Data with lower sensitivity and a smaller impact if leaked is assigned a lower encryption level and uses simpler encryption methods. This meticulous classification and determination of encryption levels ensures data security while rationally allocating encryption resources, improving data processing efficiency and overall system performance.

[0053] The appropriate data encapsulation method is matched based on the characteristics of the analog quantity. Combined with the determined encryption level, the data is encrypted and encapsulated, ultimately generating single-sample scenario simulation data. The system analyzes various characteristics of the analog quantity, such as data type, rate of change, and data volume. If the analog data is continuous time series data with a rapid rate of change, an encapsulation method that efficiently handles dynamic data is selected. If the data volume is large, an encapsulation format with a high compression ratio is prioritized to reduce storage space and transmission bandwidth. After selecting the appropriate data encapsulation method, the data is encrypted and encapsulated based on the previously determined encryption level. For data with higher encryption levels, a more complex and secure encryption algorithm is used to ensure data security during transmission and storage. For data with lower encryption levels, a simpler encryption method is used to ensure a certain level of security while improving processing efficiency. After encryption and encapsulation, the data becomes single-sample scenario simulation data and can be used for subsequent analysis, storage, and transmission, providing reliable data support for the entire analog acquisition system.

[0054] In one possible implementation, step S200 further includes:

[0055] Step S240: For each acquisition board, the acquisition channel is redundantly configured and divided into an operating acquisition channel and a backup acquisition channel. The operating acquisition channel is a classification for microcontroller logic deployment and acquisition drive. If there is an abnormality in the operating acquisition channel, the microcontroller logic built into the control module is transferred to the backup acquisition channel for acquisition drive takeover processing.

[0056] Specifically, each acquisition board implements redundant configuration for its acquisition channels, dividing them into active and standby acquisition channels. Active acquisition channels are dedicated to deploying microcontroller logic and executing acquisition drivers, and they perform the actual data acquisition task. During normal system operation, active acquisition channels perform data acquisition based on the pre-set microcontroller logic and acquisition drivers. However, due to hardware failures, environmental interference, and other factors, the active acquisition channels may experience anomalies, such as data acquisition errors or communication interruptions. Upon detecting an anomaly in an active acquisition channel, the system rapidly responds by transferring the microcontroller logic within the control module from the abnormal active acquisition channel to the standby acquisition channel. The standby acquisition channel remains in standby mode. Upon receiving the microcontroller logic transfer instruction, it immediately initiates the acquisition driver takeover process and continues to complete data acquisition tasks, ensuring the continuity and stability of acquisition operations. This redundant configuration and takeover mechanism ensures that even if some active acquisition channels experience problems, the entire acquisition system can continue to operate normally, significantly improving the system's fault tolerance and reliability, and providing reliable data support for subsequent data analysis and processing.

[0057] In one possible implementation, step S200 further includes:

[0058] Step S250: Determine a first data deviation according to channel hardware characteristics.

[0059] Step S260: determining a second characteristic drift based on the channel characteristic according to the accumulated running time and the environmental change.

[0060] Step S270: performing acquisition management according to the first data deviation and the second characteristic drift, which includes acquisition dynamic calibration and acquisition board alternating acquisition.

[0061] Specifically, after completing the configuration of the acquisition channel, to ensure the accuracy of the collected data, the first data deviation is determined based on the channel hardware characteristics. Because the channel hardware itself has characteristics such as gain and drift, these characteristics inevitably lead to deviations in the collected data, necessitating subsequent micro-calibration of this data. Furthermore, over long periods of continuous operation, the hardware's performance gradually changes. Furthermore, changes in environmental factors such as temperature, humidity, and electromagnetic interference can also cause channel characteristics to shift. To address these situations, dynamic deviation correction is performed regularly. By monitoring and analyzing the channel hardware characteristics, the magnitude and pattern of the first data deviation can be precisely determined, providing a reliable basis for subsequent data micro-calibration and dynamic deviation correction, ensuring that the acquisition system can continuously and stably acquire accurate data.

[0062] An algorithm based on time series analysis and weighted environmental parameters is used to determine the drift of the secondary characteristic. First, a multidimensional data model is constructed, using parameters such as the acquisition channel's operating time, ambient temperature, humidity, and electromagnetic interference intensity as input variables. Operating time is accumulated in hours and converted into time series data. Environmental parameters are collected in real time by sensors and normalized. A sliding window algorithm is used to partition the collected data into fixed time intervals (e.g., every hour). Within each time window, a linear regression algorithm is used with operating time as the independent variable and channel characteristic parameters (such as the mean and variance of the acquired data) as the dependent variables. A regression line is fitted. The slope of this line represents the impact of operating time on channel characteristics. Principal component analysis (PCA) is also used based on historical data to determine the weight coefficients for the impact of environmental parameters on channel characteristics. The impact of operating time is combined with the weighted impact of environmental parameters to calculate the change in channel characteristics within each time window. By comparing the changes in adjacent time windows, the Kalman filter algorithm is used to smooth the data and eliminate noise interference, and finally a second characteristic drift curve based on the channel characteristics is obtained, so as to accurately grasp the drift trend of the channel characteristics with operating time and environmental changes.

[0063] After obtaining the first data deviation and second characteristic drift, a comprehensive acquisition management strategy is implemented to ensure stable operation of the acquisition system in complex environments. The system monitors the operating status of each acquisition board in real time. Through comprehensive analysis of the first data deviation and second characteristic drift, the system determines the extent of the acquired data's error. For data within acceptable error limits, a dynamic acquisition calibration strategy is implemented. Using the deviation and drift data, an adaptive filtering algorithm adjusts acquisition parameters in real time to compensate for raw data errors, eliminating measurement errors caused by hardware characteristics and environmental factors. When the acquisition card's operating environment is harsh (e.g., exceeding temperature limits, excessive humidity, or excessive electromagnetic interference), causing data errors to exceed thresholds, an acquisition board rotation mechanism is immediately activated. Thanks to the multi-board collaborative acquisition architecture, acquisition tasks are automatically switched from faulty or error-prone acquisition boards to backup boards. Faulty acquisition boards are also marked and reinstated into the acquisition cycle after their operating environment improves or maintenance is completed. This dynamic rotation between acquisition boards ensures continuous acquisition and data accuracy, effectively improving the system's interference immunity and fault tolerance.

[0064] In one possible implementation, step S200 further includes:

[0065] Step S280: The acquisition mode includes an automatic acquisition mode and a controlled acquisition mode, wherein in an offline state, the automatic acquisition mode has a first priority, and in an online state, the controlled acquisition mode has a first priority.

[0066] Specifically, the multi-board analog acquisition system clearly defines acquisition mode priority strategies, supporting both automatic and controlled acquisition modes to meet data acquisition needs in different scenarios. When the system is offline (disconnected from an external control terminal), automatic acquisition mode is prioritized. In this mode, the acquisition system automatically and continuously acquires data based on preset acquisition parameters and logic, without manual intervention or external commands, thus ensuring continuous data acquisition in offline environments. When the system is online and connected to an external control terminal, controlled acquisition mode takes priority. In this state, all acquisition system operations, including sampling frequency adjustment, acquisition channel selection, and data storage strategy, can be flexibly controlled by the external control terminal based on actual needs. This enables more accurate data acquisition that is more tailored to actual application scenarios, ensuring efficient and stable system operation under various network conditions.

[0067] The second embodiment is based on the same inventive concept as the multi-board analog acquisition method in the above embodiment. Figure 2As shown, the present application provides a multi-board analog acquisition system. The system and method embodiments in the present application are based on the same inventive concept. The system includes:

[0068] The multi-board deployment module 10 is used to deploy and connect multiple boards for acquisition scenarios, including planning and deployment of the main board and acquisition boards. The main board executes upper logic drive.

[0069] The scene acquisition logic determination module 20 is used to introduce the programming logic and embed it in the mainboard. By interpreting the acquisition scene, the acquisition architecture decision is made based on the acquisition board-acquisition channel-acquisition mode, and the acquisition logic decision is made based on the multi-threaded dynamic collaboration under the scene cycle. The programming logic is initialized to determine the scene acquisition logic.

[0070] The coupling relationship determination module 30 is used to decouple the scene acquisition logic to determine the micro-control logic by the self-driving control of the acquisition board, and determine the coupling relationship, wherein the micro-control logic corresponds to the acquisition board.

[0071] The scene simulation data acquisition module 40 is used to execute scene simulation data acquisition under the joint driving of the main board and the acquisition board according to the micro-control logic and the coupling relationship.

[0072] Furthermore, the system is also used to implement the following functions:

[0073] In the control module of each acquisition board, blank logic blocks are divided; and for the micro-control logic, the blank logic blocks in the mapped acquisition board are deployed, wherein the blank logic blocks are subjected to logic time constraints based on the scene acquisition cycle.

[0074] Furthermore, the system is also used to implement the following functions:

[0075] According to the acquisition scenario, multiple acquisition analog quantities are determined; the multiple acquisition analog quantities are traversed to determine the sampling frequency and data encapsulation method based on the analog quantity characteristics; and based on the sampling frequency and the data encapsulation method, a single-threaded logic is determined.

[0076] Furthermore, the system is also used to implement the following functions:

[0077] By setting a synchronous data threshold, a staggered frequency acquisition logic based on the sampling frequency is set for the multiple acquired analog quantities; combined with the staggered frequency acquisition logic, an alternating deployment of synchronous acquisition and staggered frequency acquisition is performed for a scene cycle.

[0078] Furthermore, the system is also used to implement the following functions:

[0079] Introducing a cache node, wherein the cache node is pre-deployed at the serial port interface of each acquisition board;

[0080] The analog data collected by the multi-thread in the acquisition board is temporarily stored in the cache node, and the analog data is packaged and processed in the cache node and imported into the storage area.

[0081] Furthermore, the system is also used to implement the following functions:

[0082] The encryption level of the sensitive part of the analog data is determined based on the data sensitivity; the data encapsulation method is matched according to the analog characteristics, and encryption encapsulation is performed in combination with the encryption level as the scene simulation data of a single sampling.

[0083] Furthermore, the system is also used to implement the following functions:

[0084] For each acquisition board, the acquisition channel is redundantly configured and divided into an operating acquisition channel and a backup acquisition channel. The operating acquisition channel is a classification for microcontroller logic deployment and acquisition drive. If there is an abnormality in the operating acquisition channel, the microcontroller logic built into the control module is transferred to the backup acquisition channel for acquisition drive takeover processing.

[0085] Furthermore, the system is also used to implement the following functions:

[0086] According to the channel hardware characteristics, a first data deviation is determined; according to the accumulated running time and environmental changes, a second characteristic drift based on the channel characteristics is determined; according to the first data deviation and the second characteristic drift, acquisition management is performed, which includes acquisition dynamic calibration and acquisition board alternating acquisition.

[0087] Furthermore, the system is also used to implement the following functions:

[0088] The acquisition mode includes an automatic acquisition mode and a controlled acquisition mode, wherein in an offline state, the automatic acquisition mode has a first priority, and in an online state, the controlled acquisition mode has a first priority.

[0089] It should be noted that the order in which the embodiments of the present application are presented is for illustrative purposes only and does not necessarily represent the superiority or inferiority of the embodiments. Furthermore, the foregoing descriptions of specific embodiments of this specification are provided. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential sequence shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0090] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

[0091] This specification and drawings are merely illustrative of the present application and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Obviously, those skilled in the art may make various modifications and variations to this application without departing from the scope of this application. Thus, this application is intended to include such modifications and variations as fall within the scope of this application and its equivalents.

Claims

1. A multi-board analog acquisition method, characterized in that: The method comprises: For acquisition scenarios, multiple boards are deployed and connected, including the planning and deployment of the main board and acquisition board. The main board executes the upper logic driver. Introducing a programming logic device and embedding it in the mainboard, interpreting the acquisition scenario, making acquisition architecture decisions based on acquisition board, acquisition channel, and acquisition mode, and making acquisition logic decisions based on multi-threaded dynamic collaboration under the scenario cycle, initializing the programming logic device, and determining the scenario acquisition logic; Decoupling the scene acquisition logic to determine the microcontrol logic and determining the coupling relationship by using the self-driving control of the acquisition board, wherein the microcontrol logic corresponds to the acquisition board; According to the microcontroller logic and the coupling relationship, the scene simulation data acquisition is performed under the joint driving of the main board and the acquisition board; Wherein, the acquisition logic decision is made by dynamic multi-thread collaboration under the scenario cycle, and multiple acquisition analog quantities are determined according to the acquisition scenario; Traversing the plurality of collected analog quantities, and determining a sampling frequency and a data encapsulation method based on the characteristics of the analog quantities; Determining single-thread logic based on the sampling frequency and the data encapsulation method; Among them, the collection logic decision-making includes: For each acquisition board, redundant acquisition channels are configured, dividing them into operating acquisition channels and backup acquisition channels. The operating acquisition channels are used for microcontroller logic deployment and acquisition drive. If an operating acquisition channel fails, the microcontroller logic built into the control module is transferred to the backup acquisition channel for acquisition drive takeover. Among them, the collection logic decision-making includes: determining a first data deviation according to channel hardware characteristics; Determine the second characteristic drift based on the channel characteristics according to the accumulated running time and the environmental changes; According to the first data deviation and the second characteristic drift, acquisition management is performed, including acquisition dynamic calibration and acquisition board alternating acquisition.

2. The multi-board analog acquisition method according to claim 1, wherein: After decoupling the scene acquisition logic to determine the micro-control logic, the following steps are included: In the control module of each acquisition board, split the blank logic blocks; With respect to the micro-control logic, the blank logic blocks in the mapped acquisition board are deployed, wherein the blank logic blocks are subjected to logic time constraints based on the scene acquisition cycle.

3. The multi-board analog acquisition method according to claim 1, wherein: By setting a synchronization data threshold, setting a frequency error acquisition logic based on the sampling frequency for the multiple acquired analog quantities; Combined with the staggered frequency acquisition logic, synchronous acquisition and staggered frequency acquisition are alternately deployed for the scenario period.

4. The multi-board analog acquisition method according to claim 1, wherein: Execute scene simulation data acquisition under the joint drive of the main board and the acquisition board, including: Introducing a cache node, wherein the cache node is pre-deployed at the serial port interface of each acquisition board; The analog data collected by the multi-thread in the acquisition board is temporarily stored in the cache node, and the analog data is packaged and processed in the cache node and imported into the storage area.

5. A multi-board analog acquisition method as claimed in claim 4, characterized in that: The analog data is packaged and processed, including: Determine the encryption level of the sensitive portion of the analog data based on the data sensitivity; The data encapsulation method is matched according to the analog quantity characteristics, and encryption encapsulation is performed in combination with the encryption level to serve as single-sample scene simulation data.

6. The multi-board analog acquisition method according to claim 1, wherein: The acquisition mode includes an automatic acquisition mode and a controlled acquisition mode, wherein in an offline state, the automatic acquisition mode has a first priority, and in an online state, the controlled acquisition mode has a first priority.

7. A multi-board analog acquisition system, characterized in that: The system is used to implement the multi-board analog acquisition method according to any one of claims 1 to 6, and the system includes: The multi-board deployment module is used to deploy and connect multiple boards for acquisition scenarios, including planning and deployment of the main board and acquisition boards. The main board executes the upper logic driver. A scene acquisition logic determination module is used to introduce a programming logic device and embed it in the mainboard. By interpreting the acquisition scenario, it makes acquisition architecture decisions based on the acquisition board, acquisition channel, and acquisition mode. It also makes acquisition logic decisions based on multi-threaded dynamic collaboration under the scene cycle. It then initializes the programming logic device and determines the scene acquisition logic. A coupling relationship determination module, configured to decouple the scene acquisition logic and determine the microcontrol logic by using the self-drive control of the acquisition board, and determine the coupling relationship, wherein the microcontrol logic corresponds to the acquisition board; The scene simulation data acquisition module is used to execute scene simulation data acquisition under the joint drive of the main board and the acquisition board according to the micro-control logic and the coupling relationship.

Citation Information

Patent Citations

  • Signal simulation analysis method based on electromagnetic environment

    CN117910362A

  • Data acquisition device based on multi-board card cooperative processing

    CN210691309U