Smart card voltage timing detection method, device terminal and storage medium

By acquiring and storing voltage timing diagrams on smart cards, the problem of complex and costly smart card detection in existing technologies is solved, and an efficient detection process is achieved.

CN115097293BActive Publication Date: 2025-12-23XIAN WINGTECH INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210838723.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-15
Publication Date
2025-12-23
Estimated Expiration
2042-07-15

AI Technical Summary

Technical Problem

Existing technologies require the use of specialized equipment such as oscilloscopes in laboratories for smart card testing, which is complex, costly, and time-consuming, and can easily lead to user complaints.

Method used

When the operating status of the smart card changes, the pin voltage and timing information of the smart card are collected and stored through the electronic device terminal to form a voltage timing diagram for technicians to judge the hardware status.

Benefits of technology

It improves the efficiency of smart card detection, shortens the detection cycle, and reduces operational complexity and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115097293B_ABST
    Figure CN115097293B_ABST
Patent Text Reader

Abstract

The application provides a smart card voltage time sequence detection method, a device terminal and a storage medium, and the smart card voltage time sequence detection method comprises the following steps: when the running state of the smart card changes, collecting and storing the voltage of at least one pin of the smart card at the current time and corresponding time information by means of the electronic device terminal, and forming a voltage time sequence according to the voltage of the at least one pin and the corresponding time information. Compared with the prior art, the application can collect the voltage of the related pin of the smart card when the running state changes in the use process of the smart card, and store the collected voltage data into the storage, so as to enable the technical personnel to judge the hardware state of the smart card, improve the detection efficiency of the smart card and shorten the detection period.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of intelligent terminal, in particular to a smart card voltage timing detection method, an electronic device terminal and a storage medium. BACKGROUND

[0002] When the smart card used for connecting the communication between the electronic device terminal and the base station has a problem, the user will have a phenomenon that the smart card cannot be recognized when using the electronic device terminal. At this time, the electronic device terminal in the hand of the user needs to be transported to the test laboratory, and the special test instrument and platform demodulator log in the laboratory are used for testing. The special test instrument is, for example, an oscilloscope.

[0003] Generally, the specific implementation process of the function test of the smart card in the mobile phone is as follows: first, the mainboard of the mobile phone needs to be exposed, and at the moment of starting, the probes of the oscilloscope are used to measure the related pins of the smart card, such as the power pin (SIMVCC), the data pin (SIMDATA), the clock pin (SIMCLK) and the reset pin (SIMRST) of the SIM card. Then, the voltage timing of the related pins is displayed on the oscilloscope, so that the technical personnel can calculate the related time delay parameters according to the voltage timing, and then judge whether the hardware working state of the smart card at this time has a problem. If the probe of the oscilloscope at this time is a handheld probe, the technical personnel need to operate multiple probes at the same time for measurement, and also need to operate the mobile phone to start. The operation requirement of the technical personnel is high, the test cost is high, and the function test of the smart card needs to be tested by using the oscilloscope in the test laboratory, the test period is long, and even complaints may be caused, which has a great influence on the overall test effect. SUMMARY

[0004] The embodiments of the present application disclose a smart card voltage timing detection method, an electronic device and a storage medium, so that at least one pin voltage and corresponding time information of the smart card can be output during use, to form a voltage timing, for the technical personnel in the field to judge the hardware state of the smart card, improve the detection efficiency of the smart card, and shorten the detection period.

[0005] In a first aspect, the present application provides a smart card voltage timing detection method applied to an electronic device terminal installed with a smart card, the method comprising: when the running state of the smart card changes, collecting and storing the voltage of at least one pin of the smart card at the current time and the corresponding time information; obtaining the voltage timing of the smart card according to the collected voltage of at least one pin and the corresponding time information.

[0006] In the method for detecting the voltage time sequence of the smart card, when the running state of the smart card changes, the voltage of at least one pin of the smart card at the current time and the corresponding time information are collected and stored by the electronic device terminal, and the voltage time sequence is formed according to the voltage of at least one pin and the corresponding time information. Compared with the prior art, when the running state changes during the use of the smart card, the voltage of the related pin of the smart card can be collected, and the collected voltage data can be stored in the memory for the technician to judge the hardware state of the smart card, thereby improving the detection efficiency of the smart card and shortening the detection period.

[0007] In one embodiment, when the running state of the smart card changes, it includes: when the electronic device terminal performs power-on operation or power-off operation on the smart card, wherein the power-on operation is the operation corresponding to the power-on instruction of the smart card performed by the electronic device terminal in the starting state, and the power-off operation is the operation corresponding to the power-off instruction of the smart card performed by the electronic device terminal in the off state; or when the electronic device terminal detects that the installation state of the smart card changes.

[0008] In one embodiment, when the electronic device terminal detects that the installation state of the smart card changes, it includes: when the difference between the first voltage at the last time and the second voltage at the current time of the plug detection pin of the smart card is greater than a threshold value.

