CN109188297A - A kind of data filtering methods and system based on STM32 - Google Patents

A kind of data filtering methods and system based on STM32 Download PDF

Info

Publication number
CN109188297A
CN109188297A CN201810901302.4A CN201810901302A CN109188297A CN 109188297 A CN109188297 A CN 109188297A CN 201810901302 A CN201810901302 A CN 201810901302A CN 109188297 A CN109188297 A CN 109188297A
Authority
CN
China
Prior art keywords
data
sampled data
bms
filter value
filter
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
Application number
CN201810901302.4A
Other languages
Chinese (zh)
Inventor
王景德
唐森群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Topband Co Ltd
Original Assignee
Shenzhen Topband Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Topband Co Ltd filed Critical Shenzhen Topband Co Ltd
Priority to CN201810901302.4A priority Critical patent/CN109188297A/en
Publication of CN109188297A publication Critical patent/CN109188297A/en
Pending legal-status Critical Current

Links

Landscapes

  • Secondary Cells (AREA)

Abstract

The present invention is suitable for technical field of battery management, provide a kind of data filtering methods and system based on STM32, this method comprises: the first sampled data of acquisition BMS, first sampled data includes information of voltage and/or temperature information and/or current information, the first sampled data is filtered according to preset first filter rule, obtain corresponding first filter value, after obtaining the first filter value, acquire the second sampled data of BMS, second sampled data includes information of voltage and/or temperature information and/or current information, the second sampled data is filtered according to the first filter rule, obtain corresponding second filter value, the second filter value and the first filter value are filtered according to preset second filter rule, obtain the target data of BMS, and export the target data, to improve to BMS into The stability of row data acquisition, and then improve the accuracy of BMS target data.

Description

