CN111221584A - Terminal single-card and double-card adapting method and device, computer equipment and storage medium - Google Patents

Terminal single-card and double-card adapting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111221584A
CN111221584A CN202010009913.5A CN202010009913A CN111221584A CN 111221584 A CN111221584 A CN 111221584A CN 202010009913 A CN202010009913 A CN 202010009913A CN 111221584 A CN111221584 A CN 111221584A
Authority
CN
China
Prior art keywords
card
identification
configuration parameters
smart card
dual
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.)
Pending
Application number
CN202010009913.5A
Other languages
Chinese (zh)
Inventor
张闯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wingtech Electronic Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic 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 Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN202010009913.5A priority Critical patent/CN111221584A/en
Publication of CN111221584A publication Critical patent/CN111221584A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The invention discloses a terminal single-card and double-card adapting method, a device, computer equipment and a storage medium, wherein an intelligent card is arranged in a terminal, and the method comprises the following steps: reading the identification of the smart card, wherein the identification of the smart card comprises a first identification or a second identification, the first identification comprises the identification of an entity smart card and the identification of a virtual smart card at the same time, and the second identification comprises the identification of the entity smart card; loading corresponding configuration parameters according to the identification of the intelligent card, wherein the configuration parameters comprise dual-card configuration parameters based on dual cards and single-card configuration parameters based on single cards; and loading corresponding configuration files for the intelligent card module according to the configuration parameters, wherein the configuration files comprise dual-card configuration files based on dual cards and single-card configuration files based on single cards. The technical scheme of the invention realizes the effect of the dynamic adaptation function of the single card and the double cards with lower cost.

Description

