CN106127092A - The smart card of a kind of COS system application stripping and method of work thereof - Google Patents

The smart card of a kind of COS system application stripping and method of work thereof Download PDF

Info

Publication number
CN106127092A
CN106127092A CN201610432049.3A CN201610432049A CN106127092A CN 106127092 A CN106127092 A CN 106127092A CN 201610432049 A CN201610432049 A CN 201610432049A CN 106127092 A CN106127092 A CN 106127092A
Authority
CN
China
Prior art keywords
application
cos system
function
cos
application program
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.)
Granted
Application number
CN201610432049.3A
Other languages
Chinese (zh)
Other versions
CN106127092B (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.)
CHENGDU SANLINGJIA MICROELECTRONIC Co Ltd
Original Assignee
CHENGDU SANLINGJIA MICROELECTRONIC 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 CHENGDU SANLINGJIA MICROELECTRONIC Co Ltd filed Critical CHENGDU SANLINGJIA MICROELECTRONIC Co Ltd
Priority to CN201610432049.3A priority Critical patent/CN106127092B/en
Publication of CN106127092A publication Critical patent/CN106127092A/en
Application granted granted Critical
Publication of CN106127092B publication Critical patent/CN106127092B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10297Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/077Constructional details, e.g. mounting of circuits in the carrier
    • G06K19/07701Constructional details, e.g. mounting of circuits in the carrier the record carrier comprising an interface suitable for human interaction

Abstract

The invention provides smart card and method of work thereof that the application of a kind of COS system is peeled off.Described smart card includes chip, COS system, shared variable storehouse, customized application module.Application management module closely-related with user's customized demand in traditional COS system is divided into application interface and customized application two parts by the present invention, application interface belongs to COS system, by chip production, business develops, and customized application is independent of COS system, and user can self-developing according to demand.The COS system designed according to the present invention, independent of application function, only comprises application interface, facing multiple users, not only increases safety, and can reduce exploitation and test job amount, reduce development difficulty, improve development efficiency;Support the download online of application, renewal, it is simple to the application function in smart card later stage updates, it is possible to decrease maintenance cost.

Description

The smart card of a kind of COS system application stripping and method of work thereof
Technical field
The present invention relates to embedded SOC(System On Chip) field, particularly relate to what the application of a kind of COS system was peeled off Smart card and method of work thereof.
Background technology
Smart card is made up of hardware resource (chip) and Chip Operating System COS.
Chip is mainly by CPU processor, memory element (including random access memory, electricity erasable memorizer), peripheral circuit Composition.
COS system is the core of smart card, is embedded in chip, managing chip hardware resource, the safe place of execution data Reason and access, and the monitoring software system communicated with external device by peripheral interface.
Traditional smart card COS system structure generally includes main system control module, hardware resource management module, telecommunication management Several parts such as module, safety management module, file system management module and application management module, as shown in Figure 1.System master Module is the core of COS, region be directly facing hardware resource, is uniformly coordinated the operating of each module;Safety management module is to transmission and storage Data be encrypted, authority differentiate, it is ensured that the safety of smart card;File system management module management is with document form storage Data, have been responsible for the operations such as the lookup to file, read-write, and have been managed memory space;Application management module is to outside The various instructions sent into carry out judging, resolve and processing, and scheduling internal resource is in order to complete the corresponding of user's customized application function Operation.
For to smart card low-power consumption, the consideration of cost needs, should save as far as possible take memory resource, COS system The configuration of code, system and file system are then stored in electricity erasable memorizer because needing power down to preserve, and needed for COS system is run The overall situation, static variable and stacked data are then stored in random access memory because of variable and processing speed height, COS system program run from Electricity erasable memorizer reads instruction and read-only data, reads and writes data from random access memory, as shown in Figure 2.
Traditional smart card COS system is developed for certain chip and customized application, generally complete by chip production business Become exploitation, because only that they the most really understand the ins and outs of chip bottom.Many users, every user is had with a chip Application scenarios different, it is meant that every money chip needs multiple COS systems soft wares could meet multi-user's demand.Chip production business Need to customize special COS system for every user, owing to chip production business developer is general lack of application-specific scene Technological reserve, development difficulty increases, time span is long, and each customization COS system is required for substantial amounts of test, so greatly reduces The efficiency of exploitation, and traditional COS system do not supports that application function is independently updated, later maintenance cost increases.
Summary of the invention
For solving the problems referred to above, the invention provides the smart card that the application of a kind of COS system is peeled off, described smart card includes Chip, COS system, shared variable storehouse, customized application module;
Described chip is made up of CPU, memory module, peripheral circuit.Memory module is divided into code storage unit and variable storage list Unit, described code storage unit is divided into COS system code district, system configuration code district, application code district;Described variable storage list Unit is divided into shared variable district, COS system global variables district, application system global variable district, shares stack area.
Described COS system includes main system control module, hardware resource management module, communication management module, safety management mould Block, AIM;Described COS system exchanges with extraneous order for controlling smart card, resource in management smart card, for User provide call COS system internal resources application interface library;AIM is mainly by application interface library and application Interface management unit forms, and described application interface library includes multiple application interface function;Application interface administrative unit is application journey Sequence provide download, more new tunnel, carry out the registration of application program, for application program configuration operation environment, and manage user should With the transmission of data.
Shared variable storehouse is the set sharing global variable, hands over for realizing the data of COS system and customized application module Mutually, and data buffer storage is provided;Described shared variable stock is stored in shared variable district.
Customized application module is made up of applied environment dispensing unit, application log-on message unit and application function unit;Should It is used for carrying out application interface function initialization with environment configurations unit, to call COS system internal resources;Application log-on message list Unit's information needed for providing application program to run for COS system;Application function unit is joined for providing an applied environment Put function entrance address, to realize the temporary transient transfer to application program of the CPU pointer control.
Further, application interface library includes that memorizer manages class built-in function, logical operations class built-in function, safety management class Built-in function, system operation class built-in function and file system operation class built-in function;Memorizer management class built-in function is used for storing The reading of space correlation, write, wipe, compare operation;Logical operations class built-in function be used for carrying out logical AND, logic or, XOR, From XOR and logical operation;Safety management class built-in function is used for providing safety-related interface function;System operation class libraries letter Number is for providing system generic operation function interface for user application;File system operation class built-in function provides for application program File manipulation function.
Further, the information in application log-on message unit includes the initial address of application program text section, application journey The end address of sequence text section, the initial address of application program data section, the end address of application program data section, application program The initial address of bss section, the end address of application program bss section, application initial configuration function entrance address, application function letter Number entry address.
Further, code storage unit is to use electricity erasable memorizer to store, and variable storage unit is to use Random access memory stores.
Further, regulation during shared global variable includes ISO/IEC 7816-3 and ISO/IEC 7816-4 agreement Five command header variablees of APDU, data cached, the random number of caching of read-write equipment.
The workflow of above-mentioned COS system includes downloading and update application work flow process, application workflow.
Described download and renewal application work flow process comprise the steps:
Step one: COS system is run, waits the order of exterior read-write equipment, when detecting that order is to update application code, COS system performs the download of application program, renewal.
Step 2: application program download, has updated after, COS system detect application program whether register, such as application program Registration, then do not jump to step 4, as application program has been registered, then perform step 3.
Step 3: COS system is that application program runs configuration surroundings: read original position in application code district text section Log-on message, the original position of data section and end position, applied environment configuration function entry address, and move the number of data section According to application global variable district, last COS system jumps to applied environment configuration function entry address, by the PC pointer of CPU Control hands to application program, and application execution environment configures.
Step 4: perform COS base command, it is judged that this base command is the need of downloading and/or more new opplication, as otherwise Power cut-off flow process, the most then download and/or update application program.
Step 5: return, power cut-off flow process.
Described application workflow comprises the steps:
Step one: smart card powers on, waits the reset instruction of read-write equipment to be received, answers as received then to send to reset to read-write equipment Answer and perform step 2.
Step 2: whether the detection application of COS system registers, and application is registered if detecting, COS system is application configuration fortune Row environment, and carry out step 3, as do not registered, COS system can process base instruction, carries out step 4.
Step 3: COS system is standby, waits the order from card-reading apparatus to be received.Order is divided into basis to refer to Make process and application process, based on order during instruction, perform step 4;When order processes for application, perform step 5.
Step 4: COS system obtains the control of CPU pointer, reads instruction, from COS system from COS system code district Global variable district access data, complete command process, and perform step 6.
Step 5: the control of CPU pointer is given application program by COS system, the pointer of application program controlling CPU is from answering Reading instruction with code area, access data from the global variable district of application, complete the process of application function, application program will process Result feeds back to COS system by shared variable district, and gives back the control of CPU pointer, and performs step 6.
Step 6: COS system returns result to read-write equipment, makes mistakes if processed, and performs step 7, otherwise returns Step 3.
Step 7: COS system exception, COS system no longer responds the command request of read-write equipment, and read-write equipment now can enter Row system reset, recovers COS system, and this flow process terminates.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of tradition COS system structure.
Fig. 2 is tradition COS system memory space distribution schematic diagram.
Fig. 3 is the COS system memory space distribution schematic diagram of the present invention.
Fig. 4 is COS system and the schematic diagram of application lift-off structure of the present invention.
Fig. 5 is COS system function and the variable mappings mode schematic diagram of the present invention.
Detailed description of the invention
In order to improve the versatility of smart card COS system, motility and development efficiency, the design concept of the present invention is: will Traditional COS system is divided into application interface and customized application two parts, and application interface belongs to COS system, and by chip production, business enters Row exploitation, customized application is independent of COS system, and user can self-developing according to demand.
Below technical scheme is described in detail.
Described chip is made up of hardware and software.
Described hardware includes that CPU processor, memory module, peripheral circuit form.
As it is shown on figure 3, memory module is the memory space of smart card, it is divided into code storage unit and variable storage list Unit.For reducing the resource occupation of smart card random access memory as far as possible, COS system specifies the division in smart cards for storage space, determines Calling the mode of each module of customized application, memory module is divided into code storage unit and variable storage unit.Code storage unit Being to use electricity erasable memorizer to store, variable storage unit is to use random access memory to store.Described code is deposited Storage unit storage executable file, including code (text section), initialized global variable (data section) and no initializtion is complete Office's variable (bss section).
Described random access memory is only used for the access of variable.Code storage unit is divided into COS system code district, system configuration District and application code district.
Variable storage space is divided into shared variable district, COS system global variables district, application system global variable district, shares Stack area.
Below in conjunction with Fig. 4, software is introduced.
1.COS system
COS system facing multiple users demand, mainly by main system control module, hardware resource management module, communication management module, peace Entirely manage a few part such as module, AIM to constitute.AIM is mainly by application interface library and application interface pipe Reason unit composition.
COS system is used for providing a user with application interface library so that user, without closing chip centroid bottom layer driving details, passes through Application interface calls COS internal resource, can effectively control the physical resource on smart card, complete opening of application specific functionality Send out.
Application interface library mainly has following a few class function: memorizer manages class built-in function, logical operations class built-in function, safety Management class built-in function, system operation class built-in function, file system operation class built-in function.Wherein, memorizer management class built-in function enters Reading that row memory space is relevant, write, wipe, the operation such as compare;Logical operations class built-in function carries out common logical operation, Including logical AND, logic or, XOR, from XOR and etc. operation;Safety management class built-in function provides safety-related interface letter Number, such as signature, certification, encrypts and deciphering etc.;System operation class built-in function provides system generic operation function for user application Interface, including random number reading, internal system certification, its exterior certification, the amendment of smart card baud rate, power down protection etc.;Literary composition Part system operation class built-in function provides file manipulation function for user application, can locating file, reading file content, amendment File content, deleting file data etc..
Application interface administrative unit provides download, more new tunnel for application program, carries out the registration of application program, for application The program good running environment of configuration, and manage user and apply the transmission of data.Specifically, i.e. application interface manages module There is application program download management function, for managing the download online of application program, updating and register.On smart cards at the beginning of electricity Beginning, whether application interface management module detection application program is registered, as registered in application detected, just according to application registration Information carries out moving of the data of application program, and calling applied environment configuration function is that the properly functioning of application function gets out thing Reason environment.The transmission of application interface management module management application data, receives read-write equipment order, carries out applying data safety Property, legitimacy detection, filter out application function data content delivery give application, and by application process after data to read-write equipment Loopback.Application interface management module, as COS system and the bridge of customized application, makes COS system and applies separate becoming May, add the safety of COS system.
2. shared variable storehouse
Shared variable storehouse provides the passage of data interaction for COS system and customized application, is the set sharing global variable, including The APDU(Application Protocol Data of regulation in ISO/IEC 7816-3 and ISO/IEC 7816-4 agreement The data buffer storage of five command header variablees Unit), read-write equipment transmission, random number caching etc..Shared variable stock is stored in and deposits The shared variable district of storage module.
3. customized application module
Customized application module, towards unique subscriber, has specificity.Customized application module mainly by applied environment dispensing unit, should Constitute with log-on message unit and application function unit.
Applied environment dispensing unit is for carrying out the initialization of application interface library inner function, it is simple to call in application function COS system internal resources.
Application log-on message unit is towards COS system, and its contained application log-on message provides for COS system should Information needed for running by program, including the initial address of application program text section, the end address of application program text section, should With the initial address of program data section, the end address of application program data section, the initial address of application program bss section, application The end address of program bss section, application initial configuration function entrance address and application function function entrance address etc..These ground Location information can obtain by being inserted into tag addresses variable in text, data and bss section of the threaded file of translation and compiling environment.
Application function unit is for the realization of user's customized application function, and for COS system, application function is one Applied environment configuration function entry address, COS system completes CPU pointer by accessing applied environment configuration function entry address Control is to the temporary transient transfer of application program.
In the present invention, COS system and customized application are separate on memory space, and on the time, order performs, by altogether Enjoy variable range and carry out data interaction (as shown in Figure 3), by shared stack space storage function (what function please be demonstrate) Parameter value, local variable etc..
Fig. 5 show COS system and accesses customized application function, variable or customized application access COS system application interface letter The schematic diagram of number.The operation program of COS system code district storage COS system, the application interface built-in function running program is linked Starting in continuous print memory space to the initial address being positioned at COS system code district, each application interface function correspondence one is solid Fixed entry address, customized application can be fixed into port address indirect addressing by this, access application interface function, reaches to operate intelligence The purpose of energy card bottom physical resource.Application code district storage application program, the effective address information in application program and function Entry address according to the prescribed form of COS system by the initial address being sequentially linked to be positioned at application code district start continuous In memory space, the corresponding fixing entry address of each application interface function, the corresponding fixing access of each variable Address, function access passes through indirect addressing mode, and variables access passes through direct addressin.Storage shared variable storehouse, shared variable district Program, this application definition as COS system and the variable of customized application data exchange channels, array and pointer etc., is shared and is become Each member in amount storehouse is linked to the initial address in shared variable district and starts in continuous print memory space.
The COS system using the method for the embodiment of the present invention to design can be supported to apply download online and renewal.COS system Being cured to the COS code area of electric erasable memory block, COS system is run, and smart card can normally work, and processes elementary instruction, complete Become assigned operation, the most do not support customized application function.The executable file that customized application compiling is formed, passes through intelligent card interface Download online is to application code district, and completes registration and the running environment configuration of customized application.
Below the workflow of above-mentioned smart card is illustrated.
COS system downloads and renewal application work flow chart comprise the steps:
Step one: COS system is run, waits the order of exterior read-write equipment, when detecting that order is to update application code, COS system performs the download of application program, renewal.
Step 2: application program download, has updated after, COS system detect application program whether register, such as application program Registration, then do not jump to step 4, as application program has been registered, then perform step 3.
Step 3: COS system is that application program runs configuration surroundings.First, initiate in reading application code district text section The log-on message of position: the original position of data section and end position, applied environment configuration function entry address.Secondly, move The data of data section are to application global variable district, owing to the data section in application code district comprises the global variable after initialization, The chained address of data section will be arrived application global variable district for application global variable district, i.e. CPU and read at the beginning of application global variable Initial value, therefore the size of data of data section need to be calculated, perform the data-moving operation of data section.Finally, COS system jumps to answer With environment configurations function entrance address, the control of the PC pointer of smart card CPU being handed to application program, application program performs Environment configurations, mainly includes the functions such as clock environment configuration, application interface function registration and intelligent card interface baud rate configuration.
Step 4: perform COS base command, it is judged that this base command is the need of downloading and/or more new opplication, as otherwise Power cut-off flow process, the most then download and/or update application program.
Step 5: return, power cut-off flow process.
The workflow of COS system comprises the steps:
Step one: smart card powers on, waits the reset instruction of read-write equipment to be received, answers as received then to send to reset to read-write equipment Answer and perform step 2.
Step 2: whether the detection application of COS system registers, and application is registered if detecting, COS system is application configuration fortune Row environment, and carry out step 3, as do not registered, COS system can process base instruction, carries out step 4.
Step 3: COS system is standby, waits the order from card-reading apparatus to be received.Order is divided into basis to refer to Make process and application process, based on order during instruction, perform step 4;When order processes for application, perform step 5.
Step 4: COS system obtains the control of CPU pointer, reads instruction, from COS system from COS system code district Global variable district access data, complete command process, and perform step 6.
Step 5: the control of CPU pointer is given application program by COS system, the pointer of application program controlling CPU is from answering Reading instruction with code area, access data from the global variable district of application, complete the process of application function, application program will process Result feeds back to COS system by shared variable district, and gives back the control of CPU pointer, and performs step 6.
Step 6: COS system returns result to read-write equipment, makes mistakes if processed, and performs step 7, otherwise returns Step 3.
Step 7: COS system exception, COS system no longer responds the command request of read-write equipment, and read-write equipment now can enter Row system reset, recovers COS system, and this flow process terminates.
The invention have the benefit that
Tradition COS system is functionally made a distinction by the present invention, and then structurally carries out separate design, specific depending on The application of user's request is peeled off from tradition COS system.The COS system that the COS system of the present invention is more traditional has more logical With property and motility.Traditional COS system need to carry out exploitation and the maintenance of multiple COS system according to different user demands, exploitation Working strength is big, difficulty is high, and later maintenance cost is high.Use the COS system that the method for the present invention is designed independent of application Function, facing multiple users, there is versatility, exploitation and test job amount can be reduced, reduce development difficulty, raising development efficiency; And support the download online of application, renewal, it is simple to the application function in smart card later stage updates, it is possible to decrease maintenance cost.

Claims (6)

1. the smart card that a COS system application is peeled off, it is characterised in that described smart card includes chip, COS system, shares Base variable, customized application module;
Described chip is made up of CPU, memory module, peripheral circuit;Memory module is divided into code storage unit and variable storage list Unit, described code storage unit is divided into COS system code district, system configuration code district, application code district;Described variable storage list Unit is divided into shared variable district, COS system global variables district, application system global variable district, shares stack area;
Described COS system includes main system control module, hardware resource management module, communication management module, safety management module, answers Use interface module;Described COS system exchanges with extraneous order for controlling smart card, and resource in management smart card, for user There is provided call COS system internal resources application interface library;AIM is managed by application interface library and application interface Unit forms, and described application interface library includes multiple application interface function;Under application interface administrative unit provides for application program Carry, more new tunnel, carry out the registration of application program, for application program configuration operation environment, and manage user and apply data Transmission;
Shared variable storehouse is the set sharing global variable, for realizing COS system and the data interaction of customized application module, and Data buffer storage is provided;Described shared variable stock is stored in shared variable district;
Customized application module is made up of applied environment dispensing unit, application log-on message unit and application function unit;Application ring Border dispensing unit is used for carrying out application interface function initialization, to call COS system internal resources;Application log-on message unit is used Information needed for providing application program to run for COS system;Application function unit is for providing an applied environment configuration letter Number entry address, to realize the temporary transient transfer to application program of the CPU pointer control.
2. the smart card that COS system application as claimed in claim 1 is peeled off, it is characterised in that application interface library includes storage Device management class built-in function, logical operations class built-in function, safety management class built-in function, system operation class built-in function and file system behaviour Make class built-in function;Memorizer management class built-in function is for carrying out the relevant reading of memory space, writing, wipe, compare operation;Patrol Volume computing class built-in function for carry out logical AND, logic or, XOR, from XOR and logical operation;Safety management class built-in function For providing safety-related interface function;System operation class built-in function is for providing system generic operation letter for user application Number interface;File system operation class built-in function provides file manipulation function for application program.
3. the smart card that COS system application as claimed in claim 1 is peeled off, it is characterised in that in application log-on message unit Information include the initial address of application program text section, the end address of application program text section, application program data section Initial address, the end address of application program data section, the initial address of application program bss section, the end of application program bss section Address, application initial configuration function entrance address, application function function entrance address.
4. the smart card that COS system application as claimed in claim 1 is peeled off, it is characterised in that code storage unit is to use Electricity erasable memorizer stores, and variable storage unit is to use random access memory to store.
5. the smart card that COS system application as claimed in claim 1 is peeled off, it is characterised in that shared global variable includes Five command header variablees of APDU of regulation, the caching of read-write equipment in ISO/IEC 7816-3 and ISO/IEC7816-4 agreement Data, the random number of caching.
6. the workflow of the smart card that the COS system application as described in any one of claim 1 ~ 5 is peeled off, it is characterised in that Described workflow includes downloading and update application work flow process, application workflow;
Described download and renewal application work flow process comprise the steps:
Step one: COS system is run, waits the order of exterior read-write equipment, when detecting that order is to update application code, COS system performs the download of application program, renewal;
Step 2: application program download, has updated after, COS system detect application program whether register, as application program does not has Registration, then jump to step 4, as application program has been registered, then perform step 3;
Step 3: COS system is application program operation configuration surroundings: the registration of original position in reading application code district text section Information, the original position of data section and end position, applied environment configuration function entry address, and the data moving data section arrive Application global variable district, last COS system jumps to applied environment configuration function entry address, by the control of the PC pointer of CPU Power hands to application program, and application execution environment configures;
Step 4: perform COS base command, it is judged that this base command is the need of downloading and/or more new opplication, as otherwise terminated Workflow, the most then download and/or update application program;
Step 5: return, power cut-off flow process;
Described application workflow comprises the steps:
Step one: smart card powers on, waits the reset instruction of read-write equipment to be received, answers as received then to send to reset to read-write equipment Answer and perform step 2.
Step 2: whether the detection application of COS system registers, and application is registered if detecting, COS system is that application configuration runs ring Border, and carry out step 3, as do not registered, COS system can process base instruction, carries out step 4.
Step 3: COS system is standby, waits the order from card-reading apparatus to be received.Order is divided at base instruction Reason and application process, and based on order during instruction, perform step 4;When order processes for application, perform step 5.
Step 4: COS system obtains the control of CPU pointer, reads instruction, from the COS system overall situation from COS system code district Variable range access data, complete command process, and perform step 6.
Step 5: the control of CPU pointer is given application program by COS system, the pointer of application program controlling CPU is from application generation Code district reads instruction, accesses data from the global variable district of application, completes the process of application function, and application program is by result Feed back to COS system by shared variable district, and give back the control of CPU pointer, and perform step 6.
Step 6: COS system returns result to read-write equipment, makes mistakes if processed, and performs step 7, otherwise returns step Three.
Step 7: COS system exception, COS system no longer responds the command request of read-write equipment, and read-write equipment can be now System resets, and recovers COS system, and this flow process terminates.
CN201610432049.3A 2016-06-17 2016-06-17 A kind of smart card and its working method of COS systems application stripping Active CN106127092B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610432049.3A CN106127092B (en) 2016-06-17 2016-06-17 A kind of smart card and its working method of COS systems application stripping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610432049.3A CN106127092B (en) 2016-06-17 2016-06-17 A kind of smart card and its working method of COS systems application stripping

