Voltage adjustment method and device, electronic equipment and storage medium

By collecting the output voltage of the power supply equipment when the electronic equipment is working and determining the target voltage adjustment logic based on the preset voltage, the problem of voltage mismatch in the prior art is solved, and high-efficiency voltage adaptation between the electronic equipment and the power supply equipment is achieved.

CN119937699APending Publication Date: 2025-05-06QUECLINK WIRELESS SOLUTIONS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411996787.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The existing chip-based voltage adjustment method has high cost and poor adaptability. It is only applicable to some electronic devices, and has poor adaptability in complex voltage environments, which cannot effectively solve the voltage mismatch problem between electronic devices and power supply equipment.

Method used

When the electronic device is in an operating state, the output voltage of the power supply device is collected, the target voltage adjustment logic is determined based on the output voltage and the preset voltage, and the output voltage is adjusted according to the logic, the target voltage is obtained, and it is sent to the power supply device to output the adapted voltage to the electronic device.

Benefits of technology

By adaptively adjusting the voltage, voltage adaptation between electronic equipment and power supply equipment is achieved, which is simple, fast and highly adaptable, and solves the problem of voltage mismatch in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119937699A_ABST
    Figure CN119937699A_ABST
Patent Text Reader

Abstract

The invention provides a voltage adjusting method and device, electronic equipment and a storage medium. Relates to the field of electronic equipment. The method comprises the following steps: when the electronic equipment is in a working state, acquiring an output voltage of power supply equipment, and determining a target voltage adjustment logic according to the output voltage and a preset voltage; adjusting the output voltage according to the target voltage adjusting logic to obtain a target voltage; and sending the target voltage to the power supply equipment, so that the power supply equipment outputs the target voltage to the electronic equipment. According to the relation between the output voltage and the preset voltage, different voltage adjustment logics are adaptively determined to adjust the output voltage of the power supply equipment, so that the voltage of the power supply equipment is adaptive to the voltage of the electronic equipment, and the method is simple, rapid and high in adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic equipment, and in particular to a voltage adjustment method, device, electronic equipment and storage medium. Background Art

[0002] Electronic devices are usually equipped with separate power supply devices to power them so that the electronic devices can realize various functions of mobile devices. For example, a car is equipped with a battery to power the on-board electronic devices, and a robot base is equipped with a battery to power the robot. During operation, there may be a problem that the voltage of the electronic device is not compatible with the voltage of the power supply device.

[0003] Related voltage adjustment methods generally include a chip-based voltage adjustment method and an ADC sampling-based adjustment method, which converts the output voltage of the power supply device into a target voltage and outputs it to the electronic device.

[0004] However, the chip-based voltage adjustment method has high cost and poor adaptability, and is only applicable to some electronic devices. The chip-based voltage adjustment method is complicated to operate and has poor adaptability in complex voltage environments. Summary of the invention

[0005] The present application provides a voltage adjustment method, device, electronic device and storage medium, which collects the output voltage of a power supply device when the electronic device is in a working state, determines a target voltage adjustment logic according to the output voltage and a preset voltage; adjusts the output voltage according to the target voltage adjustment logic to obtain a target voltage; and sends the target voltage to the power supply device so that the power supply device outputs the target voltage to the electronic device, so as to solve the problem of poor adaptability of existing chip-based adjustment methods.

[0006] In a first aspect, the present application provides a voltage adjustment method, which is applied to an electronic device, and the voltage adjustment method includes:

[0007] When the electronic device is in working state, collecting the output voltage of the power supply device; the power supply device is used to supply power to the electronic device;

[0008] Determining a target voltage adjustment logic according to the output voltage and a preset voltage;

[0009] Adjusting the output voltage according to the target voltage adjustment logic to obtain a target voltage;

[0010] The target voltage is sent to the power supply device, so that the power supply device outputs the target voltage to the electronic device.

[0011] In a possible implementation manner, determining the target voltage adjustment logic according to the output voltage and the preset voltage includes:

[0012] When the output voltage is less than or equal to the preset voltage, determining the first voltage adjustment logic as the target voltage adjustment logic;

