CN111885592A - SIM card and IC card self-adapting method and device - Google Patents

SIM card and IC card self-adapting method and device Download PDF

Info

Publication number
CN111885592A
CN111885592A CN202010747973.7A CN202010747973A CN111885592A CN 111885592 A CN111885592 A CN 111885592A CN 202010747973 A CN202010747973 A CN 202010747973A CN 111885592 A CN111885592 A CN 111885592A
Authority
CN
China
Prior art keywords
card
signal
adaptive
sim
file system
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.)
Granted
Application number
CN202010747973.7A
Other languages
Chinese (zh)
Other versions
CN111885592B (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.)
Shenzhen Gaoge Communication Technology Co ltd
Original Assignee
Shenzhen Gaoge Communication 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 Shenzhen Gaoge Communication Technology Co ltd filed Critical Shenzhen Gaoge Communication Technology Co ltd
Priority to CN202010747973.7A priority Critical patent/CN111885592B/en
Publication of CN111885592A publication Critical patent/CN111885592A/en
Application granted granted Critical
Publication of CN111885592B publication Critical patent/CN111885592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a self-adaptive method of an SIM card and an IC card, which comprises the steps that a self-adaptive card slot for inserting the SIM card or the IC card is arranged on equipment; starting a device power supply and electrifying the self-adaptive card slot; judging whether a reset response ATR signal is acquired, if the reset response ATR signal is not acquired, returning a card-not-inserted or invalid card signal, and powering off the adaptive card slot; if the reset response ATR is obtained, returning a card-inserted signal; after receiving a card insertion signal, judging whether a DF file system is obtained or not, and if the DF file system is obtained, returning an SIM card insertion confirmation signal; executing the SIM card activation and network registration; if the DF file system is not obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user. And a SIM card and IC card adaptation apparatus. The invention can realize the identification and compatible support of the SIM card and the IC card in the same card slot.

Description

