Card slot circuit control method and device, electronic equipment and storage medium

By controlling the power-down sequence of the card slot circuit according to the card removal identification time during the card tray removal operation, the problem of SIM card burning is solved, and the safety and reliability of the card tray removal process are achieved.

CN117176193BActive Publication Date: 2026-11-24VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311217096.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-19
Publication Date
2026-11-24
Estimated Expiration
2043-09-19

AI Technical Summary

Technical Problem

In electronic devices, SIM cards are easily burned when the card tray is removed, and existing technologies have not been able to effectively solve this problem.

Method used

By receiving the card tray removal operation, the target power-off time is determined based on the card removal identification time, and the card slot circuit corresponding to the card tray area near the outside is powered down to ensure that the power is cut off as soon as possible during the removal process to avoid contact with the SIM card.

Benefits of technology

This effectively prevents the SIM card from being burned during the removal process, improving the reliability and security of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117176193B_ABST
    Figure CN117176193B_ABST
Patent Text Reader

Abstract

This application discloses a card slot circuit control method, apparatus, electronic device, and storage medium, belonging to the field of electronic device technology. The card slot circuit control method is applied to an electronic device with a target card tray, the target card tray including at least two card tray areas. The method includes: receiving a first operation for the target card tray; if the first operation is a card tray removal operation, determining a target power-down time based on the card removal identification time; controlling the card slot circuit corresponding to the first card tray area to power down according to the target power-down time; the first card tray area is the card tray area closer to the outer side among the at least two card tray areas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic equipment technology, specifically relating to a card slot circuit control method, device, electronic equipment, and storage medium. Background Technology

[0002] Currently, for electronic devices that simultaneously support memory cards (Trans-flash Card, TF) and Subscriber Identity Modules (SIM), the electronic device includes: a card tray for holding TF cards and SIM cards, and a card slot circuit corresponding to the card tray, wherein the card tray is pluggable, and the card slot circuit is a hardware circuit inside the electronic device that contacts the card tray.

[0003] For example, such as Figure 1 As shown, a combined TF card and SIM card tray includes: an inner tray area for holding the SIM card, an outer tray area for holding the TF card, and a gap area between the two tray areas. Structurally, the metal plate of the SIM card on the tray contacts the relevant pins of the SIM card inside the electronic device's card slot, and the metal plate of the TF card on the tray contacts the relevant pins of the TF card inside the electronic device's card slot, thus simultaneously supporting TF storage and SIM communication functions. However, in related technologies, the SIM card is easily burned when the tray is removed from the electronic device's card slot. Summary of the Invention

[0004] The purpose of this application is to provide a card slot circuit control method, device, electronic device, and storage medium that can prevent the SIM card from being burned when the card tray is removed.

[0005] In a first aspect, embodiments of this application provide a card slot circuit control method, applied to an electronic device having a target card tray, the target card tray comprising at least two card tray areas, the method comprising:

[0006] Receive a first operation for the target card holder;

[0007] When the first operation is a card tray removal operation, the target power-off duration is determined based on the card removal identification duration.

[0008] The card slot circuit corresponding to the first card tray area is powered down according to the target power-down duration; the first card tray area is the card tray area closer to the outer side among the at least two card tray areas.

[0009] Secondly, embodiments of this application provide a card slot circuit control device applied to an electronic device having a target card tray, the target card tray including at least two card tray areas, the device comprising:

[0010] A receiving module is configured to receive a first operation targeting the target card holder;

[0011] The first determining module is used to determine the target power-off duration based on the card removal identification duration when the first operation is a card tray removal operation.

[0012] The first control module is used to control the card slot circuit corresponding to the first card tray area to power down according to the target power-down duration; the first card tray area is the card tray area near the outer side among the at least two card tray areas.

[0013] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0014] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0015] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0016] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0017] In this embodiment, a first operation is received for a target card tray. If the first operation is a card tray removal operation, a target power-down time is determined based on the card removal identification time. The card slot circuit corresponding to the first card tray area is powered down based on the target power-down time. The first card tray area is the card tray area closest to the outermost one among at least two card tray areas. Thus, when the card tray is removed, the target power-down time is determined based on the necessary card removal identification time, and the card slot circuit corresponding to the first card tray area is powered down based on the target power-down time. This allows the card slot circuit corresponding to the first card tray area to be powered down as quickly as possible, preventing the card slot circuit corresponding to the first card tray area from burning out the cards in the remaining card tray areas. The remaining card slot areas are the card tray areas other than the first card tray area among at least two card tray areas. Attached Figure Description

[0018] Figure 1 This is an example diagram of the card slot circuit and card tray of the electronic device provided in the embodiments of this application;

[0019] Figure 2 This is one of the flowcharts of a card slot circuit control method provided in the embodiments of this application;

[0020] Figure 3 This is an example diagram illustrating the time distribution of the card holder removal process provided in an embodiment of this application;

[0021] Figure 4 This is a second flowchart of a card slot circuit control method provided in an embodiment of this application;

[0022] Figure 5 This is an example diagram illustrating the time distribution of the card inserting process provided in an embodiment of this application;

[0023] Figure 6 This is a structural block diagram of a card slot circuit control device provided in an embodiment of this application;

[0024] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0025] Figure 8 This is a schematic diagram of the hardware structure of an electronic device that implements the various embodiments of this application. Detailed Implementation

[0026] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0027] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0028] This application provides a card slot circuit control method, device, electronic device, and storage medium.

[0029] It should be noted that the card slot circuit control method provided in this application embodiment is applicable to electronic devices. In practical applications, the electronic device may include mobile terminals such as smartphones and tablets, and this application embodiment does not limit this.

[0030] The following section, with reference to the accompanying drawings, first introduces the card tray removal scenario of electronic devices, some related concepts, and the card slot circuit control method in the card tray removal scenario.

[0031] I. The scene of Cato being pulled out

[0032] Taking a TF card and SIM card combo tray as an example, when the tray is not removed, the metal part of the SIM card on the tray will contact the relevant pins of the SIM card inside the electronic device's card slot, and the metal part of the TF card on the tray will contact the relevant pins of the TF card inside the electronic device's card slot, so as to simultaneously support TF storage function and SIM communication function.

[0033] When the SIM card tray is removed from the card slot of an electronic device, the hardware components connected inside the card slot first detach from the tray. This triggers a removal interrupt in the software driver. Due to the software design, there is a time difference, known as the power-down duration t0, between the removal interrupt and the power control unit's complete power-off. During t0, the pins inside the card slot are energized. As the tray is removed, the pins of the TF card inside the card slot come into contact with the SIM card on the tray. If t0 is not properly configured, the energized pins of the TF card inside the card slot may contact the metal contacts of the SIM card on the tray, potentially burning out the SIM card.

[0034] II. Related Concepts

[0035] Card removal recognition time: This refers to the necessary time for card removal, consisting of two parts: hardware stabilization time and software code execution time. That is, card removal recognition time = hardware stabilization time + software code execution time. For ease of description, the hardware stabilization time will be denoted as α (constant, in milliseconds), and the software code execution time will be denoted as β (constant, in milliseconds).

[0036] Hardware debouncing duration α: When a card tray removal operation is triggered, the software will receive a removal interrupt signal. In order to ensure the reliability of the hardware interrupt signal of the electronic device, a hardware debouncing duration α is set. The state is polled within the duration α to ensure that a card tray removal operation has indeed occurred. The purpose is to avoid hardware instability, which may cause signal jitter at some point, leading to misprocessing of the signal. This duration is the necessary duration for hardware processing.

[0037] Software code execution time β: After confirming the reliability of the interrupt signal, the software code flow begins to respond. The time from when the software starts to recognize the response to when it processes the power management and shuts down (execution of the software code flow) is β. This time is the necessary time for software processing.

[0038] User response time: This refers to the time from the moment the user pushes the card tray out using the ejector pin to the moment the user begins to drag the card tray outward. Since response times vary among users and are not entirely fixed—for example, some users have longer response times (a considerable amount of time elapses after pushing the card tray out), while others have shorter response times (dragging the card tray immediately after pushing it out)—this user response time is the average of a large number of user responses. For ease of description later, the user response time is denoted as m (a constant in milliseconds).

[0039] Card tray size: refers to the length of the card tray. Generally, different card trays have different lengths. For example, the total length of a 2-in-1 card tray is different from that of a 3-in-1 card tray. The length of the card tray area in a 2-in-1 card tray may also be different from that in a 3-in-1 card tray.

[0040] Card tray removal speed: This refers to the speed at which the user drags the card tray outward. Since the card tray removal speed varies among different users and is not entirely fixed (for example, some users remove their card trays faster while others remove them slower), the card tray removal speed here is the average of the removal speeds of a large number of users. For ease of description later, the card tray removal speed is denoted as v1.

[0041] III. Card slot circuit control method in card tray removal scenario

[0042] Figure 2 This is one of the flowcharts of a card slot circuit control method provided in the embodiments of this application, applied to electronic devices with target card trays, such as... Figure 2 As shown, the method may include the following steps: step 201, step 202 and step 203;

[0043] In step 201, a first operation is received for a target card tray, wherein the target card tray includes at least two card tray areas.

[0044] In this embodiment of the application, a two-in-one card tray for TF card and SIM card is taken as the target card tray. The target card tray includes: a second card tray area near the inside for placing the SIM card, a first card tray area near the outside for placing the TF card, and a gap area between the two card tray areas. The three-in-one card tray is similar and will not be described in detail here.

[0045] In step 202, if the first operation is a card tray removal operation, the target power-off duration is determined based on the card removal identification duration.

[0046] In this embodiment of the application, the card removal recognition time = hardware stabilization time + software code execution time = α + β.

[0047] In this embodiment of the application, for the scenario where the card tray is removed from the card slot, when the target card tray is removed, the power-off time of the target needs to be minimized as much as possible, that is, the power-off should be fast. For ease of description, the power-off time of the target is denoted as t0. However, due to considerations for hardware stabilization and software code execution time when removing the card, t0 cannot be infinitely small. The minimum value of t0 should be greater than the necessary card removal recognition time, that is, t0 > α + β.

[0048] In step 203, the card slot circuit corresponding to the first card tray area is powered down according to the target power-down duration, wherein the first card tray area is the card tray area closer to the outer side among at least two card tray areas.

[0049] In this embodiment, t0 can be set to any value slightly greater than α+β, such that during the card removal operation, the card slot circuit corresponding to the first card tray area is completely powered off before contacting the metal plate area of ​​the card in the remaining card tray area. The remaining card tray area is the card tray area other than the first card tray area in at least two card tray areas.

[0050] For example, taking a TF card and SIM card combo card tray as the target card tray, the first card tray area of ​​the target card tray is the card tray area for placing the TF card, and the remaining card slot area is the card tray area for placing the SIM card. Set t0 to a value slightly greater than α+β, and control the TF hardware power pin inside the electronic device card slot to be powered down according to t0, so that the TF hardware power pin inside the electronic device is completely powered down before contacting the SIM card metal plate area.

[0051] As can be seen from the above embodiments, in this embodiment, a first operation is received for the target card tray. If the first operation is a card tray removal operation, the target power-down time is determined based on the card removal identification time. The card slot circuit corresponding to the first card tray area is powered down according to the target power-down time. The first card tray area is the card tray area near the outermost one among at least two card tray areas. In this way, when the card tray is removed, the target power-down time is determined based on the necessary card removal identification time. The card slot circuit corresponding to the first card tray area is powered down according to the target power-down time, so that the card slot circuit corresponding to the first card tray area can be powered down as soon as possible, avoiding the card slot circuit corresponding to the first card tray area from burning out the cards in the remaining card tray areas. The remaining card slot areas are the card tray areas other than the first card tray area among at least two card tray areas.