[0013] or,

[0014] When the output voltage is greater than the preset voltage, the second voltage adjustment logic is determined as the target voltage adjustment logic.

[0015] In a possible implementation manner, adjusting the output voltage according to the target voltage adjustment logic to obtain a target voltage includes:

[0016] When the target voltage adjustment logic is the first voltage adjustment logic, obtaining a first voltage adjustment range of the first voltage adjustment logic; the first voltage adjustment range includes a first adjustment voltage and a second adjustment voltage, and the first adjustment voltage is less than the second adjustment voltage;

[0017] The output voltage is adjusted according to the first adjustment voltage and the second adjustment voltage to obtain a first target voltage.

[0018] In a possible implementation manner, adjusting the preset voltage according to the first adjustment voltage and the second adjustment voltage to obtain the first target voltage includes:

[0019] When the output voltage is less than or equal to the first adjustment voltage, the output voltage is increased until the output voltage is greater than the first adjustment voltage and less than the second adjustment voltage, thereby obtaining the first target voltage.

[0020] In a possible implementation manner, adjusting the output voltage according to the target voltage adjustment logic to obtain a target voltage includes:

[0021] When the target voltage adjustment logic is the second voltage adjustment logic, obtaining a second voltage adjustment range of the second voltage adjustment logic; the second voltage adjustment range includes a third adjustment voltage and a fourth adjustment voltage; the third adjustment voltage is less than the fourth adjustment voltage;

[0022] The output voltage is adjusted according to the third adjustment voltage and the fourth adjustment voltage to obtain a second target voltage; the second target voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage.

[0023] In a possible implementation, the step of adjusting the output voltage according to the third adjustment voltage and the fourth adjustment voltage to obtain a second target voltage, wherein the second target voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage, includes:

[0024] When the output voltage is greater than or equal to the third adjustment voltage, the output voltage is reduced until the output voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage, thereby obtaining the second target voltage.

[0025] In a possible implementation manner, the fourth adjustment voltage is greater than the second adjustment voltage, and the third adjustment voltage is greater than the first adjustment voltage.

[0026] In a second aspect, the present application provides a voltage adjustment device, which is applied to an electronic device, and the voltage adjustment device includes:

[0027] A collection module, used for collecting the output voltage of the power supply device when the electronic device is in working state; the power supply device is used for supplying power to the electronic device;

[0028] A determination module, used to determine a target voltage adjustment logic according to the output voltage and a preset voltage;

[0029] An adjustment module, used for adjusting the output voltage according to the target voltage adjustment logic to obtain a target voltage;

[0030] The sending module is used to send the target voltage to the power supply device so that the power supply device outputs the target voltage to the electronic device.

[0031] In some possible implementations, the determining module includes:

[0032] A first determining unit, configured to determine a first voltage adjustment logic as a target voltage adjustment logic when the output voltage is less than or equal to the preset voltage;

[0033] or,

[0034] The second determining unit is configured to determine the second voltage adjustment logic as the target voltage adjustment logic when the output voltage is greater than the preset voltage.

[0035] In some possible implementations, the adjustment module includes:

[0036] A first acquisition unit, configured to acquire a first voltage adjustment range of the first voltage adjustment logic when the target voltage adjustment logic is the first voltage adjustment logic; the first voltage adjustment range includes a first adjustment voltage and a second adjustment voltage, and the first adjustment voltage is less than the second adjustment voltage;

[0037] The first adjustment unit is used to adjust the output voltage according to the first adjustment voltage and the second adjustment voltage to obtain a first target voltage.

[0038] In some possible implementations, the first adjustment unit is specifically configured to increase the output voltage when the output voltage is less than or equal to the first adjustment voltage, until the output voltage is greater than the first adjustment voltage and less than the second adjustment voltage, thereby obtaining the first target voltage.

[0039] In some possible implementations, the adjustment module includes:

[0040] A second acquisition unit, configured to acquire a second voltage adjustment range of the second voltage adjustment logic when the target voltage adjustment logic is the second voltage adjustment logic; the second voltage adjustment range includes a third adjustment voltage and a fourth adjustment voltage; the third adjustment voltage is less than the fourth adjustment voltage;