Publications (2)

Publication Number Publication Date
CN106127092A true CN106127092A (en) 2016-11-16
CN106127092B CN106127092B (en) 2018-08-28

Family

ID=57470542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610432049.3A Active CN106127092B (en) 2016-06-17 2016-06-17 A kind of smart card and its working method of COS systems application stripping

Country Status (1)

Country Link
CN (1) CN106127092B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798256A (en) * 2017-11-21 2018-03-13 成都三零嘉微电子有限公司 A kind of smart card and design method based on cryptographic algorithm separation storage
CN109032960A (en) * 2018-06-29 2018-12-18 北京中电华大电子设计有限责任公司 A kind of dynamic allocation method and data structure of smart card RAM
CN111800824A (en) * 2020-05-28 2020-10-20 上海诺行信息技术有限公司 Data transmission system of intelligent instrument, driving interface packaging device and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984449A (en) * 2010-11-30 2011-03-09 公安部第三研究所 Smart card COS operating system
US20130127600A1 (en) * 2010-04-06 2013-05-23 Wei Li Contactless Communication Device
CN104657683A (en) * 2013-11-20 2015-05-27 上海华虹集成电路有限责任公司 Intelligent card COS (chip operating system) multi-application isolation safety testing method
CN104778053A (en) * 2014-01-14 2015-07-15 国民技术股份有限公司 Initialization control method and device of smart card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130127600A1 (en) * 2010-04-06 2013-05-23 Wei Li Contactless Communication Device
CN101984449A (en) * 2010-11-30 2011-03-09 公安部第三研究所 Smart card COS operating system
CN104657683A (en) * 2013-11-20 2015-05-27 上海华虹集成电路有限责任公司 Intelligent card COS (chip operating system) multi-application isolation safety testing method
CN104778053A (en) * 2014-01-14 2015-07-15 国民技术股份有限公司 Initialization control method and device of smart card

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
吴俊军 等: ""一卡多用"中卡操作系统多应用管理的设计", 《计算机应用与软件》 *
李春丰 等: "RF_SIM卡的多应用COS研究与设计", 《计算机工程与应用》 *
潘宇 等: "基于智能卡COS平台的应用开发技术", 《通信技术》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798256A (en) * 2017-11-21 2018-03-13 成都三零嘉微电子有限公司 A kind of smart card and design method based on cryptographic algorithm separation storage
CN107798256B (en) * 2017-11-21 2020-02-21 成都三零嘉微电子有限公司 Smart card based on cryptographic algorithm separation storage and design method
CN109032960A (en) * 2018-06-29 2018-12-18 北京中电华大电子设计有限责任公司 A kind of dynamic allocation method and data structure of smart card RAM
CN109032960B (en) * 2018-06-29 2023-10-10 北京中电华大电子设计有限责任公司 Dynamic allocation method of smart card RAM and storage device of data structure
CN111800824A (en) * 2020-05-28 2020-10-20 上海诺行信息技术有限公司 Data transmission system of intelligent instrument, driving interface packaging device and method

Also Published As

Publication number Publication date
CN106127092B (en) 2018-08-28

Similar Documents

Publication Publication Date Title
CN108763099A (en) Startup method, apparatus, electronic equipment and the storage medium of system
CN100489782C (en) Virtual machine system and accessing control method of hardware equipment
CN109558211A (en) The method for protecting the interaction integrality and confidentiality of trusted application and common application
CN103885833B (en) A kind of method for managing resource and system
CN110073646A (en) Safe IoT equipment updates
CN103970563B (en) The method of dynamic load Android class
CN102073520A (en) Dynamic management system and method for C++ application program version
CN101819538A (en) The requests of operating systems in virtual machine is carried out in management
CN101739289B (en) Method and device for setting display mode in Linux virtual machine
CN104380256A (en) Method, system and executable piece of code for virtualisation of hardware resource associated with computer system
CN102385523A (en) Method for installing and managing driver of cloud operating system
US7182250B2 (en) Computing device with an embedded microprocessor or micro-controller
CN106127092A (en) The smart card of a kind of COS system application stripping and method of work thereof
CN107077379A (en) A kind of virtual machine creation method and device
CN106357791A (en) Method, device and system for processing services
CN101706788B (en) Cross-area access method for embedded file system
CN107391272A (en) The method and terminal of multi-process data interaction
CN104298474A (en) External connection computing device acceleration method and device for implementing method on the basis of server side and external cache system
CN100481006C (en) Intelligent card platform redevelopment method and system
WO2022165771A1 (en) Virtual electronic card management method and system, security chip, terminal, and storage medium
CN104714792A (en) Multi-process shared data processing method and device
US8844827B2 (en) Chip card, and method for the software-based modification of a chip card
CN109408226A (en) Data processing method, device and terminal device
US9569241B2 (en) Sharing devices assigned to virtual machines using runtime exclusion
CN101436162A (en) Method and system for implementing memory multiuser management

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