Power supply control method and device, and electronic equipment
By detecting the card tray level status and triggering an interrupt through an external interrupt controller, and utilizing a dedicated IO power-down signal, the problem of slow card tray power-down speed is solved, achieving fast power-down and improved safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- XIAMEN UNISOC TECH CO LTD
- Filing Date
- 2024-06-24
- Publication Date
- 2026-05-12
AI Technical Summary
In existing technology, electronic devices are powered down slowly when the card tray is removed, which may cause the card in the tray to burn out.
The card tray's voltage level is detected by an external interrupt controller, and the card tray is powered down when an interrupt is triggered by the voltage level. A power-down signal is sent to the power management unit using a dedicated I/O, simplifying signal processing and transmission paths.
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 CN118785335B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mobile terminal technology, and in particular to a power control method, device and electronic device. Background Technology
[0002] If the card tray is powered off too slowly when a user removes it from an electronic device, the card inside may burn out.
[0003] Currently, electronic devices can periodically acquire the card tray's presence detection signal and process it to obtain the card tray's presence information. If this presence information indicates that the card tray is not in place, the electronic device can send a power-down instruction to the power control module. Upon receiving this power-down instruction, the power control module powers down the card tray. However, in the above method, the signal processing delay is relatively large, resulting in a slow power-down speed for the electronic device's card tray. Summary of the Invention
[0004] This application provides a power control method, device, and electronic device to solve the technical problem in the prior art that the power-off speed of the card tray is slow when the card tray is removed.
[0005] In a first aspect, this application provides a power control method applied in an electronic device, the electronic device including an external interrupt controller and a card tray, the method comprising:
[0006] 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.
[0007] When the interrupt is triggered by the aforementioned level state, the card tray is powered down.
[0008] In one possible implementation, when the level state triggers an interrupt, powering down the cassette includes:
[0009] Determine the interrupt triggering conditions corresponding to the external interrupt controller;
[0010] 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.
[0011] In one possible implementation, the interrupt triggering condition is level-triggered; the level state satisfying the interrupt triggering condition includes:
[0012] 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.
[0013] In one possible implementation, the electronic device includes a system-on-a-chip (SOC), and the external interrupt controller is disposed in the SOC.
[0014] In one possible implementation, the external interrupt controller is configured as an input function, with its pins connected to the signal lines of the target signal.
[0015] In one possible implementation, energizing the cassette includes:
[0016] Determine the power signal;
[0017] A power-down signal is sent to the power management unit of the electronic device through preset input / output I / O;
[0018] 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.
[0019] In one possible implementation, the preset IO is a pin, and the power-down signal is a high level or a low level.
[0020] In one possible implementation, the card tray includes a user identification SIM card and a secure digital SD card.
[0021] Secondly, this application provides a power control device applied in an electronic device, the electronic device including an external interrupt controller and a card tray, the power control device including a detection module and a power-down module, wherein:
[0022] 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;
[0023] The power-down module is used to power down the card tray when the level state triggers an interrupt.
[0024] In one possible implementation, the power-down module is specifically used for:
[0025] Determine the interrupt triggering conditions corresponding to the external interrupt controller;
[0026] 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.
[0027] In one possible implementation, the power-down module is specifically used for:
[0028] 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.
[0029] In one possible implementation, the electronic device includes a system-on-a-chip (SOC), and the external interrupt controller is disposed in the SOC.
[0030] In one possible implementation, the external interrupt controller is configured as an input function, with its pins connected to the signal lines of the target signal.
[0031] In one possible implementation, the power-down module is specifically used for:
[0032] Determine the power signal;
[0033] A power-down signal is sent to the power management unit of the electronic device through preset input / output I / O;
[0034] 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.
[0035] In one possible implementation, the preset IO is a pin, and the power-down signal is a high level or a low level.
[0036] In one possible implementation, the card tray includes a user identification SIM card and a secure digital SD card.
[0037] Thirdly, embodiments of this application provide an electronic device, including: a transceiver, a processor, and a memory;
[0038] The memory stores computer-executed instructions;
[0039] The processor executes computer execution instructions stored in the memory, causing the processor to perform the power control method as described in any of the first aspects.
[0040] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the power control method described in any of the preceding claims.
[0041] Fifthly, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the power control method as described in any of the preceding claims.
[0042] This application provides a power control method, apparatus, and electronic device. The electronic device includes an external interrupt controller and a card tray. The electronic device can detect the level state of a target signal through the external interrupt controller. The target signal can be used to indicate whether the card tray is in place. When the electronic device determines the level state and triggers an interrupt, it can power down the card tray. In this method, because the electronic device can continuously detect the level state of the target signal through the external interrupt controller, the external interrupt controller can promptly trigger an interrupt when the card tray is removed. Furthermore, because the electronic device triggers the power-down of the card tray through the external interrupt trigger, it can power down the card tray in a timely manner, thereby increasing the speed of power-down and preventing the card in the card tray from burning out, thus improving safety. Attached Figure Description
[0043] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 A schematic diagram of an architecture provided for an embodiment of this application;
[0045] Figure 2 A schematic flowchart of a power control method provided in an embodiment of this application;
[0046] Figure 3 A schematic diagram illustrating the level state of a target signal provided in an embodiment of this application;
[0047] Figure 4 A schematic diagram illustrating the level state of another target signal provided in an embodiment of this application;
[0048] Figure 5 This is a schematic diagram of a method for powering down a cassette, provided in an embodiment of this application.
[0049] Figure 6 This is a schematic diagram of a power control method provided in an embodiment of this application;
[0050] Figure 7 This is a schematic diagram of the structure of a power control device provided in an embodiment of this application;
[0051] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0052] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0053] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0054] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this application's technical solution, based on the prompt message.
[0055] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0056] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this application. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this application.
[0057] For ease of understanding, the concepts involved in the embodiments of this application will be explained below.
[0058] Electronic device: A device with wireless transceiver capabilities. Electronic devices can be deployed on land, including indoors or outdoors, handheld, wearable, or vehicle-mounted. These electronic devices can be mobile phones, tablets, computers with wireless transceiver capabilities, virtual reality (VR) electronic devices, augmented reality (AR) electronic devices, wireless terminals in industrial control, vehicle-mounted electronic devices, wireless terminals in self-driving vehicles, wireless electronic devices in remote medical care, wireless electronic devices in smart grids, wireless electronic devices in transportation safety, wireless electronic devices in smart cities, wireless electronic devices in smart homes, wearable electronic devices, etc. The electronic devices involved in the embodiments of this application can also be referred to as terminals, user equipment (UE), access electronic devices, vehicle-mounted terminals, industrial control terminals, UE units, UE stations, mobile stations, mobile stations, remote stations, remote electronic devices, mobile devices, UE electronic devices, wireless communication devices, UE agents, or UE devices, etc. Electronic devices can also be fixed or mobile.
[0059] In related technologies, if the power-down time of the card tray is slow when a user removes it from an electronic device, the gold fingers can form a circuit through the metal pins of the card in the tray, potentially causing a short circuit or burning out the card. Currently, electronic devices can periodically acquire and process the presence signal of the card tray to obtain its presence information. If the presence information indicates that the card tray is not in place, the electronic device can send a power-down instruction to the power management module via an Analog-to-Digital Interface (ADI). The power management module can then power down the card tray based on this instruction. However, in this method, the electronic device needs to periodically acquire and process the presence signal, and then power down the card tray using this signal. This involves multiple signal transmission paths and significant signal processing and transmission delays, resulting in a slow power-down speed for the electronic device.
[0060] To address the technical problems in related technologies, this application provides a power control method applied to an electronic device. The electronic device may include an external interrupt controller and a card tray. The external interrupt controller is configured as an input function, and its pins are connected to the signal line of a target signal. The electronic device can detect the level state corresponding to the target signal through the external interrupt controller and obtain the corresponding interrupt trigger condition. When the level state meets the interrupt trigger condition, an interrupt is triggered, and the card tray is powered down. Thus, when the card tray is not in place, the electronic device can promptly power down the card tray through the interrupt triggered by the external interrupt controller. Furthermore, the electronic device does not need to convert the target signal indicating whether the card tray is in place into card tray presence information, thereby improving the speed of powering down the card tray, preventing damage to the card in the card tray, and improving safety.
[0061] Below, in conjunction with Figure 1 The architecture of this application will be described.
[0062] Figure 1 This is a schematic diagram of an architecture provided for an embodiment of this application. Please refer to [link / reference]. Figure 1 This includes electronic devices. These devices may include a System-on-Chip (SOC), a card tray, a power management unit (PMIC), and a power supply. Optionally, the PMIC may be a power management integrated circuit (PMIC). The SOC may include an External Interrupt Controller (EIC). The card tray may include a Subscriber Identity Module (SIM) card and a Secure Digital (SD) card. The EIC can connect to the card tray and the PMIC, and the PMIC can connect to the power supply, powering down the card tray via the power supply. This allows the electronic device to quickly power down the card tray via an interrupt triggered by the EIC, improving the security of the SIM and SD cards.
[0063] The technical solutions shown in this application will now be described in detail through specific embodiments. It should be noted that the following embodiments may exist independently or in combination with each other; identical or similar content will not be repeated in different embodiments.
[0064] Figure 2 This is a schematic flowchart illustrating a power control method provided in an embodiment of this application. Please refer to [link / reference]. Figure 2 The method may include:
[0065] S201. The level status of the target signal is detected by an external interrupt controller.
[0066] The execution subject of this application embodiment can be an electronic device or a power control device installed in an electronic device. The power control device can be implemented in software, or it can be implemented using a combination of software and hardware; this application embodiment does not limit this.
[0067] The target signal can be used to indicate whether the card tray is in place. For example, the target signal can be the SIM_DET signal, which indicates whether the card tray is in place. For instance, if the level corresponding to the target signal is high, the target signal indicates that the card tray of the electronic device is in place; if the level corresponding to the target signal is low, the target signal indicates that the card tray of the electronic device is not in place. Alternatively, if the level corresponding to the target signal is low, the target signal indicates that the card tray of the electronic device is in place; if the level corresponding to the target signal is high, the target signal indicates that the card tray of the electronic device is not in place.
[0068] The external interrupt controller can be used to process interrupt signals from external devices. It is configured as an input, with its pins connected to the signal lines of the target signal. For example, a pin of the external interrupt controller can be connected to the signal line of the SIM_DET signal. Because it is configured as an input, the external interrupt controller can continuously monitor the level of the SIM_DET signal and promptly detect any changes in this level.
[0069] Optionally, the electronic device may include a system-on-a-chip (SOC), and an external interrupt controller may be set in the SOC. In this way, when the external interrupt controller triggers an interrupt, the SOC can promptly power down the card tray, thereby improving the power-down speed and enhancing the security of the SIM card and SD card.
[0070] S202. When an interrupt is triggered in a level state, the cassette is powered down.
[0071] The electronic device can power down the cassette according to the following feasible implementation method: determine the interrupt trigger condition corresponding to the external interrupt controller, and when the level state meets the interrupt trigger condition, determine the level state to trigger the interrupt and power down the cassette.
[0072] The interrupt triggering condition can be level-triggered, and the level state must satisfy the interrupt triggering condition. Specifically, if the level state is the same as the interrupt triggering level corresponding to the interrupt triggering condition, then the level state is determined to satisfy the interrupt triggering condition.
[0073] The interrupt trigger level indicates the level at which an interrupt is triggered. For example, the interrupt trigger level can be high or low. For instance, if the interrupt trigger level is high, the external interrupt controller can trigger an interrupt when it detects that the target signal is at a high level; if the interrupt trigger level is low, the external interrupt controller can trigger an interrupt when it detects that the target signal is at a low level.
[0074] It should be noted that when the external interrupt controller triggers an interrupt, it can set the interrupt status flag to 1. The SOC can detect the change in the interrupt status flag and perform the interrupt operation. After the SOC responds to the interrupt and powers down the card tray, it can clear the interrupt status flag.
[0075] The interrupt trigger level corresponding to the interrupt trigger condition is the opposite of the target signal level when the cassette is in position. For example, if the cassette is in position and the signal level is high, the interrupt trigger level corresponding to the interrupt trigger condition is low; if the cassette is in position and the signal level is low, the interrupt trigger level corresponding to the interrupt trigger condition is high.
[0076] Optionally, the interrupt triggering condition can be edge-triggered, and the level state must meet the interrupt triggering condition. Specifically, if the level state of the target signal detected by the external interrupt controller shows a target edge, the electronic device can determine that the level state meets the interrupt triggering condition.
[0077] The target edge can indicate the signal edge that triggers the interrupt. For example, if the target edge is a rising edge, the external interrupt controller can trigger an interrupt when it detects that the level of the target signal rises from low to high. If the target edge is a falling edge, the external interrupt controller can trigger an interrupt when it detects that the level of the target signal falls from high to low.
[0078] The target edge setting can be related to the voltage level of the cassette in position. For example, if the voltage level of the cassette in position is high, the target edge corresponding to the interrupt trigger condition can be a falling edge; if the voltage level of the cassette in position is low, the target edge corresponding to the interrupt trigger condition can be a rising edge.
[0079] Below, in conjunction with Figures 3-4 The level state of the target signal is described.
[0080] Figure 3 This is a schematic diagram illustrating the level state of a target signal provided in an embodiment of this application. Figure 3 In the illustrated embodiment, when the cassette is in position, the target signal is at a high level. Please refer to [link to relevant documentation]. Figure 3This includes a timeline. The timeline includes external interrupt triggers (...). Figure 3 The level state of the detected target signal (not shown) is high before time t and low after time t. That is, the cassette is in place before time t and not in place after time t.
[0081] exist Figure 3 In the illustrated embodiment, if the external interrupt controller detects that the target signal's level is low, or if the target signal's level drops from high to low, the electronic device can determine that the level meets the interrupt triggering condition, and the external interrupt controller can trigger an interrupt.
[0082] Figure 4 This is a schematic diagram illustrating the level state of another target signal provided in an embodiment of this application. Figure 4 In the illustrated embodiment, when the cassette is in position, the target signal is at a low level. Please refer to [link to relevant documentation]. Figure 4 This includes a timeline. The timeline includes external interrupt triggers (...). Figure 4 The level state of the detected target signal (not shown) is low before time t and high after time t. That is, the cassette is in place before time t and not in place after time t.
[0083] exist Figure 4 In the illustrated embodiment, if the external interrupt controller detects that the target signal's level is high, or if the target signal's level rises from low to high, the electronic device can determine that the level meets the interrupt triggering condition, and the external interrupt controller can trigger the interrupt.
[0084] Optionally, when the level state corresponding to the target signal changes (e.g., the card tray changes from in place to out of place), the SOC in the electronic device can perform de-jitter processing on the level state of the target signal. This can improve the accuracy of the level state of the target signal and avoid erroneous signals caused by factors such as mechanical jitter. Therefore, the electronic device can accurately determine whether the card tray is out of place, thereby improving the accuracy of powering down the card tray.
[0085] When the electronic device determines that the card tray is not in place, it can power down the SIM card and SD card in the card tray via the PMIC. Before powering down the card tray, the electronic device can perform a power-down preparation operation. After the power-down preparation operation is completed, the electronic device can power down the card tray. For example, the power-down preparation operation may include data saving and synchronization, closing or suspending running tasks, etc., which are not limited in this embodiment.
[0086] This application provides a power control method in which an electronic device can detect the level state of a target signal through an external interrupt controller and obtain the interrupt trigger condition corresponding to the external interrupt controller. The interrupt trigger condition can be level-triggered. If the level state is the same as the interrupt trigger level corresponding to the interrupt trigger condition (opposite to the level state of the target signal when the card tray is in position), the electronic device can determine that the level state meets the interrupt trigger condition, thereby determining that the level state triggers an interrupt and powering down the card tray. In this way, even when the card tray is not in position, the level state of the target signal can trigger an interrupt, allowing the electronic device to power down the card tray promptly. Furthermore, the electronic device does not need to convert the target signal indicating whether the card tray is in position into card tray presence information, thus improving the speed of powering down the card tray, preventing damage to the card in the card tray, and improving safety.
[0087] exist Figure 2 Based on the embodiments shown, the following, in conjunction with Figure 5 The method by which the electronic device powers down the card tray in the above power control method will be explained in detail.
[0088] Figure 5 This is a schematic diagram illustrating a method for powering down a card tray, as provided in an embodiment of this application. Please refer to... Figure 5 The method process includes:
[0089] S501, Determine the power-down signal.
[0090] The power-down signal can be used to instruct the power management unit to power down the card tray. For example, if the power management unit receives a power-down signal from the SOC, it can control the power supply to power down the card tray.
[0091] The power-down signal can be either a high level or a low level. For example, the electronic device can pre-set a power binding configuration, which can indicate the power-down signal. For example, the power binding configuration can be a high level for power-down, or it can be a low level for power-down. This embodiment of the application does not limit this. In this way, the electronic device can control the power management unit to power down the card tray through a high or low level, which shortens the signal transmission and signal processing time and thus improves the speed of powering down the card tray.
[0092] It should be noted that the power-down signal can also be any other feasible signal (such as a rising edge signal or a falling edge signal), and this application embodiment does not limit this.
[0093] S502: Send a power-down signal to the power management unit of the electronic device through preset input / output IO.
[0094] Among them, the preset I / O can be dedicated to synchronizing the power-down signal to the power management unit. For example, the preset I / O can be dedicated to sending a power-down signal to the power management unit. For example, the preset I / O can be a dedicated I / O that can send a power-down signal to the PMIC when the card tray is removed. Therefore, this dedicated I / O does not need to process other signals, the signal transmission speed is faster, and thus the power-down efficiency can be improved.
[0095] The preset I / O can be a pin. For example, the preset I / O can be the SIM_INT pin, which can be used as an interrupt pin to establish a dedicated communication interface between the SOC and PMIC.
[0096] This application provides a method for powering down a SIM card tray. The electronic device can determine a power-down signal and send the signal to its power management unit (PMU) via preset input / output I / O. Thus, when the electronic device determines that the level of the target signal meets the interrupt triggering condition, it can send a power-down signal to the PMU via the preset I / O. The PMU can then power down the SIM card tray based on this signal. Since the preset I / O can be dedicated to synchronizing the power-down signal to the PMU, the electronic device can quickly synchronize the power-down signal, thereby improving the speed of powering down the SIM card tray and enhancing the security of the SIM and SD cards.
[0097] Below, in conjunction with Figure 6 The process of the above power control method will be explained.
[0098] Figure 6 This is a schematic diagram illustrating a power control method provided in an embodiment of this application. Please refer to... Figure 6 This includes electronic devices. These devices may include a System-on-a-Chip (SOC), a card slot shared by SIM and SD cards, a PMIC, and a power supply. The SOC may include an Electronic Control Unit (EIC) and dedicated I / O pins. The EIC's interrupt is triggered by a low-level signal. When the card tray is inserted into the shared SIM and SD card slot, the card tray's presence detection signal is at a high level. The EIC can detect this high level, and this high level does not trigger an interrupt.
[0099] Please see Figure 6 When the SIM card and SD card are removed from the shared SIM card slot, the presence detection signal of the SIM card tray is at a low level. When the EIC detects this low level, it can determine that the low level triggers an interrupt and set the interrupt status flag to 1. After the SOC detects that the interrupt status flag is set to 1, it can send a high level to the PMIC (configured to power down at a high level) through a dedicated I / O. After receiving the high level, the PMIC can control the power supply to power off the SIM card tray.
[0100] In this way, when the SIM card tray is not in place, the electronic device can use an interrupt triggered by an external interrupt controller and a dedicated I / O (with low latency and high transmission efficiency) to promptly synchronize a power-down signal to the PMIC to power down the SIM card tray. This improves the power-down speed of the SIM card tray, prevents damage to the SIM card and SD card in the tray, and enhances security. Furthermore, when the SOC or SIM module (a collection of SIM card-related hardware and software) is in a sleep mode, the electronic device can directly synchronize the PMIC to power down without going through a wake-up process, thus solving the need for rapid power-down in sleep mode.
[0101] Figure 7 This is a schematic diagram of a power control device provided in an embodiment of this application. Please refer to... Figure 7 The power control device 700 includes a detection module 701 and a power-down module 702, wherein:
[0102] The detection module 701 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;
[0103] The power-down module 702 is used to power down the card tray when the level state triggers an interrupt.
[0104] In one possible implementation, the power-down module 702 is specifically used for:
[0105] Determine the interrupt triggering conditions corresponding to the external interrupt controller;
[0106] 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.
[0107] In one possible implementation, the power-down module 702 is specifically used for:
[0108] 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.
[0109] In one possible implementation, the electronic device includes a system-on-a-chip (SOC), and the external interrupt controller is disposed in the SOC.
[0110] In one possible implementation, the external interrupt controller is configured as an input function, with its pins connected to the signal lines of the target signal.
[0111] In one possible implementation, the power-down module 702 is specifically used for:
[0112] Determine the power signal;
[0113] A power-down signal is sent to the power management unit of the electronic device through preset input / output I / O;
[0114] 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.
[0115] In one possible implementation, the preset IO is a pin, and the power-down signal is a high level or a low level.
[0116] In one possible implementation, the card tray includes a user identification SIM card and a secure digital SD card.
[0117] The power control device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0118] The power control device shown in the embodiments of this application can be a chip, hardware module, processor, etc. Of course, the power control device can be in other forms, and the embodiments of this application do not specifically limit it.
[0119] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Please refer to... Figure 8 The electronic device 800 may include a transceiver 801, a memory 802, and a processor 803. The transceiver 801 may include a transmitter and / or a receiver. The transmitter may also be referred to as a transmitter, transmitter port, or transmitter interface, etc., and the receiver may also be referred to as a receiver, receiver port, or receiver interface, etc. Exemplarily, the transceiver 801, memory 802, and processor 803 are interconnected via a bus 804.
[0120] Memory 802 is used to store program instructions;
[0121] The processor 803 is used to execute the program instructions stored in the memory to cause the electronic device 800 to perform any of the power control methods shown above.
[0122] The transceiver 801 is used to perform the transmit and receive functions of the electronic device 800 in the above power control method.
[0123] This application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the power control method described above.
[0124] This application embodiment may also provide a computer program product that can be executed by a processor. When the computer program product is executed, it can implement the power control method executed by any of the above-described electronic devices.
[0125] This application embodiment may also provide a computer program product, including a computer program that can be executed by a processor. When the computer program product is executed, it can implement the power control method executed by any of the network devices shown above.
[0126] The electronic devices, network devices, computer-readable storage media, and computer program products of the present application embodiments can execute the power control method executed by the above-mentioned electronic devices. The specific implementation process and beneficial effects are described above and will not be repeated here.
[0127] All or part of the steps in the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, it performs the steps of the above method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disk, and any combination thereof.
[0128] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0129] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0130] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0131] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of the claims of this application and their equivalents, this application also intends to include these modifications and variations.
[0132] In this application, the term "comprising" and its variations can refer to non-limiting inclusion; the term "or" and its variations can refer to "and / or". The terms "first", "second", etc., in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. In this application, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
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; The step of powering down the card slot 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.
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 preset IO is a pin, and the power-down signal is a high level or a low level.
7. 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.
8. 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 interrupt is triggered by the level state; When the power-down module powers down the card tray, it is used to: 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.
9. 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 7.
10. 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 7.
11. 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 7.