SIM card and IC card self-adapting method and device
Technical Field
The invention relates to the field of communication, in particular to a method and a device for self-adapting an SIM card and an IC card, which are compatible with the SIM card and the IC card simultaneously.
Background
In mobile phones and various electronic devices, it is becoming more common to provide SIM and IC card slots for identifying and operating SIM cards and IC cards, reading related data and implementing desired communication functions. The application of the SIM card and the IC card brings great convenience to the life and the work of people.
SIM card: the subscriber identity module allows a user to access a generic name for a class of cards of the operator's mobile network, including but not limited to: USIM (Universal Subscriber Identity Module), RUIM (RemovableUser Identity Module), CSIM (CDMA SIM), and ISIM (IMS SIM).
IC card: a generic term referring to a class of cards that meet ISO7816 protocols but cannot access a carrier's mobile network, including but not limited to: PSAM (purchase Secure Access Module), SAM (Secure Access Module), a bank IC card, a social security IC card, etc.
However, in the prior art, in the current electronic mobile device or other electronic terminals with SIM card and IC card slots, the card slot supporting the SIM card cannot read the IC card information, the card slot supporting the IC card cannot support the SIM card, or the user needs to determine and select whether the card slot is used for supporting the SIM card or the IC card. At present, electronic terminals capable of simultaneously supporting an SIM card and an IC card are realized by simultaneously arranging at least one SIM card slot and one IC card slot, if one card slot supports the IC card function, the SIM card function cannot be supported, so that a user can only use one SIM card and cannot realize dual-card dual-standby. Such an arrangement not only results in a waste of space, but also causes inconvenience in use for the user.
Disclosure of Invention
The invention aims to provide a self-adaptive method of an SIM card and an IC card, which realizes the simultaneous compatible support of the SIM card and the IC card in the same card slot.
The technical solution of the invention is as follows:
a SIM card and IC card adaptive method, comprising:
step one, arranging a self-adaptive card slot for inserting an SIM card or an IC card on equipment;
starting a device power supply and electrifying the self-adaptive card slot;
step three, judging whether a reset response ATR is acquired,
if the reset response ATR cannot be obtained, returning a card not inserted or invalid card signal, and powering off the adaptive card slot;
if the reset response ATR is obtained, returning a card-inserted signal;
step four, after receiving the card inserting signal, judging whether the DF file system is acquired or not,
if the DF file system is obtained, returning an SIM card insertion confirmation signal; executing the SIM card activation and network registration;
if the DF file system is not obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user.
The SIM card and IC card adaptive method as described above, wherein after obtaining the DF file system, further includes determining whether one or a combination of the ICCID, IMSI, and PL file systems is obtained;
if one or the combination of the ICCID, the IMSI and the PL file system is obtained, returning an SIM card insertion confirmation signal; executing the SIM card activation and network registration;
if the ICCID, the IMSI and/or the PL file system cannot be obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user.
The SIM card and IC card adaptation method as described above, wherein it includes:
a signal output display module is arranged on the equipment;
in step one, starting the signal output display module;
outputting a display signal for reading the card information of the slot in the second step;
in the third step and the fourth step, according to a card insertion confirmation signal returned by the SIM card or a card insertion confirmation signal returned by the IC card, informing a system frame layer that the card inserted in the self-adaptive card slot is the SIM card or the IC card; and displaying the card information on the user interface of the output display module.
The method for adapting an SIM card and an IC card as described above, wherein the step four of maintaining the power-on state of the IC card and waiting for the APDU interaction of the user includes:
performing APDU interaction on an IC card in the self-adaptive card slot, receiving FI and DI signals, and calculating the baud rate of the IC card;
and setting a self-adaptive card slot to read the baud rate of the IC card.
The SIM card and IC card adaptive method as described above, wherein in step four, the IC card power-on state is maintained, after the APDU interaction of the user is waited, the timeout time of the APDU interaction is set, and when the APDU interaction does not obtain the return information within the timeout time of the APDU interaction, a card pull-out signal or an invalid IC card signal is returned, and the adaptive card slot is powered down.
The invention also provides a SIM card and IC card self-adapting device, which comprises:
the equipment is provided with a self-adaptive card slot and is used for inserting an SIM card or an IC card;
the power-on module starts a device power supply and powers on the self-adaptive card slot;
the reset response module is used for judging whether a reset response ATR signal is acquired or not,
if the reset response ATR signal cannot be acquired, returning a card not inserted or invalid card signal, and powering off the adaptive card slot;
if the reset response ATR signal is obtained, returning a card-inserted signal;
the first file system judging module judges whether the DF file system is acquired or not after receiving the card inserting signal,
if the DF file system is obtained, returning an SIM card insertion confirmation signal; executing the SIM card activation and network registration;
if the DF file system is not obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user.
The SIM card and IC card adaptive apparatus as described above includes a second file system determining module, configured to:
after the DF file system is obtained, whether one or a combination of an ICCID, an IMSI and a PL file system is obtained is judged;
if one or the combination of the ICCID, the IMSI and the PL file system is obtained, returning an SIM card insertion confirmation signal; executing the SIM card activation and network registration;
if the ICCID, the IMSI and/or the PL file system cannot be obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user.
The SIM card and IC card adaptive apparatus as described above, wherein the apparatus comprises a signal output display module configured to:
starting the signal output display module to display the card inserting state of the self-adaptive card slot;
outputting a display signal for reading card information of the slot;
notifying a system frame layer that the card inserted in the self-adaptive card slot is an SIM card or an IC card according to a card insertion confirmation signal returned to the SIM card or a card insertion confirmation signal returned to the IC card; and displaying the information of the card inserted on the user interface of the signal output display module.
The SIM card and IC card adaptive apparatus as described above, wherein the apparatus includes an APDU interaction module, configured to:
keeping the power-on state of the IC card, after waiting for APDU interaction of a user, carrying out APDU interaction on the IC card in the self-adaptive card slot, receiving FI and DI signals, and calculating the baud rate of the IC card;
and setting a self-adaptive card slot to read the baud rate of the IC card.
The SIM card and IC card adaptive apparatus as described above, wherein the apparatus includes an APDU interaction timeout module, configured to:
and when the APDU interaction does not acquire return information within the APDU interaction timeout period, returning a card pulled-out signal or an invalid IC card signal, and powering down the adaptive card slot.
From the above description, it is clear that the present invention has the following advantages:
the SIM card and the IC card self-adaptive method and device can identify the SIM card and the IC card in the same card slot, and automatically switch into the card reading mode corresponding to the SIM card or the IC card after identification, thereby realizing the compatible use of different SIM cards and IC cards in the same card slot, effectively improving the use efficiency of the SIM card and the IC card slot in electronic equipment, and solving the problem that the same card slot can not identify and support the SIM card and the IC card. Meanwhile, an application interface setting scheme of the self-adaptive card slot compatible with the SIM card and the IC card is further provided, so that a user can inquire the information state of the self-adaptive card slot of the equipment and set compatible parameters, the adaptive capacity of the self-adaptive card slot compatible with the SIM card and the IC card is further improved, and an operable technical platform is provided for research personnel and the user to further configure different requirements of card identification and reading.
Drawings
FIG. 1 is a schematic diagram of the main file system partitioning of one of the SIM cards;
FIG. 2 is a schematic diagram illustrating the identification process of the SIM card and the IC card according to the preferred embodiment of the present invention;
FIG. 3 is a flow chart of a signal output display module according to a preferred embodiment of the present invention;
FIG. 4 is a flow chart of the adaptive method for SIM card and IC card according to the preferred embodiment of the present invention.
Detailed Description
In order to more clearly understand the technical features, objects, and effects of the present invention, embodiments of the present invention will now be described with reference to the accompanying drawings.
The invention realizes that the same card slot can be compatible with the functions of the SIM card and the IC card simultaneously by identifying and supporting the SIM card and the IC card in one card slot, thereby effectively improving the use efficiency of the card slot in the equipment and bringing greater convenience for the use of the card of the electronic equipment in work and life of people.
As shown in fig. 1, is a typical form of the main file system partition of the SIM card. Both SIM cards and IC cards are required to meet the basic ISO7816 protocol, and they differ mainly in the file system present therein.
The invention realizes the automatic identification of the SIM card and the IC card in the same card slot by different acquisition modes of the SIM card and the IC file system. The following is a detailed description of the preferred embodiments of the present invention:
referring to fig. 2, a method for adapting a SIM card and an IC card according to the present invention in a preferred embodiment includes:
s101, arranging a self-adaptive card slot for inserting an SIM card or an IC card on equipment;
s102, starting a device power supply, and electrifying the self-adaptive card slot;
step S103, judging whether a reset response ATR signal is acquired or not,
if the reset response ATR signal cannot be acquired, returning a card not inserted or invalid card signal, and powering off the adaptive card slot;
if the reset response ATR signal is obtained, returning a card-inserted signal;
s104, judging whether a DF file system is acquired or not after receiving the card inserting signal,
if the DF file system is obtained, returning an SIM card insertion confirmation signal; activating the SIM card and registering the network, and then performing APDU interaction;
if the DF file system is not obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user.
As shown in the figure, the present invention firstly needs to configure an adaptive card slot capable of inserting a SIM card or an IC on a device, and the connection terminal in the card slot can simultaneously adapt to the configuration position of each connection terminal of the SIM card and the IC card, so as to implement power-on and data transmission. After the power supply is started, the self-adaptive card slot can perform power-on operation on the inserted card; of course, the voltage for powering up needs to be set according to actual conditions, and includes voltage values such as 1.8V, 3.0V and 5V. The purpose of automatic power-on can be realized by different setting voltages on the continuous turns. Of course, when the power-on voltage is accurate, the relevant response signal is acquired, then the power-on voltage does not change any more, and the communication with the card is determined according to the voltage.
After the power is on, whether a SIM card or an IC card is inserted is judged by checking whether an ATR signal of a reset response is obtained or not, if the ATR signal is not obtained, the SIM card or the IC card is not inserted or an invalid card is inserted, and at the moment, the adaptive card slot is controlled to perform power-off operation on the SIM card or the IC card.
And when the ATR signal is obtained by checking, the inserted card is indicated to be a valid card, namely a SIM card or an IC card, and then the judgment stage of the SIM card and the IC card is started. Because the file systems of the SIM card and the IC card are different, after the ATR signal is obtained, whether a DF file system (such as one of the SIM card file systems shown in FIG. 1) can be obtained is further checked, the SIM card file system necessarily comprises the DF file system, and therefore, if the DF file system data can be obtained, the inserted card can be the SIM card by default; and if the DF file system cannot be acquired, the inserted card is the IC card by default.
After the card is determined to be the SIM card, activation or network registration operation may be started, and subsequently APDU interactive communication of the SIM card is performed. And when the card is determined to be the IC card, the power-on state of the IC card is maintained according to preset or self-adaptive parameters, and the start of APDU interaction of the IC card is waited.
Therefore, by the SIM card and IC card self-adapting method, the SIM card or the IC card can be automatically identified no matter the SIM card or the IC card is inserted into the same self-adapting card slot, and after the identification is finished, the electrification and communication of the card slot can be controlled according to different data reading modes of the SIM card or the IC card, so that the effect that the SIM card and the IC card are compatible in the same card slot is realized.
Furthermore, the invention also comprises an APDU interactive reporting mode for setting the SIM card and the IC card, after the returned 61XX or 6CXX status words are obtained through APDU interaction, the system framework layer can be selected to obtain the subsequent instructions and data by setting the reporting mode, and then the application program can obtain the instructions and data from the system framework layer; or choose to have the application actively fetch instructions and data directly.
In the foregoing method for adapting a SIM card and an IC card according to the present invention, in a preferred embodiment, after obtaining the DF file system, the method further includes determining whether one or a combination of the ICCID, the IMSI, and the PL file system is obtained;
if one or the combination of the ICCID, the IMSI and the PL file system is obtained, returning an SIM card insertion confirmation signal; executing the SIM card activation and network registration;
if the ICCID, the IMSI and/or the PL file system cannot be obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user.
The DF file system of the SIM card comprises an ICCID file system, an IMSI file system and a PL file system, so that the accuracy of the inserted card as the SIM card is further confirmed by confirming whether the file system can be acquired or not. If the further acquired file system is one or a combination of the ICCID, the IMSI and the PL file systems, the card is considered as the SIM card, and then subsequent communication operations such as SIM card activation, registration and the like are carried out.
As described above, in the preferred embodiment of the SIM card and IC card adaptive method of the present invention, please refer to fig. 3, which is a schematic diagram of a signal output display module of the present invention, and the method includes:
a signal output display module is arranged on the equipment;
in step one, starting the signal output display module;
outputting a display signal for reading the card information of the slot in the second step;
in the third step and the fourth step, according to a card insertion confirmation signal returned by the SIM card or a card insertion confirmation signal returned by the IC card, informing a system frame layer that the card inserted in the self-adaptive card slot is the SIM card or the IC card; and displaying the card information on the user interface of the output display module.
In a preferred embodiment, the signal output display module may be an adaptive card slot Application (AP) installed in the device, and a display screen.
When the power supply of the equipment is started to power on the self-adaptive card slot, a starting interface of an application user interface is displayed on the display screen, for example, the main interface of the application user interface is started; when the process of electrifying the card in the self-adaptive card slot in the step two is carried out, a return signal of the SIM card and the like are obtained, and a graphical indication of the obtained signal after electrification appears in an application user interface; and in the third step and the fourth step, according to the judgment result, displaying an icon that the card in the self-adaptive card slot is the SIM card or the IC card on the application user interface. Through the arrangement of the signal output module, the output display of the application user interface is better, and a more intuitive identification process of the self-adaptive card slot and the monitoring of the card state can be brought to a user. The application program displays the card slot reading state and the final mode of whether the card in the card slot is an SIM card or an IC card on a user interface through the signal and data acquisition of the card slot, and informs the user of the use condition of the card slot and the specific parameters of the card in the card operation.
In the foregoing preferred embodiment of the SIM card and IC card adaptive method according to the present invention, after the step four, in which the IC card is kept in the power-on state and the APDU of the user is waited to interact, the method includes: performing APDU interaction on an IC card in the self-adaptive card slot, receiving Fi and Di signals, and calculating the baud rate of the IC card; and setting a self-adaptive card slot to read the baud rate of the IC card.
Fi is a clock rate conversion factor (clock rate conversion factor), which is a frequency divider parameter, and decomposes the internal clock signal of the card reader to finally obtain the frequency F/Fi. And Di is a bit rate adjustment factor (bit rate adjustment factor), and the calculation formula is F × Di/Fi.
The Baud rate value during the IC card identification can be obtained by calculating Fi and Di returned by the IC card, and the Baud rate matched with the IC card is set in a signal clock for reading the IC card, so that the self-adaptive identification and support of the IC card are realized; of course, when different IC cards are used, the situation that the IC cards cannot be identified due to different baud rates can be met, and the purpose that different IC cards can be identified is achieved by setting the card slot to read the baud rate of the IC cards through the method and the device.
In the foregoing SIM card and IC card adaptive method according to the present invention, in the preferred embodiment of the present invention, in step four, the IC card power-on state is maintained, after the APDU interaction of the user is waited, the time-out time of the APDU interaction is set, and when the APDU interaction does not obtain the return information within the time-out time of the APDU interaction, a card unplugged signal or an invalid IC card signal is returned, and the adaptive card slot is powered off. The invention can set the overtime time of APDU interaction to realize the control of card slot card plugging and unplugging.
As described above, the present invention not only provides the functions of identifying and supporting the SIM card and the IC in the same card slot, but also provides a plurality of interfaces for monitoring and controlling parameters of each interface, adjusting the card reading setting of the adaptive card slot, and realizing a more flexible card reading function of the IC card.
The present invention also provides a SIM card and IC card adaptive device, which in the preferred embodiment comprises:
the equipment is provided with a self-adaptive card slot and is used for inserting an SIM card or an IC card;
the power-on module starts a device power supply and powers on the self-adaptive card slot;
a reset response module used for judging whether a reset response ATR is acquired,
if the reset response ATR cannot be obtained, returning a card not inserted or invalid card signal, and powering off the adaptive card slot;
if the reset response ATR is obtained, returning a card-inserted signal;
the first file system judging module judges whether the DF file system is acquired or not after receiving the card inserting signal,
if the DF file system is obtained, returning an SIM card insertion confirmation signal; executing the SIM card activation and network registration;
if the DF file system is not obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user.
The preferred embodiment of the SIM card and IC card adaptive device of the present invention as described above is summarized as including a second file system determining module, configured to determine whether to acquire one or a combination of ICCID, IMSI, and PL file systems after acquiring the DF file system;
if one or the combination of the ICCID, the IMSI and the PL file system is obtained, returning an SIM card insertion confirmation signal; executing the SIM card activation and network registration;
if the ICCID, the IMSI and/or the PL file system cannot be obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user.
In the above-mentioned SIM card and IC card adaptive device of the present invention, in a preferred embodiment, the device includes a signal output display module, configured to start the signal output display module, and display the card insertion status of the adaptive card slot; outputting a display signal for reading card information of the slot; notifying a system framework layer that the card inserted in the self-adaptive card slot is an SIM card or an IC card according to a card insertion confirmation signal returned to the SIM card or a card insertion confirmation signal returned to the IC card; and displaying the information of the card inserted on the user interface of the signal output display module.
In the above-mentioned SIM card and IC card adaptive apparatus of the present invention, in a preferred embodiment, the apparatus includes an APDU interaction module, configured to perform APDU interaction on an IC card in an adaptive card slot after maintaining a power-on state of the IC card and waiting for APDU interaction of a user, receive FI and DI signals, and calculate a baud rate of the IC card; and setting a self-adaptive card slot to read the baud rate of the IC card.
In the above-mentioned SIM card and IC card adaptive device according to the present invention, in a preferred embodiment, the device includes an APDU interaction timeout module, configured to set a timeout time of APDU interaction after the IC card is kept in the power-on state and the APDU interaction of the user is waited, and when the APDU interaction does not obtain the return information within the timeout time of the APDU interaction, return a card unplugged signal or an invalid IC card signal, and power down the adaptive card slot.
The embodiment of the present invention provides an adaptive device for a SIM card and an IC card, which can implement the method embodiment provided above, and please refer to the description in the method embodiment for specific function implementation.
It should be understood that the specific order or hierarchy of steps in the processes disclosed is an example of exemplary approaches. Based upon design preferences, it is understood that the specific order or hierarchy of steps in the processes may be rearranged without departing from the scope of the present disclosure. The accompanying method claims present elements of the various steps in a sample order, and are not intended to be limited to the specific order or hierarchy presented.
In the foregoing detailed description, various features are grouped together in a single embodiment for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the claimed embodiments of the subject matter require more features than are expressly recited in each claim. Rather, as the following claims reflect, invention lies in less than all features of a single disclosed embodiment. Thus, the following claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. To those skilled in the art; various modifications to these embodiments will be readily apparent, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
What has been described above includes examples of one or more embodiments. It is, of course, not possible to describe every conceivable combination of components or methodologies for purposes of describing the aforementioned embodiments, but one of ordinary skill in the art may recognize that many further combinations and permutations of various embodiments are possible. Accordingly, the embodiments described herein are intended to embrace all such alterations, modifications and variations that fall within the scope of the appended claims. Furthermore, to the extent that the term "includes" is used in either the detailed description or the claims, such term is intended to be inclusive in a manner similar to the term "comprising" as "comprising" is interpreted when employed as a transitional word in a claim. Furthermore, any use of the term "or" in the specification of the claims is intended to mean a "non-exclusive or".
Those of skill in the art will further appreciate that the various illustrative logical blocks, units, and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate the interchangeability of hardware and software, various illustrative components, elements, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design requirements of the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
The various illustrative logical blocks, or elements, described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. For example, a storage medium may be coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC, which may be located in a user terminal. In the alternative, the processor and the storage medium may reside in different components in a user terminal.
In one or more exemplary designs, the functions described above in connection with the embodiments of the invention may be implemented in hardware, software, firmware, or any combination of the three. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media that facilitate transfer of a computer program from one place to another. Storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, such computer-readable media can include, but is not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to carry or store program code in the form of instructions or data structures and which can be read by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Additionally, any connection is properly termed a computer-readable medium, and, thus, is included if the software is transmitted from a website, server, or other remote source via a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wirelessly, e.g., infrared, radio, and microwave. Such discs (disk) and disks (disc) include compact disks, laser disks, optical disks, DVDs, floppy disks and blu-ray disks where disks usually reproduce data magnetically, while disks usually reproduce data optically with lasers. Combinations of the above may also be included in the computer-readable medium.
The above description is only an exemplary embodiment of the present invention, and is not intended to limit the scope of the present invention. Any equivalent changes and modifications that can be made by one skilled in the art without departing from the spirit and principles of the invention should fall within the protection scope of the invention.

Claims (10)

1. A SIM card and IC card adaptive method, characterized by comprising:
step one, arranging a self-adaptive card slot for inserting an SIM card or an IC card on equipment;
starting a device power supply and electrifying the self-adaptive card slot;
step three, judging whether a reset response ATR is acquired,
if the reset response ATR cannot be obtained, returning a card not inserted or invalid card signal, and powering off the adaptive card slot;
if the reset response ATR is obtained, returning a card-inserted signal;
step four, after receiving the card inserting signal, judging whether the DF file system is acquired or not,
if the DF file system is obtained, returning an SIM card insertion confirmation signal; activating the SIM card and registering the network, and then performing APDU interaction;
if the DF file system is not obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user.
2. The SIM card and IC card adaptation method according to claim 1, further comprising determining whether one or a combination of ICCID, IMSI, and PL file system is obtained after obtaining the DF file system;
if one or the combination of the ICCID, the IMSI and the PL file system is obtained, returning an SIM card insertion confirmation signal; executing the SIM card activation and network registration;
if the ICCID, the IMSI and/or the PL file system cannot be obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user.
3. The SIM card and IC card adaptation method according to claim 2, comprising:
a signal output display module is arranged on the equipment;
in step one, starting the signal output display module;
outputting a display signal for reading the card information of the slot in the second step;
in the third step and the fourth step, according to a card insertion confirmation signal returned by the SIM card or a card insertion confirmation signal returned by the IC card, informing a system frame layer that the card inserted in the self-adaptive card slot is the SIM card or the IC card; and displaying the card information on the user interface of the output display module.
4. The SIM card and IC card adapting method according to claim 3, wherein the keeping the IC card power-on state in the fourth step, after waiting for the APDU interaction of the user, comprises:
performing APDU interaction on an IC card in the self-adaptive card slot, receiving FI and DI signals, and calculating the baud rate of the IC card;
and setting a self-adaptive card slot to read the baud rate of the IC card.
5. The SIM card and IC card adapting method according to claim 4, wherein in step four, the IC card power-on state is maintained, after the APDU interaction of the user is waited, the timeout time of the APDU interaction is set, and when the APDU interaction does not obtain the return information within the timeout time of the APDU interaction, a card pull-out signal or an invalid IC card signal is returned, and the adaptive card slot is powered off.
6. An apparatus for adapting a SIM card and an IC card, comprising:
the equipment is provided with a self-adaptive card slot and is used for inserting an SIM card or an IC card;
the power-on module starts a device power supply and powers on the self-adaptive card slot;
a reset response module used for judging whether a reset response ATR is acquired,
if the reset response ATR cannot be obtained, returning a card not inserted or invalid card signal, and powering off the adaptive card slot;
if the reset response ATR is obtained, returning a card-inserted signal;
the first file system judging module judges whether the DF file system is acquired or not after receiving the card inserting signal,
if the DF file system is obtained, returning an SIM card insertion confirmation signal; executing the SIM card activation and network registration;
if the DF file system is not obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user.
7. The SIM card and IC card adapting device according to claim 6, comprising a second file system judging module for:
after the DF file system is obtained, whether one or a combination of an ICCID, an IMSI and a PL file system is obtained is judged;
if one or the combination of the ICCID, the IMSI and the PL file system is obtained, returning an SIM card insertion confirmation signal; activating the SIM card and registering the network, and then performing APDU interaction;
if the ICCID, the IMSI and/or the PL file system cannot be obtained, returning an IC card insertion confirmation signal; keeping the power-on state of the IC card and waiting for APDU interaction of the user.
8. The SIM card and IC card adapting device according to claim 7, comprising a signal output display module for:
starting the signal output display module to display the card inserting state of the self-adaptive card slot;
outputting a display signal for reading card information of the slot;
notifying a system frame layer that the card inserted in the self-adaptive card slot is an SIM card or an IC card according to a card insertion confirmation signal returned to the SIM card or a card insertion confirmation signal returned to the IC card; and displaying the information of the card inserted on the user interface of the signal output display module.
9. The SIM card and IC card adaptation apparatus of claim 8, comprising an APDU interaction module for:
keeping the power-on state of the IC card, after waiting for APDU interaction of a user, carrying out APDU interaction on the IC card in the self-adaptive card slot, receiving FI and DI signals, and calculating the baud rate of the IC card;
and setting a self-adaptive card slot to read the baud rate of the IC card.
10. The SIM card and IC card adaptation apparatus of claim 9, comprising an APDU interaction timeout module for:
and when the APDU interaction does not acquire return information within the APDU interaction timeout period, returning a card pulled-out signal or an invalid IC card signal, and powering down the adaptive card slot.
CN202010747973.7A 2020-07-30 2020-07-30 SIM card and IC card self-adapting method and device Active CN111885592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010747973.7A CN111885592B (en) 2020-07-30 2020-07-30 SIM card and IC card self-adapting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010747973.7A CN111885592B (en) 2020-07-30 2020-07-30 SIM card and IC card self-adapting method and device

