Voltage signal processing method and device, electronic equipment and computer program product

By using a real-time acquisition and separation voltage signal processing method, the problem of difficulty in balancing control accuracy and voltage reference value readability in existing battery charging circuits is solved, achieving high accuracy and readability of voltage output, which is suitable for status monitoring and display during battery charging.

CN121663748APending Publication Date: 2026-03-13UBTECH ROBOTICS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-28
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing battery charging circuit designs struggle to balance control precision and the readability of voltage reference values. In particular, during battery charging, current technologies cannot separate the actual voltage output from the reference value.

Method used

By acquiring raw voltage signals in real time, determining the current voltage output value based on the acquisition frequency, and uploading the current voltage reference value at a reporting frequency lower than the acquisition frequency, the voltage reference value is adjusted using the difference or step value between the historical voltage reference value and the current voltage output value, thereby achieving separation between the actual voltage output and the reference value.

Benefits of technology

It achieves high control precision of actual voltage output and high readability of voltage reference value, ensuring the stability and reliability of voltage output, and is suitable for status monitoring and display during battery charging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121663748A_ABST
    Figure CN121663748A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of signal processing, and provides a voltage signal processing method and device, electronic equipment and a computer program product. The voltage signal processing method comprises the following steps: acquiring an original voltage signal in real time at an acquisition frequency; determining a current voltage output value based on the original voltage signal, and performing voltage output according to the current voltage output value; a current voltage reference value is uploaded according to the reporting frequency, the current voltage reference value is determined based on the current voltage output value and a historical voltage reference value, and the reporting frequency is lower than the collection frequency. According to the embodiment of the invention, the actual output and the voltage reference value of the voltage can be separated, and the control precision and the readability of the voltage reference value are both considered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of signal processing technology, and in particular relates to a voltage signal processing method, apparatus, electronic device and computer program product. Background Technology

[0002] A battery charging circuit is an electronic system that enables safe and efficient charging of batteries. Its core function is to convert power into voltage and current suitable for the battery type, while preventing risks such as overcharging, overcurrent, and short circuits through protection mechanisms. Current battery charging circuit designs often use simple mean filtering or hardware filtering circuits to output the actual voltage and perform signal simulation, making it difficult to balance control accuracy and the readability of voltage reference values. Summary of the Invention

[0003] This application provides a voltage signal processing method, apparatus, electronic device, and computer program product that can balance control accuracy and voltage reference value readability.

[0004] The first aspect of this application provides a voltage signal processing method, comprising: acquiring a raw voltage signal in real time at an acquisition frequency; determining a current voltage output value based on the raw voltage signal, and outputting a voltage according to the current voltage output value; and uploading a current voltage reference value at a reporting frequency, wherein the current voltage reference value is determined based on the current voltage output value and historical voltage reference values, and the reporting frequency is lower than the acquisition frequency.

[0005] In some embodiments of the first aspect, the determination of the current voltage reference value includes: calculating the difference between the current voltage output value and the historical voltage reference value; when the absolute value of the difference is less than or equal to a preset threshold, using the historical voltage reference value as the current voltage reference value; when the difference is greater than the preset threshold, using the sum of the historical voltage reference value and the step value as the current voltage reference value; and when the difference is less than a negative value of the preset threshold, using the difference between the historical voltage reference value and the step value as the current voltage reference value.

[0006] In some embodiments of the first aspect, determining the current voltage output value based on the original voltage signal includes: acquiring a historical voltage signal; calculating an average voltage signal of the original voltage signal and the historical voltage signal; and determining the current voltage output value based on the average voltage signal.

[0007] In some embodiments of the first aspect, determining the current voltage output value based on the average voltage signal includes: acquiring a reference voltage and the resolution of the digital-to-analog converter; and dividing the product of the average voltage signal and the reference voltage by the resolution to obtain the current voltage output value.

[0008] In some embodiments of the first aspect, the historical voltage signal is stored in a ring buffer.

[0009] In some embodiments of the first aspect, the voltage output is used to charge the battery; the voltage signal processing method further includes: dynamically adjusting the acquisition frequency within a single upload cycle of the current voltage reference value according to the charging state of the battery.

[0010] In some embodiments of the first aspect, the voltage signal processing method further includes: calculating the voltage change rate based on the current voltage output value; increasing the acquisition frequency and / or decreasing the reporting frequency when the voltage change rate exceeds a first threshold; and decreasing the acquisition frequency and / or increasing the reporting frequency when the voltage change rate is lower than a second threshold.

[0011] A voltage signal processing apparatus provided in a second aspect of this application includes: a voltage signal acquisition unit for acquiring raw voltage signals in real time at an acquisition frequency; a voltage output unit for determining a current voltage output value based on the raw voltage signal and outputting a voltage based on the current voltage output value; and a voltage reference value uploading unit for uploading a current voltage reference value at a reporting frequency, wherein the current voltage reference value is determined based on the current voltage output value and historical voltage reference values, and the reporting frequency is lower than the acquisition frequency.

[0012] A third aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor; the processor executes the computer program to implement the steps of the voltage signal processing method described above.

[0013] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the voltage signal processing method described above.

[0014] The fifth aspect of this application provides a computer program product that, when the computer program is run, causes the voltage signal processing method described above to be executed.

[0015] In the embodiments of this application, the original voltage signal is acquired in real time at the acquisition frequency, the current voltage output value is determined based on the original voltage signal, and the voltage is output according to the current voltage output value. Then, the current voltage reference value is uploaded at the reporting frequency. The current voltage reference value is determined based on the current voltage output value and historical voltage reference values. Since the reporting frequency is lower than the acquisition frequency, the actual voltage output and the voltage reference value can be separated, taking into account both the control accuracy of the actual voltage output and the readability of the voltage reference value. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram illustrating the implementation flow of a voltage signal processing method provided in an embodiment of this application;

[0018] Figure 2 This is a schematic diagram of voltage signal processing performed by the microprocessor provided in the embodiments of this application;

[0019] Figure 3 This is a schematic diagram of the structure of a voltage signal processing device provided in an embodiment of this application;

[0020] Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are protected by this application.

[0022] A battery charging circuit is an electronic system that enables safe and efficient charging of batteries. Its core function is to convert power into voltage and current suitable for the battery type, while preventing risks such as overcharging, overcurrent, and short circuits through protection mechanisms. Current battery charging circuit designs often employ simple mean filtering or hardware filtering circuits to output the actual voltage and perform signal simulation, making it difficult to balance control accuracy and voltage reference value readability. Therefore, this application proposes a voltage signal processing method that can separate the actual voltage output from the voltage reference value, balancing control accuracy and voltage reference value readability.

[0023] To illustrate the technical solution of this application, specific embodiments are described below.

[0024] Figure 1This illustration shows a schematic flowchart of a voltage signal processing method provided in an embodiment of this application. This method can be applied to electronic devices. The aforementioned electronic devices can refer to intelligent devices such as computers and smartphones, or devices with autonomous mobility capabilities such as unmanned vehicles and robots; this application does not impose any limitations on this.

[0025] Specifically, the voltage signal processing method described above may include the following steps S101 to S104.

[0026] Step S101: Acquire the raw voltage signal in real time at the acquisition frequency.

[0027] In the embodiments of this application, the raw voltage signal is a digital signal generated based on power demand. The electronic device can acquire the raw voltage signal in real time according to a preset acquisition frequency. The acquisition frequency can be adjusted according to actual needs, for example, acquiring the raw voltage signal once every 1ms.

[0028] Step S102: Determine the current voltage output value based on the original voltage signal, and output the voltage according to the current voltage output value.

[0029] The current voltage output value is an analog signal converted from the original voltage signal, and it serves as the actual voltage output value within the circuit. The output voltage is then used for functions requiring voltage support, such as battery charging and driving mechanical devices.

[0030] Step S103: Upload the current voltage reference value at the reporting frequency.

[0031] Among them, the voltage reference value refers to a derived electrical parameter used for status monitoring. This voltage reference value is not the actual output voltage in the circuit, but it can reflect the voltage output situation and can be used for functions such as operator interface display, historical trend recording, remote status monitoring, system performance analysis, and alarm threshold comparison.

[0032] In the embodiments of this application, the reporting frequency is lower than the acquisition frequency, and the specific value can be set according to the actual situation, for example, the reporting frequency is once every 6 seconds. That is to say, compared with the acquisition frequency, the current voltage reference value can be determined and uploaded at a lower frequency. The current voltage reference value is the voltage reference value that needs to be uploaded now, and it can be determined based on the current voltage output value and historical voltage reference values. Historical voltage reference values ​​are the voltage reference values ​​that have been uploaded in the past.

[0033] In this way, the actual voltage output can be based on the current voltage output value that is actually needed, resulting in higher control precision. The current voltage reference value is related to the current voltage output value and can reflect the actual output situation. However, the actual value is different from the upload frequency and needs to be obtained by combining historical voltage reference values. Therefore, the voltage reference value will not change abruptly with the fluctuation of the current voltage output value, making it more readable.

