CN112162125A - Method for realizing simulation battery - Google Patents

Method for realizing simulation battery Download PDF

Info

Publication number
CN112162125A
CN112162125A CN202010955051.5A CN202010955051A CN112162125A CN 112162125 A CN112162125 A CN 112162125A CN 202010955051 A CN202010955051 A CN 202010955051A CN 112162125 A CN112162125 A CN 112162125A
Authority
CN
China
Prior art keywords
battery
analog battery
analog
microprocessor mcu
programmable
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
CN202010955051.5A
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.)
Dongguan Mingxin Technology Co ltd
Original Assignee
Dongguan Mingxin Technology 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 Dongguan Mingxin Technology Co ltd filed Critical Dongguan Mingxin Technology Co ltd
Priority to CN202010955051.5A priority Critical patent/CN112162125A/en
Publication of CN112162125A publication Critical patent/CN112162125A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R1/00Details of instruments or arrangements of the types included in groups G01R5/00 - G01R13/00 and G01R31/00
    • G01R1/28Provision in measuring instruments for reference values, e.g. standard voltage, standard waveform
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Abstract

The invention discloses a method for realizing a simulated battery, which comprises the following steps: supplying power to the analog battery, and initializing the system by the microprocessor MCU; during testing, after receiving the instruction, the microprocessor MCU executes a voltage output function; the upper computer sends a command through a UART/RS485 bus according to the requirements of the test steps, and reads the parameters of the output voltage and the output current of the analog battery; after the analog battery is electrified, the microprocessor MCU monitors and measures parameters of output voltage, output current and power supply temperature in real time; simulating a battery to detect overcurrent by using hardware; the battery reverse charging is implemented based on hardware detection. The method for realizing the analog battery is low in cost of a circuit realized by the method, solves the problem of high cost of a traditional programmable power supply test, solves the problem of equipment space limitation by using a small module design, and solves the problem of multi-module application by using an RS485 communication bus.

Description