[0009] In one embodiment, the power-on or power-off instruction is obtained when the electronic device terminal starts the listening process after starting.

[0010] In one embodiment, the collection and storage of the voltage of at least one pin of the smart card at the current time and the corresponding time information includes: collecting and storing the voltage of at least one pin at the current time and the corresponding time information in the non-volatile file memory; when the storage times of the voltage of at least one pin and the corresponding time information are greater than a preset number of times, the voltage of at least one pin at the current time and the corresponding time information are overwritten in the non-volatile file memory.

[0011] In one embodiment, the electronic device terminal includes a display screen, and the method further includes: forming a voltage time sequence diagram according to the voltage time sequence of the smart card, and displaying it on the display screen.

[0012] In one embodiment, the at least one pin of the smart card includes at least one or a combination of the following: power pin, clock pin, reset pin and data pin.

[0013] In a second aspect, the present application provides an electronic device terminal, wherein the electronic device terminal is installed with a smart card, and the electronic device terminal comprises: a voltage time sequence acquisition module, configured to acquire and store a voltage of at least one pin of the smart card and corresponding time information at a current time when a running state of the smart card changes; and a voltage time sequence determination module, configured to obtain a voltage time sequence of the smart card according to the acquired voltage of the at least one pin and the corresponding time information.

[0014] In a third aspect, the present application provides an electronic device terminal, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the smart card voltage time sequence detection method.

[0015] In a fourth aspect, the present application provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, and when the instructions in the computer readable storage medium are executed by a processor of an electronic device terminal, the electronic device terminal is enabled to execute the smart card voltage time sequence detection method.

[0016] It should be understood that the second to fourth aspects of the embodiments of the present application are consistent with the technical solution of the first aspect of the embodiments of the present application, and the beneficial effects obtained by each aspect and the corresponding feasible implementation manner are similar, and will not be described again. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0018] Figure 1 A flowchart of a smart card voltage time sequence detection method provided by an embodiment of the present application is shown in the figure;

[0019] Figure 2 A flowchart of a smart card voltage time sequence detection method provided by an embodiment of the present application is shown in the figure;

[0020] Figure 3 A voltage time sequence diagram of an electronic device terminal changing from an unpowered state to a powered-on state according to an embodiment of the present application is shown in the figure;

[0021] Figure 4 A voltage time sequence diagram of an electronic device terminal changing from a powered-on state to an activated state according to an embodiment of the present application is shown in the figure;

[0022] Figure 5The voltage timing diagram of the electronic device terminal from the active state to the working state according to an embodiment of the present application is shown in FIG. 1;

[0023] Figure 6 The voltage timing diagram of the electronic device terminal from the working state to the power-off state according to an embodiment of the present application is shown in FIG. 2;

[0024] Figure 7 The voltage timing diagram of the electronic device terminal from the working state to the reset state according to an embodiment of the present application is shown in FIG. 3;

[0025] Figure 8 The voltage timing diagram of the electronic device terminal from the reset state to the reset response state according to an embodiment of the present application is shown in FIG. 4;

[0026] Figure 9 The image diagram of the voltage timing diagram of the electronic device terminal according to an embodiment of the present application is shown in FIG. 5;

[0027] Figure 10 The flow diagram of the smart card voltage timing detection method according to an embodiment of the present application is shown in FIG. 6;

[0028] Figure 11 The structural diagram of the electronic device terminal according to an embodiment of the present application is shown in FIG. 7;

[0029] Figure 12 The structural diagram of the electronic device terminal according to an embodiment of the present application is shown in FIG. 8;

[0030] Figure 13 The structural diagram of the electronic device terminal according to an embodiment of the present application is shown in FIG. 9;

[0031] Figure 14 The structural diagram of the electronic device terminal according to an embodiment of the present application is shown in FIG. 10. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0033] It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover not exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product or device.

[0034] The smart card voltage timing detection provided by the embodiments of the present application can be performed by an electronic device terminal installed with a smart card. The electronic device terminal can be a terminal device such as a smart phone, a watch, a tablet computer, a PC, a notebook computer, etc. In an optional embodiment, a service program for performing the smart card voltage timing detection method can be installed on the electronic device terminal.

[0035] Figure 1 A flowchart of a smart card voltage timing detection method provided by the embodiments of the present application is shown in the figure. The above method can include the following steps:

[0036] In step S101, when the running state of the smart card changes, the voltage of at least one pin of the smart card at the current time and the corresponding time information are collected and stored.

[0037] Optionally, the smart card is a card embedded with a microelectronic chip, and the smart card performs data interaction with the electronic device terminal through a reader / writer. The smart card is equipped with a central processing unit (CPU), a random access memory (RAM) and an input / output interface (I / O), and can process a large number of data by itself without interfering with the work of the host CPU. In some embodiments, the smart card can be a subscriber identity module (SIM), a user identity model (UIM) or a universal subscriber identity module (USIM).