[0041] The second adjustment unit is used to adjust the output voltage according to the third adjustment voltage and the fourth adjustment voltage to obtain a second target voltage; the second target voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage.

[0042] In some possible implementations, the second adjustment unit is specifically used to: when the output voltage is greater than or equal to the third adjustment voltage, reduce the output voltage until the output voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage, so as to obtain the second target voltage.

[0043] In some possible implementations, the fourth adjustment voltage is greater than the second adjustment voltage, and the third adjustment voltage is greater than the first adjustment voltage.

[0044] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor and a memory; the memory stores computer execution instructions; at least one processor executes the computer execution instructions stored in the memory, so that at least one processor executes the voltage adjustment method involved in the first aspect and any item of the first aspect above.

[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the voltage adjustment method involved in the first aspect and any item of the first aspect is implemented.

[0046] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the voltage adjustment method involved in the first aspect and any item of the first aspect.

[0047] The voltage adjustment method, device, electronic device and storage medium provided in the present application collect the output voltage of the power supply device when the electronic device is in a working state, determine the corresponding target voltage adjustment logic according to the output voltage and the preset voltage, adjust the output voltage according to the target voltage adjustment logic to obtain the target voltage, and make the power supply device output the target voltage to the electronic device, thereby adaptively determining different voltage adjustment logics to adjust the output voltage of the power supply device according to different voltage environments, so that the voltage of the power supply device and the electronic device are adapted, which is simple, fast and highly adaptable. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0049] Figure 1 A schematic diagram of the architecture of a voltage regulation system provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of a flow chart of a voltage adjustment method provided in an embodiment of the present application;

[0051] Figure 3 A schematic diagram of a flow chart of another voltage adjustment method provided in an embodiment of the present application;

[0052] Figure 4 A schematic diagram of a flow chart of another voltage adjustment method provided in an embodiment of the present application;

[0053] Figure 5 A schematic diagram of a flow chart of another voltage adjustment method provided in an embodiment of the present application;

[0054] Figure 6 A schematic diagram of the structure of a voltage adjustment device provided in an embodiment of the present application;

[0055] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0056] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0057] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0058] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0059] It should be noted that the voltage adjustment method, device, electronic device and storage medium provided in the present application can be used in the field of electronic equipment, and can also be used in any field other than the field of electronic equipment. The application does not limit the application field of the voltage adjustment method, device, electronic device and storage medium.

[0060] Electronic devices are usually equipped with separate power supply devices to power them so that the electronic devices can realize various functions of mobile devices. For example, a car is equipped with a battery to power the onboard electronic devices, and a robot base is equipped with a battery to power the robot. During operation, there may be a problem that the voltage of the electronic device is not compatible with the voltage of the power supply device.

[0061] The existing chip-based adjustment method and ADC sampling-based adjustment method both convert the output voltage of the power supply device and send it to the electronic device.

[0062] However, the chip-based adjustment method has the problems of high cost and poor adaptability, complicated operation and poor adaptability in complex voltage environments. Thus, the voltage adaptation problem between electronic equipment and power supply equipment has not been solved.

[0063] In order to solve the above problems, the present application provides a voltage adjustment method, device, electronic device and storage medium. When the electronic device is in working state, the output voltage of the power supply device is collected, and the corresponding target voltage adjustment logic is determined according to the output voltage and the preset voltage, and the output voltage is adjusted according to the target voltage adjustment logic to obtain the target voltage, so that the power supply device outputs the target voltage to the electronic device. According to different voltage environments, different voltage adjustment logics can be adaptively determined to adjust the output voltage of the power supply device, so that the voltage of the power supply device is adapted to the voltage of the electronic device, which is simple, fast and highly adaptable.

[0064] For ease of understanding, the following Figure 1 , the system architecture applicable to the embodiments of the present application is described.

[0065] Figure 1 This is a schematic diagram of the architecture of the voltage adjustment system provided in the embodiment of the present application. Figure 1 The voltage adjustment system includes an electronic device 101 and a power supply device 102 , and the electronic device 102 is connected to the power supply device 101 .