Publications (2)

Publication Number Publication Date
CN111885592A true CN111885592A (en) 2020-11-03
CN111885592B CN111885592B (en) 2023-03-31

Family

ID=73201291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010747973.7A Active CN111885592B (en) 2020-07-30 2020-07-30 SIM card and IC card self-adapting method and device

Country Status (1)

Country Link
CN (1) CN111885592B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1414765A (en) * 2001-10-26 2003-04-30 华为技术有限公司 New type user identification module using USB interface
EP1523205A2 (en) * 2003-10-10 2005-04-13 Option Method and algorithm for accessing a smart card stored in a telecommunications card from a host device to which said telecommunications card is connected
KR20060024852A (en) * 2004-09-15 2006-03-20 삼성전자주식회사 Method for interfacing between sim(subscriber identification module) card and mobile terminal
CN101385038A (en) * 2006-02-17 2009-03-11 客得富移动通信股份有限公司 Ic card, terminal with ic card and initializing method thereof
US20100103995A1 (en) * 2008-10-27 2010-04-29 Samsung Electronics Co., Ltd. Apparatus and method for controlling universal IC card in complex terminal
CN102111487A (en) * 2009-12-28 2011-06-29 重庆重邮信科通信技术有限公司 Method and device for realizing global system for mobile communications (GSM) terminal to access 3G universal subscriber identity module (USIM) card
CN202584167U (en) * 2012-03-01 2012-12-05 福建三喜电子有限公司 Multifunctional card reader
CN102984643A (en) * 2012-11-09 2013-03-20 深圳市广和通实业发展有限公司 Method and device for transmitting of subscriber identity module (SIM) card data
CN104185179A (en) * 2013-05-27 2014-12-03 中国移动通信集团公司 Control apparatus and method for subscriber identity module, and subscriber identity module
CN107748840A (en) * 2017-10-24 2018-03-02 东信和平科技股份有限公司 A kind of system and method for chip on activation IC-card

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1414765A (en) * 2001-10-26 2003-04-30 华为技术有限公司 New type user identification module using USB interface
EP1523205A2 (en) * 2003-10-10 2005-04-13 Option Method and algorithm for accessing a smart card stored in a telecommunications card from a host device to which said telecommunications card is connected
KR20060024852A (en) * 2004-09-15 2006-03-20 삼성전자주식회사 Method for interfacing between sim(subscriber identification module) card and mobile terminal
CN101385038A (en) * 2006-02-17 2009-03-11 客得富移动通信股份有限公司 Ic card, terminal with ic card and initializing method thereof
US20100103995A1 (en) * 2008-10-27 2010-04-29 Samsung Electronics Co., Ltd. Apparatus and method for controlling universal IC card in complex terminal
CN102111487A (en) * 2009-12-28 2011-06-29 重庆重邮信科通信技术有限公司 Method and device for realizing global system for mobile communications (GSM) terminal to access 3G universal subscriber identity module (USIM) card
CN202584167U (en) * 2012-03-01 2012-12-05 福建三喜电子有限公司 Multifunctional card reader
CN102984643A (en) * 2012-11-09 2013-03-20 深圳市广和通实业发展有限公司 Method and device for transmitting of subscriber identity module (SIM) card data
CN104185179A (en) * 2013-05-27 2014-12-03 中国移动通信集团公司 Control apparatus and method for subscriber identity module, and subscriber identity module
CN107748840A (en) * 2017-10-24 2018-03-02 东信和平科技股份有限公司 A kind of system and method for chip on activation IC-card

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
俞斌: "基于MicroSIM卡和NanoSIM卡的二切三切卡的一卡六芯工艺的开发与研究", 《中国优秀硕士学位论文辑》 *

