Power supply control method and apparatus, and device and storage medium
By using SOC and PMIC chips to detect the card slot status in real time, the system can quickly prepare for and control power-down, solving the problem of damage when removing SIM or SD cards and achieving rapid power-down and cost savings.
Patent Information
- Application Number
- PCT/CN2024/137641
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-24
- Filing Date
- 2024-12-06
- Publication Date
- 2026-01-02
AI Technical Summary
When quickly removing a SIM card, the power pins of the SIM or SD card slot may form a loop or short circuit, causing the SIM card to burn out or damage the power management integrated circuit. Existing technical solutions suffer from problems such as large delays or increased chip costs.
The SOC chip and PMIC chip detect the presence status of the SD card and SIM card in real time. When the card is removed, the SOC chip performs a power-down preparation operation, and the PMIC chip controls the card slot to power down, so as to achieve rapid power-down.
It achieves rapid power-down, avoids SIM card damage, saves SOC chip IO pins, and reduces chip cost.
Smart Images

Figure CN2024137641_02012026_PF_FP_ABST
Abstract
Description
Power supply control method, device, apparatus and storage medium
[0001] The present application claims priority to the Chinese patent application No. 202410826089.0, filed on June 24, 2024, and entitled "A power supply control method, device, apparatus and storage medium", the whole content of which is incorporated herein by reference. TECHNICAL FIELD
[0002] The present application belongs to the technical field of mobile terminals, and particularly relates to a power supply control method, device, apparatus and storage medium. BACKGROUND
[0003] In order to save circuit space, some electronic devices use a subscriber identity module (SIM) card and a secure digital (SD) card two-in-one or three-in-one card slot. The SD card can be inserted outside the card slot, and the SIM card can be inserted inside the card slot.
[0004] When the card is quickly pulled out, if the power-off time of the SD card and / or the SIM card is relatively slow (such as milliseconds), the card slot power supply pin of the SIM card or the SD card may form a loop with two pins of the SIM card, causing the SIM card to burn out. In order to avoid the SIM card from burning out, a quick power-off operation needs to be performed on the SD card and / or the SIM card. SUMMARY
[0005] The present application relates to a power supply control method, device, apparatus and storage medium, which can perform a quick power-off operation on the SD card and / or the SIM card.
[0006] In a first aspect, an embodiment of the present application provides a power supply control method applied to an electronic device, wherein the electronic device is provided with a card slot, a SOC chip and a PMIC chip, the card slot is connected with the SOC chip and the PMIC chip respectively, the card slot is used for inserting an SD card and a SIM card, and the method comprises the following steps:
[0007] acquiring a state signal of the card slot through the PMIC chip and the SOC chip, the state signal being used for indicating whether the SD card and / or the SIM card is pulled out;
[0008] when the state signal indicates that the SD card and / or the SIM card is pulled out, performing a power-off preparation operation through the SOC chip, and controlling the card slot to be powered off through the PMIC chip.
[0009] In a possible implementation, the PMIC chip comprises a first detection pin and a first interrupt circuit; the state signal of the card slot is acquired by the PMIC chip, comprising:
[0010] According to the level state of the first detection pin, the preset level signal detected by the first detection pin is determined.
[0011] The preset level signal is processed by the first interrupt circuit to obtain the state signal.
[0012] In a possible implementation, the preset level signal is a falling edge signal; according to the level state of the first detection pin, the preset level signal detected by the first detection pin is determined, comprising:
[0013] When the level state of the first detection pin changes from a high level state to a low level state, it is determined that the first detection pin detects the preset level signal.
[0014] In a possible implementation, the preset level signal is a rising edge signal; according to the level state of the first detection pin, the preset level signal detected by the first detection pin is determined, comprising:
[0015] When the level state of the first detection pin changes from a low level state to a high level state, it is determined that the first detection pin detects the preset level signal.
[0016] In a possible implementation, the PMIC chip controls the card slot to be powered off, comprising:
[0017] After the SOC chip completes the power-off preparation operation, the PMIC chip controls the card slot to be powered off.
[0018] In a possible implementation, the PMIC chip controls the card slot to be powered off, comprising:
[0019] The PMIC chip performs power-off processing on the card slot according to a preset power binding relationship;
[0020] The preset power binding relationship is used to indicate the binding relationship between the state signal and the SD card and the SIM card.
[0021] In a second aspect, the embodiments of the present application provide a power control device, which is applied to an electronic device, wherein the electronic device is provided with a card slot, a SOC chip and a PMIC chip, the card slot is connected with the SOC chip and the PMIC chip respectively, and the card slot is used to insert an SD card and a SIM card; the device comprises an acquisition module and a processing module, wherein,
[0022] The acquisition module is configured to acquire a state signal of the card slot through the PMIC chip and the SOC chip, the state signal being used to indicate whether the SD card and / or the SIM card is pulled out;
[0023] The processing module is configured to, when the state signal indicates that the SD card and / or the SIM card is pulled out, perform a power-off preparation operation through the SOC chip, and control the card slot to be powered off through the PMIC chip.
[0024] In a possible implementation, the PMIC chip includes a first detection pin and a first interrupt circuit, and the acquisition module is specifically configured to:
[0025] determine a preset level signal detected by the first detection pin according to a level state of the first detection pin;
[0026] perform debouncing processing and conversion processing on the preset level signal through the first interrupt circuit to obtain the state signal.
[0027] In a possible implementation, the preset level signal is a falling edge signal, and the acquisition module is specifically configured to:
[0028] determine that the first detection pin detects the preset level signal when the level state of the first detection pin changes from a high level state to a low level state.
[0029] In a possible implementation, the preset level signal is a rising edge signal, and the acquisition module is specifically configured to:
[0030] determine that the first detection pin detects the preset level signal when the level state of the first detection pin changes from a low level state to a high level state.
[0031] In a possible implementation, the processing module is specifically configured to:
[0032] perform power-off processing on the card slot through the PMIC chip according to a preset power binding relationship after the SOC chip completes the power-off preparation operation.
[0033] In a possible implementation, the processing module is specifically configured to:
[0034] perform power-off processing on the card slot through the PMIC chip according to a preset power binding relationship;
[0035] wherein the preset power binding relationship is used to indicate a binding relationship between the state signal and the SD card and the SIM card.
[0036] In a third aspect, an electronic device is provided, comprising: a processor, a memory;
[0037] The memory stores computer-executable instructions.
[0038] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the power control method according to the first aspect.
[0039] In a fourth aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores computer-executable instructions for implementing the power control method according to the first aspect when the computer-executable instructions are executed by a processor.
[0040] In a fifth aspect, a computer program product is provided, and the computer program product comprises a computer program for implementing the power control method according to the first aspect when the computer program is executed by a processor.
[0041] In a sixth aspect, a chip is provided, and the chip stores a computer program, and the computer program is executed by the chip to implement the power control method according to any one of the first aspect.
[0042] In a possible implementation, the chip is a chip in a chip module.
[0043] The embodiments of the present application provide a power control method, device, equipment and storage medium. The method is applied to an electronic device. The electronic device is provided with a card slot, an SOC chip and a PMIC chip. The card slot is connected with the SOC chip and the PMIC chip respectively. The card slot is used for inserting an SD card and a SIM card. The method comprises the following steps: obtaining a state signal of the card slot by the PMIC chip and the SOC chip. The state signal is used for indicating whether the SD card and / or the SIM card is pulled out. When the state signal indicates that the SD card and / or the SIM card is pulled out, performing a power-off preparation operation by the SOC chip, and controlling the card slot to be powered off by the PMIC chip. The SOC chip and the PMIC chip detect the in-place state of the SD card and / or the SIM card in real time. When the SD card and / or the SIM card is pulled out, the SOC chip and the PMIC chip can perform a power-off preparation operation respectively, so that the fast power-off effect is achieved. BRIEF DESCRIPTION OF DRAWINGS
[0044] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0045] FIG. 1 is a flow diagram of a fast power-off scheme one in the related art;
[0046] FIG. 2 is a flow diagram of a fast power-off scheme two in the related art;
[0047] Fig. 3 is a structural schematic diagram of an electronic device according to an embodiment of the present application;
[0048] Fig. 4 is a structural schematic diagram of another electronic device according to an embodiment of the present application;
[0049] Fig. 5 is a flowchart of a power control method according to an embodiment of the present application;
[0050] Fig. 6A is a schematic diagram of a level state of a detection pin according to an embodiment of the present application;
[0051] Fig. 6B is a schematic diagram of another level state of a detection pin according to an embodiment of the present application;
[0052] Fig. 7 is a structural schematic diagram of a power control device according to an embodiment of the present application;
[0053] Fig. 8 is a structural schematic diagram of another electronic device according to an embodiment of the present application.
[0054] The above-described figures have shown the specific embodiments of the present application, which will be described in more detail hereinafter. These figures and the written description are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0055] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without any creative work fall within the scope of protection of the present application.
[0056] In the embodiments of the present application, the term “and / or” describes the association relationship of the associated objects, which means that there can be three kinds of relationships, for example, A and / or B can mean that there are three cases of A alone, A and B together, and B alone. The character “ / ” generally means that the associated objects before and after it are in an “or” relationship.
[0057] It should be understood that, although the terms "first", "second" and the like can be used herein to describe various objects, these objects should not be limited to these terms. These terms are only used to distinguish one object from another. For example, the first detection pin, the second detection pin, and the like are used only to distinguish different detection pins, and do not mean that the two detection pins have different priorities or importance. Alternatively, the first detection pin can also be referred to as the second detection pin, and similarly, the second detection pin can also be referred to as the first detection pin without departing from the scope of the present application.
[0058] It should be further understood that the terms "comprising", "including", indicate the presence of the foregoing features, steps, operations, elements, components, species, and / or groups, but do not exclude the presence, occurrence or addition of one or at least one other feature, step, operation, element, component, species, and / or group.
[0059] In the present application, "example", "in some embodiments", "in other embodiments", and the like are used to mean by way of example, illustration or description. Any embodiment or design scheme described as "example" in the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the word "example" is intended to present the concept in a specific manner.
[0060] It should be understood that, although the steps in the flowchart in the embodiments of the present application are displayed in sequence according to the direction of the arrows, these steps are not necessarily executed in sequence according to the direction of the arrows. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and they can be executed in other orders. Moreover, at least part of the steps in the figure can include at least one sub-step or at least one stage, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence is not necessarily sequential, but can be alternately or alternately executed with other steps or sub-steps or stages of other steps.
[0061] The technical solutions of the embodiments of the present application are applicable to all electronic devices with a common slot for SIM cards and SD cards.
[0062] The application scenario of the embodiments of the present application can refer to the process of plugging and unplugging the SIM card and / or SD card in the electronic device.
[0063] When the card is pulled out quickly, if the power-off time of the SD card and / or the SIM card is relatively slow (such as millisecond level), the card slot power pin spring of the SIM card or the SD card can form a loop with two pins of the SIM card, causing the SIM card to burn out; the card slot power pin spring of the SIM card or the SD card can also contact the same pin of the SIM card, causing a short circuit, which can damage the low dropout regulator (LDO) of the power management integrated circuit (PMIC) chip, and further can have a probability of burning out the SIM card.
[0064] In order to avoid the above problems, it is necessary to perform a quick power-off operation on the SD card and / or the SIM card. Currently, the following two schemes are proposed:
[0065] Scheme one
[0066] As shown in FIG. 1, the in-place state of the SIM card and / or the SD card can be detected through the SIM_DET signal, and after the card is pulled out, the SOC chip first performs a power-off preparation operation, and then synchronously powers off the power of the SIM card and / or the SD card through a special analog digital interface (ADI) interface and the PMIC.
[0067] In scheme one, the SIM_DET signal needs to be processed by the SOC chip before the power of the SIM card and / or the SD card is powered off by the special ADI interface and the PMIC. Since the signal needs to be processed and transmitted through the SOC chip, the time delay is large;
[0068] The signal processing and transmission path is relatively long, so that the time delay is large; in addition, in the sleep scenario, the corresponding SIM module needs to be woken up first, and then the PMIC can be powered off through the ADI interface, so that the quick power-off effect cannot be achieved.
[0069] Scheme two
[0070] As shown in FIG. 2, the SOC chip can detect the in-place state of the SIM card and / or the SD card through the SIM_DET signal, and after the card is pulled out, the SOC chip first performs a power-off preparation operation, and then sends a SIM_INT signal to the PMIC chip through a special input / output (IO) pin, so as to power off the power of the SIM card and / or the SD card.
[0071] In the second scheme, the SIM_DET signal needs to be processed by the SOC chip and then used to synchronously power off the power supply of the SIM card and / or the SD card through a special IO pin. Since the SOC chip needs to be transmitted, the delay is increased. In addition, the SOC chip needs more IO pins, which increases the cost of the chip.
[0072] To solve the above technical problems, the embodiment of the present application provides a power control method. The SOC chip and the PMIC chip detect the in-place state of the SD card and / or the SIM card in real time. When the SD card and / or the SIM card are pulled out, the SOC chip and the PMIC chip can perform power-off preparation operations respectively, so as to achieve the effect of fast power-off.
[0073] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be 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 can not be described in detail in some embodiments. The embodiments of the present application will be described below with reference to the drawings.
[0074] FIG. 3 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. Please refer to FIG. 3. The electronic device is provided with a SOC chip 10, a PMIC chip 20 and a card slot 30. The SOC chip 10 is provided with a second detection pin 11 and a second interrupt circuit 12. The second detection pin 11 is connected with the card slot 30 and the second interrupt circuit 12 respectively. The SOC chip 10 is connected with the PMIC chip 20. The card slot 30 is connected with the PMIC chip 20.
[0075] The card slot 30 can be used to insert an SD card and a SIM card.
[0076] The SOC chip 10 can be used to control the SD card and / or the SIM card inserted in the card slot 30.
[0077] The PMIC chip 20 can control the power supply of each component in the electronic device.
[0078] The SOC chip 10 and the PMIC chip 20 can also obtain a state signal of the card slot. The state signal can be used to indicate whether the SD card and / or the SIM card is pulled out. When the state signal indicates that the SD card and / or the SIM card is pulled out, the SOC chip 10 can perform a power-off preparation operation. The PMIC chip 20 can power off the power supply of the SD card and / or the SIM card after the SOC chip completes the power-off preparation operation.
[0079] Specifically, the second detection pin 11 in the SOC chip 10 can be used to detect a preset level signal. The preset level signal can be used to indicate whether the SD card and / or the SIM card is pulled out.
[0080] The number of the second detection pins 11 can be one or multiple.
[0081] The second interrupt circuit 12 can be used to convert the preset level signal into a state signal.
[0082] The second interrupt circuit 12 can be an Electronic Integrated Circuit (EIC).
[0083] In a possible implementation, the PMIC chip 20 can include the first detection pin 21 and the first interrupt circuit 22, as shown in FIG. 4, the first detection pin 21 can be connected with the card slot 30 and the first interrupt circuit 22 respectively.
[0084] Specifically, the first detection pin 21 in the PMIC chip 20 can be used to detect a preset level signal, and the preset level signal can be used to indicate whether the SD card and / or the SIM card is pulled out.
[0085] The number of the first detection pin 21 can be one or multiple.
[0086] The first interrupt circuit 22 can be used to convert the preset level signal into a state signal.
[0087] The first interrupt circuit 22 can be an EIC.
[0088] In a possible implementation, the SOC chip 10 can include the pin 13 and the SIM / SD control circuit 14, the pin 13 is connected with the card slot 30 and the SIM / SD control circuit 14 respectively, and the SOC chip 10 can control the SD card and / or the SIM card inserted in the card slot 30 through the SIM / SD control circuit 14.
[0089] The descriptions of "controlling the card slot to power off", "controlling the power supply of the SD card and / or the SIM card to power off", and "controlling the card slot to power off" in the embodiments of the present application are equivalent to powering off each pin in the card slot.
[0090] On the basis of the above electronic device structure, how to control the power supply through the above electronic device is described in detail below.
[0091] FIG. 5 is a flowchart of a power supply control method provided by an embodiment of the present application. Please refer to FIG. 5, the method includes:
[0092] S501, obtaining a state signal of a card slot through a PMIC chip and a SOC chip, the state signal being used to indicate whether an SD card and / or a SIM card is pulled out.
[0093] The execution subject of the embodiment of the present application can be an electronic device, or a power control device arranged in the electronic device. The power control device can be implemented by software, or by a combination of software and hardware.
[0094] The status signal can also be referred to as an interrupt signal when the status signal indicates that the SD card and / or the SIM card is pulled out.
[0095] In a possible implementation, the status signal of the card slot can be acquired by the PMIC chip in the following manner: a preset level signal detected by the first detection pin is determined according to the level state of the first detection pin; and the status signal is obtained by performing debouncing processing and conversion processing on the preset level signal through the first interrupt circuit.
[0096] In a possible implementation, the status signal of the card slot can be acquired by the SOC chip in the following manner: a preset level signal detected by the second detection pin is determined according to the level state of the second detection pin; and the status signal is obtained by performing debouncing processing and conversion processing on the preset level signal through the second interrupt circuit.
[0097] The preset level signal can include a falling edge signal or a rising edge signal.
[0098] In a possible implementation, it is assumed that the level state of the first detection pin and the second detection pin is a high level state when the SD card and the SIM card are in place; the level state of the first detection pin and the second detection pin is a low level state when the SD card and / or the SIM card is pulled out; and the preset level signal (falling edge signal) detected by the first detection pin and the second detection pin can be determined when the level state of the first detection pin and the second detection pin changes from the high level state to the low level state.
[0099] As shown in FIG. 6A, before time t, the SD card and the SIM card are in place, and the level state of the first detection pin and the second detection pin is a high level state; at time t, the SD card and / or the SIM card is pulled out, and the level state of the first detection pin and the second detection pin changes from the high level state to the low level state, and thus the falling edge signal detected by the first detection pin and the second detection pin can be determined; after time t, the level state of the first detection pin and the second detection pin is a low level state.
[0100] In a possible implementation, the level state of the first detection pin and the second detection pin is a low level state when the SD card and the SIM card are in place, and the level state of the first detection pin and the second detection pin is a high level state when the SD card and / or the SIM card is pulled out. When the level state of the first detection pin and the second detection pin changes from the low level state to the high level state, it can be determined that the first detection pin and the second detection pin detect the preset level signal (a rising edge signal).
[0101] For example, as shown in FIG. 6B, before time t, the SD card and the SIM card are in place, and the level state of the first detection pin and the second detection pin is a low level state. At time t, the SD card and / or the SIM card is pulled out, and the level state of the first detection pin and the second detection pin changes from the low level state to the high level state. It can be determined that the first detection pin and the second detection pin detect the rising edge signal. After time t, the level state of the first detection pin and the second detection pin is a high level state.
[0102] In a possible implementation, the preset level signal can be an analog signal, and the state signal of the card slot can be a digital signal.
[0103] The preset level signal can be a SIM_DET signal.
[0104] In a possible implementation, the SOC chip and the PMIC chip can be configured with an interrupt mode and a debounce time of the preset level signal in advance, so that the SOC chip and the PMIC chip can detect the level change caused by plugging and unplugging of the SIM card and / or the SD card, and have a debounce function.
[0105] For example, the debounce time can be 200-300 μs.
[0106] S502, when the state signal indicates that the SD card and / or the SIM card is pulled out, performing a power-down preparation operation by the SOC chip, and controlling the card slot to power down by the PMIC chip.
[0107] The power-down preparation operation can be a preparation operation before power down. The power-down preparation operation can ensure that each device in the circuit is not damaged when powering down, and can work normally when next powered on. For example, the power-down preparation operation can be an operation of saving data, releasing resources, and the like.
[0108] In a possible implementation, the SOC chip can complete the power-down preparation operation, and then the PMIC chip can control the card slot to power down.
[0109] In a possible implementation, the PMIC chip can perform power-off processing on the card slot according to a preset power binding relationship. The preset power binding relationship is used to indicate the binding relationship between the state signal and the SD card and the SIM card.
[0110] The preset power binding relationship can be the binding relationship between the state signal 1 and the SD card, the binding relationship between the state signal 2 and the SIM card, and the binding relationship between the state signal 3 and the SD card and the SIM card.
[0111] After the PMIC chip detects the preset level signal and after the de-bouncing and judgment confirmation, if it is determined that the state signal is the state signal 1, the power of the SD card can be turned off after the SOC chip completes the power-off preparation operation; if it is determined that the state signal is the state signal 2, the power of the SIM card can be turned off after the SOC chip completes the power-off preparation operation; if it is determined that the state signal is the state signal 3, the power of the SD card and the SIM card can be turned off after the SOC chip completes the power-off preparation operation.
[0112] In the embodiment shown in FIG. 5, the SOC chip and the PMIC chip detect the in-place state of the SD card and / or the SIM card in real time through hardware. When the SD card and / or the SIM card is pulled out, the SOC chip and the PMIC chip can perform power-off preparation operation respectively, so as to achieve the effect of fast power-off. In addition, the scheme of the present application can save the IO pin of the SOC chip, thereby reducing the cost of the chip.
[0113] FIG. 7 is a structural schematic diagram of a power control device provided by an embodiment of the present application. The power control device is applied to an electronic device. The electronic device is provided with a card slot, an SOC chip and a PMIC chip. The card slot is connected with the SOC chip and the PMIC chip respectively, and is used to insert an SD card and a SIM card. Please refer to FIG. 7. The power control device includes an acquisition module 701 and a processing module 702. The acquisition module 701 is configured to acquire a state signal of the card slot through the PMIC chip and the SOC chip. The state signal is used to indicate whether the SD card and / or the SIM card is pulled out.
[0114] The acquisition module 701 is configured to acquire a state signal of the card slot through the PMIC chip and the SOC chip. The state signal is used to indicate whether the SD card and / or the SIM card is pulled out.
[0115] The processing module 702 is configured to perform power-off preparation operation through the SOC chip and control the card slot to be powered off through the PMIC chip when the state signal indicates that the SD card and / or the SIM card is pulled out.
[0116] In a possible implementation, the PMIC chip includes a first detection pin and a first interrupt circuit. The acquisition module 701 is specifically configured to:
[0117] According to the level state of the first detection pin, determine a preset level signal detected by the first detection pin.
[0118] The preset level signal is de-bounced and converted by the first interrupt circuit to obtain a state signal.
[0119] In a possible implementation, the preset level signal is a falling edge signal, and the obtaining module 701 is specifically configured to:
[0120] When the level state of the first detection pin changes from a high level state to a low level state, it is determined that the first detection pin detects the preset level signal.
[0121] In a possible implementation, the preset level signal is a rising edge signal, and the obtaining module 701 is specifically configured to:
[0122] When the level state of the first detection pin changes from a low level state to a high level state, it is determined that the first detection pin detects the preset level signal.
[0123] In a possible implementation, the processing module 702 is specifically configured to:
[0124] After the SOC chip completes the power-down preparation operation, the PMIC chip controls the card slot to be powered down.
[0125] In a possible implementation, the processing module 702 is specifically configured to:
[0126] The PMIC chip performs power-down processing on the card slot according to a preset power binding relationship;
[0127] The preset power binding relationship is used to indicate a binding relationship between the state signal and the SD card and the SIM card.
[0128] The power control apparatus provided in the embodiments of the present application can implement the technical solutions shown in the method embodiments, and has similar principles and beneficial effects, which will not be described in detail.
[0129] The electronic device provided in the embodiments of the present application can further include other components in addition to the above structure. FIG. 8 is a structural schematic diagram of another electronic device provided in the embodiments of the present application. Please refer to FIG. 8. The electronic device can further include a transceiver 801, a memory 802, and a processor 803. The transceiver 801 can include a transmitter and / or a receiver. The transmitter can also be referred to as a sender, a transmitter, a transmission port, a transmission interface, or similar descriptions. The receiver can also be referred to as a receiver, a receiver, a receiving port, a receiving interface, or similar descriptions. Exemplarily, the transceiver 801, the memory 802, and the processor 803 are connected to each other through a bus 804.
[0130] The memory 802 is configured to store program instructions.
[0131] The processor 803 is configured to execute program instructions stored in the memory, so as to enable the electronic device to perform any of the power control methods described above.
[0132] The transceiver 801 is configured to perform the transceiving function of the electronic device.
[0133] The electronic device can be a chip, a module, an integrated development environment (IDE), or the like.
[0134] The electronic device shown in the embodiment of FIG. 8 can perform the technical solutions shown in the method embodiments described above, and the implementation principles and beneficial effects are similar, which will not be repeated here.
[0135] The embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores computer execution instructions. When the computer execution instructions are executed by a processor, the computer execution instructions are used to implement the power control method of any of the above.
[0136] The embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the computer program can implement the power control method of any of the above.
[0137] The embodiment of the present application provides a chip, and the chip stores a computer program. When the computer program is executed by the chip, the power control method described above is implemented.
[0138] In a possible implementation, the chip is a chip in a chip module.
[0139] The computer readable storage medium and the computer program product of the embodiment of the present application can execute the technical solutions shown in the power control method embodiments described above, and the implementation principles and beneficial effects are similar, which will not be repeated here.
[0140] All or part of the steps of the above method embodiments can be completed by program instruction related hardware. The foregoing program can be stored in a readable memory. When the program is executed, the steps of the above method embodiments are executed; and the foregoing memory (storage medium) includes a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk, a solid state disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof.
[0141] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks.
[0142] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks.
[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks.
[0144] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the claims and their equivalents, the application can be practiced otherwise than as specifically described.
Claims
1. A power supply control method characterized by comprising: Applied to an electronic device, the electronic device is provided with a card slot, a system on chip (SOC) chip and a power management integrated circuit (PMIC) chip, the card slot is connected with the SOC chip and the PMIC chip respectively, the card slot is used for inserting a secure digital (SD) card and a subscriber identity module (SIM) card, and the method comprises: Obtaining a state signal of the card slot through the PMIC chip and the SOC chip, the state signal is used for indicating whether the SD card and / or the SIM card is pulled out; When the state signal indicates that the SD card and / or the SIM card is pulled out, performing a power-off preparation operation through the SOC chip, and controlling the card slot to be powered off through the PMIC chip.
2. The method of claim 1, wherein, The PMIC chip comprises a first detection pin and a first interrupt circuit; Obtaining a state signal of the card slot through the PMIC chip comprises: According to the level state of the first detection pin, determining a preset level signal detected by the first detection pin; Through the first interrupt circuit, the preset level signal is de-bounced and converted to obtain the state signal.
3. The method of claim 2, wherein, The preset level signal is a falling edge signal; According to the level state of the first detection pin, determining a preset level signal detected by the first detection pin comprises: When the level state of the first detection pin changes from a high level state to a low level state, it is determined that the first detection pin detects the preset level signal.
4. The method of claim 2, wherein, The preset level signal is a rising edge signal; According to the level state of the first detection pin, determining a preset level signal detected by the first detection pin comprises: When the level state of the first detection pin changes from a low level state to a high level state, it is determined that the first detection pin detects the preset level signal.
5. The method according to any one of claims 1 to 4, characterized in that, Controlling the card slot to be powered off through the PMIC chip comprises: After the SOC chip completes the power-off preparation operation, the PMIC chip controls the card slot to be powered off.
6. The method of claim 5, wherein, Controlling the card slot to be powered off through the PMIC chip comprises: Through the PMIC chip, according to a preset power binding relationship, the card slot is powered off; The preset power binding relationship is used to indicate the binding relationship between the state signal and the SD card and the SIM card.
7. A power control device, characterized by comprising: Applied to an electronic device, the electronic device is provided with a card slot, a system on chip (SOC) chip and a power management integrated circuit (PMIC) chip, the card slot is connected with the SOC chip and the PMIC chip respectively, the card slot is used for inserting a secure digital (SD) card and a subscriber identity module (SIM) card, and the method comprises: The obtaining module is used for obtaining a state signal of the card slot through the PMIC chip and the SOC chip, and the state signal is used for indicating whether the SD card and / or the SIM card is pulled out; The processing module is used for, when the state signal indicates that the SD card and / or the SIM card is pulled out, performing a power-off preparation operation through the SOC chip, and controlling the card slot to be powered off through the PMIC chip.
8. An electronic device, comprising: Comprise: a processor, a memory; the memory stores computer-executed instructions; the processor executes the computer-executed instructions stored in the memory, so that the processor executes the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executed instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 6.
10. A computer program product, characterised in that, A computer program is included, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
SIM card connector and mobile terminal
CN103326149A
Terminal, control circuit of multipurpose card tray of terminal and method for preventing card burning of SIM card
CN107612571A
Method and device for preventing SIM card from being burned and computer device
CN107786223A
Power supply control method, control chip, power supply management chip and electronic equipment
CN115396255A
Power supply control method and device, equipment and storage medium
CN118821828A