[0066] It is understandable that the power supply device 101 may be disposed inside the electronic device 102 , or may be disposed outside the electronic device 102 and connected to the electronic device 102 . Figure 1 In the description, it is taken as an example that the power supply device 101 is arranged outside the electronic device 102 and connected to the electronic device 102.

[0067] The power supply device 101 is used to supply power to the electronic device.

[0068] The electronic device 102 is used to collect the output voltage of the power supply device in the working state, determine the corresponding target voltage adjustment logic according to the output voltage and the preset voltage, adjust the output voltage according to the target voltage adjustment logic, obtain the target voltage, and send the target voltage to the power supply device 101.

[0069] The power supply device 101 is specifically configured to adjust the output voltage according to the received target voltage and output the target voltage to the electronic device 102 .

[0070] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0071] Figure 2 A schematic diagram of a voltage adjustment method provided in an embodiment of the present application. Figure 2As shown, the method may include the following steps:

[0072] S201. When the electronic device is in working state, collecting the output voltage of a power supply device; the power supply device is used to supply power to the electronic device.

[0073] The execution subject of the embodiment of the present application may be an electronic device, or a voltage adjustment device arranged in the electronic device. The voltage adjustment device may be implemented by software, or by a combination of software and hardware.

[0074] Specifically, the power supply device is used to indicate a power supply device that supplies power to the electronic device, wherein the power supply device can be arranged inside the electronic device, or can be arranged outside the electronic device and connected to the electronic device.

[0075] Specifically, when the electronic device operates based on the rated voltage, a certain operating voltage is generated. Under ideal conditions, the operating voltage is the same as the rated voltage. At this time, the output voltage sent by the power supply device to the electronic device may not match the operating voltage of the electronic device, making it impossible for the electronic device to operate in a safe and stable voltage environment, causing certain safety hazards.

[0076] Specifically, when the electronic device is in working state, the output voltage sent by the power supply device to the electronic device can be collected to adjust the output voltage of the power supply device so that the adjusted output voltage (also referred to as target voltage) output by the power supply device to the electronic device is adapted to the working voltage of the electronic device.

[0077] Optionally, the output voltage sent by the power supply device to the electronic device may be collected by a voltage sensor.

[0078] S202: Determine a target voltage adjustment logic according to the output voltage and a preset voltage.

[0079] Specifically, the preset voltage refers to the upper limit of the rated voltage of the electronic device. According to the relationship between the output voltage actually output by the power supply device to the electronic device and the upper limit of the rated voltage of the electronic device, a voltage adjustment logic is determined as the target voltage adjustment logic of the power supply device at the current moment.

[0080] Specifically, the voltage adjustment logic refers to the judgment logic for adjusting the output voltage.

[0081] Optionally, the voltage adjustment logic includes a first voltage adjustment logic and a second voltage adjustment logic.

[0082] Optionally, the voltage range of the first voltage adjustment logic and the voltage range of the second voltage adjustment logic have an intersection.

[0083] Optionally, the voltage range of the first voltage adjustment logic is completely different from the voltage range of the second voltage adjustment logic.

[0084] S203 . Adjust the output voltage according to the target voltage adjustment logic to obtain a target voltage.

[0085] Optionally, the collected output voltage is adjusted according to the target voltage adjustment logic so that it is within a voltage adjustment range corresponding to the target voltage adjustment logic to obtain the target voltage.

[0086] It can be understood that by adaptively adjusting the output voltage of the power supply device through the voltage adjustment range corresponding to the target voltage adjustment logic, rather than directly setting it to a fixed value, the adaptability between the target voltage output by the power supply device and the operating voltage of the electronic device is improved. It can also be said that the adaptability between the target voltage output by the power supply device and the rated voltage of the electronic device is improved.

[0087] S204: Send the target voltage to the power supply device, so that the power supply device outputs the target voltage to the electronic device.

[0088] Specifically, the target voltage is sent to the power supply device so that the power supply device adjusts its output voltage according to the target voltage, that is, the power supply device outputs the target voltage to the electronic device so that the output voltage of the power supply device is adapted to the working voltage of the electronic device.