[0038] Optionally, the at least one pin of the smart card can include a power pin, a clock pin, a reset pin and a data pin of the smart card.

[0039] Optionally, the running states of the smart card can include power-on state, activation state, working state, power-off state, reset state and reset response state. The voltage of each pin corresponding to each running state is different. For example, when the smart card is in the power-on state, the power pin VCC of the smart card is set to high level by connecting the power terminal of the electronic device terminal; when the smart card is in the activation state, the clock pin CLK is set to high level after the VCC pin is set to high level, and the activation process is completed; when the smart card is in the working state, the data pin DATA is set to high level, and data transmission is started; when the smart card is in the power-off state, the related pins of the smart card except the power pin, including the DATA, CLK and RST pins, are set to low level; when the smart card is in the reset state, the RST pin is set to high level; and when the smart card is in the reset response state, the DATA pin is set to low level.

[0040] Optionally, the implementation of setting the VCC pin to high level can include the following two implementations.

[0041] Implementation one: the smart card is installed into the smart card slot in the shutdown state of the electronic device terminal, and then the electronic device terminal is started to set the VCC pin of the smart card to high level.

[0042] For example, when the electronic device terminal is in the shutdown state, the internal devices including the SIM card are in the unpowered state. After the SIM card is installed into the SIM card slot of the electronic device terminal, the electronic device terminal is started, for example, the power-on button is pressed, and the electronic device terminal starts to run and supply power to the internal devices. At this time, the power pin VCC of the SIM card is set to high level.

[0043] Implementation two: the smart card is hot-plugged in the power-on state of the electronic device terminal. When the plug detection pin of the smart card detects that the smart card is in the inserted state, the VCC pin is high level. On the contrary, when the plug detection pin of the smart card detects that the smart card is in the pulled-out state, the VCC pin is low level.

[0044] For example, the SIM card slot of the electronic device terminal is provided with a detection module for detecting the plug state of the SIM card. The plug state of the SIM card can be detected through the detection module. For example, a physical metal contact is arranged at the part of the SIM card slot in contact with the SIM card, and the physical metal contact is electrically connected with the plug detection pin of the card slot. When the physical metal contact is deformed, the electronic device terminal can detect that the plug detection pin changes in level. When it is judged that the plug state of the SIM card is in the inserted state, the VCC pin is high level. When it is judged that the plug state of the SIM card is in the pulled-out state, the VCC pin is low level.

[0045] It should be noted that, because the controller can only identify digital quantity, such as 0 and 1 two logic states, when inferring the working state of a pin, the voltage of the pin needs to be judged in range, and it is inferred whether it is in high level "1" state or low level "0" state at this time, for example, generally, the voltage range corresponding to high level is 3.5V-5V, and the voltage range corresponding to low level is 0V-0.25V, if the measured voltage value is 3.5V, it is inferred that the level state of the pin at this time is high level, and if the voltage value is 0.25V, it is inferred that the level state of the pin at this time is low level.

[0046] Optionally, the change of the running state of the smart card can be a process of switching the smart card between two running states in response to a corresponding running instruction, for example, when the generated running instruction is a power-on instruction, the smart card changes from the unpowered state to the activated state; when the generated running instruction is a power-off instruction, the smart card changes from the working state to the powered-off state; when the generated instruction is a reset instruction, the smart card changes from the working state to the reset state.

[0047] Optionally, the triggering of the running instruction in the change of the running state can include the following cases:

[0048] Case one: when the electronic device terminal performs power-on operation or power-off operation on the smart card, wherein the power-on operation is the operation corresponding to the power-on instruction of the smart card performed by the electronic device terminal in the starting state, and the power-off operation is the operation corresponding to the power-off instruction of the smart card performed by the electronic device terminal in the closing state.

[0049] Optionally, the power-on instruction or the power-off instruction is obtained by starting a listening process after the electronic device terminal is started. In some embodiments, because the listening for the power-on instruction or the power-off instruction needs to be performed all the time after the electronic device terminal is started, the listening process can be a task process (task). The task process is a process independent of the worker process running the main process, which can be used to process business logic with long time consumption and does not affect the worker process to process the request of the client.

[0050] Case two: when the electronic device terminal detects that the installation state of the smart card changes.

[0051] Optionally, the change of the installation state of the smart card can be detected by a plug detection pin of the smart card. The installation state of the specific smart card can be determined by the level state of the plug detection pin (DET). For example, when the DET pin of the smart card detects that the smart card is in the inserted state, the DET pin is at a high level; when the DET pin of the smart card detects that the smart card is in the pulled-out state, the DET pin is at a low level. When the DET pin detects that the installation state of the smart card changes from the inserted state to the pulled-out state or from the pulled-out state to the inserted state, the electronic device terminal generates an interrupt to execute step S102.

[0052] Optionally, the triggering condition of the installation state of the plug detection pin can include:

[0053] When the difference between the first voltage at the previous time and the second voltage at the current time of the plug detection pin of the smart card is greater than a threshold value.

[0054] Exemplarily, the plug detection pin detects the installation state of the current smart card in real time. When the smart card is pulled out, the plug detection pin changes from the first voltage at the high level state to the second voltage at the low level state, that is, a level jump is generated, thereby generating an interrupt. However, due to environmental influences, the specific voltage will have a small fluctuation, so it is necessary to set the difference threshold value between the first voltage and the second voltage to exclude error factors such as environmental influences. The difference threshold value is set by the person skilled in the art according to the actual needs, and the embodiment is not limited.

[0055] Optionally, the change of the running state of the smart card can also be automatically executed after the smart card completes the corresponding data verification. For example, the smart card automatically changes from the activated state to the working state after completing the data verification.

[0056] Optionally, the collection process of the voltage and the corresponding time information can include the following steps:

[0057] Step S1011, collect and store the voltage of at least one pin at the current time and the corresponding time information into the non-volatile file memory.

[0058] Optionally, during the acquisition, only the pins with changed level state can be acquired, or all the pins can be acquired. For example, in the case of acquiring only the pins with changed level state, when the smart card changes from the unpowered state to the powered state, only the VCC pin is set to high level, and the other pins are still in low level state, so only the VCC pin is acquired; when the smart card changes from the powered state to the activated state, only the CLK pin is set from low level to high level, so only the CLK pin is acquired; when the smart card changes from the activated state to the working state, only the DATA pin is set from low level to high level, so only the DATA pin is acquired; when the smart card changes from the working state to the powered-off state, all the pins except the VCC pin are set from high level to low level, so all the pins except the VCC pin are acquired; when the smart card changes from the working state to the reset state, only the RST pin is set from low level to high level, so only the RST pin is acquired; when the smart card changes from the reset state to the reset response state, only the DATA pin is set from high level to low level, so only the DATA pin is acquired. In the case of acquiring all the pins, no matter how the smart card changes, the VCC, CLK, DATA and RST pins are acquired.

[0059] Preferably, to save storage space, only the pins with changed level state are acquired during the acquisition.

[0060] In step S1012, when the storage times of the voltage of the at least one pin and the corresponding time information are greater than the preset times, the voltage of the at least one pin at the current time and the corresponding time information are overwritten in the earliest voltage of the at least one pin and the corresponding time information in the time information in the non-volatile file memory.

[0061] To save the storage space of the memory and keep the running efficiency of the electronic device terminal at the expected level, the preset times of storage can be set to ensure that the memory will not affect the running efficiency of the electronic device terminal after storing the voltage and time information.

[0062] In step S102, the voltage sequence of the smart card is obtained according to the acquired voltage of the at least one pin and the corresponding time information.

[0063] Optionally, after obtaining the voltage and the corresponding time information, the voltage can be sorted according to the different pins according to the time information, for example, the voltage and the time information of the CLK pin are extracted, and the voltage is sorted according to the chronological order of the time information to obtain the voltage sequence of the CLK pin.

[0064] Figure 2 A flowchart of a smart card voltage sequence detection method provided by the embodiment of the application is shown in the figure, which is based on Figure 1The method shown above can include the following steps:

[0065] In step S103, a voltage time sequence diagram is formed according to the voltage time sequence of the smart card and displayed on the display screen.

[0066] Optionally, the display screen can be a display screen integrated on the electronic device terminal or an external display screen.

[0067] Optionally, the pattern style of the voltage time sequence diagram can be set by those skilled in the art according to actual needs, and the embodiment is not limited. The forming process of the voltage time sequence diagram adopts an existing image forming algorithm, which is not described here.

[0068] Optionally, the execution condition of step S103 can be that the user triggers a display instruction on the electronic device terminal. In some embodiments, the display instruction can include a gesture touch operation of drawing a target pattern on the display screen of the electronic device terminal, or a click operation of clicking a target button displayed on the display screen of the electronic device terminal, or a pressing operation of pressing a target physical button of the electronic device terminal, or performing a specific gesture action in front of the camera of the electronic device terminal, or performing face recognition and blinking face actions in front of the camera of the electronic device terminal. Of course, the display instruction for triggering the formation of the voltage time sequence diagram according to the voltage time sequence of the smart card and displaying on the display screen can also be set according to actual needs.

[0069] Optionally, after the voltage time sequence diagram is displayed on the display screen, because the voltage time sequence diagram includes all the collected voltage time sequences, the user can select any point on the voltage time sequence diagram to calculate the time period between any two points, so as to determine whether the time period is a normal voltage time sequence condition under the running state.

[0070] The normal voltage time sequence condition is specified for each running state of the SIM card. When the detected voltage time sequence meets the condition, it is determined that the SIM card works normally under the running state. For example, the normal voltage time sequence of the related pins in the working state needs to meet the following conditions: a. The time period t a from the moment when CLK is set to high level to the moment when DATA pin is set to high level needs to be less than or equal to 200 / f, where f is the frequency of the clock signal; b. The working time period t b from the moment when CLK is set to high level to the moment before the smart card is in the reset state needs to be greater than or equal to 400 / f. The normal voltage time sequence of the related pins in the reset state needs to meet the following conditions: the time period t cbe greater than or equal to 400 / f and less than or equal to 40000 / f.

[0071] Optionally, after obtaining the voltage timing, the corresponding time information of t a , t b and t c is calculated to display t a , t b , t c and the voltage timing Figure 1 to the user for the first time to determine whether the smart card meets the specified voltage timing condition.

[0072] In the above smart card voltage timing detection method, when the running state of the smart card changes, the voltage of at least one pin of the smart card at the current time and the corresponding time information are collected and stored by the electronic device terminal, and the voltage timing is formed according to the voltage of at least one pin and the corresponding time information. Compared with the prior art, the application can collect the voltage of the related pins of the smart card when the running state changes during the use of the smart card, and store the collected voltage data in the memory for the technician to judge the hardware state of the smart card, improve the detection efficiency of the smart card, and shorten the detection period.

[0073] Figure 3 A voltage timing diagram provided by the embodiment of the application when the electronic device terminal changes from an unpowered state to a powered state is shown in the figure. The smart card includes a power pin (VCC), a clock pin (CLK), a reset pin (RST) and a data pin (DATA). When the electronic device terminal is in an unpowered state, each pin is at a low level; when the electronic device terminal changes from an unpowered state to a powered state, the VCC pin is set to a high level, and the other pins are still at a low level; when the electronic device terminal is in a powered state, the VCC pin is at a high level.

[0074] Figure 4 A voltage timing diagram provided by the embodiment of the application when the electronic device terminal changes from a powered state to an activated state is shown in the figure. The smart card includes a power pin (VCC), a clock pin (CLK), a reset pin (RST) and a data pin (DATA). When the electronic device terminal is in a powered state, the VCC pin is at a high level; when the electronic device terminal changes from a powered state to an activated state, the VCC pin is still at a high level, but the CLK pin is set from a low level to a high level; when the electronic device terminal is in an activated state, the VCC pin and the CLK pin are both at a high level.

[0075] Figure 5A voltage timing diagram when an electronic device terminal changes from an active state to a working state is provided in an embodiment of the present application, as shown in the figure. The smart card includes a power pin (VCC), a clock pin (CLK), a reset pin (RST), and a data pin (DATA). When the electronic device terminal is in the active state, the VCC pin and the CLK pin are high level; when the electronic device terminal changes from the active state to the working state, the VCC pin and the CLK pin are still high level, and the DATA pin is set from low level to high level; when the electronic device terminal is in the working state, the VCC pin, the CLK pin, and the DATA pin are all high level.

[0076] Figure 6 A voltage timing diagram when an electronic device terminal changes from a working state to a powered-off state is provided in an embodiment of the present application, as shown in the figure. The smart card includes a power pin (VCC), a clock pin (CLK), a reset pin (RST), and a data pin (DATA). When the electronic device terminal is in the working state, the VCC pin, the CLK pin, and the DATA pin are all high level; when the electronic device terminal changes from the working state to the powered-off state, the VCC pin is still high level, but the CLK pin and the DATA pin are set from high level to low level; when the electronic device terminal is in the powered-off state, the VCC pin is high level, and the CLK pin and the DATA pin are low level.

[0077] Figure 7 A voltage timing diagram when an electronic device terminal changes from a working state to a reset state is provided in an embodiment of the present application, as shown in the figure. The smart card includes a power pin (VCC), a clock pin (CLK), a reset pin (RST), and a data pin (DATA). When the electronic device terminal is in the working state, the VCC pin, the CLK pin, and the DATA pin are all high level; when the electronic device terminal changes from the working state to the reset state, the VCC pin, the CLK pin, and the DATA pin are still high level, and the RST pin is set from low level to high level; when the electronic device terminal is in the reset state, the VCC pin, the CLK pin, the DATA pin, and the RST pin are all high level.

[0078] Figure 8The voltage timing diagram provided in this application embodiment illustrates the transition of an electronic device terminal from a reset state to a reset response state. As shown in the figure, the smart card includes a power supply pin (VCC), a clock pin (CLK), a reset pin (RST), and a data pin (DATA). When the electronic device terminal is in the reset state, the VCC, CLK, DATA, and RST pins are all at a high level. When the electronic device terminal transitions from the reset state to the reset response state, the VCC, CLK, and RST pins remain at a high level, while the DATA pin is set from a high level to a low level. When the electronic device terminal is in the reset response state, the VCC, CLK, and RST pins are all at a high level, while the DATA pin is at a low level.

[0079] Figure 9 The figure shows a schematic diagram of the voltage timing diagram of an electronic device terminal provided in an embodiment of this application. The voltage timing diagram includes the voltage timings in the following states: no power-on, power-on, active, working, reset, and reset response states. Furthermore, the normal voltage timing of the relevant pins must meet the following conditions: a) The time period t from the moment CLK is set to high to the moment DATA is set to high. a a) The clock signal frequency must be less than or equal to 200 / f; b) The working time period t from the moment CLK is set to high until the smart card is in the reset state. b It must be greater than or equal to 400 / f; c. The time period t from the moment the CLK pin is set to a high level to the moment the SIMDATA pin is set to a low level. c It must be greater than or equal to 400 / f and less than or equal to 40000 / f.

[0080] Figure 10 A flowchart illustrating a smart card voltage timing detection method provided in this application embodiment is shown in the figure. The electronic device terminal includes a baseband chip, an application chip, and a SIM card. The baseband chip is connected to both the application chip and the smart card. The method may include:

[0081] Step S1001: The user triggers the startup command, generating the startup command.

[0082] Step S1002: Send a startup command to the application chip.

[0083] In step S1003, the application chip responds to the startup command and performs a startup operation.

[0084] Step S1004: The application chip sends a baseband chip startup command.

[0085] In step S1005, the baseband chip receives the baseband chip startup command and performs the startup operation.

[0086] Step S1006, the baseband chip starts a listening process to listen to a running command from the application chip for performing a corresponding operation on the SIM card.

[0087] Step S1007, the application chip sends a SIM power-on instruction to the baseband chip.

[0088] Step S1008, the baseband chip sends the SIM power-on instruction to the SIM card.

[0089] Step S1009, the SIM card performs a power-on operation.

[0090] Step S1010, the baseband chip collects all pin voltages of the SIM card and corresponding time information when the SIM card performs the power-on operation.

[0091] Step S1011, the baseband chip stores all pin voltages of the SIM card and corresponding time information.

[0092] Step S1012, the user performs a plug-in operation on the SIM card.

[0093] Step S1013, the baseband chip detects that the level of the plug-in detection pin (detect) of the SIM card changes.

[0094] Step S1014, the baseband chip collects all pin voltages of the SIM card and corresponding time information.

[0095] Step S1015, the baseband chip stores all pin voltages of the SIM card and corresponding time information.

[0096] Step S1016, the baseband chip forms a voltage time sequence.

[0097] Step S1017, the user triggers a first display instruction.

[0098] Step S1018, the first display instruction is sent to the application chip.

[0099] Step S1019, after receiving the first display instruction, the application chip sends a second display instruction to the baseband chip.

[0100] Step S1020, after receiving the second display instruction, the baseband chip reads the voltage time sequence in the memory.

[0101] Step S1021, the baseband chip returns the voltage time sequence to the application chip.

[0102] Step S1022, after receiving the voltage time sequence, the application chip forms a corresponding voltage time sequence diagram,

[0103] Step S1023, the application chip sends a voltage timing diagram to the user.

[0104] Step S1024, the voltage timing diagram is displayed at the user.

[0105] Figure 11 A structure schematic diagram of an electronic device terminal provided by an embodiment of the present application is shown in the figure. The electronic device terminal 110 can include:

[0106] The voltage timing acquisition module 1101 is configured to acquire and store the voltage of at least one pin of the smart card at the current time and the corresponding time information when the running state of the smart card changes.

[0107] The voltage timing determination module 1102 is configured to obtain the voltage timing of the smart card according to the acquired voltage of at least one pin and the corresponding time information.

[0108] In one embodiment, the voltage timing acquisition module 1101 can include:

[0109] The power-on and power-off operation execution submodule is configured to execute a power-on operation or a power-off operation of the electronic device terminal on the smart card, wherein the power-on operation is an operation corresponding to a power-on instruction of the smart card executed by the electronic device terminal in a starting state, and the power-off operation is an operation corresponding to a power-off instruction of the smart card executed by the electronic device terminal in a closing state.

[0110] Or,

[0111] The installation state detection submodule is configured to detect a change in the installation state of the smart card when the electronic device terminal detects the change.

[0112] In one embodiment, the installation state detection submodule can include:

[0113] The voltage difference judgment unit is configured to detect a difference between a first voltage at a previous time and a second voltage at a current time of the plug detection pin of the smart card, and determine that the installation state of the smart card changes when the difference is greater than a threshold value.

[0114] In one embodiment, the voltage timing acquisition module 1101 can include:

[0115] The storage submodule is configured to acquire and store the voltage of at least one pin at the current time and the corresponding time information in the non-volatile file memory.

[0116] The cover submodule is configured to cover the voltage of at least one pin at the current time and the corresponding time information in the non-volatile file memory when the storage times of the voltage of at least one pin and the corresponding time information are greater than a preset number of times.