Also Published As

Publication number Publication date
CN111885592B (en) 2023-03-31

Similar Documents

Publication Publication Date Title
CN108336778B (en) Charging control method and electronic device supporting same
CN100542314C (en) Dual mode mobile communication terminal and auto-recognition card are also selected the method for drive pattern
US20180103370A1 (en) Method and apparatus for installing terminal profile in wireless communication system
EP2251986A1 (en) A near field communication device
KR101047899B1 (en) User interface automatic generation and industrial facility controlling system using portable terminal
EP2912524B1 (en) System and method for exchanging support data with a device having no physical user interface
EP2704041A1 (en) Method for storing application data and terminal device
US9729205B2 (en) Battery management scheme for NFC
TW200937973A (en) System for initiating subscriber identity card and method for initiating operating voltages of a first subscriber identity card and a second subscriber identity card of a mobile station
CN108521647B (en) Bluetooth SIM card pairing method and Bluetooth master device
EP1255417B1 (en) Apparatus and method for certificating SIM card owner in GSM terminal
CN103687061A (en) Method and terminal for establishing connection
WO2015172486A1 (en) Auto-adaptation method and device for subscriber identity module card and terminal
US7599684B2 (en) Automatic setting method for terminal information using subscriber identity module
CN111885592B (en) SIM card and IC card self-adapting method and device
CN102324051A (en) Electronic bank card capable of bearing magnetic-stripe card
CN106776383B (en) Memory card identification method and device and electronic equipment
CN104216728A (en) Method for connecting USB network card, USB network card and PC
JP6019950B2 (en) Power supply apparatus and method, and program
CN115103392B (en) ESIM terminal test method, instrument, portal server, device and system
EP3129913B1 (en) User identity module protocol switch
KR20150146327A (en) Wireless charging equipment, terminal, service providing device, wireless charging system comprising the same, control method thereof and computer readable medium having computer program recorded therefor
CN114615656A (en) Method, system and related device for managing eSIM card in electronic equipment
CN112448832A (en) Household appliance network distribution method, device and equipment
CN116546471A (en) Bluetooth connection method of toothbrush equipment, terminal equipment and toothbrush equipment

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