CN116384430A - Power supply control method, device, equipment and storage medium - Google Patents

Power supply control method, device, equipment and storage medium Download PDF

Info

Publication number
CN116384430A
CN116384430A CN202310410888.5A CN202310410888A CN116384430A CN 116384430 A CN116384430 A CN 116384430A CN 202310410888 A CN202310410888 A CN 202310410888A CN 116384430 A CN116384430 A CN 116384430A
Authority
CN
China
Prior art keywords
card
card holder
chip
power
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310410888.5A
Other languages
Chinese (zh)
Inventor
陈文超
唐月林
赖圳雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Ziguang Zhanrui Technology Co ltd
Original Assignee
Xiamen Ziguang Zhanrui Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Ziguang Zhanrui Technology Co ltd filed Critical Xiamen Ziguang Zhanrui Technology Co ltd
Priority to CN202310410888.5A priority Critical patent/CN116384430A/en
Publication of CN116384430A publication Critical patent/CN116384430A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/0701Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips at least one of the integrated circuit chips comprising an arrangement for power management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/0701Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips at least one of the integrated circuit chips comprising an arrangement for power management
    • G06K19/0715Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips at least one of the integrated circuit chips comprising an arrangement for power management the arrangement including means to regulate power transfer to the integrated circuit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/0722Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips comprising an arrangement for testing the record carrier
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/073Special arrangements for circuits, e.g. for protecting identification code in memory
    • G06K19/07309Means for preventing undesired reading or writing from or onto record carriers
    • G06K19/07345Means for preventing undesired reading or writing from or onto record carriers by activating or deactivating at least a part of the circuit on the record carrier, e.g. ON/OFF switches
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the application provides a power supply control method, a device, equipment and a storage medium, wherein the method is applied to electronic equipment, a card holder, an SOC chip and a PMIC chip are arranged in the electronic equipment, an acquisition circuit is arranged in the SOC chip, the acquisition circuit is connected with the card holder, the card holder is used for inserting an SD card and an SIM card, and the method comprises the following steps: the SOC chip acquires a card holder state signal acquired by the acquisition circuit, and the card holder state signal is used for indicating that the card holder is in place or falls off; when the card support state signal indicates that the card support falls off, the SOC chip sends power-down indication information to the PMIC chip, and the power-down indication information is used for indicating the PMIC chip to control the power-off treatment of the card support. The in-place condition of the card holder is detected through hardware, and when the card holder is out of place, the power-off indication information is sent to control each pin of the card holder to be powered off, so that the SIM card and the SD card are protected.

Description

Power supply control method, device, equipment and storage medium
Technical Field
The application belongs to the technical field of mobile terminals, and particularly relates to a power supply control method, a device, equipment and a storage medium.
Background
In order to save circuit space, some electronic devices have a subscriber identity (Subscriber Identity Module, SIM) card and a Secure Digital (SD) card arranged on a card holder.
The card holder supports hot plug, when the card holder is pulled out, a software interrupt program is triggered, and the software interrupt program can electrically close Input Output (IO) and a working Power supply (Core Power) of the SD card in the card slot. However, if the card holder is pulled out when the load of the central processing unit (Central Processing Unit, CPU) is large, the software interrupt program cannot be processed in time, so that the input/output of the SD card and the power of the working power supply in the card slot cannot be closed in time, and if the pins of the charged SD card and the working power supply are in contact with the SIM card, the SIM card may be burned.
Therefore, there is a need for a power control method that can protect a SIM card.
Disclosure of Invention
The application relates to a power supply control method, a device, equipment and a storage medium, which can timely turn off the power supply of a card holder, and further can protect a SIM card and an SD card.
In a first aspect, an embodiment of the present application provides a power control method, applied to an electronic device, where a card holder, a system on chip SOC chip and a power management integrated circuit PMIC chip are provided in the electronic device, where an acquisition circuit is provided in the SOC chip, where the acquisition circuit is connected to the card holder, and the card holder is used to insert an SD card and an SIM card, and the method includes:
acquiring a card holder state signal of the card holder acquired by an acquisition circuit, wherein the card holder state signal is used for indicating that the card holder is in place or falls off;
and when the card holder state signal indicates that the card holder falls off, sending power-down indication information to the PMIC chip, wherein the power-down indication information is used for indicating the PMIC chip to control the power-off treatment of the card holder.
In one possible implementation, the acquisition circuit includes a detection pin and a conversion circuit; the card support state signal of the card support acquired by the acquisition circuit is acquired, and the method comprises the following steps:
determining that the detection pin detects a preset level signal according to the level state of the detection pin;
and converting the preset level signal into the card support state signal through the conversion circuit.
In one possible implementation, the preset level signal includes a falling edge signal or a rising edge signal.
In one possible implementation, the preset level signal is a falling edge signal; according to the level state of the detection pin, determining that the detection pin detects a preset level signal includes:
and when the level state of the detection pin is changed from a high level state to a low level state, determining that the detection pin detects the preset level signal.
In one possible implementation, the preset level signal is a rising edge signal; according to the level state of the detection pin, determining that the detection pin detects a preset level signal includes:
and when the level state of the detection pin is changed from a low level state to a high level state, determining that the detection pin detects the preset level signal.
In a possible implementation manner, the power-down indication information is used for indicating the PMIC chip to control power-down processing of the SD card in the card holder, or the power-down indication information is used for indicating the PMIC chip to control power-down processing of the SIM card in the card holder.
In a second aspect, an embodiment of the present application provides a power control device, which is applied to an electronic device, where a card holder, a system on chip SOC chip and a power management integrated circuit PMIC chip are provided in the electronic device, where an acquisition circuit is provided in the SOC chip, the acquisition circuit is connected to the card holder, and the card holder is used for inserting a secure digital SD card and a user identification SIM card; the device comprises an acquisition module and a sending module, wherein,
the acquisition module is used for acquiring a card holder state signal of the card holder acquired by the acquisition circuit, wherein the card holder state signal is used for indicating that the card holder is in place or falls off;
the sending module is used for sending power-down indication information to the PMIC chip when the card holder state signal indicates that the card holder falls off, and the power-down indication information is used for indicating the PMIC chip to control the power-down processing of the card holder.
In one possible implementation, the acquisition circuit includes a detection pin and a conversion circuit; the acquisition module is specifically configured to:
determining that the detection pin detects a preset level signal according to the level state of the detection pin;
and converting the preset level signal into the card support state signal through the conversion circuit.
In one possible implementation, the preset level signal includes a falling edge signal or a rising edge signal.
In one possible implementation, the preset level signal is a falling edge signal; the acquisition module is specifically configured to:
and when the level state of the detection pin is changed from a high level state to a low level state, determining that the detection pin detects the preset level signal.
In one possible implementation, the preset level signal is a rising edge signal; the acquisition module is specifically configured to:
and when the level state of the detection pin is changed from a low level state to a high level state, determining that the detection pin detects the preset level signal.
In a possible implementation manner, the power-down indication information is used for indicating the PMIC chip to control power-down processing of the SD card in the card holder, or the power-down indication information is used for indicating the PMIC chip to control power-down processing of the SIM card in the card holder.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory, causing the processor to perform the power control method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the power control method according to the first aspect when the computer-executable instructions are executed by a processor.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements the power control method of the first aspect.
In a sixth aspect, embodiments of the present application provide a chip, on which a computer program is stored, which when executed by the chip, implements the power supply control method according to any one of the first aspects.
In one possible implementation, the chip is a chip in a chip module.
The embodiment of the application provides a power supply control method, a device, equipment and a storage medium, wherein the method is applied to electronic equipment, a card holder, an SOC chip and a PMIC chip are arranged in the electronic equipment, an acquisition circuit is arranged in the SOC chip, the acquisition circuit is connected with the card holder, the card holder is used for inserting an SD card and an SIM card, and the method comprises the following steps: the SOC chip acquires a card holder state signal of the card holder acquired by the acquisition circuit, and the card holder state signal is used for indicating that the card holder is in place or falls off; when the card support state signal indicates that the card support falls off, the SOC chip sends power-down indication information to the PMIC chip, and the power-down indication information is used for indicating the PMIC chip to control the power-off treatment of the card support. The in-place condition of the card holder is detected through hardware, and when the card holder is out of place, the power-off indication information is sent to control each pin of the card holder to be powered off, so that the SIM card and the SD card are protected.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of another electronic device according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a power control method according to an embodiment of the present application;
fig. 4 is a schematic flow chart of another power control method according to an embodiment of the present application;
fig. 5A is a schematic diagram of a level state of a detection pin according to an embodiment of the present application;
FIG. 5B is a schematic diagram of a level state of another detection pin according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a power control device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of still another electronic device according to an embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It will be further understood that the terms "comprises," "comprising," "includes," and/or "including" specify the presence of stated features, steps, operations, elements, components, and/or groups, but do not preclude the presence, presence or addition of one or more other features, steps, operations, elements, components, and/or groups. The terms "or," "and/or," "including at least one of," and the like, as used herein, may be construed as inclusive, or meaning any one or any combination. Optionally, "comprising at least one of: A. b, C "means" any one of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C ", again as examples," A, B or C "or" A, B and/or C "means" any of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C). An exception to this definition will occur only when a combination of elements, functions, steps or operations are in some way inherently mutually exclusive.
In this application, "exemplary," "in some embodiments," "in other embodiments," etc. are used to indicate an example, instance, or illustration. Any embodiment or design described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the term use of an example is intended to present concepts in a concrete fashion.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least a portion of the steps in the figures may include at least one sub-step or at least one stage, which are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in turn, but may be performed alternately or alternately with other steps or at least a portion of other steps or stages.
The technical scheme of the embodiment of the application is suitable for all electronic equipment with the SIM card and the SD card sharing card holder.
The application scenario of the embodiment of the application may refer to a process of hot plug of a card holder in an electronic device.
In the related art, when the card holder is pulled out, a software interrupt program is triggered, and the software interrupt program can turn off the input and output of the SD card in the card slot and the power supply. However, if the card holder is pulled out when the CPU load is large, the software interrupt program cannot be processed in time, so that the input and output of the SD card in the card slot and the power of the working power supply cannot be turned off in time, and if the input and output of the charged SD card and the pin of the working power supply are in contact with the SIM card, the SIM card may be burned.
In order to solve the above technical problems, embodiments of the present application provide a power control method. The in-place condition of the card holder is detected through hardware, and when the card holder is out of place, all interfaces of the card holder are controlled to be powered off through sending power-off indication information, so that the SIM card and the SD card are protected.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 1, a System On Chip (SOC) Chip 10, a power management integrated circuit (Power Management Integrated Circuit, PMIC) Chip 20 and a card holder 30 are disposed in the electronic device, an acquisition circuit 11 is disposed in the SOC Chip 10, the acquisition circuit 11 is connected to the card holder 30, and the SOC Chip 10 is connected to the PMIC Chip 20.
The card holder 30 may be used to insert an SD card and a SIM card.
The SOC chip 10 may be configured to obtain a card holder status signal of the card holder, where the card holder status signal may be used to indicate that the card holder is in place or is detached, and may send power-down indication information to the PMIC chip according to the card holder status signal.
The PMIC chip 20 may control power supply of various components in the electronic device.
In one possible implementation, acquisition circuit 11 may include a detection pin 111 and a conversion circuit 112, as shown in FIG. 2, detection pin 111 may be connected to card holder 30, and detection pin 111 may be connected to conversion circuit 112.
The detection pin 111 may be used to detect a preset level signal, which may be used to indicate that the card holder is in place or is off.
The number of the detection pins 111 may be 1 or more.
The conversion circuit 112 may be configured to convert the preset level signal into a card support status signal.
The conversion circuit 112 may be an analog digital interface (Analog Digital Interface, ADI) circuit.
In one possible implementation, the SOC chip 10 further includes a pin module, and the PMIC chip 20 may be connected to the card holder through the pin module, and may close the path from the PMIC chip 20 to the pin module and from the pin module to the card holder 30 when the PMIC chip controls the SD card to be powered off.
In one possible implementation manner, a card slot may be provided in the electronic device, and various pins are provided in the card slot, and when the card holder is inserted into the card slot, the card holder is connected with various pins in the card slot, and the various pins are connected with other modules in the electronic device.
Illustratively, the card slot is provided with input and output of the SD card and pins of a working power supply, and the PMIC chip supplies power to the SD card through the pins in the card slot.
The power-off processing is carried out on the card holder, which is equivalent to the power-off processing of each pin in the card slot, so that each pin is prevented from being electrified, and the SIM card and the SD card are prevented from being damaged.
Based on the above-described electronic device configuration, how power supply control is performed by the above-described electronic device will be described in detail below.
Fig. 3 is a schematic flow chart of a power control method according to an embodiment of the present application. Referring to fig. 3, the method includes:
s301, acquiring a card holder state signal of the card holder acquired by the acquisition circuit.
The execution body of the embodiment of the application may be an SOC chip in the electronic device, or may be a power supply control device disposed in the electronic device, where the power supply control device may be implemented by software, or may be implemented by a combination of software and hardware.
The tray status signal may be used to indicate that the tray is in place or is disengaged.
S302, when the card holder state signal indicates that the card holder falls off, power-down indication information is sent to the PMIC chip, and the power-down indication information is used for indicating the PMIC chip to control power-off processing of the card holder.
The power down indication information may be register information.
In one possible implementation manner, the SOC chip may also pre-store power failure indication information, and when the SOC chip acquires the card support status signal and the card support status signal indicates that the card support is detached, the SOC chip may send the pre-stored power failure indication information to the PMIC chip to instruct the PMIC chip to control the power failure processing of the card support.
In one possible implementation manner, the acquisition circuit of the SOC chip may further include a detection channel register, and the power-down indication information may be pre-stored in the detection channel register.
In one possible implementation, the power down indication information may include an identification of the power down component.
In one possible implementation, the power-down indication information may be used to instruct the PMIC chip to control power down processing of the SD card in the card holder, and/or the power-down indication information may be used to instruct the PMIC chip to control power down processing of the SIM card in the card holder.
In other words, the power-down indication information can be used for independently indicating the PMIC chip to control the power-down processing of the SD card in the card holder, namely, indicating the PMIC chip to perform the power-down processing on the input and output of the SD card in the card slot and the pin of the working power supply, so as to avoid electrification of the input and output of the SD card in the card slot and the pin of the working power supply, and protect the SIM card.
The power-down indication information can also be used for independently indicating the PMIC chip to control the power-down processing of the SIM card in the card holder, namely, indicating the PMIC chip to perform the power-down processing on the relevant pins of the SIM card in the card slot so as to avoid electrification of the relevant pins of the SIM card in the card slot and protect the SD card.
The power-down indication information can also be used for simultaneously indicating the PMIC chip to control the power-down processing of the SD card and the SIM card in the card holder, namely, indicating the PMIC chip to perform the power-down processing on the input and output of the SD card and the pins of the working power supply in the card slot and the related pins of the SIM card so as to avoid the input and output of the SD card and the pins of the working power supply in the card slot and the related pins of the SIM card from being electrified, thereby protecting the SIM card and the SD card.
In the embodiment shown in fig. 3, the SOC chip acquires a card holder status signal of the card holder acquired by the acquisition circuit, where the card holder status signal is used to indicate that the card holder is in place or falls off; when the card support state signal indicates that the card support falls off, the SOC chip sends power-down indication information to the PMIC chip, and the power-down indication information is used for indicating the PMIC chip to control the power-off treatment of the card support. The in-place condition of the card holder is detected through hardware, and when the card holder is out of place, the power-off indication information is sent to control each pin of the card holder to be powered off, so that the SIM card and the SD card are protected.
On the basis of the embodiment shown in fig. 3, the power supply control method is described in detail below with reference to fig. 4.
Fig. 4 is a flowchart of another power control method according to an embodiment of the present application. Referring to fig. 4, the method includes:
s401, determining that the detection pin detects a preset level signal according to the level state of the detection pin.
The preset level signal may include a falling edge signal or a rising edge signal.
In one possible implementation, the level state of the detection pin is a high level state when the card holder is assumed to be in place; when the card holder falls off, the level state of the detection pin is a low level state; it may be determined that the detection pin detects a preset level signal (falling edge signal) when the level state of the detection pin is changed from a high level state to a low level state.
For example, as shown in fig. 5A, before time t, the card is held in place, and the level state of the detection pin is a high level state; at the time t, the card holder falls off, and the level state of the detection pin is changed from a high level state to a low level state, so that the detection pin can be determined to detect a falling edge signal; after time t, the level state of the detection pin is a low level state.
In one possible implementation, the level state of the detection pin is a low level state when the card holder is assumed to be in place; when the card holder falls off, the level state of the detection pin is a high level state; it may be determined that the detection pin detects a preset level signal (rising edge signal) when the level state of the detection pin is changed from a low level state to a high level state.
For example, as shown in fig. 5B, before time t, the card is held in place, and the level state of the detection pin is a low level state; at the time t, the card holder falls off, and the level state of the detection pin is changed from a low level state to a high level state, so that the rising edge signal detected by the detection pin can be determined; after time t, the level state of the detection pin is a high level state.
S402, converting the preset level signal into a card support state signal through a conversion circuit.
In one possible implementation, the preset level signal may be an analog signal.
In one possible implementation, the card holder status signal may be a digital signal.
And S403, when the card holder state signal indicates that the card holder falls off, sending power-down indication information to the PMIC chip, wherein the power-down indication information is used for indicating the PMIC chip to control the power-off treatment of the card holder.
In the embodiment shown in fig. 4, the SOC chip determines that the detection pin detects the preset level signal according to the level state of the detection pin; converting the preset level signal into a card support state signal through a conversion circuit; when the card support state signal indicates that the card support falls off, the SOC chip sends power-down indication information to the PMIC chip, and the power-down indication information is used for indicating the PMIC chip to control the power-off treatment of the card support. The in-place condition of the card holder is detected through hardware, and when the card holder is out of place, the power-off indication information is sent to control each pin of the card holder to be powered off, so that the SIM card and the SD card are protected.
Fig. 6 is a schematic structural diagram of a power control device according to an embodiment of the present application. The power supply control device is applied to electronic equipment, a card holder, an SOC chip and a PMIC chip are arranged in the electronic equipment, an acquisition circuit is arranged in the SOC chip, the acquisition circuit is connected with the card holder, and the card holder is used for inserting an SD card and an SIM card. Referring to fig. 6, the power control apparatus includes an acquisition module 601 and a transmission module 602, wherein,
the acquisition module 601 is configured to acquire a card holder status signal of the card holder acquired by the acquisition circuit, where the card holder status signal is used to indicate that the card holder is in place or falls off;
the sending module 602 is configured to send power-down indication information to the PMIC chip when the card holder status signal indicates that the card holder is detached, where the power-down indication information is used to instruct the PMIC chip to control power-off processing for the card holder.
In one possible implementation, the acquisition circuit includes a detection pin and a conversion circuit; the obtaining module 601 is specifically configured to:
determining that the detection pin detects a preset level signal according to the level state of the detection pin;
the preset level signal is converted into a card support state signal through a conversion circuit.
In one possible embodiment, the preset level signal includes a falling edge signal or a rising edge signal.
In one possible implementation, the preset level signal is a falling edge signal; the obtaining module 601 is specifically configured to:
when the level state of the detection pin is changed from the high level state to the low level state, the detection pin is determined to detect a preset level signal.
In one possible implementation, the preset level signal is a rising edge signal; the obtaining module 601 is specifically configured to:
when the level state of the detection pin is changed from the low level state to the high level state, the detection pin is determined to detect a preset level signal.
In one possible implementation manner, the power-down indication information is used for indicating the PMIC chip control to perform power-down processing on the SD card in the card holder, or the power-down indication information is used for indicating the PMIC chip control to perform power-down processing on the SIM card in the card holder.
The power control device provided in the embodiment of the present application may execute the technical scheme shown in the embodiment of the method, and its implementation principle and beneficial effects are similar, and will not be described in detail.
The electronic device provided in the embodiment of the application may further include other components besides the above structure. Fig. 7 is a schematic structural diagram of still another electronic device according to an embodiment of the present application. Referring to fig. 7, the electronic device may further include: a transceiver 701, a memory 702, a processor 703. The transceiver 701 may include: a transmitter and/or a receiver. The transmitter may also be referred to as a transmitter, transmit port, transmit interface, or the like, and the receiver may also be referred to as a receiver, receive port, receive interface, or the like. Illustratively, the transceiver 701, the memory 702, and the processor 703 are interconnected by a bus 704.
Memory 702 is used to store program instructions;
the processor 703 is configured to execute the program instructions stored in the memory, so as to enable the electronic device to execute any one of the above-described power control methods.
The transceiver 701 is used to perform the transceiving functions of the electronic device.
The electronic device may be a chip, a module, an integrated development environment (integrated development environment, IDE), or the like.
The electronic device shown in the embodiment of fig. 7 may execute the technical solution shown in the embodiment of the method, and its implementation principle and beneficial effects are similar, and will not be described herein again.
Embodiments of the present application provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the power control method of any one of the above when the computer-executable instructions are executed by a processor.
Embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements a power control method according to any one of the above.
The embodiment of the application provides a chip, wherein a computer program is stored on the chip, and when the computer program is executed by the chip, the power supply control method is realized.
In one possible implementation, the chip is a chip in a chip module.
The computer readable storage medium and the computer program product of the embodiments of the present application may execute the technical solution shown in the foregoing power control method embodiment, and the implementation principle and the beneficial effects are similar, and are not described herein again.
All or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a readable memory. The program, when executed, performs steps including the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), random-access memory (random access memory, RAM), flash memory, hard disk, solid state disk, magnetic tape, floppy disk (floppy disk), optical disk (optical disk), and any combination thereof.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may 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, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to encompass such modifications and variations.

Claims (10)

1. The power supply control method is characterized by being applied to electronic equipment, wherein a card holder, a System On Chip (SOC) chip and a power supply management integrated circuit (PMIC) chip are arranged in the electronic equipment, an acquisition circuit is arranged in the SOC chip, the acquisition circuit is connected with the card holder, and the card holder is used for inserting a Secure Digital (SD) card and a Subscriber Identity Module (SIM) card, and the method comprises the following steps:
acquiring a card holder state signal of the card holder acquired by an acquisition circuit, wherein the card holder state signal is used for indicating that the card holder is in place or falls off;
and when the card holder state signal indicates that the card holder falls off, sending power-down indication information to the PMIC chip, wherein the power-down indication information is used for indicating the PMIC chip to control the power-off treatment of the card holder.
2. The method of claim 1, wherein the acquisition circuit comprises a detection pin and a conversion circuit; the card support state signal of the card support acquired by the acquisition circuit is acquired, and the method comprises the following steps:
determining that the detection pin detects a preset level signal according to the level state of the detection pin;
and converting the preset level signal into the card support state signal through the conversion circuit.
3. The method of claim 2, wherein the preset level signal comprises a falling edge signal or a rising edge signal.
4. A method according to claim 3, wherein the predetermined level signal is a falling edge signal; according to the level state of the detection pin, determining that the detection pin detects a preset level signal includes:
and when the level state of the detection pin is changed from a high level state to a low level state, determining that the detection pin detects the preset level signal.
5. A method according to claim 3, wherein the predetermined level signal is a rising edge signal; according to the level state of the detection pin, determining that the detection pin detects a preset level signal includes:
and when the level state of the detection pin is changed from a low level state to a high level state, determining that the detection pin detects the preset level signal.
6. The method according to any one of claims 1 to 5, wherein the power-down indication information is used for indicating that the PMIC chip controls power-down processing of the SD card in the card holder, and/or the power-down indication information is used for indicating that the PMIC chip controls power-down processing of the SIM card in the card holder.
7. The power supply control device is characterized by being applied to electronic equipment, wherein a card holder, a System On Chip (SOC) chip and a power supply management integrated circuit (PMIC) chip are arranged in the electronic equipment, an acquisition circuit is arranged in the SOC chip, the acquisition circuit is connected with the card holder, and the card holder is used for inserting a Secure Digital (SD) card and a Subscriber Identity Module (SIM) card; the device comprises an acquisition module and a sending module, wherein,
the acquisition module is used for acquiring a card holder state signal of the card holder acquired by the acquisition circuit, wherein the card holder state signal is used for indicating that the card holder is in place or falls off;
the sending module is used for sending power-down indication information to the PMIC chip when the card holder state signal indicates that the card holder falls off, and the power-down indication information is used for indicating the PMIC chip to control the power-down processing of the card holder.
8. An electronic device, comprising: a processor, a memory;
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of any one of claims 1 to 6.
9. A computer readable storage medium having stored therein computer executable instructions for implementing the method of any of claims 1 to 6 when the computer executable instructions are executed by a processor.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1 to 6.
CN202310410888.5A 2023-04-17 2023-04-17 Power supply control method, device, equipment and storage medium Pending CN116384430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310410888.5A CN116384430A (en) 2023-04-17 2023-04-17 Power supply control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310410888.5A CN116384430A (en) 2023-04-17 2023-04-17 Power supply control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116384430A true CN116384430A (en) 2023-07-04

