CN102004629B - Method, device and paster card for forwarding control - Google Patents

Method, device and paster card for forwarding control Download PDF

Info

Publication number
CN102004629B
CN102004629B CN201010556132.4A CN201010556132A CN102004629B CN 102004629 B CN102004629 B CN 102004629B CN 201010556132 A CN201010556132 A CN 201010556132A CN 102004629 B CN102004629 B CN 102004629B
Authority
CN
China
Prior art keywords
chip
instruction
data
terminal
card
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
CN201010556132.4A
Other languages
Chinese (zh)
Other versions
CN102004629A (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.)
Beijing Watchdata Limited by Share Ltd
Original Assignee
Beijing WatchData System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing WatchData System Co Ltd filed Critical Beijing WatchData System Co Ltd
Priority to CN201010556132.4A priority Critical patent/CN102004629B/en
Publication of CN102004629A publication Critical patent/CN102004629A/en
Application granted granted Critical
Publication of CN102004629B publication Critical patent/CN102004629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method, a device and a paster card for forwarding control, relating to the technique of communication. The method comprises the following steps of: receiving a command sent by a terminal; directly processing the command when the command is a special command or a first chip connected with the terminal is only utilized at present; and processing the command according to a command type, a command content and the present states of the first chip and the second chip when the command is a non-special command and the first chip and a second chip connected with the first chip are synchronously utilized at present. After receiving the command sent by the terminal, the first chip connected with the terminal determines whether the command is directly processed or forwarded to the second chip according to the command type and the present states of the first chip and the second chip, and further the judgment and the forwarding of the chip received by the first chip are realized, the correctness and the reliability of signal transmission and transmission among the terminal, the first chip and the second chip are ensured, and the given command or data are intercepted and processed.

Description

A kind of transmission control method, device and paste card
Technical field
The present invention relates to the communication technology, relate in particular to a kind of transmission control method, device and paste card.
Background technology
Along with the expansion of application of IC cards scope, function and the type of smart card are more and more abundanter, by original single deck tape-recorder single-chip, are developed and the pattern of double card, dual chip or even many cards, multi-chip.
When using double card, dual chip or many cards, multi-chip, the first chip being connected with terminal, after receiving the instruction of terminal transmission, first needs to determine that this instruction is processed by the first chip or the second chip being connected by the first chip is processed.
For example, paste card is a kind of special card, it is comprised of two rows chip contacts, upper bank contact is connected with mobile phone, be responsible for signal transmission and data communication between paste card and terminal, lower bank contact and SIM(Subscriber Identity Module, subscriber identification module) card or USIM(Universal Subscriber Identity Module, whole world subscriber identification module) card waits the contact of smart card to be connected, and is responsible for signal transmission and data communication between paste card and smart card.Paste card is after receiving the instruction of terminal transmission, first need the intelligent card in processing of determining that this instruction is processed or connected by paste card by paste card, the paste card is here the first chip being connected with terminal, and the smart card being connected with paste card is the second chip.
Because the first chip is not only responsible for instruction process, be also responsible for judgement and the forwarding of instruction, so the control program in the smart cards such as current SIM card or usim card cannot directly be applied on the first chip.
Summary of the invention
The embodiment of the present invention provides a kind of transmission control method, device and paste card, to realize the first chip of being connected with terminal to the judgement of received instruction and forwarding.
A transmission control method, comprising:
The instruction that receiving terminal sends;
When described instruction is special instruction or current only the first chip that use is connected with described terminal, directly described instruction is processed;
When described instruction be non-special instruction and current use simultaneously the first chip be connected with described the first chip the second chip time, according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed;
When described non-special instruction is basic Application Protocol Data Unit APDU instruction, describedly according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed, specifically comprise:
While all not having data to take out in described the first chip and described the second chip, send to the second chip to process described basic APDU instruction, and the data retransmission directly the second chip being returned is to terminal.
A forwarding controller, comprises
Receiving element, the instruction sending for receiving terminal;
The first processing unit, for being special instruction or current while only using the first chip be connected with described terminal when described instruction, directly processes described instruction;
The second processing unit, for when described instruction be non-special instruction and current use simultaneously the first chip be connected with described the first chip the second chip time, according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed;
When described non-special instruction is basic Application Protocol Data Unit APDU instruction, according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed described in described the second processing unit, specifically for:
While all not having data to take out in described the first chip and described the second chip, send to the second chip to process described basic APDU instruction, and the data retransmission directly the second chip being returned is to terminal.
A paste card, comprising:
Receiving element, the instruction sending for receiving terminal;
The first processing unit, for being special instruction or current while only using paste card when described instruction, directly processes described instruction;
The second processing unit, for when described instruction, be non-special instruction and current use simultaneously paste card be connected with described paste card smart card time, according to instruction type, command content and paste card and the current state of smart card, described instruction is processed;
When described non-special instruction is basic APDU instruction, according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed described in described the second processing unit, specifically for:
While all not having data to take out in described the first chip and described the second chip, send to the second chip to process described basic Application Protocol Data Unit APDU instruction, and the data retransmission directly the second chip being returned is to terminal.
A paste card, comprising:
The first contact, is connected with terminal, for carrying out the transmission of instruction and data with described terminal;
The second contact, is connected with smart card, for carrying out the transmission of instruction and data with described smart card;
CPU (central processing unit), connects described the first contact and described the second contact, the instruction sending for receiving terminal, and
When described instruction is special instruction or current while only using paste card, directly described instruction is processed, when described instruction be non-special instruction and current use simultaneously paste card be connected with described paste card smart card time, according to instruction type, command content and paste card and the current state of smart card, described instruction is processed;
When described non-special instruction is basic APDU instruction, according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed described in described CPU (central processing unit), specifically for:
While all not having data to take out in described the first chip and described the second chip, send to the second chip to process described basic Application Protocol Data Unit APDU instruction, and the data retransmission directly the second chip being returned is to terminal.
The embodiment of the present invention provides a kind of transmission control method, device and paste card, the first chip being connected with terminal is after receiving the instruction of terminal transmission, according to the type of instruction and the first chip, the state that the second chip is current, determine that directly processing this instruction is still transmitted to this instruction the second chip being connected with the first chip, thereby realize the first chip to the judgement of received instruction and forwarding, guarantee terminal and the first chip, signal transmission between the second chip and the correct reliability of data transmission, and can tackle specific instruction or data are processed.
Accompanying drawing explanation
The transmission control method schematic flow sheet that Fig. 1 provides for the embodiment of the present invention;
A kind of concrete transmission control method schematic flow sheet that Fig. 2 provides for the embodiment of the present invention;
The transmission control method schematic flow sheet of the basic APDU instruction that Fig. 3 provides for the embodiment of the present invention;
The transmission control method schematic flow sheet of the Terminal Profile instruction that Fig. 4 provides for the embodiment of the present invention;
The transmission control method schematic flow sheet of the Envelop instruction that Fig. 5 provides for the embodiment of the present invention;
The transmission control method schematic flow sheet of the Fetch instruction that Fig. 6 provides for the embodiment of the present invention;
The transmission control method schematic flow sheet of the Terminal Response instruction that Fig. 7 provides for the embodiment of the present invention;
The forwarding controller structural representation that Fig. 8 provides for the embodiment of the present invention;
The structural representation of the paste card that Fig. 9 provides for the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of transmission control method, device and paste card, the first chip being connected with terminal is after receiving the instruction of terminal transmission, can determine according to the key word in instruction the type of instruction, because every kind of instruction has processing rule separately, basis setting in advance again, and the first chip, the current state of the second chip can determine whether this instruction is transmitted to intelligent card in processing.
Concrete, as shown in Figure 1, the transmission control method that the embodiment of the present invention provides comprises:
The instruction that step S101, receiving terminal send;
Step S102, when instruction is special instruction or current while only using the first chip be connected with terminal, directly instruction is processed;
Step S103, when instruction be non-special instruction and current use simultaneously the first chip be connected with the first chip the second chip time, according to instruction type, command content and the first chip and the current state of the second chip, instruction is processed.
Wherein, the first chip can be specially paste card, and now, the second chip can be specially the smart cards such as the SIM card that is connected with paste card or usim card, and in embodiments of the present invention, the paste card of all take describes as example.
Generally, special instruction comprises: be used for wiping the switching command switching between the erasing instruction of card, the double card pattern simultaneously used at paste card single deck tape-recorder pattern and paste card and smart card and the initialization directive that is used for refreshing instruction list etc., these special instructions are processed by paste card, certainly, those skilled in the art, when concrete application, can also arrange according to actual conditions such as used chip and required functions other special instruction.
According to instruction type, distinguish, non-special instruction specifically comprises: special proactive command and APDU(Application Protocol Data Unit, Application Protocol Data Unit) instruction, wherein, special proactive command specifically comprises again: Terminal Profile(terminal summary info download instruction), Envelop(download instruction), Fetch(obtains instruction) and the instruction of Terminal Response(terminal response).In paste card, after determining instruction type, by the command process module of respective type, this instruction is processed.
For example, as shown in Figure 2, paste card receives the flow process of carrying out after instruction and comprises:
The instruction that step S201, receiving terminal send;
Whether the instruction that step S202, judgement receive is special instruction, if so, and execution step S204, if not, execution step S203;
Step S203, judgement, at present whether in single deck tape-recorder pattern, if so, perform step S204, if not, execution step S205, wherein, single deck tape-recorder pattern refers to the pattern of only using paste card not use smart card, and corresponding double card pattern refers to the pattern that paste card and smart card are used simultaneously with it;
Step S204, directly by the instruction distribution module of paste card, instruction is processed;
The type of step S205, decision instruction, when instruction type is basic APDU instruction type, execution step S206, when instruction type is Terminal Profile instruction type, execution step S207, when instruction type is Envelop instruction type, execution step S208, when instruction type is Fetch instruction type, execution step S209, when instruction type is Terminal Response instruction type, execution step S210, when type that instruction type is other special proactive command, execution step S211;
Step S206, by basic APDU command process module, this instruction is further processed;
Step S207, by Terminal Profile command process module, this instruction is further processed;
Step S208, by Envelop command process module, this instruction is further processed;
Step S209, by Fetch command process module, this instruction is further processed;
Step S210, by Terminal Response command process module, this instruction is further processed;
Step S211, by other Special Main dynamic formula command processing module, this instruction is further processed.
When instruction is basic APDU instruction, by basic APDU command process module, this instruction is further processed: when paste card and smart card all do not have data to take out, directly basic APDU instruction is passed through to intelligent card in processing, that is: basic APDU instruction is sent to intelligent card in processing, and the data retransmission directly smart card being returned is to terminal; While having data to take out in paste card or smart card, basic APDU instruction is carried out to half transparent transmission: paste card sends to intelligent card in processing by basic APDU instruction, and after receiving the status word that smart card returns, this status word is revised as to the corresponding status word of length of the required data that read, then by amended data retransmission to terminal.
Concrete, as shown in Figure 3, the basic APDU instruction of half transparent transmission specifically comprises:
Step S301, basic APDU instruction is sent to smart card;
The status word that step S302, reception smart card return;
Step S303, the status word returned of judgement represent not have the status word 9000 to be read such as data or sign to have data to wait for the status word of reading state if so, to perform step S304, if not, directly perform step S305;
Step S304, according to paste card, record etc. the situation of data to be read, revise the status word that smart card returns, and continue execution step S305;
Step S305, to terminal return state word.
For example: paste card detects paste card or smart card in busy condition, and having length is XX 1data need to take out, paste card also can send to smart card by instruction, and the data analysis that smart card is returned: if smart card is received return state word 9000 after instruction, represent that smart card does not need reading out data, paste card is changed into 91XX 1, and return to terminal; If smart card is received return state word 91XX after instruction 2, represent that it is XX that smart card need to read length 2data, paste card is still revised as 91XX according to the detection of self by this status word 1, and return to terminal; If return to other status words (as status word error), paste card is directly returned to terminal.
When instruction is Terminal Profile instruction, by Terminal Profile command process module, this instruction is further processed: instruction is sent to smart card, and receive the rreturn value of smart card; Analyze the rreturn value of smart card, generate corresponding state word and send to terminal.
Concrete, when the rreturn value of smart card represents there is no data to be read, paste card generates menu data according to self menu, and to terminal, returns to the status word of sign menu data; When the rreturn value of smart card indicates data to be read, paste card takes out the data to be read in smart card, when taken out intelligent card data is menu data, according to self menu, revise the menu data taking out, menu data after memory modify, and to terminal, return to the status word of the amended menu data of sign, when taken out intelligent card data is not menu data, data cached and to terminal, return to the status word of identification data.
For example: according to setting in advance, when the key word that recognizes presentation directives's classification when paste card is A010, can determine that this instruction is Terminal Profile instruction, as shown in Figure 4, Terminal Profile command process module is processed this instruction:
Step S401, Terminal Profile instruction is sent to smart card;
The rreturn value that step S402, reception smart card return, according to setting in advance, when rreturn value is 9000, represent not have data to be read, continue execution step S403, when rreturn value is 91XX, indicate that length is the data to be read of XX, performs step S404;
Step S403, paste card generate menu data according to self menu, and to terminal, return to the status word of sign menu data;
Step S404, paste card take out the data that in smart card, length is XX, when paste card takes out the data in smart card, can send Fetch instruction to smart card and take out data;
Whether the data that step S405, judgement are taken out are menu data, if so, continue execution step S406, if not, execution step S407;
Step S406, according to self menu, revise the menu data taking out, the menu data after memory modify, and to terminal, return to the status word of the amended menu data of sign;
The data that step S407, buffer memory take out are also returned to sign to terminal to have length are the status word 91XX of the data to be read of XX, wait for that terminal receives to send Fetch instruction after this status word and take out this data.
In step S405, can judge according to setting in advance whether taken out data are menu data, for example can be set as menu data sends by proactive command SETUPMENU, if the data of taking out are SETUPMENU order, can be judged as menu data, if the data of taking out are not SETUPMENU orders, can judge that these data are not menu datas.
When instruction is Envelop instruction, by Envelop command process module, this instruction is further processed: according to the key word in instruction, determine the transmission object of instruction; When instruction is the instruction that sends to paste card, and smart card is when idle condition, and paste card is directly processed instruction; When instruction is the instruction that sends to smart card, and paste card is when idle condition, and paste card is transmitted to smart card by instruction and processes; When instruction is while sending to the instruction of paste card and smart card in busy condition, if instruction is the PPDownload instruction for point-to-point downloading data, the paste card buffer memory instruction wait smart card free time directly processes afterwards, otherwise abandon this instruction, or paste card also can not carry out this judgement, when instruction is while sending to the instruction of paste card and smart card in busy condition, the direct buffer memory instruction wait smart card free time of paste card directly processes afterwards; When instruction is while sending to the instruction of smart card and paste card in busy condition, if instruction is the PPDownload instruction of point-to-point downloading data, the instruction of paste card buffer memory waits for that paste card is transmitted to smart card by instruction after the free time and processes, otherwise abandon this instruction, equally, paste card can not carry out this judgement, and when instruction is while sending to the instruction of smart card and paste card in busy condition, the direct buffer memory instruction of paste card waits for that paste card is transmitted to smart card by instruction after the free time and processes.
Conventionally, when paste card or smart card send to terminal, indicates after status word that data need to take out, paste card or smart card be in busy condition, after receiving the Terminal Response instruction that terminal sends, and paste card or smart card recovery idle condition.
For example, when returning to terminal, paste card or smart card indicate that after status word 91XX that the data of XX length need to take out, paste card or smart card enter busy condition, until receive the Terminal Response instruction that terminal sends, just finish busy condition, enter idle condition.For example, smart card has the data of 35 bytes to need to take out, and can send 9135 to terminal, then enters busy condition until receive the Terminal Response instruction that terminal sends, and just finishes busy condition, enters idle condition.
For example: according to setting in advance, when the key word that recognizes presentation directives's classification when paste card is A0C2, can determine that this instruction is Envelop instruction, as shown in Figure 5, Envelop command process module is processed this instruction, comprising:
Step S501, according to the key word in instruction, judge this instruction transmission to as if smart card or paste card, if smart card, execution step S502, if paste card performs step S504;
Step S502, determine that whether paste card is in busy condition, if so, execution step S506, if not, execution step S503;
Step S503, instruction is transmitted to smart card processes;
Step S504, determine that whether smart card is in busy condition, if so, execution step S506, if not, execution step S505;
Step S505, paste card are directly processed this instruction;
Step S506, according to the key word in instruction, judge whether this instruction is PPDownload instruction, if so, continue execution step S507, if do not known, execution step S508;
Step S507, this instruction of buffer memory wait for that corresponding card continues to process this instruction after the free time;
Step S508, abandon processing this instruction.
When instruction is Fetch instruction, by Fetch command process module, this instruction is further processed: while needing reading out data in paste card, the data to be read in paste card are returned to terminal; When smartcard identification needs reading out data, the data to be read in smart card have been buffered in paste card conventionally, and the data to be read of the smart card of institute's buffer memory in paste card are returned to terminal; Otherwise, instruction is transmitted to smart card.When judging whether paste card or smart card need reading out data, can be directly by judging whether paste card or smart card are realized in busy condition, for example, when paste card is during in busy condition, can determine in paste card has data to need to take out, when smart card is during in busy condition, also can determine that the data to be read in smart card are buffered in paste card.
Conventionally, in smart card, sign needs reading out data while being buffered in paste card, paste card can be preferably smart card and to terminal, return to sign and need the status word of reading out data, wait for that terminal sends Fetch instruction and reads, and postpone to send the proactive command of paste card itself, so only have in a card in common paste card and smart card, be to need the state of reading out data.
As shown in Figure 6, Fetch command process module is processed this instruction, comprising:
Step S601, judge that whether smart card is in busy condition, if, continue execution step S602, if not, whether execution step S603, generally, can judge in busy condition by smart card, when smart card has data to be read in busy condition, otherwise in idle condition;
In step S602, taking-up paste card buffer area, the data to be read of the smart card of institute's buffer memory return to terminal, and the data to be read in smart card are conventionally all by being buffered in after paste card takes out in the buffer area of paste card;
Step S603, whether judge in paste card in busy condition, if so, execution step S604, if not, execution step S605, conventionally can be by judging whether paste card judges in busy condition, when paste card has data to be read in busy condition, otherwise in idle condition;
Step S604, the data to be read in paste card are returned to terminal;
Step S605, send to smart card to process instruction.
When instruction is Terminal Response instruction, by Terminal Response command process module, this instruction is further processed: when paste card is being waited for the response of proactive command, direct processing instruction, otherwise, instruction is transmitted to intelligent card in processing.
When paste card is received Terminal Response instruction, it is that self sends needing the clearly previous status word that indicates that data need to be taken out or smart card sends: if smart card, in busy condition, sends to smart card by this instruction; If paste card, in busy condition, is processed by paste card; Other situations are processed by intelligent card.
As shown in Figure 7, Terminal Response command process module is processed this instruction, comprising:
Step S701, judge that whether paste card is in busy condition, if so, continue execution step S702, if not, execution step S703;
Step S702, paste card are directly processed this instruction;
Step S703, send to smart card to process instruction.
Accordingly, the embodiment of the present invention also provides a kind of forwarding controller, as shown in Figure 8, comprising:
Receiving element 801, the instruction sending for receiving terminal;
The first processing unit 802, for being special instruction or current while only using the first chip be connected with terminal when instruction, directly processes instruction;
The second processing unit 803, for when instruction, be non-special instruction and current use simultaneously the first chip be connected with the first chip the second chip time, according to instruction type, command content and the first chip and the current state of the second chip, instruction is processed.
The first processing unit 802 comprises the instruction distribution module for instruction is processed.
According to instruction type, distinguish, non-special instruction specifically comprises: special proactive command and basic APDU instruction, wherein, special proactive command specifically comprises again: Terminal Profile, Envelop, Fetch and Terminal Response.At the first chip, determine after instruction type, in the first chip, the command process module of respective type is processed this instruction.
Accordingly, the second processing unit 803 comprises basic APDU command process module, Terminal Profile command process module, Envelop command process module, Fetch command process module, Terminal Response command process module and other Special Main dynamic formula command processing module, and these modules are respectively used to process the instruction of respective type.
The embodiment of the present invention is also corresponding provides a kind of paste card, and equally as shown in Figure 8, this paste card comprises:
Receiving element 801, the instruction sending for receiving terminal;
The first processing unit 802, for being special instruction or current while only using paste card when instruction, directly processes instruction;
The second processing unit 803, for when instruction, be non-special instruction and current use simultaneously paste card be connected with described paste card smart card time, according to instruction type, command content and paste card and the current state of smart card, instruction is processed.
Same, the first processing unit 802 comprises the instruction distribution module for instruction is processed.
Owing to distinguishing according to instruction type, non-special instruction specifically comprises: special proactive command and basic APDU instruction, wherein, special proactive command specifically comprises again: Terminal Profile, Envelop, Fetch and Terminal Response.The second processing unit 803 comprises basic APDU command process module, Terminal Profile command process module, Envelop command process module, Fetch command process module, Terminal Response command process module and other Special Main dynamic formula command processing module.These modules are respectively used to process the instruction of respective type, at paste card, are determining after instruction type, by the command process module of respective type, this instruction are processed.
The embodiment of the present invention also provides a kind of paste card, and as shown in Figure 9, this paste card comprises:
The first contact 901 is connected with terminal, for carrying out the transmission of instruction and data with terminal;
The second contact 902, is connected with smart card, for carrying out the transmission of instruction and data with smart card;
CPU (central processing unit) 903, connect the first contact 901 and the second contact 902, the instruction sending for receiving terminal, when this instruction is special instruction or current while only using paste card, directly this instruction is processed, when this instruction be non-special instruction and current use simultaneously paste card be connected with paste card smart card time, according to instruction type, command content and paste card and the current state of smart card, this instruction is processed.This CPU (central processing unit) can be specially the CPU(Central Processing Unit in paste card, central processing unit).
The embodiment of the present invention provides a kind of transmission control method, device and paste card, the first chip being connected with terminal is after receiving the instruction of terminal transmission, according to the type of instruction and the first chip, the state that the second chip is current, determine that directly processing this instruction is still transmitted to this instruction the second chip being connected with the first chip, thereby realize the first chip to the judgement of received instruction and forwarding, guarantee terminal and the first chip, signal transmission between the second chip and the correct reliability of data transmission, and can tackle specific instruction or data are processed.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (10)

1. a transmission control method, is characterized in that, comprising:
The instruction that receiving terminal sends;
When described instruction is special instruction or current only the first chip that use is connected with described terminal, directly described instruction is processed;
When described instruction be non-special instruction and current use simultaneously the first chip be connected with described the first chip the second chip time, according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed;
When described non-special instruction is basic Application Protocol Data Unit (APDU) instruction, describedly according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed, specifically comprise:
While all not having data to take out in described the first chip and described the second chip, send to the second chip to process described basic Application Protocol Data Unit (APDU) instruction, and the data retransmission directly the second chip being returned is to terminal.
2. the method for claim 1, it is characterized in that, when described non-special instruction is basic Application Protocol Data Unit (APDU) instruction, describedly according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed, also comprise:
When described the first chip or described the second chip have data to take out, the first chip sends to described the second chip to process described basic Application Protocol Data Unit (APDU) instruction, and after receiving the status word that the second chip returns, this status word is revised as to the corresponding status word of length of the required data that read, again by described amended data retransmission to terminal, wherein, when sending to described terminal, described the first chip or the second chip indicate after status word that data need to take out, described the first chip or the second chip are in busy condition, after receiving terminal response instruction (Terminal Response), described the first chip or the second chip recover idle condition.
3. the method for claim 1, it is characterized in that, when described non-special instruction is terminal summary info download instruction (Terminal Profile), describedly according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed, is specifically comprised:
Described instruction is sent to the second chip, and receive the rreturn value of described the second chip;
Analyze the rreturn value of described the second chip, generate corresponding state word and send to described terminal.
4. method as claimed in claim 3, is characterized in that, the rreturn value of described the second chip of described analysis generates corresponding state word and sends to described terminal, specifically comprises:
When the rreturn value of described the second chip represents there is no data to be read, described the first chip generates menu data according to self menu, and to described terminal, returns to the status word of the described menu data of sign;
When the rreturn value of described the second chip indicates data to be read, described the first chip takes out the data to be read in described the second chip, when the second taken out chip data is menu data, according to self menu, revise the menu data taking out, store described amended menu data, and to described terminal return sign described amended menu data status word, when the second taken out chip data is not menu data, data return to the status word of the described data of sign to described terminal described in buffer memory.
5. the method for claim 1, it is characterized in that, when described non-special instruction is download instruction (Envelop), describedly according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed, specifically comprise:
According to the key word in described instruction, determine the transmission object of described instruction;
When described instruction is the instruction that sends to described the first chip, and described the second chip is when idle condition, described the first chip is directly processed described instruction, wherein, when sending to described terminal, described the first chip or the second chip indicate after status word that data need to take out, described the first chip or the second chip are in busy condition, and after receiving terminal response instruction (Terminal Response), described the first chip or the second chip recover idle condition;
When described instruction is the instruction that sends to described the second chip, and described the first chip is when idle condition, and described the first chip is transmitted to described the second chip by described instruction and processes;
When described instruction is while sending to the instruction of described the first chip and described the second chip in busy condition, instruction waits for that described the second chip free time directly processes afterwards described in described the first chip buffer memory;
When described instruction is while sending to the instruction of described the second chip and described the first chip in busy condition, instruction waits for that described the first chip after the free time is transmitted to described instruction described the second chip and processes described in described the first chip buffer memory.
6. the method for claim 1, it is characterized in that, when described non-special instruction is when obtaining instruction (Fetch), describedly according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed, specifically comprise:
While having data to be read in described the first chip, the data to be read in described the first chip are returned to described terminal;
When data to be read have been buffered in described the first chip in described the second chip, the data to be read of the second chip of institute's buffer memory in described the first chip are returned to described terminal;
Otherwise, described instruction is transmitted to described the second chip.
7. the method for claim 1, it is characterized in that, when described non-special instruction is terminal response instruction (Terminal Response), describedly according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed, be specially:
When described the first chip is during in busy condition, directly process described instruction, otherwise, described instruction is transmitted to described the second chip to be processed, wherein, when sending to described terminal, described the first chip indicates that after status word that data need to take out, described the first chip is in busy condition.
8. a forwarding controller, is characterized in that, comprises
Receiving element, the instruction sending for receiving terminal;
The first processing unit, for being special instruction or current while only using the first chip be connected with described terminal when described instruction, directly processes described instruction;
The second processing unit, for when described instruction be non-special instruction and current use simultaneously the first chip be connected with described the first chip the second chip time, according to instruction type, command content and the first chip and the current state of the second chip, described instruction is processed;
When described non-special instruction is basic Application Protocol Data Unit (APDU) instruction, described the second processing unit is processed described instruction according to instruction type, command content and the first chip and the current state of the second chip, specifically for:
While all not having data to take out in described the first chip and described the second chip, send to the second chip to process described basic Application Protocol Data Unit (APDU) instruction, and the data retransmission directly the second chip being returned is to terminal.
9. a paste card, is characterized in that, comprising:
Receiving element, the instruction sending for receiving terminal;
The first processing unit, for being special instruction or current while only using paste card when described instruction, directly processes described instruction;
The second processing unit, for when described instruction, be non-special instruction and current use simultaneously paste card be connected with described paste card smart card time, according to instruction type, command content and paste card and the current state of smart card, described instruction is processed;
When described non-special instruction is basic Application Protocol Data Unit (APDU) instruction, described the second processing unit is processed described instruction according to instruction type, command content and the first chip and the current state of the second chip, specifically for:
While all not having data to take out in described the first chip and described the second chip, send to the second chip to process described basic Application Protocol Data Unit (APDU) instruction, and the data retransmission directly the second chip being returned is to terminal.
10. a paste card, is characterized in that, comprising:
The first contact, is connected with terminal, for carrying out the transmission of instruction and data with described terminal;
The second contact, is connected with smart card, for carrying out the transmission of instruction and data with described smart card;
CPU (central processing unit), connects described the first contact and described the second contact, the instruction sending for receiving terminal, and
When described instruction is special instruction or current while only using paste card, directly described instruction is processed, when described instruction be non-special instruction and current use simultaneously paste card be connected with described paste card smart card time, according to instruction type, command content and paste card and the current state of smart card, described instruction is processed;
When described non-special instruction is basic Application Protocol Data Unit (APDU) instruction, described CPU (central processing unit) is processed described instruction according to instruction type, command content and the first chip and the current state of the second chip, specifically for:
While all not having data to take out in described the first chip and described the second chip, send to the second chip to process described basic Application Protocol Data Unit (APDU) instruction, and the data retransmission directly the second chip being returned is to terminal.
CN201010556132.4A 2010-11-23 2010-11-23 Method, device and paster card for forwarding control Active CN102004629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010556132.4A CN102004629B (en) 2010-11-23 2010-11-23 Method, device and paster card for forwarding control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010556132.4A CN102004629B (en) 2010-11-23 2010-11-23 Method, device and paster card for forwarding control

Publications (2)

Publication Number Publication Date
CN102004629A CN102004629A (en) 2011-04-06
CN102004629B true CN102004629B (en) 2014-03-05

Family

ID=43812014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010556132.4A Active CN102004629B (en) 2010-11-23 2010-11-23 Method, device and paster card for forwarding control

Country Status (1)

Country Link
CN (1) CN102004629B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930322B (en) * 2012-09-29 2015-08-26 上海复旦微电子集团股份有限公司 The disposal route of smart card and instruction
CN104090790B (en) * 2014-06-30 2017-05-17 飞天诚信科技股份有限公司 Two-chip scheme firmware updating method for safety terminal
CN111950684A (en) * 2020-08-07 2020-11-17 上海方付通商务服务有限公司 Thin film smart card and starting method and communication method based on thin film smart card

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163290A (en) * 2006-10-09 2008-04-16 中兴通讯股份有限公司 Method of limiting use of mobile terminal through machine-card mutual authentication
CN101330683B (en) * 2008-05-20 2011-08-10 国民技术股份有限公司 Method for integrating radio frequency smart card menu and SIM card menu
CN101267622A (en) * 2008-03-06 2008-09-17 上海展趣网络科技有限公司 External extension control system for SIM card
CN101621861B (en) * 2009-08-07 2011-11-30 北京握奇数据系统有限公司 Method and device for processing command with telecommunication intelligent application card