Method for realizing simulation battery
Technical Field
The invention belongs to the technical field of intelligent equipment testing, and particularly relates to a method for realizing a simulated battery.
Background
The conventional programmable power supply is used for testing in the existing mobile phone testing scheme, the programmable power supply is used for realizing the testing, the power supply has the characteristics of large size and high price, and a long wire is required to be led out from the outside for connection in the use of multiple channels, so that the testing scheme is not suitable for the modularized design requirement.
The existing notebook computer test uses a real battery to carry out the test, and if the tested mainboard has a fault abnormality, the danger caused by overcurrent and overheating of the battery exists; the battery has a service life in charging and discharging, is not suitable for repeated test requirements, and has a short service life.
Therefore, the simulation battery can be used for replacing a real battery to carry out testing, and the problem of battery consumption caused by the problem of battery service life is solved; the modularized design reduces the space usage, and achieves the miniaturization and multi-channel design test scheme.
Disclosure of Invention
In view of the deficiencies of the prior art, the present invention provides a method for implementing an analog battery to solve the problems set forth in the background art.
In order to achieve the purpose, the invention provides the following technical scheme: a realization method of an analog battery comprises a programmable analog battery circuit used for the realization method, the programmable analog battery circuit is controlled by a microprocessor MCU, and the microprocessor MCU controls the test of the analog battery, which comprises the following steps:
s1, supplying power to the analog battery, and initializing the system by the microprocessor MCU;
s2, when testing, the upper computer sends a voltage output command through the UART/RS485 serial port communication interface according to the testing step, and the microprocessor MCU executes a voltage output function after receiving the command;
s3, the upper computer sends a command through a UART/RS485 bus according to the requirements of the test steps, and reads the parameters of the output voltage and the output current of the analog battery;
s4, after the battery is simulated to be electrified, the microprocessor MCU monitors and measures parameters of output voltage, output current and power supply temperature in real time;
s5, simulating the battery to use hardware to detect overcurrent, overvoltage and overheat modes to monitor abnormal states;
and S6, realizing reverse charging of the battery based on hardware detection.
Further optimizing the technical scheme, in the step S1, when the analog battery is powered, the DC24V is selected to power the analog battery.
Further optimizing the technical solution, in S1, the system initialization includes the following specific steps:
1) reading default setting parameters of the EEPROM through an I2C bus;
2) initializing the digital-to-analog conversion DAC and the analog-to-digital conversion ADC through the SPI bus;
3) the initialization setting is completed.
Further optimizing the technical solution, in S1, the setting content of the system initialization includes setting data parameters of a default value of the output voltage of the analog battery, a forward overcurrent protection value, a reverse overcurrent protection value, and a power-on slope.
Further optimizing the technical solution, in S6, when the external circuit performs reverse charging, the analog battery automatically starts and stops the electronic load by detecting the current direction, so as to achieve the purpose of reverse charging.
Further optimizing the technical scheme, the programmable analog battery circuit is provided with a digital-to-analog DAC (digital-to-analog converter) output voltage to control DC/DC conversion so as to realize the adjustment of the output voltage.
Further optimizing the technical scheme, the programmable analog battery circuit solves the voltage drop of the analog battery on the line in the large current by selecting a remote sampling compensation mode.
Further optimizing the technical scheme, in S6, the programmable analog battery circuit adopts hardware to monitor the output current direction, automatically controls the electronic load access, and meets the requirement of the high-transient reverse charging test.
Further optimizing the technical scheme, the programmable analog battery circuit adopts an RS485 mode for communication, so that a plurality of same modules are installed on the same equipment, and the multichannel control requirement is met.
According to the technical scheme, the programmable simulation battery circuit adopts a multi-range current measurement mode, and the requirements of heavy current measurement in normal work and weak current measurement in sleep work are met.
Compared with the prior art, the invention provides a method for realizing a simulated battery, which has the following beneficial effects:
1. according to the method for realizing the simulated battery, the battery of the electronic equipment such as a mobile phone and a notebook computer is simulated by using the circuit, a series of functions such as charging and discharging, voltage regulation, overvoltage, overcurrent and overheat protection are realized, the problem that the actual measurement needs to be carried out by using a real battery in the traditional method is solved, the safety in the test process is improved, and the problem that the service life of the actual battery exists in the test is solved.
2. The method for realizing the analog battery is low in circuit cost, solves the problem that the traditional programmable power supply is high in test cost, simultaneously solves the problems of equipment space limitation and the like by using a small module design, and solves the problem of multi-module application by using an RS485 communication bus.
Drawings
Fig. 1 is a functional block diagram of an analog battery implementation method according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, a method for implementing an analog battery includes a programmable analog battery circuit for the implementation method, the programmable analog battery circuit is controlled by a microprocessor MCU, and the microprocessor MCU controls an analog battery test, which includes the following steps:
s1, supplying power to the analog battery, and initializing the system by the microprocessor MCU;
s2, when testing, the upper computer sends a voltage output command through the UART/RS485 serial port communication interface according to the testing step, and the microprocessor MCU executes a voltage output function after receiving the command;
s3, the upper computer sends a command through a UART/RS485 bus according to the requirements of the test steps, and reads the parameters of the output voltage and the output current of the analog battery;
s4, after the battery is simulated to be electrified, the microprocessor MCU monitors and measures parameters of output voltage, output current and power supply temperature in real time;
s5, simulating the battery to use hardware to detect overcurrent, overvoltage and overheat modes to monitor abnormal states;
and S6, realizing reverse charging of the battery based on hardware detection.
Specifically, in S1, when power is supplied to the analog battery, the DC24V is selected to supply power to the analog battery.
Specifically, in S1, the setting content of the system initialization includes setting data parameters of a default value of the output voltage of the analog battery, a forward overcurrent protection value, a reverse overcurrent protection value, and a power-on slope.
Specifically, in S6, when the external circuit performs reverse charging, the analog battery automatically starts and stops the electronic load by detecting the current direction, so as to achieve the purpose of reverse charging.
Specifically, the programmable analog battery circuit sets the digital-to-analog DAC output voltage to control the DC/DC conversion to realize the adjustment of the output voltage.
Specifically, the programmable analog battery circuit solves the voltage drop of the analog battery on the line in a large current by selecting a remote sampling compensation mode.
Specifically, in S6, the programmable analog battery circuit monitors the output current direction using hardware, and automatically controls the electronic load to access, so as to meet the requirement of the high-transient reverse charging test.
Specifically, the programmable analog battery circuit selects an RS485 mode for communication, so that a plurality of same modules are installed on the same equipment by the programmable analog battery, and the multichannel control requirement is met.
Specifically, the programmable analog battery circuit adopts a multi-range current measurement mode, and meets the requirements of heavy current measurement during normal work and weak current measurement during sleep work.
Example two:
a realization method of an analog battery comprises a programmable analog battery circuit used for the realization method, the programmable analog battery circuit is controlled by a microprocessor MCU, and the microprocessor MCU controls the test of the analog battery, which comprises the following steps:
s1, supplying power to the analog battery, and initializing the system by the microprocessor MCU;
s2, when testing, the upper computer sends a voltage output command through the UART/RS485 serial port communication interface according to the testing step, and the microprocessor MCU executes a voltage output function after receiving the command;
s3, the upper computer sends a command through a UART/RS485 bus according to the requirements of the test steps, and reads the parameters of the output voltage and the output current of the analog battery;
s4, after the battery is simulated to be electrified, the microprocessor MCU monitors and measures parameters of output voltage, output current and power supply temperature in real time;
s5, simulating the battery to use hardware to detect overcurrent, overvoltage and overheat modes to monitor abnormal states;
and S6, realizing reverse charging of the battery based on hardware detection.
Specifically, in S1, when power is supplied to the analog battery, the DC24V is selected to supply power to the analog battery.
Specifically, in S1, the system initialization includes the following specific steps:
1) reading default setting parameters of the EEPROM through an I2C bus;
2) initializing the digital-to-analog conversion DAC and the analog-to-digital conversion ADC through the SPI bus;
3) the initialization setting is completed.
Specifically, in S6, when the external circuit performs reverse charging, the analog battery automatically starts and stops the electronic load by detecting the current direction, so as to achieve the purpose of reverse charging.
Specifically, the programmable analog battery circuit sets the digital-to-analog DAC output voltage to control the DC/DC conversion to realize the adjustment of the output voltage.
Specifically, the programmable analog battery circuit solves the voltage drop of the analog battery on the line in a large current by selecting a remote sampling compensation mode.
Specifically, in S6, the programmable analog battery circuit monitors the output current direction using hardware, and automatically controls the electronic load to access, so as to meet the requirement of the high-transient reverse charging test.
Specifically, the programmable analog battery circuit selects an RS485 mode for communication, so that a plurality of same modules are installed on the same equipment by the programmable analog battery, and the multichannel control requirement is met.
Specifically, the programmable analog battery circuit adopts a multi-range current measurement mode, and meets the requirements of heavy current measurement during normal work and weak current measurement during sleep work.
The invention has the beneficial effects that: according to the method for realizing the simulated battery, the battery of the electronic equipment such as a mobile phone and a notebook computer is simulated by using the circuit, a series of functions such as charging and discharging, voltage regulation, overvoltage, overcurrent and overheat protection are realized, the problem that the actual measurement needs to be carried out by using a real battery in the traditional method is solved, the safety in the test process is improved, and the problem that the service life of the actual battery exists in the test is solved.
The method for realizing the analog battery is low in circuit cost, solves the problem that the traditional programmable power supply is high in test cost, simultaneously solves the problems of equipment space limitation and the like by using a small module design, and solves the problem of multi-module application by using an RS485 communication bus.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (10)