[0089] The embodiment of the present application collects the output voltage of the power supply device when the electronic device is in a working state, determines the corresponding target voltage adjustment logic according to the output voltage and the preset voltage, adjusts the output voltage according to the target voltage adjustment logic to obtain the target voltage, and enables the power supply device to output the target voltage to the electronic device, thereby adaptively determining different voltage adjustment logics to adjust the output voltage of the power supply device according to different voltage environments, so that the voltage of the power supply device is adapted to the voltage of the electronic device, which is simple, fast and highly adaptable.

[0090] Figure 3 This is a flow chart of another voltage adjustment method provided in an embodiment of the present application. Figure 3 , the method may include the following steps:

[0091] S2021. When the output voltage is less than or equal to the preset voltage, determine the first voltage adjustment logic as the target voltage adjustment logic.

[0092] Specifically, when the output voltage of the power supply device is less than or equal to the upper limit value of the rated voltage of the electronic device, the first voltage adjustment logic is determined as the target voltage adjustment logic to increase the collected output voltage of the power supply device so that the adjusted output voltage output by the power supply device to the electronic device is adapted to the working voltage of the electronic device.

[0093] Optionally, the voltage upper limit value of the first voltage adjustment logic is less than or equal to the upper limit value of the rated voltage of the electronic device.

[0094] For example, if the upper limit value of the rated voltage of the electronic device is 18V, then the upper limit value of the voltage of the first voltage adjustment logic is (12, 18)V.

[0095] or,

[0096] S2022: When the output voltage is greater than the preset voltage, determine the second voltage adjustment logic as the target voltage adjustment logic.

[0097] Specifically, when the output voltage of the power supply device is greater than the upper limit value of the rated voltage of the electronic device, the second voltage adjustment logic is determined as the target voltage adjustment logic to reduce the collected output voltage of the power supply device so that the adjusted output voltage output by the power supply device to the electronic device is adapted to the working voltage of the electronic device.

[0098] Optionally, a voltage lower limit value of the second voltage adjustment logic is greater than or equal to an upper limit value of a rated voltage of the electronic device.

[0099] For example, the upper limit value of the rated voltage of the electronic device is 18V, and the lower limit value of the voltage of the second voltage adjustment logic is (24, 36)V.

[0100] Based on the relationship between the output voltage and the preset voltage, the voltage environment of the electronic device is determined, and different voltage adjustment logics are adaptively determined to adjust the output voltage of the power supply device, so that it can work in a safe and stable voltage environment. It is simple, fast and applicable to various voltage environments. At the same time, there is no need to set up a dedicated buck-boost chip to achieve the voltage adjustment function, which reduces costs.

[0101] Figure 4 This is a flow chart of another voltage adjustment method provided in an embodiment of the present application. Figure 4 , the method may include the following steps:

[0102] S2031. When the target voltage adjustment logic is the first voltage adjustment logic, obtain a first voltage adjustment range of the first voltage adjustment logic; the first voltage adjustment range includes a first adjustment voltage and a second adjustment voltage, and the first adjustment voltage is less than the second adjustment voltage.

[0103] Specifically, when the target voltage adjustment logic is the first voltage adjustment logic, the collected output voltage of the power supply device needs to be lowered to obtain a first voltage adjustment range corresponding to the first voltage adjustment logic.

[0104] Specifically, the first voltage adjustment range includes a first adjustment voltage and a second adjustment voltage. The first adjustment voltage is less than the second adjustment voltage. That is, the first adjustment voltage is the lower limit value of the first voltage adjustment range, and the second adjustment voltage is the upper limit value of the first voltage adjustment range.

[0105] Optionally, the second adjusted voltage is less than or equal to an upper limit value of a rated voltage of the electronic device.

[0106] S2032: Adjust the output voltage according to the first adjustment voltage and the second adjustment voltage to obtain a first target voltage.

