A sim card communication abnormality self-recovery system and method

By simulating SIM card insertion and removal operations through a controller and a communication anomaly self-recovery circuit, and using a switching transistor to achieve SIM card self-recovery, the problem of poor SIM card contact in vibration environments is solved, improving user experience and reducing maintenance work.

CN116132976BActive Publication Date: 2025-11-25NEWCAPEC ELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310080618.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-13
Publication Date
2025-11-25
Estimated Expiration
2043-01-13

AI Technical Summary

Technical Problem

In a vibrating environment, the contacts of the SIM card slot may experience temporary poor contact, leading to communication abnormalities. This requires manual reinsertion of the SIM card to restore normal operation, causing inconvenience to the user.

Method used

Design a SIM card communication failure self-recovery system. Simulate SIM card insertion and removal operations through a controller and a communication failure self-recovery circuit. Utilize a switching transistor to detect pin level changes and automatically restore SIM card communication.

Benefits of technology

It enables SIM cards to self-recover in the event of communication failure, reducing manual insertion and removal operations, improving user experience, and reducing maintenance workload.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116132976B_ABST
    Figure CN116132976B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of communication, and particularly relates to a SIM card communication abnormality self-recovery system and method, which comprises a controller and a communication abnormality self-recovery circuit. The application can make the equipment with a SIM card realize wireless communication, and the system re-powers, resets and communicates the SIM card when the SIM card communication is abnormal, so that the self-recovery of the SIM card communication abnormality is realized. The application can solve the problem of the SIM card abnormality in many vibration and long-time use scenes, improve user experience, reduce many disassembly and plugging maintenance work, and does not affect the use of users. The application does not use the DET pin to detect the SIM card insertion condition, and can also reduce the system misjudgment of the SIM card pull-out caused by vibration, poor contact and the like.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of communication, and particularly relates to a SIM card communication abnormality self-recovery system and method. BACKGROUND

[0002] Currently, a terminal needs to access a wireless network usually uses an Internet of Things subscriber identity module (SIM card) provided by an operator. The SIM card accesses the terminal as a power pin (VDD), a ground pin (GND), a clock pin (CLK), a data pin (IO), and a reset pin (RST). In order to detect the insertion of the SIM card, a central processor such as a chip or a module provides a dedicated DET detection pin, which is high when pulled out and low when inserted. The DET pin is not a pin signal of the SIM card, and is generally pulled up to high level. It only exists on the connector seat and belongs to a mechanical pin, which realizes the state switching of card insertion and card removal through a mechanical structure. When the central processor detects that the DET pin is pulled low, it will execute a series of operations such as SIM card protocol reading, power-on, reset, and communication of SIM card content. When the DET pin is pulled high, the power supply of the SIM card is disconnected.

[0003] Nowadays, various intelligent terminals are applied in various industries and various working conditions. When the equipment is in a vibration environment, the contacts of the SIM card seat may be shorted in a long-time vibration environment, causing the problem of SIM card loss. Sometimes, the SIM card cannot be restored even if it is reset by software (by configuring the reset pin to flip). For users who do not often operate the equipment or are not in the professional field, it may cause a bad user experience. Moreover, it needs to be manually operated to reinsert and remove the card to restore the function, which brings unnecessary trouble to the user in the scene of queuing for consumption. SUMMARY

[0004] The present application aims to provide a communication abnormality self-recovery system and method to solve the problem of manual reinsertion and removal to cause operation trouble when the contacts of the SIM card seat are shorted.

[0005] To solve the above technical problems, the application provides a SIM card communication abnormality self-recovery system, which comprises a controller and a communication abnormality self-recovery circuit, the output end of the controller is connected to the control end of the communication abnormality self-recovery circuit, and is used for changing the control pin level output by the output end of the controller from one state to another state to simulate the communication card plugging operation when the communication abnormality of the SIM card is detected; the detection end of the controller is connected to the detection pin, and is used for judging whether the SIM card realizes self-recovery according to the level change of the detection pin; and the output end of the communication abnormality self-recovery circuit is connected to the detection pin, and is used for changing the level of the output end of the communication abnormality self-recovery circuit from one state to another state according to the control pin level change of the output end of the controller, so that the level of the detection pin changes, and the self-recovery operation of the SIM card is realized.

