CN101119561A - Method for communication between GSM mobile communication terminal and SIM card - Google Patents

Method for communication between GSM mobile communication terminal and SIM card Download PDF

Info

Publication number
CN101119561A
CN101119561A CNA2007101309968A CN200710130996A CN101119561A CN 101119561 A CN101119561 A CN 101119561A CN A2007101309968 A CNA2007101309968 A CN A2007101309968A CN 200710130996 A CN200710130996 A CN 200710130996A CN 101119561 A CN101119561 A CN 101119561A
Authority
CN
China
Prior art keywords
sim
data
gsm mobile
mobile communication
communication terminal
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.)
Pending
Application number
CNA2007101309968A
Other languages
Chinese (zh)
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.)
Great Friend Technology (nanjing) Co Ltd
Original Assignee
Great Friend Technology (nanjing) 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 Great Friend Technology (nanjing) Co Ltd filed Critical Great Friend Technology (nanjing) Co Ltd
Priority to CNA2007101309968A priority Critical patent/CN101119561A/en
Publication of CN101119561A publication Critical patent/CN101119561A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses a communication method between the GSM mobile communication terminal and the SIM card. The method comprises the steps as follows: identify a virtual file in the SIM card, so that the data is written into the virtual file when the GSM mobile communication terminal needs to send data to the SIM card, and then the data is transmitted to the SIM-ME communication module, and the data is again transmitted by the SIM-ME communication module to the specific SIM appliance, finally is disposed by the SIM appliance; the SIM appliance sends the data to the SIM-ME communication module when needs to send data to the GSM mobile communication terminal, and the data is temporarily deposited by the SIM-ME communication module inside the memory; the GSM mobile communication terminal conducts reading operation to the virtual file regularly; the reading operation is processed by the SIM-ME communication module; if data exists inside the cache, then the SIM-ME module feedbacks to the GSM mobile communication terminal software by taking the data inside cache as the result of the reading operation; or the SIM-ME communication module; if data exists inside the cache, then the SIM-ME module feedbacks special error code to the GSM mobile communication terminal software.

Description

Communication means between GSM mobile communication terminal and the SIM card
Technical field
The invention belongs to embedded system technology research and development field, relate in particular to GSM mobile communication terminal and SIM card.
Background technology
SIM card and STK technology
SIM card is a kind of special smart card, is mainly used in authentication in gsm system.
Owing in the SIM card CPU and internal memory are arranged, therefore also can move other program in SIM card realizes extra function.This program that operates in the card is called SIM card and uses.
Different with some other embedded system (as mobile phone) with PC is that SIM card is except the ISO7816 interface, and is mutual without any alternate manner and outside.Therefore SIM card is used, and must could carry out alternately with extraneous (as user, the Internet) by mobile phone.This interactive standards between mobile phone and SIM use is exactly STK.
But the shortcoming of STK also clearly, and such as the demonstration control in terminal, aspects such as keyboard, loud speaker control are all very weak, and this has just limited the exploitation of using on the SIM card.
Along with the rise of large-capacity memory card of new generation, the SIM card application need is realized more complicated function, abundanter user interface, and this all needs the support of the software kit of mobile phone end.And the application of the unpromising this a new generation of standards such as existing ISO7816, STK provides support.
The expansion of ISO7816, STK agreement
ISO7816 and STK consensus standard have all been considered the development of WeiLai Technology, promptly provide certain mechanism to expand.For example, in the ISO7816 agreement, can realize new function by the mode that increases command code.But this expansion must could be adopted by mobile phone manufacturer by the passing through of normal structures such as ISO; And this needs the very long time, can't satisfy the requirement in vertiginous market.
Other actual restraining factors
SIM use with cell phone software between communicate by letter, also have some other technical restraining factors.In existing mobile phone hardware framework, SIM card physically directly is not connected with application processor, but is connected to baseband processor.
Between baseband processor and the SIM card processor, carry out alternately according to the ISO7816 agreement.Operate in the cell phone software on the application processor, come indirect mutual with SIM card by send special AT instruction to baseband processor.Therefore the restriction that is subjected to baseband processor alternately of cell phone software and SIM card application.For example, a lot of baseband processor do not allow the instruction outside SIM card transmission standard agreement.
This just causes expanding voluntarily the problem that there is very big compatibility in methods such as ISO7816 instruction.
Summary of the invention
In order to solve the above problems, the invention provides the extended mode of the file read-write operation of the measured ISO78 16 of a cover, communicating by letter between realizing mobile phone (GSM mobile communication terminal) application and SIM card being used.
The solution of the present invention does not need to increase the instruction of ISO7816 (or STK) agreement, and the standard of therefore need not waiting for is by going enforcement later on again.
On the other hand, by utilizing the most basic file read-write operational order, the scheme that can guarantee can be implemented in most cell phone systems.
Technical scheme of the present invention is: the communication means between a kind of GSM mobile communication terminal and the SIM card.This method is not subjected to the restriction of existing international standard and actual hardware environment, can realize the data interaction between mobile phone application and the SIM card application, thereby can realize various types of SIM card application easily.
Concrete scheme is as follows:
In 7816 standards, portable terminal is exactly a file read-write to one of the most basic operation of SIM card.In common SIM card, these file storage are in the nonvolatile storage of SIM card.
Our method is by revising the software (participating in accompanying drawing 1) in the SIM card, special virtual file of definition in SIM card, this file not actual storage in the storage area of SIM card.
The same with ordinary file, portable terminal can carry out read-write operation to this virtual file.But the data content of these read-write operations is not written into nonvolatile storage, but is handled by the special software module on the SIM card (SIM-ME communication module).
When portable terminal need be used the transmission data to SIM card, at first send select File instruction (SELECT instruction), virtual file is chosen as the file that to read and write.Then, portable terminal sends the written document instruction.Write command is received and handles by the ISO7816 command processing module on the SIM card.The ISO7816 command processing module judges that current what choose is ordinary file or virtual file.If ordinary file then writes the data division in the write command in the nonvolatile storage; Otherwise write command is forwarded to the SIM-ME communication module.SIM-ME communication module analysis instruction content passes to data division concrete SIM again and uses, and should be used for handling by SIM.
When the SIM application need sends data to cell phone software, send it to the SIM-ME communication module, the SIM-ME communication module is buffered in it in internal memory.
Use the data of sending in order to obtain SIM, portable terminal carries out read operation with regular to virtual file.Read operation is handled by the SIM-ME communication module.If have data in the buffer memory, then the SIM-ME module returns to cell phone software with data in buffer as the result of read operation.Otherwise, return special error code.
Description of drawings
Fig. 1 is system construction drawing of the present invention and handling process.
Fig. 2 is data nested structure figure of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is done explanation in further detail.
The concrete enforcement of method relates generally to three aspects:
1) to the definition of the ISO7816 read write command of virtual file.
2) to the modification of former ISO7816 handling process.
3) to the processing of virtual file read write command.
Be described below for example respectively:
As shown in Figure 1 and Figure 2, wherein, Fig. 1 is system construction drawing of the present invention and handling process; Fig. 2 is data nested structure figure of the present invention.
1) file read-write command format
The identifier of agreement virtual file is 0xXXXX (XXXX represents a certain value).When the Select command selection during this document identifier, the implication of Read Binary thereafter and UpdateBinary order will change, and be not reading and writing of files, but the transmission data be fast.
Update Binary order
For virtual file, this order implication information is as follows, and it is applicable to that virtual file is current and is chosen by the Select order.
-functional description: this order allows ME to send data to SSC;
-service condition and safety: virtual file (identifier 0xXXXX) is current to be chosen by the Select order;
-input: the data length that writes;
-output:
-command description:
Order CLA INS P1 P2 P3
UPDATE B INARY A0 D6 00 00 lgth
Command parameter/data:
Byte Describe Length
1-lgth ME sends to the data block of SIM card lgth
Read Binary order
-functional description: this order allows ME to read SSC need be to the data of ME transmission;
-service condition and safety: virtual file (identifier 0xXXXX) is current to be chosen by the Select order;
-input: the length that needs reading of data;
-output: byte serial;
-command description:
Order CLA INS P1 P2 P3
READ BINARY A0 B0 00 00 lgth
Parameter/the data of response:
Byte Describe Length
1-lgth SIM card returns to the data block of ME lgth
2) modification of ISO7816 command processing module
In general SIM card, a software module is all arranged, finish process of commands to ISO7816.In order to realize the described method of this patent, need change on a small quantity this module.Changing content mainly is:
Preceding in processing file read-write instruction (being UpdateBinary, ReadBinary), judge whether the current top of file of choosing is virtual file.If not, then press ordinary file read-write flow processing, promptly call file system and read and write file on the nonvolatile storage; If then transfer to special SIM-ME communication module.
3) SIM-ME communication module
The SIM-ME communication module mainly is responsible for the data division in the virtual file read write command is handled.For example, in order to realize the tcp/ip communication between ME and the SIM application.Can comprise IP protocol data bag at the data division of read write command.
The SIM-ME communication module after the UpdateBinary instruction of receiving from the ISO7816 command processing module, is taken out the data that comprised in the instruction; Then, the ICP/IP protocol bag in the resolution data, and handle according to the standard of ICP/IP protocol; At last, the data passes that data ICP/IP protocol bag bag is comprised is given and is used.
The SIM-ME communication module after the ReadBinary instruction of receiving from the ISO7816 command processing module, at first checks in the buffering area whether the data that need be transferred to ME are arranged; If have, be the ICP/IP protocol packet then, and the ICP/IP protocol packet be placed in the response of Update Binary instruction and return to ME the packing data in the buffering area; If there are not to pass to the data of ME in the buffering area, then have replying of specific fault sign indicating number, represent not have the data that can read with this.
Though the present invention with preferred embodiment openly as above; but they are not to be used for limiting the present invention; anyly be familiar with this skill person; without departing from the spirit and scope of the invention; from when can doing various variations or retouching, so being as the criterion of should being defined with the application's claim protection range of protection scope of the present invention.

