CN113676970A - SIM card switching circuit, SIM card switching method and electronic equipment - Google Patents

SIM card switching circuit, SIM card switching method and electronic equipment Download PDF

Info

Publication number
CN113676970A
CN113676970A CN202110951770.4A CN202110951770A CN113676970A CN 113676970 A CN113676970 A CN 113676970A CN 202110951770 A CN202110951770 A CN 202110951770A CN 113676970 A CN113676970 A CN 113676970A
Authority
CN
China
Prior art keywords
sim card
switch
sim
control chip
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202110951770.4A
Other languages
Chinese (zh)
Inventor
许熠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Duda Communications Co ltd
Original Assignee
Shenzhen Duda Communications Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Duda Communications Co ltd filed Critical Shenzhen Duda Communications Co ltd
Priority to CN202110951770.4A priority Critical patent/CN113676970A/en
Publication of CN113676970A publication Critical patent/CN113676970A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Abstract

The invention discloses an SIM card switching circuit, an SIM card switching method and electronic equipment, wherein the SIM card switching circuit comprises a control chip, at least one SIM patch card, at least one SIM card holder, at least one first switch and at least one second switch; each first change-over switch is arranged in one-to-one correspondence with each SIM patch card, and each second change-over switch is arranged in one-to-one correspondence with each SIM card holder; each SIM patch card is connected with each SIM card holder in parallel and then connected to the control chip; the control end of each first switch is respectively connected with the control chip, and the grounding end of each SIM patch card is grounded after passing through the corresponding first switch; the control end of each second switch is connected with the control chip, and the grounding end of each SIM card holder is grounded after passing through the corresponding second switch. The SIM card switching circuit disclosed by the invention can solve the problem of poor use flexibility in the existing carry-on WIFI for realizing the switching of the SIM card by adopting an SIM card analog switch.

Description