1. A realization method of an analog battery is characterized by comprising a programmable analog battery circuit used for the realization method, wherein the programmable analog battery circuit is controlled by a microprocessor MCU (microprogrammed control Unit), and the microprocessor MCU is used for controlling the test of the analog battery, and the method comprises the following specific steps:
s1, supplying power to the analog battery, and initializing the system by the microprocessor MCU;
s2, when testing, the upper computer sends a voltage output command through the UART/RS485 serial port communication interface according to the testing step, and the microprocessor MCU executes a voltage output function after receiving the command;
s3, the upper computer sends a command through a UART/RS485 bus according to the requirements of the test steps, and reads the parameters of the output voltage and the output current of the analog battery;
s4, after the battery is simulated to be electrified, the microprocessor MCU monitors and measures parameters of output voltage, output current and power supply temperature in real time;
s5, simulating the battery to use hardware to detect overcurrent, overvoltage and overheat modes to monitor abnormal states;
and S6, realizing reverse charging of the battery based on hardware detection.
2. The method as claimed in claim 1, wherein in S1, when the analog battery is powered, DC24V is selected to power the analog battery.
3. The method of claim 1, wherein in S1, the system initialization includes the following specific steps:
1) reading default setting parameters of the EEPROM through an I2C bus;
2) initializing the digital-to-analog conversion DAC and the analog-to-digital conversion ADC through the SPI bus;
3) the initialization setting is completed.
4. The method of claim 1, wherein in S1, the setting content of the system initialization includes setting data parameters of the default value of the output voltage of the analog battery, the forward overcurrent protection value, the reverse overcurrent protection value, and the power-on slope.
5. The method as claimed in claim 1, wherein in S6, when the external circuit performs reverse charging, the analog battery automatically starts and stops the electronic load by detecting a current direction, so as to achieve the purpose of reverse charging.
6. The method of claim 1, wherein the programmable analog battery circuit sets the DAC output voltage to control the DC/DC conversion to adjust the output voltage.
7. The method of claim 1, wherein the programmable analog battery circuit is configured to account for voltage drop on the line of the analog battery at high current by using remote sampling compensation.
8. The method of claim 1, wherein in S6, the programmable analog battery circuit monitors the output current direction using hardware, and automatically controls the electronic load to be connected, so as to meet the requirement of high-transient reverse charging test.
9. The method for implementing the analog battery according to claim 1, wherein the programmable analog battery circuit adopts an RS485 mode for communication, so that a plurality of same modules are installed on the same equipment of the programmable analog battery, and the requirement of multi-channel control is met.
10. The method as claimed in claim 1, wherein the programmable analog battery circuit adopts a multi-range current measurement mode to meet the requirements of heavy current measurement during normal operation and weak current measurement during sleep operation.
CN202010955051.5A 2020-09-11 2020-09-11 Method for realizing simulation battery Pending CN112162125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010955051.5A CN112162125A (en) 2020-09-11 2020-09-11 Method for realizing simulation battery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010955051.5A CN112162125A (en) 2020-09-11 2020-09-11 Method for realizing simulation battery