Claims (2)

1. the communication means between GSM mobile communication terminal and the SIM card,
Virtual file of definition to the read-write operation of this file, is handled by the special software module SIM-ME communication module on the SIM card in SIM card;
When the GSM mobile communication terminal need be used the transmission data to SIM card, just these data are write the virtual file in the SIM card, these data are transferred to the SIM-ME communication module, and the SIM-ME communication module passes to it concrete SIM again and uses, and should be used for handling by SIM;
When the SIM application need sends data to the GSM mobile communication terminal, send it to the SIM-ME communication module, the SIM-ME communication module is buffered in it in internal memory;
Use the data of sending in order to obtain SIM, the GSM mobile communication terminal carries out read operation with regular to virtual file, read operation is handled by the SIM-ME communication module, if have data in the buffer memory, then the SIM-ME module returns to GSM mobile communication terminal software with data in buffer as the result of read operation, otherwise, return special error code.
2. the communication means between GSM mobile communication terminal according to claim 1 and the SIM card is characterized in that,
When the GSM mobile communication terminal need be used the transmission data to SIM card, at first send select File instruction SELECT instruction, virtual file is chosen as the file that to read and write, then, the GSM mobile communication terminal sends the written document instruction, and write command is received and handles by the ISO7816 command processing module on the SIM card, and the ISO7816 command processing module judges that current what choose is ordinary file or virtual file, if ordinary file then writes the data division in the write command in the nonvolatile storage; Otherwise write command is forwarded to the SIM-ME communication module, and SIM-ME communication module analysis instruction content passes to data division concrete SIM again and uses, and should be used for handling by SIM.
CNA2007101309968A 2007-08-28 2007-08-28 Method for communication between GSM mobile communication terminal and SIM card Pending CN101119561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101309968A CN101119561A (en) 2007-08-28 2007-08-28 Method for communication between GSM mobile communication terminal and SIM card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101309968A CN101119561A (en) 2007-08-28 2007-08-28 Method for communication between GSM mobile communication terminal and SIM card

