A kind of method and device of realizing combined card operating system
Technical field
The present invention relates to the smart card operating system field, specifically relate to a kind of method that realizes combined card operating system.The invention still further relates to the device of realizing combined card operating system.
Background technology
The application of smart card in productive life at present, be under concrete using standard instructs, to carry out, for example be applied to the smart card of financial field, all to meet " China's finance integrated circuit (IC) calliper model " to specific requirement that smart card proposes, comprise card go up the tissue of data, the order that should support and block with the process of terminal switch data etc.For example be applied to the smart card in petrochemical complex (group refueling) field again, then will meet " Sinopec oiling integrated circuit (IC) calliper model ".Each is independent for different specification, thereby makes people must hold many sheet smart cards could to carry out different transaction respectively, and is not only inconvenient, and causes waste to a certain degree.For convenience people use, and save social resources and hair fastener cost, the application that need allow a card support different specification simultaneously to be retrained.
Allow a card support multiple standard simultaneously, currently used method mainly contains following two kinds:
(1) does the function expansion based on a certain standard, such as based on fiscard of " China's finance integrated circuit (IC) calliper model " exploitation, increase the number order handling procedure simultaneously and be used to finish some other application that exceeds outside " China's finance integrated circuit (IC) calliper model ".The shortcoming of this method is to be difficult to the test by the financial department strictness, because the certain operations of card can not keep in full accord with " China's finance integrated circuit (IC) calliper model ".
(2) in card, place a plurality of operating systems, when the production card, activate wherein some as required.Processing operation and relevant standard maintenance strict conformance that this mode can allow card support, such as finance and petrochemical industry two cover systems are arranged in the card simultaneously, if only activate financial sector, this card is just only finished financial application so, and its built-in petrochemical industry is used can not bring any interference.Help detection like this, but,, but can not bring any convenience for the holder so this method can only help card manufacturer to reduce manufacturing cost because many application can not play a role jointly by the financial department strictness.Simultaneously because card manufacturer is must be in the card manufacture process many together at the activation links of concrete using standard, thereby when reducing manufacturing cost, increased handling cost.
Summary of the invention
For solve a sheet smart card in the prior art can not be simultaneously the problem of the strict multiple standard of support again flexibly, the invention provides a kind of several operation systems can be compound to one on the card method and realize the device of this method, can be implemented on the card by the present invention and to insert a plurality of operating systems, multiple standard can be supported, thereby just multiple application can be finished with a card.
A kind of method that realizes combined card operating system of the present invention may further comprise the steps:
Steps A: operating system is divided into nucleus module, standard transaction command processing module and basic hair fastener command module;
Step B: described each module of steps A is inserted in the chip of card;
Step C: will block the terminating machine that inserts different departments, and activate corresponding standard transaction command processing module.
Described steps A comprises:
Steps A 1: will be applied to the overlapping content of card operation system of each standard and general order as nucleus module;
Steps A 2: as a cover command interpretation code, each standard command interpretation code mutual group becomes standard transaction command processing module with every kind of distinctive order of standard;
Steps A 3: with the establishment file command with add cipher key command as hair fastener command module substantially.
File and sub-directory are created in described basic hair fastener order in card, described each file and sub-directory all comprise the internal description data of ID number of each sub-directory of log file, attribute and length.
Include the data bit that is configured to indicate in the internal description data of described expression file attribute.
Described step C comprises:
Step C1: card is inserted in the terminating machine of different departments;
Step C2: terminating machine is selected corresponding sub-directory;
Step C3: terminating machine sends the transaction order;
Step C4: nucleus module receives the transaction order that terminating machine is sent, and judges the affiliated standard of this transaction order by the order dispatch module in the nucleus module;
Step C5: the order of should concluding the business is given corresponding standard transaction command processing module and is handled according to judged result.
In described step C4, described order dispatch module is judged the affiliated standard of this transaction order according to the sign of described transaction order.
A kind of device of realizing combined card operating system of the present invention comprises nucleus module, standard transaction command processing module and basic hair fastener command module, and described nucleus module is used to handle basic and the general order of each standard; Described standard transaction command processing module is used to handle the transaction of corresponding standard; Described basic hair fastener command module is used for creating file and adding key to standard transaction command processing module.
Described nucleus module comprises Hardware drive module, order dispatch module and security algorithm module, and described Hardware drive module is used for control and management card hardware resource; Classification also will order branch to task corresponding standard transaction command processing module or basic hair fastener command module under described order dispatch module is used for recognition command; Described security algorithm module is used for process of exchange is encrypted.
Described standard transaction command processing module comprises financial transaction command processing module, petrochemical industry transaction command processing module, public transport transaction command processing module or social security transaction command processing module.
Because the present invention is provided with the sign of expression file attribute in the operating system of card, each standard transaction command processor can activate simultaneously, so the holder can finish multiple different transaction with a sheet smart card, greatly facilitates the user.Card issuer's (referring to that bank etc. provides a side of service for the user) is append file in card at any time also, activate the unactivated command interpreter of Ka Neishang, constantly expand the trading item that the holder can carry out, strengthened the card application flexibility, also reduced the hair fastener cost simultaneously.In addition, part overlapped in each using standard is as the core, insert separately command interpreter in each standard in the card respectively, every cover command interpretation code all strictness is followed its pairing card using standard, not for supporting other should be used as any expansion, therefore method of the present invention can be by the strictness test of various standards.
Description of drawings
The present invention is further described below in conjunction with drawings and Examples.
Fig. 1 is the theory diagram of the method for realization combined card operating system of the present invention;
Fig. 2 is the structure principle chart of a kind of embodiment of the device of realization combined card operating system of the present invention;
Fig. 3 is the operational flowchart of a kind of embodiment of the method for realization combined card operating system of the present invention.
Embodiment
As shown in Figure 1, will be blocked by the developer of smart card that overlapped content concentrates in together as nucleus module in each standard of required application, and write in the card, this nucleus module comprises Hardware drive module, order dispatch module and security algorithm module; Developer also Xiang Kazhong inserts basic hair fastener command module, and by basic hair fastener command module, card issuer can be created file and sub-directory in card, and each sub-directory comprises the transaction command interpreter of a cover using standard correspondence.Each file and sub-directory all include the internal description data of 32 data bit, putting down in writing file and sub-directory in these data ID number, attribute, length etc., as required, also can use the data bit representation attribute of other number, tell 4 data bit from the byte of an expression file attribute, it is arranged to " sign ", also can adopts the data bit of other number that sign is set as required.As shown in Figure 2, the box indicating that has suspension points among the figure can also have the transaction command interpreter of other using standard correspondence.
One " establishment file " order is set in basic hair fastener order, and the card issuer provides sign in the parameter of this order, and card operation system can be put the sign in the parameter in order among inner 32 data bit data structures when carrying out this order.Like this, card operation system is whenever received an order, will go to judge this order according to the sign of expression file attribute in the order and belong to which standard, gives corresponding command interpretation code this order according to result's decision of judging, as shown in Figure 3.
Specify below by embodiment:
The developer inserts smart card with part overlapped in financial application standard, petrochemical industry using standard, public transport using standard and the social security using standard as the nucleus module of operating system, inserts basic hair fastener command module in addition in card.Bank as the card issuer sends the establishment file command with card sender to card operation system, the order dispatch module of card operation system judges that this order is basic hair fastener order, so giving basic hair fastener command module with this order handles, in card, insert the related data of financial application by basic hair fastener order, leave this program in card interior independently in the sub-directory, and in the byte of this sub-directory attribute of expression, tell 4 data bit, as the sign of this sub-directory, that establishes the financial application system is masked as 1.Similar with it, petrochemical industry service department and social security service department insert the related data of its corresponding standard correspondence in the card respectively, and sign is set, and that establishes the petrochemical industry application system is masked as 2, if the public transport application system be masked as 3, that establishes the social security application system is masked as 4.Can only insert wherein some or several application system as required, also can insert other application system, and corresponding sign is set.Like this, the user who holds this smart card just can carry out multiple the operation.
Card is inserted the terminating machine of financial application system, card operation system and financial application system terminal are mutual, the financial application system terminal sends the order that has sign 1 to the operating system of card, the order dispatch module of card operation system judges that according to sign this order is the financial transaction order, carries out the financial command interpreter that this order is given in the card.
Card is inserted the terminating machine of petrochemical industry application system, card operation system and petrochemical industry application system terminal machine are mutual, petrochemical industry application system terminal machine sends the order that has sign 2 to the operating system of card, the order dispatch module of card operation system is petrochemical industry transaction order according to this order of sign judgement, gives the execution of the petrochemical industry command interpreter in the card with this order.
Card is inserted the terminating machine of public transport application system, card operation system and public transport application system terminal machine are mutual, public transport application system terminal machine sends the order that has sign 3 to the operating system of card, the order dispatch module of card operation system is public transport transaction order according to this order of sign judgement, gives the execution of the public transport command interpreter in the card with this order.
Card is inserted the terminating machine of social security application system, card operation system and social security application system terminal machine are mutual, social security application system terminal machine sends the order that has sign 4 to the operating system of card, the order dispatch module of card operation system is social security transaction order according to this order of sign judgement, gives the execution of the social security command interpreter in the card with this order.