Terminal single-card and double-card adapting method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a terminal single-card and double-card adapting method, a terminal single-card and double-card adapting device, computer equipment and a storage medium.
Background
The notebook computer of the Windows10 system relates to a high-pass baseband chip supporting SIM card/eSIM card for real-time data networking, and due to the particularity of the Windows system, the hardware of the notebook computer can only support two modes, namely a dual-card DSSA (Dual simple activation) mode and a Single-card SSSS (Single SIM Single Standy) mode, so that the corresponding software version system in the development of an operating system can only support a Single card or two cards.
Disclosure of Invention
The invention provides a terminal single-double card adapting method, a terminal single-double card adapting device, computer equipment and a storage medium, so as to realize a single-double card dynamic adapting function with lower cost.
In an embodiment, an embodiment of the present invention provides a terminal single/dual card adapting method, including:
reading the identification of the smart card, wherein the identification of the smart card comprises a first identification or a second identification, the first identification comprises the identification of an entity smart card and the identification of a virtual smart card at the same time, and the second identification comprises the identification of the entity smart card;
loading corresponding configuration parameters according to the identification of the intelligent card, wherein the configuration parameters comprise dual-card configuration parameters based on dual cards and single-card configuration parameters based on single cards;
and loading corresponding configuration files for the intelligent card module according to the configuration parameters, wherein the configuration files comprise dual-card configuration files based on dual cards and single-card configuration files based on single cards.
In an embodiment, an embodiment of the present invention further provides a terminal single/dual card adapter device, including:
the card reading detection module is used for reading the identification of the intelligent card, the identification of the intelligent card comprises a first identification or a second identification, the first identification comprises the identification of an entity intelligent card and the identification of a virtual intelligent card at the same time, and the second identification comprises the identification of the entity intelligent card;
the configuration parameter loading module is used for loading corresponding configuration parameters according to the identification of the intelligent card, and the configuration parameters comprise dual-card configuration parameters based on dual cards and single-card configuration parameters based on single cards;
and the configuration file loading module is used for loading a corresponding configuration file for the intelligent card module according to the configuration parameters, wherein the configuration file comprises a double-card configuration file based on double cards and a single-card configuration file based on single cards.
In an embodiment, an embodiment of the present invention further provides a computer device, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a terminal single-dual card adaptation method as described above.
In an embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the terminal single-card and dual-card adapting method as described above.
According to the technical scheme, based on the intelligent card arranged in the terminal, the corresponding configuration parameters are loaded by reading the identification of the intelligent card, when the identification of the intelligent card comprises the identification of the virtual intelligent card, the corresponding double-card configuration parameters are loaded, and then the corresponding double-card configuration files are loaded according to the double-card configuration parameters; when the identification of the intelligent card does not contain the identification of the virtual intelligent card and only comprises the identification of the entity intelligent card, loading the corresponding single card configuration parameters, and further loading the corresponding single card configuration file according to the single card configuration parameters; the updating of the drive system of the intelligent terminal based on double cards or single card can be automatically adapted aiming at the same drive updating system, the cost is reduced, and the effect of single-double card adapting of the intelligent terminal with lower cost is achieved.
Drawings
Fig. 1 is a flowchart of a terminal single-card and dual-card adapting method in an embodiment of the present invention.
Fig. 2 is a flowchart of a terminal single-card and dual-card adapting method in an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal single-card and dual-card adapting device in an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first identifier may be termed a second identifier, and, similarly, a second identifier may be termed a first identifier, without departing from the scope of the present application. The first identity and the second identity are both identities, but they are not the same identity. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In an embodiment, fig. 1 is a flowchart of a terminal single/dual card adapting method according to an embodiment of the present invention, where the present embodiment is applicable to a terminal single/dual card adapting situation, and the method may be executed by … …, and specifically includes the following steps:
s110, reading the identification of the intelligent card, wherein the identification of the intelligent card comprises a first identification or a second identification, the first identification comprises the identification of an entity intelligent card and the identification of a virtual intelligent card at the same time, and the second identification comprises the identification of the entity intelligent card;
in this embodiment, the terminal may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like. For example, the current WoS notebook computer system is a Windows10 system, a corresponding software version system in development can only support a single card or a double card, and in order to enable the software version system to correspond to an actual notebook computer, it may detect the identifiers of all the smart cards in the smart card module of the notebook computer, whether the identifiers include the identifiers of an entity smart card and a virtual smart card or only the identifier of the entity smart card, and may also detect whether a virtual smart card is configured on a chip of the notebook computer, and for example, may detect whether the ID of the virtual smart card exists in the smart card module. The intelligent card module is a module used for processing SIM card access and information exchange by the terminal.
S120, loading corresponding configuration parameters according to the identification of the smart card, wherein the configuration parameters comprise dual-card configuration parameters based on dual cards and single-card configuration parameters based on single cards;
in this embodiment, the configuration parameter may be a Non-volatile storage (NV) parameter, an Embedded File System (EFS) File, an application program, and the like, so that the notebook computer can access a network of a bound operator and load application software of the operator. The NV parameter is a configuration parameter corresponding to each module stored in the notebook computer, and is used, for example, to mark an operator network allowed to be registered in the notebook computer; the EFS file is an important information component for accessing the identity card number, the physical address of the wireless network card and network setting of the notebook computer. NV parameters and EFS files are important components for accessing the network provided by the operator. In this embodiment, whether the hardware configuration of the notebook computer belongs to a dual card or a single card may be determined by the smart card identifier detected in step 110, and the NV parameters related to the dual card and the EFS file or the NV parameters related to the single card and the EFS file are loaded correspondingly. Optionally, the dual-card configuration parameter may be set as a default configuration, or the single-card configuration parameter may be set as a default configuration, which is not limited herein.
S130, loading corresponding configuration files for the intelligent card module according to the configuration parameters, wherein the configuration files comprise a double-card configuration file based on double cards and a single-card configuration file based on single cards.
In this embodiment, the configuration file may include the number of smart cards supported by the configuration smart card module, and the network capabilities that each smart card can support. The dual card configuration file indicates that the configuration file can support two smart cards, and this embodiment supports one physical smart card and one virtual smart card, and can be dual-card dual-standby or dual-card dual-pass, and the like. The single card configuration file indicates that only one smart card is supported, and only one physical smart card is supported in the embodiment. In this embodiment, a dual card configuration file or a single card configuration file is loaded correspondingly according to a dual card configuration parameter for a dual card or a single card configuration parameter for a single card to which the configuration parameter belongs.
According to the technical scheme of the embodiment of the invention, based on the intelligent card arranged in the terminal, the corresponding configuration parameters are loaded by reading the identification of the intelligent card, when the identification of the intelligent card comprises the identification of the virtual intelligent card, the corresponding double-card configuration parameters are loaded, and then the corresponding double-card configuration files are loaded according to the double-card configuration parameters; when the identification of the intelligent card does not contain the identification of the virtual intelligent card and only comprises the identification of the entity intelligent card, loading the corresponding single card configuration parameters, and further loading the corresponding single card configuration file according to the single card configuration parameters; the updating of the drive system of the intelligent terminal based on double cards or single card can be automatically adapted aiming at the same drive updating system, the cost is reduced, and the effect of single-double card adapting of the intelligent terminal with lower cost is achieved.
In an embodiment, fig. 2 is a flowchart of a terminal single-card and dual-card adapting method provided in an embodiment of the present invention, and the embodiment is further optimized based on the foregoing embodiment, where the method specifically includes:
s210, reading the identification of the intelligent card, wherein the identification of the intelligent card comprises a first identification or a second identification, the first identification comprises the identification of an entity intelligent card and the identification of a virtual intelligent card at the same time, and the second identification comprises the identification of the entity intelligent card;
in this embodiment, whether the identifiers of all the smart cards in the smart card module of the notebook computer include identifiers of the physical smart card and the virtual smart card or identifiers of only the physical smart card, or whether the virtual smart card is configured on the chip of the notebook computer may be detected, and for example, whether the ID of the virtual smart card is present in the smart card module may be detected. Further, the reading the identifier of the smart card, where the identifier of the smart card includes a first identifier or a second identifier, where the first identifier includes both the identifier of the physical smart card and the identifier of the virtual smart card, and the second identifier includes, before the identifier of the physical smart card, the method further includes: and storing the double-card configuration file and the single-card configuration file in a peer directory of a preset storage area in advance.
In this embodiment, based on the specificity of the Wos Windows system of the notebook computer, only two modes, namely a dual-card DSSA mode and a single-card SSSS mode, can be supported, the corresponding dual-card configuration file and the corresponding single-card configuration file can be stored in the internal storage in advance, and optionally, the dual-card configuration file and the single-card configuration file can be stored in the same storage directory, so that selection according to configuration parameters is facilitated.
S220, setting a status flag bit in the intelligent card module according to the identification of the intelligent card.
In this embodiment, a status flag is set and stored in the smart card module according to whether the smart card identifier detected in step 210 belongs to the first identifier or the second identifier.
S230, if the identification of the smart card is the first identification, setting a first flag bit in the smart card module.
S240, if the identification of the intelligent card is the second identification, setting a second zone bit in the intelligent card module.
In this embodiment, the status flag is set in the global pointer of the smart card module, for example, if it is detected that the first flag exists in the global pointer, and for example, the first flag may be true, it represents that the notebook computer is configured as a dual card; if the second flag bit is detected to be present in the global pointer, for example, the second flag bit may be false, which indicates that the notebook computer is configured as a single card. Optionally, the present embodiment may also set the status flag bit only for the first identifier, for example, if the status flag bit is detected in the global pointer, it indicates that the notebook computer is configured as a dual card, and if the status flag bit is not detected, it indicates that the notebook computer is configured as a single card.
And S250, judging whether a new configuration parameter needs to be loaded or not according to the relationship between the current configuration parameter of the intelligent card module and the status flag bit.
In this embodiment, after the smart card module is powered on to read the card and the status flag is set according to the smart card identifier, it is detected whether the current configuration parameter of the smart card module is a single card or a double card, and corresponds to the status flag, if not, the configuration parameter is loaded correspondingly, and if so, the corresponding configuration file is loaded directly.
S260, if the status flag bit is the first flag bit, maintaining the dual-card configuration parameters of the smart card module;
s270, if the status flag bit is the second flag bit, the single card configuration parameters are distributed to the intelligent card module.
In this embodiment, the default software version is configured with dual-card configuration parameters of dual cards, and if it is detected that the status flag bit is the first flag bit, for example, the value of the status flag bit is true, it indicates that the notebook computer is configured with dual-card hardware, and since the configuration parameters related to the dual-card hardware configuration are already loaded, it is not necessary to reload the configuration parameters. If the status flag is detected to be the second flag, for example, the value of the status flag is false, which indicates that the notebook computer is configured as a single card hardware, the single card configuration parameters related to the single card need to be reloaded.
And S280, informing the intelligent card module to restart.
In this embodiment, if there is no default configuration parameter, the smart card module needs to be restarted after loading the single-card configuration parameter and the dual-card configuration parameter, so as to use the loaded parameter. If the default configuration parameter exists, for example, the dual-card configuration parameter of the default dual card of this embodiment is detected, if it is detected that the status flag bit is the first flag bit, for example, the value of the status flag bit is true, the smart card module does not need to be restarted, and if it is detected that the status flag bit is the second flag bit, for example, the value of the status flag bit is false, the smart card module needs to be restarted. After the intelligent card module is restarted, whether a flag bit is set by the virtual intelligent card or not and whether the configuration parameters of the existing software version correspond to the flag bit or not are detected again to judge whether the configuration parameters need to be reloaded or not.
S290, loading corresponding configuration files for the intelligent card module according to the configuration parameters, wherein the configuration files comprise a double-card configuration file based on double cards and a single-card configuration file based on single cards.
In this embodiment, the configuration file may include the number of smart cards supported by the configuration smart card module, and the network capabilities that each smart card can support. In this embodiment, a dual card configuration file or a single card configuration file is loaded correspondingly according to a dual card configuration parameter for a dual card or a single card configuration parameter for a single card to which the configuration parameter belongs. Further, the loading the corresponding configuration file for the smart card module according to the configuration parameter includes: if the configuration parameters are the dual-card configuration parameters, selecting the dual-card configuration file in a preset storage area as the configuration of the intelligent card module; and if the configuration parameters are the single-card configuration parameters, selecting the single-card configuration file in a preset storage area to configure the intelligent card module.
In this embodiment, when the computer device detects that the configuration parameter of the existing software version is a dual-card configuration parameter of a dual card, a dual-card configuration file may be selected under a configuration file directory stored inside to configure the smart card module. When the computer equipment detects that the configuration parameters of the existing software version are the single-card configuration parameters of the single card, the single-card configuration file is correspondingly selected under the configuration file directory stored in the computer equipment to configure the intelligent card module.
According to the technical scheme of the embodiment, the identification of the smart card is read, wherein the identification of the smart card comprises a first identification or a second identification, the first identification comprises the identification of an entity smart card and the identification of a virtual smart card at the same time, and the second identification comprises the identification of the entity smart card; setting a status flag bit in the smart card module according to the identification of the smart card; if the identification of the smart card is the first identification, setting a first flag bit in the smart card module; if the identification of the smart card is the second identification, setting a second zone bit in the smart card module; judging whether a new configuration parameter needs to be loaded according to the relationship between the current configuration parameter of the intelligent card module and the status flag bit; if the status flag bit is the first flag bit, maintaining the dual-card configuration parameters of the smart card module; if the status flag bit is the second flag bit, distributing the single-card configuration parameters to the smart card module; informing the smart card module to restart; and loading a corresponding configuration file for the intelligent card module according to the configuration parameters, wherein the configuration file comprises a double-card configuration file based on double cards and a single-card configuration file based on single cards, so that the problem that the intelligent card identification needs to be detected for multiple times when the configuration file is selected is solved, and the effect of avoiding the intelligent card identification from being detected for multiple times is achieved.
In an embodiment, fig. 3 is a schematic structural diagram of a terminal single/dual card adapting device 300 according to an embodiment of the present invention, which is applicable to a situation of terminal single/dual card adapting, and the specific structure is as follows:
the card reading detection module 310 is configured to read an identifier of the smart card, where the identifier of the smart card includes a first identifier or a second identifier, the first identifier includes an identifier of an entity smart card and an identifier of a virtual smart card, and the second identifier includes an identifier of an entity smart card;
a configuration parameter loading module 320, configured to load corresponding configuration parameters according to the identifier of the smart card, where the configuration parameters include dual-card configuration parameters based on a dual card and single-card configuration parameters based on a single card;
a configuration file loading module 330, configured to load a corresponding configuration file for the smart card module according to the configuration parameters, where the configuration file includes a dual-card configuration file based on a dual card and a single-card configuration file based on a single card.
Further, the apparatus 300 further comprises a status flag setting module, a first flag setting module and a second flag setting module,
the state flag bit setting module is used for setting a state flag bit in the intelligent card module according to the identification of the intelligent card;
the first flag bit setting module is used for setting a first flag bit in the smart card module if the identifier of the smart card is the first identifier;
and the second zone bit setting module is used for setting a second zone bit in the intelligent card module if the identification of the intelligent card is the second identification.
Further, the configuration parameter loading module 320 includes a dual-card configuration maintaining unit and a single-card configuration allocating unit,
the dual-card configuration maintaining unit is used for maintaining the dual-card configuration parameters of the smart card module when the status flag bit is the first flag bit;
and the single-card configuration distribution unit is used for distributing the single-card configuration parameters to the intelligent card module when the status flag bit is the second flag bit.
Further, the apparatus 300 further includes a configuration parameter detection module, configured to determine whether to load a new configuration parameter according to a relationship between the current configuration parameter of the smart card module and the status flag bit.
Further, the apparatus 300 further includes a restart module configured to notify the smart card module to restart.
Further, the apparatus 300 further includes a pre-storing module, configured to store the dual-card configuration file and the single-card configuration file in advance in the same directory of the preset storage area.
Further, the configuration file loading module 330 includes a dual card configuration unit and a single card configuration unit,
the dual-card configuration unit is used for selecting the dual-card configuration file in a preset storage area to configure the smart card module when the configuration parameter is the dual-card configuration parameter;
and when the configuration parameters are the single card configuration parameters, the single card configuration unit selects the single card configuration file to configure the intelligent card module in a preset storage area.
The terminal single/double card adapting device 300 provided by the embodiment of the invention can execute the terminal single/double card adapting method provided by the embodiment, and has corresponding functional modules and beneficial effects of the executing method.
In an embodiment, fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 412 suitable for use in implementing embodiments of the present invention. The computer device 412 shown in FIG. 4 is only one example and should not impose any limitations on the functionality or scope of use of embodiments of the present invention.
As shown in fig. 4, the computer device 412 is in the form of a general purpose computer device. Components of computer device 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 428 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 430 and/or cache Memory 432. The terminal 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk such as a Compact disk Read-Only Memory (CD-ROM), Digital Video disk Read-Only Memory (DVD-ROM) or other optical media may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in storage 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The computer device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing terminal, display 424, etc.), with one or more terminals that enable a user to interact with the computer device 412, and/or with any terminals (e.g., network card, modem, etc.) that enable the computer device 412 to communicate with one or more other computing terminals. Such communication may occur via input/output (I/O) interfaces 422. Also, computer device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) through Network adapter 420. As shown in FIG. 4, network adapter 420 communicates with the other modules of computer device 412 via bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 412, including but not limited to: microcode, end drives, Redundant processors, external disk drive Arrays, RAID (Redundant Arrays of independent disks) systems, tape drives, and data backup storage systems.
The processor 416 executes various functional applications and data processing by running programs stored in the storage device 428, for example, implementing a terminal single-dual card adapting method provided by any embodiment of the present invention, which may include:
reading the identification of the smart card, wherein the identification of the smart card comprises a first identification or a second identification, the first identification comprises the identification of an entity smart card and the identification of a virtual smart card at the same time, and the second identification comprises the identification of the entity smart card;
loading corresponding configuration parameters according to the identification of the intelligent card, wherein the configuration parameters comprise dual-card configuration parameters based on dual cards and single-card configuration parameters based on single cards;
and loading corresponding configuration files for the intelligent card module according to the configuration parameters, wherein the configuration files comprise dual-card configuration files based on dual cards and single-card configuration files based on single cards.
In an embodiment, the processor, when executing the computer program, further performs the steps of:
reading the identifier of the smart card, wherein the identifier of the smart card comprises a first identifier or a second identifier, the first identifier comprises an identifier of an entity smart card and an identifier of a virtual smart card, and the second identifier comprises the identifier of the entity smart card and then:
setting a status flag bit in the smart card module according to the identification of the smart card;
if the identification of the smart card is the first identification, setting a first flag bit in the smart card module;
and if the identification of the smart card is the second identification, setting a second zone bit in the smart card module.
The loading of the corresponding configuration parameters according to the identification of the smart card comprises:
if the status flag bit is the first flag bit, maintaining the dual-card configuration parameters of the smart card module;
and if the status flag bit is the second flag bit, distributing the single-card configuration parameters for the intelligent card module.
Before loading the corresponding configuration parameters according to the identifier of the smart card, the method further comprises:
and judging whether new configuration parameters need to be loaded or not according to the relationship between the current configuration parameters of the intelligent card module and the status flag bit.
After loading the corresponding configuration parameters according to the identifier of the smart card, the method further comprises the following steps:
and informing the smart card module to restart.
Reading the identifier of the smart card, wherein the identifier of the smart card comprises a first identifier or a second identifier, the first identifier comprises an identifier of an entity smart card and an identifier of a virtual smart card, and the second identifier comprises the identifier of the entity smart card and before the identifier of the entity smart card, the method further comprises:
and storing the double-card configuration file and the single-card configuration file in a peer directory of a preset storage area in advance.
The loading of the corresponding configuration file for the smart card module according to the configuration parameters comprises:
if the configuration parameters are the dual-card configuration parameters, selecting the dual-card configuration file in a preset storage area as the configuration of the intelligent card module;
and if the configuration parameters are the single-card configuration parameters, selecting the single-card configuration file in a preset storage area to configure the intelligent card module.
In this embodiment, based on a smart card set in a terminal, loading corresponding configuration parameters by reading an identifier of the smart card, and when the identifier of the smart card includes an identifier of a virtual smart card, loading corresponding dual-card configuration parameters, and further loading a corresponding dual-card configuration file according to the dual-card configuration parameters; when the identification of the intelligent card does not contain the identification of the virtual intelligent card and only comprises the identification of the entity intelligent card, loading the corresponding single card configuration parameters, and further loading the corresponding single card configuration file according to the single card configuration parameters; the updating of the drive system of the intelligent terminal based on double cards or single card can be automatically adapted aiming at the same drive updating system, the cost is reduced, and the effect of single-double card adapting of the intelligent terminal with lower cost is achieved.
In an embodiment, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a terminal single-card and dual-card adapting method according to any embodiment of the present invention, where the method may include:
reading the identification of the smart card, wherein the identification of the smart card comprises a first identification or a second identification, the first identification comprises the identification of an entity smart card and the identification of a virtual smart card at the same time, and the second identification comprises the identification of the entity smart card;
loading corresponding configuration parameters according to the identification of the intelligent card, wherein the configuration parameters comprise dual-card configuration parameters based on dual cards and single-card configuration parameters based on single cards;
and loading corresponding configuration files for the intelligent card module according to the configuration parameters, wherein the configuration files comprise dual-card configuration files based on dual cards and single-card configuration files based on single cards.
In an embodiment, the computer program when executed by the processor further performs the steps of:
reading the identifier of the smart card, wherein the identifier of the smart card comprises a first identifier or a second identifier, the first identifier comprises an identifier of an entity smart card and an identifier of a virtual smart card, and the second identifier comprises the identifier of the entity smart card and then:
setting a status flag bit in the smart card module according to the identification of the smart card;
if the identification of the smart card is the first identification, setting a first flag bit in the smart card module;
and if the identification of the smart card is the second identification, setting a second zone bit in the smart card module.
The loading of the corresponding configuration parameters according to the identification of the smart card comprises:
if the status flag bit is the first flag bit, maintaining the dual-card configuration parameters of the smart card module;
and if the status flag bit is the second flag bit, distributing the single-card configuration parameters for the intelligent card module.
Before loading the corresponding configuration parameters according to the identifier of the smart card, the method further comprises:
and judging whether new configuration parameters need to be loaded or not according to the relationship between the current configuration parameters of the intelligent card module and the status flag bit.
After loading the corresponding configuration parameters according to the identifier of the smart card, the method further comprises the following steps:
and informing the smart card module to restart.
Reading the identifier of the smart card, wherein the identifier of the smart card comprises a first identifier or a second identifier, the first identifier comprises an identifier of an entity smart card and an identifier of a virtual smart card, and the second identifier comprises the identifier of the entity smart card and before the identifier of the entity smart card, the method further comprises:
and storing the double-card configuration file and the single-card configuration file in a peer directory of a preset storage area in advance.
The loading of the corresponding configuration file for the smart card module according to the configuration parameters comprises:
if the configuration parameters are the dual-card configuration parameters, selecting the dual-card configuration file in a preset storage area as the configuration of the intelligent card module;
and if the configuration parameters are the single-card configuration parameters, selecting the single-card configuration file in a preset storage area to configure the intelligent card module.
In this embodiment, based on a smart card set in a terminal, loading corresponding configuration parameters by reading an identifier of the smart card, and when the identifier of the smart card includes an identifier of a virtual smart card, loading corresponding dual-card configuration parameters, and further loading a corresponding dual-card configuration file according to the dual-card configuration parameters; when the identification of the intelligent card does not contain the identification of the virtual intelligent card and only comprises the identification of the entity intelligent card, loading the corresponding single card configuration parameters, and further loading the corresponding single card configuration file according to the single card configuration parameters; the updating of the drive system of the intelligent terminal based on double cards or single card can be automatically adapted aiming at the same drive updating system, the cost is reduced, and the effect of single-double card adapting of the intelligent terminal with lower cost is achieved.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A terminal single-double card adapting method is characterized in that a smart card is arranged in a terminal, and the method comprises the following steps:
reading the identification of the smart card, wherein the identification of the smart card comprises a first identification or a second identification, the first identification comprises the identification of an entity smart card and the identification of a virtual smart card at the same time, and the second identification comprises the identification of the entity smart card;
loading corresponding configuration parameters according to the identification of the intelligent card, wherein the configuration parameters comprise dual-card configuration parameters based on dual cards and single-card configuration parameters based on single cards;
and loading corresponding configuration files for the intelligent card module according to the configuration parameters, wherein the configuration files comprise dual-card configuration files based on dual cards and single-card configuration files based on single cards.
2. The method for adapting a single/double terminal card according to claim 1, wherein after reading the identification of the smart card, the method further comprises:
setting a status flag bit in the smart card module according to the identification of the smart card;
if the identification of the smart card is the first identification, setting a first flag bit in the smart card module;
and if the identification of the smart card is the second identification, setting a second zone bit in the smart card module.
3. The method for adapting a single/dual terminal card according to claim 2, wherein said loading corresponding configuration parameters according to the identity of the smart card comprises:
if the status flag bit is the first flag bit, maintaining the dual-card configuration parameters of the smart card module;
and if the status flag bit is the second flag bit, distributing the single-card configuration parameters for the intelligent card module.
4. The method for adapting a single/dual terminal card according to claim 2, wherein before loading the corresponding configuration parameters according to the identifier of the smart card, the method further comprises:
and judging whether new configuration parameters need to be loaded or not according to the relationship between the current configuration parameters of the intelligent card module and the status flag bit.
5. The method for adapting a single/dual terminal card according to claim 1, wherein after loading the corresponding configuration parameters according to the identifier of the smart card, the method further comprises:
and informing the smart card module to restart.
6. The method for adapting a single/double terminal card according to claim 1, wherein before reading the identification of the smart card, the method further comprises:
and storing the double-card configuration file and the single-card configuration file in a peer directory of a preset storage area in advance.
7. The terminal single-card and double-card adapting method according to claim 6, wherein the loading the corresponding configuration file for the smart card module according to the configuration parameters comprises:
if the configuration parameters are the dual-card configuration parameters, selecting the dual-card configuration file in a preset storage area as the configuration of the intelligent card module;
and if the configuration parameters are the single-card configuration parameters, selecting the single-card configuration file in a preset storage area to configure the intelligent card module.
8. A terminal single-double card adapting device is characterized by comprising:
the card reading detection module is used for reading the identification of the intelligent card, the identification of the intelligent card comprises a first identification or a second identification, the first identification comprises the identification of an entity intelligent card and the identification of a virtual intelligent card at the same time, and the second identification comprises the identification of the entity intelligent card;
the configuration parameter loading module is used for loading corresponding configuration parameters according to the identification of the intelligent card, and the configuration parameters comprise dual-card configuration parameters based on dual cards and single-card configuration parameters based on single cards;
and the configuration file loading module is used for loading a corresponding configuration file for the intelligent card module according to the configuration parameters, wherein the configuration file comprises a double-card configuration file based on double cards and a single-card configuration file based on single cards.
9. A computer device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the terminal single-double card adaptation method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a terminal one-and-two-card adaptation method according to any one of claims 1 to 7.
CN202010009913.5A 2020-01-06 2020-01-06 Terminal single-card and double-card adapting method and device, computer equipment and storage medium Pending CN111221584A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010009913.5A CN111221584A (en) 2020-01-06 2020-01-06 Terminal single-card and double-card adapting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010009913.5A CN111221584A (en) 2020-01-06 2020-01-06 Terminal single-card and double-card adapting method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111221584A true CN111221584A (en) 2020-06-02

