CN102299998A - Method and system for communication between mobile application and smart card - Google Patents

Method and system for communication between mobile application and smart card Download PDF

Info

Publication number
CN102299998A
CN102299998A CN2011102567408A CN201110256740A CN102299998A CN 102299998 A CN102299998 A CN 102299998A CN 2011102567408 A CN2011102567408 A CN 2011102567408A CN 201110256740 A CN201110256740 A CN 201110256740A CN 102299998 A CN102299998 A CN 102299998A
Authority
CN
China
Prior art keywords
smart card
short message
mark
data cell
data
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
CN2011102567408A
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.)
Eastcompeace Smart Card Co Ltd
Original Assignee
Eastcompeace Smart Card 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 Eastcompeace Smart Card Co Ltd filed Critical Eastcompeace Smart Card Co Ltd
Priority to CN2011102567408A priority Critical patent/CN102299998A/en
Publication of CN102299998A publication Critical patent/CN102299998A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a method for communication between mobile application and a smart card and a system for implementing the method. The method comprises the following steps that: the mobile application reads a backup short message; the mobile application adds a mark A into application data to form a data unit, encapsulates the data unit into a short message format, and transmits the data unit to the smart card in a way of refreshing the short messaging; the smart card receives a short message refreshing command, and performs short messaging writing processing; the mobile application transmits a short message reading command to the smart card, and after receiving the command, the smart card performs short message reading processing; and the mobile application writes the backup short message back to the smart card. By the method and the system, the communication between the mobile application and the smart card can be realized by utilizing conventional short message reading and writing interfaces between an operating system of a mobile phone and the smart card without arranging any additional interface for operating the smart card; and the method and the system are applied to mobile phones and smart card systems of various types.

Description

The method and system of a kind of application program of mobile phone and smart card communications
Technical field
The present invention relates to terminal Display Technique field, the method for especially a kind of application program of mobile phone and smart card communications and realize the system of this method.
Background technology
At present, the exploitation application relevant with smart card on different mobile phone operating systems realizes that the mode of application program of mobile phone and smart card communications has nothing in common with each other, and all needs to provide the communication interface between mobile phone operating system and the smart card in these methods.But because mobile phone operating system all only provides application developer to read and write the interface of note basically at present, the interface of other operative intelligence cards then seldom provides, perhaps have nothing in common with each other, can not be general, even do not provide, cause communicating by letter between application program of mobile phone and the smart card to be difficult to realize, or implement very inconvenient.
Summary of the invention
In view of this, be necessary, the method for a kind of new application program of mobile phone and smart card communications be provided and realize the system of this method at the problem of mentioning in the background technology.
The present invention is achieved by the following technical solutions:
The method of a kind of application program of mobile phone and smart card communications may further comprise the steps:
S1, application program of mobile phone read n bar short message as message backup from smart card;
S2, application program of mobile phone add that in application data mark A becomes data cell, and this data cell is packaged into short message format, in the mode that refreshes short message this data cell are sent to described smart card again;
S3, described smart card receive the order that refreshes short message, write short message and handle: resolve described data cell, detect whether there is mark A in it; For being, described smart card carries out data processing to the described application data in the described data cell as testing result, and the application data after will handling is packaged into short message C, and mark B is set on described smart card simultaneously;
The order that n bar short message is read in S4, the transmission of described application program of mobile phone is to described smart card, and after described smart card received this order, processing read SMS message: detect whether mark B exists on the described smart card, if yes, then return short message C; If do not exist, then from the short message file of smart card, read n bar short message;
S5, application program of mobile phone will write back described smart card as the n bar short message of message backup.
Among the S3, the described short message of writing is handled, and also comprise: do not have mark A in the data cell as described in as testing result being, described smart card writes the data cell of described short message format in the short message file of smart card.
In described smart card, the data cell of described short message format and the application data that is packaged into short message C after intelligent card in processing, occupied space is the space of described n bar short message.
Described mark A and mark B are respectively an invisible character string.
A kind of application program of mobile phone and smart card communications system comprise application program of mobile phone and smart card, it is characterized in that,
Described application program of mobile phone comprises:
One note read module is used for reading n bar short message as message backup from described smart card, and transmission is read the order of n bar short message to described smart card;
One application data processing module is used for adding that in application data mark A becomes data cell, and this data cell is packaged into short message format, in the mode that refreshes short message this data cell is sent to described smart card again;
One writes short message module, be used for will backup the order of n bar short message write back described smart card;
Described smart card comprises:
Write the short message processing module, be used to resolve described data cell, detect whether there is mark A in it; For being, the described application data in the described data cell is carried out data processing as testing result, and the application data after will handling is packaged into short message C, mark B is set on described smart card simultaneously;
Processing module reads SMS message: be used to detect whether mark B exists on the described smart card, if yes, then return short message C; If do not exist, then from the short message file of smart card, read n bar short message.
The short message module of writing of described smart card comprises the parsing module and first data processing module, and described parsing module is used to resolve described data cell, detects whether there is mark A in it; When described first data processing module is used for having A in testing result is described data cell, described application data in the described data cell is carried out data processing, and the application data after will handling is packaged into short message C, and mark B is set on described smart card simultaneously.
Compared with prior art, the present invention need not increase the interface of operative intelligence card, utilize the interface of the read-write note between existing mobile phone operating system and the smart card, just can realize communicating by letter of application program of mobile phone and smart card, and, solved in the prior art the few or skimble-scamble shortcoming of interface between the mobile phone operating system and smart card applicable to the mobile phone and the smart card system of various models.
Description of drawings
Fig. 1 is the schematic flow sheet of the embodiment of the invention one.
Embodiment
Embodiment one:
Present embodiment provides the method for a kind of application program of mobile phone and smart card communications, and as shown in Figure 1, this method may further comprise the steps:
S1, application program of mobile phone read n bar short message as message backup from smart card;
S2, application program of mobile phone add that in application data mark A becomes data cell, and this data cell is packaged into short message format, in the mode that refreshes short message this data cell are sent to described smart card again;
S3, described smart card receive the order that refreshes short message, write short message and handle: resolve described data cell, detect whether there is mark A in it; For being, described smart card carries out data processing to the described application data in the described data cell as testing result, and the application data after will handling is packaged into short message C, and mark B is set on described smart card simultaneously;
The order that n bar short message is read in S4, the transmission of described application program of mobile phone is to described smart card, and after described smart card received this order, processing read SMS message: detect whether mark B exists on the described smart card, if yes, then return short message C; If do not exist, then from the short message file of smart card, read n bar short message;
S5, application program of mobile phone will write back described smart card as the n bar short message of message backup.
 
Among the S3, the described short message of writing is handled, and also comprise: do not have mark A in the data cell as described in as testing result being, described smart card writes the data cell of described short message format in the short message file of smart card.
In described smart card, the data cell of described short message format and the application data that is packaged into short message C after intelligent card in processing, occupied space is the space of described n bar short message.
Described mark A and mark B are respectively one section special string, are preferably invisible character string.
Embodiment two:
Present embodiment is the system of the method for realization application program of mobile phone of the present invention and smart card communications, and it comprises:
One note read module is used for reading n bar short message as message backup from described smart card, and transmission is read the order of n bar short message to described smart card;
One application data processing module is used for adding that in application data mark A becomes data cell, and this data cell is packaged into short message format, in the mode that refreshes short message this data cell is sent to described smart card again;
One writes short message module, be used for will backup the order of n bar short message write back described smart card;
Described smart card comprises:
Write the short message processing module, be used to resolve described data cell, detect whether there is mark A in it; For being, the described application data in the described data cell is carried out data processing as testing result, and the application data after will handling is packaged into short message C, mark B is set on described smart card simultaneously;
Processing module reads SMS message: be used to detect whether mark B exists on the described smart card, if yes, then return short message C; If do not exist, then from the short message file of smart card, read n bar short message.
The short message module of writing of described smart card comprises the parsing module and first data processing module, and described parsing module is used to resolve described data cell, detects whether there is mark A in it; When described first data processing module is used for having A in testing result is described data cell, described application data in the described data cell is carried out data processing, and the application data after will handling is packaged into short message C, and mark B is set on described smart card simultaneously.
Described mark A and mark B are respectively one section special string, are preferably invisible character string.
Among embodiment one and the embodiment two, described short message format symbol international standard 3GPP TS 03.40 version 7.5.0 Release 1998.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (6)

1. the method for application program of mobile phone and smart card communications is characterized in that, may further comprise the steps:
S1, application program of mobile phone read n bar short message as message backup from smart card;
S2, application program of mobile phone add that in application data mark A becomes data cell, and this data cell is packaged into short message format, in the mode that refreshes short message this data cell are sent to described smart card again;
S3, described smart card receive the order that refreshes short message, write short message and handle: resolve described data cell, detect whether there is mark A in it; For being, described smart card carries out data processing to the described application data in the described data cell as testing result, and the application data after will handling is packaged into short message C, and mark B is set on described smart card simultaneously;
The order that n bar short message is read in S4, the transmission of described application program of mobile phone is to described smart card, and after described smart card received this order, processing read SMS message: detect whether mark B exists on the described smart card, if yes, then return short message C; If do not exist, then from the short message file of smart card, read n bar short message;
S5, application program of mobile phone will write back described smart card as the n bar short message of message backup.
2. method according to claim 1, it is characterized in that among the S3, the described short message of writing is handled, also comprise: do not have mark A in the data cell as described in as testing result being, described smart card writes the data cell of described short message format in the short message file of smart card.
3. method according to claim 2 is characterized in that, in described smart card, and the data cell of described short message format and the application data that is packaged into short message C after intelligent card in processing, occupied space is the space of described n bar short message.
4. method according to claim 1 is characterized in that, described mark A and mark B are respectively an invisible character string.
5. application program of mobile phone and smart card communications system comprise application program of mobile phone and smart card, it is characterized in that,
Described application program of mobile phone comprises:
One note read module is used for reading n bar short message as message backup from described smart card, and transmission is read the order of n bar short message to described smart card;
One application data processing module is used for adding that in application data mark A becomes data cell, and this data cell is packaged into short message format, in the mode that refreshes short message this data cell is sent to described smart card again;
One writes short message module, be used for will backup the order of n bar short message write back described smart card;
Described smart card comprises:
One writes the short message processing module, is used to resolve described data cell, detects whether there is mark A in it; For being, the described application data in the described data cell is carried out data processing as testing result, and the application data after will handling is packaged into short message C, mark B is set on described smart card simultaneously;
One processing module that reads SMS message: be used to detect whether mark B exists on the described smart card, if yes, then return short message C; If do not exist, then from the short message file of smart card, read n bar short message.
6. system according to claim 5 is characterized in that, the short message module of writing of described smart card comprises the parsing module and first data processing module, and described parsing module is used to resolve described data cell, detects whether there is mark A in it; When described first data processing module is used for having A in testing result is described data cell, described application data in the described data cell is carried out data processing, and the application data after will handling is packaged into short message C, and mark B is set on described smart card simultaneously.
CN2011102567408A 2011-09-01 2011-09-01 Method and system for communication between mobile application and smart card Pending CN102299998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102567408A CN102299998A (en) 2011-09-01 2011-09-01 Method and system for communication between mobile application and smart card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102567408A CN102299998A (en) 2011-09-01 2011-09-01 Method and system for communication between mobile application and smart card

Publications (1)

Publication Number Publication Date
CN102299998A true CN102299998A (en) 2011-12-28

Family

ID=45360163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102567408A Pending CN102299998A (en) 2011-09-01 2011-09-01 Method and system for communication between mobile application and smart card

Country Status (1)

Country Link
CN (1) CN102299998A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544173A (en) * 2012-07-13 2014-01-29 国民技术股份有限公司 Command processing method, information interaction method, SIM card and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1333637A (en) * 2000-07-07 2002-01-30 深圳黎明电脑网络有限公司 Method for dynamic obtaining value-added manu of short message of mobile telephone set
EP1530392A1 (en) * 2003-11-04 2005-05-11 Nagracard S.A. Method for managing the security of applications with a security module
CN1774108A (en) * 2004-11-11 2006-05-17 三星电子株式会社 Method for controlling a sub-device of mobile equipment using a sim application toolkit
CN1929654A (en) * 2006-09-13 2007-03-14 北京握奇数据系统有限公司 Information directly interactive method for mobile communication subscriber identification recognition card and supporting apparatus thereof
CN101119561A (en) * 2007-08-28 2008-02-06 伟朋科技(南京)有限公司 Method for communication between GSM mobile communication terminal and SIM card

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1333637A (en) * 2000-07-07 2002-01-30 深圳黎明电脑网络有限公司 Method for dynamic obtaining value-added manu of short message of mobile telephone set
EP1530392A1 (en) * 2003-11-04 2005-05-11 Nagracard S.A. Method for managing the security of applications with a security module
CN1774108A (en) * 2004-11-11 2006-05-17 三星电子株式会社 Method for controlling a sub-device of mobile equipment using a sim application toolkit
CN1929654A (en) * 2006-09-13 2007-03-14 北京握奇数据系统有限公司 Information directly interactive method for mobile communication subscriber identification recognition card and supporting apparatus thereof
CN101119561A (en) * 2007-08-28 2008-02-06 伟朋科技(南京)有限公司 Method for communication between GSM mobile communication terminal and SIM card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544173A (en) * 2012-07-13 2014-01-29 国民技术股份有限公司 Command processing method, information interaction method, SIM card and mobile terminal

Similar Documents

Publication Publication Date Title
US8712325B2 (en) Device, system, and method for logging near field communications tag interactions
CN102422553A (en) A near field communication device
CN102325210A (en) Universal mobile payment terminal compatible with multiple operators and implementation method thereof
CN105592403B (en) NFC-based communication device and method
CN100581275C (en) Information directly interactive method for mobile communication subscriber identification recognition card and supporting apparatus thereof
CN101616415B (en) Information directly-interactive method and support equipment for mobile communication subscriber identification card
CN106358179B (en) Switching circuit and switching method for Subscriber Identity Module (SIM) card
CN103369133A (en) Manufacturing method of contact two-dimensional code name card on intelligent terminal
CN101957921A (en) Display method, device and system of radio frequency identification application information
CN103905625A (en) Method and device for sending electronic business card between mobile terminals
CN101938560A (en) Mobile communication terminal message management method and mobile communication terminal
CN101583204B (en) Method and system for realizing managing universal combined circuit card multiple application files
CN102567081B (en) Based on overall method to set up and the system of multi-process
CN102572113A (en) System and method for extracting contact person information from texts to operate mobile phone
CN102299998A (en) Method and system for communication between mobile application and smart card
CN105635873B (en) NFC Bluetooth headset, system and control method thereof
CN103108070B (en) Telephone book backup system and method thereof
CN101119561A (en) Method for communication between GSM mobile communication terminal and SIM card
CN202394313U (en) Intelligent multimedia POS machine using touch screen in combination with handset card
CN201937708U (en) Built-in subscriber identity module (SIM) card system for mobile phone
CN109151029A (en) Elevator card terminal remote method for maintaining and Related product
CN101256489A (en) System and method for implementing AT command interaction with Apple computer
CN102999265A (en) Intelligent terminal and folder management method thereof
CN203243351U (en) Router possessing near field communication function and near field communication system
CN106060765A (en) Information obtaining method, device and system of intelligent business 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
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 519060 Guangdong province science and Technology Park in Zhuhai Nanping Ping Gong Road No. 8

Applicant after: Eastcompeace Technology Co., Ltd.

Address before: 519060 Guangdong province science and Technology Park in Zhuhai Nanping Ping Gong Road No. 8

Applicant before: Eastcompeace Smart Card Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: EASTCOMPEACE SMART CARD CO., LTD. TO: EASTCOMPEACE TECHNOLOGY CO., LTD.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20111228