CN115412119B - Dual card management circuit, method, apparatus, device, storage medium, and program product - Google Patents

Dual card management circuit, method, apparatus, device, storage medium, and program product Download PDF

Info

Publication number
CN115412119B
CN115412119B CN202210937234.3A CN202210937234A CN115412119B CN 115412119 B CN115412119 B CN 115412119B CN 202210937234 A CN202210937234 A CN 202210937234A CN 115412119 B CN115412119 B CN 115412119B
Authority
CN
China
Prior art keywords
card
sam
sim
sim card
pin
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.)
Active
Application number
CN202210937234.3A
Other languages
Chinese (zh)
Other versions
CN115412119A (en
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.)
Yunma Intelligent Hainan Technology Co ltd
Original Assignee
Yunma Intelligent Hainan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yunma Intelligent Hainan Technology Co ltd filed Critical Yunma Intelligent Hainan Technology Co ltd
Priority to CN202210937234.3A priority Critical patent/CN115412119B/en
Publication of CN115412119A publication Critical patent/CN115412119A/en
Application granted granted Critical
Publication of CN115412119B publication Critical patent/CN115412119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0013Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers
    • G06K7/0052Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers connectors capable of contacting cards of different formats, e.g. memory stick and SD card readers sharing at least one connector contact and the associated signal line, e.g. both using the same signal line for input or output of data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0013Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers
    • G06K7/0086Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers the connector comprising a circuit for steering the operations of the card connector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3816Mechanical arrangements for accommodating identification devices, e.g. cards or chips; with connectors for programming identification devices

Abstract

The embodiment of the disclosure discloses a dual card management circuit, a method, an apparatus, a device, a storage medium and a program product, wherein the dual card management circuit comprises: the SIM card and the SAM card are connected with the SIM card and the SAM card through the card seat chip, the SIM card and the SAM card signal switching circuit and the SIM card and SAM card power switching circuit, wherein: the SIM card and the SAM card are used for placing the SIM card and the SAM card through the card seat chip; the SIM card and SAM card power switch circuit is connected with the SIM card and SAM card through the card holder chip, and the SIM card and SAM card signal switch circuit are used for controlling the working states of the SIM card and SAM card. The technical scheme is simple to realize and convenient to operate, not only can meet different requirements of different users, but also can realize unified maintenance of products on the premise of ensuring miniaturization and compactness of the machine tool, reduces the complexity of product maintenance, and is favorable for realizing optimization of product cost.

Description

