Signal sampling system, signal sampling method, and electronic device
By grouping the signal sampling circuits and sharing the analog-to-digital converter and digital filter module, the high cost problem caused by the need for an independent signal link for each measurement channel is solved, and efficient multi-channel signal acquisition and power frequency noise filtering are achieved.
Patent Information
- Application Number
- PCT/CN2023/140839
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-17
- Filing Date
- 2023-12-22
- Publication Date
- 2024-09-26
AI Technical Summary
In the existing measurement solution, each measurement channel needs to be equipped with a complete signal link, which results in high cost, cannot be miniaturized, and cannot effectively adapt to the needs of multi-channel signal synchronous measurement.
By dividing K signal sampling circuits into N groups of signal sampling modules, each group of modules includes two or more signal sampling circuits, using N switch circuits and N analog-to-digital converters, each analog-to-digital converter is connected to multiple The two signal sampling circuits correspond to each other and share a digital filter module for signal processing, which improves the utilization rate of the digital-to-analog converter and reduces hardware costs.
It achieves a significant reduction in the use of components and hardware costs for the same number of measurement channels, and effectively filters out power frequency noise through the digital filter module, improving the efficiency and miniaturization of the system.
Smart Images

Figure CN2023140839_26092024_PF_FP
Abstract
Description
Signal sampling system, signal sampling method and electronic equipment
[0001] This disclosure claims priority to Chinese patent application number 202310264738.8, filed on March 17, 2023, entitled “Signal Sampling System, Signal Sampling Method and Electronic Device”, and the entire contents of the above application are incorporated by reference into this disclosure. Technical Field
[0002] The present disclosure belongs to the field of circuit technology, and particularly relates to a signal sampling system, a signal sampling method and an electronic device. Background Art
[0003] With the rapid development of science and technology, the demand for test and measurement instruments in industries such as industry, new energy, and automotive electronics continues to increase. Existing measurement solutions are increasingly unable to adapt to the current requirements for simultaneous measurement of multiple multi-channel signals. For example, in the application of a multi-channel temperature / voltage acquisition daughter card, the multi-channel temperature / voltage acquisition daughter card can have 16 voltage / temperature measurement channels, that is, it can simultaneously sample 16 voltage signals or 16 temperature signals and display or record the collected signals using the PCI extensions for Instrumentation Express (PXIE) chassis for instrumentation systems. The temperature acquisition module needs to use thermocouples to acquire temperatures from -200°C to 2000°C and must complete the scanning of all 16 channels within 50ms. In addition, it needs to have the function of suppressing 50 / 60Hz power frequency noise and, with the 50 / 60Hz power frequency suppression function enabled, complete the scanning of all 16 channels within 300ms.
[0004] However, the related art has 16 voltage / temperature measurement channels, each of which is equipped with an independent complete signal chain and analog-to-digital converter, which is costly and cannot be miniaturized due to too many components.
[0005] Summary of the Invention
[0006] The embodiments of the present disclosure provide a signal sampling system, a signal sampling method, and an electronic device to solve the problem in related technologies that each measurement channel needs to be equipped with a complete signal link, resulting in high costs.
[0007] In a first aspect, an embodiment of the present disclosure provides a signal sampling system, comprising:
[0008] K signal sampling circuits, N switching circuits, N analog-to-digital converters and a digital filtering module; wherein,
[0009] The K signal sampling circuits are used to collect target signals, and the K signal sampling circuits are divided into N groups of signal sampling modules, wherein the number of signal sampling circuits included in each group of signal sampling modules is greater than or equal to 2;
[0010] The N switch circuits correspond one-to-one to the N groups of signal sampling modules, and each switch circuit is connected to one signal sampling circuit in a group of signal sampling modules at the same time;
[0011] The N analog-to-digital converters are respectively connected to the N switch circuits in a one-to-one correspondence, and each analog-to-digital converter is used to receive the target signal transmitted through the connected switch circuit and convert the target signal into a digital signal;
[0012] The digital filtering module is connected to the N analog-to-digital converters, and is used to receive N digital signals sent by the N analog-to-digital converters, and process the N digital signals respectively based on a digital filtering algorithm set with a target filtering frequency.
[0013] In a second aspect, an embodiment of the present disclosure provides a signal sampling method, which is applied to the signal sampling system described in the first aspect, comprising:
[0014] Divide the K signal sampling circuits into N groups of signal sampling modules, and the number of signal sampling circuits included in each group of signal sampling modules is greater than or equal to 2;
[0015] Controlling each of the N switch circuits to be connected to one of the signal sampling circuits in a group of the signal sampling modules at the same time, so that each of the switch circuits sends the target signal collected by the connected signal sampling circuit to the analog-to-digital converter connected to the switch circuit;
[0016] Converting the received target signal into a digital signal by each of the N analog-to-digital converters, and sending the digital signal to the digital filtering module;
[0017] The N digital signals are processed separately by the digital filtering module based on a digital filtering algorithm set with a target filtering frequency.
[0018] In a third aspect, an embodiment of the present disclosure provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the second aspect.
[0019] In a fourth aspect, an embodiment of the present disclosure provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the second aspect are implemented.
[0020] The signal sampling system provided by the embodiment of the present disclosure includes K signal sampling circuits, N switching circuits, N analog-to-digital converters and a digital filtering module; wherein the K signal sampling circuits are used to collect target signals, and the K signal sampling circuits are divided into N groups of signal sampling modules, wherein the number of signal sampling circuits included in each group of signal sampling modules is greater than or equal to 2; the N switching circuits correspond one-to-one to the N groups of signal sampling modules, and each switching circuit is connected to a signal sampling circuit in a group of signal sampling modules at the same time; the N analog-to-digital converters are connected one-to-one to the N switching circuits, and each analog-to-digital converter is used to receive the target signal transmitted by the switching circuit and convert the target signal into a digital signal; the digital filtering module is connected to the N analog-to-digital converters for receiving the N analog-to-digital conversion signals. The method comprises the following steps: receiving N digital signals sent by the device, and processing the N digital signals separately based on the filtering frequency of the pre-set digital filtering algorithm; in this way, in the K signal acquisition channels corresponding to the K signal sampling circuits, each group of signal sampling modules is only equipped with one switching circuit and one digital-to-analog converter, and all signal sampling circuits are equipped with one digital filtering module to complete the acquisition work of the K signal acquisition channels, which improves the utilization rate of the digital-to-analog converter. Compared with the related art in which each signal sampling circuit is equipped with an independent digital-to-analog converter, the number of components used is greatly reduced under the same number of measurement channels, and the hardware cost is reduced; in addition, the digital filtering module processes the N digital signals separately based on the digital filtering algorithm set with a target filtering frequency, thereby filtering out the power frequency interference at the filtering frequency. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] FIG1 is a schematic diagram of a module of a signal sampling system according to an embodiment of the present disclosure;
[0022] FIG2 is a schematic diagram of a module of another signal sampling system according to an embodiment of the present disclosure;
[0023] FIG3 is a flow chart of a signal sampling method according to an embodiment of the present disclosure;
[0024] FIG4 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] The following will clearly and completely describe the technical solutions in the embodiments of the present disclosure in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0026] The terms "first", "second", etc. in the specification and claims of the present disclosure are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects related to each other are in an "or" relationship.
[0027] The signal sampling system and sampling method provided by the embodiments of the present disclosure are described in detail below with reference to specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0028] FIG1 shows a signal sampling system provided by an embodiment of the present disclosure, the signal sampling system comprising:
[0029] K signal sampling circuits 11, N switch circuits 12, N analog-to-digital converters 13 and a digital filtering module 14, wherein:
[0030] The K signal sampling circuits 11 are used to collect target signals, and the K signal sampling circuits 11 are divided into N groups of signal sampling modules, and the number of signal sampling circuits included in each group of signal sampling modules is greater than or equal to 2;
[0031] The N switch circuits 12 correspond to the N groups of signal sampling modules one by one, and each switch circuit 12 is connected to one signal sampling circuit in a group of signal sampling modules at the same time;
[0032] The N analog-to-digital converters 13 are respectively connected to the N switch circuits 12 in a one-to-one correspondence, and each of the analog-to-digital converters 13 is used to receive the target signal transmitted by the switch circuit 12 and convert the target signal into a digital signal;
[0033] The digital filtering module 14 is connected to the N analog-to-digital converters 13, and is used to receive N digital signals sent by the N analog-to-digital converters 13, and process the N digital signals respectively based on a digital filtering algorithm set with a target filtering frequency.
[0034] Optionally, K signal sampling circuits are used to collect target signals, which may be voltage signals or temperature signals. Of course, it should be noted that the target signal may also be other signals that can be converted into voltage signals other than temperature signals and voltage signals, such as humidity signals, etc., and this is not specifically limited here.
[0035] In addition, specifically, the K signal sampling circuits are divided into N groups of signal sampling modules, and the number of signal sampling circuits included in each group of signal sampling modules is greater than or equal to 2. As shown in Figure 1, the signal sampling circuit in each dotted box is a group of signal sampling modules, which realizes the grouping setting of all signal sampling circuits included in the signal sampling system.
[0036] Alternatively, in one example, all signal sampling circuits included in the signal sampling system may be evenly grouped, i.e., each group of signal sampling modules may include K / N signal sampling circuits, thereby achieving even grouping of the signal sampling circuits. Of course, in another example, if the value of K / N is not an integer, the value of K / N may be rounded down or up, i.e., the number of signal sampling circuits included in each group of signal sampling modules may be the value obtained by rounding down or up K / N.
[0037] In addition, each switching circuit 12 corresponds one-to-one to each group of signal sampling modules, and each of the switching circuits 12 is connected to one of the signal sampling circuits in a group of signal sampling modules at the same time. This realizes the time-sharing transmission of the target signal collected by the signal sampling circuit in each group of signal sampling modules through the switching circuit 12, thereby realizing the transmission of the target signal collected by all signal sampling circuits through the switching circuit.
[0038] Specifically, the switch circuit may be a single-pole, N-throw switch, so that the signal sampling circuit connected to the switch circuit can be controlled by controlling the connection channel of the switch circuit. Of course, the switch circuit may also be a photorelay, so that the signal sampling circuit connected to the switch circuit can be controlled by controlling the control signal input to the photorelay.
[0039] Each analog-to-digital converter is connected to each switching circuit one-to-one. At this time, since each switching circuit is connected to a group of signal sampling modules, each analog-to-digital converter corresponds to a group of signal sampling modules. That is, each analog-to-digital converter can convert the target signals collected by at least two signal sampling circuits, avoiding the problem of a large number of components caused by each signal sampling circuit being connected to an analog-to-digital converter in the related art, effectively improving the utilization rate of the analog-to-digital converter, and greatly reducing the number of components used under the same number of measurement channels, reducing hardware costs, and realizing system miniaturization.
[0040] In addition, a digital filtering algorithm is preset in the digital filtering module, and the digital filtering algorithm can be an average filtering algorithm or a limiting filtering algorithm. In this embodiment, a target filtering frequency of the digital filtering algorithm can be set, so that the digital filtering module can process the N received digital signals separately using the digital filtering algorithm set with the target filtering frequency, thereby filtering out the noise at the target filtering frequency, thereby filtering out the power frequency noise interference at different target filtering frequencies. Regarding the detailed process of processing digital signals using the digital filtering algorithm, reference can be made to the corresponding description in the prior art, and no further description is given here.
[0041] Thus, in this embodiment, the K signal sampling circuits are divided into N groups of signal sampling modules, and the number of signal sampling circuits included in each group of signal sampling modules is greater than or equal to 2, the N switch circuits correspond one-to-one to the N groups of signal sampling modules, and each switch circuit is connected to one signal sampling circuit in a group of signal sampling modules at the same time, the N analog-to-digital converters are connected one-to-one to the N switch circuits, and each analog-to-digital converter is used to receive the target signal transmitted by the switch circuit and convert the target signal into a digital signal, the digital filtering module is connected to the N analog-to-digital converters, and is used to receive the target signal transmitted by the N analog-to-digital converters. The invention provides a method for transmitting N digital signals and processing each of the N digital signals based on a digital filtering algorithm with a target filtering frequency. In this way, in the K signal acquisition channels corresponding to the K signal sampling circuits, each group of signal sampling modules only cooperates with one switching circuit and one digital-to-analog converter, and all signal sampling circuits are configured with a single digital filtering module to complete the acquisition work of the K signal acquisition channels. This improves the utilization rate of the digital-to-analog converter. Compared with the related art in which each signal sampling circuit cooperates with an independent digital-to-analog converter, the number of components used is significantly reduced, thereby reducing hardware costs, with the same number of measurement channels. In addition, the digital filtering module processes the N digital signals separately based on a digital filtering algorithm with a target filtering frequency, thereby filtering out power frequency interference at the filtering frequency.
[0042] In addition, in one embodiment, the digital filtering module is further configured to intercept the N digital signals in segments, and process each segment of the intercepted digital signal based on a digital filtering algorithm set with a target filtering frequency.
[0043] Specifically, the digital filtering module can synchronously read the N digital signals output by N analog-to-digital converters, and segment and intercept the N digital signals according to the requirements of the target filtering frequency, and then use the digital filtering algorithm to process each segment of the intercepted data separately to filter out the power frequency noise.
[0044] In addition, in one embodiment, as shown in FIG2 , the signal sampling system further includes a power frequency noise detection module 15 and a digital filter frequency setting module 16 , wherein:
[0045] The power frequency noise detection module 15 is used to detect the noise frequency of the power system and send the noise frequency to the digital filter frequency setting module 16;
[0046] The digital filter frequency setting module 16 is connected to the digital filter module 14 and is configured to set a target filter frequency of the digital filter algorithm based on the noise frequency or a power frequency set by a user, and send the target filter frequency to the digital filter module 14. The power frequency may refer to the AC frequency of the power system, which is generally 50 Hz in China but 60 Hz in some countries.
[0047] Specifically, the power frequency noise detection module 15 can detect the noise frequency of the power system and send the noise frequency to the digital filter frequency setting module, so that the digital filter frequency setting module can set the target filter frequency according to the noise frequency; or the user can directly set the power frequency in the digital filter frequency setting module. At this time, the digital filter frequency setting module can set the target filter frequency based on the power frequency set by the user, so that the set target filter frequency is related to the noise frequency or the power frequency directly set by the user, so that when the digital signal is processed by the digital filtering algorithm set with the target filter frequency, the power frequency interference at the target filter frequency can be filtered out, thereby achieving the filtering of power frequency interference at different power frequencies.
[0048] In addition, referring to FIG2 , in one embodiment, the signal sampling system further includes a switching time setting module 17 , wherein the switching time setting module 17 is connected to the power frequency noise detection module 15 and the N switching circuits 12 respectively;
[0049] The power frequency noise detection module 15 is further configured to send the noise frequency to the switching time setting module 17;
[0050] The switching time setting module 17 is used to determine the switching frequencies of the N switching circuits 12 based on the noise frequency or the power frequency set by the user, so as to control the switching circuits 12 to switch the signal sampling circuits 11 in the corresponding signal sampling modules at the switching frequencies.
[0051] Since each switch circuit corresponds to a group of signal sampling modules, that is, each switch circuit corresponds to at least two signal sampling circuits in the signal sampling modules, and since each switch circuit is only connected to one signal sampling circuit at the same time, it is necessary to set the switching frequency of the switch circuit to control the switch circuit to switch the connection of the signal sampling circuit in the corresponding signal sampling module at the switching frequency. Specifically, the switching time setting module 17 is connected to the power frequency noise detection module 15 and the N switch circuits respectively, so that the switching time setting module 17 can receive the noise frequency sent by the power frequency noise detection module and determine the switching frequency of the N switch circuits based on the noise frequency; alternatively, the user can set the power frequency, and the switching time setting module 17 determines the switching frequency of the N switch circuits based on the power frequency set by the user, so that at the same time, only one signal acquisition circuit in each group of signal acquisition modules transmits the target signal to the subsequent module, and the target signal collected by the signal acquisition circuit in each group of signal acquisition modules is transmitted to the subsequent module in rotation at the determined switching frequency, thereby achieving time-sharing transmission of the target signal in each group of signal acquisition modules.
[0052] It should be noted that during the continuous switching of the switching circuit, a dead time of more than 2ms needs to be reserved between the conduction of two adjacent signal sampling circuits in a group of signal acquisition modules to avoid the situation where the two signal sampling circuits are turned on at the same time due to the conduction and shutdown time of the switching circuit.
[0053] In addition, assuming that the noise frequency or power frequency is f, the single effective sampling time of the signal sampling circuit controlled by the switching circuit must be greater than 1 / f seconds, so that the power frequency noise at this frequency can be suppressed after being processed with the averaging algorithm.
[0054] In addition, the switching frequency can be limited by any of the following conditions:
[0055] One condition is that the switching frequency needs to meet the requirement that the single effective sampling time of the signal sampling circuit connected to the switching circuit is greater than 0.1ms to meet the effective sampling within a single sampling; and the total time of M switch switching needs to be less than 50ms to meet the scanning speed of 50ms / full channel, where M is the number of signal sampling circuits in a group of signal sampling modules corresponding to the switching circuit.
[0056] The second condition is that the switching frequency needs to meet the requirement that the single effective sampling time of the signal sampling circuit connected to the switching circuit is greater than 20ms, so as to be able to suppress 50Hz power frequency noise after processing with the averaging algorithm; and the total time of M switching operations needs to be less than 300ms, so as to meet the scanning speed of 300ms / full channel under 50Hz power frequency filtering.
[0057] The third condition is that the switching frequency needs to meet the single effective sampling time of the signal sampling circuit connected to the switching circuit > 16.67ms, so that it can suppress 60Hz power frequency noise after processing with the averaging algorithm; and the total time of M switching switches needs to be < 300ms to meet the scanning speed of 300ms / full channel under 60Hz power frequency filtering.
[0058] In addition, in one embodiment, as shown in Figure 2, the signal sampling system also includes N signal conditioning circuits 18, and the N switching circuits 12 are respectively connected to the analog-to-digital converter 13 through one of the signal conditioning circuits 18. The signal conditioning circuit 18 is used to perform gain control on the target signal transmitted by the connected switching circuit and send the gained target signal to the connected analog-to-digital converter 13.
[0059] Specifically, N switching circuits, N signal conditioning circuits and N analog-to-digital converters are connected one-to-one, so that the target signal transmitted through the switching circuit can be transmitted to the corresponding analog-to-digital converter after being processed by the connected signal conditioning circuit.
[0060] The signal conditioning circuit includes an analog switch, a voltage-divider resistor for signal attenuation, and a differential amplifier circuit for signal amplification. Specifically, the analog switch allows the target signal to pass through the voltage-divider resistor or not, and through the differential amplifier circuit or not, thereby achieving input stage gain control to accommodate different levels of signal input. Furthermore, an instrumentation amplifier can be used to convert the differential into a single-ended signal, which then enters a controllable-gain signal amplifier circuit. This circuit comprises differential-mode and common-mode low-pass filters, an instrumentation amplifier with high input internal resistance, an 8-channel multiplexer, and a two-stage amplifier circuit. The multiplexer adjusts the gain of the controllable-gain signal amplifier circuit by switching the feedback resistors of the two-stage amplifier circuits, allowing the target signal to enter the analog-to-digital converter at a preset gain.
[0061] In addition, in one embodiment, as shown in FIG2 , the signal sampling system further includes a recording module 19 connected to the digital filtering module 14 , for restoring the processed digital signal to the target signal, and recording or displaying the target signal.
[0062] Specifically, the recording module 19 can separate and reconstruct the processed digital signal, restore it to the original target signal, send it to the processor in the PXIE chassis, and display or record it on the screen.
[0063] Thus, in this embodiment, in the K signal acquisition channels corresponding to the K signal sampling circuits, each group of signal sampling modules only cooperates with one switching circuit and one digital-to-analog converter, and all signal sampling circuits are jointly configured with a digital filtering module to complete the acquisition work of the K signal acquisition channels. This improves the utilization rate of the digital-to-analog converter. Compared with the related art in which each signal sampling circuit is equipped with an independent digital-to-analog converter, the number of components used is greatly reduced under the same number of measurement channels, reducing hardware costs. In addition, the digital filtering module processes the N digital signals separately based on a digital filtering algorithm set with a target filtering frequency, thereby filtering out power frequency interference at the filtering frequency.
[0064] FIG3 is a flowchart of the steps of the signal sampling method in an embodiment of the present disclosure. The method is applied to the signal sampling system described in the above embodiment, and includes the following steps:
[0065] Step 301: Divide K signal sampling circuits into N groups of signal sampling modules.
[0066] Specifically, the number of signal sampling circuits included in each group of the signal sampling modules is greater than or equal to 2, which realizes the grouping setting of all signal sampling circuits included in the signal sampling system.
[0067] Step 302: Control each of the N switch circuits to be connected to one of the signal sampling circuits in a group of the signal sampling modules at the same time, so that each of the switch circuits sends the target signal collected by the connected signal sampling circuit to the analog-to-digital converter connected to the switch circuit.
[0068] Specifically, each switching circuit corresponds one-to-one to each group of signal sampling modules, and each switching circuit is connected to a signal sampling circuit in a group of signal sampling modules at the same time. This realizes the time-sharing transmission of the target signal collected by the signal sampling circuit in each group of signal sampling modules through the switching circuit, thereby realizing the transmission of the target signal collected by all signal sampling circuits through the switching circuit.
[0069] In addition, when the switching circuit is connected to a signal sampling circuit in a group of the signal sampling modules, since the switching circuit is also connected to the analog-to-digital converter, the target signal collected by the signal sampling circuit can be sent to the analog-to-digital converter connected to the switching circuit.
[0070] Step 303: convert the received target signal into a digital signal through each of the N analog-to-digital converters, and send the digital signal to the digital filtering module.
[0071] Specifically, each analog-to-digital converter is connected to each switching circuit one-to-one. At this time, since each switching circuit is connected to a group of signal sampling modules, each analog-to-digital converter corresponds to a group of signal sampling modules, that is, each analog-to-digital converter can convert the target signals collected by at least two signal sampling circuits, avoiding the problem of a large number of components caused by each signal sampling circuit being connected to an analog-to-digital converter in the related art, effectively improving the utilization rate of the analog-to-digital converter, and greatly reducing the number of components used under the same number of measurement channels, reducing hardware costs, and realizing system miniaturization.
[0072] Step 304: The digital filtering module processes the N received digital signals respectively based on a digital filtering algorithm set with a target filtering frequency.
[0073] Specifically, after the analog-to-digital converter sends the converted digital signal to the digital filtering module, the digital filtering module can process the N received digital signals separately based on a digital filtering algorithm set with a target filtering frequency, thereby filtering out the power frequency noise under the target filtering frequency, thereby realizing the filtering of power frequency noise interference under different target filtering frequencies.
[0074] Furthermore, in one embodiment, controlling each of the N switch circuits to be connected to one of the signal sampling circuits in a group of the signal sampling modules at the same time includes:
[0075] The switching frequencies of the N switch circuits are determined based on the noise frequency of the power system detected by the power frequency noise detection module or the power frequency set by the user, and each switch circuit is controlled to switch and connect the signal sampling circuit in the corresponding signal sampling module at the switching frequency.
[0076] Since each switch circuit corresponds to a group of signal sampling modules, that is, each switch circuit corresponds to at least two signal sampling circuits in the signal sampling modules, and since each switch circuit is only connected to one signal sampling circuit at the same time, it is necessary to set a switching frequency for the switch circuit to control the switch circuit to switch the signal sampling circuit in the corresponding signal sampling module at the switching frequency. Specifically, in this embodiment, the switching frequencies of the N switch circuits can be determined based on the noise frequency; or, the user can set the power frequency, and the switching frequencies of the N switch circuits are determined based on the user-set power frequency, so that at the same time, only one signal acquisition circuit in each group of signal acquisition modules collects the target signal and transmits it to the subsequent module, and the target signal collected by the signal acquisition circuit in each group of signal acquisition modules is transmitted to the subsequent module in rotation at the determined switching frequency, thereby realizing time-sharing transmission of the target signal in each group of signal acquisition modules.
[0077] In addition, in one embodiment, before the digital filtering module processes the N received digital signals based on a digital filtering algorithm set with a target filtering frequency, the method further includes:
[0078] The target filtering frequency of the digital filtering algorithm is set based on the noise frequency of the power system detected by the power frequency noise detection module or the power frequency set by the user.
[0079] Specifically, the power frequency noise detection module can detect the noise frequency of the power system. In this embodiment, the target filtering frequency can be set based on the noise frequency; or the user can directly set the power frequency. In this case, the target filtering frequency can be set based on the power frequency set by the user. In this way, the set target filtering frequency is related to the noise frequency or the power frequency directly set by the user, so that when the digital signal is processed by a digital filtering algorithm set with the target filtering frequency, the power frequency interference at the target filtering frequency can be filtered out, thereby achieving the filtering of power frequency interference at different power frequencies.
[0080] Thus, this embodiment divides K signal sampling circuits into N groups of signal sampling modules, and the number of signal sampling circuits included in each group of the signal sampling modules is greater than or equal to 2; each of the N switch circuits is controlled to connect to one of the signal sampling circuits in a group of the signal sampling modules at the same time, so that each switch circuit sends the target signal collected by the connected signal sampling circuit to the analog-to-digital converter connected to the switch circuit; each of the N analog-to-digital converters converts the received target signal into a digital signal and sends the digital signal to the digital filtering module; the digital filtering module processes the N digital signals separately based on a digital filtering algorithm set with a target filtering frequency. This enables, in the K signal acquisition channels corresponding to the K signal sampling circuits, each group of the signal sampling modules only cooperates with one switch circuit and one digital-to-analog converter, and all the signal sampling circuits are configured with one digital filtering module to complete the acquisition work of the K signal acquisition channels, thereby improving the utilization rate of the digital-to-analog converter. Compared with the related art in which each signal sampling circuit is equipped with an independent digital-to-analog converter, the number of components used is greatly reduced under the same number of measurement channels, thereby reducing hardware costs. In addition, the digital filtering module processes the N digital signals separately based on a digital filtering algorithm set with a target filtering frequency, thereby filtering out the power frequency interference at the filtering frequency.
[0081] Based on the same technical concept, an embodiment of the present disclosure further provides an electronic device for executing the above-mentioned signal sampling method. FIG4 is a schematic diagram of the structure of an electronic device for implementing various embodiments of the present disclosure. The electronic device may have relatively large differences due to different configurations or performances, and may include a processor (processor) 410, a communication interface (Communications Interface) 420, a memory (memory) 430 and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 can call a computer program stored in the memory 430 and run on the processor 410 to execute the various steps of the following method:
[0082] Divide the K signal sampling circuits into N groups of signal sampling modules, and the number of signal sampling circuits included in each group of signal sampling modules is greater than or equal to 2;
[0083] Controlling each of the N switch circuits to be connected to one of the signal sampling circuits in a group of the signal sampling modules at the same time, so that each of the switch circuits sends the target signal collected by the connected signal sampling circuit to the analog-to-digital converter connected to the switch circuit;
[0084] Converting the received target signal into a digital signal by each of the N analog-to-digital converters, and sending the digital signal to the digital filtering module;
[0085] The digital filtering module processes the N received digital signals respectively based on a digital filtering algorithm set with a target filtering frequency.
[0086] In one embodiment, the controlling of each of the N switching circuits to be connected to one of the signal sampling circuits in a group of the signal sampling modules at the same time includes: determining the switching frequency of the N switching circuits based on the noise frequency of the power system detected by the power frequency noise detection module or the power frequency set by the user, and controlling each switching circuit to switch the connection to the signal sampling circuit in the corresponding signal sampling module at the switching frequency.
[0087] In one embodiment, before the digital filtering module processes the N received digital signals separately based on a digital filtering algorithm set with a target filtering frequency, the method further includes: setting the target filtering frequency of the digital filtering algorithm based on the noise frequency detected by the power frequency noise detection module or the power frequency set by the user.
[0088] The specific execution steps can refer to the various steps of the above-mentioned signal sampling method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be described here.
[0089] It should be noted that the electronic devices in the embodiments of the present disclosure include: servers, terminals, or other devices except terminals.
[0090] The above electronic device structure does not constitute a limitation of the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. to configure the display panel. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include but are not limited to a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0091] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus random access memory (DRRAM).
[0092] The processor may include one or more processing units; optionally, the processor may integrate an application processor and a modem processor, wherein the application processor primarily handles operations related to the operating system, user interface, and application programs, and the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into the processor.
[0093] The embodiment of the present disclosure further provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned signal sampling method embodiment is implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0094] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.
[0095] An embodiment of the present disclosure further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0096] It should be understood that the chip mentioned in the embodiments of the present disclosure can also be called a system-level chip, a system chip, a chip system, or a system-on-chip chip, etc.
[0097] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0098] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0099] The embodiments of the present disclosure are described above in conjunction with the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present disclosure, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present disclosure and the claims, all of which are protected by the present disclosure.
Claims
1. A signal sampling system, comprising: K signal sampling circuits, N switch circuits, N analog-to-digital converters and a digital filtering module, wherein: The K signal sampling circuits are used to collect target signals, the K signal sampling circuits are divided into N groups of signal sampling modules, and the number of signal sampling circuits included in each group of signal sampling modules is greater than or equal to 2; The N switch circuits correspond to the N groups of signal sampling modules one by one, respectively, and each of the switch circuits is connected to one of the signal sampling circuits in a group of signal sampling modules at the same time; The N analog-to-digital converters are respectively connected to the N switch circuits in a one-to-one correspondence, and each of the analog-to-digital converters is used to receive the target signal transmitted by the switch circuit and convert the target signal into a digital signal; The digital filtering module is connected to the N analog-to-digital converters, and is used to receive the N digital signals sent by the N analog-to-digital converters, and process the N digital signals respectively based on a digital filtering algorithm set with a target filtering frequency.
2. The signal sampling system according to claim 1, wherein: The digital filtering module is also used to intercept the N digital signals in sections respectively, and process each intercepted digital signal based on a digital filtering algorithm set with a target filtering frequency.
3. The signal sampling system according to claim 1, wherein: The signal sampling system also includes a power frequency noise detection module and a digital filter frequency setting module, wherein: The power frequency noise detection module is used to detect the noise frequency of the power system and send the noise frequency to the digital filter frequency setting module; The digital filter frequency setting module is connected to the digital filter module, and is used to set the target filter frequency of the digital filter algorithm based on the noise frequency or the power frequency set by the user, and send the target filter frequency to the digital filter module.
4. The signal sampling system according to claim 3, wherein: The signal sampling system further includes a switching time setting module, which is respectively connected to the power frequency noise detection module and the N switching circuits; wherein, The power frequency noise detection module is also used to send the noise frequency to the switching time setting module; The switching time setting module is used to determine the switching frequencies of the N switching circuits based on the noise frequency or the power frequency set by the user, so as to control the switching circuits to switch and connect the signal sampling circuits in the corresponding signal sampling modules at the switching frequencies.
5. The signal sampling system according to claim 1, wherein: The signal sampling system also includes N signal conditioning circuits, and the N switching circuits are respectively connected to the analog-to-digital converter through one of the signal conditioning circuits. The signal conditioning circuit is used to perform gain control on the target signal transmitted by the connected switching circuit and send the gained target signal to the connected analog-to-digital converter.
6. The signal sampling system according to claim 1, wherein: The signal sampling system further comprises a recording module, which is connected to the digital filtering module and is used for restoring the processed digital signal to the target signal, and recording or displaying the target signal.
7. A signal sampling method, wherein: The signal sampling system according to any one of claims 1 to 6 comprises: Divide K signal sampling circuits into N groups of signal sampling modules, and the number of signal sampling circuits included in each group of signal sampling modules is greater than or equal to 2; Control each of the N switch circuits to be connected to one of the signal sampling circuits in a group of the signal sampling modules at the same time, so that each of the switch circuits sends the target signal collected by the connected signal sampling circuit to the analog-to-digital converter connected to the switch circuit; Convert the received target signal into a digital signal through each of the N analog-to-digital converters, and send the digital signal to a digital filtering module; The digital filtering module processes the N received digital signals respectively based on a digital filtering algorithm set with a target filtering frequency.
8. The signal sampling method according to claim 7, wherein: The controlling each of the N switch circuits to be connected to one of the signal sampling circuits in a group of the signal sampling modules at the same time comprises: The switching frequencies of the N switch circuits are determined based on the noise frequency of the power system detected by the power frequency noise detection module or the power frequency set by the user, and each switch circuit is controlled to switch the signal sampling circuit in the corresponding signal sampling module at the switching frequency.
9. The signal sampling method according to claim 7, wherein: Before the digital filtering module processes the received N digital signals respectively based on a digital filtering algorithm with a target filtering frequency, the method further includes: The target filtering frequency of the digital filtering algorithm is set based on the noise frequency of the power system detected by the power frequency noise detection module or the power frequency set by the user.
10. An electronic device, wherein: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the signal sampling method according to any one of claims 7 to 9 are implemented.
Citation Information
Patent Citations
Multi-loop intelligent temperature control module
CN103792969A
Signal processing circuit and method
CN114680897A
Multi-channel analog isolation acquisition circuit and chip
CN114839907A
Signal sampling system, signal sampling method and electronic equipment
CN116436465A
Rocket engine data acquisition system
CN215949675U
Cited By
Method, device and system for acquiring current signal data of cable
CN120142746A