Publications (1)

Publication Number Publication Date
CN112162125A true CN112162125A (en) 2021-01-01

Family

ID=73858987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010955051.5A Pending CN112162125A (en) 2020-09-11 2020-09-11 Method for realizing simulation battery

Country Status (1)

Country Link
CN (1) CN112162125A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495215A (en) * 2021-06-28 2021-10-12 清华大学深圳国际研究生院 Virtual battery cell system, operation method thereof and twin battery
CN116525977A (en) * 2023-06-30 2023-08-01 深圳市研盛芯控电子技术有限公司 Computer system based on support power battery

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346204A (en) * 2011-07-11 2012-02-08 毛广甫 Programmable controlled virtual battery module
CN203069688U (en) * 2012-11-22 2013-07-17 苏州工业园区世纪福科技有限公司 Power supply with functions of simulation battery
CN204304776U (en) * 2015-01-21 2015-04-29 航天长峰朝阳电源有限公司 Auto-compensation load terminal voltage type DC/DC converter
CN105388424A (en) * 2015-11-13 2016-03-09 中山大学 Battery cell simulator of power battery pack and corresponding BMS detection platform
CN106972578A (en) * 2017-04-27 2017-07-21 深圳市大仁科技有限公司 Automobile storage battery intelligent monitoring and prosthetic device
CN107968641A (en) * 2017-12-29 2018-04-27 生迪智慧科技有限公司 Load switching circuit, battery component and multi-power system
CN108877676A (en) * 2018-08-07 2018-11-23 京东方科技集团股份有限公司 Voltage-drop compensation method and device thereof, display device
CN109541483A (en) * 2018-12-19 2019-03-29 杭州协能科技股份有限公司 A kind of simulated battery system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346204A (en) * 2011-07-11 2012-02-08 毛广甫 Programmable controlled virtual battery module
CN203069688U (en) * 2012-11-22 2013-07-17 苏州工业园区世纪福科技有限公司 Power supply with functions of simulation battery
CN204304776U (en) * 2015-01-21 2015-04-29 航天长峰朝阳电源有限公司 Auto-compensation load terminal voltage type DC/DC converter
CN105388424A (en) * 2015-11-13 2016-03-09 中山大学 Battery cell simulator of power battery pack and corresponding BMS detection platform
CN106972578A (en) * 2017-04-27 2017-07-21 深圳市大仁科技有限公司 Automobile storage battery intelligent monitoring and prosthetic device
CN107968641A (en) * 2017-12-29 2018-04-27 生迪智慧科技有限公司 Load switching circuit, battery component and multi-power system
CN108877676A (en) * 2018-08-07 2018-11-23 京东方科技集团股份有限公司 Voltage-drop compensation method and device thereof, display device
CN109541483A (en) * 2018-12-19 2019-03-29 杭州协能科技股份有限公司 A kind of simulated battery system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495215A (en) * 2021-06-28 2021-10-12 清华大学深圳国际研究生院 Virtual battery cell system, operation method thereof and twin battery
CN113495215B (en) * 2021-06-28 2024-01-12 清华大学深圳国际研究生院 Virtual battery cell system, operation method thereof and twin battery
CN116525977A (en) * 2023-06-30 2023-08-01 深圳市研盛芯控电子技术有限公司 Computer system based on support power battery
CN116525977B (en) * 2023-06-30 2024-01-26 深圳市研盛芯控电子技术有限公司 Computer system based on support power battery

Similar Documents

Publication Publication Date Title
CN203312887U (en) DC emergency power supply
CN201707352U (en) Multi-input channel electric energy feedback type electronic load based on bus framework
CN202721471U (en) Mobile battery box
CN103713721B (en) Uninterruptible power system and power supply control system thereof
CN112162125A (en) Method for realizing simulation battery
CN103313003B (en) Readiness control circuit and television set
CN103162372B (en) Air-conditioner and RS485 bus system thereof and bus system control method
CN108242842B (en) Management device and method for parallel connection of different types of storage battery packs
CN111884197B (en) Intelligent direct current power distribution system
CN203377670U (en) Distributed intelligent direct current power supply
CN102761423B (en) The management-control method of rectification module in the power supply system for communications
CN112018870A (en) Direct-current power supply backup storage battery pack discharging remote control system and method
CN106160181A (en) A kind of uninterruptible power system
CN102842938A (en) Terminal controlling unit of storage battery charging/discharging distributed control system
CN104753132A (en) Power supply system and charging and discharging method thereof
CN109787349B (en) UPS circuit, power supply circuit and electronic equipment
CN208621942U (en) A kind of intelligent remote controlling terminal
CN103166294A (en) Distributed backup battery management system and corresponding electronic system
CN214473651U (en) Automatic testing and calibrating system for RMS power supply switching module
CN112039052B (en) Power supply device and control method thereof
JP7158916B2 (en) power system
CN209858976U (en) Modularized flexible load monitoring device
CN201629603U (en) Battery monitoring management system based on uninterruptible switch power source
CN219247508U (en) Outdoor power supply
CN216751292U (en) Standby power supply system for power grid transformer substation and power grid transformer substation with standby power supply system

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: 20210101