Dual card management circuit, method, apparatus, device, storage medium, and program product
Technical Field
The embodiment of the disclosure relates to the technical field of communication, in particular to a double-card management circuit, a method, a device, equipment, a storage medium and a program product.
Background
With the development of communication technology, users have increasingly diversified demands for communication cards such as SIM cards (mobile network subscriber identity cards), SAM cards (point of sale terminal security access modules), etc., for example, two SIM cards are required for some users, 2SAM cards are required for some users, etc. In order to fully meet the card requirement of the user, some communication devices are provided with 3 cartridges with hardware version of 1sim+2sam or 2sim+1sam or 4 cartridges with hardware version of 2sim+2sam, but the above design of the prior art has the following problems: different hardware versions are needed to be used for designing the 1,3 card holders, and different hardware circuits are needed to be configured, so that unified maintenance cannot be realized, further the complexity of product maintenance is increased, and optimization of product cost is not facilitated; the design of 2,4 cassettes not only has the problems of 3 cassettes, but also has the problems of occupying more space of the machine tool and restricting the miniaturization and the compactness development of the machine tool.
Disclosure of Invention
Embodiments of the present disclosure provide a dual card management circuit, method, apparatus, device, storage medium, and program product.
In a first aspect, a dual card management circuit is provided in an embodiment of the present disclosure.
Specifically, the dual card management circuit includes: the SIM card and the SAM card are connected with the SIM card and the SAM card through the card seat chip, the SIM card and the SAM card signal switching circuit and the SIM card and the SAM card power switching circuit, wherein:
the SIM card and the SAM card are used for placing the SIM card and the SAM card by a card seat chip;
the SIM card and SAM card power switch circuit is connected with the SIM card and SAM card universal card seat chip and the SIM card and SAM card signal switch circuit, and the SIM card and SAM card power switch circuit and the SIM card and SAM card signal switch circuit are used for controlling the working states of the SIM card and SAM card placed in the SIM card and SAM card universal card seat chip by controlling the power conduction and signal conduction of the SIM card and SAM card universal card seat chip.
In an embodiment of the disclosure, the SIM card and SAM card general card socket chip includes a power supply pin VCC, a reset pin RST, a clock pin CLK, a DATA pin DATA, a ground pin GND, and a programming control pin VPP, wherein the DATA pin DATA is connected with the power supply pin VCC through a first resistor R1; the power supply pin VCC is grounded through a first capacitor C1.
In an embodiment of the disclosure, SAM and SIM power signals corresponding to a power pin VCC are connected to collectors of a first transistor Q1 and a second transistor Q2 of a SIM card and SAM card power switching circuit;
the SAM and the SIM reset signal corresponding to the reset pin RST are connected to the U1-A2 pin of the SAM card signal switch circuit U1 and the U2-A2 pin of the SIM card signal switch circuit U2;
the SAM and the SIM input/output signals corresponding to the DATA pin DATA are connected to the U1-A4 pins of the SAM card signal switch circuit U1 and the U2-A4 pins of the SIM card signal switch circuit U2;
the SAM and the SIM clock signals corresponding to the clock pin CLK are connected to the U1-A3 pins of the SAM card signal switch circuit U1 and the U2-A3 pins of the SIM card signal switch circuit U2.
In an embodiment of the disclosure, the SIM card and SAM card power switching circuit includes a first transistor Q1, a second transistor Q2, a third transistor Q3, a second resistor R2, a third resistor R3, and a fourth resistor R4, where:
the first triode Q1 and the second triode Q2 are PNP type triodes, and the third triode Q3 is an NPN type triode;
the emitter of the first triode Q1 is connected with a SAM power supply, the collector is connected with the SAM and a SIM power supply, the base is connected with one end of a second resistor R2, and the other end of the second resistor R2 is connected with the SAM and a SIM chip selection signal;
the emitter of the second triode Q2 is connected with one end of a SIM power supply and one end of a third resistor R3, the collector is connected with the SAM and the SIM power supply, and the base is connected with the collector of the third triode Q3;
the emitter of the third triode Q3 is grounded, the collector is connected with the base electrode of the second triode Q2, the base electrode is connected with one end of the fourth resistor R4, and the other end of the fourth resistor R4 is connected with the other end of the third resistor R3, and SAM and SIM chip selection signals.
In an embodiment of the present disclosure, the SIM card and SAM card signal switching circuits include a SIM card signal switching circuit U2 and a SAM card signal switching circuit U1.
In one embodiment of the present disclosure, the SAM card signal switching circuit U1 includes power supply pins VCCA and VCCB; reset pin U1-A2, with SIM card and SAM cartoon use the reset pin RST of the card seat chip to connect; reset pins U1-B2; clock pins U1-A3 are connected with a clock pin CLK of the SIM card and the SAM card universal card seat chip; clock pins U1-B3; the input/output pins U1-A4 are connected with the DATA pins DATA of the SIM card and the SAM card universal card seat chip; input/output pins U1-B4; a ground pin GND; enable pin OE; the enable pin OE is connected with one end of the fifth resistor R5 and the collector electrode of the fourth triode R4; the other end of the fifth resistor R5 is connected with a first preset voltage; the emitter of the fourth triode R4 is grounded, and the base electrode of the fourth triode R4 is connected with one end of a sixth resistor R6; the other end of the sixth resistor R6 is connected with the SAM and the SIM chip select signal.
In an embodiment of the disclosure, the fourth transistor Q4 is an NPN transistor.
In an embodiment of the present disclosure, the SIM card signal switching circuit U2 includes power pins VCCA and VCCB; a reset pin U2-A2 is connected with the SIM card and a reset pin RST of the SIM card universal card seat chip; reset pins U2-B2; clock pin U2-A3, with SIM card and SIM card seat clock pin CLK of chip connect; clock pins U2-B3; the input/output pins U2-A4 are connected with the SIM card and the SIM card through the DATA pin DATA of the card seat chip; input/output pins U2-B4; a ground pin GND; enable pin OE; the enable pin OE is connected with one end of the seventh resistor R7 and one end of the eighth resistor R8; the other end of the seventh resistor R7 is connected with a second preset voltage; the other end of the eighth resistor R8 is connected to the SIM and the SIM chip select signal.
In an embodiment of the disclosure, the SAM and SIM chip select signals are controlled to be low level, the first triode Q1 is turned on, the third triode Q3 and the second triode Q2 cannot be turned on, meanwhile, the reset pin U1-A2 of the SAM card signal switch circuit U1 is turned on with the reset pin U1-B2, the clock pin U1-A3 is turned on with the clock pin U1-B3, the input and output pins U1-A4 are turned on with the input and output pins U1-B4, the corresponding pins of the SIM card signal switch circuit U2 cannot be turned on internally, and the SIM card and the SAM card are in a SAM card working mode through the card socket chip;
the SAM and the SIM chip selection signal are controlled to be in high level, the third triode Q3 and the second triode Q2 are conducted, the first triode Q1 cannot be conducted, meanwhile, the reset pin U2-A2 of the SIM card signal switching circuit U2 is internally conducted with the reset pin U2-B2, the clock pin U2-A3 is internally conducted with the clock pin U2-B3, the input and output pins U2-A4 are internally conducted with the input and output pins U2-B4, internal conduction cannot be realized by corresponding pins of the SAM card signal switching circuit U1, and the SIM card and the SAM card are in an SIM card working mode through a card seat chip.
In a second aspect, a dual card management method is provided in an embodiment of the present disclosure.
Specifically, the dual card management method includes:
controlling SAM and SIM chip select signals to be high level, so that the dual-card management circuit is in a SIM card working mode;
initializing SIM card software, if the SIM card software is successfully initialized, determining the currently inserted card as the SIM card, and executing related operation of the SIM card;
if the initialization of the SIM card software fails, controlling SAM and SIM chip selection signals to be low level, so that the dual-card management circuit is switched into a SAM card working mode;
initializing SAM card software, then initializing SAM card software, if the SAM card software is initialized successfully, determining the currently inserted card as SAM card, executing SAM card related operation; if the SAM card software is failed in initialization, the fact that the card is not inserted or the card is abnormal is determined, and corresponding prompt information is sent out.
In a third aspect, a dual card management apparatus is provided in an embodiment of the present disclosure.
Specifically, the dual card management device includes:
the first control module is configured to control the SAM and the SIM chip selection signal to be in a high level, so that the dual-card management circuit is in an SIM card working mode;
the first initialization module is configured to perform initialization processing on the SIM card software, if the initialization of the SIM card software is successful, the currently inserted card is determined to be the SIM card, and related operation of the SIM card is executed;
the second control module is configured to control the SAM and the SIM chip select signal to be low level if the initialization of the SIM card software fails, so that the dual-card management circuit is switched to a SAM card working mode;
the second initialization module is configured to perform initialization processing on SAM card software, then perform software initialization processing on the SAM card, and if the SAM card software is successfully initialized, determine that the currently inserted card is the SAM card, and execute SAM card related operations; if the SAM card software is failed in initialization, the fact that the card is not inserted or the card is abnormal is determined, and corresponding prompt information is sent out. In a second aspect, a dual card management apparatus is provided in an embodiment of the present disclosure.
In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including a memory for storing one or more computer instructions for supporting a dual card management apparatus to perform the dual card management method described above, and a processor configured to execute the computer instructions stored in the memory. The dual card management apparatus may further comprise a communication interface for the dual card management apparatus to communicate with other devices or a communication network.
In a fifth aspect, embodiments of the present disclosure provide a computer-readable storage medium storing computer instructions for use by a dual card management device, including computer instructions for performing the dual card management method described above as being related to the dual card management device.
In a sixth aspect, embodiments of the present disclosure provide a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the two-card management method described above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
according to the technical scheme, through designing the SIM card and SAM card universal card seat chip, the SIM card and SAM card signal switching circuit and the SIM card and SAM card power switching circuit, under the control of the SIM card and SAM card signal switching circuit and the SIM card and SAM card power switching circuit, switching can be performed between the SIM card and the SAM card according to the application requirements of users. The technical scheme is simple to realize and convenient to operate, not only can meet different requirements of different users, but also can realize unified maintenance of products on the premise of ensuring miniaturization and compactness of the machine tool, reduces the complexity of product maintenance, and is favorable for realizing optimization of product cost.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the disclosure.
Drawings
Other features, objects and advantages of the embodiments of the present disclosure will become more apparent from the following detailed description of non-limiting embodiments, taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1A shows a circuit block diagram of a SIM card and SAM card universal card socket chip of a dual card management circuit according to an embodiment of the present disclosure;
FIG. 1B shows a circuit block diagram of a SIM card and SAM card signal switching circuit of a dual card management circuit according to an embodiment of the present disclosure;
FIG. 1C shows a circuit block diagram of a SIM card and SAM card power switching circuit of a dual card management circuit according to an embodiment of the present disclosure;
FIG. 2 illustrates a flow chart of a dual card management method according to an embodiment of the present disclosure;
FIG. 3 shows a system block diagram of a dual card management device according to an embodiment of the present disclosure;
FIG. 4 shows a block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a computer system suitable for use in implementing a dual card management method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, exemplary implementations of the embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, portions irrelevant to description of the exemplary embodiments are omitted in the drawings.
In the presently disclosed embodiments, it is to be understood that the terms such as "comprises" or "comprising" and the like are intended to indicate the presence of features, numbers, steps, acts, components, portions, or combinations thereof disclosed in the present specification, and are not intended to exclude the possibility of one or more other features, numbers, steps, acts, components, portions, or combinations thereof being present or added.
In addition, it should be noted that, without conflict, the embodiments of the present disclosure and features of the embodiments may be combined with each other. Embodiments of the present disclosure will be described in detail below with reference to the attached drawings in conjunction with the embodiments.
According to the technical scheme provided by the embodiment of the disclosure, through designing the SIM card and SAM card universal card holder chip, the SIM card and SAM card signal switching circuit and the SIM card and SAM card power switching circuit, under the control of the SIM card and SAM card signal switching circuit and the SIM card and SAM card power switching circuit, switching can be performed between the SIM card and the SAM card according to the application requirements of a user. The technical scheme is simple to realize and convenient to operate, not only can meet different requirements of different users, but also can realize unified maintenance of products on the premise of ensuring miniaturization and compactness of the machine tool, reduces the complexity of product maintenance, and is favorable for realizing optimization of product cost.
Fig. 1A illustrates a circuit configuration diagram of a SIM card and SAM card universal card socket chip of a dual card management circuit according to an embodiment of the present disclosure, fig. 1B illustrates a circuit configuration diagram of a SIM card and SAM card signal switching circuit of a dual card management circuit according to an embodiment of the present disclosure, and fig. 1C illustrates a circuit configuration diagram of a SIM card and SAM card power switching circuit of a dual card management circuit according to an embodiment of the present disclosure, including a SIM card and SAM card universal card socket chip, a SIM card and SAM card signal switching circuit, and a SIM card and SAM card power switching circuit, as illustrated in fig. 1A to 1C, wherein:
the SIM card and the SAM card are used for placing the SIM card and the SAM card by a card seat chip;
the SIM card and SAM card power switch circuit is connected with the SIM card and SAM card universal card seat chip and the SIM card and SAM card signal switch circuit, and the SIM card and SAM card power switch circuit and the SIM card and SAM card signal switch circuit are used for controlling the working states of the SIM card and SAM card placed in the SIM card and SAM card universal card seat chip by controlling the power conduction and the signal conduction of the SIM card and SAM card universal card seat chip, thereby realizing the purpose of function switching between the SIM card and the SAM card according to the application requirements of users.
In an embodiment of the present disclosure, as shown in fig. 1A, the SIM card and SAM card general card base chip includes a power pin VCC, and the corresponding signals are SAM and SIM power signal (SAM & sim_vcc); a reset pin RST, the corresponding signals are SAM and SIM reset signals (SAM & SIM_RST); a clock pin CLK, the corresponding signals being SAM and SIM clock signal signals (SAM & sim_clk); DATA pin DATA, corresponding signals are SAM and SIM input/output signals (SAM & SIM_IO); a ground pin GND; programming control pin VPP; etc.
Wherein the DATA pin DATA is connected with the power pin VCC through a first resistor R1; the power supply pin VCC is grounded through a first capacitor C1; SAM and SIM reset signals (SAM & sim_rst), SAM and SIM input output signals (SAM & sim_io), SAM and SIM clock signals (SAM & sim_clk) are connected to respective pins of SAM card signal switch circuit U1 and SIM card signal switch circuit U2, respectively, e.g., SAM and SIM reset signals (SAM & sim_rst) are connected to pin U1-A2 of SAM card signal switch circuit U1 and pin U2-A2 of SIM card signal switch circuit U2; SAM and SIM clock signals (SAM & SIM_CLK) are connected to pins U1-A3 of the SAM card signal switch circuit U1 and U2-A3 of the SIM card signal switch circuit U2; SAM and SIM input/output signals (SAM & SIM_IO) are connected to pins U1-A4 of the SAM card signal switch circuit U1 and pins U2-A4 of the SIM card signal switch circuit U2; SAM and SIM power supply signals (SAM & sim_vcc) are connected to the collectors of the first and second transistors Q1 and Q2 of the SIM card and SAM card power switching circuits.
In an embodiment of the disclosure, as shown in fig. 1C, the SIM card and SAM card power switching circuit includes a first transistor Q1, a second transistor Q2, a third transistor Q3, a second resistor R2, a third resistor R3, and a fourth resistor R4, where:
the first triode Q1 and the second triode Q2 are PNP type triodes, and the third triode Q3 is an NPN type triode;
the emitter of the first triode Q1 is connected with a SAM power supply (SAM_VCC), the collector is connected with a SAM and a SIM power supply (SAM & SIM_VCC), the base is connected with one end of a second resistor R2, and the other end of the second resistor R2 is connected with a SAM and a SIM chip selection signal (SAM & SIM_CS);
the emitter of the second triode Q2 is connected with one end of a SIM power supply (SIM_VCC) and one end of a third resistor R3, the collector is connected with a SAM and the SIM power supply (SAM & SIM_VCC), and the base is connected with the collector of the third triode Q3;
the emitter of the third triode Q3 is grounded, the collector is connected with the base electrode of the second triode Q2, the base electrode is connected with one end of a fourth resistor R4, and the other end of the fourth resistor R4 is connected with the other end of the third resistor R3, and SAM and SIM chip select signals (SAM & SIM_CS).
In one embodiment of the present disclosure, as shown in fig. 1B, the SIM card and SAM card signal switching circuits include a SIM card signal switching circuit U2 and a SAM card signal switching circuit U1, where:
the SAM card signal switch circuit U1 comprises power supply pins VCCA and VCCB, and the corresponding signals are SAM power supply signals (SAM_VCC); reset pin U1-A2, with SIM card and SAM cartoon use the reset pin RST of the card seat chip to connect; reset pins U1-B2, corresponding signals are SAM reset signals (SAM_RST); clock pins U1-A3 are connected with a clock pin CLK of the SIM card and the SAM card universal card seat chip; clock pins U1-B3, the corresponding signal is SAM clock signal (SAM_CLK); the input/output pins U1-A4 are connected with the DATA pins DATA of the SIM card and the SAM card universal card seat chip; input/output pins U1-B4, and corresponding signals are SAM input/output signals (SAM_IO); a ground pin GND; enable pin OE; etc. The enable pin OE is connected with one end of the fifth resistor R5 and the collector electrode of the fourth triode R4; the other end of the fifth resistor R5 is connected with a first preset voltage; the emitter of the fourth triode R4 is grounded, and the base electrode of the fourth triode R4 is connected with one end of a sixth resistor R6; the other end of the sixth resistor R6 is connected to SAM and SIM chip select signal (SAM & sim_cs). The fourth triode Q4 is an NPN triode.
The SIM card signal switching circuit U2 comprises power supply pins VCCA and VCCB, and corresponding signals are SIM power supply signals (SIM_VCC); a reset pin U2-A2 is connected with the SIM card and a reset pin RST of the SIM card universal card seat chip; reset pin U2-B2, corresponding signal is SIM reset signal (SIM_RST); clock pin U2-A3, with SIM card and SIM card seat clock pin CLK of chip connect; clock pins U2-B3, corresponding signals are SIM clock signals (SIM_CLK); the input/output pins U2-A4 are connected with the SIM card and the SIM card through the DATA pin DATA of the card seat chip; input/output pins U2-B4, corresponding signals are SIM input/output signals (SIM_IO); a ground pin GND; enable pin OE; etc. The enable pin OE is connected with one end of the seventh resistor R7 and one end of the eighth resistor R8; the other end of the seventh resistor R7 is connected with a second preset voltage; the other end of the eighth resistor R8 is connected to the SIM and the SIM chip select signal (SIM & sim_cs).
In an embodiment of the present disclosure, the resistance value of the resistor may be set according to the needs of practical applications, and the specific resistance value selection is not particularly limited in this disclosure, for example, the first resistor R1 may be set to 4.7 kiloohms, the second resistor R2 may be set to 2 kiloohms, the third resistor R3 may be set to 4.7 kiloohms, the fourth resistor R4 may be set to 2 kiloohms, the fifth resistor R5 may be set to 10 kiloohms, the sixth resistor R6 may be set to 1 kiloohm, the seventh resistor R7 may be set to 10 kiloohms, and the eighth resistor R8 may be set to 1 kiloohm.
In an embodiment of the present disclosure, the voltage value of the preset voltage may be set according to the needs of practical applications, and the specific voltage value selection is not particularly limited, for example, the first preset voltage may be set to 3.3V, and the second preset voltage may also be set to 3.3V.
In an embodiment of the present disclosure, the number of the SIM card and SAM card universal card holder chips may be set according to the needs of practical applications, and if the number of the SIM card and SAM card universal card holder chips is two or more, the SIM card and SAM card universal card holder chips are connected to the SIM card and SAM card power switching circuit and the SIM card and SAM card signal switching circuit according to the above description.
Based on the double-card management circuit, by controlling the SIM card and SAM card signal switching circuit and the SIM card and SAM card power switching circuit, the function switching between the SIM card and the SAM card can be freely performed according to the application requirements of users. Specifically:
controlling SAM and SIM chip select signals (SAM & SIM_CS) to be low, SAM_VCC and SAM & SIM_VCC being higher than low, Q1 being on, and Q3 and Q2 being not on; meanwhile, reset pins U1-A2 and reset pins U1-B2 of U1 are internally conducted, clock pins U1-A3 and clock pins U1-B3 of U1 are internally conducted, input and output pins U1-A4 and input and output pins U1-B4 of U1 are internally conducted, and further internal conduction of corresponding pins of U2 cannot be achieved; namely, U1 and Q1 are conducted, U2, Q3 and Q2 are not conducted, so that the SAM card is in a working state, the SIM card is in a non-working state, namely the SIM card and SAM card universal card holder chip are in a SAM card working mode;
similarly, control SAM and SIM chip select signal (SAM & sim_cs) to high, Q3 and Q2 are on, Q1 is not on; meanwhile, the reset pin U2-A2 of U2 is internally conducted with the reset pin U2-B2, the clock pin U2-A3 of U2 is internally conducted with the clock pin U2-B3, the input and output pin U2-A4 of U2 is internally conducted with the input and output pin U2-B4, and further the corresponding pin of U1 cannot be internally conducted; namely, U2, Q2 and Q3 are conducted, and U1 and Q1 are not conducted, so that the SIM card is in a working state, the SAM card is in a non-working state, namely the SIM card and SAM card universal card holder chip are in an SIM card working mode.
Fig. 2 shows a flowchart of a dual card management method according to an embodiment of the present disclosure, which is applicable to the dual card management circuit, and as shown in fig. 2, the dual card management method includes the following steps S201 to S204:
in step S201, the SAM and the SIM chip select signal (SAM & sim_cs) are controlled to be at a high level, so that the dual card management circuit is in a SIM card working mode;
in step S202, initializing the SIM card software, if the initialization of the SIM card software is successful, determining that the currently inserted card is a SIM card, and executing related operations of the SIM card;
in step S203, if the initialization of the SIM card software fails, the SAM and the SIM chip select signal (SAM & sim_cs) are controlled to be at low level, so that the dual card management circuit is switched to a SAM card working mode;
in step S204, initializing SAM card software, then initializing SAM card software, if the SAM card software is initialized successfully, determining that the currently inserted card is a SAM card, and executing SAM card related operation; if the SAM card software is failed in initialization, the fact that the card is not inserted or the card is abnormal is determined, and corresponding prompt information is sent out.
As mentioned above, with the development of communication technology, the demands of users for communication cards such as SIM cards, SAM cards, etc. are becoming more and more diversified, for example, two SIM cards are required for some users, 2SAM cards are required for some users, etc. In order to fully meet the card requirement of the user, some communication devices are provided with 3 cartridges with hardware version of 1sim+2sam or 2sim+1sam or 4 cartridges with hardware version of 2sim+2sam, but the above design of the prior art has the following problems: different hardware versions are needed to be used for designing the 1,3 card holders, and different hardware circuits are needed to be configured, so that unified maintenance cannot be realized, further the complexity of product maintenance is increased, and optimization of product cost is not facilitated; the design of 2,4 cassettes not only has the problems of 3 cassettes, but also has the problems of occupying more space of the machine tool and restricting the miniaturization and the compactness development of the machine tool.
In view of the above, in this embodiment, a dual card management method is proposed that can switch between a SIM card and a SAM card according to the application requirements of a user under the control of the SIM card and SAM card signal switching circuit, and the SIM card and SAM card power switching circuit by designing a SIM card and SAM card universal card holder chip, a SIM card and SAM card signal switching circuit, and a SIM card and SAM card power switching circuit. The technical scheme is simple to realize and convenient to operate, not only can meet different requirements of different users, but also can realize unified maintenance of products on the premise of ensuring miniaturization and compactness of the machine tool, reduces the complexity of product maintenance, and is favorable for realizing optimization of product cost.
The following are device embodiments of the present disclosure that may be used to perform method embodiments of the present disclosure.
Fig. 3 shows a block diagram of a dual card management device according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 3, the dual card management apparatus includes:
a first control module 301 configured to control SAM and SIM chip select signals to be at a high level, so that the dual card management circuit is in a SIM card working mode;
the first initialization module 302 is configured to perform initialization processing on the SIM card software, and if the initialization of the SIM card software is successful, determine that the currently inserted card is a SIM card, and execute related operations of the SIM card;
a second control module 303, configured to control SAM and SIM chip select signal to be low level if the initialization of the SIM card software fails, so that the dual card management circuit is switched to SAM card working mode;
a second initialization module 304 configured to perform an initialization process for SAM card software, and then perform a SAM card software initialization process, and if the SAM card software initialization is successful, determine that the currently inserted card is a SAM card, and perform a SAM card related operation; if the SAM card software is failed in initialization, the fact that the card is not inserted or the card is abnormal is determined, and corresponding prompt information is sent out.
As mentioned above, with the development of communication technology, the demands of users for communication cards such as SIM cards, SAM cards, etc. are becoming more and more diversified, for example, two SIM cards are required for some users, 2SAM cards are required for some users, etc. In order to fully meet the card requirement of the user, some communication devices are provided with 3 cartridges with hardware version of 1sim+2sam or 2sim+1sam or 4 cartridges with hardware version of 2sim+2sam, but the above design of the prior art has the following problems: different hardware versions are needed to be used for designing the 1,3 card holders, and different hardware circuits are needed to be configured, so that unified maintenance cannot be realized, further the complexity of product maintenance is increased, and optimization of product cost is not facilitated; the design of 2,4 cassettes not only has the problems of 3 cassettes, but also has the problems of occupying more space of the machine tool and restricting the miniaturization and the compactness development of the machine tool.
In view of the above, in this embodiment, a dual card management apparatus is proposed that can switch between a SIM card and a SAM card according to the application requirements of a user under the control of the SIM card and SAM card signal switching circuit, and the SIM card and SAM card power switching circuit by designing the SIM card and SAM card universal card holder chip, the SIM card and SAM card signal switching circuit, and the SIM card and SAM card power switching circuit. The technical scheme is simple to realize and convenient to operate, not only can meet different requirements of different users, but also can realize unified maintenance of products on the premise of ensuring miniaturization and compactness of the machine tool, reduces the complexity of product maintenance, and is favorable for realizing optimization of product cost.
The present disclosure also discloses an electronic device, fig. 4 shows a block diagram of the electronic device according to an embodiment of the present disclosure, and as shown in fig. 4, the electronic device 400 includes a memory 401 and a processor 402; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory 401 is used to store one or more computer instructions, which are executed by the processor 402 to implement the above-described method steps.
Fig. 5 is a schematic diagram of a computer system suitable for use in implementing a dual card management method according to an embodiment of the present disclosure.
As shown in fig. 5, the computer system 500 includes a processing unit 501 that can execute various processes in the above-described embodiments in accordance with a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the computer system 500 are also stored. The processing unit 501, the ROM502, and the RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed. The processing unit 501 may be implemented as a processing unit such as CPU, GPU, TPU, FPGA, NPU.
In particular, according to embodiments of the present disclosure, the methods described above may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a medium readable thereby, the computer program comprising program code for performing the method. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 509, and/or installed from the removable medium 511.
The disclosed embodiments also disclose a computer program product comprising a computer program/instructions which, when executed by a processor, implement any of the method steps described above.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware. The units or modules described may also be provided in a processor, the names of which in some cases do not constitute a limitation of the unit or module itself.
As another aspect, the embodiments of the present disclosure also provide a computer-readable storage medium, which may be a computer-readable storage medium included in the apparatus described in the above-described embodiment; or may be a computer-readable storage medium, alone, that is not assembled into a device. The computer-readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the embodiments of the present disclosure.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the inventive concept. Such as the technical solution formed by mutually replacing the above-mentioned features and the technical features with similar functions (but not limited to) disclosed in the embodiments of the present disclosure.

Claims (8)

1. A dual card management circuit comprising: the SIM card and the SAM card are connected with the SIM card and the SAM card through the card seat chip, the SIM card and the SAM card signal switching circuit and the SIM card and the SAM card power switching circuit, wherein:
the SIM card and the SAM card are used for placing the SIM card and the SAM card by a card seat chip;
the SIM card and SAM card power switch circuit is connected with the SIM card and SAM card universal card seat chip and the SIM card and SAM card signal switch circuit, and the SIM card and SAM card power switch circuit and the SIM card and SAM card signal switch circuit are used for controlling the working states of the SIM card and SAM card placed in the SIM card and SAM card universal card seat chip by controlling the power conduction and signal conduction of the SIM card and SAM card universal card seat chip;
the SIM card and SAM card signal switching circuit comprises an SIM card signal switching circuit U2 and a SAM card signal switching circuit U1, wherein the SAM card signal switching circuit U1 comprises power supply pins VCCA and VCCB; reset pin U1-A2, with SIM card and SAM cartoon use the reset pin RST of the card seat chip to connect; reset pins U1-B2; clock pins U1-A3 are connected with a clock pin CLK of the SIM card and the SAM card universal card seat chip; clock pins U1-B3; the input/output pins U1-A4 are connected with the DATA pins DATA of the SIM card and the SAM card universal card seat chip; input/output pins U1-B4; a ground pin GND; enable pin OE; the enable pin OE is connected with one end of the fifth resistor R5 and the collector electrode of the fourth triode Q4; the other end of the fifth resistor R5 is connected with a first preset voltage; the emitter of the fourth triode Q4 is grounded, and the base electrode of the fourth triode Q4 is connected with one end of a sixth resistor R6; the other end of the sixth resistor R6 is connected with the SAM and the SIM chip select signal.
2. The circuit of claim 1, the SIM card and SAM card commonly used cartridge chip comprising a power supply pin VCC, a reset pin RST, a clock pin CLK, a DATA pin DATA, a ground pin GND, and a programming control pin VPP, wherein the DATA pin DATA is connected to the power supply pin VCC through a first resistor R1; the power supply pin VCC is grounded through a first capacitor C1.
3. The circuit of claim 2, wherein:
SAM and SIM power signals corresponding to the power pin VCC are connected to collectors of a first triode Q1 and a second triode Q2 of the SIM card and SAM card power switch circuit;
the SAM and the SIM reset signal corresponding to the reset pin RST are connected to the U1-A2 pin of the SAM card signal switch circuit U1 and the U2-A2 pin of the SIM card signal switch circuit U2;
the SAM and the SIM input/output signals corresponding to the DATA pin DATA are connected to the U1-A4 pins of the SAM card signal switch circuit U1 and the U2-A4 pins of the SIM card signal switch circuit U2;
the SAM and the SIM clock signals corresponding to the clock pin CLK are connected to the U1-A3 pins of the SAM card signal switch circuit U1 and the U2-A3 pins of the SIM card signal switch circuit U2.
4. A circuit according to any one of claims 1-3, the SIM card and SAM card power switching circuit comprising a first transistor Q1, a second transistor Q2, a third transistor Q3, a second resistor R2, a third resistor R3 and a fourth resistor R4, wherein:
the first triode Q1 and the second triode Q2 are PNP type triodes, and the third triode Q3 is an NPN type triode;
the emitter of the first triode Q1 is connected with a SAM power supply, the collector is connected with the SAM and a SIM power supply, the base is connected with one end of a second resistor R2, and the other end of the second resistor R2 is connected with the SAM and a SIM chip selection signal;
the emitter of the second triode Q2 is connected with one end of a SIM power supply and one end of a third resistor R3, the collector is connected with the SAM and the SIM power supply, and the base is connected with the collector of the third triode Q3;
the emitter of the third triode Q3 is grounded, the collector is connected with the base electrode of the second triode Q2, the base electrode is connected with one end of the fourth resistor R4, and the other end of the fourth resistor R4 is connected with the other end of the third resistor R3, and SAM and SIM chip selection signals.
5. The circuit of claim 1, wherein the fourth transistor Q4 is an NPN transistor.
6. The circuit of claim 5, wherein the SIM card signal switching circuit U2 includes power pins VCCA and VCCB; a reset pin U2-A2 is connected with the SIM card and a reset pin RST of the SIM card universal card seat chip; reset pins U2-B2; clock pin U2-A3, with SIM card and SIM card seat clock pin CLK of chip connect; clock pins U2-B3; the input/output pins U2-A4 are connected with the SIM card and the SIM card through the DATA pin DATA of the card seat chip; input/output pins U2-B4; a ground pin GND; enable pin OE; the enable pin OE is connected with one end of the seventh resistor R7 and one end of the eighth resistor R8; the other end of the seventh resistor R7 is connected with a second preset voltage; the other end of the eighth resistor R8 is connected to the SIM and the SIM chip select signal.
7. The circuit of claim 6, wherein:
the SAM and the SIM chip selection signal are controlled to be in low level, the first triode Q1 is conducted, the third triode Q3 and the second triode Q2 cannot be conducted, meanwhile, reset pins U1-A2 of the SAM card signal switch circuit U1 are internally conducted with reset pins U1-B2, clock pins U1-A3 are internally conducted with clock pins U1-B3, input and output pins U1-A4 are internally conducted with input and output pins U1-B4, internal conduction cannot be realized by corresponding pins of the SIM card signal switch circuit U2, and the SIM card and the SAM card are in a SAM card working mode through a card seat chip;
the SAM and the SIM chip selection signal are controlled to be in high level, the third triode Q3 and the second triode Q2 are conducted, the first triode Q1 cannot be conducted, meanwhile, the reset pin U2-A2 of the SIM card signal switching circuit U2 is internally conducted with the reset pin U2-B2, the clock pin U2-A3 is internally conducted with the clock pin U2-B3, the input and output pins U2-A4 are internally conducted with the input and output pins U2-B4, internal conduction cannot be realized by corresponding pins of the SAM card signal switching circuit U1, and the SIM card and the SAM card are in an SIM card working mode through a card seat chip.
8. A dual card management method applied to the dual card management circuit of any one of claims 1-7, the method comprising:
controlling SAM and SIM chip select signals to be high level, so that the dual-card management circuit is in a SIM card working mode;
initializing SIM card software, if the SIM card software is successfully initialized, determining the currently inserted card as the SIM card, and executing related operation of the SIM card;
if the initialization of the SIM card software fails, controlling SAM and SIM chip selection signals to be low level, so that the dual-card management circuit is switched into a SAM card working mode;
initializing SAM card software, then initializing SAM card software, if the SAM card software is initialized successfully, determining the currently inserted card as SAM card, executing SAM card related operation; if the SAM card software is failed in initialization, the fact that the card is not inserted or the card is abnormal is determined, and corresponding prompt information is sent out.
CN202210937234.3A 2022-08-05 2022-08-05 Dual card management circuit, method, apparatus, device, storage medium, and program product Active CN115412119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210937234.3A CN115412119B (en) 2022-08-05 2022-08-05 Dual card management circuit, method, apparatus, device, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210937234.3A CN115412119B (en) 2022-08-05 2022-08-05 Dual card management circuit, method, apparatus, device, storage medium, and program product