A kind of data filtering methods and system based on STM32
Technical field
The invention belongs to technical field of battery management more particularly to a kind of data filtering methods and system based on STM32.
Background technique
Due to being influenced by energy crisis, Energy restructuring dynamics is constantly being reinforced, and haze is administered in addition, ecology is pressed The promotion of power and green low-carbon development, achieves rapid development using wind energy, solar energy as the renewable energy power generation of representative, however There is interval and uncontrollable characteristic when being converted into electric energy in these renewable energy, to influence the stability of operation of power networks. Influence for improvement renewable energy power generation fluctuation to power grid, joined energy storage link between renewable energy and power grid, To guarantee that generation of electricity by new energy is smooth, stabilization is output to power grid, allow wind-powered electricity generation, solar power generation safely and reliably extensive Power grid is accessed, therefore energy storage technology obtains very big attention in new energy development.
And battery energy storage is using relatively wider, development in energy storage technology than a kind of faster energy storage mode, with lithium ion Battery security is further improved, and cell power conversion efficiency further increases, battery energy storage technology distributed energy storage, The condition applied in terms of the energy storage of power station reaches its maturity.As being monitored in entire battery energy storage system and judge cell operating status The importance of core link, battery management system (Battery Management System, abbreviation BMS) is self-evident, and right For BMS, it is battery use process that the estimation of state-of-charge (State of Charge, abbreviation SoC), which is its core content, In important parameter, can directly reflect the remaining capacity of battery.Due to the chemical reaction of battery, cause battery SoC that cannot lead to Method measured directly is crossed to obtain, and must by BMS to battery operation when monomer voltage, electric current, temperature etc. it is collected Characterisitic parameter is analyzed, and to estimate battery SoC, therefore, is acquired to characterisitic parameters such as monomer voltage, electric current, temperature Stability be related to battery SoC estimation accuracy.
STM32 be (ST) company of STMicw Electronics release high-performance, low cost, low-power consumption ARM Cortex-M kernel Single-chip microcontroller, dominant frequency can reach 72MHz, and A/D frequency acquisition can reach 12MHz, and up to 18 channels are, it can be achieved that monomer electricity The high speed acquisition of the external datas such as pressure, electric current, temperature.Therefore, STM32 family chip is widely used in micro-control unit The exploitation of (Microcontroller Unit, abbreviation MCU).However in carrying out data acquisition, there are various disturbing factors (for example, ambient temperature, system line layout etc.), cause the data such as collected monomer voltage, electric current, temperature usually have compared with Big jump, it is highly unstable, lead to not calculate battery SoC.In order to be effectively removed interference, it will usually use various filtering Algorithm, such as multi collect remove the filtering algorithm of average value, Kalman filtering algorithm etc..But these algorithms are dry there is no removing It disturbs, can still collect unstable data.Therefore, the stability sampled using filtering algorithm appropriate for BMS is most important.
Summary of the invention
The embodiment of the present invention provides a kind of data filtering methods based on STM32, it is intended to solve since the prior art can not A kind of effective data filtering methods are provided, BMS data is caused to acquire unstable and BMS target data inaccuracy problem.
The embodiments of the present invention are implemented as follows, and the data filtering methods based on STM32 include the following steps: to acquire The first sampled data of the BMS, first sampled data include information of voltage and/or temperature information and/or current information;
First sampled data is filtered according to preset first filter rule, obtains corresponding first filtering Value;
After obtaining first filter value, the second sampled data of the BMS is acquired, second sampled data includes Information of voltage and/or temperature information and/or current information;
Second sampled data is filtered according to first filter rule, obtains corresponding second filter value; Second filter value and first filter value are filtered according to preset second filter rule, obtain the BMS's Target data, and export the target data.
Further, the step of acquiring the first sampled data of the BMS, comprising:
First sampled data of the BMS is acquired by ADC.
Further, the step of acquiring the first sampled data of the BMS, comprising:
First sampled data that AFE(analog front end) acquires the BMS is read by communication.
Further, the step of first sampled data being filtered according to preset first filter rule, packet It includes:
First sampled data is arranged according to preset put in order, obtains the sequence of first sampled data Column length;
According to the sequence length and preset sequence length ratio, first sampled data is screened, is obtained Sampling after screening retains data;
The average value that the sampling retains data is calculated, and sets first filter for the average value being calculated Wave number.
Further, second filter value and first filter value are carried out according to preset second filter rule The step of filtering, comprising:
Second filter value and first filter value are compared, and calculate second filter value and described Filtered difference between one filter value;
Judge whether the absolute value of the filtered difference is greater than preset amplitude range, is then, by second filter value It is set as the target data, otherwise, sets the target data for first filter value.
The embodiment of the present invention also provides a kind of data filtering system based on STM32, and the system is applied to BMS, special Sign is, the system comprises:
First data acquisition unit, for acquiring the first sampled data of the BMS, first sampled data includes electricity Press information and/or temperature information and/or current information;
First data filtering units, for being carried out according to preset first filter rule to first sampled data Filter, obtains corresponding first filter value;
Second data acquisition unit, for acquiring the second hits of the BMS after obtaining first filter value According to second sampled data includes information of voltage and/or temperature information and/or current information;
Second data filtering units, for being filtered according to first filter rule to second sampled data, Obtain corresponding second filter value;And
Target data obtaining unit is used for according to preset second filter rule to second filter value and described first Filter value is filtered, and obtains the target data of the BMS, and exports the target data.
Further, first data acquisition unit includes:
First acquisition unit, for acquiring first sampled data of the BMS by ADC.
Further, first data acquisition unit further include:
Second acquisition unit, for reading first sampled data that AFE(analog front end) acquires the BMS by communication.
Further, first data filtering units include:
Sampled data arrangement units are obtained for being arranged according to preset put in order first sampled data To the sequence length of first sampled data;
Sampled data screening unit is used for according to the sequence length and preset sequence length ratio, to described first Sampled data is screened, and the sampling after being screened retains data;And
Filter value setting unit retains the average value of data for calculating the sampling, and described flat by what is be calculated Mean value is set as first filter value.
Further, the target data obtaining unit includes:
Filtered difference computing unit for second filter value and first filter value to be compared, and calculates Filtered difference between second filter value and first filter value;And
Filtered difference judging unit, for judging whether the absolute value of the filtered difference is greater than preset amplitude range, It is then, to set the target data for second filter value, otherwise, sets the number of targets for first filter value According to.
In embodiments of the present invention, it due to carrying out double sampling to BMS data, and is adopted by the first filter rule to secondary Sampled data that sample obtains carries out corresponding filtration treatment, obtains corresponding first filter value and the second filter value, then passes through the Two filter rules are filtered the second filter value and the first filter value, obtain the target data of BMS, so improving to BMS The stability of data acquisition is carried out, and then improves the accuracy of BMS target data.
Detailed description of the invention
Fig. 1 is the implementation flow chart for the data filtering methods based on STM32 that the embodiment of the present invention one provides;
Fig. 2 is the structural schematic diagram of the data filtering system provided by Embodiment 2 of the present invention based on STM32;And
Fig. 3 is the preferred structure schematic diagram of the data filtering system provided by Embodiment 2 of the present invention based on STM32.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The filtering mode realization that the present invention is closed by multiple groups is filtered the BMS data based on STM32, to solve tradition By single filtering mode BMS data are filtered with the problem for leading to BMS target data inaccuracy.
Embodiment one
Fig. 1 shows the implementation process of the data filtering methods based on STM32 of the offer of the embodiment of the present invention one, in order to just In explanation, only parts related to embodiments of the present invention are shown, and details are as follows:
In step s101, the first sampled data of BMS is acquired, the first sampled data includes information of voltage and/or temperature Information and/or current information.
In embodiments of the present invention, the core ring in battery energy storage system is made of the battery pack that multiple single batteries form Section, and BMS is the core content of battery pack, it can be improved the utilization rate of battery, and prevent battery from overcharge and overdischarge occur, The service life for extending battery, monitors the state of battery.Using STM32 high-performance microprocessor, complete to the first hits of BMS According to acquisition, the first sampled data includes information of voltage and/or temperature information and/or current information, wherein information of voltage includes The voltage of single battery in the voltage and battery pack of battery pack, temperature information include the temperature, environment temperature, printing of single battery Circuit board (Printed Circuit Board, abbreviation PCB) temperature, equalization temperature and metal-oxide half field effect transistor (Metal- Oxide-Semiconductor Field-Effect Transistor, abridge MOS) temperature, current information includes that battery pack is filled Electric current, discharge current and euqalizing current.
When acquiring the first sampled data of BMS, it is preferable that pass through analog-digital converter (Analog-to-digital Converter, abbreviation ADC) acquisition BMS the first sampled data, the ADC of STM32 is the simulation numeral of 12 successive approximations Converter, it has 18 channels, can measure 16 outsides and 2 internal signal sources, the A/D conversion in each channel can be with single, company Continuous, scanning or discontinuous mode execute, to improve the flatness of measuring signal, improve the removal effect of noise.
It is further preferred that being led to according to preset collection period (such as 500ms) or times of collection (for example, 200 times) The first sampled data of ADC acquisition BMS is crossed, to reduce the probability of special case data in the first sampled data.
When acquiring the first sampled data of BMS, it is another preferably, that AFE(analog front end) acquires BMS is read by communication One sampled data, so that reduce that each channel STM32 generate when data acquisition interferes with each other.
Before reading the first sampled data that AFE(analog front end) acquires BMS by communication, it is preferable that read simulation to communication The equilibrium of front end is closed, to reduce the interference to sampled data.
In step s 102, the first sampled data is filtered according to preset first filter rule, is obtained corresponding First filter value.
In embodiments of the present invention, excellent when being filtered according to preset first filter rule to the first sampled data Selection of land arranges the first sampled data according to preset put in order (sequence or backward), obtains the first sampled data Sequence length the first sampled data is screened, after obtaining screening according to sequence length and preset sequence length ratio Sampling retain data, calculate the average value that sampling retains data, and set the first filter value for the average value being calculated, To improve the integrality filtered to the first sampled data.
According to it is preset put in order the first sampled data is arranged before, it is preferable that judge the first hits According to whether in preset effective range, being then, to retain the data, otherwise, the data are abandoned, to improve the first sampled data Validity.
According to sequence length and preset sequence length ratio, when being screened to the first sampled data, it is preferable that root It is according to sequence length and preset sequence length ratio (for example, 1/4), 1/4 sequence preceding in the first sampled data after sequence is long It spends sampled data corresponding with rear 1/4 sequence length to be abandoned, reads intermediate 1/2 sequence retained in first sampled data The corresponding sampled data of length, to further increase the validity of the first sampled data by median filtering.
In step s 103, after obtaining the first filter value, the second sampled data of BMS, the second sampled data bag are acquired Include information of voltage and/or temperature information and/or current information.
In embodiments of the present invention, it after obtaining the first filter value, using STM32 high-performance microprocessor, completes to BMS The acquisition of second sampled data, the second sampled data include information of voltage and/or temperature information and/or current information, wherein electricity Pressure information includes the voltage of single battery in the voltage and battery pack of battery pack, and temperature information includes the temperature of single battery, ring Border temperature claims PCB temperature, equalization temperature and MOS temperature, current information include battery pack charging current, discharge current and Euqalizing current.Second sampled data and the first sampled data are same type data, for example, the first sampled data is information of voltage, Then the second sampled data is also information of voltage.
When acquiring the second sampled data of BMS, it is preferable that the second sampled data that BMS is acquired by ADC, to mention The flatness of high measurement signal improves the removal effect of noise.
It is further preferred that being led to according to preset collection period (such as 500ms) or times of collection (for example, 200 times) The second sampled data of ADC acquisition BMS is crossed, to reduce the probability of special case data in the second sampled data.
When acquiring the second sampled data of BMS, it is another preferably, that AFE(analog front end) acquires BMS is read by communication Two sampled datas, so that reduce that each channel STM32 generate when data acquisition interferes with each other.
Before reading the second sampled data that AFE(analog front end) acquires BMS by communication, it is preferable that read simulation to communication The equilibrium of front end is closed, to reduce the interference to sampled data.
In step S104, the second sampled data is filtered according to the first filter rule, obtains corresponding second filter Wave number.
In embodiments of the present invention, when being filtered according to the first filter rule to the second sampled data, it is preferable that root The second sampled data is arranged according to preset put in order (sequence or backward), the sequence for obtaining the second sampled data is long Degree, according to the sequence length and preset sequence length ratio, screens the second sampled data, the sampling after being screened Retain data, calculates sampling and retain the average value of data, and set the second filter value for the average value being calculated, to mention The integrality that height filters the second sampled data.
According to it is preset put in order the second sampled data is arranged before, it is preferable that judge the second hits According to whether in preset effective range, being then, to retain the data, otherwise, the data are abandoned, to improve the second sampled data Validity.
According to sequence length and preset sequence length ratio, when being screened to the second sampled data, it is preferable that root It is according to sequence length and preset sequence length ratio (for example, 1/4), 1/4 sequence preceding in the second sampled data after sequence is long It spends sampled data corresponding with rear 1/4 sequence length to be abandoned, reads intermediate 1/2 sequence retained in second sampled data The corresponding sampled data of length, to further increase the validity of the second sampled data by median filtering.
In step s105, the second filter value and the first filter value are filtered according to preset second filter rule, The target data of BMS is obtained, and exports the target data.
In embodiments of the present invention, the second filter value and the first filter value are being carried out according to preset second filter rule When filtering, it is preferable that the second filter value and the first filter value are compared, and calculate the second filter value and the first filter value it Between filtered difference, judge whether the absolute value of filtered difference is greater than preset amplitude range, be then, by the second filter value be arranged Otherwise the first filter value is set to the target data of BMS for the target data of BMS, thus by obtaining to double sampling data To the first filter value and the second filter value compared again, to obtain target data, improve the accuracy of target data.
Embodiment two
The structural schematic diagram for the data filtering system based on STM32 that Fig. 2 shows provided by Embodiment 2 of the present invention kind is Convenient for explanation, only parts related to embodiments of the present invention are shown, including: first data acquisition unit 21, first Data filtering units 22, the second data acquisition unit 23, the second data filtering units 24 and target data obtaining unit 25, In:
First data acquisition unit 21, for acquiring the first sampled data of BMS, the first sampled data includes information of voltage And/or temperature information and/or current information.
In embodiments of the present invention, the core ring in battery energy storage system is made of the battery pack that multiple single batteries form Section, and BMS is the core content of battery pack, it can be improved the utilization rate of battery, and prevent battery from overcharge and overdischarge occur, The service life for extending battery, monitors the state of battery.Using STM32 high-performance microprocessor, complete to the first hits of BMS According to acquisition, the first sampled data includes information of voltage and/or temperature information and/or current information, wherein information of voltage includes The voltage of single battery in the voltage and battery pack of battery pack, temperature information include the temperature, environment temperature, PCB of single battery Temperature, equalization temperature and MOS temperature, current information include battery pack charging current, discharge current and euqalizing current.
When acquiring the first sampled data of BMS, it is preferable that pass through analog-digital converter (Analog-to-digital Converter, abbreviation ADC) acquisition BMS the first sampled data, the ADC of STM32 is the simulation numeral of 12 successive approximations Converter, it has 18 channels, can measure 16 outsides and 2 internal signal sources, the A/D conversion in each channel can be with single, company Continuous, scanning or discontinuous mode execute, to improve the flatness of measuring signal, improve the removal effect of noise.
It is further preferred that being led to according to preset collection period (such as 500ms) or times of collection (for example, 200 times) The first sampled data of ADC acquisition BMS is crossed, to reduce the probability of special case data in the first sampled data.
When acquiring the first sampled data of BMS, it is another preferably, that AFE(analog front end) acquires BMS is read by communication One sampled data, so that reduce that each channel STM32 generate when data acquisition interferes with each other.
Before reading the first sampled data that AFE(analog front end) acquires BMS by communication, it is preferable that read simulation to communication The equilibrium of front end is closed, to reduce the interference to sampled data.
First data filtering units 22, for being filtered according to preset first filter rule to the first sampled data, Obtain corresponding first filter value.
In embodiments of the present invention, excellent when being filtered according to preset first filter rule to the first sampled data Selection of land arranges the first sampled data according to preset put in order (sequence or backward), obtains the first sampled data Sequence length the first sampled data is screened, after obtaining screening according to sequence length and preset sequence length ratio Sampling retain data, calculate the average value that sampling retains data, and set the first filter value for the average value being calculated, To improve the integrality filtered to the first sampled data.
According to it is preset put in order the first sampled data is arranged before, it is preferable that judge the first hits According to whether in preset effective range, being then, to retain the data, otherwise, the data are abandoned, to improve the first sampled data Validity.
According to sequence length and preset sequence length ratio, when being screened to the first sampled data, it is preferable that root It is according to sequence length and preset sequence length ratio (for example, 1/4), 1/4 sequence preceding in the first sampled data after sequence is long It spends sampled data corresponding with rear 1/4 sequence length to be abandoned, reads intermediate 1/2 sequence retained in first sampled data The corresponding sampled data of length, to further increase the validity of the first sampled data by median filtering.
Second data acquisition unit 23, for after obtaining the first filter value, acquiring the second sampled data of BMS, second Sampled data includes information of voltage and/or temperature information and/or current information.
In embodiments of the present invention, it after obtaining the first filter value, using STM32 high-performance microprocessor, completes to BMS The acquisition of second sampled data, the second sampled data include information of voltage and/or temperature information and/or current information, wherein electricity Pressure information includes the voltage of single battery in the voltage and battery pack of battery pack, and temperature information includes the temperature of single battery, ring Border temperature, PCB temperature, equalization temperature and MOS temperature, current information include battery pack charging current, discharge current and Weigh electric current.Second sampled data and the first sampled data are same type data, for example, the first sampled data is information of voltage, then Second sampled data is also information of voltage.
When acquiring the second sampled data of BMS, it is preferable that the second sampled data that BMS is acquired by ADC, to mention The flatness of high measurement signal improves the removal effect of noise.
It is further preferred that being led to according to preset collection period (such as 500ms) or times of collection (for example, 200 times) The second sampled data of ADC acquisition BMS is crossed, to reduce the probability of special case data in the second sampled data.
When acquiring the second sampled data of BMS, it is another preferably, that AFE(analog front end) acquires BMS is read by communication Two sampled datas, so that reduce that each channel STM32 generate when data acquisition interferes with each other.
Before reading the second sampled data that AFE(analog front end) acquires BMS by communication, it is preferable that read simulation to communication The equilibrium of front end is closed, to reduce the interference to sampled data.
Second data filtering units 24 obtain pair for being filtered according to the first filter rule to the second sampled data The second filter value answered.
In embodiments of the present invention, when being filtered according to the first filter rule to the second sampled data, it is preferable that root The second sampled data is arranged according to preset put in order (sequence or backward), the sequence for obtaining the second sampled data is long Degree, according to the sequence length and preset sequence length ratio, screens the second sampled data, the sampling after being screened Retain data, calculates sampling and retain the average value of data, and set the second filter value for the average value being calculated, to mention The integrality that height filters the second sampled data.
According to it is preset put in order the second sampled data is arranged before, it is preferable that judge the second hits According to whether in preset effective range, being then, to retain the data, otherwise, the data are abandoned, to improve the second sampled data Validity.
According to sequence length and preset sequence length ratio, when being screened to the second sampled data, it is preferable that root It is according to sequence length and preset sequence length ratio (for example, 1/4), 1/4 sequence preceding in the second sampled data after sequence is long It spends sampled data corresponding with rear 1/4 sequence length to be abandoned, reads intermediate 1/2 sequence retained in second sampled data The corresponding sampled data of length, to further increase the validity of the second sampled data by median filtering.
Target data obtaining unit 25 is used for according to preset second filter rule to the second filter value and the first filter value It is filtered, obtains the target data of BMS, and export the target data.
In embodiments of the present invention, the second filter value and the first filter value are being carried out according to preset second filter rule When filtering, it is preferable that the second filter value and the first filter value are compared, and calculate the second filter value and the first filter value it Between filtered difference, judge whether the absolute value of filtered difference is greater than preset amplitude range, be then, by the second filter value be arranged Otherwise the first filter value is set to the target data of BMS for the target data of BMS, thus by obtaining to double sampling data To the first filter value and the second filter value compared again, to obtain target data, improve the accuracy of target data.
Wherein, as shown in Figure 3, it is preferable that the first data acquisition unit 21 includes:
First acquisition unit 211, for acquiring the first sampled data of BMS by ADC;And
Second acquisition unit 212, for reading the first sampled data that AFE(analog front end) acquires BMS by communication.
First data filtering units 22 include:
Sampled data arrangement units 221 are obtained for being arranged according to preset put in order the first sampled data The sequence length of first sampled data;
Sampled data screening unit 222 is used for according to sequence length and preset sequence length ratio, to the first hits According to being screened, the sampling after being screened retains data;And
Filter value setting unit 223 retains the average value of data for calculating sampling, and the average value being calculated is set It is set to the first filter value.
Target data obtaining unit 25 includes:
Filtered difference computing unit 251 for the second filter value and the first filter value to be compared, and calculates the second filter Filtered difference between wave number and the first filter value;And
Filtered difference judging unit 252 is for judging whether the absolute value of filtered difference is greater than preset amplitude range Then, target data is set by the second filter value, otherwise, sets target data for the first filter value.
The embodiment of the present invention obtains double sampling according to the first filter rule by carrying out double sampling to BMS data The sampled data arrived carries out corresponding filtration treatment, obtains corresponding first filter value and the second filter value, further according to the second filter Wave rule is filtered the second filter value and the first filter value, obtains the target data of BMS, carries out to improve to BMS The stability of data acquisition, and then improve the accuracy of BMS target data.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (10)