[0052] In some embodiments provided in this application, considering that the upper limit of t0 cannot be too large, if the value of t0 is too large, the power-off will be very slow, which may cause the card slot circuit corresponding to the first card tray area to still be charged when it contacts the metal plate area of ​​the card in the remaining card slot area, thereby burning the card in the remaining card slot area. Therefore, in addition to reasonably setting the lower limit of t0, it is also necessary to reasonably set the upper limit of t0.

[0053] Optionally, as an embodiment, step 202 above may include the following step: step 2021;

[0054] In step 2021, the target power-off time is determined based on the card removal identification time and the size of the target card tray.

[0055] In this embodiment of the application, the lower limit of the target power-off time can be determined based on the card removal identification time, i.e., t0>α+β.

[0056] In this embodiment, the upper limit of the target power-off time can be determined based on the size of the target card tray. The reason is as follows: During the removal of the target card tray, the relative position between the target card tray and the card slot will continuously change, that is, the target card tray will continuously move away from the card slot until the target card tray is completely removed. If the pins of the card slot circuit corresponding to the first card tray area are still energized when the target card tray is completely removed, the cards in the remaining card slot area may be burned. Therefore, it is necessary to calculate the time it takes for the target card tray to be completely removed from the card slot. This time = total length of the target card tray / card tray removal speed = L0 / v1. Set t0 < L0 / v1 so that the pins of the card slot circuit corresponding to the first card tray area are completely de-energized before the target card tray is completely removed, where L0 is the total length of the target card tray.

[0057] Finally, the range of values ​​for t0 can be determined as: α + β < t0 < L0 / v1.

[0058] As can be seen, in this embodiment, the lower limit of the target power-down time can be determined based on the card removal and identification time, and the upper limit of the target power-down time can be determined based on the size of the target card tray. Then, the power-down time of the card slot circuit can be set within a reasonable range to obtain the target power-down time. The card slot circuit corresponding to the first card tray area can be powered down according to the target power-down time, so that the card slot circuit corresponding to the first card tray area can be powered down as soon as possible, avoiding the card slot circuit corresponding to the first card tray area from burning out the cards in the remaining card tray areas.

[0059] Optionally, as an embodiment, step 202 above may include the following step: step 2022;

[0060] In step 2022, the target power-off time is determined based on the card removal identification time, the size of the target card tray, and the user response time.

[0061] In this embodiment of the application, the lower limit of the target power-off time can be determined based on the card removal identification time, i.e., t0>α+β.

[0062] In this embodiment of the application, the upper limit of the target power-off time can be determined based on the size of the target card holder and the user response time. The reasons are as follows: In the card removal scenario, the user needs to use a ejector pin to push out the target card tray. However, after pushing it out, the target card tray is not immediately dragged outward. There is a period of time between pushing out the card tray and dragging it outward, which is the user response time. In addition, during the removal process, the relative position of the target card tray and the card slot will change continuously, that is, the target card tray will move away from the card slot until the target card tray is completely removed. If the pins of the card slot circuit corresponding to the first card tray area are still energized when the target card tray is completely removed, the cards in the remaining card slot area may be burned. Therefore, it is necessary to calculate the time it takes for the target card tray to be completely removed from the card slot. This card removal time = total length of the target card tray / card tray removal speed = L0 / v1. Combining the card removal time and the user response time, t0 < m + L0 / v1 is set so that the pins of the card slot circuit corresponding to the first card tray area are completely de-energized before the target card tray is completely removed.

[0063] Finally, the range of values ​​for t0 can be determined as: α+β<t0<m+L0 / v1.

[0064] To make it easier to understand, let's take a TF card and SIM card combo tray as an example, combined with... Figure 3 The time distribution of the cardholder removal process is illustrated with an example. Figure 3 The duration of the "continuously charged state" corresponds to t0, which means that the power pins of the card slot hardware must have completed the power-off operation before the card is removed to the metal plate area of ​​the SIM card.

[0065] 1. Consider the case where t0 takes a small value: When the card tray removal operation is triggered, the software will receive a removal interrupt signal. In order to ensure the reliability of this hardware interrupt signal, the hardware debouncing duration α is set. The state will be polled within the duration of α to ensure that the removal operation has indeed occurred. This is mainly to solve the problem of hardware instability, which may cause signal jitter at some point, leading to misprocessing of the signal.

[0066] After confirming the reliability of the interrupt signal, the software code flow begins to respond. The time β is the time between the software starts to identify the response and the power-down control (execution of the software code flow). This time is the necessary time for software processing.

[0067] Now let's consider the power-down process. Since the power management unit inside the system controls the power-down behavior to be instantaneous or delayed, it can be set according to parameters. That is, in the card removal scenario agreed upon above, the system's TF card hardware pins are continuously powered for a duration of t0. Therefore, we can initially conclude that: t0 > α + β.

[0068] II. Considering the case where t0 takes a large value: First, consider the user response time, that is, from when the card tray is pushed out using the ejector pin until the user initiates the card removal operation. Since the duration of this process is not entirely fixed, different people's reaction times will vary. From... Figure 3 As can be seen, the longer the duration, the slower the user dials, and the better the situation can be satisfied. Therefore, we only need to consider the average human response time, i.e., the user response time.

[0069] Considering the time it takes to remove the card to the expected position, since the total length of different card trays (two-in-one card tray, three-in-one card tray, etc.) is different, let's call it L0. The card removal speed is v1, that is, the time taken for this operation is L0 / v1. Therefore, to meet the requirement of the TF card hardware pins being completely powered down, we must satisfy: t0<m+L0 / v1.

[0070] Finally, the range of values ​​for t0 can be determined as: α+β<t0<m+L0 / v1.

[0071] When determining the specific value of t0 based on α+β<t0<m+L0 / v1, the inequality can be discussed by taking the limit:

[0072] When v1 is smaller or m is larger or The equation on the right will approach infinity and will necessarily satisfy [the condition]. Figure 3 Therefore, this scenario meets the requirements.

[0073] When the value of v1 is larger or the value of m is smaller, the equation on the right will approach 0. In this case, the card removal operation is basically completed instantaneously. That is, when the card removal time is less than the time required by the software process, live contact will inevitably occur.

[0074] Therefore, for the above inequality, the default value for m and v1 is the average value of the user's operation, i.e., α+β<t0<min(m+L0 / v1).

[0075] In practical applications, considering that assigning values ​​to t0 based on inequalities is inconvenient, a coefficient k1 can be introduced to more easily assign values ​​to t0. Accordingly,

[0076]

[0077] The t0 obtained above represents the maximum effective prevention of card burning caused by card removal. (The above equation needs to consider the case where the actual t0 takes the maximum value, so the minimum value of k1 is set to 2, that is, the value range is: α+β to the average of the two). In other words, after configuring the delay time of t0, the power management unit of the system is triggered to power down the hardware pins of the TF card.

[0078] As can be seen, in this embodiment of the application, the target power-down time in the card removal scenario can be reasonably configured based on data from multiple dimensions such as card removal identification time, target card tray size, and user response time. Thus, when the card tray is removed, the power-down sequence of the card slot circuit can be controlled according to the target power-down time, so that the card slot circuit corresponding to the first card tray area can be powered down as soon as possible, avoiding the card slot circuit corresponding to the first card tray area from burning out the cards in the remaining card tray areas.

[0079] Optionally, in one embodiment, step 202 above may include the following step: step 2023;

[0080] In step 2023, the target power-off duration is determined based on the card removal identification time and the user response time.

[0081] In this embodiment of the application, the lower limit of the target power-off time can be determined based on the card removal identification time, i.e., t0>α+β.

[0082] In this embodiment of the application, the upper limit of the target power-off time can be determined based on the card removal identification time and the user response time, i.e., t0 < α + β + m, so that during the card removal operation, the card slot circuit corresponding to the first card tray area is completely powered off before contacting the metal plate area of ​​the card in the remaining card slot area.

[0083] Finally, we can conclude that the range of values ​​for t0 is: α+β<t0<α+β+m.

[0084] Optionally, in one embodiment, step 202 above may include the following step: step 2024;

[0085] In step 2024, the target power-down time is determined based on the card removal identification time and the size of the target gap region; wherein, the target gap region is the gap region between the first card tray region and the second card tray region, and the second card tray region is the card tray region adjacent to the first card tray region among at least two card tray regions.

[0086] In this embodiment of the application, the lower limit of the target power-off time can be determined based on the card removal identification time, i.e., t0>α+β.

[0087] In this embodiment, the size of the target gap region refers to the length of the target gap region, denoted as L1. The upper limit of the target power-off time can be determined based on the card removal identification time and the size of the target gap region, i.e., t0 < α + β + L1 / v1, so that during the card removal operation, the card slot circuit corresponding to the first card tray region is fully powered off before contacting the metal plate area of ​​the card on the second card tray region.

[0088] Finally, the range of values ​​for t0 can be determined as: α+β<t0<α+β+L1 / v1.

[0089] Optionally, in one embodiment, step 202 above may include the following step: step 2025;

[0090] In step 2025, the target power-off time is determined based on the card removal identification time, the user response time, and the size of the target gap area.

[0091] In this embodiment of the application, the lower limit of the target power-off time can be determined based on the card removal identification time, i.e., t0>α+β.

[0092] In this embodiment of the application, the upper limit of the target power-off time can be determined based on the card removal identification time, the user response time, and the size of the target gap area, i.e., t0 < α + β + m + L1 / v1, so that during the card removal operation, the card slot circuit corresponding to the first card tray area is completely powered off before contacting the metal plate area of ​​the card on the second card tray area.

[0093] Finally, the range of values ​​for t0 can be determined as: α+β<t0<α+β+m+L1 / v1.

[0094] As can be seen, in this embodiment of the application, the target power-down time in the card removal scenario can be reasonably configured based on data from multiple dimensions such as card removal identification time, user response time, and the size of the target gap area. Thus, when the card tray is removed, the power-down sequence of the card slot circuit can be controlled according to the target power-down time, so that the card slot circuit corresponding to the first card tray area can be powered down as soon as possible, avoiding the card slot circuit corresponding to the first card tray area from burning out the card in the second card tray area.

[0095] After introducing the scenario of removing the card tray from an electronic device, the next step is to introduce the scenario of inserting the card tray into an electronic device, some related concepts, and the card slot circuit control method in the scenario of inserting the card tray.

[0096] I. Card Insertion Scenarios

[0097] Taking a TF card and SIM card combo tray as an example, when the tray is inserted into the card slot of an electronic device, the hardware connected inside the card slot first contacts the tray. At this point, an insertion interrupt is generated in the software driver. Due to the software design, there is a time difference, known as power-on time t1, between the insertion interrupt and the power control unit fully powering on. During t1, the pins inside the card slot are not energized. As the tray is inserted, the relevant pins of the TF card inside the card slot come into contact with the SIM card on the tray. If t1 is not properly configured, the energized pins of the TF card inside the card slot may contact the metal contacts of the SIM card on the tray, potentially burning out the SIM card.

[0098] II. Related Concepts

[0099] Card insertion and recognition time: This refers to the necessary time for card insertion, consisting of two parts: hardware stabilization time and software code execution time. That is, card insertion and recognition time = hardware stabilization time + software code execution time. For ease of description, we will denot the hardware stabilization time as α (a constant in milliseconds) and the software code execution time as δ (a constant in milliseconds). The hardware stabilization time is the same in the card insertion scenario and the card removal scenario.

[0100] Hardware debouncing duration α: When a card insert operation is triggered, the software will receive an insertion interrupt signal. In order to ensure the reliability of the hardware interrupt signal of the electronic device, a hardware debouncing duration α is set. The state is polled within the duration α to ensure that a card insert operation has indeed occurred. The purpose is to avoid hardware instability, which may cause signal jitter at some point, leading to misprocessing of the signal. This period is the necessary duration for hardware processing.

[0101] Software code execution time δ: After confirming the reliability of the inserted interrupt signal, the software code flow begins to respond. The time from when the software begins to recognize and respond to when it processes the power management power-on (execution of the software code flow) is δ. This period is the necessary time for software processing.

[0102] Card reading and recognition time: After the card slot circuit in the electronic device is powered on, the process of recognizing the card on the card tray begins. This is a fixed software code execution flow, and this period is the necessary processing time for the software. For ease of description, the card reading and recognition time will be denoted as θ (a constant in milliseconds).

[0103] Card tray insertion speed: This refers to the speed at which the user pushes the card tray inward. Since the insertion speed varies among users and is not entirely fixed (for example, some users insert their card trays faster while others insert them slower), the insertion speed here is the average of a large number of users' insertion speeds. For ease of description later, the card tray removal speed is denoted as v2.

[0104] User Waiting Time: While a longer power-on time results in slower power-on in card insertion scenarios, reducing the likelihood of card burnout, an infinitely long power-on time would lead to the card not being recognized after insertion, resulting in a poor user experience. Therefore, a user waiting time is set based on actual user experience needs. For ease of description, the user waiting time is denoted as T (a constant, typically within 2 seconds, with a unified unit, i.e., T < 2000ms).

[0105] III. Card slot circuit control method in card insert scenario

[0106] Figure 4 This is a second flowchart of a card slot circuit control method provided in an embodiment of this application, applied to an electronic device with a target card tray, such as... Figure 4 As shown, the method may include the following steps: step 401, step 402 and step 403;

[0107] In step 401, a first operation is received for the target card.

[0108] In step 402, if the first operation is a card holder insertion operation, the target power-on duration is determined based on the size of the target card holder.

[0109] In this embodiment, the card insertion process can actually be divided into two stages: inserting the card tray to triggering an insertion interrupt and then fully inserting the entire card tray into the card slot. However, since these two actions are uninterrupted in actual operation, only the card tray insertion process needs to be considered. For ease of description, the target power-on duration is denoted as t1.

[0110] During the insertion of the target card tray, the relative position between the target card tray and the card slot changes continuously as the target card tray is inserted. That is, the target card tray continuously enters the card slot until it is fully inserted. If the card in the remaining card slot area of ​​the target card tray passes through the card slot circuit corresponding to the first card tray area, and the pin of the card slot circuit corresponding to the first card tray area is not energized, then the card in the remaining card slot area will not be burned. The size of the target card tray and the card tray insertion speed can characterize the above process. Therefore, the target power-on time can be determined according to the size of the target card tray. For example, initially setting t1 > L0 / v2, so that the card slot circuit corresponding to the first card tray area is not energized before contacting the metal plate area of ​​the card in the remaining card slot area; where the remaining card slot area is the card tray area other than the first card tray area in at least two card tray areas.

[0111] In step 403, the card slot circuit corresponding to the first card tray area is powered on according to the target power-on duration.

[0112] In this embodiment, the card slot circuit corresponding to the first card tray area is powered on according to the target power-on duration, so that the card slot circuit corresponding to the first card tray area is powered on only after the metal plate area of ​​the card in the remaining card slot area has completely passed through the card slot circuit corresponding to the first card tray area, in order to prevent the cards in the remaining card slot area from being burned.

[0113] As can be seen from the above embodiments, in this embodiment, a first operation is received for the target card tray. If the first operation is a card tray insertion operation, the target power-on duration is determined according to the size of the target card tray. The card slot circuit corresponding to the first card tray area is powered on according to the target power-on duration. The first card tray area is the card tray area near the outermost one among at least two card tray areas. Since the relative positional relationship between the cards in the remaining card slot areas of the target card tray and the card slot circuit corresponding to the first card tray area of ​​the target card tray during the card insertion process is directly related to the size of the target card tray, the target power-on duration is determined according to the size of the target card tray. The card slot circuit corresponding to the first card tray area is powered on according to the target power-on duration, so that the card slot circuit corresponding to the first card tray area can be powered on in a timely manner, avoiding the card slot circuit corresponding to the first card tray area from burning out the cards in the remaining card tray areas.

[0114] In some embodiments provided in this application, step 402 above may include the following step: step 4021;

[0115] In step 4021, the target power-on duration is determined based on the size of the target card tray and the card insertion and identification time.

[0116] In the embodiments of this application, for ease of understanding, combined with Figure 5 The time distribution of the card inserting process is illustrated with an example. Figure 5The duration of the "continuously non-powered state" corresponds to t1. The card slot circuit of the control electronic device is powered on only after the target card tray is fully inserted into the card slot. In this case, it can be ensured that the card slot circuit corresponding to the first card tray area is powered on only after the metal plate area of ​​the card in the remaining card tray area has completely passed through the card slot circuit of the first card tray area.

[0117] like Figure 4 As described in the embodiment, the card insertion behavior can actually be divided into two stages: inserting the card tray to triggering the insertion interrupt and subsequently inserting the entire card tray into the card slot. However, since these two behaviors are not interrupted in actual operation, we only need to consider the time taken to insert the entire card tray. This time = total length of the target card tray / card tray insertion speed = L0 / v2, that is, the time required for the target card tray to be completely inserted into the card slot is L0 / v2.

[0118] Similarly, as described above in the card removal scenario, in scenarios where software takes time, it is also necessary to introduce the hardware anti-shake duration α, and the duration δ between the start of software recognition and response and the power-on of the control power management (execution of software code flow). Therefore, the following equation can be derived: α+δ+t1>L0 / v2, that is, t1>L0 / v2-α-δ, so that the pins of the card slot circuit corresponding to the first card slot area are powered on only after the target card tray is fully inserted into the card slot.

[0119] As can be seen, in this embodiment of the application, when the target card tray is inserted into the card slot of the electronic device, the relative positional relationship between the card in the remaining card tray area of ​​the target card tray and the card slot circuit corresponding to the first card tray area of ​​the target card tray during the card insertion process is directly related to the size of the target card tray. Furthermore, the card insertion recognition time is the necessary duration during card insertion. Therefore, the power-on time of the card slot circuit can be set to a reasonable range according to the size of the target card tray and the card insertion recognition time to obtain the target power-on time. By controlling the card slot circuit corresponding to the first card tray area to power on according to the target power-on time, it is possible to avoid the card slot circuit corresponding to the first card tray area burning out the card in the remaining card tray area.

[0120] In some embodiments provided in this application, although in the card insertion scenario, the longer the power-on time, the slower the power-on, and the less likely the card will be burned, if the power-on time is infinitely long, it will result in the card not being recognized after the card tray is inserted, leading to a poor user experience. Therefore, it is necessary to set an upper limit for the target power-on time. Accordingly, the above step 4021 may include the following steps: Step 40211;

[0121] In step 40211, the target power-on time is determined based on the size of the target card tray, the card insertion and identification time, the user waiting time, and the card reading and identification time.

[0122] In this embodiment of the application, the lower limit of the target power-on time can be determined according to the size of the target card tray and the card insertion identification time, i.e., t1>L0 / v2-α-δ.

[0123] In this embodiment of the application, the upper limit of the target power-on time can be determined based on the user waiting time and the card reading recognition time.

[0124] The reasons are as follows: From Figure 5 As can be seen, when the "continuously unpowered state" time is long enough or even infinitely long, it can meet the requirement of powering on only after the card tray is fully inserted. However, if this time is infinitely long, it will result in the card not being recognized after insertion, leading to a poor user experience. Therefore, based on the actual needs of user experience, a user waiting time is set, i.e., the maximum time the user can wait. In practical applications, this can be a constant, denoted as T.

[0125] Let's break down the time constant T, taking a TF card and SIM card combo tray as an example. After the TF card is powered on, the process of recognizing the TF card begins, which is a fixed software code execution flow. Since the same chip and processor are used, the execution of the software code can be considered fixed. Therefore, the card reading and recognition time is set to θ. From this, we can derive the following equation: t1 < T - θ.

[0126] Finally, the range of values ​​for t1 can be obtained as: L0 / v2-α-δ<t1<T-θ.

[0127] When determining the specific value of t1 based on L0 / v²-α-δ<t1<T-θ, the inequality can be discussed by taking the limit:

[0128] When v2 is small enough, that is, the value on the left side of the inequality is: If the insertion of the card tray is infinitely slow, then the card tray has already completed the power-on operation before it is inserted into the contact area of ​​the SIM card. In this case, no matter what value t1 takes within the range, the condition is not met.

[0129] When v2 is large enough, that is, the value on the left side of the inequality is: This indicates that the insertion speed of the card tray is infinitely fast. In this case, the condition can be satisfied no matter what value t1 takes within the range.

[0130] Similarly, to facilitate the assignment of values ​​to t1 in practical applications, a coefficient k2 can be introduced. Accordingly,

[0131]

[0132] The t1 obtained above represents the maximum effective prevention of card burning caused by card insertion. (The above equation needs to consider the case where the actual t1 takes the minimum value, so the maximum value of k2 is set to 2, that is, the value range is: the average of the two to T-θ). In other words, after configuring the delay time of t1, the power management unit of the system is triggered to power on the hardware pins of the TF card.

[0133] As can be seen, in this embodiment of the application, the target power-on time in the card insertion scenario can be reasonably configured based on multiple dimensions of data such as the size of the target card tray, the card insertion recognition time, the user waiting time, and the card reading recognition time. Thus, when inserting the card tray, the power-on sequence of the card slot circuit can be controlled according to the target power-on time, which can prevent the card slot circuit corresponding to the first card tray area from burning out the cards in the remaining card tray areas.

[0134] In some embodiments provided in this application, the size of the target card tray includes the size of the second card tray region, which is a card tray region adjacent to the first card tray region among at least two card tray regions; step 402 above may include the following step: step 4022;

[0135] In step 4022, the target power-on duration is determined based on the size of the second card tray area and the size of the card slot area corresponding to the first card tray area.

[0136] In this embodiment of the application, during the insertion of the target card tray, the relative position between the target card tray and the card slot will continuously change, that is, the target card tray will continuously enter the card slot until the target card tray is fully inserted. There is also a spatial positional change relationship between the card on the second card tray area of ​​the target card tray and the card slot circuit corresponding to the first card tray area, which first approaches and then moves away.

[0137] If the pins of the card slot circuit corresponding to the first card slot area are energized before the card in the second card slot area of ​​the target card tray comes into contact with it, the card in the second card slot area is likely to be burned. Conversely, if the card in the second card slot area of ​​the target card tray has completely passed through the card slot circuit corresponding to the first card slot area before the pins of the first card slot circuit are energized, the card in the second card slot area will not be burned. For ease of description, the size of the second card slot area, i.e., the length of the second card slot area, is denoted as L2; ​​and the size of the card slot area corresponding to the first card slot area, i.e., the length of the card slot area corresponding to the first card slot area, is denoted as L3.

[0138] To address the above situation, the total time can be calculated based on the dimensions of the second card tray area on the target card tray and the dimensions of the card slot area corresponding to the first card tray area. This process involves the card entering the card slot from the second card tray area, passing through the card slot circuit corresponding to the first card tray area, and then moving away from the card slot circuit corresponding to the first card tray area. The total time is calculated as follows: Total Time = (Dimensions of the second card tray area on the target card tray + Dimensions of the card slot area corresponding to the first card tray area) / Card tray insertion speed = (L2 + L3) / v2. If t1 > (L2 + L3) / v2, it can be ensured that the pins of the card slot circuit corresponding to the first card tray area are powered on only after the card in the second card tray area of ​​the target card tray has completely passed through the card slot circuit corresponding to the first card tray area.