Publications (1)

Publication Number Publication Date
CN101119561A true CN101119561A (en) 2008-02-06

Family

ID=39055447

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101309968A Pending CN101119561A (en) 2007-08-28 2007-08-28 Method for communication between GSM mobile communication terminal and SIM card

Country Status (1)

Country Link
CN (1) CN101119561A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299998A (en) * 2011-09-01 2011-12-28 东信和平智能卡股份有限公司 Method and system for communication between mobile application and smart card
CN106851618A (en) * 2017-02-24 2017-06-13 苏州蜗牛数字科技股份有限公司 A kind of intelligent terminal and method for realizing dynamic virtual usim card
CN108694340A (en) * 2017-04-06 2018-10-23 北京华虹集成电路设计有限责任公司 A kind of method and device of intelligent card data write-in
CN113068177A (en) * 2021-03-23 2021-07-02 中国联合网络通信集团有限公司 Data transmission control method and device and terminal equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299998A (en) * 2011-09-01 2011-12-28 东信和平智能卡股份有限公司 Method and system for communication between mobile application and smart card
CN106851618A (en) * 2017-02-24 2017-06-13 苏州蜗牛数字科技股份有限公司 A kind of intelligent terminal and method for realizing dynamic virtual usim card
CN108694340A (en) * 2017-04-06 2018-10-23 北京华虹集成电路设计有限责任公司 A kind of method and device of intelligent card data write-in
CN113068177A (en) * 2021-03-23 2021-07-02 中国联合网络通信集团有限公司 Data transmission control method and device and terminal equipment
CN113068177B (en) * 2021-03-23 2023-01-10 中国联合网络通信集团有限公司 Data transmission control method and device and terminal equipment

Similar Documents

Publication Publication Date Title
EP2192523B1 (en) Smart sd card and method of accessing the same
CN101326735B (en) Method and equipment for simulating a plurality of RFID label in single mobile electronic apparatus
CN102037499B (en) NFC mobile communication device and NFC reader
CN101321336B (en) High-capacity data interchange method between mobile terminal and smart card
TWI430097B (en) Information processing apparatus, information processing system, method of processing information, and computer program
TWI406130B (en) Data processing system, controller, and method thereof for searching specific memory area
CN111930676A (en) Method, device, system and storage medium for communication among multiple processors
US20070226401A1 (en) Data accessing structure and method for flash memory
WO2008004225A2 (en) Dual channel smart card data storage
CN100476726C (en) Resource limited equipment and data accessing method
CN102065568B (en) Data descriptor-based medium access control (MAC) software and hardware interaction method and hardware realization device
CN100378663C (en) Method, system and module for dynamic downloading of applied programe to user identification
CN101866434A (en) Signal conditioning package, method and program
WO2023056775A1 (en) Method for extending simulation function of nfc card, nfc extension device and nfc terminal
CN101119561A (en) Method for communication between GSM mobile communication terminal and SIM card
CN101620758B (en) Intelligent card supporting Web service
CN102129476B (en) Application of virtual file system by utilizing ZIP compression format
US20110197203A1 (en) Communication device, communication method and program
CN101261611A (en) Peripheral apparatus data-transmission apparatus and transmission method
CN101621861B (en) Method and device for processing command with telecommunication intelligent application card
CN201707662U (en) Embedded type equipment supporting JAVA technology
CN101609392A (en) Serial data transmits allocating method, system and controller thereof
CN101908028A (en) Method and system for realizing input/output (IO) expansion through standard secure digital (SD) memory interface
CN101853216B (en) Data processing system, controller, and method for searching specific memory area thereof
CN114489493B (en) Implementation method for simulating use of high-capacity Flash storage by Mifare class 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080206