[0117] Figure 12 A structural schematic diagram of an electronic device terminal provided in an embodiment of the present application is shown in the figure, which is based on Figure 11 The electronic device terminal 110 shown in the figure can further include:

[0118] The voltage timing diagram display module 1103 is configured to form a voltage timing diagram according to the voltage timing of the smart card and display the voltage timing diagram on the display screen.

[0119] As Figure 13 The present application also provides a structural schematic diagram of an electronic device terminal, which can include at least one processor and at least one memory in communication with the processor, wherein the memory stores program instructions executable by the processor, and the processor invoking the program instructions can execute the embodiments of the present application Figures 1-10 The smart card voltage timing detection method provided in the embodiment shown in the figure.

[0120] The electronic device terminal can be a smart phone, a tablet computer, a notebook computer or other smart electronic device, and the present embodiment does not limit the form of the electronic device terminal.

[0121] It can be understood that the structure shown in the embodiment of the present application does not constitute a specific limitation on the electronic device terminal 110. In other embodiments of the present application, the electronic device terminal 110 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software or a combination of software and hardware.

[0122] The processor 111 can include one or more processing units, for example: the processor 111 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices or integrated into one or more processors.

[0123] The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of fetching and executing instructions.

[0124] The processor 111 can also include memory that stores instructions and data used, generated, or created during execution of software programs or applications. In some embodiments, the memory is a cache memory. The cache memory can hold instructions and data that the processor 111 has recently accessed or is likely to access again. This data can be stored in the cache memory for faster access by the processor 111. The cache memory can be a fast-access memory that stores frequently accessed data or instructions. The processor 111 can access the cache memory faster than the main memory, which can result in faster access to data or instructions stored in the cache memory.

[0125] The processor 111 can execute instructions for various functions and data processing, such as implementing the present application Figures 1-11 The smart card voltage timing detection method provided by the embodiments.

[0126] The wireless communication function of the electronic device terminal 110 can be implemented by the antenna 1, the antenna 2, the smart card 150, the modem processor, and the baseband processor.

[0127] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device terminal 110 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.

[0128] The electronic device terminal 110 can implement the display function by the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 111 can include one or more GPUs that execute program instructions to generate or change display information.

[0129] The display screen 194 is configured to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like. In some embodiments, the electronic device terminal 110 can include one or N display screens 194, where N is a positive integer greater than 1.

[0130] The electronic device terminal 110 can implement the photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor.

[0131] The ISP is configured to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing to convert it into an image visible to the naked eye. The ISP can also optimize the algorithm for the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature, and other parameters of the shooting scene. In some embodiments, the ISP can be arranged in the camera 193.

[0132] The camera 193 is configured to capture still images or videos. An object generates an optical image through a lens and projects it onto a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into a standard RGB, YUV, or the like format image signal. In some embodiments, the electronic device terminal 110 can include one or N cameras 193, where N is a positive integer greater than 1.

[0133] The digital signal processor is used to process digital signals, in addition to being able to process digital image signals, it can also process other digital signals. For example, when the electronic device terminal 110 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.

[0134] The internal memory 121 can be used to store computer executable program codes, the executable program codes including instructions. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application required by a function (such as a sound playing function, an image playing function, etc.), etc. The data storage area can store data (such as audio data, a phone book, etc.) created during use of the electronic device terminal 110, etc. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), etc. The processor 111 executes various function applications and data processing of the electronic device terminal 110 by running instructions stored in the internal memory 121 and / or instructions stored in a memory disposed in the processor.

[0135] As shown in Figure 14 The electronic device terminal provided by the embodiment of the present application can include at least one processor, and at least one memory in communication connection with the processor, where the memory stores program instructions executable by the processor, and the processor calling the program instructions can execute the steps of the smart card voltage timing detection method provided by the embodiment of the present application. Figures 1-10 The embodiment shown in the specification provides a smart card voltage timing detection method.

[0136] The embodiment of the present application further provides a computer readable storage medium having computer instructions stored thereon, the instructions being executed by a processor to implement the steps of the smart card voltage timing detection method. The readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0137] The above describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve the desired result. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multi-task processing and parallel processing are possible or can be advantageous.

[0138] In the description of the embodiments of the application, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the specification. In the specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, the skilled person in the art can combine and combine the different embodiments or examples described in the specification and the features of the different embodiments or examples, without contradiction.

[0139] Any process or method descriptions or descriptions of the flow diagrams in the specification or elsewhere in this document can be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logic functions (or steps) in the process, and the preferred embodiments of the specification include additional implementations in which the order of the steps can be different, including substantially simultaneous or in the reverse order of the described steps, depending upon the functionality involved, as will be understood by those skilled in the art.

[0140] Depending on the context, the word "if" as used herein can be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting". Similarly, the phrase "if it is determined" or "if (a stated condition or event) is detected" can be interpreted to mean "upon determining" or "in response to determining" or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0141] It should be noted that the terminal involved in the embodiments of the present application can include, but is not limited to, a personal computer (PC), a personal digital assistant (PDA), a wireless handheld device, a tablet computer, a mobile phone, an MP3 player, an MP4 player, etc.