SIM card switching circuit, SIM card switching method and electronic equipment
Technical Field
The invention belongs to the technical field of electronics, and particularly relates to an SIM card switching circuit, an SIM card switching method and electronic equipment.
Background
With the rapid development of mobile internet of things, the relationship between human beings and networks has become increasingly unsegmentable. People can carry out shopping, chatting, entertainment and other activities through mobile phone networking, and the mobile internet provides unprecedented convenience for people. 4G wireless communication provides people with two convenient ways of surfing the internet at high speed at home and outdoors. However, the traffic cost of 4G is generally high at present, and the traffic occupied by pictures and videos on the network is generally large at present, so people have a great demand for low-price traffic outdoors. Therefore, a lot of merchants can directly bind various traffic packages on 4G WIFI, and manage traffic and cost through built-in SIM cards on the 4G WIFI. However, sometimes a user needs to use his or her own SIM card, which requires adding a SIM card switching circuit in the circuit, and when the user selects his or her own SIM card, the SIM card switching circuit can disconnect the internal built-in patch SIM card, so that the user's SIM card is connected to the circuit to ensure normal operation.
Currently, most SIM card switches in the market use an SIM card analog switch, which connects CLK/DATA/RST/VCC four signal pins of two SIM cards (one is a built-in patch SIM card and the other is a subscriber SIM card) and switches to a control chip in an alternative manner, so as to complete selection of the SIM card.
However, most of the SIM card analog switches can only support the switching of two SIM cards (one is a built-in patch SIM card, and the other is a user SIM card), so the flexibility of use is poor, and the diversified use requirements of the user cannot be met.
Disclosure of Invention
The invention mainly aims to provide an SIM card switching circuit, an SIM card switching method and electronic equipment, and aims to solve the technical problem of poor use flexibility in the existing carry-on WIFI switching of SIM cards by adopting an SIM card simulation switch.
In order to achieve the above object, the present invention provides a SIM card switching circuit, which includes a control chip, at least one SIM patch card, at least one SIM card socket for receiving a user SIM card, at least one first switch and at least one second switch;
each first switch corresponds to each SIM patch card one by one, and each second switch corresponds to each SIM card holder one by one;
each SIM patch card and each SIM card holder are connected in parallel and then connected to the control chip;
the control end of each first switch is connected with the control chip, and the grounding end of each SIM patch card is grounded after passing through the corresponding first switch;
the control end of each second switch is connected with the control chip, and the grounding end of each SIM card holder is grounded after passing through the corresponding second switch; wherein the content of the first and second substances,
the first switch is used for switching on or switching off a communication loop between the control chip and the SIM patch card according to a control signal output by the control chip;
and the second change-over switch is used for switching on or switching off a communication loop between the control chip and the SIM card holder according to the control signal output by the control chip.
Further, the control chip has a signal interface terminal, a plurality of first control terminals and a plurality of second control terminals, wherein,
the signal end of each SIM patch card and the signal end of each SIM card seat are connected to the signal interface end of the control chip;
the control end of each first change-over switch is correspondingly connected with each first control end of the control chip one by one;
and the control end of each second change-over switch is connected with each second control end of the control chip in a one-to-one correspondence manner.
Furthermore, each first switch includes a first switch element, a control end of the first switch element is connected to the control chip, a first end of the first switch element is connected to a ground end of the SIM card, and a second end of the first switch element is grounded.
Further, the first switching element includes a first MOS transistor, a gate of the first MOS transistor serves as a control terminal of the first switching element, a drain of the first MOS transistor serves as a first terminal of the first switching element, and a source of the first MOS transistor serves as a second terminal of the first switching element.
Furthermore, each of the second switches includes a second switch element, a control end of the second switch element is connected to the control chip, a first end of the second switch element is connected to a ground end of the SIM card socket, and a second end of the second switch element is grounded.
Further, the second switching element includes a second MOS transistor, a gate of the second MOS transistor is used as a control terminal of the second switching element, a drain of the second MOS transistor is used as a first terminal of the second switching element, and a source of the second MOS transistor is used as a second terminal of the second switching element.
In order to achieve the above object, the present invention further provides an electronic device, which includes the SIM card switching circuit.
In order to achieve the above object, the present invention further provides a SIM card switching method, which is applied in the electronic device, and the method includes:
detecting whether the electronic equipment contains the user SIM card;
if the electronic equipment contains one SIM card of the user, controlling the corresponding second change-over switch to be conducted so as to switch on a communication loop between the control chip and the SIM card holder containing the SIM card of the user;
if the electronic equipment contains a plurality of user SIM cards, the second change-over switch with the highest priority is controlled to be conducted according to a preset priority strategy so as to connect a communication loop between the control chip and the SIM card holder which contains the user SIM cards and has the highest priority.
Further, the controlling the second switch with the highest priority to be turned on according to a preset priority policy includes:
receiving an SIM card selection instruction input by a user, and selecting the SIM card seat with the highest priority from a plurality of SIM card seats containing the user SIM card according to the SIM card selection instruction;
and controlling the second change-over switch corresponding to the SIM card holder with the highest priority to be conducted.
In order to achieve the above object, the present invention further provides a SIM card switching method, which is applied to the SIM card switching circuit or the electronic device, and the method includes:
carrying out SIM card detection on each SIM card seat one by one according to a preset high-to-low priority detection sequence;
when detecting that one of the SIM card holders contains the user SIM card, stopping the SIM card detection, and controlling the corresponding second switch to keep a conducting state so as to connect a communication loop between the control chip and the currently detected SIM card holder containing the user SIM card.
Compared with the prior art, the invention has the beneficial effects that:
the SIM card switching circuit provided by the invention has the advantages that each SIM patch card and each SIM card holder are connected to the control chip in a parallel mode, meanwhile, each SIM patch card and each SIM card holder are respectively provided with a switch, a communication loop between the control chip and the SIM patch card is switched on or off by utilizing the on-off of the first switch, and a communication loop between the control chip and the SIM card holder is switched on or off by utilizing the on-off of the second switch, so that the corresponding SIM patch card can be selected to realize communication, and a user SIM card in the corresponding SIM card holder is disconnected to fail by controlling the on-off of the corresponding first switch and the off-off of the corresponding second switch by the control chip; on the contrary, the control chip controls the corresponding first switch to be switched off and the corresponding second switch to be switched on, so that the corresponding SIM patch card is switched off and fails, and the user SIM card in the corresponding SIM card seat is selected to realize communication. Therefore, the free switching between more than two paths of SIM cards is realized through one control chip, the use flexibility is improved, the SIM card switching logic of the control chip is simple, and the SIM card switching logic is not complicated along with the increase of the number of the support paths of the SIM cards, so that the risk of misjudgment can be greatly reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a SIM card switching circuit according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a SIM card switching circuit according to another embodiment of the present invention;
fig. 3 is a schematic diagram of a circuit connection between the first switch and the control chip and between the first switch and the SIM card according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of the circuit connection between the second switch and the control chip and between the second switch and the SIM card holder according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a SIM card switching method according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating a SIM card switching method according to another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 or fig. 2, an embodiment of the present invention provides a SIM card switching circuit, where the SIM card switching circuit includes:
the SIM card comprises a control chip 1, at least one SIM patch card 2, at least one SIM card holder 3 for accommodating a user SIM card, at least one first change-over switch 4 and at least one second change-over switch 5;
each first switch 4 is arranged corresponding to each SIM patch card 2 one by one, and each second switch 5 is arranged corresponding to each SIM card holder 3 one by one;
each SIM patch card 2 and each SIM card holder 3 are connected in parallel and then connected to the control chip 1; specifically, as shown in fig. 1 or fig. 2, each SIM patch card 2 and each SIM card holder 3 share four signal interface terminals of the control chip 1, namely, a RESET terminal (card RESET port), a CLK terminal (card clock port), a DATA terminal (card DATA port), and a VCC terminal (card power port);
the control end of each first switch 4 is respectively connected with the control chip 1, and the grounding end of each SIM patch card 2 is grounded after passing through the corresponding first switch 4;
the control end of each second switch 5 is connected with the control chip 1, and the grounding end of each SIM card holder 3 is grounded after passing through the corresponding second switch 5; wherein the content of the first and second substances,
the first switch 4 is used for switching on or switching off a communication loop between the control chip 1 and the SIM patch card 2 according to a control signal output by the control chip 1;
and the second change-over switch 5 is used for switching on or switching off a communication loop between the control chip 1 and the SIM card holder 3 according to the control signal output by the control chip 1.
In this embodiment, in specific implementation, the model of the control chip 1 may be selected as 1802S, and of course, other models of the control chip 1 may be selected as long as the use requirement can be met, which is not specifically limited in this embodiment.
In this embodiment, it should be noted that the SIM card 2 is used in combination with a SIM card in a form of a SIM card patch, which does not change the original function of the SIM card, but provides a low-cost medium for accessing a wireless mobile terminal for an operating organization outside the communication industry, the SIM card 2 may be used to manage a network and a package of a user, the number of the SIM card 2 may be determined according to the actual use situation, generally, one SIM card 2 corresponds to one operator, and therefore, when there is a need for using multiple operators, multiple SIM cards 2 may be configured when leaving a factory (for example, three SIM cards 2 may be configured for 4G WiFi with oneself when leaving a factory, one is the SIM card 2 corresponding to china telecommunications, one is the SIM card 2 corresponding to china mobile, and one is the SIM card 2 corresponding to china unicom). The number of the SIM card holders 3 may be one or more than two according to actual requirements, and the SIM card holders 3 are used for users to install their own SIM cards (i.e. user SIM cards). When the number of the SIM card attach 2 is one and the number of the SIM card sockets 3 is multiple, the circuit structure of the SIM card switching circuit of the present embodiment is as shown in fig. 1. When the number of the SIM card attach 2 is plural and the number of the SIM card sockets 3 is plural, the circuit structure of the SIM card switching circuit of the present embodiment is as shown in fig. 2. For convenience of understanding, the working principle of the SIM card switching circuit of this embodiment is described by taking the number of the SIM patch cards 2 as one and the number of the SIM card holders 3 as multiple examples, which is specifically as follows:
when the control chip 1 detects that all the SIM card holders 3 are not inserted with the user SIM cards, the control chip 1 controls the first switch 4 to be switched on and simultaneously controls all the second switches 5 to be switched off, so that a communication loop between the control chip 1 and the SIM patch card 2 is switched on, a communication loop between the control chip 1 and each SIM card holder 3 is switched off, and at the moment, the user can carry out internet surfing and other services through the SIM patch card 2;
when the control chip 1 detects that one of the SIM card holders 3 contains a user SIM card, the control chip 1 controls the first switch 4 to be switched off, and simultaneously controls the second switch 5 corresponding to the SIM card holder 3 containing the user SIM card to be switched on, so that a communication loop between the control chip 1 and the SIM patch card 2 is switched off, and a communication loop between the control chip 1 and the SIM card holder 3 containing the user SIM card is switched on, and at the moment, a user can carry out internet surfing and other services through the user SIM card;
when the control chip 1 detects that the plurality of SIM card holders 3 all contain the user SIM card, the control chip 1 controls the first switch 4 to be switched off, and simultaneously controls the second switch 5 corresponding to the SIM card holder 3 containing the user SIM card and having the highest priority to be switched on, so that a communication loop between the control chip 1 and the SIM patch card 2 is switched off, a communication loop between the control chip 1 and the SIM card holder 3 containing the user SIM card and having the highest priority is switched on, and at the moment, a user can carry out internet surfing and other services through the user SIM card loaded into the SIM card holder 3 having the highest priority; the SIM card holder 3 with the highest priority may be determined according to the selection operation of the user (specifically, when a plurality of SIM cards of the user are detected, the user may select the SIM card of the user for the current communication in a pop-up window or the like), or may be determined according to a preset priority level (that is, priorities of different levels are set for different SIM card holders 3 in advance).
Therefore, in the SIM card switching circuit provided in the embodiment of the present invention, each SIM patch card 2 and each SIM card holder 3 are connected to the control chip 1 in parallel, and at the same time, each SIM patch card 2 and each SIM card holder 3 are respectively configured with a switch, the communication loop between the control chip 1 and the SIM patch card 2 is switched on or off by using the on/off of the first switch 4, and the communication loop between the control chip 1 and the SIM card holder 3 is switched on or off by using the on/off of the second switch 5, so that the control chip 1 controls the corresponding first switch 4 to be switched on and the corresponding second switch 5 to be switched off, and thus the corresponding SIM patch card 2 is selected to realize communication, and the user SIM card in the corresponding SIM card holder 3 is disconnected to fail; on the contrary, the control chip 1 controls the corresponding first switch 4 to be switched off and the corresponding second switch 5 to be switched on, so that the corresponding SIM patch card 2 is switched off and fails, and the user SIM card in the corresponding SIM card socket 3 is selected to realize communication. Therefore, the free switching between more than two paths of SIM cards is realized through one control chip 1, the use flexibility is improved, the SIM card switching logic of the control chip 1 is simple, and the SIM card switching logic is not complicated along with the increase of the number of the support paths of the SIM cards, so that the risk of misjudgment can be greatly reduced.
Further, referring to fig. 1 or fig. 2, in an exemplary embodiment, the control chip 1 has a signal interface end, a plurality of first control ends and a plurality of second control ends, wherein the signal end of each SIM patch card 2 and the signal end of each SIM card holder 3 are both connected to the signal interface end of the control chip 1; the control end of each first switch 4 is correspondingly connected with each first control end of the control chip 1; the control ends of the second switches 5 are connected with the second control ends of the control chip 1 in a one-to-one correspondence manner. Specifically, the signal interface end of the control chip 1 includes a RESET end, a CLK end, a DATA end and a VCC end, the signal end of each SIM patch card 2 and the signal end of each SIM card holder 3 all include a RST pin, a CLK pin, an I/O pin and a VCC pin, the RST pin of each SIM patch card 2 and the RST pin of each SIM card holder 3 are all connected to the RESET end of the control chip 1, the CLK pin of each SIM patch card 2 and the CLK pin of each SIM card holder 3 are all connected to the CLK end of the control chip 1, the I/O pins of each SIM patch card 2 and each SIM card holder 3 are all connected to the DATA end of the control chip 1, and the VCC pins of each SIM patch card 2 and each SIM card holder 3 are all connected to the VCC end of the control chip 1, so that each SIM patch card 2 and each SIM card holder 3 can be connected in parallel to each other and connected to the control chip 1.
In this embodiment, based on the circuit connection, the control chip 1 may output a corresponding control signal to the corresponding control end to control the on/off of the corresponding switch, so that the control chip 1 may control the on/off of each switch independently from each other, thereby facilitating the switching between the SIM cards.
Further, referring to fig. 1 and 3, in an exemplary embodiment, each of the first switch switches 4 includes a first switch element (not shown), a control terminal of the first switch element is connected to the control chip 1, a first terminal of the first switch element is connected to a ground terminal of the SIM card 2, and a second terminal of the first switch element is grounded. In specific implementation, a switching device such as a triode, a MOS transistor, or the like can be used as the first switching element.
In this embodiment, the communication loop between the control chip 1 and the SIM card 2 can be switched on or off by controlling the on/off of the first switch element, so that not only can the switching control of each SIM card 2 be realized, but also the circuit structure can be simplified, and the hardware cost can be reduced.
Further, referring to fig. 1 and 3, in an exemplary embodiment, the first switching element includes a first MOS transistor Q11, a gate of the first MOS transistor Q11 is used as a control terminal of the first switching element, a drain of the first MOS transistor Q11 is used as a first terminal of the first switching element, and a source of the first MOS transistor Q11 is used as a second terminal of the first switching element. Specifically, when the first MOS transistor Q11 receives a high-level signal sent by the control chip 1, the first MOS transistor Q11 is turned on, and at this time, a communication loop between the control chip 1 and the SIM patch card 2 is turned on; in contrast, when the first MOS transistor Q11 receives a low level signal sent by the control chip 1, the first MOS transistor Q11 is turned off, and at this time, the communication loop between the control chip 1 and the SIM patch card 2 is turned off.
In this embodiment, through selecting for use the MOS pipe as first switch element, compare in switching elements such as triode for first switch element can obtain lower resistance to ground, and then makes control chip 1 can control the break-make of first switch element more stably, thereby is favorable to improving the stability that the SIM card switched.
Further, referring to fig. 1 and fig. 3, in an exemplary embodiment, to further improve the operation stability of the first switches 4, each of the first switches 4 further includes a resistor R11 and a resistor R12, wherein a gate of the first MOS transistor Q11 is connected to the first control terminal of the control chip 1 through the resistor R11, one end of the resistor R12 is connected to a path between the gate of the first MOS transistor Q11 and the first control terminal of the control chip 1, and the other end of the resistor R12 is connected to a power supply (for example, a 1.8V power supply).
Further, referring to fig. 1 and 4, in an exemplary embodiment, each of the second switches 5 includes a second switch element (not labeled), a control terminal of the second switch element is connected to the control chip 1, a first terminal of the second switch element is connected to the ground terminal of the SIM card holder 3, and a second terminal of the second switch element is connected to the ground. In specific implementation, a switching device such as a triode, a MOS transistor, or the like can be used as the second switching element.
In this embodiment, the communication loop between the control chip 1 and the SIM card holder 3 can be switched on or off by controlling the on/off of the second switch element, so that not only can the switching control of each SIM card holder 3 be realized, but also the circuit structure can be simplified, and the hardware cost can be reduced.
Further, referring to fig. 1 and 4, in an exemplary embodiment, the second switching element includes a second MOS transistor Q12, a gate of the second MOS transistor Q12 is used as a control terminal of the second switching element, a drain of the second MOS transistor Q12 is used as a first terminal of the second switching element, and a source of the second MOS transistor Q12 is used as a second terminal of the second switching element. Specifically, when the second MOS transistor Q12 receives a high level signal sent by the control chip 1, the second MOS transistor Q12 is turned on, and at this time, the communication loop between the control chip 1 and the SIM card holder 3 is switched on; in contrast, when the second MOS transistor Q12 receives the low level signal sent by the control chip 1, the second MOS transistor Q12 is turned off, and at this time, the communication loop between the control chip 1 and the SIM card holder 3 is opened.
In this embodiment, through selecting for use the MOS transistor as second switch element, compare in switching devices such as triode for second switch element can obtain lower resistance to ground, and then makes control chip 1 can control the break-make of second switch element more stably, thereby is favorable to improving the stability that the SIM card switched.
Further, referring to fig. 1 and 4, in order to further improve the operating stability of the second switches 5, each second switch 5 further includes a resistor R13 and a resistor R14, wherein a gate of the second MOS transistor Q12 is connected to the second control end of the control chip 1 through the resistor R13, one end of the resistor R14 is connected to a path between the gate of the first MOS transistor Q11 and the first control end of the control chip 1, and the other end of the resistor R14 is connected to a power supply (e.g., a 1.8V power supply).
Correspondingly, the embodiment of the invention also provides electronic equipment, which comprises the SIM card switching circuit in any embodiment.
In this embodiment, the electronic device may be an electronic product such as WIFI at any time, and thanks to the improvement of the SIM card switching circuit, the electronic device of this embodiment has the same technical effect as the SIM card switching circuit, and is not described herein again.
Correspondingly, referring to fig. 1, fig. 3, fig. 4, and fig. 5, an embodiment of the present invention further provides a SIM card switching method, which is applied to the electronic device in any of the foregoing embodiments, and the SIM card switching method includes:
step S11, detecting whether the electronic equipment contains a user SIM card;
step S12, if the electronic device includes a user SIM card, controlling the corresponding second switch 5 to be turned on to connect the communication loop between the control chip 1 and the SIM card holder 3 containing the user SIM card;
in step S13, if the electronic device includes multiple SIM cards, the second switch 5 with the highest priority is controlled to be turned on according to the preset priority policy, so as to connect the communication loop between the control chip 1 and the SIM card holder 3 with the highest priority that includes the SIM cards.
In step S11, specifically, after the electronic device is powered on and operated, the control chip 1 performs SIM card detection on each SIM card holder 3 one by one to determine the SIM card holder 3 containing the user SIM card; the process of SIM card detection for each SIM card holder 3 is as follows: the control chip 1 can control the second switch 5 to be conducted by sending a high level signal to the corresponding second switch 5, so that a communication loop between the control chip 1 and the corresponding SIM card holder 3 is conducted, if the SIM card holder 3 contains a user SIM card, the control chip 1 can receive an enabling signal fed back by the SIM card holder 3, and if the control chip 1 does not receive the enabling signal fed back by the SIM card holder 3, the SIM card holder 3 does not contain the user SIM card; when the control chip 1 judges whether the SIM card holder 3 contains the user SIM card, the control chip 1 may control the second switch 5 to be turned off by sending a low level signal to the second switch 5, thereby completing the SIM card detection of one SIM card holder 3; then, the remaining SIM card detection of the SIM card holder 3 is completed according to the same procedure (i.e. the detection method of first controlling the second switch 5 to be turned on, and then continuing to control the second switch 5 to be turned off), so that it can be detected whether the electronic device contains one or more user SIM cards.
In step S12, specifically, when it is detected that the electronic device includes one user SIM card, the control chip 1 may control the second switch 5 corresponding to the SIM card holder 3 including the user SIM card to be turned on by sending a high level signal to the second switch 5, so that the communication loop between the control chip 1 and the SIM card holder 3 including the user SIM card is turned on, and the user SIM card in the SIM card holder 3 is selected to implement communication.
In step S13, specifically, when it is detected that the electronic device includes multiple user SIM cards, the control chip 1 selects the SIM card socket 3 with the highest priority from the multiple SIM card sockets 3 including the user SIM cards as the target SIM card socket, and further controls the corresponding second switch 5 to be turned on by sending a high-level signal to the second switch 5 corresponding to the target SIM card socket, so that the communication loop between the control chip 1 and the SIM card socket 3 with the highest priority including the user SIM card is turned on, and at this time, the user SIM card in the SIM card socket 3 with the highest priority is selected to implement communication. It should be noted that, in some specific embodiments, the preset priority policy may be factory setting instead of being changeable (that is, different priority levels are set for each SIM card socket 3 in advance when the SIM card socket is shipped from a factory), or may be set by a user according to needs (specifically, the user may configure different priority levels for each SIM card socket 3 through a corresponding function setting interface), which is not limited in this embodiment.
In this embodiment, based on the above steps, the control chip 1 controls the corresponding first switch 4 to be turned on and the corresponding second switch 5 to be turned off, so that the corresponding SIM patch card 2 is selected to implement communication, and the user SIM card in the corresponding SIM card socket 3 is turned off to fail; on the contrary, the control chip 1 controls the corresponding first switch 4 to be switched off and the corresponding second switch 5 to be switched on, so that the corresponding SIM patch card 2 is switched off and fails, and the user SIM card in the corresponding SIM card socket 3 is selected to realize communication. Therefore, intelligent switching between more than two paths of SIM cards is realized through one control chip 1, the use flexibility is improved, the SIM card switching logic of the control chip 1 is simple, and the SIM card switching logic is not complicated along with the increase of the number of support paths of the SIM cards, so that the risk of misjudgment can be greatly reduced. In this embodiment, it should be noted that, generally, when a user needs to use his or her SIM card, the user needs to insert the SIM card into the SIM card holder 3 of the electronic device when the electronic device is in the power-off state, and then the electronic device is powered on for use. In addition, as will be understood by those skilled in the art, after the electronic device is turned off, since the control chip 1 and the switches are powered off, the first switches 4 and the second switches 5 are turned off after the electronic device is turned off.
Further, in an exemplary embodiment, the controlling the second switch 5 with the highest priority to be turned on according to the preset priority policy includes:
step S131, receiving an SIM card selection instruction input by a user, and selecting the SIM card holder 3 with the highest priority from a plurality of SIM card holders 3 containing the user SIM card according to the SIM card selection instruction;
in step S132, the second switch 5 corresponding to the SIM card holder 3 with the highest priority is controlled to be turned on.
In this embodiment, specifically, when it is detected that the electronic device includes a plurality of user SIM cards, a selection interface of the SIM cards may be provided for the user in a pop-up window or the like, and then the control chip 1 may select, according to an SIM card selection instruction triggered by a user through an option operation on the selection interface, an SIM card holder 3 with the highest priority from the SIM card holders 3 including the user SIM cards as a target SIM card holder 3, so as to implement selection of a corresponding SIM card by controlling conduction of the second switch 5 corresponding to the target SIM card holder 3. Therefore, the user can flexibly select the SIM card of the communication user according to the actual requirement, thereby being beneficial to improving the use experience of the user.
It should be noted that, in other specific embodiments, in the using process, the user may also change the SIM card 2 or the user SIM card used for the current communication by triggering the SIM card selection instruction according to the own requirement (for example, a corresponding function interface is provided, the SIM card 2 and the user SIM card existing in the current electronic device may be displayed on the function interface, and the user may select the SIM card by clicking or the like).
Further, referring to fig. 2 to 5, in an exemplary embodiment, after the step S11 of detecting whether the electronic device includes the user SIM card, the method further includes:
if the electronic device does not include the user SIM card, step S14 is executed to detect whether there are multiple SIM patch cards 2 in the electronic device. It should be noted that the detection process for detecting whether there are multiple SIM cards 2 in the electronic device is similar to the detection process for detecting whether there are user SIM cards in the electronic device (that is, the detection method of first controlling the first switch 4 to be turned on and then continuing to control the first switch 4 to be turned off) and is not described herein again.
If not, it is determined that there is only one preset SIM card 2 and one preset first switch 4, and at this time, step S15 is executed to control the first switch 4 to be turned on to connect the communication loop between the control chip 1 and the SIM card 2.
If yes, step S16 is executed, and the first switch 4 with the highest priority is controlled to be turned on according to a predetermined priority mode, so as to turn on the communication loop between the control chip 1 and the SIM patch card 2 with the highest priority. In this step, in some specific embodiments, different priority levels may be set in advance for each SIM card 2 in a factory setting or a user self-setting manner, and then when it is detected that there are multiple SIM cards 2 in the electronic device, the control chip 1 controls the first switch 4 corresponding to the SIM card 2 with the highest priority level to be turned on, so as to select the corresponding SIM card 2. In other specific embodiments, when it is detected that the electronic device includes multiple SIM patch cards 2, a selection interface of the SIM patch card 2 may be provided for the user in a pop-up window or the like, and then the control chip 1 may select, according to a SIM patch card 2 selection instruction triggered by a user through an option operation on the selection interface, a SIM patch card 2 with the highest priority from the multiple SIM patch cards 2 as a target SIM patch card 2, so as to implement selection of the corresponding SIM patch card 2 by controlling conduction of a first switch 4 corresponding to the target SIM patch card 2.
Correspondingly, referring to fig. 1, fig. 3, fig. 4, and fig. 6, an embodiment of the present invention further provides a SIM card switching method, which is applied to the SIM card switching circuit in any of the above embodiments or the electronic device in any of the above embodiments, and the SIM card switching method includes:
step S21, according to the preset high-to-low priority detection sequence, SIM card detection is carried out on each SIM card holder 3 one by one;
step S22, when detecting that one of the SIM card holders 3 contains the user SIM card, stopping the SIM card detection, and controlling the corresponding second switch 5 to keep the on state, so as to connect the communication loop between the control chip 1 and the currently detected SIM card holder 3 containing the user SIM card.
In step S21, specifically, different priority levels may be set in advance for each SIM card holder 3 in a factory setting or a user self-setting manner, and when detecting whether the electronic device includes a user SIM card, the control chip 1 may perform SIM card detection on each SIM card holder 3 one by one according to a high-to-low priority detection sequence after the electronic device is turned on. The process of performing SIM card detection on each SIM card holder 3 one by one according to the high-to-low priority detection sequence is as follows: the control chip 1 can control the conduction of the second change-over switch 5 with the highest priority in a mode of sending a high level signal to the second change-over switch 5 corresponding to the SIM card holder 3 with the highest priority, so that a communication loop between the control chip 1 and the SIM card holder 3 with the highest priority is conducted, if the SIM card holder 3 with the highest priority contains a user SIM card, the control chip 1 can receive an enabling signal fed back by the SIM card holder 3, and if the control chip 1 does not receive the enabling signal fed back by the SIM card holder 3, the SIM card holder 3 does not contain the user SIM card; when the control chip 1 determines that the SIM card holder 3 with the highest priority contains the user SIM card, the subsequent step S22 is directly executed; when the control chip 1 determines that the SIM card holder 3 with the highest priority does not contain the user SIM card, the control chip 1 may control the second switch 5 to be turned off by sending a low level signal to the second switch 5, and then perform the SIM card detection on the SIM card holder with the highest priority in the same detection manner, and so on until the SIM card holder 3 containing the user SIM card is detected or the SIM card detection on the SIM card holder 3 with the lowest priority is completed.
In the step S22, when it is detected that one of the SIM card holders 3 contains the user SIM card, the SIM card detection on the remaining SIM card holders 3 is stopped, and the second switch 5 corresponding to the currently detected SIM card holder 3 containing the user SIM card is controlled to be kept in the on state (for example, by continuously sending a high level signal), so that the communication loop between the control chip 1 and the SIM card holder 3 containing the user SIM card and having the highest priority is connected, and at this time, the user SIM card in the SIM card holder 3 having the highest priority is selected to implement communication.
In this embodiment, based on the above steps, not only is the intelligent switching between more than two SIM cards achieved through one chip 1, and the flexibility of use is improved, but also the SIM card switching logic of the control chip 1 is simple and is not complicated with the increase of the number of support paths of the SIM card, so that the risk of erroneous judgment can be greatly reduced. Here, compared with the foregoing SIM card switching method, the main difference between the SIM card switching method of this embodiment and the foregoing SIM card switching method is that the detection method adopted in the former when detecting the SIM card in the SIM card holder 3 follows a predetermined priority detection sequence, and the detection method adopted in the latter when detecting the SIM card in the SIM card holder 3 is full detection.
Further, in an exemplary embodiment, after the step S21 of performing SIM card detection on each SIM card socket 3 one by one according to a predetermined high-to-low priority detection order, the method further includes:
if the SIM card sockets 3 do not contain the user SIM card, step S23 is executed to control the predetermined first switch 4 with the highest priority to be turned on, so as to switch on the communication loop between the control chip 1 and the SIM patch card 2 with the highest priority. In some specific embodiments, a default SIM card 2 may be set in advance as the SIM card 2 with the highest priority in a factory setting or a user self-setting manner, and when it is detected that none of the SIM card holders 3 contains a user SIM card, the control chip 1 controls the first switch 4 corresponding to the SIM card 2 with the highest priority to be turned on, so as to select the corresponding SIM card 2.
It should be noted that, in other embodiments, when it is detected that no user SIM card is contained in each SIM card holder 3, the selection of the SIM patch card 2 may also be implemented by the foregoing steps S14 to S16.
It should be noted that, other contents of the SIM card switching circuit, the SIM card switching method, and the electronic device disclosed in the present invention may refer to the prior art, and are not described herein again.
In addition, it should be noted that the descriptions related to "first", "second", etc. in the present invention are only used for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
In addition, it should be noted that the technical solutions in the embodiments may be combined with each other, but must be based on the realization of the technical solutions by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not to be within the protection scope of the present invention.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A SIM card switching circuit is characterized by comprising a control chip, at least one SIM patch card, at least one SIM card holder for accommodating a user SIM card, at least one first switch and at least one second switch;
each first switch corresponds to each SIM patch card one by one, and each second switch corresponds to each SIM card holder one by one;
each SIM patch card and each SIM card holder are connected in parallel and then connected to the control chip;
the control end of each first switch is connected with the control chip, and the grounding end of each SIM patch card is grounded after passing through the corresponding first switch;
the control end of each second switch is connected with the control chip, and the grounding end of each SIM card holder is grounded after passing through the corresponding second switch; wherein the content of the first and second substances,
the first switch is used for switching on or switching off a communication loop between the control chip and the SIM patch card according to a control signal output by the control chip;
and the second change-over switch is used for switching on or switching off a communication loop between the control chip and the SIM card holder according to the control signal output by the control chip.
2. The SIM card switching circuit of claim 1, wherein the control chip has a signal interface terminal, a plurality of first control terminals, and a plurality of second control terminals, wherein,
the signal end of each SIM patch card and the signal end of each SIM card seat are connected to the signal interface end of the control chip;
the control end of each first change-over switch is correspondingly connected with each first control end of the control chip one by one;
and the control end of each second change-over switch is connected with each second control end of the control chip in a one-to-one correspondence manner.
3. The SIM card switching circuit according to claim 1, wherein each of the first switch switches comprises a first switch element, a control terminal of the first switch element is connected to the control chip, a first terminal of the first switch element is connected to a ground terminal of the SIM patch card, and a second terminal of the first switch element is grounded.
4. The SIM card switching circuit according to claim 3, wherein the first switching element comprises a first MOS transistor, a gate of the first MOS transistor serves as a control terminal of the first switching element, a drain of the first MOS transistor serves as a first terminal of the first switching element, and a source of the first MOS transistor serves as a second terminal of the first switching element.
5. The SIM card switching circuit according to claim 1, wherein each of the second switches comprises a second switch element, a control terminal of the second switch element is connected to the control chip, a first terminal of the second switch element is connected to a ground terminal of the SIM card socket, and a second terminal of the second switch element is grounded.
6. The SIM card switching circuit according to claim 5, wherein the second switching element comprises a second MOS transistor, a gate of the second MOS transistor serves as a control terminal of the second switching element, a drain of the second MOS transistor serves as a first terminal of the second switching element, and a source of the second MOS transistor serves as a second terminal of the second switching element.
7. An electronic device, characterized in that it comprises a SIM card switching circuit according to any one of claims 1 to 6.
8. A SIM card switching method applied in the electronic device as claimed in claim 7, wherein the method comprises:
detecting whether the electronic equipment contains the user SIM card;
if the electronic equipment contains one SIM card of the user, controlling the corresponding second change-over switch to be conducted so as to switch on a communication loop between the control chip and the SIM card holder containing the SIM card of the user;
if the electronic equipment contains a plurality of user SIM cards, the second change-over switch with the highest priority is controlled to be conducted according to a preset priority strategy so as to connect a communication loop between the control chip and the SIM card holder which contains the user SIM cards and has the highest priority.
9. The SIM card switching method according to claim 7, wherein the controlling of the second switch with the highest priority to be turned on according to the preset priority policy comprises:
receiving an SIM card selection instruction input by a user, and selecting the SIM card seat with the highest priority from a plurality of SIM card seats containing the user SIM card according to the SIM card selection instruction;
and controlling the second change-over switch corresponding to the SIM card holder with the highest priority to be conducted.
10. A SIM card switching method applied to the SIM card switching circuit according to any one of claims 1 to 6 or the electronic device according to claim 7, the method comprising:
carrying out SIM card detection on each SIM card seat one by one according to a preset high-to-low priority detection sequence;
when detecting that one of the SIM card holders contains the user SIM card, stopping the SIM card detection, and controlling the corresponding second switch to keep a conducting state so as to connect a communication loop between the control chip and the currently detected SIM card holder containing the user SIM card.
CN202110951770.4A 2021-08-18 2021-08-18 SIM card switching circuit, SIM card switching method and electronic equipment Withdrawn CN113676970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110951770.4A CN113676970A (en) 2021-08-18 2021-08-18 SIM card switching circuit, SIM card switching method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110951770.4A CN113676970A (en) 2021-08-18 2021-08-18 SIM card switching circuit, SIM card switching method and electronic equipment