[0107] Specifically, the collected output voltage of the power supply device is adjusted according to the first adjustment voltage and the second adjustment voltage to obtain the first target voltage. In this way, when the power supply device outputs the first target voltage to the electronic device, when the actual output voltage of the power supply device is within the first voltage adjustment range, it can be adapted to the working voltage of the electronic device.

[0108] In some possible implementations, S2032 includes:

[0109] When the output voltage is less than or equal to the first adjustment voltage, the output voltage is increased until the output voltage is less than the second adjustment voltage and greater than the first adjustment voltage, thereby obtaining the first target voltage.

[0110] Specifically, when the collected output voltage of the power supply device is less than or equal to the second adjustment voltage, the collected output voltage of the power supply device is increased until the output voltage is less than the second adjustment voltage and greater than the first adjustment voltage, thereby obtaining the first target voltage, so that the first target voltage output by the power supply device to the electronic device is adapted to the working voltage of the electronic device.

[0111] For example, the preset voltage is 18V, the output voltage is 10V, and the first voltage adjustment range is (12, 18)V. At this time, the output voltage is increased until the first target voltage is greater than 12V and less than 18V. If the first target voltage is 15V, the difference between the first target voltage and the preset voltage is reduced, so that the first target voltage output by the power supply device to the electronic device is more compatible with the working voltage of the electronic device.

[0112] Figure 5 This is a flow chart of another voltage adjustment method provided in an embodiment of the present application. Figure 5 , the method may include the following steps:

[0113] S2033. When the target voltage adjustment logic is the second voltage adjustment logic, obtain a second voltage adjustment range of the second voltage adjustment logic; the second voltage adjustment range includes a third adjustment voltage and a fourth adjustment voltage, and the third adjustment voltage is less than the fourth adjustment voltage.

[0114] Specifically, when the target voltage adjustment logic is the second voltage adjustment logic, a third adjustment voltage and a fourth adjustment voltage in a second voltage adjustment range corresponding to the second voltage adjustment logic are acquired.

[0115] The third adjustment voltage is a lower limit value in the second voltage adjustment range, and the fourth adjustment voltage is an upper limit value in the second voltage adjustment range.

[0116] Optionally, the third adjusted voltage is greater than or equal to an upper limit value (also referred to as a preset voltage) of a rated voltage of the electronic device.

[0117] S2034. Adjust the output voltage according to the third adjustment voltage and the fourth adjustment voltage to obtain a second target voltage; the second target voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage.

[0118] Specifically, the collected output voltage of the power supply device is adjusted according to the third adjustment voltage and the fourth adjustment voltage to obtain a second target voltage, so that the second target voltage is within the second voltage adjustment range, that is, the second target voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage. In this way, when the power supply device outputs the second target voltage to the electronic device, it is adapted to the working voltage of the electronic device.

[0119] In some embodiments, step S2034 includes:

[0120] When the output voltage is greater than or equal to the third adjustment voltage, the output voltage is reduced until the output voltage is greater than the third adjustment voltage and less than the second adjustment voltage, thereby obtaining the second target voltage.

[0121] Specifically, when the collected output voltage of the power supply device is greater than or equal to the third adjustment voltage, the collected output voltage of the power supply device is reduced until the output voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage, so as to obtain the second target voltage, so that the second target voltage output by the power supply device to the electronic device is adapted to the working voltage of the electronic device.

[0122] For example, the preset voltage is 18V, the output voltage is 40V, and the second voltage adjustment range is (24, 36)V. At this time, the output voltage is reduced until the second target voltage is greater than 24V and less than 36V, such as the second target voltage is 28V, so as to reduce the difference between the second target voltage and the preset voltage, so that the second target voltage output by the power supply device to the electronic device is more compatible with the working voltage of the electronic device.

[0123] In some possible implementations, the fourth adjustment voltage is greater than the second adjustment voltage, and the third adjustment voltage is greater than the first adjustment voltage.

[0124] Specifically, the upper limit value of the second voltage adjustment range (ie, the fourth adjustment voltage) is greater than the upper limit value of the first voltage adjustment range. The lower limit value of the second voltage adjustment range is greater than the lower limit value of the first voltage adjustment range.

