Single-channel data acquisition system, method, device and storage medium
By sending synchronous data acquisition signals to the data acquisition unit from the main controller and controlling it to send data at specific times, the problems of data conflict and congestion in the data acquisition system are solved, and the data acquisition efficiency is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA UNITED NETWORK COMM GRP CO LTD
- Filing Date
- 2023-06-09
- Publication Date
- 2026-04-17
AI Technical Summary
Data conflicts or congestion caused by multiple data acquisition units simultaneously sending data at the main controller result in low data acquisition efficiency.
The main controller sends synchronous data acquisition signals to multiple data acquisition units, instructing them to acquire and send target data at the corresponding target time points, and the main controller receives this data.
This effectively avoids data conflicts and congestion at the main controller, improving the efficiency of the data acquisition system.
Smart Images

Figure CN116627076B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data acquisition technology, and in particular to a single-channel data acquisition system, method, apparatus and storage medium. Background Technology
[0002] Because the voltage and current data of the power supply unit fluctuate in real time, accurate analysis of the power consumption of the power supply unit requires the synchronous collection of power data from each node of the power supply unit. Currently, during the synchronous collection of power data from each node of the power supply unit, the acquisition unit begins collecting data after receiving an instruction and sends the collected data to the main controller after completion. During this process, multiple acquisition units may send data to the main controller simultaneously, leading to transmission channel congestion or data conflicts with the main controller, resulting in low data acquisition efficiency. Summary of the Invention
[0003] This application provides a single-channel data acquisition system, method, apparatus, and storage medium, which solves the problem of low data acquisition efficiency caused by multiple data conflicts or congestion at the main controller, and can greatly improve the efficiency of the data acquisition system.
[0004] To achieve the above objectives, this application adopts the following technical solution:
[0005] In a first aspect, this application provides a single-channel data acquisition system, comprising: a main controller and multiple data acquisition units; the main controller and the multiple data acquisition units are respectively communicatively connected; the main controller is configured to: send synchronous data acquisition signals to the multiple data acquisition units; the synchronous data acquisition signals are used to instruct the data acquisition units to acquire target data; the data acquisition units are configured to: acquire target data respectively in response to the synchronous data acquisition signals; and send the target data to the main controller at corresponding target time points; wherein, one data acquisition unit corresponds to one target time point; the main controller is further configured to: receive the multiple target data.
[0006] In conjunction with the first aspect above, in one possible implementation, the main controller is further configured to: determine the target time point corresponding to each data acquisition unit; send a first instruction to the multiple data acquisition units respectively; the first instruction is used to instruct the data acquisition units to send the target data to the main controller at the corresponding target time point.
[0007] In conjunction with the first aspect above, in one possible implementation, the main controller is further configured to: determine a transmission time interval based on a preset period and the total number of data acquisition units; determine the transmission order of each data acquisition unit; determine a target time point based on the transmission time interval and the transmission order; and the time interval between two adjacent target time points is less than or equal to the ratio of the preset period to the total number of data acquisition units.
[0008] In conjunction with the first aspect mentioned above, in one possible implementation, the main controller further includes a computing unit; the computing unit is configured to process multiple target data.
[0009] Secondly, this application provides a single-channel data acquisition method applied to a data acquisition unit in a single-channel data acquisition system. The method includes: receiving a synchronous data acquisition signal from a main controller; the synchronous data acquisition signal instructing the data acquisition unit to acquire target data; acquiring the target data in response to the synchronous data acquisition signal; and sending the target data to the main controller at the target time point corresponding to the data acquisition unit.
[0010] In conjunction with the second aspect above, in one possible implementation, the method further includes: receiving a first instruction; and determining the corresponding target time point based on the first instruction.
[0011] Thirdly, this application provides a single-channel data acquisition method applied to the main controller of a single-channel data acquisition system. The method includes: sending synchronous data acquisition signals to multiple data acquisition units; the synchronous data acquisition signals are used to instruct the data acquisition units to acquire target data; and receiving multiple target data.
[0012] In conjunction with the third aspect above, in one possible implementation, the method further includes: determining a target time point corresponding to each data acquisition unit; sending a first instruction to the multiple data acquisition units respectively; the first instruction is used to instruct the data acquisition units to send the target data to the main controller at the corresponding target time point.
[0013] In conjunction with the third aspect mentioned above, in one possible implementation, the method further includes: determining a transmission time interval based on a preset period and the total number of data acquisition units; determining the transmission order of each data acquisition unit; determining a target time point based on the transmission time interval and the transmission order; and the time interval between two adjacent target time points being less than or equal to the ratio of the preset period to the total number of data acquisition units.
[0014] In conjunction with the third aspect mentioned above, in one possible implementation, the method further includes: processing multiple target data.
[0015] Fourthly, this application provides an electronic device, which includes: a processing unit and a communication unit; the communication unit is configured to receive a synchronous data acquisition signal from a main controller; the synchronous data acquisition signal is configured to instruct the data acquisition unit to acquire target data; the processing unit is configured to acquire the target data in response to the synchronous data acquisition signal; the processing unit is further configured to instruct the communication unit to send the target data to the main controller at a target time point corresponding to the data acquisition unit.
[0016] In conjunction with the fourth aspect above, in one possible implementation, the communication unit is further configured to receive the first instruction; the processing unit is further configured to determine the corresponding target time point based on the first instruction.
[0017] Fifthly, this application provides an electronic device comprising: a communication unit; the communication unit being configured to send a synchronous data acquisition signal to a plurality of data acquisition units; the synchronous data acquisition signal being configured to instruct the data acquisition units to acquire target data; and the communication unit being configured to receive a plurality of target data.
[0018] In conjunction with the fifth aspect above, in one possible implementation, the device further includes: a processing unit; the processing unit is configured to determine the target time point corresponding to each data acquisition unit; the processing unit is further configured to instruct the communication unit to send a first instruction to the multiple data acquisition units respectively; the first instruction is configured to instruct the data acquisition units to send target data to the main controller at the corresponding target time point.
[0019] In conjunction with the fifth aspect above, in one possible implementation, the processing unit is specifically used for: determining a transmission time interval based on a preset period and the total number of data acquisition units; determining the transmission order of each data acquisition unit; determining a target time point based on the transmission time interval and the transmission order; and ensuring that the time interval between two adjacent target time points is less than or equal to the ratio of the preset period to the total number of data acquisition units.
[0020] In conjunction with the fifth aspect above, in one possible implementation, the processing unit is further configured to: process multiple target data.
[0021] In a sixth aspect, this application provides an electronic device comprising: a processor and a communication interface; the communication interface and the processor are coupled, the processor being configured to run computer programs or instructions to implement the single-channel data acquisition method as described in the second aspect and any possible implementation thereof.
[0022] In a seventh aspect, this application provides an electronic device comprising: a processor and a communication interface; the communication interface and the processor are coupled, the processor being configured to execute computer programs or instructions to implement the single-channel data acquisition method described in the third aspect and any possible implementation thereof.
[0023] Eighthly, this application provides a computer-readable storage medium storing instructions that, when executed on a terminal, cause the terminal to perform a single-channel data acquisition method as described in the second aspect or any possible implementation thereof.
[0024] Ninthly, this application provides a computer-readable storage medium storing instructions that, when executed on a terminal, cause the terminal to perform a single-channel data acquisition method as described in the third aspect and any possible implementation thereof.
[0025] In a tenth aspect, this application provides a computer program product containing instructions that, when run on a single-channel data acquisition device, cause the single-channel data acquisition device to perform the single-channel data acquisition method as described in the second aspect and any possible implementation thereof.
[0026] In one aspect, this application provides a computer program product containing instructions that, when run on a single-channel data acquisition device, cause the single-channel data acquisition device to perform the single-channel data acquisition method as described in the third aspect and any possible implementation thereof.
[0027] In a twelfth aspect, this application provides a chip including a processor and a communication interface coupled to the processor. The processor is used to run computer programs or instructions to implement the single-channel data acquisition method described in the second aspect and any possible implementation thereof.
[0028] In a thirteenth aspect, this application provides a chip including a processor and a communication interface coupled to the processor. The processor is used to run computer programs or instructions to implement the single-channel data acquisition method described in the third aspect and any possible implementation thereof.
[0029] Specifically, the chip provided in this application also includes a memory for storing computer programs or instructions.
[0030] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on a computer-readable storage medium. This computer-readable storage medium may be packaged together with the processor of the device, or it may be packaged separately from the processor of the device; this application does not impose any limitation on this.
[0031] The descriptions of aspects two through thirteen in this application can be referenced to the detailed description of aspect one; and the beneficial effects described in aspects two through nine can be referenced to the analysis of the beneficial effects of aspect one, which will not be repeated here.
[0032] In this application, the name of the aforementioned single-channel data acquisition device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear under other names. As long as the function of each device or functional module is similar to that of this application, it falls within the scope of the claims of this application and its equivalents.
[0033] These or other aspects of this application will become more readily apparent in the following description.
[0034] The above solution offers at least the following advantages: Based on the above technical solution, the single-channel data acquisition system provided in this application first sends synchronous data acquisition signals to multiple data acquisition units, instructing them to acquire target data. Then, in response to the synchronous data acquisition signals, each data acquisition unit acquires the target data and sends it to the main controller at the corresponding target time point. Finally, the main controller receives the target data from the data acquisition units. Compared to current data acquisition technologies that suffer from data conflicts or congestion at the main controller, the above technical solution avoids multiple data conflicts or congestion at the main controller by controlling each data acquisition unit to send target data to the main controller at the corresponding target time point, thereby significantly improving the efficiency of the data acquisition system. Attached Figure Description
[0035] Figure 1 This is a schematic diagram illustrating a multi-channel parallel data acquisition method provided in an embodiment of this application;
[0036] Figure 2 A schematic diagram of a single-channel serial data acquisition method provided in an embodiment of this application;
[0037] Figure 3 A schematic diagram of the architecture of a single-channel data acquisition system provided in this application embodiment;
[0038] Figure 4 A data transmission schematic diagram provided for an embodiment of this application;
[0039] Figure 5 This is a schematic diagram of the architecture of another single-channel data acquisition system provided in an embodiment of this application;
[0040] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0041] Figure 7 A flowchart illustrating a single-channel data acquisition method provided in this application embodiment;
[0042] Figure 8A flowchart illustrating another single-channel data acquisition method provided in this application embodiment;
[0043] Figure 9 A flowchart illustrating another single-channel data acquisition method provided in this application embodiment;
[0044] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0045] Figure 11 This is a schematic diagram of the structure of another electronic device provided in an embodiment of this application. Detailed Implementation
[0046] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0047] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0048] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.
[0049] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0050] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0051] In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0052] Because the voltage and current data of the power supply unit fluctuate in real time, it is extremely important to synchronously collect the power data of each node of the power supply unit when it is necessary to accurately analyze the energy consumption of the power supply unit.
[0053] The relevant technologies for data acquisition include: Method 1, acquiring data through multi-channel parallel data acquisition; and Method 2, acquiring data through single-channel serial data acquisition. The following sections will provide detailed explanations of Methods 1-2 respectively.
[0054] Method 1: Data is acquired through multi-channel parallel data acquisition, specifically including: Figure 1 As shown, a data transmission channel is configured between the main controller and each data acquisition unit. The main controller communicates with each data acquisition unit simultaneously, sending synchronous acquisition information. After receiving the synchronization pulse command, each data acquisition unit starts data acquisition simultaneously, and then synchronously returns the data acquired by each data acquisition unit to the main controller through the transmission channel between the main controller and the main controller.
[0055] In Method 1, each data acquisition unit involves two processes: receiving a synchronization command and immediately responding by returning the acquired data to the main controller via its corresponding data acquisition channel. While Method 1 ensures data synchronization, the main controller only needs to acquire data collected at the "same time point," not simultaneously. Therefore, Method 1 suffers from wasted channel resources. Furthermore, in Method 1, each data acquisition unit immediately returns the acquired data to the main controller after collection. Consequently, data acquisition via Method 1 can lead to data conflicts or congestion at the main controller, resulting in low data acquisition efficiency.
[0056] In addition to method 1 mentioned above, related technologies also propose method 2, which involves acquiring data through a single-channel serial data acquisition method.
[0057] Method 2: Data is acquired via a single-channel serial data acquisition method, specifically including: the main controller connects to multiple data acquisition units through a single data transmission channel; such as... Figure 2 As shown, based on the first synchronization pulse signal, each data acquisition unit initiates a data acquisition command. Then, based on subsequent synchronization pulse signals, each data acquisition unit begins to return the acquired data. The main controller parses the data from each data acquisition unit according to the specific order of the synchronization signals.
[0058] Method 2 obtains synchronization information from all data acquisition units through a single data channel, solving the channel resource waste problem in Method 1 and saving data channels. However, in Method 2, each data acquisition unit immediately returns the acquired data to the main controller after acquisition. Therefore, data acquisition via Method 2 still suffers from data conflicts or congestion at the main controller, resulting in low data acquisition efficiency.
[0059] Therefore, the single-channel data acquisition system provided in this application first sends synchronous data acquisition signals to multiple data acquisition units, instructing them to acquire target data. Then, in response to the synchronous data acquisition signals, each data acquisition unit acquires the target data and sends it to the main controller at the corresponding target time point. Finally, the main controller receives the target data from the data acquisition units. Compared to current data acquisition technologies that suffer from data conflicts or congestion at the main controller, the above solution avoids multiple data conflicts or congestion at the main controller by controlling each data acquisition unit to send target data to the main controller at the corresponding target time point, thereby significantly improving the efficiency of the data acquisition system.
[0060] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0061] Figure 3 This is an architecture diagram of a single-channel data acquisition system 30 provided in an embodiment of this application. Figure 3 As shown, the single-channel data acquisition system 30 includes a main controller 301 and a data acquisition unit 302.
[0062] The data acquisition unit 302 can be one or more.
[0063] The main controller 301 and the data acquisition unit 302 are connected via a communication link. This communication link can be a wired communication link or a wireless communication link, and this application does not limit it in this way.
[0064] The main controller 301 is configured to send synchronous data acquisition signals to multiple data acquisition units 302. These synchronous data acquisition signals instruct the data acquisition units 302 to acquire target data.
[0065] In one possible implementation, the main controller 301 sends a synchronization pulse signal to multiple data acquisition units 302 via a serial digital interface, instructing the multiple data acquisition units 302 to acquire target data respectively.
[0066] The data acquisition unit 302 is configured to: acquire target data in response to the synchronous data acquisition signal; and send the target data to the main controller 301 at the corresponding target time point.
[0067] One data acquisition unit 302 corresponds to one target time point.
[0068] One possible implementation is that, upon receiving a synchronization pulse signal, multiple data acquisition units 302 simultaneously acquire target data in response to the synchronization pulse signal.
[0069] Optionally, the synchronization error of the data acquisition unit 302 in acquiring the target data is less than or equal to a preset threshold.
[0070] For example, the synchronization error of the data acquisition unit 302 in acquiring the target data is less than or equal to 10 microseconds.
[0071] One possible implementation is that after multiple data acquisition units 302 acquire the target data, they send the target data to the main controller 301 sequentially through a single data transmission channel according to the corresponding target time point.
[0072] For example, such as Figure 4 As shown, taking multiple data acquisition units, including data acquisition unit A, data acquisition unit B, and data acquisition unit C, as an example, in the target data transmission channel, data acquisition unit A sends target data A to the main controller 301 at 00:00:01, data acquisition unit B sends target data B to the main controller 301 at 00:00:02, and data acquisition unit C sends target data C to the main controller 301 at 00:00:03.
[0073] The main controller 301 is also configured to receive the plurality of target data.
[0074] For example, the main controller 301 receives target data A from data acquisition unit A, target data B from data acquisition unit B, and target data C from data acquisition unit C.
[0075] Based on the above technical solution, the single-channel data acquisition system provided in this application first sends a synchronous data acquisition signal to multiple data acquisition units 302, instructing the data acquisition units 302 to acquire target data. Then, in response to the synchronous data acquisition signal, each data acquisition unit 302 acquires the target data and sends it to the main controller 301 at the corresponding target time point. Finally, the main controller 301 receives the target data from the data acquisition units 302. Compared to current data acquisition technologies that suffer from data conflicts or congestion at the main controller, the above technical solution avoids multiple data conflicts or congestion at the main controller 301 by controlling each data acquisition unit 302 to send target data to the main controller 301 at the corresponding target time point, thereby greatly improving the efficiency of the data acquisition system.
[0076] The following describes in detail the process by which the main controller 301 sends the target data to each data acquisition unit 302 at the target time point.
[0077] The main controller 301 is also configured to: determine the target time point corresponding to each data acquisition unit 302; and send a first instruction to the multiple data acquisition units respectively.
[0078] The first instruction is used to instruct the data acquisition unit 302 to send target data to the main controller 301 at the corresponding target time point.
[0079] In one possible implementation, the main controller 301 sends the corresponding target time point and a first instruction to each data acquisition unit 302 through a serial digital interface, instructing the multiple data acquisition units 302 to send target data to the main controller 301 at the corresponding target time point.
[0080] For example, consider multiple data acquisition units, namely data acquisition unit A, data acquisition unit B, and data acquisition unit C, with target time points of 00:00:01, 00:00:02, and 00:00:03, respectively. The main controller 301 sends a first instruction to data acquisition unit A via a serial digital interface, instructing data acquisition unit A to send target data A to the main controller 301 at the corresponding target time point 00:00:01. The main controller 301 also sends a first instruction to data acquisition unit B via the serial digital interface, instructing data acquisition unit B to send target data B to the main controller 301 at the corresponding target time point 00:00:02. Finally, the main controller 301 sends a first instruction to data acquisition unit C via the serial digital interface, instructing data acquisition unit C to send target data C to the main controller 301 at the corresponding target time point 00:00:03.
[0081] The data acquisition unit 302 is configured to: receive a first instruction and determine the corresponding target time point based on the first instruction.
[0082] For example, data acquisition unit A receives a first instruction from the main controller 301 and determines 00:00:01 as the corresponding target time point. Data acquisition unit B receives a first instruction from the main controller 301 and determines 00:00:02 as the corresponding target time point. Data acquisition unit C receives a first instruction from the main controller 301 and determines 00:00:03 as the corresponding target time point.
[0083] Based on the above technical solution, the main controller 301 determines the target time point corresponding to each data acquisition unit and sends a first instruction to each of the multiple data acquisition units 302. Since the first instruction instructs the data acquisition units 302 to send target data to the main controller 301 at the corresponding target time point, in this technical solution, the main controller 301 controls the time when multiple target data arrive at the main controller 301 by controlling the time when the data acquisition units 302 send the target data to the main controller 301. This avoids multiple data conflicts or congestion at the main controller 301, thereby greatly improving the efficiency of the data acquisition system.
[0084] The following describes in detail the process by which the main controller 301 determines the target time point for each data acquisition unit 302.
[0085] The main controller 301 is also configured to: determine the transmission time interval based on the preset period and the total number of data acquisition units 302; determine the transmission order of each data acquisition unit 302; determine the target time point based on the transmission time interval and the transmission order; and the time interval between two adjacent target time points is less than or equal to the ratio of the preset period to the total number of data acquisition units 302.
[0086] In one possible implementation, the main controller 301 determines the ratio of a preset period to the total number of data acquisition units 302, and determines that the time interval between the transmission of target data by multiple data acquisition units 302 is less than the ratio.
[0087] For example, taking a preset period of 4 seconds and a total number of 3 data acquisition units 302 as an example. The main controller 301 determines that the ratio of the preset period of 4 seconds to the total number of 3 data acquisition units 3 is 4 / 3. The main controller 301 selects any value from the range [0, 3 / 4], for example, 1. The main controller 301 determines 1 second as the transmission time interval for multiple data acquisition units 302 to send target data.
[0088] In one possible implementation, the main controller 301 determines the target time point of each data acquisition unit 302 based on the preset transmission order and transmission time interval of multiple data acquisition units 302.
[0089] For example, consider multiple data acquisition units, namely data acquisition unit A, data acquisition unit B, and data acquisition unit C, with a preset transmission order of data acquisition unit A, data acquisition unit B, and data acquisition unit C. Since the main controller 301 determines 1 second as the transmission time interval, it determines the target time point for data acquisition unit A as 00:00:01, the target time point for data acquisition unit B as 00:00:02, and the target time point for data acquisition unit C as 00:00:03.
[0090] Based on the above technical solution, the main controller 301 determines the transmission time interval and the transmission order of each data acquisition unit 302 according to the preset period and the total number of data acquisition units 302, and determines the target time point based on the transmission time interval and transmission order. Since the first instruction is used to instruct the data acquisition units 302 to send target data to the main controller 301 at the corresponding target time point, and the time interval between two adjacent target time points is less than or equal to the ratio of the preset period to the total number of data acquisition units 302, the main controller 301, through the above technical solution, determines that the total time for multiple data acquisition units 302 to send target data to the main controller 301 is less than the preset period, avoiding multiple data conflicts or congestion at the main controller 301, thereby greatly improving the efficiency of the data acquisition system.
[0091] As one possible embodiment of this application, such as Figure 5 As shown, the main controller 301 also includes a computing unit 3011.
[0092] The computing unit 3011 is configured to process multiple target data.
[0093] One possible implementation is that the computing unit 3011 performs calculations on multiple target data.
[0094] In another possible implementation, the computing unit 3011 is also used to calculate the target time point for each data acquisition unit 302.
[0095] Based on the above technical solution, the main controller 301 also includes a computing unit 3011. After the main controller acquires multiple target data, the main controller 301 processes the multiple target data through the computing unit 3011, which facilitates data analysis by the staff.
[0096] When implemented in hardware, the various modules of the main controller 301, data acquisition unit 302, or computing unit 3011 in the single-channel data acquisition system 30 can be integrated onto an electronic device. Specifically, for example... Figure 6 As shown, the basic hardware structure of electronic devices is introduced.
[0097] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 6 As shown, the electronic device includes at least one processor 601, a communication line 602, and at least one communication interface 604, and may also include a memory 603. The processor 601, memory 603, and communication interface 604 are connected via the communication line 602.
[0098] The processor 601 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application, such as one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).
[0099] Communication line 602 may include a path for transmitting information between the aforementioned components.
[0100] The communication interface 604 is used to communicate with other devices or communication networks. It can use any transceiver-like device, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.
[0101] The memory 603 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of including or storing desired program code having the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0102] In one possible design, the memory 603 can exist independently of the processor 601, meaning the memory 603 can be an external memory of the processor 601. In this case, the memory 603 can be connected to the processor 601 via a communication line 602 to store execution instructions or application code, and its execution is controlled by the processor 601 to implement the single-channel data acquisition method provided in the following embodiments of this application. In another possible design, the memory 603 can also be integrated with the processor 601, meaning the memory 603 can be an internal memory of the processor 601. For example, the memory 603 can be a cache, used to temporarily store some data and instruction information.
[0103] As one possible implementation, processor 601 may include one or more CPUs, for example Figure 6 CPU0 and CPU1 in the example. As another possible implementation, the electronic device may include multiple processors, such as... Figure 6 The processors 601 and 607 are included. As another possible implementation, the electronic device may also include an output device 605 and an input device 606.
[0104] It should be noted that the various embodiments of this application can be referenced or learned from each other. For example, the same or similar steps, method embodiments, system embodiments and device embodiments can be referenced from each other without limitation.
[0105] Figure 7 A flowchart illustrating a single-channel data acquisition method provided in this application embodiment, which can be applied to, for example... Figure 3 In the single-channel data acquisition system 30 shown, this method can also be applied to, for example... Figure 6In the electronic device shown. For example... Figure 7 As shown, the method includes the following steps: S701-S704.
[0106] S701, the main controller sends synchronous data acquisition signals to multiple data acquisition units. Correspondingly, the data acquisition units receive the synchronous data acquisition signals from the main controller.
[0107] Among them, the synchronous data acquisition signal is used to instruct the data acquisition unit to acquire target data.
[0108] One possible implementation is that the main controller sends synchronization pulse signals to multiple data acquisition units through a serial digital interface, instructing the multiple data acquisition units to acquire target data respectively.
[0109] S702, The data acquisition unit responds to the synchronous data acquisition signal and acquires the target data.
[0110] One possible implementation is that, upon receiving a synchronization pulse signal, the data acquisition unit acquires target data in response to the synchronization pulse signal.
[0111] S703. Send target data to the main controller at the target time point corresponding to the data acquisition unit.
[0112] One possible implementation is that after the data acquisition unit acquires the target data, it sends the target data to the main controller through a single data transmission channel according to the corresponding target time point.
[0113] For example, in the target data transmission channel, data acquisition unit A sends target data A to the main controller at 00:00:01. Data acquisition unit B sends target data B to the main controller at 00:00:02. Data acquisition unit C sends target data C to the main controller at 00:00:03.
[0114] S704, the main controller receives data from multiple targets.
[0115] For example, the main controller 301 receives target data A from data acquisition unit A, target data B from data acquisition unit B, and target data C from data acquisition unit C.
[0116] Based on the above technical solution, the main controller sends synchronous data acquisition signals to multiple data acquisition units. The data acquisition units respond to these signals and acquire target data accordingly, achieving the goal of controlling multiple data acquisition units to acquire target data at the same time point. Furthermore, each data acquisition unit sends its target data to the main controller at its corresponding target time point, and the main controller receives multiple target data sets. Compared to current data acquisition technologies that suffer from data conflicts or congestion at the main controller, this technical solution avoids such problems by controlling each data acquisition unit to send its target data to the main controller at its corresponding target time point, thereby significantly improving the efficiency of the data acquisition system.
[0117] As one possible embodiment of this application, combined with Figure 7 ,like Figure 8 As shown, prior to S703 above, the process of determining the target time point for the data acquisition unit to send target data can also be implemented through the following S801-S803.
[0118] S801, the main controller determines the target time point corresponding to each data acquisition unit.
[0119] In one possible implementation, the main controller 301 sends the corresponding target time point to each data acquisition unit 302 via a serial digital interface.
[0120] For example, consider multiple data acquisition units, namely data acquisition unit A, data acquisition unit B, and data acquisition unit C, with target time points of 1s, 2s, and 3s respectively. The main controller 301 sends the target time point 1s to data acquisition unit A via a serial digital interface. The main controller 301 sends the target time point 2s to data acquisition unit B via a serial digital interface. The main controller 301 sends the target time point 3s to data acquisition unit C via a serial digital interface.
[0121] S802 and the main controller send first instructions to multiple data acquisition units respectively. Correspondingly, the data acquisition units receive the first instructions.
[0122] The first instruction is used to instruct the data acquisition unit to send target data to the main controller at the corresponding target time point.
[0123] In one possible implementation, the main controller 301 sends a first instruction to each data acquisition unit 302 via a serial digital interface, instructing the multiple data acquisition units 302 to send target data to the main controller 301 at the corresponding target time point.
[0124] For example, consider multiple data acquisition units, namely data acquisition unit A, data acquisition unit B, and data acquisition unit C, with target time points of 1 second, 2 seconds, and 3 seconds, respectively. The main controller 301 sends a first instruction to data acquisition unit A via a serial digital interface, instructing data acquisition unit A to send target data A to the main controller 301 at the corresponding target time point 00:00:01. The main controller 301 sends a first instruction to data acquisition unit B via the serial digital interface, instructing data acquisition unit B to send target data B to the main controller 301 at the corresponding target time point 00:00:02. The main controller 301 sends a first instruction to data acquisition unit C via the serial digital interface, instructing data acquisition unit C to send target data C to the main controller 301 at the corresponding target time point 00:00:03.
[0125] For example, data acquisition unit A receives a first instruction from the main controller 301. Data acquisition unit B receives a first instruction from the main controller 301. Data acquisition unit C receives a first instruction from the main controller 301.
[0126] S803, the data acquisition unit determines the corresponding target time point based on the first instruction.
[0127] For example, data acquisition unit A determines 00:00:01 as the corresponding target time point. Data acquisition unit B determines 00:00:02 as the corresponding target time point. Data acquisition unit C determines 00:00:03 as the corresponding target time point.
[0128] Based on the above technical solution, the main controller determines the target time point corresponding to each data acquisition unit and sends a first instruction to each of the multiple data acquisition units. The data acquisition units receive the first instruction and, based on it, determine their corresponding target time points. Since the first instruction instructs the data acquisition units to send target data to the main controller at the corresponding target time point, in this technical solution, the main controller controls the timing of multiple target data points arriving at the main controller by controlling the time when the data acquisition units send target data to the main controller. This avoids data conflicts or congestion at the main controller, thereby greatly improving the efficiency of the data acquisition system.
[0129] As one possible embodiment of this application, combined with Figure 7 ,like Figure 8 As shown, after S704 above, the main controller can also process the target data through the following S804.
[0130] S804, the main controller processes multiple target data.
[0131] For example, after receiving multiple target data, the main controller unifies the target data into a unified format and outputs a list of target data.
[0132] For example, the main controller compares the differences in the target data and performs calculations for multiple target data.
[0133] Based on the above technical solution, after the main controller acquires multiple target data, the processing of these multiple target data facilitates data analysis by the staff.
[0134] As one possible embodiment of this application, combined with Figure 8 ,like Figure 9 As shown, the process by which the S801 main controller determines the target time point corresponding to each data acquisition unit can also be implemented through the following S901-S903.
[0135] S901. The main controller determines the transmission time interval based on the preset period and the total number of data acquisition units.
[0136] Wherein, the time interval between two adjacent target time points is less than or equal to the ratio of the preset period to the total number of data acquisition units.
[0137] One possible implementation is that the main controller determines the ratio of a preset period to the total number of data acquisition units, and determines that the time interval between multiple data acquisition units sending target data is less than the ratio.
[0138] For example, taking a preset period of 4 seconds and a total number of 3 data acquisition units 302 as an example. The main controller 301 determines that the ratio of the preset period of 4 seconds to the total number of 3 data acquisition units 302 is 4 / 3. The main controller 301 selects any value from the interval [0, 3 / 4], for example, 1. The main controller determines 1 second as the transmission time interval for multiple data acquisition units to send target data.
[0139] S902, the main controller determines the transmission sequence of each data acquisition unit.
[0140] One possible implementation is that the main controller obtains the preset transmission order of multiple data acquisition units.
[0141] Another possible implementation is that the main controller determines the sending priority of the data acquisition unit with the shortest time to acquire the target data based on the time it takes for the data acquisition unit to complete the acquisition of the target data.
[0142] For example, in response to the synchronous data acquisition signal, data acquisition unit A completes the acquisition of target data within 0.01 seconds, data acquisition unit B completes the acquisition of target data within 0.02 seconds, and data acquisition unit C completes the acquisition of target data within 0.03 seconds. Since 0.01 seconds is less than 0.02 seconds, which is less than 0.03 seconds, the main controller determines that data acquisition unit A has the first priority to send target data to the main controller, data acquisition unit B has the second priority to send target data to the main controller, and data acquisition unit C has the third priority to send target data to the main controller.
[0143] S903, the main controller determines the target time point based on the transmission time interval and transmission sequence.
[0144] One possible implementation is that the main controller determines the target time point for each data acquisition unit based on the preset transmission order and transmission time interval of multiple data acquisition units.
[0145] For example, consider multiple data acquisition units, namely data acquisition unit A, data acquisition unit B, and data acquisition unit C, with a preset transmission order of data acquisition unit A, data acquisition unit B, and data acquisition unit C. Since the main controller determines 1 second as the transmission time interval, it determines the target time point for data acquisition unit A as 00:00:01, the target time point for data acquisition unit B as 00:00:02, and the target time point for data acquisition unit C as 00:00:03.
[0146] Based on the above technical solution, the main controller determines the transmission time interval and the transmission order of each data acquisition unit according to the preset period and the total number of data acquisition units, and determines the target time point based on the transmission time interval and transmission order. Since the time interval between two adjacent target time points is less than or equal to the ratio of the preset period to the total number of data acquisition units, this technical solution ensures that the total time for multiple data acquisition units to send target data to the main controller is less than the preset period, avoiding multiple data conflicts or congestion at the main controller, thereby greatly improving the efficiency of the data acquisition system.
[0147] This application embodiment can divide the single-channel data acquisition device into functional modules or functional units according to the above method example. For example, each function can be divided into a separate functional module or functional unit, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or in software functional modules or functional units. The module or unit division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0148] like Figure 10 The diagram shown is a structural schematic of an electronic device 100 provided in an embodiment of this application. The electronic device 100 includes a processing unit 1001 and a communication unit 1002.
[0149] The communication unit 1002 is used to receive synchronous data acquisition signals from the main controller; the synchronous data acquisition signals are used to instruct the data acquisition unit to acquire target data.
[0150] The processing unit 1001 is used to acquire target data in response to the synchronous data acquisition signal.
[0151] The processing unit 1001 is also used to instruct the communication unit 1002 to send target data to the main controller at the target time point corresponding to the data acquisition unit.
[0152] The communication unit 1002 is also used to receive the first instruction.
[0153] The processing unit 1001 is also used to determine the corresponding target time point based on the first instruction.
[0154] In one possible implementation, the electronic device 100 may further include a storage unit 1003. Figure 10 (shown in dashed box) The storage unit 1003 stores a program or instruction. When the processing unit 1001 executes the program or instruction, the electronic device 100 can execute the single-channel data acquisition method described in the above method embodiment.
[0155] like Figure 11 The diagram shown is a structural schematic of an electronic device 110 provided in an embodiment of this application. The electronic device 110 includes a communication unit 1101.
[0156] The communication unit 1101 is used to send synchronous data acquisition signals to multiple data acquisition units; the synchronous data acquisition signals are used to instruct the data acquisition units to acquire target data; the communication unit 1101 is also used to receive multiple target data.
[0157] The single-channel data acquisition device 110 also includes a processing unit 1102.
[0158] The processing unit 1102 is used to determine the target time point corresponding to each data acquisition unit; the processing unit 1102 is also used to instruct the communication unit to send a first instruction to the multiple data acquisition units respectively; the first instruction is used to instruct the data acquisition unit to send target data to the main controller at the corresponding target time point.
[0159] The processing unit 1102 is specifically used for: determining a transmission time interval based on a preset period and the total number of data acquisition units; determining the transmission order of each data acquisition unit; determining a target time point based on the transmission time interval and the transmission order; and ensuring that the time interval between two adjacent target time points is less than or equal to the ratio of the preset period to the total number of data acquisition units.
[0160] The processing unit 1102 is also used to process multiple target data.
[0161] In one possible implementation, the electronic device 110 may further include a storage unit 1103. Figure 11 (shown in dashed box) The storage unit 1103 stores a program or instruction. When the processing unit 1102 executes the program or instruction, the electronic device 110 can execute the single-channel data acquisition method described in the above method embodiment.
[0162] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0163] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to execute the single-channel data acquisition method described in the above method embodiments.
[0164] This application also provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the single-channel data acquisition method in the method flow shown in the above method embodiments.
[0165] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: electrical connections having one or more wires; portable computer disks; hard disks; random access memory (RAM); read-only memory (ROM); erasable programmable read-only memory (EPROM); registers; hard disks; optical fibers; portable compact disc read-only memory (CD-ROM); optical storage devices; magnetic storage devices; or any suitable combination thereof; or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In the embodiments of this application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0166] Since the single-channel data acquisition device, computer-readable storage medium, and computer program product in the embodiments of this application can be applied to the above method, the technical effects that can be obtained can also be referred to the above method embodiments. The embodiments of this application will not be repeated here.
[0167] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0168] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0169] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0170] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A single-channel data acquisition system, characterized in that, The system includes: a main controller and multiple data acquisition units; the main controller is communicatively connected to the multiple data acquisition units respectively; The main controller is configured to: send a synchronous data acquisition signal to the plurality of data acquisition units; the synchronous data acquisition signal is used to instruct the data acquisition units to acquire target data; determine a transmission time interval according to a preset period and the total number of data acquisition units; determine the transmission order of each data acquisition unit; determine a target time point corresponding to each data acquisition unit based on the transmission time interval and the transmission order; the time interval between two adjacent target time points is less than or equal to the ratio of the preset period to the total number of data acquisition units; and send a first instruction to the plurality of data acquisition units respectively; the first instruction is used to instruct the data acquisition units to send the target data to the main controller at the corresponding target time point. The data acquisition unit is configured to: acquire the target data respectively in response to the synchronous data acquisition signal; receive the first instruction; determine the corresponding target time point based on the first instruction; and send the target data to the main controller at the corresponding target time point; wherein, one data acquisition unit corresponds to one target time point; The main controller is also configured to receive the plurality of target data.
2. The system according to claim 1, characterized in that, The main controller also includes a computing unit; The computing unit is configured to process the plurality of target data.
3. A single-channel data acquisition method, characterized in that, The method, applied to a single-channel data acquisition system, which includes multiple data acquisition units and a main controller, comprises: The main controller sends a synchronous data acquisition signal to the plurality of data acquisition units; the synchronous data acquisition signal is used to instruct the data acquisition units to acquire target data. The main controller determines the transmission time interval based on a preset period and the total number of data acquisition units; The main controller determines the transmission order of each data acquisition unit; The main controller determines the target time point corresponding to each data acquisition unit based on the transmission time interval and the transmission order; the time interval between two adjacent target time points is less than or equal to the ratio of the preset period to the total number of data acquisition units; The main controller sends a first instruction to each of the plurality of data acquisition units; the first instruction instructs the data acquisition units to send the target data to the main controller at the corresponding target time point; The data acquisition unit receives synchronous data acquisition signals from the main controller; The data acquisition unit responds to the synchronous data acquisition signal by acquiring the target data respectively; receiving the first instruction; and determining the corresponding target time point based on the first instruction. The data acquisition unit sends the target data to the main controller at the corresponding target time point; wherein, one data acquisition unit corresponds to one target time point; The main controller receives the multiple target data.
4. The method according to claim 3, characterized in that, The method further includes: The main controller processes the multiple target data.
5. An electronic device, characterized in that, include: A processor and a communication interface; the communication interface is coupled to the processor, the processor being used to run computer programs or instructions to implement the single-channel data acquisition method as described in any one of claims 3-4.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed by a computer, perform the single-channel data acquisition method as described in any one of claims 3-4.
Citation Information
Patent Citations
Single-channel synchronous information acquisition system and method based on LORA
CN111372215A