Publications (1)

Publication Number Publication Date
CN113676970A true CN113676970A (en) 2021-11-19

Family

ID=78543821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110951770.4A Withdrawn CN113676970A (en) 2021-08-18 2021-08-18 SIM card switching circuit, SIM card switching method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113676970A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052063A (en) * 2022-08-15 2022-09-13 荣耀终端有限公司 SIM card communication circuit, related device and control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052063A (en) * 2022-08-15 2022-09-13 荣耀终端有限公司 SIM card communication circuit, related device and control method
CN115052063B (en) * 2022-08-15 2023-01-17 荣耀终端有限公司 SIM card communication circuit, related device and control method

Similar Documents

Publication Publication Date Title
CN103529793B (en) The Internet of Things control system of a kind of STA mode based on WIFI and ap mode and control method thereof
US10397276B2 (en) Secure element management method and terminal
CN101783834B (en) Mobile terminal and method for switching screen
EP2043395B1 (en) Dual-sim mobile terminal and operation method for the same
CN103428799B (en) WIFI network module collocation method
CN104902430B (en) The flow control methods and system of intelligent terminal
CN215897719U (en) SIM card switching device and electronic equipment
CN104954969B (en) A kind of communication system and its communication means of vehicle electronic device
CN105824657A (en) Method for displaying application program and mobile terminal
TW201238273A (en) Electronic device, controller and method for controlling data transfer
CN110109403A (en) A kind of double control switch
CN113676970A (en) SIM card switching circuit, SIM card switching method and electronic equipment
CN102665302A (en) Wireless communication system
CN108601097A (en) Networking control method, device, equipment and the computer storage media of double-terminal
CN104092831B (en) A kind of system and method in cell-phone lock screen display content
CN111142826B (en) Mobile device, base and scene system
US9942378B2 (en) Display device and method for implementing incoming notification function with respect to MHL signal source
CN109362130A (en) MIFI device systems and method
CN109257734A (en) A kind of method and device for realizing Subscriber Identity Module switching
CN204119225U (en) Based on SIM card hot plug circuit and the mobile terminal of LTE module
CN105719578A (en) WeChat public platform based intelligent solar LED (Light Emitting Diode) display screen
CN215581255U (en) SIM card switching circuit and electronic equipment
CN112684734B (en) Network card NCSI function self-adaptive system, method and integrated chip
CN105590203A (en) Intelligent router and payment method implemented based on same
CN206283531U (en) A kind of smart jack and smart machine based on cloud SIM modules

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20211119

WW01 Invention patent application withdrawn after publication