CN106020868B - A kind of smart card firmware update and system - Google Patents

A kind of smart card firmware update and system Download PDF

Info

Publication number
CN106020868B
CN106020868B CN201610309625.5A CN201610309625A CN106020868B CN 106020868 B CN106020868 B CN 106020868B CN 201610309625 A CN201610309625 A CN 201610309625A CN 106020868 B CN106020868 B CN 106020868B
Authority
CN
China
Prior art keywords
firmware
smart card
meter
cloud server
terminal
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
CN201610309625.5A
Other languages
Chinese (zh)
Other versions
CN106020868A (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.)
Enn New Energy Engineering Technology Co ltd
Original Assignee
新智数字科技有限公司
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 新智数字科技有限公司 filed Critical 新智数字科技有限公司
Priority to CN201610309625.5A priority Critical patent/CN106020868B/en
Publication of CN106020868A publication Critical patent/CN106020868A/en
Application granted granted Critical
Publication of CN106020868B publication Critical patent/CN106020868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a kind of smart card firmware update and systems, it include: that cloud server receives the first firmware update request that terminal is sent, the request of first firmware update is used to indicate cloud server and generates the first firmware, and the first firmware is used to execute the read-write operation of the first meter with terminal in the smart card bound;It include the mark of the first meter and the mark of smart card in the request of first firmware update;Cloud server determines the dynamic link library file of the first meter according to the mark of the first meter, according to the mark of smart card, determines the original firmware of smart card;According to the original firmware of the dynamic link library file of the first meter and smart card, the first firmware is generated;And the first firmware of generation is sent to terminal, so that terminal downloads the first firmware received within a smart card, the current firmware of smart card is set to be updated to the first firmware, it can be achieved that rapidly for the firmware for being used to execute intelligent card chip read-write operation without application scenarios smart card Rapid matching.

Description

A kind of smart card firmware update and system
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of smart card firmware update and systems.
Background technique
Smart card and mobile terminal are communicated the function, it can be achieved that new.For example, the smart card with Bluetooth function can be with Communicated with mobile phone by bluetooth module, it can be achieved that user carries out supplementing with money for smart card by mobile phone, make user need not before go Business hall is supplemented with money, is provided while facilitate for user, also be can reduce the operation maintenance cost of card issuer.
Smart card with Bluetooth function is unable to individualism, it is necessary to cooperate meter manufacturer (such as gas meter, flow meter supplier) It is used with data backstage (gas company's data backstage).Different meter manufacturers is different to the data read-write operation of smart card, Smart card is different from the communication security mode of different meter manufacturers (key is different), and the function of one card for multiple uses is realized to smart card It can, it is desirable that smart card will be adapted to the data store organisation and data communication security method of different meter manufacturers, however most of tables The data store organisation for being unwilling to open the IC card oneself used and encrypted data communication permission of manufacturer are counted, so, different tables Counting manufacturer and same smart card, there are the skimble-scamble problems of data interactive mode, become the bottle that smart card realizes one card for multiple uses Neck.Although carrying out data store organisation and data communication security that program development enables to smart card to be adapted to different meter manufacturers Method, but a large amount of development time can be wasted, influence the popularization progress of smart card.
To sum up, exist in the prior art that there are data interactive mode disunities with same smart card because of different meter manufacturers The problem of, cause smart card to can not achieve one card for multiple uses.
Summary of the invention
The embodiment of the present invention provides a kind of smart card firmware update and system, existing in the prior art to solve Because of different meter manufacturers and same smart card there are the skimble-scamble problem of data interactive mode caused by smart card cannot a card it is more The problem of using.
The embodiment of the present invention provides a kind of smart card firmware update, comprising:
Cloud server receives the first firmware update request that terminal is sent, and the first firmware update request is used to indicate The cloud server generates the first firmware, and first firmware is for executing first in the smart card bound with the terminal The read-write operation of meter;It include the mark of first meter and the mark of the smart card in the first firmware update request Know;
The cloud server determines the dynamic link library text of first meter according to the mark of first meter Part;According to the mark of the smart card, the original firmware of the smart card is determined;
The cloud server according to the dynamic link library file of first meter and the original firmware of the smart card, Generate first firmware;
First firmware of generation is sent to the terminal by the cloud server.
In above-described embodiment, cloud server is requested according to the first firmware update, determines the dynamic link library of the first meter The original firmware of file and smart card generates first according to the original firmware of the dynamic link library file of the first meter and smart card Firmware, so that the first firmware is used to execute the read-write operation of the first meter with terminal in the smart card bound, so that intelligence The data interaction with the first meter can be blocked, match the data interactive mode of the manufacturer of the first meter.When the first firmware downloads to intelligence Can be in card, and after the current firmware of smart card is updated to the first firmware, the card object that fills of smart card is switched to the first meter, intelligence The application scenarios of card are switched to the first meter and are supplemented with money, and then realize the one card for multiple uses function of smart card.By cloud server The first firmware is generated according to the original firmware of the dynamic link library file of the first meter and smart card, may be implemented rapidly to be directed to It is the firmware that smart card Rapid matching executes intelligent card chip read-write operation without application scenarios.
Further, it before first firmware of generation is sent to the terminal by the cloud server, also wraps It includes:
The cloud server is carried out according to first firmware of the communication key arranged with the smart card to generation Encryption.The first firmware of generation is encrypted in cloud server, it is ensured that the safety of data transmission avoids table Count the leakage of manufacturer's trade secret.
The embodiment of the present invention provides a kind of smart card firmware update, comprising:
Terminal sends the request of the first firmware update to cloud server, and the first firmware update request is used to indicate The cloud server generates the first firmware, and first firmware is for executing first in the smart card bound with the terminal The read-write operation of meter;
The terminal receives the first firmware that the cloud server is sent, and first firmware is the cloud server It is generated according to the firmware code of the dynamic link library file of first meter and the smart card;
The terminal sends the request of the second firmware update to the smart card, includes institute in the second firmware update request The first firmware is stated, so that the smart card is updated the current firmware of the smart card according to first firmware.
In above-described embodiment, with smart card binding terminal pass through and cloud server interact, realization smart card it is new Firmware quickly generates, and is intelligence by the old firmware update of smart card by the interaction of the terminal and smart card bound with smart card Block new firmware, so that the data interactive mode between smart card and each meter manufacturer matches, and then realizes the one of smart card Cartoon is used.When the application scenarios of smart card change, need to switch over the card object that fills of smart card, at this point, and intelligence The terminal that binding can be blocked sends the request of the first firmware update, instruction cloud server the first firmware of generation to cloud server;Eventually After end receives the first firmware that cloud server is sent, the second firmware update including the first firmware is sent to smart card and is asked It asks, so that smart card is updated according to current firmware of first firmware to smart card.Because the first firmware is according to the first meter Dynamic link library file and smart card original firmware generate, the data interaction side between smart card and the first meter manufacturer Formula be it is matched, after the current firmware of smart card is updated to the first firmware, the card object that fills of smart card is switched to the first meter, The application scenarios of smart card are switched to the first meter and are supplemented with money.
The embodiment of the present invention provides a kind of smart card firmware update, comprising:
Smart card receives the second firmware update request that terminal is sent;It include described the in second firmware update request One firmware, first firmware are used to execute the read-write operation of the first meter in the smart card;First firmware is cloud Server is held to be generated according to the dynamic link library file of first meter and the original firmware of the smart card;
The current firmware of the smart card is updated to first firmware by the smart card.
In above-described embodiment, because the first firmware is dynamic link library file and intelligence of the cloud server according to the first meter What the original firmware of card generated, after the current firmware of smart card is updated to the first firmware, the card object that fills of smart card is switched to the One meter, the application scenarios of smart card are switched to the first meter and are supplemented with money.And then realize the different application scene of smart card Extension so that one card for multiple uses can be realized in the upgrading that smart card only relies on firmware.When first firmware is run within a smart card, intelligence Can card the first meter manufacturer between data interactive mode be it is matched, solve the technical problems existing in the prior art.
Further, if first firmware is the cloud server according to the communication key arranged with the smart card Firmware after being encrypted;Then
Before the current firmware of the smart card is updated to first firmware by the smart card, the method is also wrapped It includes:
The smart card is decrypted first firmware according to the communication key arranged with the cloud server.It is logical It crosses and encryption and decryption is carried out to the first firmware, it can be achieved that the safety that data are transmitted.
Further, the current firmware of the smart card is the original firmware of the second firmware or the smart card;
Wherein, second firmware is dynamic link library file and the intelligence of the cloud server according to the second meter What the original firmware that can block generated.
The embodiment of the present invention provides a kind of cloud server, comprising:
Receiving unit, for receiving the first firmware update request of terminal transmission, the first firmware update request is used for Indicate that the cloud server generates the first firmware, first firmware in the smart card bound with the terminal for executing The read-write operation of first meter;It include identifying and the smart card for first meter in the first firmware update request Mark;
Determination unit determines the dynamic link library file of first meter for the mark according to first meter; According to the mark of the smart card, the original firmware of the smart card is determined;
Generation unit, the dynamic link library file of first meter for being determined according to the determination unit and described The original firmware of smart card generates first firmware;
Transmission unit, first firmware for generating the generation unit are sent to the terminal.
It further, further include encryption unit,
The encryption unit, for before first firmware is sent to the terminal by the transmission unit, according to First firmware that the generation unit generates is encrypted with the communication key of smart card agreement.
The embodiment of the present invention provides a kind of terminal, comprising:
Transmission unit, for sending the request of the first firmware update to cloud server, first firmware update is asked It asks and is used to indicate the first firmware of the cloud server generation, first firmware is used in the smart card bound with the terminal The middle read-write operation for executing the first meter;
Receiving unit, the first firmware sent for receiving the cloud server, first firmware is the cloud Server is generated according to the dynamic link library file of first meter and the firmware code of the smart card;
The transmission unit is also used to send the request of the second firmware update, second firmware update to the smart card Include first firmware in request so that the smart card according to first firmware to the current firmware of the smart card into Row updates.
The embodiment of the present invention provides a kind of smart card, comprising:
Receiving unit, for receiving the second firmware update request of terminal transmission;It is wrapped in the second firmware update request First firmware is included, first firmware is used to execute the read-write operation of the first meter in the smart card;Described first Firmware is that cloud server is generated according to the dynamic link library file of first meter and the original firmware of the smart card;
Updating unit, for the current firmware of the smart card to be updated to first firmware.
It further, further include decryption unit;
If first firmware is that the cloud server is encrypted according to the communication key arranged with the smart card Treated firmware;Then
The decryption unit is consolidated for the current firmware of the smart card to be updated to described first in the updating unit Before part, first firmware is decrypted according to the communication key arranged with the cloud server.
Further, the current firmware of the smart card is the original firmware of the second firmware or the smart card;
Wherein, second firmware is dynamic link library file and the intelligence of the cloud server according to the second meter What the original firmware that can block generated.
The embodiment of the present invention provides a kind of smart card firmware update system, comprising:
The cloud server, for receiving the first firmware update request of terminal transmission, first firmware update is asked It asks and is used to indicate the first firmware of the cloud server generation, first firmware is used in the smart card bound with the terminal The middle read-write operation for executing the first meter includes the mark and the intelligence of first meter in first firmware update request The mark that can block;According to the mark of first meter, the dynamic link library file of first meter is determined;According to the intelligence The mark that can block, determines the original firmware of the smart card;According to the dynamic link library file of first meter and the intelligence The original firmware that can block, generates first firmware, and first firmware of generation is sent to the terminal;
The terminal, for sending the first firmware update request, and the reception cloud to the cloud server First firmware for holding server to send;The request of the second firmware update, second firmware update are sent to the smart card Include first firmware in request so that the smart card according to first firmware to the current firmware of the smart card into Row updates;
The smart card, the second firmware update request sent for receiving the terminal, second firmware update are asked Include first firmware in asking, the current firmware of the smart card is updated to first firmware.
In above-described embodiment, interaction between the terminal bound by smart card and cloud server is realized to intelligence The old firmware update of smart card is intelligence by the interaction of the terminal and smart card bound with smart card by the generation for blocking new firmware Block new firmware, can not only realize the update of intelligent holding firmware under different application scene, can also make smart card and each meter Data interactive mode matching between manufacturer, and then realize that the all-purpose card of smart card is used.When the application scenarios of smart card change It when change, needs to switch over the card object that fills of smart card, as the card object that fills of smart card is switched to the first table by the second meter Meter, at this point, the terminal with smart card binding sends the request of the first firmware update to cloud server, instruction cloud server is generated First firmware generates first according to the dynamic link library file of the first meter and the original firmware of smart card by cloud server and consolidates Part, the first firmware are used to execute the read-write operation of the first meter with terminal in the smart card bound, and cloud server will generate The first firmware be sent to terminal;After terminal receives the first firmware that cloud server is sent, sending to smart card includes the Second firmware update of one firmware is requested, so that smart card is updated according to current firmware of first firmware to smart card.Cause First firmware is generated according to the dynamic link library file of the first meter and the original firmware of smart card, smart card and the first table Meter manufacturer between data interactive mode be it is matched, after the current firmware of smart card is updated to the first firmware, smart card It fills card object and is switched to the first meter, the application scenarios of smart card are switched to the first meter and are supplemented with money.
Detailed description of the invention
Fig. 1 to Fig. 3 is a kind of smart card firmware update flow diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of cloud server provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of smart card provided in an embodiment of the present invention;
Fig. 7 to Fig. 8 is a kind of structural schematic diagram of smart card firmware update system provided in an embodiment of the present invention.
Specific embodiment
In order to solve the problems, such as that smart card existing in the prior art is unable to one card for multiple uses, the embodiment of the invention provides one Kind of smart card firmware update and system, it can be achieved that under different application scene intelligent holding firmware update, by with smart card Interaction between the terminal and cloud server of binding realizes the generation to the new firmware of smart card, passes through what is bound with smart card The old firmware update of smart card is the new firmware of smart card by the interaction of terminal and smart card, so that smart card and each meter factory Data interactive mode matching between quotient, and then realize that the all-purpose card of smart card is used.When the application scenarios of smart card change When, it needs to switch over the card object that fills of smart card, if the card object that fills of smart card is switched to the first meter by the second meter, At this point, the terminal with smart card binding sends the request of the first firmware update to cloud server, instruction cloud server generates the One firmware generates first according to the dynamic link library file of the first meter and the original firmware of smart card by cloud server and consolidates Part, the first firmware are used to execute the read-write operation of the first meter with terminal in the smart card bound, and cloud server will generate The first firmware be sent to terminal;After terminal receives the first firmware that cloud server is sent, sending to smart card includes the Second firmware update of one firmware is requested, so that smart card is updated according to current firmware of first firmware to smart card.Cause First firmware is generated according to the dynamic link library file of the first meter and the original firmware of smart card, smart card and the first table Meter manufacturer between data interactive mode be it is matched, after the current firmware of smart card is updated to the first firmware, smart card It fills card object and is switched to the first meter, the application scenarios of smart card are switched to the first meter and are supplemented with money.
Smart card firmware update provided in an embodiment of the present invention is related to terminal side, cloud server side and intelligence Card, the method flow for carrying out firmware update below for every side are described in detail.
Embodiment one
As shown in Figure 1, a kind of smart card firmware update process of cloud server side provided in an embodiment of the present invention Include:
The embodiment of the present invention provides a kind of smart card firmware update, comprising:
Step 101, cloud server receives the first firmware update request that terminal is sent, and the request of the first firmware update is used for Indicate that cloud server generates the first firmware, the first firmware is used to execute the reading of the first meter with terminal in the smart card bound Write operation;It include the mark of the first meter and the mark of smart card in the request of first firmware update;
Step 102, cloud server determines the dynamic link library file of the first meter according to the mark of the first meter;Root According to the mark of smart card, the original firmware of smart card is determined;
Step 103, cloud server is generated according to the dynamic link library file of the first meter and the original firmware of smart card First firmware;
Step 104, the first firmware of generation is sent to terminal by cloud server.
In step 101, terminal by terminal can be realized smart card fill card, fill the application APP of table function with Cloud server carries out data interaction.The request of first firmware update can be terminal and switch in the card object that fills for receiving terminal user It is sent after instruction to cloud server.First firmware update request instruction cloud server combination smart card original firmware with The dll file that smart card will switch fill card object (such as the first meter) generates new firmware.New firmware makes smart card Data interactive mode between the new provider (manufacturer of the first meter) for filling card object matches.
First meter can be the water meter of terminal user side, ammeter, gas meter, flow meter, and access card etc. is not specifically limited herein. The unique number for being identified as the first meter of first meter, such as the number of water meter, the mark of the first meter is also possible to the first table The mark of the manufacturer of meter, such as the code of the waterworks * * *.Terminal user registers the relevant information of the first meter on APP in advance, Terminal receive terminal user by APP triggering fill card object switching instruction when, obtain pre-registered first table of terminal user The relevant information of meter, the relevant information of the first meter include the mark of the first meter.
The mark of smart card refers to the number of the card number either intelligent card chip of smart card.
Smart card in the embodiment of the present invention is Bluetooth intelligent card, can be carried out by built-in bluetooth module and terminal wireless Communication realizes that terminal will be loaded in Bluetooth intelligent card under the first firmware.Smart card in the prior art does not have generally and terminal The function of communication.
In step 101, the first firmware is used to execute the read-write operation of the first meter with terminal in the smart card bound, and is The first firmware that finger cloud server will generate can be realized the data interactive mode of smart card and the first meter, with the first table Meter is matched with the data interactive mode between the manufacturer of the first meter.
In step 102, dynamic link library file, that is, DLL (Dynamic Link Library) file, also known as " application program Expand ", it is software document type.In Windows, many application programs are not a complete executable file, they It is divided into some relatively independent dynamic link libraries, i.e. dll file, is typically placed in system, when some program of execution When, dynamic link library file can be called.One application program can be used multiple dll files, and dll file may also be by Different application calls.The dynamic link library file of first meter is stored in advance in cloud server, cloud server It is also stored with the mark and the mapping relations of the dynamic link library file of the first meter of the first meter simultaneously.
Cloud server stores the dll file of each meter manufacturer, requests it when cloud receives the first firmware update Afterwards, it is identified according to the meter in the request of the first firmware update, directly searches the dll file of the corresponding meter manufacturer of label mark ?.
In step 102, cloud server determines the dynamic link library file of the first meter according to the mark of the first meter, Other modes can also be used, for example, mark of the cloud server according to the first meter, to the vendor server of the first meter Send request, the dynamic link library file of the first meter of request.
In the embodiment of the present invention, the original firmware of smart card is stored in cloud server, i.e. the mark and intelligence of smart card The mapping relations for the original firmware that can block are stored in cloud server.The original firmware of smart card refers to the drive in write-in chip Dynamic program is used to support the various functions of smart card.The process of smart card firmware update is exactly to be written newly in intelligent card chip Firmware, original firmware is replaced with to the process of new firmware.
In step 103, cloud server is quick by the original firmware of the dynamic link library file of the first meter and smart card It is fused into an executable file, i.e. the first firmware, the first firmware can be run within a smart card, and had and executed the first meter Read-write operation function, i.e. data in intelligent card chip can be written in the first meter by smart card, can also read One meter fills the data after table, and the data the first meter filled after table are written in intelligent card chip, so that smart card becomes First meter fills meter apparatus.
In step 104, the first firmware of generation is sent to terminal by cloud server so that terminal will receive first Firmware is downloaded within a smart card, and the current firmware of smart card is made to be updated to the first firmware.
Further, in order to guarantee data transmission safety, avoid the leakage of meter manufacturer trade secret, take beyond the clouds Before first firmware of generation is sent to terminal by business device, the above method further include:
Cloud server is encrypted according to the first firmware of the communication key arranged with smart card to generation.
Cloud server and bluetooth card all have the communication key of encryption and decryption, and encryption and decryption require the participation of key It is able to achieve, when both sides carry out ciphertext transmission, data sender needs the data that will be transmitted to encrypt, and data receiver needs It will be to the ciphertext data deciphering of transmission.
In above-described embodiment, cloud server is requested according to the first firmware update, determines the dynamic link library of the first meter The original firmware of file and smart card generates first according to the original firmware of the dynamic link library file of the first meter and smart card Firmware, so that the first firmware is used to execute the read-write operation of the first meter with terminal in the smart card bound, so that intelligence The data interaction with the first meter can be blocked, match the data interactive mode of the manufacturer of the first meter.When the first firmware downloads to intelligence Can be in card, and after the current firmware of smart card is updated to the first firmware, the card object that fills of smart card is switched to the first meter, intelligence The application scenarios of card are switched to the first meter and are supplemented with money, and then realize the one card for multiple uses function of smart card.By cloud server The first firmware is generated according to the original firmware of the dynamic link library file of the first meter and smart card, may be implemented rapidly to be directed to It is the firmware that smart card Rapid matching is used to execute intelligent card chip read-write operation without application scenarios.
Embodiment two
As shown in Fig. 2, a kind of smart card firmware update process of terminal side provided in an embodiment of the present invention includes:
Step 201, terminal sends the request of the first firmware update to cloud server, and the request of the first firmware update is used to indicate Cloud server generates the first firmware, and the first firmware is used to execute the read-write behaviour of the first meter with terminal in the smart card bound Make;
Step 202, terminal receives the first firmware that cloud server is sent, and the first firmware is cloud server according to first What the dynamic link library file of meter and the firmware code of smart card generated;
Step 203, terminal sends the request of the second firmware update to smart card, includes first solid in the request of the second firmware update Part, so that smart card is updated according to current firmware of first firmware to smart card.
In above-mentioned steps 202, the mark of mark and smart card in the request of the first firmware update including the first meter, so that After cloud server receives the request of the first firmware update, according to the mark of the first meter, the dynamic chain of the first meter is determined Connect library file;And the mark according to smart card, determine the original firmware of smart card.
Terminal is filled card, is filled the application APP of table function and take respectively with cloud by the smart card that can be realized in terminal Business device, smart card carry out information exchange.
In step 201, terminal by wireless communication request to cloud server the first firmware update of transmission by module.
In step 203, terminal sends the second firmware update to smart card by the bluetooth module in terminal and requests.
In above-described embodiment, with smart card binding terminal pass through and cloud server interact, realization smart card it is new Firmware quickly generates, and is intelligence by the old firmware update of smart card by the interaction of the terminal and smart card bound with smart card Block new firmware, so that the data interactive mode between smart card and each meter manufacturer matches, and then realizes the one of smart card Cartoon is used.When the application scenarios of smart card change, need to switch over the card object that fills of smart card, at this point, and intelligence The terminal that binding can be blocked sends the request of the first firmware update, instruction cloud server the first firmware of generation to cloud server;Eventually After end receives the first firmware that cloud server is sent, the second firmware update including the first firmware is sent to smart card and is asked It asks, so that smart card is updated according to current firmware of first firmware to smart card.Because the first firmware is according to the first meter Dynamic link library file and smart card original firmware generate, the data interaction side between smart card and the first meter manufacturer Formula be it is matched, after the current firmware of smart card is updated to the first firmware, the card object that fills of smart card is switched to the first meter, The application scenarios of smart card are switched to the first meter and are supplemented with money.
Embodiment three
As shown in figure 3, the embodiment of the present invention provides a kind of smart card firmware update of smart card side, comprising:
Step 301, smart card receives the second firmware update request that terminal is sent;It include the in the request of second firmware update One firmware, the first firmware are used to execute the read-write operation of the first meter within a smart card;First firmware be cloud server according to What the dynamic link library file of the first meter and the original firmware of smart card generated;
Step 302, the current firmware of smart card is updated to the first firmware by smart card.
In above method process, smart card is Bluetooth intelligent card, and the primary processor of smart card passes through internal bluetooth module The second firmware update request that terminal is sent is received, the first firmware in the request of the second firmware update is obtained, according to the first firmware, Carry out the update of smart card current firmware.For Bluetooth intelligent card, need not distinguish between that smart card switches over fills card pair As, it is only necessary to it is requested according to the second firmware update that terminal APP is sent, intelligence can be realized in the online updating for executing the first firmware The switching of the application scenarios of card realizes that smart card has different function by the mode of different firmware updates.
In above-described embodiment, the first firmware is stored in intelligent card chip after replacing smart card current firmware.
In concrete application, in order to make the firmware version latest edition in smart card, it can also configure in Bluetooth intelligent card solid Part online upgrading subregion, the first firmware received are initially stored in firmware on line upgrading subregion, and blue-tooth intelligence holding firmware exists Line upgrading subregion has the function of OTA (Over the Air Technology, over the air) online upgrading, Ke Yiyun Perhaps Bluetooth intelligent card receives the online upgrading instruction of terminal APP, solid to the whole in Bluetooth intelligent card firmware on line upgrading subregion Part or portion firmware carry out online upgrading, and the firmware after online upgrading is stored in intelligent card chip again.
And the firmware of general smart card can not update and upgrade, unless by the firmware of smart card again burning in intelligence In energy card chip.
Further, for the safety of improve data transfer, if the first firmware be cloud server according to smart card The communication key of agreement be encrypted after firmware;The current firmware of smart card is then updated to the first firmware in smart card Before, method further include: smart card is decrypted the first firmware according to the communication key arranged with cloud server.
Further, the current firmware of smart card is the original firmware of the second firmware or smart card;Wherein, the second firmware It is that cloud server is generated according to the dynamic link library file of the second meter and the original firmware of smart card.
In above-described embodiment, because the first firmware is dynamic link library file and intelligence of the cloud server according to the first meter What the original firmware of card generated, after the current firmware of smart card is updated to the first firmware, the card object that fills of smart card is switched to the One meter, the application scenarios of smart card are switched to the first meter and are supplemented with money.And then realize the different application scene of smart card Extension so that one card for multiple uses can be realized in the upgrading that smart card only relies on firmware.When first firmware is run within a smart card, intelligence The data interactive mode that can block between the first meter manufacturer is matched.
For above method process, the embodiment of the present invention also provides a kind of cloud server, terminal, smart card, smart card The particular content of the system of firmware update, these equipment and system is referred to above method implementation, and details are not described herein.
Example IV
As shown in figure 4, the embodiment of the present invention provides a kind of cloud server, comprising:
Receiving unit 401, for receiving the first firmware update request of terminal transmission, the first firmware update is requested for referring to Show that cloud server generates the first firmware, the first firmware is used to execute the read-write of the first meter with terminal in the smart card bound Operation;It include the mark of the first meter and the mark of smart card in the request of first firmware update;
Determination unit 402 determines the dynamic link library file of the first meter for the mark according to the first meter;According to The mark of smart card determines the original firmware of smart card;
Generation unit 403, the dynamic link library file and smart card of the first meter for being determined according to determination unit 402 Original firmware, generate the first firmware;
Transmission unit 404, the first firmware for generating generation unit 403 are sent to terminal.
It further, further include encryption unit,
Encryption unit, for before the first firmware is sent to terminal by transmission unit 404, according to what is arranged with smart card The first firmware that generation unit generates is encrypted in communication key.
In above-described embodiment, cloud server is requested according to the first firmware update, determines the dynamic link library of the first meter The original firmware of file and smart card generates first according to the original firmware of the dynamic link library file of the first meter and smart card Firmware, so that the first firmware is used to execute the read-write operation of the first meter with terminal in the smart card bound, so that intelligence The data interaction with the first meter can be blocked, match the data interactive mode of the manufacturer of the first meter.When the first firmware downloads to intelligence Can be in card, and after the current firmware of smart card is updated to the first firmware, the card object that fills of smart card is switched to the first meter, intelligence The application scenarios of card are switched to the first meter and are supplemented with money, and then realize the one card for multiple uses function of smart card.By cloud server The first firmware is generated according to the original firmware of the dynamic link library file of the first meter and smart card, may be implemented rapidly to be directed to It is the firmware that smart card Rapid matching executes intelligent card chip read-write operation without application scenarios.
Embodiment five
As shown in figure 5, the embodiment of the present invention provides a kind of terminal, comprising:
Transmission unit 501, for sending the request of the first firmware update to cloud server, the request of the first firmware update is used for Indicate that cloud server generates the first firmware, the first firmware is used to execute the reading of the first meter with terminal in the smart card bound Write operation;
Receiving unit 502, for receiving the first firmware of cloud server transmission, the first firmware be cloud server according to What the dynamic link library file of the first meter and the firmware code of smart card generated;
Transmission unit 501 is also used to send the request of the second firmware update to smart card, includes in the request of the second firmware update First firmware, so that smart card is updated according to current firmware of first firmware to smart card.
In above-described embodiment, with smart card binding terminal pass through and cloud server interact, realization smart card it is new Firmware quickly generates, and is intelligence by the old firmware update of smart card by the interaction of the terminal and smart card bound with smart card Block new firmware, so that the data interactive mode between smart card and each meter manufacturer matches, and then realizes the one of smart card Cartoon is used.When the application scenarios of smart card change, need to switch over the card object that fills of smart card, at this point, and intelligence The terminal that binding can be blocked sends the request of the first firmware update, instruction cloud server the first firmware of generation to cloud server;Eventually After end receives the first firmware that cloud server is sent, the second firmware update including the first firmware is sent to smart card and is asked It asks, so that smart card is updated according to current firmware of first firmware to smart card.Because the first firmware is according to the first meter Dynamic link library file and smart card original firmware generate, the data interaction side between smart card and the first meter manufacturer Formula be it is matched, after the current firmware of smart card is updated to the first firmware, the card object that fills of smart card is switched to the first meter, The application scenarios of smart card are switched to the first meter and are supplemented with money.
Embodiment six
As shown in fig. 6, the embodiment of the present invention provides a kind of smart card, comprising:
Receiving unit 601, for receiving the second firmware update request of terminal transmission;Include in the request of second firmware update First firmware, the first firmware are used to execute the read-write operation of the first meter within a smart card;First firmware is cloud server root It is generated according to the dynamic link library file of the first meter and the original firmware of smart card;
Updating unit 602, for the current firmware of smart card to be updated to the first firmware.
It further, further include decryption unit;
If the first firmware is the firmware after cloud server is encrypted according to the communication key arranged with smart card; Then
Decryption unit, for before the current firmware of smart card is updated to the first firmware by updating unit, according to cloud The first firmware is decrypted in the communication key of end server commitment.
Further, the current firmware of smart card is the original firmware of the second firmware or smart card;
Wherein, the second firmware is cloud server according to the original solid of the dynamic link library file of the second meter and smart card What part generated.
In above-described embodiment, because the first firmware is dynamic link library file and intelligence of the cloud server according to the first meter What the original firmware of card generated, after the current firmware of smart card is updated to the first firmware, the card object that fills of smart card is switched to the One meter, the application scenarios of smart card are switched to the first meter and are supplemented with money.And then realize the different application scene of smart card Extension so that one card for multiple uses can be realized in the upgrading that smart card only relies on firmware.When first firmware is run within a smart card, intelligence Can card the first meter manufacturer between data interactive mode be it is matched, solve the technical problems existing in the prior art.
Embodiment seven
As shown in fig. 7, the embodiment of the present invention provides a kind of smart card firmware update system, comprising:
Cloud server 701, for receiving the first firmware update request of the transmission of terminal 702, the request of the first firmware update It is used to indicate cloud server 701 and generates the first firmware, the first firmware in the smart card 703 bound with terminal 702 for holding The read-write operation of the first meter of row, the first firmware update request in include the first meter mark and smart card mark;According to The mark of first meter determines the dynamic link library file of the first meter;According to the mark of smart card, the original of smart card is determined Firmware;According to the original firmware of the dynamic link library file of the first meter and smart card, the first firmware is generated, and by the of generation One firmware is sent to terminal;
Terminal 702 is requested for sending the first firmware update to cloud server, and receives what cloud server was sent First firmware;The request of the second firmware update is sent to smart card, includes the first firmware in the request of the second firmware update, so that intelligence Card is updated according to current firmware of first firmware to smart card;
Smart card 703 includes the in the request of the second firmware update for receiving the second firmware update request of terminal transmission The current firmware of smart card is updated to the first firmware by one firmware.
In above system, cloud server 701 stores the dll file of each meter manufacturer.
Terminal 702 in above system can be mobile terminal, such as mobile phone, tablet computer.Terminal 702 passes through can be real Existing smart card fill card, fill the application APP of table function respectively with cloud server 701, the progress information exchange of smart card 703, Terminal 702 by wireless communication request to cloud server the first firmware update of transmission by module.Terminal passes through bluetooth module to intelligence It can card transmission the second firmware update request.
Smart card 703 in above system is Bluetooth intelligent card, including primary processor, bluetooth module, IC chip etc., bluetooth Firmware on line upgrading subregion is provided in smart card, for carrying out online upgrading to intelligent holding firmware.
Embodiment eight
Above system may also include the first meter 704, as shown in Figure 8, wherein the first meter is ammeter, water meter, gas meter, flow meter Or other tables.
In above-described embodiment, interaction between the terminal bound by smart card and cloud server is realized to intelligence The old firmware update of smart card is intelligence by the interaction of the terminal and smart card bound with smart card by the generation for blocking new firmware Block new firmware, can not only realize the update of intelligent holding firmware under different application scene, can also make smart card and each meter Data interactive mode matching between manufacturer, and then realize that the all-purpose card of smart card is used.When the application scenarios of smart card change It when change, needs to switch over the card object that fills of smart card, as the card object that fills of smart card is switched to the first table by the second meter Meter, at this point, the terminal with smart card binding sends the request of the first firmware update to cloud server, instruction cloud server is generated First firmware generates first according to the dynamic link library file of the first meter and the original firmware of smart card by cloud server and consolidates Part, the first firmware are used to execute the read-write operation of the first meter with terminal in the smart card bound, and cloud server will generate The first firmware be sent to terminal;After terminal receives the first firmware that cloud server is sent, sending to smart card includes the Second firmware update of one firmware is requested, so that smart card is updated according to current firmware of first firmware to smart card.Cause First firmware is generated according to the dynamic link library file of the first meter and the original firmware of smart card, smart card and the first table Meter manufacturer between data interactive mode be it is matched, after the current firmware of smart card is updated to the first firmware, smart card It fills card object and is switched to the first meter, the application scenarios of smart card are switched to the first meter and are supplemented with money.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (13)

1. a kind of smart card firmware update characterized by comprising
Cloud server receives the first firmware update request that terminal is sent, and the first firmware update request is used to indicate described Cloud server generates the first firmware, and first firmware is for executing the first meter in the smart card bound with the terminal Read-write operation;It include the mark of first meter and the mark of the smart card in the first firmware update request;
The cloud server determines the dynamic link library file of first meter according to the mark of first meter;Root According to the mark of the smart card, the original firmware of the smart card is determined;
The cloud server is generated according to the dynamic link library file of first meter and the original firmware of the smart card First firmware;
First firmware of generation is sent to the terminal by the cloud server.
2. the method as described in claim 1, which is characterized in that send out first firmware of generation in the cloud server Before giving the terminal, further includes:
The cloud server is encrypted according to first firmware of the communication key arranged with the smart card to generation Processing.
3. a kind of smart card firmware update characterized by comprising
Terminal sends the request of the first firmware update to cloud server, and the first firmware update request is used to indicate the cloud Server generates the first firmware, and first firmware is used to execute the reading of the first meter with the terminal in the smart card bound Write operation;
The terminal receives the first firmware that the cloud server is sent, first firmware be the cloud server according to What the dynamic link library file of first meter and the firmware code of the smart card generated;
The terminal sends the request of the second firmware update to the smart card, includes described the in second firmware update request One firmware, so that the smart card is updated the current firmware of the smart card according to first firmware.
4. a kind of smart card firmware update characterized by comprising
Smart card receives the second firmware update request that terminal is sent;It include the first firmware in the second firmware update request, First firmware is used to execute the read-write operation of the first meter in the smart card;First firmware is cloud server It is generated according to the original firmware of the dynamic link library file of first meter and the smart card;
The current firmware of the smart card is updated to first firmware by the smart card.
5. method as claimed in claim 4, which is characterized in that if first firmware be the cloud server according to institute State the firmware after the communication key that smart card is arranged is encrypted;Then
Before the current firmware of the smart card is updated to first firmware by the smart card, the method also includes:
The smart card is decrypted first firmware according to the communication key arranged with the cloud server.
6. method as claimed in claim 4, which is characterized in that the current firmware of the smart card is the second firmware or described The original firmware of smart card;
Wherein, second firmware is dynamic link library file and the smart card of the cloud server according to the second meter Original firmware generate.
7. a kind of cloud server characterized by comprising
Receiving unit, for receiving the first firmware update request of terminal transmission, the first firmware update request is used to indicate The cloud server generates the first firmware, and first firmware is for executing first in the smart card bound with the terminal The read-write operation of meter;It include the mark of first meter and the mark of the smart card in the first firmware update request Know;
Determination unit determines the dynamic link library file of first meter for the mark according to first meter;According to The mark of the smart card determines the original firmware of the smart card;
Generation unit, the dynamic link library file of first meter for being determined according to the determination unit and the intelligence The original firmware of card generates first firmware;
Transmission unit, first firmware for generating the generation unit are sent to the terminal.
8. cloud server as claimed in claim 7, which is characterized in that it further include encryption unit,
The encryption unit, for before first firmware is sent to the terminal by the transmission unit, according to institute First firmware that the generation unit generates is encrypted in the communication key for stating smart card agreement.
9. a kind of terminal characterized by comprising
Transmission unit, for sending the request of the first firmware update to cloud server, the first firmware update request is for referring to Show that the cloud server generates the first firmware, first firmware in the smart card bound with the terminal for executing the The read-write operation of one meter;
Receiving unit, the first firmware sent for receiving the cloud server, first firmware is the cloud service Device is generated according to the dynamic link library file of first meter and the firmware code of the smart card;
The transmission unit is also used to send the request of the second firmware update, the second firmware update request to the smart card In include first firmware so that the smart card carries out more the current firmware of the smart card according to first firmware Newly.
10. a kind of smart card characterized by comprising
Receiving unit, for receiving the second firmware update request of terminal transmission;It include the in second firmware update request One firmware, first firmware are used to execute the read-write operation of the first meter in the smart card;First firmware is cloud Server is held to be generated according to the dynamic link library file of first meter and the original firmware of the smart card;
Updating unit, for the current firmware of the smart card to be updated to first firmware.
11. smart card as claimed in claim 10, which is characterized in that further include decryption unit;
If first firmware is that the cloud server is encrypted according to the communication key arranged with the smart card Firmware afterwards;Then
The decryption unit, for the updating unit by the current firmware of the smart card be updated to first firmware it Before, first firmware is decrypted according to the communication key arranged with the cloud server.
12. smart card as claimed in claim 10, which is characterized in that the current firmware of the smart card be the second firmware or The original firmware of the smart card;
Wherein, second firmware is dynamic link library file and the smart card of the cloud server according to the second meter Original firmware generate.
13. a kind of smart card firmware update system characterized by comprising
Cloud server, for receiving the first firmware update request of terminal transmission, the first firmware update request is for referring to Show that the cloud server generates the first firmware, first firmware in the smart card bound with the terminal for executing the The read-write operation of one meter includes the mark of first meter and the mark of the smart card in first firmware update request Know;According to the mark of first meter, the dynamic link library file of first meter is determined;According to the mark of the smart card Know, determines the original firmware of the smart card;According to the original of the dynamic link library file of first meter and the smart card Beginning firmware generates first firmware, and first firmware of generation is sent to the terminal;
The terminal, for sending the first firmware update request, and the reception cloud clothes to the cloud server First firmware that business device is sent;The request of the second firmware update, the second firmware update request are sent to the smart card In include first firmware so that the smart card carries out more the current firmware of the smart card according to first firmware Newly;
The smart card is requested for receiving the second firmware update that the terminal is sent, in the second firmware update request Including first firmware, the current firmware of the smart card is updated to first firmware.
CN201610309625.5A 2016-05-11 2016-05-11 A kind of smart card firmware update and system Active CN106020868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610309625.5A CN106020868B (en) 2016-05-11 2016-05-11 A kind of smart card firmware update and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610309625.5A CN106020868B (en) 2016-05-11 2016-05-11 A kind of smart card firmware update and system

Publications (2)

Publication Number Publication Date
CN106020868A CN106020868A (en) 2016-10-12
CN106020868B true CN106020868B (en) 2019-02-12

Family

ID=57099419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610309625.5A Active CN106020868B (en) 2016-05-11 2016-05-11 A kind of smart card firmware update and system

Country Status (1)

Country Link
CN (1) CN106020868B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526593B (en) * 2017-08-28 2020-04-10 大唐高鸿信安(浙江)信息科技有限公司 BMC function customizing method based on dynamic link library
CN107704254A (en) * 2017-09-07 2018-02-16 郑州云海信息技术有限公司 The system and method for PSU firmwares is updated under a kind of BMC web interfaces
CN108040335A (en) * 2017-12-07 2018-05-15 深圳市优友互联有限公司 A kind of Internet of Things communication number management method and system based on smart card
CN108804125A (en) * 2018-06-29 2018-11-13 四川科道芯国智能技术股份有限公司 application management method, device and terminal device
CN113487228A (en) * 2021-07-27 2021-10-08 东信和平科技股份有限公司 Method and system for realizing continuous issuing of small tasks

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010111228A (en) * 2000-06-09 2001-12-17 이구택 A fiction simulatorof imagination input output signal in distributed control system
CN1659563A (en) * 2002-08-14 2005-08-24 伊特伦电学计量公司 Transferable meter licenses using smartcard technology
CN100596074C (en) * 2007-02-09 2010-03-24 华为技术有限公司 Charge mode providing method and charge control system
CN101895883A (en) * 2010-06-04 2010-11-24 中国联合网络通信集团有限公司 Smart card supporting authentication arithmetic update and method for updating authentication arithmetic
CN102892104A (en) * 2012-09-20 2013-01-23 东莞宇龙通信科技有限公司 Method and system for binding multiple subscriber identity module cards
CN104166565A (en) * 2014-08-11 2014-11-26 成都瑞博慧窗信息技术有限公司 Intelligent display terminal firmware updating method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8621456B2 (en) * 2007-05-31 2013-12-31 Microsoft Corporation Detecting and modifying security settings for deploying web applications

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010111228A (en) * 2000-06-09 2001-12-17 이구택 A fiction simulatorof imagination input output signal in distributed control system
CN1659563A (en) * 2002-08-14 2005-08-24 伊特伦电学计量公司 Transferable meter licenses using smartcard technology
CN100596074C (en) * 2007-02-09 2010-03-24 华为技术有限公司 Charge mode providing method and charge control system
CN101895883A (en) * 2010-06-04 2010-11-24 中国联合网络通信集团有限公司 Smart card supporting authentication arithmetic update and method for updating authentication arithmetic
CN102892104A (en) * 2012-09-20 2013-01-23 东莞宇龙通信科技有限公司 Method and system for binding multiple subscriber identity module cards
CN104166565A (en) * 2014-08-11 2014-11-26 成都瑞博慧窗信息技术有限公司 Intelligent display terminal firmware updating method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于EZ-USB设备与LabWindows/CVI平台开发的应用程序通讯研究;彭明杰等;《机电工程技术》;20151031;第34卷(第10期);第I138-5177页
测试测量仪器USB桥驱动及固件设计;申阳德;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160315;第28-31页

Also Published As

Publication number Publication date
CN106020868A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN106020868B (en) A kind of smart card firmware update and system
CN105391840B (en) Automatically create destination application
US10223096B2 (en) Logging operating system updates of a secure element of an electronic device
US10936719B2 (en) Preserving trust data during operating system updates of a secure element of an electronic device
KR101567902B1 (en) Multi-issuer secure element partition architecture for nfc enabled devices
JP5005811B2 (en) Method, system and trusted service manager for securely transmitting an application to a mobile phone
CN105900104B (en) Applet migration in safety element
CN105678192B (en) A kind of key application method and application apparatus based on smart card
CN107196907B (en) A kind of guard method of Android SO files and device
KR20120005411A (en) Method of performing a secure application in an nfc device
CN103946856A (en) Encryption and decryption process method, apparatus and device
CN105701427B (en) A kind of method and device of smart card write-in data
CN111274611A (en) Data desensitization method, device and computer readable storage medium
CN103455349A (en) Method and device for accessing intelligent card by application program
CN106056017B (en) Smart card COS encryption downloading system
CN110022558A (en) The encryption and decryption method and electronic device and storage medium of a kind of upgrade package
CN106133739A (en) Data are to the safeguard protection of the loading in the nonvolatile memory of safety element
CN102694795B (en) A kind of method for using application service in off-line case
CN109104724A (en) A kind of data ciphering method and device for device upgrade
CN110457870A (en) Processing method and processing device, embedded device and the storage medium of executable file
US20220253830A1 (en) Method and system for managing virtual electronic card, secure chip, terminal and storage medium
CN105187410A (en) Application self-upgrading method and system
CN103426238B (en) Smart cart issuing system and method based on plug-ins
CN107770165B (en) Method and device for sending request by analog equipment
CN107995230B (en) A kind of method for down loading and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200617

Address after: Building software No. 662 410006 Hunan province Yuelu District City Lugu Avenue (Changsha professional building No. 539)

Patentee after: ENN NEW ENERGY ENGINEERING TECHNOLOGY Co.,Ltd.

Address before: The 065000 Hebei economic and Technological Development Zone of Langfang Huaxiang 0338 mound building room 105

Patentee before: ENNEW DIGITAL TECHNOLOGY Co.,Ltd.