CN106874808B - Method for activating IC card and IC card - Google Patents

Method for activating IC card and IC card Download PDF

Info

Publication number
CN106874808B
CN106874808B CN201710035739.XA CN201710035739A CN106874808B CN 106874808 B CN106874808 B CN 106874808B CN 201710035739 A CN201710035739 A CN 201710035739A CN 106874808 B CN106874808 B CN 106874808B
Authority
CN
China
Prior art keywords
card
functional
initial
activation control
cards
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710035739.XA
Other languages
Chinese (zh)
Other versions
CN106874808A (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.)
Ennew Digital Technology Co Ltd
Original Assignee
Ennew Digital 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 Ennew Digital Technology Co Ltd filed Critical Ennew Digital Technology Co Ltd
Priority to CN201710035739.XA priority Critical patent/CN106874808B/en
Publication of CN106874808A publication Critical patent/CN106874808A/en
Application granted granted Critical
Publication of CN106874808B publication Critical patent/CN106874808B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0013Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/077Constructional details, e.g. mounting of circuits in the carrier
    • G06K19/07743External electrical contacts

Abstract

The invention provides a method for activating an IC card and the IC card, which are used for solving the technical problems that the replacement or the repair of the IC card which is stopped in production is troublesome, the economic expenditure of a user is increased and the resource waste is caused. The method comprises the following steps: determining that connection is established between an initial IC card and activation control equipment, wherein the initial IC card comprises M code areas, and the functions of one functional IC card corresponding to the IC card can be realized by running codes contained in any one of the M code areas; acquiring an activation control instruction sent by activation control equipment, wherein the activation control instruction is used for indicating an initial IC card to activate the functions of the N functional IC cards; respectively operating codes included in N code areas corresponding to the N functional IC cards in the M code areas according to the activation control instruction so as to enable the initial IC card to activate the functions of the N functional IC cards; the initial IC card which activates the functions of the N-function IC cards is taken as the activated function IC card.

Description

method for activating IC card and IC card
Technical Field
the present invention relates to the field of electronic technologies, and in particular, to an IC card and a method for activating an IC card.
Background
with the development of electronic technology, IC (Integrated Circuit) card products are increasingly used in various industries, such as gas cards, electric cards, water cards, and the like, and the types of IC cards are increasing, and with the encryption technology and some requirements on appearance, some older types of IC cards will not be produced, that is, the types of IC cards may be stopped, for example, 102 cards.
for these IC cards that stop production, many users are in normal use, if the users lose or damage them, it is difficult to do it again, and it is generally necessary to replace the meters used corresponding to the IC cards, for example, the meter corresponding to the gas card is a gas meter, and the meter corresponding to the electricity card is an electricity meter, however, the number of meters is generally large, and the price of a single meter is not low, if the meter is replaced, the economic expenditure of the users is additionally increased, and at the same time, the resources are wasted.
Therefore, for some commercial off-production IC cards, if replacement or repair is troublesome, the economic expenditure of the user is increased and the waste of resources is caused, and at present, no better solution is available for this.
Disclosure of Invention
the embodiment of the invention provides an IC card activating method and an IC card, which are used for solving the technical problems that the replacement or the additional handling of a stopped IC card is troublesome, the economic expenditure of a user is increased and the resource waste is caused.
In a first aspect, there is provided a method of activating an IC card, comprising:
determining that connection is established between the initial IC card and the activation control device; the initial IC card comprises M code areas, the functions of a corresponding functional IC card can be prepared by operating the codes contained in any one of the M code areas, and M is a positive integer;
obtaining an activation control instruction sent by the activation control equipment; the activation control instruction is used for indicating the initial IC card to activate the functions of N functional IC cards, wherein N is an integer less than or equal to M;
according to the activation control instruction, codes included in N code areas corresponding to the N kinds of functional IC cards in the M code areas are respectively operated, so that the initial IC card activates the functions of the N kinds of functional IC cards;
And taking the initial IC card which activates the functions of the N functional IC cards as the activated functional IC card.
In one possible implementation, determining that the initial IC card establishes the connection with the activation control device includes:
If the first contact voltage accessed by the book searching initial IC card detected through the first voltage signal contact of the initial IC card belongs to a first preset voltage range, determining that the initial IC card is connected with the activation control equipment; or
And if the equipment identification indicated by the equipment identification information received by the data signal contact of the initial IC card belongs to a preset equipment identification set, determining that the connection is established between the initial IC card and the activation control equipment.
in one possible implementation, after taking an initial IC card activating the functions of the N kinds of functional IC cards as an activated functional IC card, the method further includes:
Receiving first historical use data corresponding to a first user identification and sent by the activation control equipment; wherein the first historical usage data is the historical usage data corresponding to the first one of the N kinds of functional IC cards;
Storing the first history use data into a first storage area in the initial IC card; wherein the first storage area is a storage area for storing usage data corresponding to the first type of functional IC card.
in one possible implementation, after taking an initial IC card activating the functions of the N kinds of functional IC cards as an activated functional IC card, the method further includes:
Detecting a second contact voltage accessed by the activated functional IC card through a second voltage signal contact of the activated functional IC card;
according to the corresponding relation between the voltage range and the type of the functional IC card, determining that the type of the IC card corresponding to a second preset voltage range to which the second contact voltage belongs is a second type of functional IC card;
And communicating with the contacted equipment by using the function corresponding to the second function IC card.
In one possible implementation, after taking an initial IC card activating the functions of the N kinds of functional IC cards as an activated functional IC card, the method further includes:
deleting data stored in the other code regions of the M code regions except the N code regions.
In a second aspect, an IC card is provided, where the IC card includes an MCU (Microcontroller Unit), a memory, and a signal contact group, where the memory and the signal contact group are both connected to the MCU, and the signal contact group includes at least two signal contacts; wherein:
The memory comprises M code areas, the functions of the IC card corresponding to one function IC card can be prepared by running the codes contained in any one of the M code areas, and M is an integer;
the MCU is used for determining the connection between the IC card and the activation control equipment; obtaining an activation control instruction sent by the activation control equipment, wherein the activation control instruction is used for indicating the IC card to activate the functions of N functional IC cards, and N is an integer less than or equal to M; according to the activation control instruction, codes included in N code areas corresponding to the N kinds of functional IC cards in the M code areas are respectively operated, so that the IC cards activate the functions of the N kinds of functional IC cards; and using an IC card activating the functions of the N-function IC cards as an activated function IC card.
In one possible implementation manner, the MCU is configured to determine that a connection is established between the IC card and an activation control device, and includes:
if the first contact voltage accessed by the IC card detected through the first voltage signal contact in the signal contact group belongs to a first preset voltage range, determining that the connection is established between the IC card and the activation control equipment; or
And if the equipment identification indicated by the equipment identification information received by the data signal contact in the signal contact group belongs to a preset equipment identification set, determining that the connection is established between the initial IC card and the activation control equipment.
In one possible implementation, the MCU is further configured to:
Receiving first historical usage data corresponding to a first user identification transmitted by the activation control apparatus after an IC card activating functions of the N kinds of function IC cards is taken as an activated function IC card; wherein the first historical usage data is the historical usage data corresponding to the first one of the N kinds of functional IC cards;
Storing the first historical usage data in a first storage area of the memory; wherein the first storage area is a storage area for storing usage data corresponding to the first type of functional IC card.
In one possible implementation, the MCU is further configured to:
After the IC card activating the functions of the N functional IC cards is taken as the activated functional IC card, detecting a second contact voltage accessed by the activated functional IC card through a second voltage signal contact in the signal contact group;
according to the corresponding relation between the voltage range and the type of the functional IC card, determining that the type of the IC card corresponding to a second preset voltage range to which the second contact voltage belongs is a second type of functional IC card;
and communicating with the contacted equipment by using the function corresponding to the second function IC card.
in one possible implementation, the MCU is further configured to:
After the IC card activating the functions of the N-function IC cards is taken as the activated function IC card, the data stored in the other code areas except the N code areas in the M code areas are deleted.
in the embodiment of the invention, the initial IC card can determine that a connection is established with the activation control device, the initial IC card comprises M code areas, and the initial IC card can be enabled to be provided with functions included in a corresponding functional IC card by running codes included in any one of the M code areas, then the activation control instruction sent by the activation control device is obtained after the connection is established with the activation control device, and the codes included in N code areas of the M code areas are respectively run according to the received activation control instruction, so that the initial IC card activates the functions of the N functional IC cards respectively corresponding to the codes included in the N code areas, and finally the initial IC card with the activated functions of the N functional IC cards is used as the activated functional IC card.
That is to say, in the embodiment of the present invention, functions corresponding to multiple functional IC cards may be pre-stored in an initial IC card in a form of software codes, and then the initial IC card is activated according to an activation control instruction sent by an activation control device, for example, when a user needs to make up a gas card, an activation control instruction for activating the function corresponding to the gas card may be sent to the initial IC card by the activation control device, and then the initial IC card may activate the function corresponding to the gas card by running codes included in a code region corresponding to the gas card after receiving the activation control instruction, and then the initial IC card having activated the function of the gas card may be used instead of the gas card, that is, the purpose of supplementing or replacing the functional IC card is achieved.
Through the technical scheme in the embodiment of the invention, the IC card can be supplemented or replaced at low cost without replacing a meter corresponding to the IC card, so that the economic expenditure of a user is reduced, and resources can be saved. Meanwhile, the IC card can be quickly replaced and repaired only by sending the activation control instruction to the initial IC card through the activation control equipment, so that the efficiency is high, the operation is simple, and the method is suitable for wide application.
Drawings
in order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method of activating an IC card in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an IC card in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
in addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document generally indicates that the preceding and following related objects are in an "or" relationship unless otherwise specified.
In order to better understand the technical solutions, the technical solutions in the embodiments of the present invention will be described in detail below with reference to the drawings and the specific embodiments.
Referring to fig. 1, an embodiment of the present invention provides a method for activating an IC card, which may be applied to an initial IC card, that is, steps of the method for activating an IC card in an embodiment of the present invention may be executed by the initial IC card. In the embodiment of the present invention, the activation refers to activating an initial IC card, and the initial IC card may be understood as a white card, that is, the initial IC card does not have any function, while the activated initial IC card may have functions of one or more functional IC cards.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an initial IC card in an embodiment of the present invention, where the initial IC card includes an MCU21, a memory 22 and a signal contact group 23, and both the memory 22 and the signal contact group 23 are connected to an MCU21, where the connection may refer to an electrical connection, through which the MCU21 may respectively perform data communication with the memory 22 and the signal storage contact group 23, for example, may perform data communication according to an iso7816-3 protocol.
The MCU21 can be a module or a unit with a data processing function, and in a specific implementation process, the MCU21 can be embodied in a chip, that is, the MCU21 can be a chip with a data processing capability. The MCU21 may have a plurality of pins through which electrical connections are made to the memory 22 and the signal contact set 2.
the Memory 22 is a storage medium having a data storage capability, such as a RAM (random access Memory), a ROM (Read-Only Memory), a Flash Memory, and so on, and in the implementation process, different media of the Memory can be selected according to actual needs, the Memory 22 may include a plurality of storage areas, and the data reading performance of each storage area may be the same or different, for example, the Memory 22 includes 3 storage areas, one of the storage areas supports reading and writing of data at the same time, the other storage area supports reading of data but does not support writing of data, and the remaining storage area does not support reading of data but supports writing of data, in addition, a corresponding encryption level may be set for each storage area, for example, a first encryption level may be set for a part of the storage areas, the remaining storage area is set to a second encryption level, wherein the degree of encryption of the first encryption level may be higher or lower than the second encryption level.
The memory 22 may include one or more code areas, for example, as illustrated in fig. 2 by taking the case that the memory 22 includes 4 code areas (i.e., code area 1-code area 4), each code area stores a corresponding code, and the initial IC card can be provided with a function included in a corresponding one of the functional IC cards by running the code included in any one of the code areas, that is, the initial IC card can be activated by running the code included in the code area. For example, the initial IC card may be made to function as a gas card by running the codes in the code area 1, the initial IC card may be made to function as an electric card by running the codes in the code area 3, and so on, and the gas card and the electric card mentioned here may be understood as the functional IC cards in the embodiments of the present invention.
In a specific implementation process, the multiple code regions included in the memory 22 may belong to the same storage region, or may belong to different storage regions, which is not limited in this embodiment of the present invention.
the signal contact group 23 may include at least two signal contacts, for example, at least a voltage signal contact and a data signal contact, and may further include a ground signal contact, a clock signal contact, and a reset signal contact, etc., and fig. 2 illustrates an example of 5 signal contacts including the contacts 1 to 5. In a specific implementation, the signal contact group 23 may be designed integrally, that is, a plurality of signal contacts included in the signal contact group 23 may be disposed as close as possible, and each signal contact included in the signal contact group 23 is capable of transmitting an electrical signal, and may be disposed in the form of a gold finger, for example.
in addition, the initial IC card may further include a housing, such as a rectangular frame shown in fig. 2 and enclosing the MCU21, the memory 22 and the signal contact set 23, in a specific implementation process, the MCU21 and the memory 22 are integrated in the housing, the MCU21 and the memory 22 can be protected by the housing, and the signal contact set 23 can be embedded in the housing, that is, all the signal contacts included in the signal contact set 23 can be directly seen from the appearance, so that when the IC card is inserted into the card reading device, contact data communication can be performed between the signal contacts in the signal contact set 23 and the card reading device, such as an electric card or a gas card used in daily life, and the electric card or the gas card is inserted into an electric meter or a gas meter, and so on.
with continued reference to fig. 1, the flow of the method of activating an IC card in the embodiment of the present invention is described as follows.
Step 11: determining that connection is established between the initial IC card and the activation control device; the initial IC card comprises M code areas, and the initial IC card can be provided with functions corresponding to the function IC card by running codes contained in any one of the M code areas.
Where M is a positive integer, such as 1, 2, 4, etc., as illustrated in fig. 2, i.e. 4 code regions.
In a specific implementation process, the initial IC card may be understood as a white card, and after the activation of the initial IC card is controlled by the activation control device, the initial IC card may be enabled to present a function of a corresponding functional IC card, that is, activation from the white card to the functional IC card is realized.
Since the initial IC card cannot be automatically activated, the activation is controlled by the requirement of the user, when the initial IC card needs to be activated, the user may use the activation control device to control the initial IC card to perform the activation operation, for example, the user may operate the activation control device to send an activation control instruction to the initial IC card, and the initial IC card may perform the activation operation after receiving the activation control instruction.
The activation control device may be, for example, a PC (personal computer), a notebook computer, a mobile phone, or a dedicated activation device, as long as an activation control instruction can be sent to the initial IC card through the activation control device, and the specific type of the activation control device is not limited in the embodiment of the present invention.
in the implementation, for example, the following manner may be adopted to determine whether the initial IC card establishes the connection with the activation control device, and it should be understood that the embodiments of the present invention include, but are not limited to, the following manner.
the first mode is as follows:
When the initial IC card needs to be activated, the initial IC card may be inserted into the activation control device, that is, the initial IC card may perform contact communication with the activation control device through the signal contact group 23 in the initial IC card, at this time, the first voltage signal contact in the signal contact group 23 may detect the first contact voltage that is inserted, and if the first contact voltage belongs to a first predetermined voltage range, it may be determined that a connection is established between the initial IC card and the activation control device.
That is, whether the connection with the activation control device is established or not can be determined by the voltage magnitude detected by the voltage signal contact, so that the connection accuracy of the activation control device can be ensured, for this reason, a first predetermined voltage range can be set in advance for the activation control device, for example, the first predetermined voltage range is set to [2.2V, 2.6V ], only if the detected voltage belongs to the voltage range, the initial IC card is considered to be successfully established with the activation control device, and then the instruction sent by the activation control device is executed, otherwise, the connection can be considered to be invalid, for example, the user inserts the initial IC card into other devices due to misoperation, and the other devices are not devices for which the user controls the initial IC card to be activated.
The second mode is as follows:
when the initial IC card needs to be activated, the initial IC card may be inserted into the activation control device, that is, the initial IC card performs contact communication with the activation control device through the signal contact group 23 in the initial IC card, at this time, the data signal contact in the signal contact group 23 may receive device identification information sent by a connected device, the initial IC card determines whether a device identification corresponding to the device identification information belongs to a predetermined device identification set, and if it is determined that the device identification belongs to the predetermined device identification set, it indicates that the device connected at this time is a device for controlling the initial IC card to be activated, that is, it is determined that the connection with the activation control device is successfully established.
Alternatively, when the initial IC card is inserted into the activation control device, a verification code may be sent to the initial IC card, and the initial IC card may obtain the verification code through the data signal contact, and further determine whether the verification code is legal to determine whether the device connected at this time is a legal activation control device.
The third mode is as follows:
The initial IC card can be also provided with an interface, the interface can be connected with a matched interface on the activation control equipment, the activation control equipment can send verification information to the initial IC card through the matched interface, and if the initial IC card determines that the verification information is legal, the connected equipment is determined to be legal activation control equipment.
Step 12: acquiring an activation control instruction sent by activation control equipment; wherein the activation control instruction is used for instructing the initial IC card to activate the functions of the N-function IC card.
Wherein the functions of the N-function IC card are those of the N-function IC card corresponding to N of the M code zones, for example, the activation control instruction is for instructing the initial IC card to activate the functions of the function IC card corresponding to the code zone 1 and the code zone 3, respectively, as shown in fig. 2, and the function IC card corresponding to the code zone 1 is a gas card and the function IC card corresponding to the code zone 3 is an electric card.
And N is an integer less than or equal to M, that is, the activation control command may instruct the initial IC card to activate one or a plurality of functions of the functional IC card at the same time. When N is 1, this indicates that the user wishes to activate the initial IC card as a functional IC card (e.g., a gas card), and after activation, the initial IC card has the function of a gas card and can be used as a gas card. When N is larger than 1, the user wants to activate the initial IC card into a plurality of functional IC cards, such as the functions of a gas card and an electric card, and the purpose of one card for multiple purposes can be achieved. In the specific implementation process, the user can select to activate one or more functions according to respective actual requirements, and the personalized requirements of the user can be met as much as possible due to the fact that one or more functions can be selected to be activated.
In a possible embodiment, an operation interface may be displayed on the activation control device, a list of various functional IC cards included in the initial IC card may be displayed in the operation interface, and the user only needs to select an option of a functional IC card that the user desires to activate, and after the user performs a selection operation, for example, after a click operation, the activation control device may determine a function that the user desires to activate according to operation information of the user, and further generate a corresponding activation control instruction and send the activation control instruction to the initial IC card.
in another possible implementation manner, the user can also directly input a control code to the activation control device, and the activation control device can determine the type of the functional IC card which the user wishes to activate by running the control code input by the user, and further generate a corresponding activation control instruction and send the activation control instruction to the initial IC card.
Step 13: according to the activation control instruction, the codes included in the N code areas corresponding to the N functional IC cards in the M code areas are respectively operated, so that the initial IC card activates the functions of the N functional IC cards.
because the activation control instruction is used for instructing the initial IC card to activate the N functions corresponding to the N code areas, after the activation control instruction sent by the activation control device is obtained, the initial IC card determines the N code areas corresponding to the N functions from the M code areas, and then respectively operates the codes included in the N code areas, so as to achieve the purpose of activating the functions of the IC card with the N functions.
Step 14: the initial IC card which activates the functions of the N-function IC cards is taken as the activated function IC card.
After the codes included in the N code areas are run, the initial IC card is activated as an IC card having the aforementioned N functions.
for example, if the gas card of the user is lost, in order to replenish the gas card, the initial IC card may be activated as the gas card in the manner described in the foregoing steps 11 to 14, so as to achieve the purpose of replenishing the card quickly.
Moreover, for the functional IC card close to production halt or due to production halt in the market at present, the card supplementing mode in the embodiment of the invention is very convenient to adopt. For example, for a specific type of gas card, a manufacturer may stop production for some reason and do not produce any more, but if the gas card is to be replaced by another type of gas card, the corresponding gas meter may not be used, so the gas meter needs to be replaced, however, the price of the gas meter is generally high, and the cost is too high if the gas card is replaced in a large scale, which causes resource waste.
in addition, after the initial IC card is activated as the function of the aforementioned N-function IC card, the data stored in the code region other than the N code regions corresponding to the N-function IC card may be deleted, for example, after the initial IC card is converted into a gas card by running the codes included in the code region 1 as shown in fig. 2, the codes included in the code regions 2 to 4 may be deleted, because the codes in the code regions 2 to 4 become invalid data after the initial IC card is activated, and the deletion thereof may make more storage space for the IC card, so that the use data of the user may be stored as much as possible later in the use process.
In practice, a new functional IC card may be provided for the user in the above manner, or a lost or damaged functional IC card may be provided for the user, and when the new functional IC card is provided, after the initial IC card is activated, the first historical usage data sent by the activation control device may be received, where the first historical usage data is usage data corresponding to a first user identifier, and the first user identifier is information capable of identifying the user identity, such as a user name, a user identification number, or a card number to be provided, and the like, and the first historical usage data is historical usage data used by the functional IC card to be provided for the user (for example, referred to as a first functional IC card) before, and further, the first historical usage data is stored in a first storage area in the initial IC card, and the first storage area is a storage area allocated to the first functional IC card in the initial IC card for storing the usage data of the first functional IC card, for example, all usage data associated with the first type of functional IC card may be stored in the first storage area during subsequent use.
If the user is a card supplement, the use data of the user is generally stored in the lost or damaged card of the user, so that the normal use of the user is not influenced after the card is supplemented in the above manner, for example, if the user is a supplemented electric card, the user just supplements 30-yuan electric charge before the card is lost, and if the data in the lost electric card is updated to the newly supplemented electric card in the above manner, the user can directly insert the newly supplemented electric card into the electric meter for recharging, that is, the previously supplemented 30-yuan electric charge is input into the electric meter, so that the electricity is really purchased, and the normal use of the user after the card is supplemented is ensured.
In the specific implementation process, for the power grid system or the gas system, the usage data of all the users can be stored in a server in a centralized manner, the activation control device can obtain historical usage data corresponding to each user identification from the server,
one possible situation is that only the function of one functional IC card, for example, only the function of a gas card, is activated when the original IC card is activated. Under the condition, when the activated gas card is inserted into the gas meter, data interaction can be carried out between the data signal contact in the gas card and the corresponding contact in the slot in the gas meter so as to realize data communication between the gas card and the gas meter.
in this case, how to ensure that the user does not confuse the functions when using the functions of the gas card and the electric card, respectively, but uses them normally:
After the initial IC card is activated, that is, after the activated functional IC card is obtained, the user may use the IC card for normal use, for example, the user may insert the IC card into a corresponding metering device, for example, the metering device corresponding to the gas card is a gas meter, and the metering device corresponding to the electric card is an electric meter, at this time, the activated functional IC card may detect a second contact voltage, to which the IC card is connected, through a second voltage signal contact in the signal contact group 23, and then determine, according to a corresponding relationship between the voltage range and the type of the functional IC card, that the type of the IC card corresponding to a second predetermined voltage range to which the second contact voltage belongs is the second type of functional IC card, and communicate with the contacted metering device by using a function corresponding to the second type of functional IC card.
That is, different operating voltage ranges may be set in advance for IC cards of different functions. For example, the operating voltage ranges set for the gas meter and the electric card are [3.0V, 3.8V ] and [4.5V, 5.2V ], respectively, then in the using process, when a user wishes to use the function corresponding to the gas card, the IC card is directly inserted into the gas meter, and the operating voltage (i.e. the aforementioned second contact voltage) can be obtained from the gas meter through the contact with the gas meter, for example, the detected second contact voltage is 3.3V, since 3.3V belongs to the voltage range of [3.0V, 3.8V ], the activated IC card can know the function of the gas card that the user wishes to use at this time according to 3.3V, and then the function corresponding to the gas card can communicate with the contacted device (i.e. the gas meter), and the function of the electric card cannot be mistakenly communicated with the gas meter, so that the effective use of the IC card can be ensured, and the occurrence of false response can be avoided.
In the embodiment of the invention, the initial IC card can determine that a connection is established with the activation control device, the initial IC card comprises M code areas, and the initial IC card can be enabled to be provided with functions included in a corresponding functional IC card by running codes included in any one of the M code areas, then the activation control instruction sent by the activation control device is obtained after the connection is established with the activation control device, and the codes included in N code areas of the M code areas are respectively run according to the received activation control instruction, so that the initial IC card activates the functions of the N functional IC cards respectively corresponding to the codes included in the N code areas, and finally the initial IC card with the activated functions of the N functional IC cards is used as the activated functional IC card.
That is to say, in the embodiment of the present invention, functions corresponding to multiple functional IC cards may be pre-stored in an initial IC card in a form of software codes, and then the initial IC card is activated according to an activation control instruction sent by an activation control device, for example, when a user needs to make up a gas card, an activation control instruction for activating the function corresponding to the gas card may be sent to the initial IC card by the activation control device, and then the initial IC card may activate the function corresponding to the gas card by running codes included in a code region corresponding to the gas card after receiving the activation control instruction, and then the initial IC card having activated the function of the gas card may be used instead of the gas card, that is, the purpose of supplementing or replacing the functional IC card is achieved.
through the technical scheme in the embodiment of the invention, the IC card can be supplemented or replaced at low cost without replacing a meter corresponding to the IC card, so that the economic expenditure of a user is reduced, and resources can be saved. Meanwhile, the IC card can be quickly replaced and repaired only by sending the activation control instruction to the initial IC card through the activation control equipment, so that the efficiency is high, the operation is simple, and the method is suitable for wide application.
Based on the same inventive concept, an embodiment of the present invention further provides an IC card, as shown in fig. 2, the IC card includes an MCU21, a memory 22, and a signal contact group 23, the signal contact group 23 may include at least two signal contacts, and both the memory 22 and the signal contact group 23 are connected to an MCU 1.
The memory 22 includes M code areas, and the IC card can be enabled to prepare a function included in a corresponding functional IC card by running a code included in any one of the M code areas, where M is a positive integer;
The MCU21 is used for determining the connection between the IC card and the activation control equipment; obtaining an activation control instruction sent by activation control equipment, wherein the activation control instruction is used for indicating an IC card to activate the functions of N functional IC cards, and N is an integer less than or equal to M; according to the activation control instruction, codes included in N code areas corresponding to the N functional IC cards in the M code areas are respectively operated, so that the IC cards activate the functions of the N functional IC cards; and using the IC card activating the functions of the N-function IC card as the activated function IC card.
In one possible implementation, the MCU21 being used to determine that a connection is established between the IC card and the activation control device may include:
if the first contact voltage accessed by the IC card detected by the first voltage signal contact in the signal contact group 23 belongs to a first preset voltage range, determining that the connection between the IC card and the activation control equipment is established; or
if the device identification indicated by the device identification information received through the data signal contacts in the signal contact group 23 belongs to a predetermined device identification set, it is determined that the connection is established between the initial IC card and the activation control device.
in one possible implementation, the MCU21 may also be used to:
receiving first historical usage data corresponding to a first user identification transmitted by an activation control device after an IC card activating functions of N functional IC cards is taken as an activated functional IC card; the first historical use data is the historical use data corresponding to the first functional IC card in the N functional IC cards;
storing the first historical usage data in a first storage area of the memory 22; the first storage area is used for storing the use data corresponding to the first type of function IC card.
In one possible implementation, the MCU21 may also be used to:
After the IC card activating the functions of the N-type functional IC cards is taken as the activated functional IC card, the second contact voltage accessed by the activated functional IC card is detected through the second voltage signal contact in the signal contact group 23;
Determining the IC card type corresponding to a second preset voltage range to which the second contact voltage belongs as a second type of functional IC card according to the corresponding relation between the voltage range and the type of the functional IC card;
And communicating with the contacted equipment by using the function corresponding to the second function IC card.
in one possible implementation, the MCU21 may also be used to:
after an IC card which activates the functions of the N-function IC cards is taken as the activated function IC card, data stored in the other code regions except the N code regions among the M code regions are deleted.
In the specific implementation process, the IC card in the embodiment of the present invention may be understood as the foregoing initial IC card, so for the implementation of the IC card in the embodiment of the present invention, reference may be made to the foregoing description of any method for activating the IC card, and details are not described here again.
In the embodiment of the invention, the functions corresponding to the IC cards with various functions can be pre-stored in the initial IC card in a software code mode, because the IC card in the prior art is generally built by a hardware circuit, the embodiment of the invention is equivalent to replace the hardware circuit in the IC card in the prior art in a software module mode, thereby being more beneficial to replacing and supplementing the IC card and simultaneously reducing the cost.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units is merely used as an example, and in practical applications, the above function distribution may be performed by different functional units according to needs, that is, the internal structure of the device is divided into different functional units to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
in the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the described units or division of units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
the integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above embodiments are only used to describe the technical solutions of the present invention in detail, but the above embodiments are only used to help understanding the method and the core idea of the present invention, and should not be construed as limiting the present invention. Those skilled in the art should also appreciate that they can easily conceive of various changes and substitutions within the technical scope of the present disclosure.

Claims (8)

1. A method of activating an Integrated Circuit (IC) card, comprising:
Determining that connection is established between the initial IC card and the activation control device; the initial IC card comprises M code areas, the initial IC card can be enabled to be provided with functions corresponding to a functional IC card by running codes contained in any one of the M code areas, and M is a positive integer;
obtaining an activation control instruction sent by the activation control equipment; the activation control instruction is used for indicating the initial IC card to activate the functions of N functional IC cards, wherein N is a positive integer less than or equal to M;
According to the activation control instruction, codes included in N code areas corresponding to the N kinds of functional IC cards in the M code areas are respectively operated, so that the initial IC card activates the functions of the N kinds of functional IC cards;
Taking the initial IC card activating the functions of the N functional IC cards as an activated functional IC card;
Detecting a second contact voltage accessed by the activated functional IC card through a second voltage signal contact of the activated functional IC card;
according to the corresponding relation between the voltage range and the type of the functional IC card, determining that the type of the IC card corresponding to a second preset voltage range to which the second contact voltage belongs is a second type of functional IC card;
and communicating with the contacted equipment by using the function corresponding to the second function IC card.
2. The method of claim 1, wherein determining that a connection is established between the initial IC card and the activation control device comprises:
if the first contact voltage accessed by the initial IC card detected through the first voltage signal contact of the initial IC card belongs to a first preset voltage range, determining that the initial IC card is connected with the activation control equipment; or
and if the equipment identification indicated by the equipment identification information received by the data signal contact of the initial IC card belongs to a preset equipment identification set, determining that the connection is established between the initial IC card and the activation control equipment.
3. The method according to claim 1, wherein after an initial IC card activating functions of the N kinds of function IC cards is taken as the activated function IC card, the method further comprises:
Receiving first historical use data corresponding to a first user identification and sent by the activation control equipment; wherein the first historical usage data is the historical usage data corresponding to the first one of the N kinds of functional IC cards;
Storing the first history use data into a first storage area in the initial IC card; wherein the first storage area is a storage area for storing usage data corresponding to the first type of functional IC card.
4. A method according to any one of claims 1 to 3, wherein after an initial IC card activating the functions of the N-kind function IC cards is taken as the activated function IC card, the method further comprises:
Deleting data stored in the other code regions of the M code regions except the N code regions.
5. An Integrated Circuit (IC) card is characterized by comprising a Micro Control Unit (MCU), a memory and a signal contact group, wherein the memory and the signal contact group are both connected with the MCU, and the signal contact group comprises at least two signal contacts; wherein:
The memory comprises M code areas, the functions of the IC card corresponding to one function IC card can be prepared by running the codes contained in any one of the M code areas, and M is a positive integer;
The MCU is used for determining the connection between the IC card and the activation control equipment; obtaining an activation control instruction sent by the activation control equipment, wherein the activation control instruction is used for indicating the IC card to activate the functions of N functional IC cards, and N is a positive integer less than or equal to M; according to the activation control instruction, codes included in N code areas corresponding to the N kinds of functional IC cards in the M code areas are respectively operated, so that the IC cards activate the functions of the N kinds of functional IC cards; and taking the IC card activating the functions of the N kinds of function IC cards as an activated function IC card;
The MCU is also used for detecting second contact voltage accessed by the activated functional IC card through a second voltage signal contact in the signal contact group after the IC card activating the functions of the N functional IC cards is taken as the activated functional IC card; determining the IC card type corresponding to a second preset voltage range to which the second contact voltage belongs as a second type of functional IC card according to the corresponding relation between the voltage range and the type of the functional IC card; and communicating with the contacted equipment by using the function corresponding to the second function IC card.
6. the IC card according to claim 5, wherein the MCU is configured to determine that a connection is established between the IC card and an activation control device, and includes:
if the first contact voltage accessed by the IC card detected through the first voltage signal contact in the signal contact group belongs to a first preset voltage range, determining that the connection is established between the IC card and the activation control equipment; or
And if the equipment identification indicated by the equipment identification information received by the data signal contact in the signal contact group belongs to a preset equipment identification set, determining that the connection is established between the initial IC card and the activation control equipment.
7. The IC card of claim 5, wherein the MCU is further to:
Receiving first historical usage data corresponding to a first user identification transmitted by the activation control apparatus after an IC card activating functions of the N kinds of function IC cards is taken as an activated function IC card; wherein the first historical usage data is the historical usage data corresponding to the first one of the N kinds of functional IC cards;
Storing the first historical usage data in a first storage area of the memory; wherein the first storage area is a storage area for storing usage data corresponding to the first type of functional IC card.
8. The IC card according to any of claims 5-7, wherein the MCU is further configured to:
After the IC card activating the functions of the N-function IC cards is taken as the activated function IC card, the data stored in the other code areas except the N code areas in the M code areas are deleted.
CN201710035739.XA 2017-01-17 2017-01-17 Method for activating IC card and IC card Active CN106874808B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710035739.XA CN106874808B (en) 2017-01-17 2017-01-17 Method for activating IC card and IC card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710035739.XA CN106874808B (en) 2017-01-17 2017-01-17 Method for activating IC card and IC card

Publications (2)

Publication Number Publication Date
CN106874808A CN106874808A (en) 2017-06-20
CN106874808B true CN106874808B (en) 2019-12-13

Family

ID=59158032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710035739.XA Active CN106874808B (en) 2017-01-17 2017-01-17 Method for activating IC card and IC card

Country Status (1)

Country Link
CN (1) CN106874808B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2119012U (en) * 1992-05-16 1992-10-14 金文哲 Fee collector for electricity
JP2012198901A (en) * 2012-04-17 2012-10-18 Dainippon Printing Co Ltd Ic card, and program for ic card
CN103455828A (en) * 2012-06-04 2013-12-18 深圳商联商用科技有限公司 Method and system for achieving all-purpose card
CN103778448A (en) * 2012-10-25 2014-05-07 中国银联股份有限公司 Multi-application smart card management system and method
CN106157438A (en) * 2016-07-05 2016-11-23 新智数字科技有限公司 A kind of data processing method being applied to all-purpose card and all-purpose card

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2119012U (en) * 1992-05-16 1992-10-14 金文哲 Fee collector for electricity
JP2012198901A (en) * 2012-04-17 2012-10-18 Dainippon Printing Co Ltd Ic card, and program for ic card
CN103455828A (en) * 2012-06-04 2013-12-18 深圳商联商用科技有限公司 Method and system for achieving all-purpose card
CN103778448A (en) * 2012-10-25 2014-05-07 中国银联股份有限公司 Multi-application smart card management system and method
CN106157438A (en) * 2016-07-05 2016-11-23 新智数字科技有限公司 A kind of data processing method being applied to all-purpose card and all-purpose card

Also Published As

Publication number Publication date
CN106874808A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN105404525B (en) Manage the method and device of the basic input output system configuration in computer system
CN103412769A (en) External card parameter configuration method, equipment and system
CN114003538B (en) Identification method of intelligent network card and intelligent network card
CN110119623A (en) A kind of credible main board implementation method for realizing that firmware is actively measured using TPCM
CN105654003B (en) A kind of IC card detection method and device in place
CN102446101A (en) System for mandatorily upgrading firmware and method for mandatorily upgrading firmware thereof
US8533747B2 (en) Method and system for selecting one or more integrated circuit card interface devices
CN109313761B (en) Selecting applications on a card
CN106874808B (en) Method for activating IC card and IC card
WO2017127341A1 (en) Systems and methods for automatic detection and configuration of voltage regulator phases in a multi-rail voltage regulator
CN104915269A (en) Mobile terminal time and date information setting method and apparatus and mobile terminal
CN110119625A (en) A kind of trusted computing method
CN104951325A (en) Information display method and electronic equipment
CN111399871A (en) System updating method, device, equipment and medium for HBA card
US20200019412A1 (en) Systems and methods for optimal configuration of information handling resources
CN110119624A (en) A kind of security measure method
CN112988250B (en) Multi-mainboard USB service configuration method, system, terminal and storage medium
CN117519836B (en) Method and device for controlling starting of server and server
CN211236889U (en) Circuit for configuring computer BIOS parameters by utilizing single chip microcomputer
US10733134B2 (en) Systems and methods for enabling universal circuit board socket
CN114238232B (en) Intelligent ammeter file reading and writing system, method, equipment and medium
CN201194106Y (en) Computer system apparatus and mobile storage apparatus
CN108171305B (en) The method that the integrated circuit card and its key for having keypress function are realized
US11244055B1 (en) Management controller to bios root of trust bypass implant detection and remediation
CN113572849A (en) File access system and method

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