Publications (2)

Publication Number Publication Date
CN115412119A CN115412119A (en) 2022-11-29
CN115412119B true CN115412119B (en) 2023-05-12

Family

ID=84160291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210937234.3A Active CN115412119B (en) 2022-08-05 2022-08-05 Dual card management circuit, method, apparatus, device, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN115412119B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013167019A2 (en) * 2012-11-06 2013-11-14 中兴通讯股份有限公司 Double-mode and double-standby mobile terminal and communication method thereof
CN104794812A (en) * 2015-04-22 2015-07-22 深圳市数智国兴信息科技有限公司 Card swiping system and managing method thereof
JP2022091861A (en) * 2018-02-13 2022-06-21 華為技術有限公司 Card holder and portable terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2254207Y (en) * 1996-03-13 1997-05-14 刘庆良 Modular IC card bed
WO2006097780A1 (en) * 2005-03-17 2006-09-21 Nokia Corporation Universal card holder for electronic devices
CN210666834U (en) * 2019-11-12 2020-06-02 南京市人力资源和社会保障信息管理中心 Two unification read-write terminals of social security card entity card and electronic code

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013167019A2 (en) * 2012-11-06 2013-11-14 中兴通讯股份有限公司 Double-mode and double-standby mobile terminal and communication method thereof
CN104794812A (en) * 2015-04-22 2015-07-22 深圳市数智国兴信息科技有限公司 Card swiping system and managing method thereof
JP2022091861A (en) * 2018-02-13 2022-06-21 華為技術有限公司 Card holder and portable terminal

