WO2025102459A1 - 电流噪音滤除方法、存储介质及设备 - Google Patents
电流噪音滤除方法、存储介质及设备 Download PDFInfo
- Publication number
- WO2025102459A1 WO2025102459A1 PCT/CN2023/137289 CN2023137289W WO2025102459A1 WO 2025102459 A1 WO2025102459 A1 WO 2025102459A1 CN 2023137289 W CN2023137289 W CN 2023137289W WO 2025102459 A1 WO2025102459 A1 WO 2025102459A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- current
- filtering
- value
- filter
- threshold
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/25—Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
- G01R19/2506—Arrangements for conditioning or analysing measured signals, e.g. for indicating peak values ; Details concerning sampling, digitizing or waveform capturing
- G01R19/2509—Details concerning sampling, digitizing or waveform capturing
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03H—IMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
- H03H17/00—Networks using digital techniques
- H03H17/02—Frequency selective networks
- H03H17/0294—Variable filters; Programmable filters
Definitions
- the present application relates to the field of current noise filtering, for example, to a current noise filtering method, storage medium and device.
- shunts are usually used to detect current in battery management systems.
- operational amplifiers are usually used to amplify the signal passing through the shunt.
- noise is coupled into the amplification process, making the final detected current value inaccurate.
- the present application provides a current noise filtering method, device, computer-readable storage medium and electronic device, which can better eliminate noise on the current without affecting the step response of the current.
- the present application provides a current noise filtering method, comprising:
- the first current value is filtered according to the target current filter coefficient, and the filtered target current value is output.
- the present application provides a current noise filtering device, the current noise filtering device comprising:
- a first acquisition module used for acquiring a first current value and a plurality of current values stored in a buffer; wherein the plurality of current values include the first current value;
- a second acquisition module is used to acquire a current filter threshold and a current filter coefficient corresponding to each current filter parameter in a plurality of current filter parameters
- a determination module used to determine a target current filter coefficient from the current filter coefficients of the multi-segment current filter parameters according to a plurality of current values and a current filter threshold value in the multi-segment current filter parameters;
- the processing module is used to filter the first current value according to the target current filter coefficient and output the filtered target current value.
- the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, wherein the instructions are suitable for being loaded by a processor to execute the steps in the above-mentioned current noise filtering method.
- the present application provides an electronic device, comprising: one or more processors; a memory; and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the processor to implement the steps in the above-mentioned current noise filtering method.
- the current noise filtering method, device, computer-readable storage medium and electronic device provided in the embodiments of the present application obtain the current filter threshold and current filter coefficient corresponding to each current filter parameter in the multiple current filter parameters by obtaining the first current value and several current values stored in the buffer, and determine the target current filter coefficient from the current filter coefficients of the multiple current filter parameters according to the several current values and the current filter threshold in the multiple current filter parameters; filter the first current value according to the target current filter coefficient, and output the filtered target current value.
- the embodiments of the present application determine the target current filter coefficient corresponding to the filtering of the first current value from the preset several current filter parameters, so that the selection of the target current filter coefficient is related to the first current value collected in real time, so that when the target current filter coefficient is used for filtering, the expected filtering effect is met, and at the same time, the current step response will not be affected too much due to the selection of too large a target current filter coefficient.
- FIG1 is a schematic diagram of an application scenario of a current noise filtering method provided in an embodiment of the present application
- FIG2 is a flow chart of a current noise filtering method provided in an embodiment of the present application.
- FIG3 is another schematic diagram of a flow chart of a current noise filtering method provided in an embodiment of the present application.
- FIG4 is a schematic diagram of a current noise filtering device provided in an embodiment of the present application.
- FIG5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
- a current shunt is usually used to detect the current size.
- the current shunt is an instrument used to measure direct current.
- the basic principle of its measurement is shown in Figure 1.
- IA is the current input to the shunt
- Ux is the voltage generated at both ends of the shunt
- Uy is the voltage after Ux is conditioned by the signal conditioning circuit
- MCU is a microcontroller unit.
- the signal conditioning circuit will condition the Ux signal into a signal Uy that matches the detection range of the AD port and send it to the AD port.
- the MCU can read the size of Uy through the AD port, thereby calculating the size of the current Ia flowing through the shunt.
- the rated voltage of Ux is 75mV, while the AD detection range is generally 0 ⁇ 5V. The difference between the two is relatively large.
- the signal conditioning circuit In order to pursue good detection accuracy, the signal conditioning circuit generally uses an op amp to amplify the Ux signal. Due to the use of the op amp and the influence of the circuit power supply ripple, the signal Uy will be coupled with noise, which will eventually lead to inaccurate Ia value detected.
- the present application provides a current noise filtering method.
- the present application receives the current value finally measured by Ux coupling noise after the above-mentioned operational amplifier operation, and performs the following processing.
- FIG. 2 is a flow chart of a current noise filtering method provided in an embodiment of the present application, and the current noise filtering method includes:
- the maximum number of current values that can be stored in the buffer is preset.
- the first current value and the several current values stored in the buffer are the current values obtained by the current shunt for detecting the current size in the battery management system.
- the signal of the current in the battery management system after passing through the current shunt is sent to the signal conditioning circuit connected to the current shunt, and then amplified by the signal conditioning circuit, and then sent to the MCU, and a current value is obtained after being processed by the MCU, and the same processing is performed multiple times to obtain several current values.
- the buffer may be a first-in-first-out data buffer, that is, when the number of current values stored in the buffer is greater than a preset number, the buffer will replace the current value of the newly collected first current value with the current value that has existed in the buffer for the longest time.
- FIG. 3 is another flow chart of the present application, wherein FIFO represents a first-in-first-out data buffer, and the maximum number of current values that can be stored in the buffer is preset to be n.
- the previously stored current value (i.e., i0) will be moved forward one position in the buffer at its own location, and then i1 will be stored in the last vacant position in the buffer (i.e., the position where i0 originally existed).
- the previously stored current value (i.e., i0, i1) will be moved forward one position in the buffer at its own location, and then i2 will be stored in the last vacant position in the buffer (i.e., the position where i1 originally existed), and so on.
- the current value in+1 to be stored in the buffer will first remove the current value at the front position of the buffer, and then move the subsequent current value in the buffer forward one position at its own position, and finally store the current value in+1 to be stored in the buffer in the last vacant position in the buffer, and so on.
- This embodiment collects the first current value passing through the current shunt and stores it in the buffer, so that when filtering the first current value later, a filter threshold suitable for the newly collected current value can be determined according to the several current values stored in the buffer, thereby determining the target current filter coefficient corresponding to the filter threshold, and using the target current filter coefficient to filter the newly collected current, which not only ensures that the filtering effect is good enough, but also ensures that the target current filter coefficient will not have too much impact on the step response of the newly collected current.
- the above-mentioned several current values may be all current values stored in the buffer, and the following description is also based on obtaining several current values stored in the buffer, that is, obtaining all current values stored in the buffer.
- the buffer has stored n current values from i0 to in-1, so a total of n current values from i0 to in-1 are obtained.
- n is 1 at this time, that is, only i0 stored in the buffer is obtained.
- the step of obtaining the current filter threshold and current filter coefficient corresponding to each current filter parameter in the multiple current filter parameters it also includes: obtaining the current noise level and the current fluctuation range, and determining the current filter threshold corresponding to each current filter parameter in the multiple current filter parameters according to the current noise level and the current fluctuation range, and determining the current filter coefficient corresponding to the current filter threshold.
- This embodiment determines the current filter threshold and the current filter coefficient by obtaining the current noise level and the current fluctuation range.
- this solution can adjust the current filter coefficient in real time according to the actual situation, so that the selection of the target current filter coefficient is related to the first current value collected in real time, so as to achieve the desired filtering effect while not causing too much impact on the step response of the first current value.
- the current fluctuation range includes a charging current fluctuation range and a discharging current fluctuation range; according to the current noise level and the current fluctuation range, the current filtering threshold corresponding to each current filtering parameter in the multiple current filtering parameters is determined, including: determining the current filtering threshold in the first current filtering parameter according to the current noise level, determining the charging current fluctuation range difference according to the charging current fluctuation range, and determining the current filtering threshold in the second current filtering coefficient according to the charging current fluctuation range difference, determining the discharge current fluctuation range difference according to the discharge current fluctuation range, and determining the current filtering threshold in the third current filtering coefficient according to the discharge current fluctuation range difference.
- the current noise is the noise generated by the signal conditioning circuit and other places as shown in Figure 1.
- the number of preset filtering thresholds can be 3, where the first filtering threshold can be set to 1A, the second filtering threshold can be set to 10A, and the first filtering threshold can be set to 30A.
- the filtering threshold may also be segmented in other ways according to the current noise level and the current fluctuation range, which is not limited here.
- a target current filter coefficient is determined from the current filter coefficients in the multi-stage current filter parameter.
- a target current filter coefficient is determined from the current filter coefficients of the plurality of current filter parameters, including: determining the target current filter threshold according to a plurality of current values and the current filter threshold in the plurality of current filter parameters, and determining the target current filter coefficient according to the current filter coefficient corresponding to the target current filter threshold.
- the target current filter threshold is determined according to a plurality of current values and the current filter threshold in the plurality of current filter parameters, so that the selection of the target current filter threshold takes into account the overall situation of a plurality of current values, and the filtering effect obtained by performing the filtering operation using the target current filter threshold is better.
- a target current filter threshold is determined based on a plurality of current values and current filter thresholds in a multi-segment current filter parameter, including: determining a current average value of the plurality of current values, and determining a current value at a preset position among the plurality of current values as a second current value, and determining the target current filter threshold from the current filter thresholds in the multi-segment current filter parameter based on the current average value and the second current value.
- the target current filter threshold is determined from the current filter thresholds in the multi-segment current filter parameters, including: determining the absolute value of the difference between the current average value and the second current value, and taking the current filter coefficient that is closest to the absolute value and greater than the absolute value from the current filter thresholds in the multi-segment current filter parameters as the target current filter coefficient. Specifically, the absolute value of the difference between the average value and the second current value is obtained, and the filter threshold corresponding to the absolute value in several preset filter thresholds is obtained, and finally the filter coefficient corresponding to the filter threshold is obtained, which is the target current filter coefficient.
- Figure 3 presets three current filter thresholds, namely R0, R1, and Ry-1, and four current filter coefficients, namely fac0, fac1, fac(y-1), and facy.
- iavg is the average value of a number of current values stored in the buffer
- ix is the second current value
- is the absolute value of the difference between iavg and ix
- R0, R1, and R2 are preset filter thresholds
- the target current filter coefficient is fac0
- the corresponding filter threshold is R1
- the target current filter coefficient is fac1
- the corresponding filter threshold is R1
- the target current filter coefficient is fac1
- the corresponding filter threshold is R2
- the target current filter coefficient is fac2
- the target current filter coefficient is fac3
- the target current filter coefficient is determined according to the absolute value of the difference between the average current value and the second current value, which is only a specific embodiment of the application scheme. According to the specific situation, the target current filter coefficient can be determined by other methods using the current value stored in the buffer, which is not limited here.
- determining the current value of a preset position among several current values as the second current value includes: obtaining the actual sampling rate and the maximum allowable delay of the signal, determining the preset position according to the actual sampling rate and the maximum allowable delay of the signal, and obtaining the current value of the preset position from several current values as the second current value.
- the second current value is the current value of the preset position in the buffer
- the specific position is determined based on the actual sampling rate and the maximum allowable delay of the signal.
- the specific position is set to 10 (i.e., the maximum allowable delay time of the signal/actual sampling rate).
- the buffer stores the current values in the order in which the 10th current value from the front to the back is the current value of the specific position, i.e., the second current value.
- the specific position is set to x, and the number n of current values stored in the memory at this time is less than x
- the ix value is set to 0 by default, that is, when ix is substituted into
- the second current value may also be selected in other ways, which are not limited here.
- a most suitable filter coefficient is selected from a plurality of preset filter coefficients, so that the filter coefficient will not increase the time required from the input signal change to the output signal response change due to being too large, and the smoothness of the filter will not be increased due to the filter coefficient being too large, so that the output signal changes more slowly, and is insensitive to the fast-changing signal response, causing the current step response to lose its original fast response characteristics.
- the present application scheme has a better final filtering effect and also reduces the impact on the current step response.
- the scheme disclosed in the present application obtains a first current value and a current value stored in a buffer to obtain several current values, obtains a current filter threshold and a current filter coefficient corresponding to each current filter parameter in a multi-segment current filter parameter, and determines a target current filter coefficient from the current filter coefficients of the multi-segment current filter parameter according to the several current values and the current filter threshold in the multi-segment current filter parameter; according to the target current filter coefficient, the first current value is filtered, and the filtered target current value is output.
- the embodiment of the present application determines the target current filter coefficient corresponding to the first current value from a plurality of preset filter coefficients, so that the selection of the target current filter coefficient is related to the first current value collected in real time, that is, the selection of the target current filter coefficient will neither affect the step response of the first current value due to being too large, nor affect its filtering effect due to being too small, thereby achieving both the expected filtering effect and not causing too much impact on the step response of the first current value.
- the embodiment of the present application further provides a current noise filtering device, as shown in FIG4 , the current noise filtering device 400 includes:
- a first acquisition module 401 is used to acquire a first current value and a plurality of current values stored in a buffer; the plurality of current values include the first current value;
- the second acquisition module 402 is used to acquire the current filtering threshold and the current filtering coefficient corresponding to each current filtering parameter in the multiple current filtering parameters;
- a determination module 404 configured to determine a target current filter coefficient from the current filter coefficients of the multi-segment current filter parameters according to a plurality of current values and a current filter threshold value in the multi-segment current filter parameters;
- the processing module 405 is used to filter the first current value according to the target current filter coefficient and output the filtered target current value.
- the above modules and/or units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities.
- the specific implementation of the above modules and/or units can refer to the previous method embodiments.
- beneficial effects that can be achieved please refer to the beneficial effects in the previous battery cell lithium plating potential determination method embodiment, which will not be repeated here.
- the embodiment of the present application also provides a computer device, which includes: one or more processors; a memory; and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the processor to implement the steps in the current noise filtering method described above.
- Figure 5 it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
- the computer device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504.
- a processor 501 with one or more processing cores
- a memory 502 with one or more computer-readable storage media
- a power supply 503 with one or more computer-readable storage media
- FIG5 does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
- Processor 501 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. It executes various functions of the computer device and processes data by running or executing software programs and/or modules stored in memory 502 and calling data stored in memory 502, thereby monitoring the computer device as a whole.
- the memory 502 may be used to store software programs and modules.
- the processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502 .
- the computer device also includes a power supply 503 for supplying power to various components.
- the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system.
- the power supply 503 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
- the computer device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
- an input unit 504 which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
- the computer device may further include a display unit, which is used to display a human-computer interaction interface, etc., which will not be described in detail here.
- the processor 501 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 will run the application programs stored in the memory 502, thereby realizing various functions, as follows:
- an embodiment of the present application provides a computer-readable storage medium, which may be non-volatile or volatile, and may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
- a computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any of the methods for determining the lithium plating potential of a battery cell provided in the embodiments of the present application.
- the computer program may be loaded by a processor to execute the following steps:
- the first current value is filtered according to the target current filter coefficient, and the filtered target current value is output.
- the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities.
- the specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
本申请提供一种电流噪音滤除方法、存储介质及设备,方法包括:获取第一电流值以及缓存器中已保存的若干个电流值,获取每一段电流滤波参数所对应的电流滤波阈值和电流滤波系数,根据若干个电流值和多段电流滤波参数中的电流滤波阈值,确定目标电流滤波系数,根据目标电流滤波系数对第一电流值进行滤波得到目标电流值。
Description
本申请要求在2023年11月17日提交中国专利局、申请号为202311540801.2的中国专利申请的优先权,以上申请的全部内容通过引用结合在本申请中。
本申请涉及电流噪声滤除领域,例如涉及一种电流噪音滤除方法、存储介质及设备。
目前在电池管理系统中通常使用分流器来检测电流大小,为了追求良好的检测精度,通常会利用运放将通过分流器的信号进行放大,但在放大的过程中会耦合进噪声,使得最终检测的电流值不准确。
本申请提供了一种电流噪音滤除方法、装置、计算机可读存储介质及电子设备,其能够更好的消除电流上的噪声同时又不影响电流的阶跃响应。
为达上述目的,本申请采用以下技术方案:
第一方面,本申请提供一种电流噪音滤除方法,包括:
获取第一电流值以及缓存器中已保存的若干个电流值;其中,若干个电流值包括第一电流值;
获取多段电流滤波参数中每一段电流滤波参数所对应的电流滤波阈值和电流滤波系数;
根据若干个电流值和多段电流滤波参数中的电流滤波阈值,从多段电流滤波参数的电流滤波系数中确定目标电流滤波系数;
根据目标电流滤波系数,对第一电流值进行滤波,并输出滤波后的目标电流值。
第二方面,本申请提供一种电流噪音滤除装置,电流噪音滤除装置包括:
第一获取模块,用于获取第一电流值以及缓存器中已保存的若干个电流值;其中,若干个电流值包括第一电流值;
第二获取模块,用于获取多段电流滤波参数中每一段电流滤波参数所对应的电流滤波阈值和电流滤波系数;
确定模块,用于根据若干个电流值和多段电流滤波参数中的电流滤波阈值,从多段电流滤波参数的电流滤波系数中确定目标电流滤波系数;
处理模块,用于根据目标电流滤波系数,对第一电流值进行滤波,并输出滤波后的目标电流值。
第三方面,本申请提供一种计算机可读存储介质,该计算机存储介质中存储有多条指令,所述指令适于由处理器加载,以执行上述电流噪音滤除方法中的步骤。
第四方面,本申请提供一种电子设备,电子设备包括:一个或多个处理器;存储器;以及一个或多个指令,其中所述一个或多个指令被存储于所述存储器中,并配置为由所述处理器执行,以实现上述电流噪音滤除方法中的步骤。
本申请的有益效果为:本申请实施例提供的电流噪音滤除方法、装置、计算机可读存储介质及电子设备,通过获取第一电流值以及缓存器中已保存的若干个电流值,获取多段电流滤波参数中每一段电流滤波参数所对应的电流滤波阈值和电流滤波系数,根据若干个电流值和多段电流滤波参数中的电流滤波阈值,从多段电流滤波参数的电流滤波系数中确定目标电流滤波系数;根据目标电流滤波系数,对第一电流值进行滤波,并输出滤波后的目标电流值。本申请实施例通过在预设的若干个电流滤波参数中确定对第一电流值进行滤波所对应的目标电流滤波系数,使得目标电流滤波系数的选取与实时采集的第一电流值相关,使得利用该目标电流滤波系数进行滤波时,既满足了预期的滤波效果,同时不会因目标电流滤波系数选取过大而对电流阶跃响应造成太大的影响。
图1是本申请实施例提供的一种电流噪音滤除方法应用场景示意图;
图2是本申请实施例提供的一种电流噪音滤除方法的一个流程示意图;
图3是本申请实施例提供的一种电流噪音滤除方法的另一流程示意图;
图4是本申请实施例提供的一种电流噪音滤除装置示意图;
图5是本申请实施例提供的一种电子设备的结构示意图;
在电池管理系统中,通常使用电流分流器来检测电流大小,其中电流分流器是一种用于测量直流电流的仪器,其测量的基本原理如图1所示。在测量时,需要使用电流分流器、信号调整电路和MCU。其中IA为分流器输入的电流,Ux为分流器两端产生的电压,Uy为Ux经信号调理电路调理后的电压,MCU为微控制单元。当直流电流IA通过分流器时,由于分流器存在内阻,会在分流器两端产生电压Ux,信号调理电路会将Ux信号调理成与AD端口检测范围相匹配的信号Uy送入AD端口。MCU通过AD端口可以读取Uy的大小,从而推算出流过分流器电流Ia的大小。一般Ux的额定电压为75mV,而AD检测范围一般为0~5V,两者差异比较大,为了追求良好的检测精度,信号调理电路一般会用运放把Ux信号放大,由于运放的使用以及电路电源纹波等的影响会使信号Uy上耦合进噪声,最终导致检测得到的Ia值不准确。这些噪音在对小电流精度要求比较高的场合,比如BMS,影响会非常大。为了消除这种存在于电流Ia上的噪声,软件上传统的做法是使用平均值滤波或低通滤波法。平均值滤波或低通滤波如果滤波参数选取太大会大大影响电流的阶跃响应,如果滤波参数选取太小,滤除效果又有限,所以传统的滤波很难做到对噪声的滤波效果既好又能减小对其阶跃响应的影响。
为了解决上述提到的问题,本申请提供了一种电流噪音滤除方法。
本申请通过接收经上述运放操作后导致Ux耦合进噪声而最终测得的电流值,并进行以下处理。
如图2所示,图2是本申请实施例提供的电流噪音滤除方法的一个流程示意图,该电流噪音滤除方法包括:
101、获取第一电流值以及缓存器中已保存的若干个电流值;其中,若干个电流值包括第一电流值。
在获取第一电流值以及缓存器中已保存的电流值,得到若干个电流值的步骤之前,预设缓存器最多可存储电流值的数量。
第一电流值、以及缓存器中已保存的若干个电流值是电流分流器用于检测电池管理系统中的电流大小而得到的电流值。其中,将电池管理系统中的电流经过电流分流器后的信号发送至与电流分流器连接的信号调理电路,再经过信号调理电路放大,再将放大后的信号发送至MCU,通过MCU处理后得到一个电流值,多次进行相同的处理,以得到若干个电流值。
在一实施例中,上述缓存器可以是先进先出数据缓存器,即当缓存器所存入的电流值数量大于预设数量时,该缓存器会将新采集的第一电流值的电流值与存在于该缓存器中时间最久的电流值进行替换,以图3为例,图3是本申请的另一流程示意图,其中,FIFO表示先进先出数据缓存器,预设该缓存器最多可存储电流值的数量为n,当该缓存器中存入第一个电流值i0后,缓存器即将存入第二个电流值i1时,会将前面已经存入的电流值(即i0)在缓存器中自身所在的位置向前进一位,再将i1存入缓存器中最后空出的位置(即i0原先存在的位置),当缓存器即将存入第三个电流值i2时,会将前面已经存入的电流值(即i0、i1)在缓存器中自身所在的位置向前进一位,再将i2存入缓存器中最后空出的位置(即i1原先存在的位置),以此类推。当存储器已经存入i0至in-1共n(即预设缓存器最多可存储电流值的数量)个电流值时,后续将要存入缓存器中的电流值in+1,首先会将此时处于缓存器最前列位置的电流值移除缓存器,再将缓存器中后续的电流值在自身所在的位置向前进一位,最后将要存入缓存器中的电流值in+1存入缓存器中最后空出的位置,以此类推。本实施例采集通过电流分流器的第一电流值并将其存入缓存器,使得后续在对第一电流值进行滤波时,可以根据缓存器中存储的若干个电流值确定适合新采集电流值的滤波阈值,从而确定该滤波阈值对应的目标电流滤波系数,利用该目标电流滤波系数对新采集的电流进行滤波,既保证了滤波效果足够好,同时也保证了该目标电流滤波系数不会对新采集的电流的阶跃响应造成太大的影响。
在一实施例中,上述若干个电流值可以是缓存器中存储的所有电流值,并在下文中的描述也是基于获取缓存器中保存的若干个电流值即获取缓存器中存储的所有电流值进行描述的。具体地,以图3为例,此时缓存器已经存入i0 到 in-1共n个电流值,故获取i0到in-1共n个电流值。其中,当缓存器只存储了一个电流值时,此时n为1,即获取缓存器中仅存储的i0。
102、获取多段电流滤波参数中每一段电流滤波参数所对应的电流滤波阈值和电流滤波系数。
在一实施例中,在获取多段电流滤波参数中每一段电流滤波参数所对应的电流滤波阈值和电流滤波系数的步骤之前,还包括:获取电流噪音大小和电流波动范围,根据电流噪音大小和电流波动范围,确定多段电流滤波参数中的每一段电流滤波参数所对应的电流滤波阈值,以及确定电流滤波阈值所对应的电流滤波系数。本实施例通过获取电流噪音大小和电流波动范围,从而确定电流滤波阈值以及电流滤波系数,相较于目前常用的只使用一个电流滤波系数对电流进行滤波操作,该方案能够根据实际情况来实时调整电流滤波系数,使得目标电流滤波系数的选取与实时采集的第一电流值相关,实现了既满足预期的滤波效果,同时又不会对第一电流值的阶跃响应造成太大的影响。
在一实施例中,电流波动范围包括充电电流波动范围和放电电流波动范围;根据电流噪音大小和电流波动范围,确定多段电流滤波参数中的每一段电流滤波参数所对应的电流滤波阈值,包括:根据电流噪音大小确定第一段电流滤波参数中的电流滤波阈值,根据所述充电电流波动范围确定充电电流波动范围差值,并根据充电电流波动范围差值确定第二段电流滤波系数中的电流滤波阈值,根据所述放电电流波动范围确定放电电流波动范围差值,并根据放电电流波动范围差值确定第三段电流滤波系数中的电流滤波阈值。需要说明的是,该电流噪音为如图1中经信号调理电路以及其他地方产生的噪音。在此进行举例说明:若实际电流噪声为1A,在正常情况下充电电流波动差值为10A,放电电流波动差值为30A,则可以预设滤波阈值的数量为3,其中第一段滤波阈值可以定为1A,第二段滤波阈值可以定为10A,第一段滤波阈值可以定为30A。需要注意的是,上述举例只是为了更好的说明本方案,并不是对本方案进行限制,也可以根据电流噪音大小和电流波动范围以其他方式对滤波阈值进行分段,在此不做限定。
103、根据若干个电流值和多段电流滤波参数中的电流滤波阈值,从多段电流滤波参数的电流滤波系数中确定目标电流滤波系数。
在一实施例中,根据若干个电流值和多段电流滤波参数中的电流滤波阈值,从多段电流滤波参数的电流滤波系数中确定目标电流滤波系数,包括:根据若干个电流值和多段电流滤波参数中的电流滤波阈值,确定目标电流滤波阈值,根据目标电流滤波阈值所对应的电流滤波系数,确定目标电流滤波系数。本实施例根据若干个电流值和多段电流滤波参数中的电流滤波阈值来确定目标电流滤波阈值,使得目标电流滤波阈值的选取考虑了若干个电流值的整体情况,利用该目标电流滤波阈值进行滤波操作,得到的滤波效果更好。
在一实施例中,根据若干个电流值和多段电流滤波参数中的电流滤波阈值,确定目标电流滤波阈值,包括:确定若干个电流值的电流平均值,以及确定若干个电流值中预设位置的电流值作为第二电流值,根据电流平均值、第二电流值,从多段电流滤波参数中的电流滤波阈值中,确定目标电流滤波阈值。
在一实施例中,根据电流平均值、第二电流值,从多段电流滤波参数中的电流滤波阈值中,确定目标电流滤波阈值,包括:确定电流平均值和第二电流值之间的差值的绝对值,从多段电流滤波参数中的电流滤波阈值中,将与绝对值最接近且大于绝对值的电流滤波系数,作为目标电流滤波系数。具体地,根据平均值及第二电流值得到二者差值的绝对值,得到该绝对值在预设的若干个滤波阈值所对应的滤波阈值,最后得到该滤波阈值所对应滤波系数,该滤波系数即目标电流滤波系数。在此举例说明:以图3为例,图3中预设有R0、R1、Ry-1共三个电流滤波阈值,以及fac0、fac1、fac(y-1)、facy共四个电流滤波系数。根据若干个电流值,其中iavg为缓存器存入的若干个电流值的平均值,ix为第二电流值,则|iavg-ix|为iavg与ix二者差值的绝对值,R0、R1、R2为预设的滤波阈值,fac0、fac1、fac2、fac3为预设的滤波系数,其中滤波阈值R0对应滤波系数fac0,滤波阈值R1对应滤波系数fac1,滤波阈值R2对应滤波系数fac2,且R0<R1<R2,fac0<= fac1<= fac2<= fac3。若|iavg-ix|小于或等于R0时,则对应的滤波阈值为R0,故目标电流滤波系数则为fac0,若|iavg-ix|大于R0,同时小于或等于R1时,则对应的滤波阈值为R1,故目标电流滤波系数则为fac1,若|iavg-ix|大于R1,同时小于或等于R2时,则对应的滤波阈值为R2,故目标电流滤波系数则为fac2,若|iavg-ix|大于R2,则目标电流滤波系数则为fac3。需要注意的是,在本实施例中根据电流平均值、第二电流值二者差值的绝对值来确定目标电流滤波系数,只是该申请方案的一种具体实施例,可以根据具体情况,利用缓存器存储的电流值根据其他方式来确定目标电流滤波系数,在此不做限定。
在一实施例中,确定若干个电流值中预设位置的电流值作为第二电流值,包括:获取实际采样速率和信号最大允许延时,根据实际采样速率和信号最大允许延时确定预设位置,从若干个电流值获取预设位置的电流值作为第二电流值。具体地,第二电流值为缓存器中预设位置的电流值,该特定位置是依据实际采样速率以及信号最大允许的延时来确定的,在此进行举例说明:当采样速率为1ms,信号最大允许延时时间为10ms,则特定位置设定为10(即信号最大允许延时时间/实际采样速率)。说明该缓存器按照存储电流值的先后顺序,从前到后第10个电流值为特定位置的电流值,也即第二电流值。需要说明的是,当特定位置设定为x,而此时存储器已存入电流值的数量n小于x,则将ix值默认设置为0,即将ix代入上文中的| iavg-ix |进行计算时,此时ix等于0。需要注意的是,上述举例只是为了更好的说明本方案,并不是对本方案进行限制,也可以根据其他方式对第二电流值进行选取,在此不做限定。
本申请中的根据采集的第一电流值,从预设的若干个滤波系数选取一个最为合适的滤波系数,使得滤波系数不会因为过大而造成从输入信号发生变化到输出信号响应变化所需的时间增加,以及不会因为滤波系数过大而增加滤波器的平滑程度,使得输出信号变化更加缓慢,并且对快速变化的信号响应不敏感,而导致电流的阶跃响应会失去原本的快速响应特性。本申请方案相对于目前常用的只利用一个滤波系数对电流进行滤波滤除噪音,使得最终的滤波效果更好,同时也降低了对电流阶跃响应的影响。
104、根据目标电流滤波系数,对第一电流值进行滤波,并输出滤波后的目标电流值。
本申请所公开的方案,获取第一电流值以及缓存器中已保存的电流值,得到若干个电流值,获取多段电流滤波参数中每一段电流滤波参数所对应的电流滤波阈值和电流滤波系数,根据若干个电流值和多段电流滤波参数中的电流滤波阈值,从多段电流滤波参数的电流滤波系数中确定目标电流滤波系数;根据目标电流滤波系数,对第一电流值进行滤波,并输出滤波后的目标电流值。本申请实施例通过在预设的若干个滤波系数中确定对第一电流值所对应的目标电流滤波系数,使得目标电流滤波系数的选取与实时采集的第一电流值相关,即目标电流滤波系数的选取既不会因为太大从而影响第一电流值的阶跃相应,也不会因为太小从而影响其滤波效果,实现了既满足预期的滤波效果,同时又不会对第一电流值的阶跃响应造成太大的影响。
本申请实施例还提供了一种电流噪音滤除装置,如图4所示,电流噪音滤除装置400包括:
第一获取模块401,用于获取第一电流值以及缓存器中已保存的若干个电流值;若干个电流值包括第一电流值;
第二获取模块402,用于获取多段电流滤波参数中每一段电流滤波参数所对应的电流滤波阈值和电流滤波系数;
确定模块404,用于根据若干个电流值和多段电流滤波参数中的电流滤波阈值,从多段电流滤波参数的电流滤波系数中确定目标电流滤波系数;
处理模块405,用于根据目标电流滤波系数,对第一电流值进行滤波,并输出滤波后的目标电流值。
具体实施时,以上各个模块和/或单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块和/或单元的具体实施可参见前面的方法实施例,具体可以达到的有益效果也请参看前面的电芯析锂电位确定方法实施例中的有益效果,在此不再赘述。
本申请实施例还提供了一种计算机设备,该计算机设备包括:一个或多个处理器;存储器;以及一个或多个指令,其中所述一个或多个指令被存储于所述存储器中,并配置为由所述处理器执行,以实现上述所述的电流噪音滤除方法中的步骤。如图5所示,其示出了本申请实施例所涉及的计算机设备的结构示意图,具体来讲:
该计算机设备可以包括一个或者一个以上处理核心的处理器501、一个或一个以上计算机可读存储介质的存储器502、电源503和输入单元504等部件。本领域技术人员可以理解,图5中示出的计算机设备结构并不构成对计算机设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
处理器501是该计算机设备的控制中心,利用各种接口和线路连接整个计算机设备的各个部分,通过运行或执行存储在存储器502内的软件程序和/或模块,以及调用存储在存储器502内的数据,执行计算机设备的各种功能和处理数据,从而对计算机设备进行整体监控。
存储器502可用于存储软件程序以及模块,处理器501通过运行存储在存储器502的软件程序以及模块,从而执行各种功能应用以及数据处理。
计算机设备还包括给各个部件供电的电源503,优选的,电源503可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源503还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
该计算机设备还可包括输入单元504,该输入单元504可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。
尽管未示出,计算机设备还可以包括显示单元,所述显示单元用于显示人机交互界面等,在此不再赘述。具体在本实施例中,计算机设备中的处理器501会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器502中,并由处理器501来运行存储在存储器502中的应用程序,从而实现各种功能,如下:
获取第一电流值以及缓存器中已保存若干个电流值;若干个电流值包括第一电流值;获取多段电流滤波参数中每一段电流滤波参数所对应的电流滤波阈值和电流滤波系数;根据若干个电流值和多段电流滤波参数中的电流滤波阈值,从多段电流滤波参数的电流滤波系数中确定目标电流滤波系数;根据目标电流滤波系数,对第一电流值进行滤波,并输出滤波后的目标电流值。
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。
为此,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质可以是非易失性,也可以是易失性,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。其上存储有计算机程序,计算机程序被处理器进行加载,以执行本申请实施例所提供的任一种电芯析锂电位确定方法中的步骤。例如,计算机程序被处理器进行加载可以执行如下步骤:
获取第一电流值以及缓存器中已保存的若干个电流值;若干个电流值包括第一电流值;
获取多段电流滤波参数中每一段电流滤波参数所对应的电流滤波阈值和电流滤波系数;
根据若干个电流值和多段电流滤波参数中的电流滤波阈值,从多段电流滤波参数的电流滤波系数中确定目标电流滤波系数;
根据目标电流滤波系数,对第一电流值进行滤波,并输出滤波后的目标电流值。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对其他实施例的详细描述,此处不再赘述。
具体实施时,以上各个单元或结构可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元或结构的具体实施可参见前面的方法实施例,在此不再赘述。
Claims (12)
- 一种电流噪音滤除方法,包括:获取第一电流值以及缓存器中已保存的多个电流值;其中,所述多个电流值包括所述第一电流值;获取多段电流滤波参数中每一段电流滤波参数所对应的电流滤波阈值和电流滤波系数;根据所述多个电流值和多段电流滤波参数中的所述电流滤波阈值,从多段电流滤波参数的所述电流滤波系数中确定目标电流滤波系数;根据所述目标电流滤波系数,对所述第一电流值进行滤波,并输出滤波后的目标电流值。
- 根据权利要求1所述的电流噪音滤除方法,其中,所述根据所述多个电流值和多段电流滤波参数中的所述电流滤波阈值,从多段电流滤波参数的所述电流滤波系数中确定目标电流滤波系数,包括:根据所述多个电流值和所述多段电流滤波参数中的所述电流滤波阈值,确定目标电流滤波阈值;根据目标电流滤波阈值所对应的电流滤波系数,确定目标电流滤波系数。
- 根据权利要求2所述的电流噪音滤除方法,其中,所述根据所述多个电流值和所述多段电流滤波参数中的所述电流滤波阈值,确定目标电流滤波阈值,包括:确定所述多个电流值的电流平均值,以及确定所述多个电流值中预设位置的电流值作为第二电流值;根据所述电流平均值、所述第二电流值,从所述多段电流滤波参数中的所述电流滤波阈值中,确定目标电流滤波阈值。
- 根据权利要求3所述的电流噪音滤除方法,其中,所述根据所述电流平均值、所述第二电流值,从所述多段电流滤波参数中的所述电流滤波阈值中,确定目标电流滤波阈值,包括:确定所述电流平均值和所述第二电流值之间的差值的绝对值;从所述多段电流滤波参数中的所述电流滤波阈值中,将与所述绝对值最接近且大于所述绝对值的电流滤波阈值,作为目标电流滤波阈值。
- 根据权利要求3所述的电流噪音滤除方法,其中,所述确定所述多个电流值中预设位置的电流值作为第二电流值,包括:获取实际采样速率和信号最大允许延时;根据所述实际采样速率和所述信号最大允许延时确定预设位置;从多个电流值获取预设位置的电流值作为第二电流值。
- 根据权利要求1-5任一项所述的电流噪音滤除方法,在所述获取多段电流滤波参数中每一段电流滤波参数所对应的电流滤波阈值和电流滤波系数的步骤之前,还包括:获取电流噪音大小和电流波动范围;根据所述电流噪音大小和所述电流波动范围,确定多段电流滤波参数中的每一段电流滤波参数所对应的电流滤波阈值,以及确定电流滤波阈值所对应的电流滤波系数。
- 根据权利要求6所述的电流噪音滤除方法,其中,所述电流波动范围包括充电电流波动范围和放电电流波动范围;所述根据所述电流噪音大小和所述电流波动范围,确定多段电流滤波参数中的每一段电流滤波参数所对应的电流滤波阈值,包括:根据所述电流噪音大小确定第一段电流滤波参数对应的电流滤波阈值;根据所述充电电流波动范围确定充电电流波动范围差值,并根据所述充电电流波动范围差值确定第二段电流滤波系数对应的电流滤波阈值;根据所述放电电流波动范围确定放电电流波动范围差值,并根据所述放电电流波动范围差值确定第三段电流滤波系数对应的电流滤波阈值。
- 根据权利要求1-5任一项所述的电流噪音滤除方法,其中,所述第一电流值、以及缓存器中已保存的多个电流值是电流分流器设置为检测电池管理系统中的电流大小而得到的电流值。
- 根据权利要求1所述的电流噪音滤除方法,其中,所述缓存器为先进先出数据缓存器。
- 根据权利要求1所述的电流噪音滤除方法,其中,所述多个电流值包括所述缓存器中已保存的所有电流值。
- 一种计算机可读存储介质,所述计算机存储介质中存储有多条指令,所述指令适于由处理器加载,以执行权利要求1至10任一项所述的电流噪音滤除方法中的步骤。
- 一种电子设备,所述电子设备包括:一个或多个处理器;存储器;以及一个或多个指令,其中所述一个或多个指令被存储于所述存储器中,并配置为由所述处理器执行,以实现权利要求1至10中任一项所述的电流噪音滤除方法中的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311540801.2 | 2023-11-17 | ||
| CN202311540801.2A CN118074670A (zh) | 2023-11-17 | 2023-11-17 | 电流噪音滤除方法、存储介质及设备 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025102459A1 true WO2025102459A1 (zh) | 2025-05-22 |
Family
ID=91101290
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/137289 Pending WO2025102459A1 (zh) | 2023-11-17 | 2023-12-07 | 电流噪音滤除方法、存储介质及设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN118074670A (zh) |
| WO (1) | WO2025102459A1 (zh) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120123708A1 (en) * | 2009-04-10 | 2012-05-17 | Xinzhou Dong | Method and system for transient and intermittent earth fault detection and direction determination in a three-phase median voltage electric power distribution system |
| CN112630515A (zh) * | 2020-12-01 | 2021-04-09 | 苏州臻迪智能科技有限公司 | 一种电流采样方法、装置、系统及无人机 |
| CN115048961A (zh) * | 2022-06-15 | 2022-09-13 | 上海派智能源有限公司 | 滤波处理方法、系统、噪声滤波器、bms及电动车辆 |
| CN116405008A (zh) * | 2023-04-21 | 2023-07-07 | 上海艾为电子技术股份有限公司 | 滤波器的动态调整方法、装置、电子设备及存储介质 |
| CN117013621A (zh) * | 2023-08-08 | 2023-11-07 | 浙江正泰物联技术有限公司 | 逆变器控制方法、装置、计算机设备和可读存储介质 |
-
2023
- 2023-11-17 CN CN202311540801.2A patent/CN118074670A/zh active Pending
- 2023-12-07 WO PCT/CN2023/137289 patent/WO2025102459A1/zh active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120123708A1 (en) * | 2009-04-10 | 2012-05-17 | Xinzhou Dong | Method and system for transient and intermittent earth fault detection and direction determination in a three-phase median voltage electric power distribution system |
| CN112630515A (zh) * | 2020-12-01 | 2021-04-09 | 苏州臻迪智能科技有限公司 | 一种电流采样方法、装置、系统及无人机 |
| CN115048961A (zh) * | 2022-06-15 | 2022-09-13 | 上海派智能源有限公司 | 滤波处理方法、系统、噪声滤波器、bms及电动车辆 |
| CN116405008A (zh) * | 2023-04-21 | 2023-07-07 | 上海艾为电子技术股份有限公司 | 滤波器的动态调整方法、装置、电子设备及存储介质 |
| CN117013621A (zh) * | 2023-08-08 | 2023-11-07 | 浙江正泰物联技术有限公司 | 逆变器控制方法、装置、计算机设备和可读存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118074670A (zh) | 2024-05-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102520364A (zh) | 一种利用电池电压显示电量的方法 | |
| CN109599906B (zh) | 充电控制方法、相关设备及计算机存储介质 | |
| CN106772091A (zh) | 电池容量值的更新方法、装置及终端 | |
| WO2023207404A1 (zh) | 一种电池内阻检测方法和电池内阻检测电路 | |
| WO2025139396A1 (zh) | 扬声器负载诊断方法、系统、设备及介质 | |
| CN103235176A (zh) | 获取组件功耗的方法及服务器 | |
| CN116304953A (zh) | 数据检测方法、装置、电子设备及存储介质 | |
| CN115684711A (zh) | 一种电能计量方法、装置、计算机设备及存储介质 | |
| WO2025036055A1 (zh) | 电池的成组效率估算方法、电子设备及存储介质 | |
| CN110879350A (zh) | 一种电池均衡电路的检测方法及电池管理系统 | |
| WO2022012499A1 (zh) | 一种检测车辆电池的方法、装置及电池检测设备 | |
| CN115877247A (zh) | 电池组的soh值估算方法、电池管理系统及存储介质 | |
| CN115347661A (zh) | Ups系统的休眠控制方法及控制终端 | |
| CN116413623A (zh) | 用于燃料电池交流阻抗测试的电压检测电路和测试系统 | |
| CN111157907B (zh) | 检测方法及装置、充电方法及装置、电子设备、存储介质 | |
| CN118074670A (zh) | 电流噪音滤除方法、存储介质及设备 | |
| CN111624918A (zh) | 微控制器工作状态获取方法及装置、系统、可读存储介质 | |
| CN103558560B (zh) | 一种电动车的电池剩余电量的检测方法及装置 | |
| WO2025139151A1 (zh) | 电池的一致性确定方法及相关产品 | |
| CN102545898B (zh) | 模拟信号采集电路和方法 | |
| US12055992B2 (en) | System and method for power supply input power management | |
| WO2025097532A1 (zh) | 电芯析锂电位确定方法、装置、存储介质及电子设备 | |
| WO2025043869A1 (zh) | 超级电容器的老化性能测试方法、装置、设备和存储介质 | |
| CN115574854B (zh) | 故障诊断电路装置、诊断方法、计算机、存储介质及程序 | |
| CN110650394A (zh) | 耳机电池电量百分比区间与充电时间的对应关系建立方法、计算机可读存储介质及无线耳机 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23958728 Country of ref document: EP Kind code of ref document: A1 |