[0006] The application has the beneficial effects that when the communication of the SIM card is abnormal, the controller cooperates with the communication abnormality self-recovery circuit to simulate the communication card plugging operation, the level of the detection pin changes, specifically, the system changes the control pin level output by the output end of the controller from one state to another state, changes the level of the output end of the communication abnormality self-recovery circuit from one state to another state according to the control pin level change of the output end of the controller, so that the level of the detection pin changes, and the self-recovery operation of the SIM card is realized, so that the self-recovery of the SIM card can be realized without manually plugging the SIM card again, the problem of the abnormality of the SIM card in many vibration and long-time use scenes can be solved, the user experience is improved, many disassembly and plugging maintenance works are reduced, and the use of the user is not affected.

[0007] Further, the communication abnormality self-recovery circuit comprises a switching tube, the switching tube is connected in series between the output end of the communication abnormality self-recovery circuit and the ground, the control end of the switching tube is connected to the control end of the communication abnormality self-recovery circuit, the control end of the switching tube is further connected to the power supply through a first resistor, and the control end of the switching tube is further grounded through a second resistor.

[0008] The application has the beneficial effects that the switching tube, which is the main device of the communication abnormality self-recovery circuit, is used to change the level of the output end of the communication abnormality self-recovery circuit according to the control pin level change of the output end of the controller, the circuit structure is simple, easy to realize, and has high reliability, many disassembly and plugging maintenance works are reduced, and the use of the user is not affected.

[0009] Further, the controller is further used for reporting the communication abnormality information when it is judged that the SIM card does not realize self-recovery.

[0010] The application has the beneficial effects that the communication abnormality information is reported, so that the user can find and handle the problem in time.

[0011] To solve the above technical problems, the application provides a SIM card communication abnormality self-recovery method, if the SIM card communication abnormality is detected, the control pin level output by the controller output end is changed from one state to another state to simulate the communication card plug-in operation; and then the communication abnormality self-recovery circuit connected with the controller output end changes the level of the output end of the communication abnormality self-recovery circuit according to the control pin level change of the controller output end, so that the level of the detection pin connected with the output end of the communication abnormality self-recovery circuit is changed, and the self-recovery operation of the SIM card is realized.

[0012] The application has the beneficial effects that: when the SIM card communication is abnormal, the controller cooperates with the communication abnormality self-recovery circuit to simulate the communication card plug-in operation, the level of the detection pin is changed, specifically, the system changes the control pin level output by the controller output end from one state to another state, changes the level of the output end of the communication abnormality self-recovery circuit according to the control pin level change of the controller output end, so that the level of the detection pin is changed, the self-recovery operation of the SIM card is realized, the self-recovery of the SIM card is realized without manual plug-in operation, the problem of the SIM card abnormality in many vibration and long-time use scenes is solved, the user experience is improved, the disassembly and plug-in maintenance work is reduced, and the use of the user is not affected.

[0013] Further, the communication abnormality self-recovery circuit includes a switch tube, the switch tube is connected in series between the output end of the communication abnormality self-recovery circuit and the ground, the control end of the switch tube is connected with the control end of the communication abnormality self-recovery circuit, the control end of the switch tube is also connected with the power supply through the first resistor, and the control end of the switch tube is also grounded through the second resistor; if the SIM card communication abnormality is detected, the control pin level output by the controller output end is first set to low level and then set to high level to simulate the communication card plug-in operation.

[0014] The application has the beneficial effects that: the communication abnormality self-recovery circuit realizes that the level of the output end of the communication abnormality self-recovery circuit is changed according to the control pin level change of the controller output end through the main device, the switch tube, the circuit structure is simple, easy to realize, and has high reliability, the disassembly and plug-in maintenance work is reduced, and the use of the user is not affected.

[0015] Further, when it is determined that the SIM card is not self-recovered, the communication abnormality information is reported.

[0016] The application has the beneficial effects that: the communication abnormality information is reported, so that the user can find and handle the problem in time. BRIEF DESCRIPTION OF DRAWINGS

[0017] Figure 1DET control circuit diagram of the present application;

[0018] Figure 2 Control logic diagram of the present application. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solutions and advantages of the present application more clear, the present application is further described in detail below in combination with the drawings and examples.

[0020] SIM card communication abnormality self-recovery system embodiment:

[0021] The communication abnormality self-recovery system of the present embodiment comprises a controller (the present embodiment is a central processor) and a communication abnormality self-recovery circuit. The central processor is connected to the control end of the communication abnormality self-recovery circuit, and is used to change the control pin level SIM-DET-CTL output by the output end of the central processor from one state to another state to simulate the plug-in operation of a communication card (the present embodiment is a SIM card) in the case of detecting a communication abnormality. The detection end of the central processor is connected to the detection pin, and is used to determine whether the SIM card has realized self-recovery according to the level change of the detection pin. The output end of the communication abnormality self-recovery circuit is connected to the detection pin, and changes the level of the output end of the communication abnormality self-recovery circuit from one state to another state according to the control pin level change of the output end of the controller, so as to change the level of the detection pin and realize the self-recovery operation of the SIM card.

[0022] Among them, the SIM-DET detection pin is not the pin signal of the SIM card, and is generally built-in pull-up to high level. It only exists on the connector seat and belongs to mechanical pin, and the state switching of plug-in and pull-out is realized through mechanical structure.

[0023] The specific communication abnormality self-recovery circuit is shown in Figure 1 The communication abnormality self-recovery circuit comprises a switch tube Q1 (the present embodiment is a MOS tube, and other switch tubes in the prior art such as a triode can also be used), the control end (the gate of the MOS tube) of the switch tube Q1 is connected to the central processor (the present embodiment is a central processor), the input end (the source of the MOS tube) of the switch tube Q1 is grounded, the output end (the drain of the MOS tube) of the switch tube Q1 is connected to the communication equipment, the control end of the switch tube Q1 is further connected to the power supply through the first resistor R1, and the control end of the switch tube Q1 is further grounded through the second resistor R2.

[0024] The SIM card slot of the communication equipment is arranged in the equipment, and the SIM card is generally not taken out after being used by professionals through debugging and configuration. The central processor controls the SIM-DET pin to be low through the communication abnormality self-recovery circuit, and the processor considers that the SIM card is inserted, and performs power-on, reset, communication and other operations on the card.

[0025] When the SIM card is suddenly abnormal (including communication abnormality, contact abnormality) during long-term use of the device, the central processor fails to communicate with the SIM card, the central processor pulls up and then pulls down the SIM-DET pin, simulates card insertion and removal, and the central processor powers on, resets, and communicates with the SIM card again to make the SIM card return to normal communication. The communication abnormality self-recovery steps are as follows:

[0026] 1) The device is inserted with the SIM card and powered on, the central processor sets the SIM-DET-CTL pin to high level, Q1 is turned on, the SIM-DET pin is pulled low, the device powers on, resets, and communicates with the SIM card, and the device starts normal work and communication.

[0027] 2) If abnormality occurs during running, such as experiencing harsh environment such as vibration, leading to poor contact of the SIM card, communication abnormality between the central processor and the SIM card, and loss of SIM card data, the central processor sets the SIM-DET-CTL pin to low level and then to high level to simulate SIM card insertion and removal, Q1 is turned off and then turned on, the SIM-DET pin is set to high level and then to low level, and the central processor powers on, resets, and communicates with the SIM card again to try to solve the SIM card communication abnormality problem caused by vibration and poor contact.

[0028] The present application can make the device with the SIM card realize wireless communication, and the system re-powers on, resets, and communicates with the SIM card when the SIM card communication is abnormal, to realize self-recovery of the SIM card communication abnormality. The present application can solve the SIM card abnormality problem in many vibration and long-time use scenarios, improve user experience, reduce many disassembly and insertion and removal maintenance work, and does not affect the user use, does not use the SIM-DET pin to detect the SIM card insertion, and can also reduce the system misjudgment of the SIM card removal caused by vibration and poor contact.

[0029] The SIM card communication abnormality self-recovery method embodiment is as follows:

[0030] The recovery method of the method embodiment is aimed at the communication abnormality self-recovery system, which includes a communication abnormality self-recovery circuit, and the specific circuit is as shown in Figure 1 The system has been described in detail in the communication abnormality self-recovery system embodiment, which will not be repeated here. Based on the system, the realized recovery method is as shown in Figure 2