Family

ID=70832257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010009913.5A Pending CN111221584A (en) 2020-01-06 2020-01-06 Terminal single-card and double-card adapting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111221584A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113905365A (en) * 2021-12-13 2022-01-07 龙旗电子(惠州)有限公司 Method, device and equipment for configuring single card and double cards of android terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516508A (en) * 2015-12-30 2016-04-20 小米科技有限责任公司 Method and device for activating virtual SIM card
CN106899774A (en) * 2017-01-17 2017-06-27 宇龙计算机通信科技(深圳)有限公司 The dynamic adaptation method and dynamic adaptation device of terminal modem softwares
CN108769983A (en) * 2018-05-16 2018-11-06 北京握奇智能科技有限公司 A kind of method and system of list SIM even numbers double standbies
CN109587252A (en) * 2018-12-10 2019-04-05 上海闻泰电子科技有限公司 Loading method, device, electronic equipment and the storage medium of operator parameter
CN110457088A (en) * 2019-08-13 2019-11-15 深圳传音控股股份有限公司 Remapping method, terminal and the storage medium of more card versions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516508A (en) * 2015-12-30 2016-04-20 小米科技有限责任公司 Method and device for activating virtual SIM card
CN106899774A (en) * 2017-01-17 2017-06-27 宇龙计算机通信科技(深圳)有限公司 The dynamic adaptation method and dynamic adaptation device of terminal modem softwares
CN108769983A (en) * 2018-05-16 2018-11-06 北京握奇智能科技有限公司 A kind of method and system of list SIM even numbers double standbies
CN109587252A (en) * 2018-12-10 2019-04-05 上海闻泰电子科技有限公司 Loading method, device, electronic equipment and the storage medium of operator parameter
CN110457088A (en) * 2019-08-13 2019-11-15 深圳传音控股股份有限公司 Remapping method, terminal and the storage medium of more card versions

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113905365A (en) * 2021-12-13 2022-01-07 龙旗电子(惠州)有限公司 Method, device and equipment for configuring single card and double cards of android terminal
CN113905365B (en) * 2021-12-13 2022-03-15 龙旗电子(惠州)有限公司 Method, device and equipment for configuring single card and double cards of android terminal

