CN102916790B - The error treating method of smart card personalization, controller and system - Google Patents
The error treating method of smart card personalization, controller and system Download PDFInfo
- Publication number
- CN102916790B CN102916790B CN201210315000.1A CN201210315000A CN102916790B CN 102916790 B CN102916790 B CN 102916790B CN 201210315000 A CN201210315000 A CN 201210315000A CN 102916790 B CN102916790 B CN 102916790B
- Authority
- CN
- China
- Prior art keywords
- packet
- terminal
- smart card
- controller
- status word
- 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
Links
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
- Communication Control (AREA)
Abstract
The present invention discloses a kind of error treating method of smart card personalization, comprising: send numbered first packet to terminal, and the first status word of returning according to the first packet of receiving terminal and the first package number; According to the first status word, judge that the first packet runs succeeded, then continue send numbered second packet to terminal and wait for the response message that terminal returns; If response message is the first status word, then retransmit the second packet.The present invention also discloses a kind of controller and comprises the error handling system of smart card personalization of this controller.The present invention is by sending numbered packet to terminal and when Packet Generation is made mistakes, identify the packet of makeing mistakes according to numbering and the packet of makeing mistakes carried out the method retransmitted, have in time, process the beneficial effect of the mistake in smart card personalization process exactly, improve the reliability of smart card personalization process, fail safe and data transmission efficiency, reduce the error rate in smart card personalization process.<!--1-->
Description
Technical field
The present invention relates to smart card personalization technical field, particularly relate to a kind of error treating method of smart card personalization, controller and system.
Background technology
Along with the fast development of smart card and the variation of application, the data processing of smart card personalization seems and is even more important.Smart card personalization refers to personal data tissue exchange needed and the process be installed in card application; For the bank card of user's application or credit card, before this bank card or credit card are issued holder by bank, all need in the relevant information write cards such as the name of this holder, card number, password, namely, after completing the personal data process of this card, this bank card or credit card could be sent in user's hand.
The overall process of smart card personalization operation needs individualized controller and individualized terminal to carry out frequently alternately usually, and the possibility that garble occurs between controller and individualized terminal so individualized is very high; The two garble may cause card to lose normal function, affects the use of card, and both therefore improving, the reliability of communication is for the normal function of system, seems and is even more important.Prior art does not provide carries out personalized means by network, personalized error treating method is not provided yet, when therefore adopting prior art to carry out individualized by network to smart card, need to reach tens instructions and write smart card one by one, the process of every bar instruction all needs exchange instruction and result between smart card and individualized controller, this mode not only can increase network overhead, further increases the probability of makeing mistakes during smart card personalization process; And when makeing mistakes in card personalization process, the accurate location that mistake occurs can not be found in time.
Summary of the invention
Main purpose of the present invention is to provide a kind of error treating method of smart card personalization, controller and system, is intended in time, the error issues solved efficiently in smart card personalization process.
The invention discloses a kind of error treating method of smart card personalization, comprise the following steps:
Numbered first packet is sent to terminal, and the first status word of returning according to described first packet of receiving terminal and the first package number;
According to described first status word, judge that described first packet runs succeeded, then continue send numbered second packet to terminal and wait for the response message that terminal returns;
If described response message is described first status word, then retransmit described second packet.
Preferably, describedly send numbered first packet to terminal, and also comprise step before the step of the first status word of returning according to described first packet of receiving terminal and the first package number:
Be numbered sending to each packet of terminal.
Preferably, if described response message is described first status word, then also step is comprised before retransmitting the step of described second packet:
In preset time, when terminal does not receive described second packet, according to preset sending times, described first status word is retransmitted as described response message.
Preferably, the obtain manner of described packet is:
According to preset line of demarcation, repartition the smart card personalization stage;
By the APDU instruction packing in adjacent two described lines of demarcation, obtain described packet.
The present invention also discloses a kind of controller, comprising:
Packet Generation module, for sending numbered first packet to terminal, and the first status word of returning according to described first packet of receiving terminal and the first package number;
Packet judge module, for according to described first status word, judges that described first packet runs succeeded, then continue send numbered second packet to terminal and wait for the response message that terminal returns;
Data packet retransmission module, if be described first status word for described response message, then retransmits described second packet.
Preferably, described controller also comprises:
Package number module, for sending to each packet of terminal to be numbered.
Preferably, described controller also comprises:
Packet acquisition module, for according to preset line of demarcation, repartitions the smart card personalization stage; By the APDU instruction packing in adjacent two described lines of demarcation, obtain described packet.
The present invention also discloses a kind of error handling system of smart card personalization, comprises terminal, also comprises described controller.
Described controller comprises:
Packet Generation module, for sending numbered first packet to terminal, and the first status word of returning according to described first packet of receiving terminal and the first package number;
Packet judge module, for according to described first status word, judges that described first packet runs succeeded, then continue send numbered second packet to terminal and wait for the response message that terminal returns;
Data packet retransmission module, if be described first status word for described response message, then retransmits described second packet.
Preferably, described controller also comprises:
Package number module, for sending to each packet of terminal to be numbered.
Preferably, described controller also comprises:
Packet acquisition module, for according to preset line of demarcation, repartitions the smart card personalization stage; By the APDU instruction packing in adjacent two described lines of demarcation, obtain described packet.
Preferably, described terminal is used for:
In preset time, when not receiving described second packet of described controller transmission, according to preset sending times, described first status word is retransmitted as described response message.
Preferably, the error handling system of described smart card personalization also comprises:
Adaptation module, for when described terminal cannot process described APDU instruction, adaptive described terminal, sends, so that described packet is able to normal process to terminal one by one by the APDU instruction in described packet.
The present invention sends numbered first packet by controller to terminal, when receiving the first status word that terminal returns according to described first packet, continues transmission second packet; If after the second Packet Generation completes, when still receiving the first status word that terminal returns, retransmit the method for described second packet, have in time, process the beneficial effect of the mistake in smart card personalization process exactly, improve Error disposal efficiency, improve the data transmission efficiency of the reliability of smart card personalization process, fail safe and smart card personalization process.
Accompanying drawing explanation
Fig. 1 is the error treating method first embodiment schematic flow sheet of smart card personalization of the present invention;
Fig. 2 is that the error treating method middle controller end of smart card personalization of the present invention sends packet fail processing method data flow diagram;
Fig. 3 is the error treating method second embodiment schematic flow sheet of smart card personalization of the present invention;
Fig. 4 is error treating method the 3rd embodiment schematic flow sheet of smart card personalization of the present invention;
Fig. 5 is that in the error treating method of smart card personalization of the present invention, terminal sends response message fail processing method data flow diagram;
Fig. 6 is packet obtain manner one embodiment schematic flow sheet in the error treating method of smart card personalization of the present invention;
Fig. 7 controller first of the present invention example structure schematic diagram;
Fig. 8 is controller second example structure schematic diagram of the present invention;
Fig. 9 is controller of the present invention 3rd example structure schematic diagram;
Figure 10 is the error handling system first example structure schematic diagram of smart card personalization of the present invention;
Figure 11 is the error handling system second example structure schematic diagram of smart card personalization of the present invention; .
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Technical scheme of the present invention is further illustrated below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
With reference to the error treating method first embodiment schematic flow sheet that Fig. 1, Fig. 1 are smart card personalizations of the present invention; As shown in Figure 1, the error treating method of smart card personalization of the present invention comprises the following steps:
Step S01, send numbered first packet to terminal, and the first status word of returning according to described first packet of receiving terminal and the first package number;
The personalization process of smart card relates to the frequent mutual of individualized controller and individualized terminal, occur garble may be higher, and the garble between controller and terminal may cause card to lose normal function, the reliability improving communication is extremely important for system normal function.For embodiment described in Fig. 2, error treating method middle controller end with reference to Fig. 2 smart card personalization of the present invention sends packet fail processing method data flow diagram, as shown in Figure 2, individualized controller sends APDU1(ApplicationProtocolDataUnit to individualized terminal, Application Protocol Data Unit) after, individualized terminal performs APDU1, and returns the return state word SW1/SW2 responsively information of APDU1; According to status word SW1/SW2, individualized controller judges that APDU1 runs succeeded, next instruction APDU2 is sent to individualized terminal, failure in the process sending APDU2, individualized terminal time-out does not receive APDU2, retransmit APDU1 status word SW1/SW2, at this moment individualized controller must know that receive is the status word SW1/SW2 of the APDU1 that individualized terminal returns, and send APDU2 to individualized terminal, otherwise individualized terminal just may lose APDU2, timely subsequent instructions runs succeeded, and also can finally cause individualizing unsuccessfully.
In order to concrete which the APDU packet corresponding of status word that identification terminal returns, controller sends numbered APDU1 packet to terminal; Terminal performs described APDU1 packet, and returns the return state word SW1/SW2 of APDU1; The numbering of this APDU1 packet can return together by terminal while return state word SW1/SW2 is to controller.
Step S02, according to described first status word, judge that described first packet runs succeeded, then continue send numbered second packet to terminal and wait for the response message that terminal returns;
The status word SW1/SW2 of the APDU1 packet that controller returns according to terminal, learns that this packet APDU1 runs succeeded, then controller continues to send next APDU2 packet to terminal, and waits for the response message that terminal returns according to execution result.
If the described response message of step S03 is described first status word, then retransmit described second packet.
If terminal performs the success of APDU2 packet, then the response message that should return to controller is the status word SW1/SW2 that APDU2 packet is corresponding; Error treating method middle controller end with reference to Fig. 2 smart card personalization of the present invention sends packet fail processing method data flow diagram, APDU2 packet performs makes mistakes, terminal will perform status word SW1/SW2 that APDU1 returns responsively information send to controller; Controller according in data message to the numbering of packet, learn that the response message received is the status word SW1/SW2 of the APDU1 that terminal returns, then judge that the second packet APDU2 sends unsuccessfully, controller resends APDU2 to terminal, thus completes the individualized process of smart card.
The present embodiment sends numbered first packet by controller to terminal, when receiving the first status word that terminal returns according to described first packet, continues transmission second packet; If after the second Packet Generation completes, when still receiving the first status word that terminal returns, retransmit the method for described second packet, have in time, process the beneficial effect of the mistake in smart card personalization process exactly, improve the reliability of smart card personalization process, reduce the error rate in smart card personalization process.
With reference to the error treating method second embodiment schematic flow sheet that Fig. 3, Fig. 3 are smart card personalizations of the present invention; The difference of error treating method first embodiment of the present embodiment and smart card personalization of the present invention increase only step S04; The present embodiment is only described specifically step S04, and other steps involved by the error treating method of smart card personalization of the present invention please refer to the specific descriptions of related embodiment, do not repeat them here.
As shown in Figure 3, in the error treating method of smart card personalization of the present invention, in step S01, send numbered first packet to terminal, and also comprise step before the step of the first status word of returning according to described first packet of receiving terminal and the first package number:
Step S04, will each packet of terminal be sent to be numbered.
Go wrong when smart card personalization process middle controller communicates with terminal interaction to solve and can not confirm that the problem of position appears in mistake in time, before controller sends packet to terminal, be numbered by each packet, the numbering of each packet uniquely can identify corresponding packet; In a preferred embodiment, can be realized by following manner for each packet is numbered: the order bag between controller and terminal adds counter mechanism, adopt counter machine to be made as each package number that will send to terminal.
The present embodiment, by the method will each packet of terminal being sent to be numbered in advance, has and is convenient to when going wrong the beneficial effect that mistake particular location learnt exactly by controller.
With reference to error treating method the 3rd embodiment schematic flow sheet that Fig. 4, Fig. 4 are smart card personalizations of the present invention; The difference of error treating method second embodiment of the present embodiment and smart card personalization of the present invention increase only step S05; The present embodiment is only described specifically step S05, and other steps involved by the error treating method of smart card personalization of the present invention please refer to the specific descriptions of related embodiment, do not repeat them here.
As shown in Figure 4, in the error treating method of smart card personalization of the present invention, if be described first status word in the described response message of step S03, then also comprise step before retransmitting the step of described second packet:
Step S05, in preset time, when terminal does not receive described second packet, according to preset sending times, described first status word to be retransmitted as described response message.
Before having individualized, if also do not receive the next command of controller when the response message of terminal transmission APDU status word exceedes preset time, then the instruction return code of last time can be retransmitted by terminal; Reference Fig. 5, Fig. 5 are that in the error treating method of smart card personalization of the present invention, terminal sends response message fail processing method data flow diagram; As shown in Figure 5, in a preferred embodiment, when terminal does not receive the packet APDU2 of controller transmission, retransmit to controller according to the number of retries preset by the instruction return code of last time and response message APDU1SW1/SW2, after exceeding number of retries, terminal returns error message.Individualized controller judges by the numbering of APDU packet the reason causing described data packet retransmission, such as judges whether that the bag caused by network reason is retransmitted; Judge whether the instruction issued all performs and whether run succeeded with Time Controller by the terminal number of instructions performed and the return code performing instruction.
The present embodiment by preset time, when terminal does not receive next packet, according to preset sending times by the status word of last time responsively Information Repeater to the method for controller, there is the beneficial effect being convenient to controller Timeliness coverage communication errors.
Reference Fig. 6, Fig. 6 are packet obtain manner one embodiment schematic flow sheets in the error treating method of smart card personalization of the present invention; The present embodiment is only described specifically data acquiring mode, and other steps involved by the error treating method of smart card personalization of the present invention please refer to the specific descriptions of related embodiment, do not repeat them here.
As shown in Figure 6, in the error treating method of smart card personalization of the present invention, packet obtain manner specifically comprises the following steps:
Step S11, according to preset line of demarcation, repartition the smart card personalization stage;
Personalized process generally will reach tens instruction write smart cards and carry out individualized process by network mode to smart card, therefore each instruction writing smart card all needs to be undertaken alternately by network, which not only adds network overhead, also increase the probability of unsuccessfully makeing mistakes simultaneously.In order to reduce the interaction times of individualized terminal equipment and individualized controller, reduce because unstable networks causes individualized failed probability, in a preferred embodiment, the individualized stage of smart card is repartitioned, using the line of demarcation of each external authentication as two stages.
Step S12, by adjacent two described lines of demarcation APDU instruction packing, obtain described packet.
APDU instruction between every two external authentications is packaged into a packet, and is handed down to individualized terminal equipment, by client executing script.
In a preferred embodiment, the form of described packet is but is not limited to following form:
The return state code table that script numbering 1/ script 1APDU/ script 1 allows
The return state code table that script numbering 2/ script 2APDU/ script 2 allows
……
The return state code table that script numbering n/ script nAPDU/ script n allows
When individualized terminal receives packet, send the APDU in packet successively to smart card, and process the script executing state word that smart card returns; If the status word returned is not 9000, the return state code table then allowed with corresponding script contrasts, when the state character code returned is in the return state code table allowed, just think that script runs succeeded, continue to perform next script, until when script execution makes mistakes, stop the execution of script, or execute all scripts, otherwise script performs failure.When the APDU in whole packet all runs succeeded, terminal returns Success Flag to individualized controller, otherwise returns first script numbering of makeing mistakes.
The execution result that APDU execution result is returned by terminal embodies, if the failure of terminal fill order, then returns executed order number in APDU bag sequence number, APDU bag; In a preferred embodiment, the sequence number of APDU bag is used for judging that the APDU corresponding to packet execution result that terminal sends wraps, and the number of APDU is used for the number of judgement execution APDU instruction.
The method of the present embodiment by the instruction in smart card personalization processing procedure is carried out packing, there is the beneficial effect improving data transmission efficiency in smart card personalization processing procedure, individualized controller once can send many APDU instructions to individualized terminal processes, decrease the interaction times of individualized controller and individualized terminal, improve the success rate of smart card personalization.
Reference Fig. 7, Fig. 7 are controller first example structure schematic diagrames of the present invention; As shown in Figure 7, controller of the present invention comprises:
Packet Generation module 01, for sending numbered first packet to terminal, and the first status word of returning according to described first packet of receiving terminal and the first package number;
The personalization process of smart card relates to the frequent mutual of individualized controller and individualized terminal, occur garble may be higher, and the garble between controller and terminal may cause card to lose normal function, the reliability improving communication is extremely important for system normal function.Controller end sends the specific descriptions that packet fail processing method schematic flow sheet please refer to embodiment described in Fig. 2, does not repeat them here.
In order to concrete which the APDU packet corresponding of status word that identification terminal returns, Packet Generation module 01 sends numbered APDU1 packet to terminal; Terminal performs described APDU1 packet, and returns the return state word SW1/SW2 of APDU1; The numbering of this APDU1 packet can return together by terminal while return state word SW1/SW2 is to Packet Generation module 01.
Packet judge module 02, for according to described first status word, judges that described first packet runs succeeded, then continue send numbered second packet to terminal and wait for the response message that terminal returns;
The status word SW1/SW2 of the APDU1 packet that packet judge module 02 returns according to terminal, learn that this packet APDU1 runs succeeded, then packet judge module 02 continues to send next APDU2 packet to terminal, and waits for the response message that terminal returns according to execution result.
Data packet retransmission module 03, if be described first status word for described response message, then retransmits described second packet.
If terminal performs the success of APDU2 packet, then the response message that should return to controller is the status word SW1/SW2 that APDU2 packet is corresponding; Error treating method middle controller end with reference to Fig. 2 smart card personalization of the present invention sends packet fail processing method data flow diagram, APDU2 packet performs makes mistakes, terminal will perform status word SW1/SW2 that APDU1 returns responsively information send to controller; Controller according in data message to the numbering of packet, learn that the response message received is the status word SW1/SW2 of the APDU1 that terminal returns, then packet judge module 02 judges that the second packet APDU2 sends unsuccessfully, data packet retransmission module 03 resends APDU2 to terminal, thus completes the individualized process of smart card.
The embodiment of the present invention sends numbered first packet by controller to terminal, when receiving the first status word that terminal returns according to described first packet, continues transmission second packet; If after the second Packet Generation completes, when still receiving the first status word that terminal returns, retransmit described second packet, have in time, process the beneficial effect of the mistake in smart card personalization process exactly, improve the reliability of smart card personalization process, reduce the error rate in smart card personalization process.
Reference Fig. 8, Fig. 8 are controller second example structure schematic diagrames of the present invention; The difference of the present embodiment and controller of the present invention first embodiment increase only package number module 04; The present embodiment is only described specifically package number module 04, and other modules involved by controller of the present invention please refer to the specific descriptions of related embodiment, do not repeat them here.
As shown in Figure 8, controller of the present invention also comprises:
Package number module 04, for sending to each packet of terminal to be numbered.
Go wrong when smart card personalization process middle controller communicates with terminal interaction to solve and can not confirm that the problem of position appears in mistake in time, before controller sends packet to terminal, each packet is numbered by package number module 04, and the numbering of each packet uniquely can identify corresponding packet; In a preferred embodiment, package number module 04 is that each packet is numbered and can be realized by following manner: the order bag between controller and terminal adds counter mechanism, adopts counter machine to be made as each package number that will send to terminal.
The present embodiment by will each packet of terminal be sent to be numbered in advance, has and is convenient to controller when going wrong and learns mistake particular location exactly and make processing procedure from the beneficial effect of error due.
Reference Fig. 9, Fig. 9 are controller of the present invention 3rd example structure schematic diagrames; The present embodiment is only described specifically packet acquisition module 05, and other modules involved by controller of the present invention please refer to the specific descriptions of related embodiment, do not repeat them here.
As shown in Figure 9, controller of the present invention also comprises:
Packet acquisition module 05, for according to preset line of demarcation, repartitions the smart card personalization stage; By the APDU instruction packing in adjacent two described lines of demarcation, obtain described packet.
Personalized process generally will reach tens instruction write smart cards and carry out individualized process by network mode to smart card, therefore each instruction writing smart card all needs to be undertaken alternately by network, which not only adds network overhead, also increase the probability of unsuccessfully makeing mistakes simultaneously.In order to reduce the interaction times of individualized terminal equipment and individualized controller, reduce because unstable networks causes individualized failed probability, in a preferred embodiment, the individualized stage of packet acquisition module 05 pair of smart card is repartitioned, using the line of demarcation of each external authentication as two stages, and the APDU instruction between every two external authentications is packaged into a packet, and be handed down to individualized terminal equipment, by client executing script.
In a preferred embodiment, the form of described packet is but is not limited to following form:
The return state code table that script numbering 1/ script 1APDU/ script 1 allows
The return state code table that script numbering 2/ script 2APDU/ script 2 allows
……
The return state code table that script numbering n/ script nAPDU/ script n allows
When individualized terminal receives described packet, send the APDU in packet successively to smart card, and process the script executing state word that smart card returns; If the status word returned is not 9000, the return state code table then allowed with corresponding script contrasts, when the state character code returned is in the return state code table allowed, just think that script runs succeeded, continue to perform next script, until when script execution makes mistakes, stop the execution of script, or execute all scripts, otherwise script performs failure.When the APDU in whole packet all runs succeeded, terminal returns Success Flag to individualized controller, otherwise returns first script numbering of makeing mistakes.
The execution result that APDU execution result is returned by terminal embodies, if the failure of terminal fill order, then returns executed order number in APDU bag sequence number, APDU bag; In a preferred embodiment, the sequence number of APDU bag is used for judging that the APDU corresponding to packet execution result that terminal sends wraps, and the number of APDU is used for the number of judgement execution APDU instruction.
The present embodiment is by packing the instruction in smart card personalization processing procedure, there is the beneficial effect improving data transmission efficiency in smart card personalization processing procedure, individualized controller once can send many APDU instructions to individualized terminal processes, decrease the interaction times of individualized controller and individualized terminal, improve the success rate of smart card personalization.
With reference to the error handling system first example structure schematic diagram that Figure 10, Figure 10 are smart card personalizations of the present invention.The error handling system of smart card personalization of the present invention comprises as shown in Figure 10:
Terminal 100 and controller 200; The specific descriptions of described controller 200 be please refer to the specific descriptions of above-mentioned related embodiment, do not repeat them here.
Described terminal 100 is for while carrying out communication interaction with controller 200, also for, in preset time, when not receiving described second packet of described controller transmission, according to preset sending times, described first status word is retransmitted as described response message.
Before having individualized, if also do not receive the next command of controller 200 when the response message that terminal 100 sends APDU status word exceedes preset time, then the instruction return code of last time can be retransmitted by terminal 100; Reference Fig. 5, Fig. 5 are that in the error treating method of smart card personalization of the present invention, terminal sends response message fail processing method data flow diagram; As shown in Figure 5, in a preferred embodiment, when terminal 100 does not receive the packet APDU2 of controller 200 transmission, retransmit the instruction return code of last time and response message APDU1SW1/SW2 to controller 200 according to the number of retries preset, after exceeding number of retries, terminal 100 returns error message.By the numbering of APDU packet, individualized controller 200 judges that described packet is the need of repeating transmission; Judge whether the instruction issued all performs and whether run succeeded with Time Controller 200 by terminal 100 number of instructions performed and the return code performing instruction.
The present embodiment sends numbered first packet by controller to terminal, when receiving the first status word that terminal returns according to described first packet, continues transmission second packet; If after the second Packet Generation completes, when still receiving the first status word that terminal returns, retransmit the method for described second packet, have in time, process the beneficial effect of the mistake in smart card personalization process exactly, improve the reliability of smart card personalization process, reduce the error rate in smart card personalization process.
With reference to the error handling system second example structure schematic diagram that Figure 11, Figure 11 are smart card personalizations of the present invention; The present embodiment is only described specifically adaptation module, and other modules involved by the error handling system of smart card personalization of the present invention please refer to the specific descriptions of related embodiment, do not repeat them here.
As shown in figure 11, the error handling system of smart card personalization of the present invention also comprises:
Adaptation module 03, for when described terminal cannot process described APDU instruction, adaptive described terminal, sends, so that described packet is able to normal process to terminal one by one by the APDU instruction in described packet.
In some cases, the BIP(BearerIndependentProtocol provided as used telecom operators, carrying standalone protocol) etc. passage when carrying out individualized, individualized terminal is mobile device, adopt the standard agreement of telecom operators can only process single APDU, process APDU cannot be carried out according to above-mentioned application layer protocol and wrap.Adaptation module 03 can carry out adaptation on telecom operators, individualized Terminal Middleware or individualized controller in this case, order in instruction bag is decomposed into a command sequence, send to card or terminal successively, and check according to the permission return state code in instruction bag the state that card or terminal return.
The present embodiment, by carrying out adaptation when processing data packets is abnormal in terminal or controller, has the beneficial effect enabling packet be able to normal process, shortens communication path, improve systematic function, and be conducive to reducing wrong probability.
The foregoing is only the preferred embodiments of the present invention; not thereby its scope of the claims is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; directly or indirectly be used in the technical field that other are relevant, be all in like manner included in scope of patent protection of the present invention.
Claims (6)
1. an error treating method for smart card personalization, is characterized in that, comprises the following steps:
Numbered first packet is sent to terminal, and the first status word of returning according to described first packet of receiving terminal and the first package number;
According to described first status word, judge that described first packet runs succeeded, then continue send numbered second packet to terminal and wait for the response message that terminal returns;
If described response message is described first status word, then retransmit described second packet;
Describedly send numbered first packet to terminal, and also comprise step before the step of the first status word of returning according to described first packet of receiving terminal and the first package number:
Be numbered sending to each packet of terminal;
If described response message is described first status word, then also comprise step before retransmitting the step of described second packet:
In preset time, when terminal does not receive described second packet, according to preset sending times, described first status word is retransmitted as described response message.
2. error treating method as claimed in claim 1, it is characterized in that, the obtain manner of described packet is:
According to preset line of demarcation, repartition the smart card personalization stage;
By Application Protocol Data Unit (APDU) the instruction packing in adjacent two described lines of demarcation, obtain described packet.
3. a controller, is characterized in that, comprising:
Packet Generation module, for sending numbered first packet to terminal, and the first status word of returning according to described first packet of receiving terminal and the first package number;
Packet judge module, for according to described first status word, judges that described first packet runs succeeded, then continue send numbered second packet to terminal and wait for the response message that terminal returns;
Data packet retransmission module, if be described first status word for described response message, then retransmits described second packet;
Described controller also comprises:
Package number module, for sending to each packet of terminal to be numbered;
Described controller also comprises:
Packet acquisition module, for according to preset line of demarcation, repartitions the smart card personalization stage; By the APDU instruction packing in adjacent two described lines of demarcation, obtain described packet.
4. an error handling system for smart card personalization, comprises terminal, it is characterized in that, also comprises controller according to claim 3.
5. error handling system as claimed in claim 4, it is characterized in that, described terminal is used for:
In preset time, when not receiving described second packet of described controller transmission, according to preset sending times, described first status word is retransmitted as described response message.
6. the error handling system as described in claim 4 or 5, is characterized in that, also comprises:
Adaptation module, for when described terminal cannot process described APDU instruction, adaptive described terminal, sends, so that described packet is able to normal process to terminal one by one by the APDU instruction in described packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210315000.1A CN102916790B (en) | 2012-08-30 | 2012-08-30 | The error treating method of smart card personalization, controller and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210315000.1A CN102916790B (en) | 2012-08-30 | 2012-08-30 | The error treating method of smart card personalization, controller and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102916790A CN102916790A (en) | 2013-02-06 |
CN102916790B true CN102916790B (en) | 2015-12-02 |
Family
ID=47615034
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210315000.1A Active CN102916790B (en) | 2012-08-30 | 2012-08-30 | The error treating method of smart card personalization, controller and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102916790B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1864432A (en) * | 2003-08-05 | 2006-11-15 | 高通股份有限公司 | Combining acknowledgement and rate control |
CN101042738A (en) * | 2006-03-24 | 2007-09-26 | 中国银联股份有限公司 | Method for implementing smart card multi-application and data processing apparatus |
CN101304362A (en) * | 2007-05-11 | 2008-11-12 | 中芯国际集成电路制造(上海)有限公司 | Retransmission buffering apparatus and data transmission method |
CN101321336A (en) * | 2007-06-06 | 2008-12-10 | 凤凰微电子(中国)有限公司 | High-capacity data interchange method between mobile terminal and smart card |
CN101384037A (en) * | 2007-09-07 | 2009-03-11 | 凤凰微电子(中国)有限公司 | Establishing method for special data channel between mobile application and intelligent card |
CN102377570A (en) * | 2011-11-07 | 2012-03-14 | 飞天诚信科技股份有限公司 | Method and device for generating dynamic passwords |
CN102510391A (en) * | 2011-10-10 | 2012-06-20 | 中国联合网络通信集团有限公司 | Application management method and device and smart card |
CN102630083A (en) * | 2012-02-29 | 2012-08-08 | 中国工商银行股份有限公司 | System for using mobile terminal to carry out card operation and method thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2966946B1 (en) * | 2010-10-27 | 2012-11-30 | Oberthur Technologies | METHOD FOR CONFIGURING AN ELECTRONIC ENTITY |
-
2012
- 2012-08-30 CN CN201210315000.1A patent/CN102916790B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1864432A (en) * | 2003-08-05 | 2006-11-15 | 高通股份有限公司 | Combining acknowledgement and rate control |
CN101042738A (en) * | 2006-03-24 | 2007-09-26 | 中国银联股份有限公司 | Method for implementing smart card multi-application and data processing apparatus |
CN101304362A (en) * | 2007-05-11 | 2008-11-12 | 中芯国际集成电路制造(上海)有限公司 | Retransmission buffering apparatus and data transmission method |
CN101321336A (en) * | 2007-06-06 | 2008-12-10 | 凤凰微电子(中国)有限公司 | High-capacity data interchange method between mobile terminal and smart card |
CN101384037A (en) * | 2007-09-07 | 2009-03-11 | 凤凰微电子(中国)有限公司 | Establishing method for special data channel between mobile application and intelligent card |
CN102510391A (en) * | 2011-10-10 | 2012-06-20 | 中国联合网络通信集团有限公司 | Application management method and device and smart card |
CN102377570A (en) * | 2011-11-07 | 2012-03-14 | 飞天诚信科技股份有限公司 | Method and device for generating dynamic passwords |
CN102630083A (en) * | 2012-02-29 | 2012-08-08 | 中国工商银行股份有限公司 | System for using mobile terminal to carry out card operation and method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN102916790A (en) | 2013-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1762059B1 (en) | Method of, and system for, communicating data, and a station for transmitting data | |
CN106453233A (en) | Data transmission method and apparatus based on UDP | |
CN109981480A (en) | A kind of data transmission method and the first equipment | |
CN105493424A (en) | Polar code processing method and system, and wireless communications apparatus | |
CN101645766A (en) | Method, device and system for realizing data packet retransmission | |
WO2011137640A1 (en) | File transmission method, file transmission apparatus and file reception apparatus | |
CN109274466A (en) | A kind of middleware message transmitting method and system | |
CN112769939A (en) | Big data reliable transmission method for real-time communication | |
CN106788894A (en) | Segmentation individual transmission method of calibration | |
CN101507318A (en) | Radio communication device and method used in mobile communication system | |
CN104022857A (en) | Server engine frame design method based on multiple working modes | |
CN106911428A (en) | The transmission method and device of information | |
CN109743337A (en) | The lower dress means of communication in nuclear safe level DCS system based on Transmission Control Protocol | |
CN102916790B (en) | The error treating method of smart card personalization, controller and system | |
CN101453479A (en) | Fast document transmission system | |
CN106375064A (en) | Password keyboard USB communication anomaly recovery method and system | |
CN104038327A (en) | Error retransmission method for FC (fiber channel) network | |
CN102355480A (en) | File transmission method, system, client and server based on trivial file transfer protocol (TFTP) | |
CN106921474A (en) | The sending method of uplink retransmission data, apparatus and system | |
CN104429009B (en) | Method for transmitting data packets in the case of bidirectional transmission of data packets | |
CN102710666B (en) | RADIUS (remote authentication dial in user service) client overtime treating method in WLAN (wireless local area network) system | |
CN105763538A (en) | Bank business network data exchange method and system | |
CN102148676B (en) | System and method for realizing downlink HARQ (hybrid automatic repeat request) | |
CN105721491B (en) | A kind of communication means for being emulated towards high speed Maglev | |
CN104980802A (en) | Safe and reliable set top box data burning method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |