Power supply control method and circuit, electronic equipment and storage medium
By identifying and adapting to the types of external devices connected to the next generation of size specification interface and adjusting their output power, the problem of different output power of solid-state drives and artificial intelligence computing cards is solved, and adaptability and flexibility to multiple devices are achieved.
Patent Information
- Application Number
- CN202411578360.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-02-18
AI Technical Summary
Due to the different output power of solid-state drives and artificial intelligence computing cards, it is difficult for the existing technology to effectively control the output power of the next generation of size specification interfaces to meet the needs of a variety of external devices.
By determining whether the next generation size specification interface is connected to external devices, obtain the device information of the external device and identify its type, and send power control instructions to the power controller according to the device type, so that the output power is adapted to the external device type.
Without adjusting the circuit board area, the next generation of dimension specification interfaces can be enabled to meet the output power requirements of a variety of external devices, improving the flexibility and adaptability of the system.
Smart Images

Figure CN119479713A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electrical digital data processing, and in particular to a power supply control method, circuit, electronic device and storage medium. Background Art
[0002] The next-generation form factor specification interface (M.2 interface) is a new type of storage interface that can provide higher transmission speeds and smaller size. It is a new generation of interface standards tailored for Ultrabooks, with a smaller form factor and higher transmission performance. The next-generation form factor specification interface (M.2 interface) can provide higher data transfer rates and lower latency, so it is more suitable for connecting high-speed solid-state drives (SSDs), especially solid-state drives using the NVMe protocol. In some high-performance application scenarios, such as virtualization, cloud computing, and high-performance computing, the next-generation form factor specification interface (M.2 interface) is widely used to accelerate the connection of storage devices.
[0003] With the popularity of artificial intelligence (AI), artificial intelligence (AI) computing cards that support the next-generation size specification interface (M.2 interface) have emerged. However, since the output power of the solid state disk (SSD) and the next-generation size specification interface (M.2 interface) is different, new requirements are put forward for the system output power. Based on this, it is urgent to propose a power control method to solve the above problem. Summary of the invention
[0004] In view of at least one of the above technical problems existing in the prior art, the present application is proposed. According to one aspect of the present application, a power control method is provided, which is applied to an electronic device having a next-generation size specification interface, and the method comprises:
[0005] Determining whether the next generation size specification interface is connected to an external device;
[0006] When an external device is connected to the next generation size specification interface, acquiring device information of the external device, and identifying the type of the external device according to the device information;
[0007] A power control instruction is sent to the power controller according to the type of the external device, so that the output power of the next generation size specification interface is adapted to the type of the external device.
[0008] In some embodiments, sending a power control instruction to the power controller according to the type of the external device so that the output power of the next generation size specification interface is adapted to the type of the external device includes:
[0009] Retrieving voltage information corresponding to the external device stored in the read-only memory;
[0010] According to the voltage information, a corresponding power control instruction is sent to the power controller so that the output power of the next generation size specification interface meets the requirements of the external device type.
[0011] In some embodiments, the method further comprises:
[0012] A control instruction is sent to an indication module so that the indication module indicates the type of the external device; wherein the indication module includes an indicator light.
[0013] In some embodiments, the external device includes at least a solid state drive and / or an artificial intelligence computing card.
[0014] Another aspect of the embodiment of the present application provides a power supply control circuit for implementing the power supply control method as described above; the circuit includes a controller, a linear power supply, a power supply controller and a next generation size specification interface; wherein,
[0015] The controller is connected to the next generation size specification interface through a bus to obtain device information of the external device through the next generation size specification interface and identify the type of the external device according to the device information; wherein the next generation size specification interface is used to connect to an external device;
[0016] The controller is also connected to the power supply controller via the linear power supply; the power supply controller is connected to the next generation size specification interface;
[0017] The controller sends a power control instruction to the power controller according to the type of the external device, so that the output power of the next generation size specification interface is adapted to the type of the external device.
[0018] In some embodiments, the external device includes a read-only memory, which stores voltage information required by the external device; the controller is also used to read the voltage information so as to send corresponding power control instructions to the power controller based on the voltage information, so that the output power of the next generation size specification interface meets the requirements of the external device type.
[0019] In some embodiments, the linear power supply includes a low dropout linear regulator.
[0020] In some embodiments, the circuit further includes an indication module; the indication module is used to indicate the type of the external device; wherein the indication module includes an indicator light.
[0021] Another aspect of the present application provides an electronic device, including the power control circuit as described above, wherein the electronic device includes:
[0022] A memory and a processor, wherein the memory stores a computer program to be executed by the processor, and when the computer program is executed by the processor, the processor executes the power control method as described above.
[0023] On another aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the power control method as described above.
[0024] The power control method of the embodiment of the present application obtains the type of the external device through the next-generation size specification interface, and sends a power control instruction to the power controller according to the type of the external device, so that the output power of the next-generation size specification interface is adapted to the power required by the external device type. In this way, without adjusting the circuit board area, the next-generation size specification interface (M.2 interface) can meet the output power requirements of various external devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0026] Figure 1 A schematic flow chart showing a power supply control method according to an embodiment of the present application;
[0027] Figure 2 A schematic flowchart of step S103 according to an embodiment of the present application is shown;
[0028] Figure 3 A schematic flow chart showing an indication module indicating the type of an external device according to an embodiment of the present application;
[0029] Figure 4 A schematic flow chart showing a power supply control method according to another embodiment of the present application;
[0030] Figure 5 A schematic diagram showing a power control circuit according to an embodiment of the present application;
[0031] Figure 6 A schematic block diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the technical solutions of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0033] With the popularity of Artificial Intelligence (AI), artificial intelligence (AI) computing cards that support the next-generation size specification interface (M.2 interface) have emerged. However, the output power of the solid-state drive (SSD) is different from that of the next-generation size specification interface (M.2 interface). For example, the power required by the solid-state drive is 3-4W, but the power required by the artificial intelligence (AI) computing card can reach 8W, and even more than ten watts when fully loaded. Artificial Intelligence (AI) computing cards are flexible and have powerful computing functions, but they consume high power. In this way, different devices have different requirements for the output power of the next-generation size specification interface (M.2 interface) when connected to the next-generation size specification interface (M.2 interface).
[0034] Based on at least one of the above technical problems, the present application provides a power control circuit, the circuit includes a controller, a linear power supply, a power controller and a next-generation size specification interface (M.2 interface); wherein the controller is connected to the next-generation size specification interface through a bus to obtain the device information of the external device through the next-generation size specification interface, and identify the type of the external device according to the device information; wherein the next-generation size specification interface is used to connect an external device; the controller is also connected to the power controller through the linear power supply; the power controller is connected to the next-generation size specification interface; the controller sends a power control instruction to the power controller according to the type of the external device, so that the current output power is adapted to the type of the external device. The power control circuit of the embodiment of the present application includes a controller, a linear power supply, a power controller and a next-generation size specification interface, the controller obtains the type of the external device through the next-generation size specification interface, and sends a power control instruction to the power controller according to the type of the external device, so that the output power of the next-generation size specification interface is adapted to the power required by the external device type, so that the next-generation size specification interface (M.2 interface) can meet the output power requirements of multiple external devices without adjusting the circuit board area.
[0035] Figure 1 FIG. 1 is a schematic flow chart showing a power supply control method according to an embodiment of the present application; FIG. Figure 1 As shown, the power control method 100 according to the embodiment of the present application may include the following steps S101, S102 and S103.
[0036] In step S101, determine whether the next generation size specification interface (M.2 interface) is connected to an external device; if so, execute step S102; otherwise, return to execute step S101.
[0037] The execution subject of the embodiment of the present application may be a controller, for example, the controller is an embedded controller (Embedded Controller, EC).
[0038] The next-generation size specification interface (M.2 interface) of the embodiment of the present application is a new type of storage interface that can provide higher transmission speed and smaller size. Since the next-generation size specification interface (M.2 interface) can provide higher data transmission rate and lower latency, it is more suitable for connecting high-speed solid-state drives (SSDs). In some high-performance application scenarios, such as virtualization, cloud computing, and high-performance computing, the M.2 interface is widely used to accelerate the connection of storage devices.
[0039] In an example of the present application, the number of the next generation size specification interface (M.2 interface) is greater than or equal to 2, so more than 2 external devices supporting the M.2 interface can be connected. Those skilled in the art can know that in actual applications, the specific setting of several next generation size specification interfaces (M.2 interfaces) can be expanded according to actual needs.
[0040] In step S102, when an external device is connected to the next generation size specification interface (M.2 interface), device information of the external device is obtained, and the type of the external device is identified according to the device information.
[0041] For example, device information may include manufacturer, device type, model, rated power, power voltage, and other information.
[0042] In step S103, a power control instruction is sent to the power controller according to the type of the external device, so that the current output power is adapted to the type of the external device.
[0043] In one embodiment of the present application, the external device includes at least a solid state disk (Solid State Disk or Solid State Drive, SSD) and / or an artificial intelligence (Artificial Intelligence, AI) computing card.
[0044] Artificial Intelligence (AI) computing cards are also called artificial intelligence (AI) accelerators or artificial intelligence (AI) chips. They are modules specifically used to process a large number of computing tasks in artificial intelligence applications, while other non-computing tasks are still handled by the central processing unit (CPU). For example, artificial intelligence (AI) computing cards may include graphics processing units (GPUs), field programmable gate arrays (FPGAs), and application specific integrated circuits (ASICs).
[0045] In one embodiment of the present application, Figure 2As shown, step S103 sends a power control instruction to the power controller according to the type of the external device, so that the output power of the next generation size specification interface is adapted to the type of the external device, including step S201 and step S202:
[0046] In step S201, voltage information corresponding to an external device stored in a read-only memory is retrieved;
[0047] In step S202, a corresponding power control instruction is sent to the power controller according to the voltage information, so that the output power of the next generation size specification interface meets the requirement of the external device type.
[0048] The read-only memory (ROM) of the embedded controller (EC) in the embodiment of the present application stores voltage information of different external devices. Therefore, when connecting external devices, there is no need to consider the special requirements of external devices from different manufacturers. Instead, the required voltage is provided to the external devices only according to the type of the external devices, which is relatively simple to implement.
[0049] In one embodiment of the present application, Figure 3 As shown, the method further includes step S301:
[0050] In step S301, a control instruction is sent to an indication module so that the indication module indicates the type of the external device.
[0051] The indication module of the embodiment of the present application may include an indicator light, and may also include a device such as a sound or an image for indicating the type of the external device, so that the user knows that the external device has been connected and what type the external device is.
[0052] For example, if the external device is a solid-state drive (SSD), the indicator light displays green, and if the external device is an artificial intelligence (AI) computing card, the indicator light displays red. Of course, when the external device is a solid-state drive (SSD), the indicator light displays red, and when the external device is an artificial intelligence (AI) computing card, the indicator light displays green. The indicator light can also display other colors to let the user know the type of external device currently connected. For another example, if the external device is a solid-state drive (SSD), an instruction to display the hard disk icon is sent to the display device, and if the external device is an artificial intelligence (AI) computing card, an instruction to display the icon corresponding to the artificial intelligence (AI) computing card is sent to the display device.
[0053] The present application implements a power control method for an artificial intelligence (AI) computing card example, obtains the type of an external device through a next-generation size specification interface (M.2 interface), and sends a power control instruction to a power controller according to the type of the external device, so that the output power of the next-generation size specification interface (M.2 interface) is adapted to the power required by the external device type, so that the next-generation size specification interface (M.2 interface) can meet the output power requirements of a variety of external devices without adjusting the circuit board area.
[0054] like Figure 4 FIG. 4 is a schematic flow chart of a power control method according to another embodiment of the present application. The power control method according to the embodiment of the present application may include step S401, step S402, step S403, step S404, step S405 and step S406.
[0055] Step S401: insert an external device into the M.2 interface.
[0056] In step S402, the embedded controller (EC) obtains device information of an external device plugged into the M.2 interface connector (conn) through the bus (SMBus), and executes steps S303 and S306 according to the device information.
[0057] In step S403, the embedded controller (EC) obtains voltage information stored in a read-only memory (ROM).
[0058] The read-only memory (ROM) of the embedded controller (EC) in the embodiment of the present application stores voltage information of different external devices. Therefore, when connecting external devices, there is no need to consider the special requirements of external devices from different manufacturers. Instead, the required voltage is provided to the external devices only according to the type of the external devices, which is relatively simple to implement.
[0059] Step S404: the embedded controller (EC) intelligently regulates the voltages of the two connectors (conn) via the bus (SMBus).
[0060] Step S405: the external device is powered on normally.
[0061] Step S406, when the external device is an artificial intelligence (AI) computing card, the indicator light of the connector displays red, and when the external device is an SSD, the indicator light of the connector displays green.
[0062] In one example, if the external device is a solid-state drive (SSD), the indicator light is green, and if the external device is an artificial intelligence (AI) computing card, the indicator light is red. Of course, when the external device is a solid-state drive (SSD), the indicator light is red, and when the external device is an artificial intelligence (AI) computing card, the indicator light is green. The indicator light can also be displayed in other different colors to let the user know the type of the currently connected external device.
[0063] like Figure 5 FIG. 5 is a schematic diagram of a power control circuit according to another embodiment of the present application. The power control circuit 500 according to the embodiment of the present application may include a controller 501, a linear power supply 502, a power controller (PWR switch) 503, and a next generation size specification interface (M.2 interface) 504.
[0064] The controller is connected to the next-generation size specification interface (M.2 interface) 504 through a bus (SMBus) to obtain device information of the external device 505 through the next-generation size specification interface (M.2 interface) 504, and identify the type of the external device according to the device information; wherein the next-generation size specification interface (M.2 interface) 504 is used to connect the external device 505. For example, the controller may be an embedded controller (EC) 501.
[0065] The next-generation size specification interface (M.2 interface) 504 of the embodiment of the present application is a new type of storage interface that can provide higher transmission speed and smaller size. Since the next-generation size specification interface (M.2 interface) 504 can provide higher data transmission rate and lower latency, it is more suitable for connecting high-speed solid-state drives (SSDs). In some high-performance application scenarios, such as virtualization, cloud computing, and high-performance computing, the next-generation size specification interface (M.2 interface) 504 is widely used to accelerate the connection of storage devices.
[0066] The next generation size specification interface (M.2 interface) 504 has a connector (conn), and the connector (conn) is used to connect an external device.
[0067] The controller 501 is also connected to the power controller (PWR Swich) 503 through the linear power supply 502 ; the power controller (PWR Swich) 503 is connected to the next generation size specification interface (M.2 interface) 504 .
[0068] In one embodiment of the present application, the linear power supply 502 may include a low-dropout regulator (LDO) 502. A low-dropout linear regulator (LDO), also known as a low-dropout linear regulator or a low-dropout regulator, is a type of linear DC regulator, and its purpose is to provide a stable DC voltage power supply. Compared with a general linear DC regulator, a low-dropout linear regulator can operate with a smaller output-input voltage difference. In addition, a low-dropout linear regulator (LDO) also has functions such as overcurrent protection, over-temperature protection, a precision reference source, a differential amplifier, a delay device, and has extremely low self-noise and a high power supply rejection ratio.
[0069] In one example, only one high-power low-dropout linear regulator (LDO) 502 may be provided, for example, a low-dropout linear regulator (LDO) 502 with a power of 9W may be provided; or multiple low-power low-dropout linear regulators (LDO) 502 may be provided, for example, a low-dropout linear regulator (LDO) 502 with a power of 3.3W or 5W. For example, two low-dropout linear regulators (LDO) are provided, one with a power of 3.3W and the other with a power of 5W. Since high-power low-dropout linear regulators (LDO) are relatively expensive, in one example of the present application, two low-power low-dropout linear regulators (LDO) are provided to save costs.
[0070] The controller 501 sends a power control instruction to the power controller (PWR Switch) 503 according to the type of the external device, so that the output power of the next generation size specification interface (M.2 interface) 504 is adapted to the type of the external device.
[0071] In one embodiment of the present application, the external device 505 includes at least a solid state drive and / or an artificial intelligence (AI) computing card.
[0072] In one embodiment of the present application, the circuit further includes an indication module 506 ; the indication module 506 is used to indicate the type of the external device 505 ; wherein the indication module may include an indicator light 506 .
[0073] For example, the indication module 506 may also include devices such as sound and image for indicating the type of the external device, so that the user knows that the external device has been connected and what type the external device is.
[0074] In an example of the present application, the number of the next generation size specification interface (M.2 interface) is greater than or equal to 2, so more than 2 external devices supporting the M.2 interface can be connected. Those skilled in the art can know that in actual applications, the specific setting of several next generation size specification interfaces (M.2 interfaces) can be expanded according to actual needs.
[0075] The power control circuit of the embodiment of the present application includes a controller, a linear power supply, a power controller and a next-generation size specification interface. The controller obtains the type of the external device through the next-generation size specification interface, and sends a power control instruction to the power controller according to the type of the external device, so that the output power of the next-generation size specification interface is adapted to the power required by the external device type. In this way, the next-generation size specification interface can meet the output power requirements of a variety of external devices.
[0076] Combine the following Figure 6 The electronic device of the present application is described, wherein: Figure 6 A schematic block diagram of an electronic device according to an embodiment of the present application is shown.
[0077] like Figure 6 As shown, the electronic device 600 includes Figure 5 The power supply control circuit 500 is shown.
[0078] The electronic device 600 also includes one or more memories 601 and one or more processors 602. The memory 601 stores a computer program executed by the processor 602. When the computer program is executed by the processor 602, the processor 602 executes the power control method described above.
[0079] The electronic device 600 may be part or all of a computer device that can implement the power control method through software, hardware, or a combination of software and hardware.
[0080] like Figure 6 As shown, the electronic device 600 includes one or more memories 601, one or more processors 602, a display (not shown), and a communication interface, etc. These components are interconnected through a bus system and / or other forms of connection mechanisms (not shown). It should be noted that Figure 6 The components and structures of the electronic device 600 shown are merely exemplary and non-limiting. The electronic device 600 may also have other components and structures as required.
[0081] The memory 601 is used to store various data and executable program instructions generated during the operation of the related method, such as for storing various application programs or algorithms for implementing various specific functions. It can include one or more computer program products, and the computer program product can include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory can include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory can include, for example, read-only memory (ROM), hard disk, flash memory, etc.
[0082] The processor 602 may be a central processing unit (CPU), a graphics processing unit (GPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may be other components in the electronic device 600 to perform desired functions.
[0083] In one example, the electronic device 600 also includes an output device that can output various information (such as images or sounds) to the outside (such as a user), and can include one or more of a display device, a speaker, and the like.
[0084] The communication interface can be an interface of any currently known communication protocol, such as a wired interface or a wireless interface, wherein the communication interface may include one or more serial ports, USB interfaces, Ethernet ports, WiFi, wired networks, DVI interfaces, device integrated interconnect modules or other suitable ports, interfaces, or connections.
[0085] In addition, according to an embodiment of the present application, a storage medium is also provided, on which program instructions are stored, and when the program instructions are executed by a computer or a processor, the corresponding steps of the power control method of the embodiment of the present application are executed. The storage medium may include, for example, a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, or any combination of the above storage media.
[0086] The electronic device and storage medium of the embodiments of the present application can implement the aforementioned power control method, and therefore have the same advantages as the aforementioned power control method.
[0087] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present application to this. Those of ordinary skill in the art may make various changes and modifications therein without departing from the scope and spirit of the present application. All these changes and modifications are intended to be included within the scope of the present application as required by the appended claims.
[0088] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example 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 performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0089] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0090] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0091] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present application should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the corresponding claims, the inventive point is that the corresponding technical problem can be solved with features less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby explicitly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0092] It will be understood by those skilled in the art that, except for mutually exclusive features, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this specification may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0093] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
[0094] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some modules according to the embodiments of the present application. The application can also be implemented as a device program (e.g., computer program and computer program product) for executing a part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0095] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.
[0096] The above is only a specific implementation or description of a specific implementation of the present application, and the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A power control method, characterized in that: Applied to electronic devices having a next generation size specification interface, the method comprises: Determining whether the next generation size specification interface is connected to an external device; When an external device is connected to the next generation size specification interface, acquiring device information of the external device, and identifying the type of the external device according to the device information; A power control instruction is sent to the power controller according to the type of the external device, so that the output power of the next generation size specification interface is adapted to the type of the external device.
2. The method according to claim 1, characterized in that Sending a power control instruction to the power controller according to the type of the external device so that the output power of the next generation size specification interface is adapted to the type of the external device, including: Retrieving voltage information corresponding to the external device stored in the read-only memory; According to the voltage information, a corresponding power control instruction is sent to the power controller so that the output power of the next generation size specification interface meets the requirements of the external device type.
3. The method according to claim 1, characterized in that The method further comprises: A control instruction is sent to an indication module so that the indication module indicates the type of the external device; wherein the indication module includes an indicator light.
4. The method according to claim 1, characterized in that: The external device includes at least a solid state drive and / or an artificial intelligence computing card.
5. A power control circuit, characterized in that: Used to implement the method described in any one of claims 1-4; the circuit includes a controller, a linear power supply, a power supply controller and a next-generation size specification interface; wherein, The controller is connected to the next generation size specification interface through a bus to obtain device information of the external device through the next generation size specification interface and identify the type of the external device according to the device information; wherein the next generation size specification interface is used to connect to an external device; The controller is also connected to the power supply controller via the linear power supply; the power supply controller is connected to the next generation size specification interface; The controller sends a power control instruction to the power controller according to the type of the external device, so that the output power of the next generation size specification interface is adapted to the type of the external device.
6. The circuit according to claim 5, characterized in that The external device includes a read-only memory, which stores voltage information required by the external device; the controller is also used to read the voltage information so as to send corresponding power control instructions to the power controller according to the voltage information, so that the output power of the next-generation size specification interface meets the requirements of the external device type.
7. The circuit according to claim 5, characterized in that The linear power supply includes a low voltage dropout linear regulator.
8. The circuit according to claim 5, characterized in that The circuit also includes an indication module; the indication module is used to indicate the type of the external device; wherein the indication module includes an indicator light.
9. An electronic device, characterized in that: The electronic device comprises the power control circuit according to any one of claims 5 to 8, and further comprises: A memory and a processor, wherein the memory stores a computer program executed by the processor, and when the computer program is executed by the processor, the processor executes the power control method according to any one of claims 1 to 4.
10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the processor executes the power control method according to any one of claims 1 to 4.