Family

ID=86974925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310410888.5A Pending CN116384430A (en) 2023-04-17 2023-04-17 Power supply control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116384430A (en)

Similar Documents

Publication Publication Date Title
CN103078393B (en) USB hub and electric power supply method for the same
US8743856B2 (en) Wireless charging of mobile device
EP3355223A1 (en) Unlock method and mobile terminal
EP2493051A2 (en) Wireless charging of mobile device
CN110851387B (en) Interface function configuration method and electronic equipment
US10128910B2 (en) Mobile device with near field communication function
CN106575169B (en) Method for eliminating interference of charger on touch screen and mobile terminal
CN111480152B (en) Interface configuration method, terminal equipment and interface
EP2629499B1 (en) Battery management scheme for NFC
CN107885683B (en) Terminal and current testing method thereof
CN106412293B (en) Foreign matter detection method and device and terminal equipment
CN112867120B (en) Low power consumption control system, method, computer device and readable storage medium
CN104270740B (en) A kind of detection method of neck T cards and SIM card altogether
CN105071484A (en) Charging method and apparatus of terminal having data exchange function
CN107423196B (en) Multi-card-slot state detection method, detection equipment and mobile terminal
CN111433756B (en) Terminal and Type C interface anti-corrosion method
CN106797414A (en) The leakage current detection circuit and terminal of a kind of terminal
CN110837450B (en) Test method and device of USB TYPE-C docking station, electronic equipment and storage medium
CN210924375U (en) Domestic case control integrated circuit board
CN116384430A (en) Power supply control method, device, equipment and storage medium
CN109656350B (en) Low-power-consumption implementation method based on DFT scan chain
CN109542198B (en) Method and equipment for controlling power-on of PCIE card
CN107451067B (en) Processing method for downloading test and related product
CN107155164B (en) NFC power management apparatus and method
EP2876970A1 (en) Communication apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination