Power supply control method and apparatus, and electronic device
By detecting the card tray's voltage level and triggering an interrupt through an external interrupt controller, and utilizing dedicated I/O to quickly transmit the power-down signal, the problem of slow card tray power-down speed is solved, and safety is improved.
Patent Information
- Application Number
- PCT/CN2024/137651
- 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
In existing technology, the power-off speed is slow when the card tray is removed, which may cause the card in the card tray to burn out.
The target signal level is detected by an external interrupt controller. When an interrupt is triggered, the card tray is powered down. The power-down signal is quickly transmitted using the interrupt trigger conditions and dedicated I/O of the external interrupt controller, avoiding signal processing and transmission delays.
The speed at which the card tray is powered off has been increased, preventing the cards in the tray from burning out and improving safety.
Smart Images

Figure CN2024137651_02012026_PF_FP_ABST
Abstract
Description
Power supply control method and device and electronic equipment
[0001] The present application claims priority from the Chinese patent application No. 202410823900.X filed on June 24, 2024, and entitled "Power supply control method and device and electronic equipment", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] Embodiments of the present application relate to the technical field of mobile terminal, in particular to a power supply control method, device and electronic equipment. BACKGROUND
[0003] When a user pulls out a card tray in an electronic device, if the power-off time of the card tray is slow, the card in the card tray may be burned out.
[0004] At present, the electronic device can periodically obtain an in-place detection signal of the card tray, and process the signal to obtain in-place information of the card tray. If the in-place information indicates that the card tray is not in place, the electronic device can send a power-off indication information to a power supply control module. After receiving the power-off indication information, the power supply control module powers off the card tray. However, in the above method, the time delay of signal processing is large, resulting in slow power-off speed of the card tray of the electronic device. SUMMARY
[0005] The present application provides a power supply control method, device and electronic equipment to solve the technical problem of slow power-off speed of the card tray in the prior art.
[0006] In a first aspect, the present application provides a power supply control method applied in an electronic device, wherein the electronic device comprises an external interrupt controller and a card tray, and the method comprises:
[0007] detecting a level state corresponding to a target signal by the external interrupt controller, wherein the target signal is used to indicate whether the card tray is in place;
[0008] powering off the card tray when the level state triggers an interrupt.
[0009] In a possible implementation, powering off the card tray when the level state triggers an interrupt comprises:
[0010] determining an interrupt trigger condition corresponding to the external interrupt controller;
[0011] determining that the level state triggers an interrupt and powering off the card tray when the level state meets the interrupt trigger condition.
[0012] In a possible implementation, the interrupt trigger condition is a level trigger; and the level state satisfies the interrupt trigger condition, including:
[0013] If the level state is the same as an interrupt trigger level corresponding to the interrupt trigger condition, it is determined that the level state satisfies the interrupt trigger condition, and the interrupt trigger level corresponding to the interrupt trigger condition is opposite to the level state of the target signal when the card holder is in place.
[0014] In a possible implementation, the electronic device includes a system on chip (SOC), and the external interrupt controller is arranged in the SOC.
[0015] In a possible implementation, the external interrupt controller is configured as an input function, and a pin of the external interrupt controller is connected with a signal line of the target signal.
[0016] In a possible implementation, the powering off of the card holder includes:
[0017] determining a power-off signal;
[0018] sending the power-off signal to a power management unit of the electronic device through a preset input / output (IO);
[0019] The power-off signal is used to instruct the power management unit to power off the card holder, and the preset IO is dedicated to synchronizing the power-off signal to the power management unit.
[0020] In a possible implementation, the preset IO is a pin, and the power-off signal is a high level or a low level.
[0021] In a possible implementation, the card holder includes a subscriber identification (SIM) card and a secure digital (SD) card.
[0022] In a second aspect, the present application provides a power control apparatus applied to an electronic device, the electronic device including an external interrupt controller and a card holder, and the power control apparatus including a detection module and a power-off module, wherein:
[0023] The detection module is configured to detect a level state corresponding to a target signal through the external interrupt controller, and the target signal is used to indicate whether the card holder is in place.
[0024] The power-off module is configured to power off the card holder when the level state triggers an interrupt.
[0025] In a possible implementation, the power-off module is specifically configured to:
[0026] determine an interrupt trigger condition corresponding to the external interrupt controller;
[0027] When the level state meets the interrupt trigger condition, it is determined that the level state triggers an interrupt, and the card tray is powered off.
[0028] In a possible implementation, the power-off module is specifically configured to:
[0029] If the level state is the same as the interrupt trigger level corresponding to the interrupt trigger condition, it is determined that the level state meets the interrupt trigger condition, and the interrupt trigger level corresponding to the interrupt trigger condition is opposite to the level state of the target signal when the card tray is in place.
[0030] In a possible implementation, the electronic device includes a system on chip (SOC), and the external interrupt controller is arranged in the SOC.
[0031] In a possible implementation, the external interrupt controller is configured as an input function, and a pin of the external interrupt controller is connected with a signal line of the target signal.
[0032] In a possible implementation, the power-off module is specifically configured to:
[0033] determine a power-off signal;
[0034] send the power-off signal to a power management unit of the electronic device through a preset input / output (IO);
[0035] The power-off signal is used to instruct the power management unit to power off the card tray, and the preset IO is dedicated to synchronizing the power-off signal to the power management unit.
[0036] In a possible implementation, the preset IO is a pin, and the power-off signal is a high level or a low level.
[0037] In a possible implementation, the card tray includes a subscriber identification module (SIM) card and a secure digital (SD) card.
[0038] In a third aspect, an embodiment of the present application provides an electronic device, including: a transceiver, a processor, and a memory;
[0039] The memory stores computer execution instructions;
[0040] The processor executes the computer execution instructions stored in the memory, so that the processor executes the power control method according to any one of the first aspect.
[0041] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores computer executable instructions. When the computer executable instructions are executed by a processor, the computer executable instructions cause the processor to implement the power control method according to any one of the preceding aspects.
[0042] In a fifth aspect, a computer program product is provided, and the computer program product includes a computer program. When the computer program is executed by a processor, the computer program causes the processor to implement the steps of the power control method according to any one of the preceding aspects.
[0043] The power control method, device and electronic equipment provided in the present application can detect the level state of the target signal through the external interrupt controller, and can trigger the interrupt in time when the card tray is pulled out, and can power off the card tray in time through the external interrupt trigger, thereby improving the power-off speed of the card tray, avoiding the burning of the card in the card tray, and improving the safety. BRIEF DESCRIPTION OF DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative labor.
[0045] FIG. 1 is a schematic diagram of an architecture provided by an embodiment of the present application;
[0046] FIG. 2 is a flowchart of a power control method provided by an embodiment of the present application;
[0047] FIG. 3 is a schematic diagram of a level state of a target signal provided by an embodiment of the present application;
[0048] FIG. 4 is a schematic diagram of another level state of a target signal provided by an embodiment of the present application;
[0049] FIG. 5 is a schematic diagram of a method of powering off a card tray provided by an embodiment of the present application;
[0050] FIG. 6 is a schematic diagram of a process of a power control method provided by an embodiment of the present application;
[0051] FIG. 7 is a structural schematic diagram of a power control device according to an embodiment of the present application;
[0052] FIG. 8 is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0053] The exemplary embodiments will be described in detail herein below with reference to the 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 apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims.
[0054] It can be understood that, before using the technical solutions disclosed in the embodiments of the present application, the type of personal information involved in the present application, the use range, the use scenario, etc. should be informed to the user and the authorization of the user should be obtained in a proper manner according to relevant laws and regulations.
[0055] For example, in response to receiving an active request of a user, a prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will need to obtain and use the personal information of the user. Thus, the user can voluntarily choose whether to provide the personal information to the electronic device, the application program, the server or the storage medium, etc. software or hardware performing the operation of the technical solutions of the present application according to the prompt information.
[0056] As an optional but non-limiting implementation, in response to receiving an active request of a user, the manner of sending a prompt information to the user may, for example, be a pop-up window manner, in which the prompt information can be presented in a text manner. In addition, the pop-up window can also carry a selection control for the user to select "agree" or "disagree" to provide the personal information to the electronic device.
[0057] It can be understood that the above notification and obtaining of the authorization of the user are only illustrative and do not limit the implementation of the present application, and other manners meeting the relevant laws and regulations can also be applied to the implementation of the present application.
[0058] For the convenience of understanding, the concepts involved in the embodiments of the present application are described below.
[0059] Electronic device: a device with wireless transceiver function. The electronic device can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted. The electronic device can be a mobile phone, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, a vehicle-mounted electronic device, a wireless terminal in self driving, a wireless electronic device in remote medical, a wireless electronic device in smart grid, a wireless electronic device in transportation safety, a wireless electronic device in smart city, a wireless electronic device in smart home, a wearable electronic device, etc. The electronic device involved in the embodiments of the present application can also be referred to as a terminal, a user equipment (UE), an access electronic device, a vehicle-mounted terminal, an industrial control terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote electronic device, a mobile device, a UE electronic device, a wireless communication device, a UE agent or a UE apparatus, etc. The electronic device can also be fixed or mobile.
[0060] In the related art, when a user pulls out the card tray in the electronic device, if the power-off time of the card tray is slow, the golden finger can form a loop through the metal pin of the card in the card tray, thereby causing a short circuit or burning the card. At present, the electronic device can periodically obtain the in-place detection signal of the card tray, and process the signal to obtain the in-place information of the card tray. If the in-place information of the card tray indicates that the card tray is not in place, the electronic device can send power-off indication information to the power management module through the analog-to-digital interface (Analog-to-Digital Interface, ADI), and the power management module can perform power-off processing on the card tray according to the power-off indication information. However, in the above method, the electronic device needs to periodically obtain the in-place detection signal and process the in-place detection signal, and the card tray is powered off through the in-place detection signal. There are more signal transmission paths, the signal processing and transmission delay is large, and the speed of the electronic device to power off the card tray is slow.
[0061] In order to solve the technical problems in the related art, the embodiment of the present application provides a power supply control method applied to an electronic device, which can include an external interrupt controller and a card holder, wherein the external interrupt controller is configured to input functions, and a pin of the external interrupt controller is connected with a signal line of a target signal; the electronic device can detect a level state corresponding to the target signal through the external interrupt controller, and obtain an interrupt trigger condition corresponding to the external interrupt controller; when the level state meets the interrupt trigger condition, it is determined that the level state triggers an interrupt, and the card holder is powered off. In this way, when the card holder is not in place, the electronic device can power off the card holder in time through the interrupt triggered by the external interrupt controller, and the electronic device does not need to convert the target signal of whether the card holder is in place into in-place information of the card holder, thereby improving the speed of powering off the card holder by the electronic device, avoiding the situation that the card in the card holder is burned out, and improving the safety.
[0062] Next, the architecture of the present application is described in combination with FIG. 1.
[0063] FIG. 1 is a schematic diagram of an architecture provided by an embodiment of the present application. Please refer to FIG. 1, which includes an electronic device. The electronic device can include a system on chip (SOC), a card holder, a power management unit, and a power supply. Optionally, the power management unit can be a power management integrated circuit (PMIC). The SOC can include an external interrupt controller (EIC). The card holder can include a subscriber identity module (SIM) card and a secure digital (SD) card. The EIC can be connected with the card holder and the PMIC, the PMIC can be connected with the power supply, and the power supply can power off the card holder. In this way, the electronic device can quickly power off the card holder through the interrupt triggered by the EIC, and improve the safety of the SIM card and the SD card.
[0064] Next, the technical solutions shown by the present application are described in detail through specific embodiments. It should be noted that the following embodiments can exist independently or be combined with each other, and the same or similar contents are not repeated in different embodiments.
[0065] FIG. 2 is a flowchart of a power supply control method provided by an embodiment of the present application. Please refer to FIG. 2, which can include the following steps:
[0066] S201, detecting a level state corresponding to a target signal through an external interrupt controller.
[0067] 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 according to software, or implemented according to a combination of software and hardware, and the embodiment of the present application does not limit this.
[0068] The target signal can be used to indicate whether the card tray is in place. For example, the target signal can be a SIM_DET signal, which can indicate whether the card tray is in place. For example, if the level state corresponding to the target signal is high, the target signal can indicate that the card tray of the electronic device is in place, and if the level state corresponding to the target signal is low, the target signal can indicate that the card tray of the electronic device is not in place. Alternatively, if the level state corresponding to the target signal is low, the target signal can indicate that the card tray of the electronic device is in place, and if the level state corresponding to the target signal is high, the target signal can indicate that the card tray of the electronic device is not in place.
[0069] The external interrupt controller can be used to process the interrupt signal of the external device, and the external interrupt controller is configured as an input function, and the pin of the external interrupt controller is connected with the signal line of the target signal. For example, the pin of the external interrupt controller can be connected with the signal line of the SIM_DET signal. Since the external interrupt controller is configured as an input function, the external interrupt controller can continuously detect the level state of the SIM_DET signal, and when the level state changes, the external interrupt controller can timely acquire the change.
[0070] Optionally, the electronic device can include a system on chip (SOC), and the external interrupt controller can be arranged in the SOC. In this way, when the external interrupt controller triggers an interrupt, the SOC can timely perform power-down processing on the card tray, thereby improving the speed of power-down and improving the security of the SIM card and the SD card.
[0071] S202, when the level state triggers an interrupt, powering down the card tray.
[0072] The electronic device can power down the card tray according to the following possible implementation manners: determining an interrupt trigger condition corresponding to the external interrupt controller, and when the level state meets the interrupt trigger condition, determining that the level state triggers an interrupt, and powering down the card tray.
[0073] The interrupt trigger condition can be a level trigger, and the level state meets the interrupt trigger condition, which can be specifically: if the level state is the same as the interrupt trigger level corresponding to the interrupt trigger condition, it is determined that the level state meets the interrupt trigger condition.
[0074] The interrupt trigger level can indicate a level triggering the interrupt. For example, if the interrupt trigger level is high, the external interrupt controller can trigger the interrupt when detecting that the level state of the target signal is high; if the interrupt trigger level is low, the external interrupt controller can trigger the interrupt when detecting that the level state of the target signal is low.
[0075] It should be noted that when the external interrupt controller triggers the interrupt, the status flag bit of the interrupt can be set to 1, and the SOC can detect the change of the status flag bit of the interrupt and perform the interrupt operation. After the SOC responds to the interrupt and powers off the card, the status flag bit of the interrupt can be cleared.
[0076] The interrupt trigger condition corresponds to an interrupt trigger level opposite to the level state of the target signal when the card is in place. For example, if the level state of the card in place is high, the interrupt trigger level corresponding to the interrupt trigger condition is low; if the level state of the card in place is low, the interrupt trigger level corresponding to the interrupt trigger condition is high.
[0077] Optionally, the interrupt trigger condition can be edge trigger, and the level state satisfying the interrupt trigger condition can be that if the level state of the target signal detected by the external interrupt controller appears a target edge, the electronic device can determine that the level state satisfies the interrupt trigger condition.
[0078] The target edge can indicate a signal edge triggering the interrupt. For example, if the target edge is a rising edge, the external interrupt controller can trigger the interrupt when detecting that the level state of the target signal rises from low to high; if the target edge is a falling edge, the external interrupt controller can trigger the interrupt when detecting that the level state of the target signal falls from high to low.
[0079] The setting of the target edge can be related to the level state of the card in place. For example, if the level state of the card in place is high, the target edge corresponding to the interrupt trigger condition can be a falling edge; if the level state of the card in place is low, the target edge corresponding to the interrupt trigger condition can be a rising edge.
[0080] Next, the level state of the target signal will be described in conjunction with FIG. 3-FIG. 4.
[0081] FIG. 3 is a schematic diagram of a level state of a target signal according to an embodiment of the present application. In the embodiment shown in FIG. 3, when the card is in place, the level state of the target signal is high. Referring to FIG. 3, a time axis is included. The level state of the target signal detected by the external interrupt trigger (not shown in FIG. 3) is included on the time axis. Before time t, the level state of the target signal is high, and after time t, the level state of the target signal is low. That is, before time t, the card is in place, and after time t, the card is not in place.
[0082] In the embodiment shown in FIG. 3, if the external interrupt controller detects that the level state of the target signal is low, or the level state of the target signal drops from high to low, the electronic device can determine that the level state meets the interrupt triggering condition, and the external interrupt controller can trigger an interrupt.
[0083] FIG. 4 is another schematic diagram of a level state of a target signal according to an embodiment of the present application. In the embodiment shown in FIG. 4, when the card is in place, the level state of the target signal is low. Referring to FIG. 4, a time axis is included. The level state of the target signal detected by the external interrupt trigger (not shown in FIG. 4) is included on the time axis. Before time t, the level state of the target signal is low, and after time t, the level state of the target signal is high. That is, before time t, the card is in place, and after time t, the card is not in place.
[0084] In the embodiment shown in FIG. 4, if the external interrupt controller detects that the level state of the target signal is high, or the level state of the target signal rises from low to high, the electronic device can determine that the level state meets the interrupt triggering condition, and the external interrupt controller can trigger an interrupt.
[0085] Optionally, when the level state of the target signal changes (for example, the card changes from being in place to not being in place), the SOC in the electronic device can perform debouncing processing on the level state of the target signal. In this way, the accuracy of the level state of the target signal can be improved, and false signals caused by mechanical jitter and the like can be avoided. Therefore, the electronic device can accurately determine whether the card is not in place, and the accuracy of powering off the card can be improved.
[0086] When the electronic device determines that the card is not in place, the PMIC can perform power-off processing on the SIM card and the SD card in the card. Before the electronic device powers off the card, the electronic device can perform power-off preparation operations. After the power-off preparation operations are completed, the electronic device can perform power-off processing on the card. For example, the power-off preparation operations can include data saving and synchronization, closing or suspending tasks that are running, and the like, which are not limited in the embodiments of the present application.
[0087] The embodiment of the present application provides a power supply control method, an electronic device can detect a level state corresponding to a target signal through an external interrupt controller, and obtains an interrupt trigger condition corresponding to the external interrupt controller, wherein the interrupt trigger condition can be a level trigger, if the level state is the same as an interrupt trigger level (opposite to the level state of the target signal when the card holder is in place) corresponding to the interrupt trigger condition, the electronic device can determine that the level state meets the interrupt trigger condition, and then determines that the level state triggers the interrupt, and powers off the card holder. In this way, when the card holder is not in place, the level state of the target signal can trigger the interrupt, the electronic device can timely power off the card holder, and the electronic device does not need to convert the target signal of whether the card holder is in place into in-place information of the card holder, thereby improving the speed of powering off the card holder of the electronic device, avoiding the situation that the card in the card holder is burned out, and improving safety.
[0088] On the basis of the embodiment shown in FIG. 2, the method that the electronic device powers off the card holder in the power supply control method will be described in detail below in combination with FIG. 5.
[0089] FIG. 5 is a schematic diagram of a method for powering off a card holder provided by an embodiment of the present application. Referring to FIG. 5, the method flow includes the following steps.
[0090] S501, determining a power-off signal.
[0091] The power-off signal can be used to instruct the power management unit to power off the card holder. For example, if the power management unit receives the power-off signal sent by the SOC, the power management unit can control the power supply to power off the card holder.
[0092] The power-off signal can be a high level or a low level. For example, the electronic device can pre-set a power binding relationship configuration, wherein the power binding relationship configuration can indicate the power-off signal. For example, the power binding relationship configuration can be high-level power-off, and the power binding relationship configuration can also be low-level power-off, and the embodiment of the present application does not make any limitation in this regard. In this way, the electronic device can control the power management unit to power off the card holder through the high level or the low level, the signal transmission and signal processing time is short, and then the speed of powering off the card holder can be improved.
[0093] It should be noted that the power-off signal can also be any other feasible signal (such as a rising edge signal or a falling edge signal), and the embodiment of the present application does not make any limitation in this regard.
[0094] S502, sending the power-off signal to the power management unit of the electronic device through a pre-set input / output (IO).
[0095] The preset IO can be dedicated to sending the power-off signal to the power management unit. For example, the preset IO can be a dedicated IO that sends the power-off signal to the PMIC when the card holder is pulled out, so the dedicated IO does not need to process other signals, the signal transmission speed is faster, and thus the power-off efficiency can be improved.
[0096] The preset IO can be a pin. For example, the preset IO can be a SIM INT pin that can be used as an interrupt pin, and the SIM INT pin can establish a dedicated communication interface between the SOC and the PMIC.
[0097] The embodiment of the present application provides a method for powering off the card holder. The electronic device can determine the power-off signal and send the power-off signal to the power management unit of the electronic device through the preset input / output IO. In this way, when the electronic device determines that the level state of the target signal meets the interrupt trigger condition, the power-off signal can be sent to the power management unit through the preset IO, and the power management unit can power off the card holder based on the power-off signal. Since the preset IO can be dedicated to synchronizing the power-off signal to the power management unit, the electronic device can quickly synchronize the power-off signal to the power management unit, thereby improving the speed of powering off the card holder and improving the security of the SIM card and the SD card.
[0098] Next, the process of the above power control method will be described in conjunction with FIG. 6.
[0099] FIG. 6 is a process schematic diagram of a power control method according to an embodiment of the present application. Please refer to FIG. 6, which includes an electronic device. The electronic device can include a SOC, a card slot shared by a SIM card and an SD card, a PMIC, and a power supply. The SOC can include an EIC and a dedicated IO, and the interrupt trigger condition of the EIC is a low-level trigger interrupt. When the card holder is inserted into the card slot shared by the SIM card and the SD card, the level state of the in-place detection signal of the card holder is high, the EIC can detect the high level, and the high level does not trigger an interrupt.
[0100] Please refer to FIG. 6, when the card holder is pulled out of the card slot shared by the SIM card and the SD card, the level state of the in-place detection signal of the card holder is low, and the EIC detects the low level. When the EIC detects the low level, it can determine that the low level triggers an interrupt, and the state flag of the interrupt is set to 1. After the SOC detects the state flag of the interrupt set to 1, the SOC can send a high level (configured as a high level power-off) to the PMIC through the dedicated IO. After the PMIC receives the high level, the PMIC can control the power supply to power off the card holder.
[0101] In this way, when the card holder is not in place, the electronic device can trigger an interrupt through the external interrupt controller, and can synchronize the power-down signal to the PMIC in a timely manner through the dedicated IO (small time delay and high transmission efficiency) to perform power-down processing on the card holder, thereby improving the power-down speed of the card holder, avoiding the burning of the SIM card and the SD card in the card holder, improving the safety, and when the SOC or the SIM module (a collection of hardware and software related to the SIM card) is in a sleep scenario, the electronic device does not need to go through the wake-up process to directly synchronize the PMIC power-down, and the fast power-down demand in the sleep scenario can be met.
[0102] FIG. 7 is a structural schematic diagram of a power control device provided by an embodiment of the present application. Referring to FIG. 7, the power control device 700 includes a detection module 701 and a power-down module 702, wherein:
[0103] The detection module 701 is configured to detect a level state corresponding to a target signal through the external interrupt controller, the target signal being used to indicate whether the card holder is in place.
[0104] The power-down module 702 is configured to perform power-down on the card holder when the level state triggers an interrupt.
[0105] In a possible implementation, the power-down module 702 is specifically configured to:
[0106] determine an interrupt triggering condition corresponding to the external interrupt controller;
[0107] when the level state meets the interrupt triggering condition, determine that the level state triggers an interrupt, and perform power-down on the card holder.
[0108] In a possible implementation, the power-down module 702 is specifically configured to:
[0109] if the interrupt triggering level corresponding to the level state and the interrupt triggering condition is the same, it is determined that the level state meets the interrupt triggering condition, and the interrupt triggering level corresponding to the interrupt triggering condition is opposite to the level state of the target signal when the card holder is in place.
[0110] In a possible implementation, the electronic device includes a system on chip (SOC), and the external interrupt controller is arranged in the SOC.
[0111] In a possible implementation, the external interrupt controller is configured as an input function, and a pin of the external interrupt controller is connected with a signal line of the target signal.
[0112] In a possible implementation, the power-down module 702 is specifically configured to:
[0113] determining a power-off signal;
[0114] sending the power-off signal to a power management unit of the electronic device through a preset input / output (IO);
[0115] The power-off signal is used to instruct the power management unit to power off the card tray, and the preset IO is dedicated to synchronizing the power-off signal to the power management unit.
[0116] In a possible implementation, the preset IO is a pin, and the power-off signal is a high level or a low level.
[0117] In a possible implementation, the card tray includes a subscriber identity module (SIM) card and a secure digital (SD) card.
[0118] The power control apparatus provided in the embodiments of the present application can implement the technical solutions shown in the method embodiments, and the implementation principles and beneficial effects are similar, which will not be described in detail herein.
[0119] The power control apparatus shown in the embodiments of the present application can be a chip, a hardware module, a processor, or the like. Of course, the power control apparatus can be in other forms, which are not limited in the embodiments of the present application.
[0120] FIG. 8 is a structural schematic diagram of an electronic device provided in the embodiments of the present application. Referring to FIG. 8, the electronic device 800 can 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 the like. The receiver can also be referred to as a receiver, a receiver, a receiving port, a receiving interface, or the like. Exemplarily, the transceiver 801, the memory 802, and the processor 803 are connected to each other through a bus 804.
[0121] The memory 802 is configured to store program instructions.
[0122] The processor 803 is configured to execute the program instructions stored in the memory, so that the electronic device 800 executes any of the power control methods shown above.
[0123] The transceiver 801 is configured to perform the transceiving function of the electronic device 800 in the power control method.
[0124] The embodiments of the present application provide a computer readable storage medium, which 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.
[0125] The embodiment of the present application can also provide a computer program product, which can be executed by a processor, and when the computer program product is executed, the power control method executed by the electronic device shown in any of the above embodiments can be implemented.
[0126] The embodiment of the present application can also provide a computer program product, which can be executed by a processor, and when the computer program product is executed, the power control method executed by the electronic device shown in any of the above embodiments can be implemented.
[0127] The electronic device, the network device, the computer readable storage medium and the computer program product of the embodiment of the present application can execute the power control method executed by the electronic device, and the specific implementation process and advantages are described above, and will not be described here.
[0128] 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: read-only memory (English: read-only memory, abbreviation: ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.
[0129] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams according to the methods, devices (systems) and computer program products of the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate a device for implementing the functions specified in one or more flows in the flowcharts and / or one or more blocks in the block diagrams.
[0130] These computer program instructions can also be stored in a computer readable memory that can guide the computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer readable memory generate a product including instruction devices, which implement the functions specified in one or more flows in the flowcharts and / or one or more blocks in the block diagrams.
[0131] These computer program instructions can also be loaded into 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 and / or block diagram block or blocks.
[0132] Obviously, persons having ordinary skill in the art can make various modifications and variations to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application belong to the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0133] In the present application, the term "comprising" and its variants can refer to non-limiting inclusion; the term "or" and its variants can refer to "and / or". In the present application, the terms "first", "second" and the like are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. In the present application, "a plurality of" means two or more. "And / or", which describes the relationship between the associated objects, means that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist together, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects.
Claims
1. A power supply control method, characterized in that, Applied in an electronic device, the electronic device including an external interrupt controller and a card tray, the method includes: The level state of the target signal is detected by the external interrupt controller, and the target signal is used to indicate whether the card tray is in place. When the interrupt is triggered by the aforementioned level state, the card tray is powered down.
2. The method according to claim 1, characterized in that, When the interrupt is triggered by the aforementioned level state, the cassette is powered down, including: Determine the interrupt triggering conditions corresponding to the external interrupt controller; When the level state meets the interrupt triggering condition, the level state is determined to trigger an interrupt, and the card tray is powered down.
3. The method according to claim 2, characterized in that, The interrupt triggering condition is level-triggered; The level state satisfies the interrupt triggering condition, including: If the level state is the same as the interrupt trigger level corresponding to the interrupt trigger condition, then the level state is determined to satisfy the interrupt trigger condition, and the interrupt trigger level corresponding to the interrupt trigger condition is opposite to the level state of the target signal when the card is in position.
4. The method according to any one of claims 1-3, characterized in that, The electronic device includes a system-on-a-chip (SOC), and the external interrupt controller is located in the SOC.
5. The method according to any one of claims 1-3, characterized in that, The external interrupt controller is configured as an input function, and the pins of the external interrupt controller are connected to the signal lines of the target signal.
6. The method according to any one of claims 1-3, characterized in that, The step of powering down the cassette includes: Determine the power signal; A power-down signal is sent to the power management unit of the electronic device through preset input / output I / O; The power-down signal is used to instruct the power management unit to power down the card tray, and a preset I / O is dedicated to synchronizing the power-down signal with the power management unit.
7. The method according to claim 6, characterized in that, The preset IO is a pin, and the power-down signal is a high level or a low level.
8. The method according to any one of claims 1-3, characterized in that, The card tray includes a user identification SIM card and a secure digital SD card.
9. A power control device, characterized in that, Applied in electronic devices, the electronic devices include an external interrupt controller and a card tray, and the power control device includes a detection module and a power-down module, wherein: The detection module is used to detect the level state corresponding to the target signal through the external interrupt controller, and the target signal is used to indicate whether the card tray is in place; The power-down module is used to power down the card tray when the level state triggers an interrupt.
10. An electronic device, characterized in that, include: Transceiver, processor, memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the power control method as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the power control method according to any one of claims 1 to 8.
12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the power control method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Method and mobile communication terminal for rapidly responding hot plug of SIM card
CN102710827A
Method for avoiding burning of SIM cards
CN105893897A
Power supply control method and device, equipment and storage medium
CN116384430A
Power supply control method and device and electronic equipment
CN118785335A
SIM card hot-plug guard and SIM card on-site shutdown swipe-card method, and terminal
WO2014106499A1