1. a kind of data filtering methods based on STM32, the method is applied to BMS, which is characterized in that the method includes under State step:
Acquire the first sampled data of the BMS, first sampled data include information of voltage and/or temperature information and/or Current information;
First sampled data is filtered according to preset first filter rule, obtains corresponding first filter value;
After obtaining first filter value, the second sampled data of the BMS is acquired, second sampled data includes voltage Information and/or temperature information and/or current information;
Second sampled data is filtered according to first filter rule, obtains corresponding second filter value;
Second filter value and first filter value are filtered according to preset second filter rule, obtained described The target data of BMS, and export the target data.
2. the method as described in claim 1, which is characterized in that the step of acquiring the first sampled data of the BMS, it is specific to go back Include the following steps:
First sampled data of the BMS is acquired by ADC.
3. the method as described in claim 1, which is characterized in that the step of acquiring the first sampled data of the BMS, it is specific to go back Include the following steps:
First sampled data that AFE(analog front end) acquires the BMS is read by communication.
4. the method as described in claim 1, which is characterized in that according to preset first filter rule to first hits Specifically further include following steps according to the step of being filtered:
First sampled data is arranged according to preset put in order, the sequence for obtaining first sampled data is long Degree;
According to the sequence length and preset sequence length ratio, first sampled data is screened, is screened Sampling afterwards retains data;
The average value that the sampling retains data is calculated, and sets first filtering for the average value being calculated Value.
5. the method as described in claim 1, which is characterized in that according to preset second filter rule to second filter value The step of being filtered with first filter value, specifically further includes following steps:
Second filter value and first filter value are compared, and calculate second filter value and first filter Filtered difference between wave number;
Judge whether the absolute value of the filtered difference is greater than preset amplitude range, is that then, second filter value is arranged The target data otherwise is set by first filter value for the target data.
6. a kind of data filtering system based on STM32, the system is applied to BMS, which is characterized in that the system comprises:
First data acquisition unit, for acquiring the first sampled data of the BMS, first sampled data includes voltage letter Breath and/or temperature information and/or current information;
First data filtering units are obtained for being filtered according to preset first filter rule to first sampled data To corresponding first filter value;
Second data acquisition unit, for acquiring the second sampled data of the BMS, institute after obtaining first filter value Stating the second sampled data includes information of voltage and/or temperature information and/or current information;
Second data filtering units are obtained for being filtered according to first filter rule to second sampled data Corresponding second filter value;And
Target data obtaining unit, for being filtered according to preset second filter rule to second filter value and described first Value is filtered, and obtains the target data of the BMS, and exports the target data.
7. system as claimed in claim 6, which is characterized in that first data acquisition unit includes:
First acquisition unit, for acquiring first sampled data of the BMS by ADC.
8. the method as described in claim 1, which is characterized in that first data acquisition unit further include:
Second acquisition unit, for reading first sampled data that AFE(analog front end) acquires the BMS by communication.
9. system as claimed in claim 6, which is characterized in that first data filtering units include:
Sampled data arrangement units obtain institute for arranging according to preset put in order first sampled data State the sequence length of the first sampled data;
Sampled data screening unit, for being sampled to described first according to the sequence length and preset sequence length ratio Data are screened, and the sampling after being screened retains data;And
Filter value setting unit retains the average value of data, and the average value that will be calculated for calculating the sampling It is set as first filter value.
10. system as claimed in claim 6, which is characterized in that the target data obtaining unit includes:
Filtered difference computing unit, for second filter value and first filter value to be compared, and described in calculating Filtered difference between second filter value and first filter value;And
Filtered difference judging unit, for judging whether the absolute value of the filtered difference is greater than preset amplitude range, be then, The target data is set by second filter value, otherwise, sets the target data for first filter value.
CN201810901302.4A 2018-08-09 2018-08-09 A kind of data filtering methods and system based on STM32 Pending CN109188297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810901302.4A CN109188297A (en) 2018-08-09 2018-08-09 A kind of data filtering methods and system based on STM32

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810901302.4A CN109188297A (en) 2018-08-09 2018-08-09 A kind of data filtering methods and system based on STM32