[0031] 1) The device is inserted with the SIM card and powered on, the central processor sets the SIM-DET-CTL pin to high level, Q1 is turned on, the SIM-DET pin is pulled low, the device powers on, resets, and communicates with the SIM card, and the device starts normal work and communication. ​

[0032] 2) If abnormality occurs during operation, such as experiencing harsh environment like vibration, resulting in poor contact of SIM card pins, abnormal communication between central processor and SIM card, and loss of SIM card data, etc., the central processor sets the SIM-DET-CTL pin to low level and then to high level, to simulate SIM card insertion and removal operation, so that Q1 is first turned off and then turned on, and the SIM-DET pin is set to high level and then to low level, so that the central processor performs power-on, reset, and communication operation on the SIM card in sequence, to try to solve the SIM card communication abnormality problem caused by vibration, poor contact, etc.

[0033] The above gives a specific embodiment, but the present application is not limited to the described embodiment. The basic idea of the present application is the above basic scheme, and according to the teachings of the present application, a person of ordinary skill in the art can design various transformed models, formulas, and parameters without creative labor. Changes, modifications, replacements, and variations of the embodiments without departing from the principles and spirits of the present application still fall within the protection scope of the present application.

Claims

1. A SIM card communication anomaly self-recovery system, characterized in that, It includes a controller and a communication anomaly self-recovery circuit. The output of the controller is connected to the control terminal of the communication anomaly self-recovery circuit, the output of the communication anomaly self-recovery circuit is connected to the detection pin, and the detection pin is connected to the detection terminal of the controller. The controller is used to change the level of the control pin output from one state to another when a SIM card communication abnormality is detected. This causes the level of the communication abnormality self-recovery circuit output to be pulled high and then pulled low, thereby causing the level of the detection pin to be pulled high and then pulled low. This simulates the operation of removing and inserting a SIM card. Then, after the level of the detection pin is pulled high and then pulled low, the SIM card is sequentially powered on, reset, and communicated, thus realizing the self-recovery operation of the SIM card.

2. The SIM card communication anomaly self-recovery system according to claim 1, characterized in that, The control pin level at the controller output is set low and then high; correspondingly, the communication fault self-recovery circuit includes a switching transistor, which is connected in series between the output of the communication fault self-recovery circuit and ground. The control terminal of the switching transistor is connected to the control terminal of the communication fault self-recovery circuit. The control terminal of the switching transistor is also connected to the power supply through a first resistor and grounded through a second resistor.

3. The SIM card communication anomaly self-recovery system according to claim 1 or 2, characterized in that, The controller is also used to report communication anomaly information when it is determined that the SIM card has not achieved self-recovery.

4. A method for self-recovery from SIM card communication anomalies, characterized in that, If a SIM card communication anomaly is detected, the control pin level output by the controller changes from one state to another to simulate the removal and reinsertion of the communication card. Then, the communication anomaly self-recovery circuit connected to the controller output, based on the change in the control pin level, pulls the output level of the communication anomaly self-recovery circuit high and then low. This causes the level of the detection pin connected to the output of the communication anomaly self-recovery circuit to also be pulled high and then low, simulating the removal and reinsertion of the SIM card. The controller then sequentially powers on, resets, and performs communication operations on the SIM card to achieve the SIM card's self-recovery operation.

5. The SIM card communication anomaly self-recovery method according to claim 4, characterized in that, The communication anomaly self-recovery circuit includes a switching transistor, which is connected in series between the output terminal of the communication anomaly self-recovery circuit and ground. The control terminal of the switching transistor is connected to the control terminal of the communication anomaly self-recovery circuit. The control terminal of the switching transistor is also connected to the power supply through a first resistor and grounded through a second resistor. Accordingly, if a SIM card communication anomaly is detected, the control pin level output by the controller is first set to a low level and then set to a high level to simulate the operation of removing and reinserting the communication card.

6. The SIM card communication anomaly self-recovery method according to claim 4 or 5, characterized in that, If it is determined that the SIM card has failed to self-recover, a communication anomaly information will be reported.

Citation Information

Patent Citations

  • Subscriber identity module (SIM) card detection control device of mobile terminal

    CN103108081A