[0034] In the embodiments of this application, the original voltage signal is acquired in real time at the acquisition frequency, the current voltage output value is determined based on the original voltage signal, and the voltage is output according to the current voltage output value. Then, the current voltage reference value is uploaded at the reporting frequency. The current voltage reference value is determined based on the current voltage output value and historical voltage reference values. Since the reporting frequency is lower than the acquisition frequency, the actual voltage output and the voltage reference value can be separated, taking into account both the control accuracy of the actual voltage output and the readability of the voltage reference value.

[0035] In some embodiments of this application, please refer to Figure 2 The electronic device is equipped with a microcontroller unit (MCU), which has a built-in analog-to-digital converter (ADC) and a storage module. The ADC can continuously acquire the raw voltage signal at the acquisition frequency and store it in the storage module.

[0036] In some embodiments of this application, the storage module may refer to a circular buffer that uses a first-in-first-out (FIFO) queue. When the circular buffer is full, the newly stored original voltage signal can automatically overwrite the oldest data to ensure that the data is updated in real time.

[0037] In some embodiments of this application, determining the current voltage output value based on the original voltage signal may include: acquiring historical voltage signals, calculating the average voltage signal of the original voltage signal and the historical voltage signals, and determining the current voltage output value based on the average voltage signal.

[0038] Specifically, historical voltage signals can be stored in a circular buffer. By using the original voltage signal and historical voltage signals as samples, the sum of all sample values ​​divided by the number of samples yields the average voltage signal.

[0039] In some embodiments of this application, determining the current voltage output value based on the average voltage signal may include: obtaining a reference voltage and the resolution of the digital-to-analog converter, multiplying the average voltage signal by the reference voltage, dividing by the resolution, and obtaining the current voltage output value.

[0040] For example, please refer to Figure 2The electronic device can read raw and historical voltage signals from the storage module. Specifically, the circular buffer can store 1000 raw and historical voltage signals. Dividing the sum of the 1000 data points in the circular buffer by 1000 yields the average voltage signal. This average voltage signal can then be converted to a voltage value, and the current output voltage can be expressed as V. out =ADC value ×V ref / ADC resolution V ref As the reference voltage, ADC resolution For the resolution of the digital-to-analog converter, ADC value This is the average voltage signal.

[0041] In some embodiments of this application, the determination of the current voltage reference value may include: calculating the difference between the current voltage output value and a historical voltage reference value. When the absolute value of the difference is less than or equal to a preset threshold, the historical voltage reference value is used as the current voltage reference value. When the difference is greater than the preset threshold, the sum of the historical voltage reference value and the step value is used as the current voltage reference value. When the difference is less than a negative value of the preset threshold, the difference between the historical voltage reference value and the step value is used as the current voltage reference value.

[0042] Specifically, the historical voltage reference value can refer to the historical voltage reference value V of the previous output. last Please refer to this. Figure 2 It can be used to measure the current voltage value V. out Compared with historical voltage reference value V last Perform a voltage comparison. If the absolute value of the difference is |V out -V last | Less than or equal to the preset threshold V th Then the historical voltage reference value V last Output as the current voltage reference value. If V out -V last Greater than V th The sum of historical voltage reference value and step value V last +V step This serves as the current voltage reference value. If V out -V last <-V th At this point, the difference V between the historical voltage reference value and the step value can be used. last -V step Used as a reference value for the current voltage.

[0043] Wherein, step value V step It can be set to a preset threshold V step It can also be set to other values ​​according to the actual situation.

[0044] In some embodiments of this application, the absolute value of the difference |V can be used as a basis. out -V last | Dynamically adjust the step value; for example, the larger the absolute value of the difference, the larger the step value. Specifically, the step value V step It can be represented as: V step =max(V min ,min(V max ,k×∣V out -V last ∣)). Among them, V max and V min These represent the maximum and minimum step values, respectively. k is a preset adjustment coefficient.

[0045] In other embodiments of this application, the step value V step =(V max -V min ) / (T response ×f report ), where T response f represents the system response time. report This indicates the reporting frequency. This allows the step value to be adjusted according to the system response time requirements.

[0046] In some embodiments of this application, the current voltage reference value may be written to a register or sent to a communication interface to upload the current voltage reference value.

[0047] In some embodiments of this application, the voltage output can be used to charge the battery. The voltage signal processing method may further include: dynamically adjusting the acquisition frequency within a single upload cycle of the current voltage reference value based on the battery's state of charge.

[0048] Specifically, when the battery is in constant current charging, the voltage rises rapidly, and the first sampling frequency can be used. When the battery is in constant voltage charging, the voltage rises slowly, and the second sampling frequency can be used. The first sampling frequency is higher than the second sampling frequency.