[0139] As can be seen, in this embodiment, when the target card tray is inserted into the card slot of the electronic device, the relative positional relationship between the card on the second card tray area of ​​the target card tray and the card slot circuit corresponding to the first card tray area of ​​the target card tray during the card insertion process is related to the size of the second card tray area and the size of the card slot area corresponding to the first card tray area. Therefore, the power-on time of the card slot circuit can be set to a reasonable range according to the size of the second card tray area and the size of the card slot area corresponding to the first card tray area to obtain the target power-on time. By controlling the card slot circuit corresponding to the first card tray area to power on according to the target power-on time, it is possible to avoid the card slot circuit corresponding to the first card tray area burning out the card in the second card tray area.

[0140] In summary, unlike related technologies where t0 and t1 are set based on empirical values, in this embodiment, the values ​​of t0 and t1 can be reasonably configured based on the characteristic parameters of the card slot circuit, the characteristic parameters of the card tray, and the behavioral parameters of a large number of users operating the card tray. This ensures that the cards on the card tray are not burned in card removal and card insertion scenarios, while also meeting the operating habits of most users.

[0141] The card slot circuit control method provided in this application can be executed by a card slot circuit control device. This application uses the example of a card slot circuit control device executing the card slot circuit control method to illustrate the card slot circuit control device provided in this application.

[0142] Figure 6 This is a structural block diagram of a card slot circuit control device provided in an embodiment of this application. The card slot circuit control device is applied to an electronic device with a target card tray, the target card tray including at least two card tray areas, such as... Figure 6 As shown, the card slot circuit control device 600 may include: a receiving module 601, a first determining module 602, and a first control module 603;

[0143] Receiver module 601 is used to receive a first operation on the target card holder;

[0144] The first determining module 602 is used to determine the target power-off duration based on the card removal identification duration when the first operation is a card tray removal operation.

[0145] The first control module 603 is used to control the card slot circuit corresponding to the first card tray area to power down according to the target power-down duration; the first card tray area is the card tray area near the outer side among the at least two card tray areas.

[0146] As can be seen from the above embodiments, in this embodiment, a first operation is received for the target card tray. If the first operation is a card tray removal operation, the target power-down time is determined based on the card removal identification time. The card slot circuit corresponding to the first card tray area is powered down according to the target power-down time. The first card tray area is the card tray area near the outermost one among at least two card tray areas. In this way, when the card tray is removed, the target power-down time is determined based on the necessary card removal identification time. The card slot circuit corresponding to the first card tray area is powered down according to the target power-down time, so that the card slot circuit corresponding to the first card tray area can be powered down as soon as possible, avoiding the card slot circuit corresponding to the first card tray area from burning out the cards in the remaining card tray areas. The remaining card slot areas are the card tray areas other than the first card tray area among at least two card tray areas.

[0147] Optionally, as an embodiment, the card slot circuit control device 600 may further include:

[0148] The second determining module is used to determine the target power-on duration based on the size of the target card tray when the first operation is a card tray insertion operation;

[0149] The second control module is used to control the card slot circuit corresponding to the first card tray area to power on according to the target power-on duration.

[0150] Optionally, as an embodiment, the second determining module may include:

[0151] The first determining submodule is used to determine the target power-on duration based on the size of the target card tray and the card insertion and identification time.

[0152] Optionally, as an embodiment, the first determining submodule may include:

[0153] The determining unit is used to determine the target power-on time based on the size of the target card tray, the card insertion and identification time, the user waiting time, and the card reading and identification time.

[0154] Optionally, as an embodiment, the size of the target card tray includes the size of the second card tray region, which is the card tray region adjacent to the first card tray region among the at least two card tray regions;

[0155] The second determining module may include:

[0156] The second determining submodule is used to determine the target power-on duration based on the size of the second card tray area and the size of the card slot area corresponding to the first card tray area.

[0157] Optionally, as an embodiment, the first determining module 602 may include:

[0158] The third determining submodule is used to determine the target power-off duration based on the card removal identification duration and the user response duration; or...

[0159] The fourth determining submodule is used to determine the target power-down time based on the card removal identification time and the size of the target gap region; the target gap region is the gap region between the first card tray region and the second card tray region, and the second card tray region is the card tray region adjacent to the first card tray region among the at least two card tray regions; or,

[0160] The fifth determining submodule is used to determine the target power-off time based on the card removal identification time, the user response time, and the size of the target gap region.

[0161] Optionally, as an embodiment, the first determining module 602 may include:

[0162] The sixth determining submodule is used to determine the target power-off duration based on the card removal identification duration and the size of the target card tray; or,

[0163] The seventh determining submodule is used to determine the target power-off time based on the card removal identification time, the size of the target card tray, and the user response time.

[0164] The card slot circuit control device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0165] The card slot circuit control device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0166] The card slot circuit control device provided in this application embodiment can achieve... Figure 2 or Figure 4 To avoid repetition, the various processes implemented in the method embodiment shown will not be described again here.

[0167] Optionally, such as Figure 7 As shown, this application embodiment also provides an electronic device 700, including a processor 701 and a memory 702. The memory 702 stores a program or instructions that can run on the processor 701. When the program or instructions are executed by the processor 701, they implement the various steps of the above-described card slot circuit control method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0168] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0169] Figure 8 This is a schematic diagram of the hardware structure of an electronic device that implements the various embodiments of this application.

[0170] The electronic device 800 includes, but is not limited to, components such as: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, and processor 810.

[0171] Those skilled in the art will understand that the electronic device 800 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 810 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 8 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0172] The processor 810 is configured to receive a first operation on a target card tray of an electronic device, the target card tray including at least two card tray areas; when the first operation is a card tray removal operation, determine a target power-down duration based on the card removal identification duration; and control the card slot circuit corresponding to the first card tray area to power down based on the target power-down duration, the first card tray area being the card tray area closest to the outermost of the at least two card tray areas.

[0173] As can be seen, in this embodiment of the application, a first operation is received for the target card tray. If the first operation is a card tray removal operation, the target power-down time is determined based on the card removal identification time. The card slot circuit corresponding to the first card tray area is powered down based on the target power-down time. The first card tray area is the card tray area near the outermost one among at least two card tray areas. In this way, when the card tray is removed, the target power-down time is determined based on the necessary card removal identification time. The card slot circuit corresponding to the first card tray area is powered down based on the target power-down time, so that the card slot circuit corresponding to the first card tray area can be powered down as soon as possible, avoiding the card slot circuit corresponding to the first card tray area from burning out the cards in the remaining card tray areas. The remaining card slot areas are the card tray areas other than the first card tray area among at least two card tray areas.

[0174] Optionally, as an embodiment, the processor 810 is further configured to, when the first operation is a card tray insertion operation, determine a target power-on duration based on the size of the target card tray; and control the card slot circuit corresponding to the first card tray area to power on based on the target power-on duration.

[0175] Optionally, as an embodiment, the processor 810 is also configured to determine the target power-on duration based on the size of the target card tray and the card insertion identification time.

[0176] Optionally, as an embodiment, the processor 810 is also configured to determine the target power-on duration based on the size of the target card tray, the card insertion recognition time, the user waiting time, and the card reading recognition time.

[0177] Optionally, as an embodiment, the size of the target card tray includes the size of the second card tray region, which is the card tray region adjacent to the first card tray region among the at least two card tray regions; the processor 810 is further configured to determine the target power-on duration based on the size of the second card tray region and the size of the card slot region corresponding to the first card tray region.

[0178] Optionally, as an embodiment, the processor 810 is further configured to determine the target power-off duration based on the card removal identification duration and the user response duration; or,

[0179] The target power-down time is determined based on the card removal identification time and the size of the target gap region; the target gap region is the gap region between the first card tray region and the second card tray region, and the second card tray region is the card tray region adjacent to the first card tray region among the at least two card tray regions; or...

[0180] The target power-off time is determined based on the card removal identification time, the user response time, and the size of the target gap region.

[0181] Optionally, as an embodiment, the processor 810 is further configured to determine the target power-off duration based on the card removal identification duration and the size of the target card tray; or,

[0182] The target power-off time is determined based on the card removal identification time, the size of the target card tray, and the user response time.

[0183] It should be understood that, in this embodiment, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042. The GPU 8041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.

[0184] The memory 809 can be used to store software programs and various data. The memory 809 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 809 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (Synchlink DRAM, SLDRAM), and direct memory bus RAM (DRRAM). The memory 809 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0185] Processor 810 may include one or more processing units; optionally, processor 810 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 810.

[0186] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described card slot circuit control method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0187] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0188] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described card slot circuit control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0189] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0190] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the card slot circuit control method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0191] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0192] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0193] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A card slot circuit control method, applied to an electronic device having a target card tray, the target card tray comprising at least two card tray areas, characterized in that, The method includes: Receive a first operation for the target card holder; When the first operation is a card tray removal operation, the target power-down time is determined based on the card removal identification time, which includes: hardware anti-shake time and software code execution time. The card slot circuit corresponding to the first card tray area is powered down according to the target power-down duration; the first card tray area is the card tray area near the outer side among the at least two card tray areas; The step of determining the target power-off duration based on the card removal identification duration includes: The target power-off duration is determined based on the card removal identification time and the user response time; Alternatively, the target power-off time can be determined based on the card removal identification time and the size of the target gap area; the target gap area is the gap area between the first card tray area and the second card tray area, and the second card tray area is the card tray area adjacent to the first card tray area among the at least two card tray areas; Alternatively, the target power-off duration can be determined based on the card removal identification duration, the user response duration, and the size of the target gap region. Alternatively, the target power-off duration can be determined based on the card removal identification duration and the size of the target card tray; Alternatively, the target power-off duration can be determined based on the card removal identification time, the size of the target card tray, and the user response time.

2. The method according to claim 1, characterized in that, The method further includes: When the first operation is a card holder insertion operation, the target power-on duration is determined according to the size of the target card holder; The card slot circuit corresponding to the first card tray area is powered on according to the target power-on duration.

3. The method according to claim 2, characterized in that, Determining the target power-on duration based on the size of the target card holder includes: The target power-on duration is determined based on the size of the target card tray and the card insertion and recognition time.

4. The method according to claim 3, characterized in that, The step of determining the target power-on duration based on the size of the target card tray and the card insertion and identification time includes: The target power-on time is determined based on the size of the target card tray, the card insertion and recognition time, the user waiting time, and the card reading and recognition time.

5. The method according to claim 2, characterized in that, The size of the target tray includes the size of the second tray region, which is the tray region adjacent to the first tray region among the at least two tray regions; Determining the target power-on duration based on the size of the target card holder includes: The target power-on duration is determined based on the size of the second card tray area and the size of the card slot area corresponding to the first card tray area.

6. A card slot circuit control device, applied to an electronic device having a target card tray, the target card tray comprising at least two card tray areas, characterized in that, The device includes: A receiving module is configured to receive a first operation targeting the target card holder; The first determining module is used to determine the target power-down time based on the card removal identification time when the first operation is a card tray removal operation. The card removal identification time includes: hardware anti-shake time and software code execution time. The first control module is used to control the card slot circuit corresponding to the first card tray area to power down according to the target power-down duration; the first card tray area is the card tray area near the outer side among the at least two card tray areas; The first determining module includes: The third determining submodule is used to determine the target power-off duration based on the card removal identification duration and the user response duration; or... The fourth determining submodule is used to determine the target power-down time based on the card removal identification time and the size of the target gap region; the target gap region is the gap region between the first card tray region and the second card tray region, and the second card tray region is the card tray region adjacent to the first card tray region among the at least two card tray regions; or, The fifth determining submodule is used to determine the target power-off duration based on the card removal identification duration, the user response duration, and the size of the target gap region; or, The sixth determining submodule is used to determine the target power-off duration based on the card removal identification duration and the size of the target card tray; or, The seventh determining submodule is used to determine the target power-off time based on the card removal identification time, the size of the target card tray, and the user response time.

7. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the card slot circuit control method as described in any one of claims 1 to 5.

8. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the card slot circuit control method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Control circuit and method for avoiding card burning, terminal and computer storage medium

    CN109190745A