Also Published As

Publication number Publication date
CN115412119A (en) 2022-11-29

Similar Documents

Publication Publication Date Title
US6493770B1 (en) System for reconfiguring a peripheral device by downloading information from a host and electronically simulating a physical disconnection and reconnection to reconfigure the device
US5818781A (en) Automatic voltage detection in multiple voltage applications
US6384626B2 (en) Programmable apparatus and method for programming a programmable device
US6091617A (en) Automatic power supply selector for ACPI-compliant PCI devices
US6237103B1 (en) Power sequencing in a data processing system
US20120023320A1 (en) Bios chip recovery system and computer thereof
CN101147162A (en) Memory card with selective contact element and its operation method
CN109195189A (en) Double card switching method and apparatus
CN110246469A (en) The demura data application method of unified format
TWI785249B (en) Initialization methods and associated controller, memory device and host
CA3114121A1 (en) Memory card, memory card adapter, and terminal device
CN111050310A (en) Network switching method, device, terminal equipment and medium
CN115412119B (en) Dual card management circuit, method, apparatus, device, storage medium, and program product
US8533747B2 (en) Method and system for selecting one or more integrated circuit card interface devices
CN112099856A (en) Embedded system and starting method thereof
US7711881B2 (en) Method for restoring system configuration information of a network attached storage
US7159104B2 (en) Simplified memory detection
CN110275852B (en) Electronic device and hot plug protection circuit
CN114443150B (en) Method, system, terminal and storage medium for synchronizing factory information of switch
US8051153B2 (en) Switch apparatus for a remote boot sequence of a network device
CN115422110B (en) Port configuration method of electronic equipment and PCIE Switch chip
CN114121138B (en) Memory voltage testing method, device, computing equipment and system
CN111953753B (en) Communication device connection method, device, computer device and storage medium
CN116010315A (en) Hard disk backboard identification system, method, equipment and storage medium
CN112162730B (en) DSP software design method for realizing multifunctional CAN bus communication

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
GR01 Patent grant
GR01 Patent grant