Also Published As

Publication number Publication date
CN102004629A (en) 2011-04-06

Similar Documents

Publication Publication Date Title
KR100991873B1 (en) Smart Card Operating System and Operating Process
US8544752B2 (en) Nonvolatile memory card adaptable to plural specifications
CN101287221A (en) Information transferring method between intelligent bi-mode mobile phone and wireless modem
US8452330B2 (en) Mobile terminal and method for providing terminal related information in power-off state
CN111034232B (en) Communication system, communication device, and power saving method
CN101719115B (en) Communication method, device and system for main control processor and coprocessor system
US20120270602A1 (en) Multiple subscriber identity module controller
CN104021101A (en) USB interface system and implementation method based on LPC1768 platform
CN102004629B (en) Method, device and paster card for forwarding control
US20110197203A1 (en) Communication device, communication method and program
EP2620899B1 (en) Smart chip and method for smart chip data communications
JP4764670B2 (en) Non-contact transmission / reception system and portable information terminal
JP3655597B2 (en) Electronic device, electronic card, and card identification method
CN101477637B (en) Data communication method, system and smart card reader/writer
CN110569933A (en) intelligent card management device and method
US20080013396A1 (en) Memory card having multiple interfaces and reset control method thereof
JP5754287B2 (en) IC chip, processing method in IC chip, UIM, portable terminal, and processing program for IC chip
CN100361433C (en) Communication device using three step communication buffer storage
JP2008152525A (en) Device equipped with function to output monitoring state and computer equipment
JP5838713B2 (en) IC chip, UIM, processing method in IC chip, IC chip processing program, and portable terminal
US9088304B2 (en) Interface deactivation for communication between electronic appliances
CN103647728B (en) A kind of STM32 micro-chip and Linux system high-speed serial ports Anti-jamming Communication method
JP5799754B2 (en) IC chip, processing method in IC chip, IC chip processing program, IC card, and portable terminal
JP2012093857A (en) Ic chip, memory initialization method for ic chip, processing program for ic chip, and portable terminal
CN103024087B (en) Support massive store and the system and method for ethernet communication simultaneously

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
CP01 Change in the name or title of a patent holder

Address after: 100015 Beijing city Chaoyang District Dongzhimen West eight Street No. 2 room Wanhong Yan Dong Business Garden

Patentee after: Beijing Watchdata Limited by Share Ltd

Address before: 100015 Beijing city Chaoyang District Dongzhimen West eight Street No. 2 room Wanhong Yan Dong Business Garden

Patentee before: Beijing Woqi Data System Co., Ltd.

CP01 Change in the name or title of a patent holder