Publications (1)

Publication Number Publication Date
CN109188297A true CN109188297A (en) 2019-01-11

Family

ID=64921114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810901302.4A Pending CN109188297A (en) 2018-08-09 2018-08-09 A kind of data filtering methods and system based on STM32

Country Status (1)

Country Link
CN (1) CN109188297A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023001230A1 (en) * 2021-07-23 2023-01-26 长春捷翼汽车零部件有限公司 Voltage filtering method for detecting point in circuit, switch state detecting method, and related apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409783A (en) * 2007-09-28 2009-04-15 富士通微电子株式会社 Image processing filter, image processing method, and image processing circuit
US20110129155A1 (en) * 2009-12-01 2011-06-02 Ryoma Oami Video signature generation device and method, video signature matching device and method, and program
CN102175296A (en) * 2011-02-24 2011-09-07 山东大学 Fast two-stage filter algorithm applied to high precision digital weighing sensor
CN104482949A (en) * 2014-12-29 2015-04-01 哈尔滨工业大学 Precise code zero offset and amplitude self-adaptation compensation method of optical-electricity encoder
CN105929335A (en) * 2016-04-11 2016-09-07 广东欧珀移动通信有限公司 Battery information sampling and processing method and device
CN107240240A (en) * 2017-05-24 2017-10-10 广东工业大学 A kind of vehicle wireless data acquisition system suitable for vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409783A (en) * 2007-09-28 2009-04-15 富士通微电子株式会社 Image processing filter, image processing method, and image processing circuit
US20110129155A1 (en) * 2009-12-01 2011-06-02 Ryoma Oami Video signature generation device and method, video signature matching device and method, and program
CN102175296A (en) * 2011-02-24 2011-09-07 山东大学 Fast two-stage filter algorithm applied to high precision digital weighing sensor
CN104482949A (en) * 2014-12-29 2015-04-01 哈尔滨工业大学 Precise code zero offset and amplitude self-adaptation compensation method of optical-electricity encoder
CN105929335A (en) * 2016-04-11 2016-09-07 广东欧珀移动通信有限公司 Battery information sampling and processing method and device
CN107240240A (en) * 2017-05-24 2017-10-10 广东工业大学 A kind of vehicle wireless data acquisition system suitable for vehicle

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
尚耀波: "《基于信噪比的自适应门限判决PN码捕获算法》", 《南京邮电大学学报(自然科学版)》 *
赵文华: "《挖掘机电控***的研究与实现》", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023001230A1 (en) * 2021-07-23 2023-01-26 长春捷翼汽车零部件有限公司 Voltage filtering method for detecting point in circuit, switch state detecting method, and related apparatus