[0125] For example, the second voltage adjustment range is (20, 30)V, and the first voltage adjustment range is (12, 19)V.

[0126] The embodiment of the present application determines the target voltage by taking into account the relationship between the output voltage actually output by the power supply device to the electronic device and the upper limit value of the rated voltage of the electronic device when the electronic device is working, so that when the power supply device outputs the target voltage, it is adapted to the working voltage of the electronic device. This is simple and quick and improves the compatibility between the power supply device and the electronic device.

[0127] Figure 6 This is a schematic diagram of the structure of a voltage adjustment device provided in an embodiment of the present application. Figure 6 The voltage adjustment device 600 includes: a collection module 601, a determination module 602, an adjustment module 603 and a sending module 604, wherein:

[0128] The acquisition module 601 is used to acquire the output voltage of the power supply device when the electronic device is in working state; the power supply device is used to supply power to the electronic device;

[0129] A determination module 602, configured to determine a target voltage adjustment logic according to the output voltage and a preset voltage;

[0130] An adjustment module 603, configured to adjust the output voltage according to the target voltage adjustment logic to obtain a target voltage;

[0131] The sending module 604 is used to send the target voltage to the power supply device, so that the power supply device outputs the target voltage to the electronic device.

[0132] In some possible implementations, the determination module 602 includes:

[0133] A first determining unit, configured to determine a first voltage adjustment logic as a target voltage adjustment logic when the output voltage is less than or equal to the preset voltage;

[0134] or,

[0135] The second determining unit is configured to determine the second voltage adjustment logic as the target voltage adjustment logic when the output voltage is greater than the preset voltage.

[0136] In some possible implementations, the adjustment module 603 includes:

[0137] A first acquisition unit, configured to acquire a first voltage adjustment range of the first voltage adjustment logic when the target voltage adjustment logic is the first voltage adjustment logic; the first voltage adjustment range includes a first adjustment voltage and a second adjustment voltage, and the first adjustment voltage is less than the second adjustment voltage;

[0138] The first adjustment unit is used to adjust the output voltage according to the first adjustment voltage and the second adjustment voltage to obtain a first target voltage.

[0139] In some possible implementations, the first adjustment unit is specifically configured to increase the output voltage when the output voltage is less than or equal to the first adjustment voltage, until the output voltage is greater than the first adjustment voltage and less than the second adjustment voltage, thereby obtaining the first target voltage.

[0140] In some possible implementations, the adjustment module 603 includes:

[0141] A second acquisition unit, configured to acquire a second voltage adjustment range of the second voltage adjustment logic when the target voltage adjustment logic is the second voltage adjustment logic; the second voltage adjustment range includes a third adjustment voltage and a fourth adjustment voltage; the third adjustment voltage is less than the fourth adjustment voltage;

[0142] The second adjustment unit is used to adjust the output voltage according to the third adjustment voltage and the fourth adjustment voltage to obtain a second target voltage; the second target voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage.

[0143] In some possible implementations, the second adjustment unit is specifically used to: when the output voltage is greater than or equal to the third adjustment voltage, reduce the output voltage until the output voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage, so as to obtain the second target voltage.

[0144] In some possible implementations, the fourth adjustment voltage is greater than the second adjustment voltage, and the third adjustment voltage is greater than the first adjustment voltage.

[0145] The voltage adjustment device provided in the embodiment of the present application can execute the method shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0146] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device 700 may include: a transceiver 701 , a processor 702 , and a memory 703 .

[0147] The processor 702 executes the computer-executable instructions stored in the memory, so that the processor 702 executes the solution in the above embodiment. The processor 702 can be a general-purpose processor, including a central processing unit CPU, a network processor (network processor, NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0148] The memory 703 is connected to the processor 702 via a system bus and completes communication between them. The memory 703 is used to store computer program instructions.

[0149] The transceiver 701 may be used to obtain an output voltage, a first voltage adjustment logic, a second voltage adjustment logic, and the like.

[0150] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.

[0151] An embodiment of the present application also provides a chip for running instructions, which is used to execute the technical solution of the voltage adjustment method in the above embodiment.