[0142] In several embodiments provided in the present specification, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the division of the above-described device embodiments is merely a logical function division, and there can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, or the among different units, can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.

[0143] In addition, each function unit in the various embodiments of the present specification can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in the form of hardware, or in the form of a hardware plus software function unit.

[0144] The integrated unit implemented in the form of a software function unit can be stored in a computer readable storage medium. The software function unit stored in the storage medium includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute part of the steps of the method described in the various embodiments of the present specification. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0145] The above only provides the preferred embodiments of the present specification, and is not intended to limit the present specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the protection scope of the present specification.

Claims

1. A method of smart card voltage timing detection, the method comprising: The application is applied to an electronic device terminal with a smart card, and the electronic device terminal comprises a display screen, and the method comprises the following steps: When the running state of the smart card changes, the voltage of at least one pin of the smart card at the current time and the corresponding time information are collected and stored; The voltage time sequence of the smart card is obtained according to the collected voltage of at least one pin and the corresponding time information; A voltage time sequence diagram is formed according to the voltage time sequence of the smart card and is displayed on the display screen; wherein the normal voltage time sequence condition is defined for each running state of the smart card, and when the voltage time sequence of the smart card meets the voltage time sequence condition, it is determined that the smart card works normally in the corresponding running state; The running state of the smart card changes, which comprises the following steps: When the electronic device terminal performs a power-on operation or a power-off operation on the smart card, wherein the power-on operation is the operation corresponding to the power-on instruction of the smart card performed by the electronic device terminal in the starting state, and the power-off operation is the operation corresponding to the power-off instruction of the smart card performed by the electronic device terminal in the closing state; Or, When the electronic device terminal detects that the installation state of the smart card changes; When the electronic device terminal detects that the installation state of the smart card changes, it comprises the following steps: When the difference between the first voltage at the last time and the second voltage at the current time of the plug-in detection pin of the smart card is greater than a threshold value.

2. The method of claim 1, wherein, The power-on or power-off instruction is obtained when the electronic device terminal starts the listening process after starting.

3. The method of claim 1, wherein, The collection and storage of the voltage of at least one pin of the smart card at the current time and the corresponding time information comprises the following steps: The voltage of at least one pin of the smart card at the current time and the corresponding time information are collected and stored in the non-volatile file memory; When the storage times of the voltage of at least one pin of the smart card and the corresponding time information are greater than a preset number of times, the voltage of at least one pin of the smart card at the current time and the corresponding time information are overwritten in the time information in the non-volatile file memory.

4. The method according to any one of claims 1 to 3, characterized in that, The at least one pin of the smart card comprises one or a combination of the following: power pin, clock pin, reset pin and data pin.

5. An electronic device terminal, characterized by comprising: The electronic device terminal is installed with a smart card, and the electronic device terminal comprises: A voltage time sequence collection module is used to collect and store the voltage of at least one pin of the smart card at the current time and the corresponding time information when the running state of the smart card changes; A voltage time sequence determination module is used to obtain the voltage time sequence of the smart card according to the collected voltage of at least one pin and the corresponding time information; The voltage timing diagram display module is configured to form a voltage timing diagram according to the voltage timing of the smart card and display the voltage timing diagram on a display screen of the electronic device terminal; wherein each operating state of the smart card is provided with a normal voltage timing condition, and when the voltage timing of the smart card is detected to satisfy the voltage timing condition, it is determined that the smart card works normally in the corresponding operating state; The voltage timing acquisition module includes: The power-on and power-off operation execution submodule is configured to execute a power-on operation or a power-off operation on the smart card when the electronic device terminal executes the power-on operation or the power-off operation, wherein the power-on operation is an operation corresponding to a power-on instruction of the smart card executed by the electronic device terminal in a starting state, and the power-off operation is an operation corresponding to a power-off instruction of the smart card executed by the electronic device terminal in a closing state; Or, The installation state detection submodule is configured to detect a change in the installation state of the smart card when the electronic device terminal detects the change in the installation state of the smart card. The installation state detection submodule includes a voltage difference judgment unit configured to detect a difference between a first voltage at a previous time and a second voltage at a current time of a plug detection pin of the smart card, and determine that the installation state of the smart card has changed when the difference is greater than a threshold value.

6. An electronic device terminal, characterized by comprising: The electronic device terminal includes: A processor; A memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method of any one of claims 1-4.

7. A computer-readable storage medium having stored thereon instructions, the computer-readable storage medium comprising: When the instructions in the computer-readable storage medium are executed by the processor of the electronic device terminal, the electronic device terminal can execute the method of any one of claims 1-4.

Citation Information

Patent Citations

  • An SIM card disconnection detection method and system

    CN105376758A