Similar Documents

Publication Publication Date Title
US10007530B2 (en) Electronic device having an external memory and method for operating the same
KR101281326B1 (en) Extended utilization area for a memory device
US10713091B2 (en) Streaming program execution method of intelligent terminal
US10241718B2 (en) Electronic device and method of analyzing fragmentation of electronic device
US20170168872A1 (en) Task scheduling method and apparatus
US10652680B2 (en) Electronic device and method for controlling input and output by electronic device
KR20180081289A (en) Electronic device and method for controlling wireless communicaton thereof
US10198174B2 (en) Electronic device and method of managing memory of electronic device
KR20160052240A (en) Method and apparatus for managing a plurality of memory devices
CN107231644B (en) Method and electronic device for providing communication function
US8407401B2 (en) Methods, apparatuses, and computer program products for enhancing memory erase functionality
CN111079125A (en) Method and device for calling third-party library dynamic lifting authority by application program
US9971639B2 (en) Method for processing data and electronic device therefor
KR20180020401A (en) Method for controlling communication network connection, storage medium and electronic device therefor
US10237087B2 (en) Method for controlling transmission speed and electronic device thereof
US11604656B2 (en) Method and apparatus for managing application
CN111221584A (en) Terminal single-card and double-card adapting method and device, computer equipment and storage medium
CN115328580B (en) Processing method, device and medium for registry operation in application migration environment
KR20180110437A (en) Tethering method and electronic device implementing the same
CN116166570A (en) Garbage recycling method and device
US7681009B2 (en) Dynamically updateable and moveable memory zones
CN115576484A (en) Data reading and writing method and device, electronic equipment and storage medium
CN110045929B (en) Mounting point management method and related device
CN112534409A (en) Electronic device and operation method thereof
KR20160077851A (en) Apparatus and method for providing security for memory of in electronics device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200602