[0049] Therefore, within a single upload cycle, the original voltage signal can be acquired based on the dynamic acquisition frequency, and the current voltage reference value can be determined based on the original voltage signal and the historical voltage signal. This allows the current voltage reference value to simultaneously reference a large number of samples when the voltage changes rapidly under constant current charging and a small number of samples when the voltage changes slowly under constant voltage charging, making the current voltage reference value smoother and more consistent with the charging characteristics.

[0050] In other embodiments of this application, the voltage signal processing method may further include: calculating the voltage change rate based on the current voltage output value; increasing the acquisition frequency and / or decreasing the reporting frequency when the voltage change rate exceeds a first threshold; and decreasing the acquisition frequency and / or increasing the reporting frequency when the voltage change rate is lower than a second threshold.

[0051] Specifically, based on the current voltage output value and historical voltage output values, the rate of change of the voltage output can be calculated. When the rate of change of voltage exceeds a first threshold, the acquisition frequency can be increased and / or the reporting frequency can be decreased, thereby improving voltage control accuracy when the voltage changes rapidly and reducing the resources occupied by uploading the current voltage reference value to the original voltage signal acquisition. When the rate of change of voltage exceeds the first threshold, the acquisition frequency is decreased and / or the reporting frequency is increased, so that the current voltage reference value approaches the current voltage output value more quickly.

[0052] It should be noted that, for the sake of simplicity, the aforementioned method embodiments are described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because based on this application, some steps can be performed in other orders.

[0053] like Figure 3 The diagram shown is a structural schematic of a voltage signal processing device 300 provided in an embodiment of this application. The voltage signal processing device 300 is disposed on an electronic device.

[0054] Specifically, the voltage signal processing device 300 may include:

[0055] The voltage signal acquisition unit 301 is used to acquire the raw voltage signal in real time at the acquisition frequency.

[0056] The voltage output unit 302 is used to determine the current voltage output value based on the original voltage signal, and to output voltage according to the current voltage output value;

[0057] The voltage reference value uploading unit 303 is used to upload the current voltage reference value at the reporting frequency, wherein the current voltage reference value is determined based on the current voltage output value and historical voltage reference values, and the reporting frequency is lower than the acquisition frequency.

[0058] In some embodiments of this application, the voltage reference value uploading unit 303 can be used to: calculate the difference between the current voltage output value and the historical voltage reference value; when the absolute value of the difference is less than or equal to a preset threshold, use the historical voltage reference value as the current voltage reference value; when the difference is greater than the preset threshold, use the sum of the historical voltage reference value and the step value as the current voltage reference value; when the difference is less than the negative value of the preset threshold, use the difference between the historical voltage reference value and the step value as the current voltage reference value.

[0059] In some embodiments of this application, the voltage output unit 302 can be used to: acquire historical voltage signals; calculate an average voltage signal between the original voltage signal and the historical voltage signals; and determine the current voltage output value based on the average voltage signal.

[0060] In some embodiments of this application, the voltage output unit 302 can be used to: obtain a reference voltage and the resolution of the digital-to-analog converter; and divide the product of the average voltage signal and the reference voltage by the resolution to obtain the current voltage output value.

[0061] In some embodiments of this application, historical voltage signals are stored in a ring buffer.

[0062] In some embodiments of this application, the voltage output is used to charge the battery; the voltage signal processing device 300 also includes a frequency adjustment unit, which can be used to dynamically adjust the acquisition frequency within a single upload cycle of the current voltage reference value according to the charging state of the battery.

[0063] In some embodiments of this application, the frequency adjustment unit can be used to: calculate the voltage change rate based on the current voltage output value; increase the acquisition frequency and / or decrease the reporting frequency when the voltage change rate exceeds a first threshold; and decrease the acquisition frequency and / or increase the reporting frequency when the voltage change rate is lower than a second threshold.

[0064] It should be noted that, for the sake of convenience and brevity, the specific working process of the voltage signal processing device 300 described above can be found in the following reference: Figures 1 to 2 The corresponding process of the method will not be described in detail here.

[0065] like Figure 4 The diagram shown is a schematic representation of an electronic device provided in an embodiment of this application. Specifically, the electronic device 4 may include: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40, such as a voltage signal processing program. When the processor 40 executes the computer program 42, it implements the steps in the various voltage signal processing method embodiments described above, for example... Figure 1 The steps S101 to S103 are shown. Alternatively, when the processor 40 executes the computer program 42, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 3 The functions of the voltage signal acquisition unit 301, voltage output unit 302, and voltage reference value upload unit 303 shown are illustrated.