[0152] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the voltage adjustment method in the above embodiment.

[0153] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, the technical solution of the voltage adjustment method in the above embodiment can be implemented.

[0154] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0155] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0156] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0157] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.

[0158] If the integrated unit / module is implemented in the form of hardware, the hardware may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. Unless otherwise specified, the processor may be any appropriate hardware processor, such as a CPU, a GPU, an FPGA, a DSP, an ASIC, etc. Unless otherwise specified, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory (RRAM), a dynamic random access memory (DRAM), a static random access memory (SRAM), an enhanced dynamic random access memory (EDRAM), a high-bandwidth memory (HBM), a hybrid memory cube (HMC), etc.

[0159] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0160] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0161] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0162] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A voltage adjustment method, characterized in that: Applied to electronic equipment, the method comprises: When the electronic device is in working state, collecting the output voltage of the power supply device; the power supply device is used to supply power to the electronic device; Determining a target voltage adjustment logic according to the output voltage and a preset voltage; Adjusting the output voltage according to the target voltage adjustment logic to obtain a target voltage; The target voltage is sent to the power supply device, so that the power supply device outputs the target voltage to the electronic device.

2. The method according to claim 1, characterized in that The step of determining a target voltage adjustment logic according to the output voltage and the preset voltage includes: When the output voltage is less than or equal to the preset voltage, determining the first voltage adjustment logic as the target voltage adjustment logic; or, When the output voltage is greater than the preset voltage, the second voltage adjustment logic is determined as the target voltage adjustment logic.

3. The method according to claim 2, characterized in that The step of adjusting the output voltage according to the target voltage adjustment logic to obtain a target voltage includes: When the target voltage adjustment logic is the first voltage adjustment logic, obtaining a first voltage adjustment range of the first voltage adjustment logic; the first voltage adjustment range includes a first adjustment voltage and a second adjustment voltage, and the first adjustment voltage is less than the second adjustment voltage; The output voltage is adjusted according to the first adjustment voltage and the second adjustment voltage to obtain a first target voltage.

4. The method according to claim 3, characterized in that The step of adjusting the preset voltage according to the first adjustment voltage and the second adjustment voltage to obtain a first target voltage includes: When the output voltage is less than or equal to the first adjustment voltage, the output voltage is increased until the output voltage is greater than the first adjustment voltage and less than the second adjustment voltage, thereby obtaining the first target voltage.

5. The method according to claim 2, characterized in that: The step of adjusting the output voltage according to the target voltage adjustment logic to obtain a target voltage includes: When the target voltage adjustment logic is the second voltage adjustment logic, obtaining a second voltage adjustment range of the second voltage adjustment logic; the second voltage adjustment range includes a third adjustment voltage and a fourth adjustment voltage; the third adjustment voltage is less than the fourth adjustment voltage; The output voltage is adjusted according to the third adjustment voltage and the fourth adjustment voltage to obtain a second target voltage; the second target voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage.

6. The method according to claim 5, characterized in that The step of adjusting the output voltage according to the third adjustment voltage and the fourth adjustment voltage to obtain a second target voltage, wherein the second target voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage, comprises: When the output voltage is greater than or equal to the third adjustment voltage, the output voltage is reduced until the output voltage is greater than the third adjustment voltage and less than the fourth adjustment voltage, thereby obtaining the second target voltage.

7. The method according to claim 6, characterized in that The fourth adjustment voltage is greater than the second adjustment voltage, and the third adjustment voltage is greater than the first adjustment voltage.

8. A voltage regulating device, characterized in that: Applied to electronic equipment, the device comprises: A collection module, used for collecting the output voltage of the power supply device when the electronic device is in working state; the power supply device is used for supplying power to the electronic device; A determination module, used to determine a target voltage adjustment logic according to the output voltage and a preset voltage; An adjustment module, used for adjusting the output voltage according to the target voltage adjustment logic to obtain a target voltage; The sending module is used to send the target voltage to the power supply device so that the power supply device outputs the target voltage to the electronic device.

9. An electronic device, characterized in that: include: A voltage sensor, a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.