Similar Documents

Publication Publication Date Title
Tian et al. A review of the state of health for lithium-ion batteries: Research status and suggestions
CN103785629B (en) A kind of echelon utilizes lithium battery to screen grouping method
CN103464388B (en) Lithium ion battery screening method
CN103884993B (en) The SOC on-line checkingi of lithium ion battery in process of charging and modification method
CN106908737B (en) A kind of lithium ion battery life-span prediction method based on electrochemical reaction mechanism emulation
CN106684475A (en) Method for sorting lithium iron phosphate batteries
CN106824831A (en) A kind of manufacture method of the motive-power battery for improving lithium ion battery uniformity
CN104360284A (en) Novel detection method for self-discharge characteristics of lithium iron phosphate system power lithium ion batteries
CN107632265A (en) A kind of method for counting bearing power variation prediction fuel cell residual life
CN112526352B (en) SOH estimation method for retired lithium ion battery
CN108461858B (en) Screening method for echelon utilization of lithium titanate battery
CN103792446B (en) A kind of method of simulated battery discharge performance and realize the battery simulator of the method
CN108508365A (en) A kind of lithium ion battery self discharge screening technique
CN103096437A (en) Web of Things micro energy self-collecting micro electro mechanical systems (MEMS) sensing pre-storage system
CN103515663B (en) The charging device of power brick charging method and employing the method
CN112526353B (en) Method and device for rapidly detecting SOC of retired lithium ion power battery
CN212255614U (en) Lithium ion battery charging lithium-separating real-time detection system
CN207753126U (en) A kind of lithium battery management system
CN102814292B (en) Lithium ion battery consistency matching method and system
CN109188297A (en) A kind of data filtering methods and system based on STM32
CN108417916A (en) Consider the inconsistent battery sorting parameter determination method with aging co-evolution of battery
CN201466171U (en) Electric vehicle battery system with electricity utilization metering function
CN106786909A (en) The equalising control device in groups and control method of a kind of energy storage liquid metal cell
CN109768595A (en) A kind of series-connected cell group twin voltage mixed equilibrium control method
CN105576239A (en) Preparation process and application of Cu3P/C-Cu negative electrode material without binding agent

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190111