[0066] The computer program can be divided into one or more modules / units, which are stored in the memory 41 and executed by the processor 40 to complete this application. The one or more modules / units can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the electronic device.

[0067] For example, the computer program can be divided into: a voltage signal acquisition unit, a voltage output unit, and a voltage reference value uploading unit. The specific functions of each unit are as follows: the voltage signal acquisition unit is used to acquire raw voltage signals in real time at an acquisition frequency; the voltage output unit is used to determine the current voltage output value based on the raw voltage signal and output voltage according to the current voltage output value; the voltage reference value uploading unit is used to upload the current voltage reference value at a reporting frequency, wherein the current voltage reference value is determined based on the current voltage output value and historical voltage reference values, and the reporting frequency is lower than the acquisition frequency.

[0068] The electronic device may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will understand that... Figure 4 This is merely an example of an electronic device and does not constitute a limitation on the electronic device. It may include more or fewer components than illustrated, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.

[0069] The processor 40 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), off-the-shelf programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0070] The memory 41 can be an internal storage unit of the electronic device, such as a hard drive or memory. The memory 41 can also be an external storage device of the electronic device, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 41 can include both internal and external storage units. The memory 41 is used to store the computer program and other programs and data required by the electronic device. The memory 41 can also be used to temporarily store data that has been output or will be output.

[0071] It should be noted that, for the sake of convenience and brevity, the structure of the above-mentioned electronic device can also be referred to the specific description of the structure in the method embodiment, which will not be repeated here.

[0072] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0073] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0074] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for various specific applications, but such implementations should not be considered beyond the scope of this application.

[0075] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0076] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected based on actual needs to achieve the purpose of this embodiment.

[0077] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0078] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0079] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A voltage signal processing method, characterized in that, include: The raw voltage signal is acquired in real time at the acquisition frequency; The current voltage output value is determined based on the original voltage signal, and the voltage is output according to the current voltage output value; The current voltage reference value is uploaded at the above reporting frequency, wherein the current voltage reference value is determined based on the current voltage output value and historical voltage reference values, and the reporting frequency is lower than the acquisition frequency.

2. The voltage signal processing method as described in claim 1, characterized in that, The current voltage reference value is determined by the following methods: Calculate the difference between the current voltage output value and the historical voltage reference value; When the absolute value of the difference is less than or equal to a preset threshold, the historical voltage reference value is used as the current voltage reference value; When the difference is greater than the preset threshold, the sum of the historical voltage reference value and the step value is used as the current voltage reference value; When the difference is less than the negative value of the preset threshold, the difference between the historical voltage reference value and the step value is used as the current voltage reference value.

3. The voltage signal processing method as described in claim 1, characterized in that, Determining the current voltage output value based on the original voltage signal includes: Acquire historical voltage signals; Calculate the average voltage signal of the original voltage signal and the historical voltage signal; The current voltage output value is determined based on the average voltage signal.

4. The voltage signal processing method as described in claim 3, characterized in that, Determining the current voltage output value based on the average voltage signal includes: Obtain the reference voltage and the resolution of the digital-to-analog converter; The current voltage output value is obtained by multiplying the average voltage signal by the reference voltage and dividing by the resolution.

5. The voltage signal processing method as described in claim 3, characterized in that, The historical voltage signal is stored in a ring buffer.

6. The voltage signal processing method according to any one of claims 1-5, characterized in that, The voltage output is used to charge the battery; The voltage signal processing method further includes: Based on the battery's charging state, the acquisition frequency is dynamically adjusted within a single upload cycle of the current voltage reference value.

7. The voltage signal processing method according to any one of claims 1-5, characterized in that, The voltage signal processing method further includes: Calculate the voltage change rate based on the current voltage output value; When the voltage change rate exceeds a first threshold, the acquisition frequency is increased and / or the reporting frequency is decreased. When the voltage change rate is lower than the second threshold, the acquisition frequency is reduced and / or the reporting frequency is increased.

8. A voltage signal processing device, characterized in that, include: A voltage signal acquisition unit is used to acquire raw voltage signals in real time at an acquisition frequency. A voltage output unit is used to determine the current voltage output value based on the original voltage signal, and to output voltage according to the current voltage output value; A voltage reference value uploading unit is used to upload the current voltage reference value at a reporting frequency, wherein the current voltage reference value is determined based on the current voltage output value and historical voltage reference values, and the reporting frequency is lower than the acquisition frequency.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the voltage signal processing method as described in any one of claims 1 to 7.

10. A computer program product, characterized in that, Includes a computer program, which, when run, causes the voltage signal processing method as described in any one of claims 1 to 7 to be performed.