CN101621861A - Method and device for processing command with telecommunication intelligent application card - Google Patents

Method and device for processing command with telecommunication intelligent application card Download PDF

Info

Publication number
CN101621861A
CN101621861A CN200910090380A CN200910090380A CN101621861A CN 101621861 A CN101621861 A CN 101621861A CN 200910090380 A CN200910090380 A CN 200910090380A CN 200910090380 A CN200910090380 A CN 200910090380A CN 101621861 A CN101621861 A CN 101621861A
Authority
CN
China
Prior art keywords
instruction
envelope
intelligent application
application card
buffer memory
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
CN200910090380A
Other languages
Chinese (zh)
Other versions
CN101621861B (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 Co 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 CN2009100903801A priority Critical patent/CN101621861B/en
Publication of CN101621861A publication Critical patent/CN101621861A/en
Application granted granted Critical
Publication of CN101621861B publication Critical patent/CN101621861B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention discloses a method for processing a command with a telecommunication intelligent application card, which is used for processing a data command received under a busy state. The method comprises the following steps: the telecommunication intelligent application card receives and executes a Fetch command and enters a busy state; the telecommunication intelligent application card receives an Envelope command transmitted by a terminal under the busy state; and the telecommunication intelligent application card processes the Envelope command. The invention also discloses an device for realizing the method.

Description

A kind of method of processing command with telecommunication intelligent application card and device
Technical field
The present invention relates to the computer and the communications field, particularly relate to the method and the device of processing command with telecommunication intelligent application card.
Background technology
(SIM Application Toolkit is at global system for mobile communications (Global System for Mobile communication, the application menu of developing in the high-capacity SIM card that GSM) uses on the mobile phone STK) to the subscriber identification module developing instrument.The STK technology is mainly used in fields such as Mobile banking, stock exchange, foreign exchange trading, financing secretary.Card with STK function is called the STK card.The STK card is the same with original SIM card, can use on common GSM mobile handset.Different is that the STK card is the smart card of a new generation, has very high memory space.
In the active command interaction process of STK card and terminal, the STK cartoon is crossed to carry out and is got (Fetch) instruction and will need the active order notice terminal carried out, and terminal is by the execution result of terminal response (TerminalResponse) instruction notification STK card to active order.Fetch instruction and TerminalResponse instruction are to occur in pairs.After STK is stuck in and carries out the Fetch instruction, and before terminal was returned the TerminalResponse instruction, the STK card was in busy condition; Receive TerminalResponse that terminal is returned instruction and identify the TerminalResponse instruction do not trigger new Fetch after, the STK card is in idle condition.
STK is stuck in encapsulation (Envelope) instruction that may receive when being in busy condition that terminal sends, and terminal sends data by this instruction to the STK card.Still do not have at present STK and be stuck in and be under the busy condition the processing scheme of Envelope instruction, a kind of possible processing mode is to abandon this instruction, then may cause loss of data, influences business realizing.
Summary of the invention
The embodiment of the invention provides a kind of method and device of processing command with telecommunication intelligent application card, is used for realization and handles receive data command under busy condition.
A kind of method of processing command with telecommunication intelligent application card may further comprise the steps:
Telecommunication intelligent application card enters busy condition after receiving and carry out and getting the Fetch instruction;
Telecommunication intelligent application card is received the encapsulation Envelope instruction that terminal sends under busy condition;
Telecommunication intelligent application card instructs to Envelope and handles.
A kind of telecommunication intelligent application card comprises:
Interface module is used for receiving and gets the Fetch instruction, and receives the encapsulation Envelope instruction that terminal sends under busy condition;
Block of state is used for entering busy condition after interface module receives the Fetch instruction;
Processing module, be used to carry out Fetch instruction and to Envelope instruction handle.
Telecommunication intelligent application card is handled the Envelope instruction of receiving when the busy condition in the embodiment of the invention, rather than abandons, and has reduced loss of data, helps professional realization.
Description of drawings
Fig. 1 is the main flow chart of the method for processing command with telecommunication intelligent application card in the embodiment of the invention;
Fig. 2 is a method flow diagram of directly handling the Envelope instruction in the embodiment of the invention under busy condition;
Fig. 3 is the method flow diagram that first buffer memory Envelope instruction is handled again in the embodiment of the invention;
Fig. 4 is the primary structure figure of telecommunication intelligent application card in the embodiment of the invention;
Fig. 5, Fig. 6 are the detailed structure view of telecommunication intelligent application card in the embodiment of the invention.
Embodiment
Telecommunication intelligent application card is handled the Envelope instruction of receiving when the busy condition in the embodiment of the invention, rather than abandons, and has reduced loss of data, helps professional realization.
Telecommunication intelligent application card in the embodiment of the invention comprise STK general SIM application toolkit (USAT) wireless the Internet browser (WIB) card etc., promptly comprise STK USAT the card used of WIB.
Referring to Fig. 1, the main realization flow of the method for processing command with telecommunication intelligent application card is as follows in the present embodiment:
Step 101: telecommunication intelligent application card enters busy condition after receiving and carry out and getting the Fetch instruction.
Step 102: telecommunication intelligent application card is received the encapsulation Envelope instruction that terminal sends under busy condition.
Step 103: telecommunication intelligent application card instructs to Envelope and handles.
Be that example describes with the STK card below.
The processing mode that the STK card instructs to Envelope has multiple, directly handles the Envelope instruction under in busy condition; Perhaps, under busy condition,, when idle condition, handle the Envelope instruction more earlier with the Envelope Instructions Cache.Introduce in detail respectively at this dual mode below.
Referring to Fig. 2, the method flow of directly handling the Envelope instruction in the present embodiment under busy condition is as follows:
The Fetch instruction is received and is carried out in step 201:STK clamping.
Step 202:STK card flag state is labeled as busy condition.
Step 203:STK card is received the Envelope instruction and is handled immediately.This mode additionally takies buffer memory hardly.
Step 204:STK is stuck in to handle and triggers new Fetch instruction in the Envelope instruction process.
Step 205:STK card interrupts a Fetch instruction, and sends the Fetch instruction.
Step 206:STK card is received the TerminalResponse instruction and is handled.After the STK card was handled the TerminalResponse instruction and identified the TerminalResponse instruction and do not trigger new Fetch instruction, the processing that is equivalent to the Envelope instruction finished.Because be the new Fetch instruction of Envelope instruction triggers, the Fetch instruction occurs in pairs with the TerminalResponse instruction, and the TerminalResponse instruction does not trigger new Fetch instruction again, and the processing that therefore is equivalent to the Envelope instruction finishes.
Referring to Fig. 3, the method flow that first buffer memory Envelope instruction is handled again in the present embodiment is as follows:
Set up the cache file that is used for buffer memory Envelope instruction in advance.
Step 301:STK card is carried out the Fetch instruction, and flag state is labeled as busy condition.
Step 302:STK card is received the TerminalResponse instruction and is identified the TerminalResponse instruction when not triggering new Fetch instruction, the update mode mark.The update mode mark is specially the removing busy condition, or update mode is labeled as idle condition.And continuation step 303.
Step 303:STK card judges that buffer memory marks whether mark, if, then continue step 308, otherwise process ends.
Step 304:STK card is received the Envelope instruction.This step may be carried out after step 301, also may carry out this step under the situation of execution in step 301 not.
Step 305:STK card judges whether status indication is busy condition, if then continue step 306, otherwise continue step 307.
Step 306:STK card with the Envelope Instructions Cache to cache file, and tag cache mark.And the execution of waiting step 302.The buffer memory mark can have multiple, is labeled as 0 as buffer memory and represents not buffer memory Envelope instruction, and buffer memory is labeled as the Envelope instruction that 1 expression has buffer memory, is indifferent to the quantity of the Envelope instruction of buffer memory.When handling an Envelope instruction, need to check whether cache file has the Envelope instruction of buffer memory, if having, then the buffer memory mark still is 1.Perhaps, buffer memory is labeled as 0 and represents not buffer memory Envelope instruction, Envelope instruction that buffer memory has been labeled as 1 expression buffer memory, it is the Envelope instruction number that the buffer memory mark is also represented buffer memory, Envelope instruction of every buffer memory need add 1 with the buffer memory mark, and whenever handling an Envelope instruction need subtract 1 with the buffer memory mark.
Step 307:STK card is handled the Envelope instruction, and upgrades the buffer memory mark.Continue step 303.
Step 308: from cache file, read Envelope instruction and processing, and upgrade the buffer memory mark and this Envelope instruction of deletion from cache file.Continue step 303.
In step 306, multiple implementation is arranged, as first kind of mode: the only nearest Envelope instruction of buffer memory of STK card, all use the Envelope instruction that receives recently to cover the last Envelope that receives at every turn and instruct.The STK card can only read out nearest Envelope instruction and handle from cache file, this mode has been saved spatial cache, and the STK card can be handled nearest Envelope instruction, that is to say and has handled the last business of using of user, has guaranteed business realizing.Be stuck in many Envelope instructions of receiving under the busy condition as the second way: STK and all be cached to cache file, can be according to the precedence buffer memory that receives.After entering idle condition, the STK card reads the Envelope instruction according to the precedence of buffer memory and handles from buffer memory, and perhaps the STK card reads the Envelope instruction according to the backward order of buffer memory and handles from buffer memory.This mode needs more spatial cache, but can handle all Envelope instructions, to realize all business.
STK is stuck in init state mark and buffer memory mark in the reset operation, is about to status indication and buffer memory mark and reverts to initial setting up, as know status indication or status indication is made as idle condition, as the buffer memory mark is made as 0.
More than introduced the implementation procedure of STK card processing command, this STK card and existing STK are stuck in function and all have any different in the internal structure aspect, below STK is sticked into row introduction.
Referring to Fig. 4, telecommunication intelligent application card comprises in the present embodiment: interface module 401, block of state 402 and processing module 403.
Interface module 401 is used for carrying out alternately with terminal, and Fetch instructs as receiving, the TerminalResponse instruction, and receives the encapsulation Envelope instruction that terminal sends under busy condition.
Block of state 402 is used for the update mode mark and init state mark etc. when resetting, and enters busy condition after receiving the Fetch instruction in interface module 401, and promptly update mode is labeled as busy condition.
Processing module 403 is used to generate various instructions and handles various instructions, handles as Envelope is instructed.Processing module 403 can be under busy condition to Envelope instruction handle.If when processing module 403 is handled the Envelope instruction and triggered new Fetch instruction under busy condition, interrupt a Fetch instruction, and handle this new Fetch instruction.
Telecommunication intelligent application card also comprises: cache module 404, and referring to shown in Figure 5.Cache module 404 comprises cache file, is used for buffer memory Envelope instruction, and upgrades buffer status (being the buffer memory mark) and initialization buffer memory mark etc. when resetting.Block of state 402 is handled the TerminalResponse instruction and is identified in processing module 403 and enters idle condition after the TerminalResponse instruction does not trigger new Fetch instruction.Processing module 403 reads Envelope instruction and handles from cache module 404, perhaps cache module 404 sends to processing module 403 with the Envelope instruction and handles.
Interface module 401 may successively be received many Envelope instructions that terminal sends under busy condition.Cache module 404 can instruct by an Envelope that buffer memory the last time receives, and instructs with the last Envelope that receives before of this Envelope instruction covering; Perhaps, cache module 404 is by receiving described many Envelope instruction of order buffer memory.When cache module 404 instructs by described many Envelope of reception order buffer memory, processing module 403 reads the Envelope instruction according to the precedence of buffer memory and handles from cache module 404, perhaps processing module 403 reads the Envelope instruction according to the backward order of buffer memory and handles from cache module 404.Cache module 404 all upgrades the buffer memory mark after buffer memory Envelope instruction or processing module 403 read the Envelope instruction.
Telecommunication intelligent application card also comprises control module 405, be used to judge buffer memory mark and status indication, and trigger cache module 404 and upgrade the buffer memory mark and trigger block of state 402 update mode marks, and trigger processing module 403 and from cache module 404, read Envelope instruction etc.Control module 405 can be referring to Fig. 5 or shown in Figure 6 with the annexation of other module.
Be used to realize that the software of the embodiment of the invention can be stored in storage mediums such as floppy disk, hard disk, CD and flash memory.
The STK card is handled the Envelope instruction of receiving when the busy condition in the embodiment of the invention, rather than abandons, and has reduced loss of data, helps professional realization.And the embodiment of the invention is handled the technical scheme that Envelope instructs after providing and having handled Envelope instruction and buffer memory immediately again, and its advantage is respectively arranged, and is applicable to plurality of application scenes,
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (18)

1, a kind of method of processing command with telecommunication intelligent application card is characterized in that, may further comprise the steps:
Telecommunication intelligent application card enters busy condition after receiving and carry out and getting the Fetch instruction;
Telecommunication intelligent application card is received the encapsulation Envelope instruction that terminal sends under busy condition;
Telecommunication intelligent application card instructs to Envelope and handles.
2, the method for claim 1 is characterized in that, the step that telecommunication intelligent application card is handled Envelope instruction comprises: telecommunication intelligent application card under busy condition to Envelope instruction handle; Perhaps telecommunication intelligent application card buffer memory Envelope instruction under busy condition.
3, method as claimed in claim 2 is characterized in that, when telecommunication intelligent application card is handled the Envelope instruction and triggered new Fetch instruction under busy condition, interrupts a Fetch instruction, and handles this new Fetch instruction.
4, method as claimed in claim 2, it is characterized in that, telecommunication intelligent application card is under busy condition after the buffer memory Envelope instruction, further enter idle condition after the TerminalResponse instruction does not trigger new Fetch instruction receiving the terminal response TerminalResponse instruction that terminal sends and identify, and from buffer memory, read the Envelope instruction and handle.
5, method as claimed in claim 4, it is characterized in that telecommunication intelligent application card receives that under busy condition the step of the encapsulation Envelope instruction that terminal sends comprises: telecommunication intelligent application card is successively received many Envelope instructions that terminal sends under busy condition.
6, method as claimed in claim 5, it is characterized in that, the step of telecommunication intelligent application card buffer memory Envelope instruction comprises: the Envelope that telecommunication intelligent application card buffer memory the last time receives instructs, and instructs with the Envelope that receives before this Envelope instruction covering the last time; Perhaps, telecommunication intelligent application card is by receiving described many Envelope instruction of order buffer memory.
7, method as claimed in claim 6, it is characterized in that, when telecommunication intelligent application card instructs by described many Envelope of reception order buffer memory, telecommunication intelligent application card reads Envelope instruction from buffer memory and the step handled comprises: telecommunication intelligent application card reads the Envelope instruction according to the precedence of buffer memory and handles from buffer memory, and perhaps telecommunication intelligent application card reads the Envelope instruction according to the backward order of buffer memory and handles from buffer memory.
8, method as claimed in claim 4 is characterized in that, telecommunication intelligent application card buffer memory Envelope when instruction under busy condition, upgrades the buffer memory mark;
When telecommunication intelligent application card enters idle condition, the update mode mark;
Telecommunication intelligent application card reads Envelope instruction and handles from buffer memory before, whether the Envelope instruction of buffer memory is arranged by the buffer memory marker for judgment.
9, method as claimed in claim 8 is characterized in that, telecommunication intelligent application card carries out initialization buffer memory mark in the reset operation.
10, the method for claim 1 is characterized in that, when telecommunication intelligent application card enters busy condition, status indication is updated to busy condition.
11, method as claimed in claim 10 is characterized in that, telecommunication intelligent application card carries out init state mark in the reset operation.
12, a kind of telecommunication intelligent application card is characterized in that, comprising:
Interface module is used for receiving and gets the Fetch instruction, and receives the encapsulation Envelope instruction that terminal sends under busy condition;
Block of state is used for entering busy condition after interface module receives the Fetch instruction;
Processing module, be used to carry out Fetch instruction and to Envelope instruction handle.
13, telecommunication intelligent application card as claimed in claim 12 is characterized in that, processing module is handled Envelope instruction under busy condition;
Telecommunication intelligent application card also comprises: cache module is used for buffer memory Envelope instruction.
14, telecommunication intelligent application card as claimed in claim 13 is characterized in that, when processing module is handled the Envelope instruction and triggered new Fetch instruction under busy condition, interrupts a Fetch instruction, and handles this new Fetch instruction.
15, telecommunication intelligent application card as claimed in claim 13, it is characterized in that block of state has been handled the terminal response TerminalResponse instruction of terminal transmission and identified in processing module and entered idle condition after the TerminalResponse instruction does not trigger new Fetch instruction;
Processing module reads the Envelope instruction and handles from cache module.
16, telecommunication intelligent application card as claimed in claim 15 is characterized in that, interface module is successively received many Envelope instructions that terminal sends under busy condition.
17, telecommunication intelligent application card as claimed in claim 16 is characterized in that, the Envelope that cache module buffer memory the last time receives instructs, and instructs with the last Envelope that receives before of this Envelope instruction covering; Perhaps, cache module is by receiving described many Envelope instruction of order buffer memory.
18, telecommunication intelligent application card as claimed in claim 17, it is characterized in that, when cache module instructs by described many Envelope of reception order buffer memory, processing module reads the Envelope instruction according to the precedence of buffer memory and handles from cache module, perhaps processing module reads the Envelope instruction according to the backward order of buffer memory and handles from cache module.
CN2009100903801A 2009-08-07 2009-08-07 Method and device for processing command with telecommunication intelligent application card Expired - Fee Related CN101621861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100903801A CN101621861B (en) 2009-08-07 2009-08-07 Method and device for processing command with telecommunication intelligent application card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100903801A CN101621861B (en) 2009-08-07 2009-08-07 Method and device for processing command with telecommunication intelligent application card

Publications (2)

Publication Number Publication Date
CN101621861A true CN101621861A (en) 2010-01-06
CN101621861B CN101621861B (en) 2011-11-30

Family

ID=41514824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100903801A Expired - Fee Related CN101621861B (en) 2009-08-07 2009-08-07 Method and device for processing command with telecommunication intelligent application card

Country Status (1)

Country Link
CN (1) CN101621861B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004629A (en) * 2010-11-23 2011-04-06 北京握奇数据系统有限公司 Method, device and paster card for forwarding control
CN102056108A (en) * 2010-12-09 2011-05-11 北京握奇数据系统有限公司 Short message cache method and device and telecommunication smart card
CN102143608A (en) * 2010-12-29 2011-08-03 北京握奇数据系统有限公司 Start card and instruction processing method thereof
CN102147721A (en) * 2011-01-26 2011-08-10 北京握奇数据系统有限公司 Method for processing instruction in busy state, and smart card

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6044392A (en) * 1997-08-04 2000-03-28 Motorola, Inc. Method and apparatus for performing rounding in a data processor
CN101400164B (en) * 2007-09-29 2013-01-16 锐迪科微电子(上海)有限公司 Smart card, system and method for realizing deployment customized service
CN101448228B (en) * 2008-12-24 2010-09-15 陈鹰 Method for starting satellite tool kit (STK) service of subscriber identification module

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004629A (en) * 2010-11-23 2011-04-06 北京握奇数据系统有限公司 Method, device and paster card for forwarding control
CN102056108A (en) * 2010-12-09 2011-05-11 北京握奇数据系统有限公司 Short message cache method and device and telecommunication smart card
CN102056108B (en) * 2010-12-09 2013-06-05 北京握奇数据系统有限公司 Short message cache method and device and telecommunication smart card
CN102143608A (en) * 2010-12-29 2011-08-03 北京握奇数据系统有限公司 Start card and instruction processing method thereof
CN102143608B (en) * 2010-12-29 2014-04-23 北京握奇数据系统有限公司 Start card and instruction processing method thereof
CN102147721A (en) * 2011-01-26 2011-08-10 北京握奇数据系统有限公司 Method for processing instruction in busy state, and smart card
CN102147721B (en) * 2011-01-26 2014-03-26 北京握奇数据系统有限公司 Method for processing instruction in busy state, and smart card

Also Published As

Publication number Publication date
CN101621861B (en) 2011-11-30

Similar Documents

Publication Publication Date Title
CN102087615B (en) Messages merger method and system in message queue
US6097967A (en) Method of downloading a predetermined list of items into a mobile terminal controlled by a subscriber identity module, and a command, a subscriber identity module, and a mobile terminal corresponding to the method
CN110049113A (en) Service message processing method and device
CN112671760A (en) Socket-based client cross-platform network communication method and related equipment thereof
CN101621861B (en) Method and device for processing command with telecommunication intelligent application card
CN114727275B (en) Method and related device for processing active command
JP5011738B2 (en) IC card, program
KR100566975B1 (en) remote function changing system of the cellular-phone and controlling method therefore
CN103268262A (en) Method for multiple basebands to access single-user identification card, and processor
CN113518341B (en) eSIM code number management method and device
KR102037556B1 (en) Method and device for upgrading telephone number in wireless terminal self-adaptive network upgrade
US7778660B2 (en) Mobile communications terminal, information transmitting system and information receiving method
EP1773079A1 (en) Device and method for providing a multiple access to a SIM card in a mobile terminal
CN112887958A (en) Data storage method, storage medium and terminal equipment
CN108874560B (en) Method and communication device for communication
CN112231290A (en) Method, device and equipment for processing local log and storage medium
CN101256616A (en) Method for executing command of management electric token
US20210409074A1 (en) Fast nfc processing
CN108737670B (en) Method and apparatus for controlling incoming call forwarding at a communication terminal
US8473007B2 (en) IC card that discards proactive command at predetermined timing and resumes transmission of proactive command after initialization
CN202759505U (en) Intelligent mobile terminal having encryption and destruct functions
CN107038038B (en) Method for operating large-capacity USIM applet
CN100452893C (en) System and method for realizing value-added business based on user identification module
JP4967543B2 (en) Information recording medium, information recording medium application execution method and program
US7222164B1 (en) Device and method to load commands in an integrated circuit card

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Hao Jianmei

Inventor after: Jia Zhenbo

Inventor after: Lu Ruyi

Inventor after: Huang Haidong

Inventor after: Wang Youjun

Inventor before: Hao Jianmei

Inventor before: Jia Zhenbo

Inventor before: Lu Ruyi

Inventor before: Huang Haidong

CB03 Change of inventor or designer information
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 Co.,Ltd.

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

Patentee before: BEIJING WATCH DATA SYSTEM Co.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111130

Termination date: 20210807

CF01 Termination of patent right due to non-payment of annual fee