Electricity meter chip calibration system and method
By designing a battery meter chip calibration system and using automated control of the charging and discharging processes, the problems of manual operation prone to errors, low calibration accuracy and efficiency in the prior art are solved, and efficient and accurate intelligent calibration is achieved.
Patent Information
- Application Number
- CN202411855594.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-02-18
AI Technical Summary
The existing battery meter chip calibration methods rely on manual operation, are prone to errors, and have low calibration accuracy and efficiency, making it difficult to adapt to large-scale production.
A battery meter chip calibration system is designed, using a PC, DC power supply, analog battery, electronic load and calibration control module to automatically control the charging and discharge process through the charging control circuit and the discharge control circuit to achieve intelligent calibration.
Through automated calibration processes, manual operation errors are reduced, calibration accuracy and efficiency are improved, and suitable for large-scale production.
Smart Images

Figure CN119471553A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a system and method for calibrating a fuel gauge chip. Background Art
[0002] In addition to providing power metering chips, all fuel meter chip manufacturers also provide a set of methods for fuel meter calibration. The methods include a PC-side host calibration software and a communication tool to connect the PC and fuel meter. After the fuel meter is made into a product, the following steps need to be followed to calibrate the fuel meter. Otherwise, the product power data will have a large error, which may cause problems such as abnormal charging of the product, short usage time, abnormal power failure and shutdown. The specific operation process of calibration is as follows: the upper computer software downloads the initial parameters of the battery to the fuel gauge through the communication tool; the device is completely shut down to put the battery in a dormant state, neither charging nor discharging, and the upper computer sends an initial calibration command to the fuel gauge; the device is completely shut down, and the multi-terminal voltage of the battery is measured with a voltmeter, manually input into the upper computer software, and a voltage calibration command is issued to the fuel gauge; the ambient temperature value is read through a thermometer, manually input into the upper computer software, and a temperature calibration command is issued to the fuel gauge; the device is completely shut down, connected to a charger, reads the value of the ammeter connected in series with the battery, manually inputs into the upper computer software, and a charging current calibration command is issued to the fuel gauge; unplug the charger, turn on the device, read the value of the ammeter connected in series with the battery, manually inputs into the upper computer software, and a discharge current calibration command is issued to the fuel gauge; charge and discharge at the same time, read the voltage, current and temperature values of the fuel gauge, and compare them with the actual measured values to ensure a successful calibration. If the values differ greatly, the above steps need to be repeated.
[0003] The above calibration method has the following defects: the operation basically relies on manual labor and is prone to errors; the current calibration is most accurate only when the battery power is about 50%, and this solution cannot ensure that the battery power is always maintained at around 50%; the calibration process is too complicated and inefficient, and is not suitable for mass production. Summary of the invention
[0004] The purpose of the present invention is to provide a fuel gauge chip calibration system to solve the problems raised in the above background technology. To achieve the above purpose, the present invention provides the following technical solutions:
[0005] A fuel gauge chip calibration system comprises a PC, a DC power supply, a simulated battery, an electronic load, a simulated battery, a fuel gauge calibration device, and a calibration host, wherein the calibration host comprises a charging control circuit, a discharging control circuit, and a calibration control module; the DC power supply charges the simulated battery through the charging control circuit, and the simulated battery supplies power to the electronic load through the discharging control circuit, and the charging control circuit and the discharging control circuit are respectively connected to a chip to be calibrated.
[0006] Furthermore, the charging control circuit includes a MOS tube Q6 and a transistor Q1, the S pole of the MOS tube Q6 is connected to the power supply end, the D pole of the MOS tube Q6 is connected to the C pole of the transistor Q1, and the G pole of the MOS tube Q6 is connected to the TYPE-C interface J4, which is used to control the TYPE-C interface J4 to be turned on or off. The TYPE-C interface J4 is connected to the DC power supply, the e pole of the transistor Q1 is grounded, and the b pole of the transistor Q1 is connected to the calibration control module.
[0007] Furthermore, the discharge control circuit includes a MOS tube Q2 and a transistor Q3, the S pole of the MOS tube Q2 is connected to the power supply end, the D pole of the MOS tube Q2 is connected to the C pole of the transistor Q1, and the G pole of the MOS tube Q2 is connected to the electronic load for controlling TYPE-C to be turned on or off, the TYPE-C is connected to the power supply end, the e pole of the transistor Q2 is grounded, and the b pole of the transistor Q3 is connected to the calibration control module.
[0008] Furthermore, the calibration control module includes a chip U4 of model ESP32 MINI1.
[0009] A method for calibrating a fuel gauge chip, using the fuel gauge chip calibration system described above, comprises the following steps:
[0010] S1: PC sends automatic calibration instructions to the calibration control module;
[0011] S2: After receiving the automatic calibration instruction, the calibration control module controls the charging control circuit and the discharging control circuit to be turned off;
[0012] S3: The calibration control module sends battery parameters to the simulated battery to start the simulated battery operation;
[0013] S4: The calibration control module sends working parameters, initial calibration instructions, voltage calibration instructions, and temperature calibration instructions to the chip to be calibrated.
[0014] S5: The calibration control module controls the charging control circuit to start, reads the charging current of the simulated battery; and sends a calibration charging current instruction to the chip to be calibrated based on the charging current;
[0015] S6: The calibration control module controls the charging control circuit to be turned off and the discharging control circuit to be turned on, reads the discharge current of the simulated battery, and sends a calibration discharge current instruction to the chip to be calibrated based on the discharge current;
[0016] S7: The calibration control module controls the charging control circuit to open, reads the voltage and current values of the simulated battery and the voltage and current values of the chip to be calibrated, and verifies whether the voltage and current values of the two are consistent.
[0017] Furthermore, the calibration host sends calibration instructions and reads status parameters of the chip to be calibrated via a communication bus.
[0018] Furthermore, the PC communicates with the calibration host via a USB / serial port.
[0019] Beneficial effects:
[0020] The present invention has the following advantages:
[0021] All data that needs to be read and input manually will be changed to intelligent ones to eliminate data errors. All manual operations will be changed to intelligent control, such as turning the machine on and off, measuring voltage, plugging and unplugging chargers, etc., to improve production efficiency. Analog devices will be used instead of batteries to keep the power level at around 50% at all times to ensure calibration accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 This is the principle structure diagram of the fuel gauge chip calibration system;
[0023] Figure 2 This is the circuit structure diagram of the calibration control module;
[0024] Figure 3 It is the structure diagram of the discharge control circuit;
[0025] Figure 4 This is the structural diagram of the charging control circuit;
[0026] Figure 5 This is a structural diagram of a portion of the electricity meter calibration device;
[0027] Figure 6 This is a structural diagram of another part of the electricity meter calibration device;
[0028] Figure 7 This is a simulated battery circuit structure diagram for 2 strings of cells. DETAILED DESCRIPTION
[0029] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] See Figures 1 to 6The present invention provides a fuel gauge chip calibration system, comprising a PC, a DC power supply, a simulated battery, an electronic load, a simulated battery, a fuel gauge calibration device, and a calibration host, wherein the calibration host comprises a charging control circuit, a discharging control circuit, and a calibration control module; the DC power supply charges the simulated battery through the charging control circuit, and the simulated battery supplies power to the electronic load through the discharging control circuit, and the charging control circuit and the discharging control circuit are respectively connected to a chip to be calibrated;
[0031] Furthermore, the charging control circuit includes a MOS tube Q6 and a transistor Q1, the S pole of the MOS tube Q6 is connected to the power supply end, the D pole of the MOS tube Q6 is connected to the C pole of the transistor Q1, and the G pole of the MOS tube Q6 is connected to the TYPE-C interface J4, which is used to control the TYPE-C interface J4 to be turned on or off. The TYPE-C interface J4 is connected to the DC power supply, the e pole of the transistor Q1 is grounded, and the b pole of the transistor Q1 is connected to the calibration control module.
[0032] Among them, MOS tube Q6, transistor Q1 and surrounding resistors form a charging control circuit. When the CC_ON_OFF signal is low, the transistor Q1 and MOS tube Q6 are not turned on, and the charging power supply is disconnected. When the CC_ON_OFF signal is high, the transistor Q1 and MOS tube Q6 are turned on, and the charging power supply is turned on.
[0033] Furthermore, the discharge control circuit includes a MOS tube Q2 and a transistor Q3, the S pole of the MOS tube Q2 is connected to the power supply end, the D pole of the MOS tube Q2 is connected to the C pole of the transistor Q1, and the G pole of the MOS tube Q2 is connected to the electronic load for controlling TYPE-C to be turned on or off, the TYPE-C is connected to the power supply end, the e pole of the transistor Q2 is grounded, and the b pole of the transistor Q3 is connected to the calibration control module.
[0034] MOS tube Q2, transistor Q3 and surrounding resistors together form a switch of the discharge circuit. When the LOAD_ON signal is low, MOS tube Q2 and transistor Q3 are not conducting, and the discharge circuit is disconnected. When the LOAD_ON signal is high, MOS tube Q2 and transistor Q3 are conducting, and the discharge circuit is opened.
[0035] The calibration control module includes a chip U4 of model ESP32 MINI1;
[0036] The electric meter calibration device includes a TYPE_C interface J1, a chip U17 (model: ETA6123), a chip U5 (model NS2582), and a chip Q5 (model TFD130N04N) connected in sequence;
[0037] During charging, the current comes out from the positive electrode of the DC power supply and flows through the MOS tube Q6, TYPE_C interface J4, TYPE_C interface J1, chip U17, chip U5, chip Q5, and interface J2 of the fuel gauge calibration device in sequence, and then passes through interface J6 in the "2-cell simulated battery circuit" to flow into the positive electrode of the simulated battery, and then returns to the battery interface J2 from the negative electrode of the simulated battery through interface J6 in the "2-cell simulated battery circuit". After being sampled by the sampling resistor R46, it flows back to the negative electrode of the DC power supply. The sampling resistor R46 is connected to the chip to be calibrated U6 for transmitting the signal to the chip to be calibrated U6.
[0038] During discharge, the current flows from the positive electrode of the simulated battery through the interface J6 in the "2-cell simulated battery circuit", the interface J2 of the fuel gauge calibration device - chip Q5, the interface J14 of the discharge control circuit, the MOS tube Q2, and the interface J9 of the discharge control circuit to the positive electrode of the electronic load, and then through the negative electrode of the electronic load to the interface J10 of the discharge control circuit, and after being sampled by the sampling resistor R46, it reaches the interface J2, passes through J6 in the "2-cell simulated battery circuit", and returns to the negative electrode of the simulated battery. The sampling resistor R46 is connected to the chip to be calibrated U6 for transmitting the signal to the chip to be calibrated U6.
[0039] The present invention also provides a method for calibrating an electric meter, which adopts the above electric meter calibration system and comprises the following steps:
[0040] S1: PC sends automatic calibration instructions to the calibration control module;
[0041] S2: After receiving the automatic calibration instruction, the calibration control module controls the charging control circuit and the discharging control circuit to be turned off;
[0042] S3: The calibration control module sends battery parameters to the simulated battery to start the simulated battery operation;
[0043] S4: The calibration control module sends working parameters, initial calibration instructions, voltage calibration instructions, and temperature calibration instructions to the chip to be calibrated.
[0044] S5: The calibration control module controls the charging control circuit to start, reads the charging current of the simulated battery; and sends a calibration charging current instruction to the chip to be calibrated based on the charging current;
[0045] S6: The calibration control module controls the charging control circuit to be turned off and the discharging control circuit to be turned on, reads the discharge current of the simulated battery, and sends a calibration discharge current instruction to the chip to be calibrated based on the discharge current;
[0046] S7: The calibration control module controls the charging control circuit to open, reads the voltage and current values of the simulated battery and the voltage and current values of the chip to be calibrated, and verifies whether the voltage and current values of the two are consistent.
[0047] The above is only a preferred embodiment of the present invention, and does not limit the present invention in any form. The protection scope of the present invention shall be subject to the protection scope of the claims. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical content disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of the technical solution of the present invention.
Claims
1. A fuel gauge chip calibration system, comprising a PC, a DC power supply, a simulated battery, an electronic load, a simulated battery, a fuel gauge calibration device, and a calibration host, wherein the calibration host comprises a charging control circuit, a discharging control circuit, and a calibration control module; the DC power supply charges the simulated battery through the charging control circuit, and the simulated battery supplies power to the electronic load through the discharging control circuit, and the charging control circuit and the discharging control circuit are respectively connected to a chip to be calibrated.
2. The fuel gauge chip calibration system according to claim 1, characterized in that: The charging control circuit includes a MOS tube Q6 and a transistor Q1, the S pole of the MOS tube Q6 is connected to the power supply end, the D pole of the MOS tube Q6 is connected to the C pole of the transistor Q1, and the G pole of the MOS tube Q6 is connected to the TYPE-C interface J4, which is used to control the TYPE-C interface J4 to be turned on or off. The TYPE-C interface J4 is connected to the DC power supply, the e pole of the transistor Q1 is grounded, and the b pole of the transistor Q1 is connected to the calibration control module.
3. The fuel gauge chip calibration system according to claim 1, characterized in that: The discharge control circuit includes a MOS tube Q2 and a transistor Q3, wherein the S pole of the MOS tube Q2 is connected to the power supply end, the D pole of the MOS tube Q2 is connected to the C pole of the transistor Q1, and the G pole of the MOS tube Q2 is connected to the electronic load for controlling TYPE-C to be turned on or off. The TYPE-C is connected to the power supply end, the e pole of the transistor Q2 is grounded, and the b pole of the transistor Q3 is connected to the calibration control module.
4. The fuel gauge chip calibration system according to claim 1, characterized in that: The calibration control module includes a chip U4 of model ESP32 MINI1.
5. A method for calibrating a fuel gauge chip, using the fuel gauge chip calibration system according to claim 1, characterized in that: The following steps are involved: S1: PC sends automatic calibration instructions to the calibration control module; S2: After receiving the automatic calibration instruction, the calibration control module controls the charging control circuit and the discharging control circuit to be turned off; S3: The calibration control module sends battery parameters to the simulated battery to start the simulated battery operation; S4: The calibration control module sends working parameters, initial calibration instructions, voltage calibration instructions, and temperature calibration instructions to the chip to be calibrated. S5: The calibration control module controls the charging control circuit to start, reads the charging current of the simulated battery; and sends a calibration charging current instruction to the chip to be calibrated based on the charging current; S6: The calibration control module controls the charging control circuit to be turned off and the discharging control circuit to be turned on, reads the discharge current of the simulated battery, and sends a calibration discharge current instruction to the chip to be calibrated based on the discharge current; S7: The calibration control module controls the charging control circuit to open, reads the voltage and current values of the simulated battery and the voltage and current values of the chip to be calibrated, and verifies whether the voltage and current values of the two are consistent.
6. A method for calibrating a fuel gauge chip according to claim 5, characterized in that: The calibration host sends calibration instructions and reads status parameters of the chip to be calibrated via the communication bus.
7. A method for calibrating a fuel gauge chip according to claim 5, characterized in that: The PC communicates with the calibration host via a USB / serial port.