CN103716434B - Method and system for data interaction - Google Patents
Method and system for data interaction Download PDFInfo
- Publication number
- CN103716434B CN103716434B CN201310742799.7A CN201310742799A CN103716434B CN 103716434 B CN103716434 B CN 103716434B CN 201310742799 A CN201310742799 A CN 201310742799A CN 103716434 B CN103716434 B CN 103716434B
- Authority
- CN
- China
- Prior art keywords
- record
- data
- smart card
- contact person
- exclusive
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000003993 interaction Effects 0.000 title claims abstract description 16
- 230000002452 interceptive effect Effects 0.000 claims description 9
- 230000006835 compression Effects 0.000 claims description 6
- 238000007906 compression Methods 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 6
- 102000005591 NIMA-Interacting Peptidylprolyl Isomerase Human genes 0.000 description 3
- 108010059419 NIMA-Interacting Peptidylprolyl Isomerase Proteins 0.000 description 3
- 102000007315 Telomeric Repeat Binding Protein 1 Human genes 0.000 description 3
- 108010033711 Telomeric Repeat Binding Protein 1 Proteins 0.000 description 3
- 230000005611 electricity Effects 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
Landscapes
- Telephone Function (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method for data interaction. The method comprises the steps that intelligent card exclusive data are expressed as one or more contact person records through a mobile terminal, and the records are written into a phone number directory of the intelligent card one by one; the intelligent card can regroup and analyze the contact person records when detecting that the contact record carrying the intelligent card exclusive data is added to the phone number directory, and stores the contact records as a corresponding file if complete intelligent card exclusive data are obtained. According to the method, the phone number directory on an SIM card can be used as a data interaction channel to achieve data interaction between the mobile terminal application and the SIM card. The invention further discloses a data interaction system.
Description
Technical field
The present invention relates to mobile terminal and field of intelligent cards, more particularly to a kind of data interactive method and system.
Background technology
SIM writes and snaps past journey and generally require to write personal data toward SIM, wherein, personal data such as, is authenticated close
Key(Key identifier, KI), Personal Identity Number 1(Personal Identification Number1, PIN1),
Personal Identity Number 2(Personal Identification Number2, PIN2), PIN code PUK 1(PIN
Unblocking Key1, PUK1), PIN code PUK 2(PIN Unblocking Key2, PUK2), international mobile subscriber identification
Code(International Mobile Subscriber Identification Number, IMSI), integrated circuit card identification
Code(Integrate circuit card identity, ICCID), Short Message Service parameter(Short Message
Service Parameters, SMSP).
With being continuously increased for Smartphone device, using Smartphone device carry out SIM write card demand it is more and more.
But at present due to the security restriction of mobile phone operating system, the third party APP on smart mobile phone is can not directly to change SIM spy
Determine the content of file.
The content of the invention
The technical problem to be solved is to provide a kind of data interactive method and system, can be using on SIM
The yellow pages data interaction of realizing as data exchange channels between mobile terminal application and SIM.
In order to solve above-mentioned technical problem, the invention provides a kind of data interactive method, including:
The exclusive data of smart card are expressed as one or more contact person record by mobile terminal, and the electricity of smart card is write one by one
In words number sheet;
Smart card is such as detected and increases the contact person record for carrying the exclusive data of smart card in yellow pages newly, then to described
Contact person record is recombinated and is parsed, and such as obtains the exclusive data of complete smart card, then save as corresponding file.
Further, the method also includes following features:
The exclusive data of smart card are expressed as one or more contact person record by mobile terminal, including:
Mobile terminal according to the exclusive size of data of smart card and the capacity limit of wall scroll contact person record, by the smart card
Exclusive data are split as one or more data segments, and each data segment is represented with a contact person record;
Wherein, each contact person record is divided into name portion and number part, and the name portion includes following field:
Record type, data type, record sum and current record index;The number part carries the data or the number of a data segment
According to data derived from section;The record type is to indicate whether the record carries the exclusive data of smart card.
Further, the method also includes following features:
Smart card is such as detected and increases the contact person record for carrying the exclusive data of smart card in yellow pages newly, then to described
Contact person record is recombinated and is parsed, including:
Smart card is such as detected and increase newly in yellow pages contact person record, then read the title portion of the contact person record
Point, such as record type then caches the record to carry the exclusive data of smart card;Judge whether this contact person record is such
The last item record of the exclusive data of type smart card is then by All Contacts' note of the exclusive data of the type smart card of caching
Record is collected together, and judges the sum of contact person record the collected whether record indicated with the name portion of contact person record
Sum is equal, such as equal, then the order for indexing according to the current record of contact person record, is successively read the number of contact person record
Part, each data segment to reading is parsed, and such as all data are correctly parsed, then obtain the exclusive number of complete smart card
According to.
Further, the method also includes following features:
The number part carries data derived from a data segment, including:The data segment is entered using predictive encoding mode
Row coding, then writes number part.
Further, the method also includes following features:
The predictive encoding mode is improved BCD compression coding modes, including:By hexadecimal digit 0-9 with 1
BCD symbols represent that occupancy 4bit is nonnumeric using 1 by any one character in hexadecimal character A, B, C, D, E, F
The combination of BCD symbols and 1 numeral BCD symbol takes 8bit representing.
Further, the method also includes following features:
Smart card also writes contact person record in yellow pages, wherein carry the exclusive data of smart card whether write card into
The feedback information of work(;
The contact person record of the smart card write includes name portion and number part, and wherein name portion includes:Note
Record type, data type, record sum and current record index;The number part carries the exclusive data of the type smart card and writes
The information of card success or failure;The record type is to indicate whether the record carries smart card feedback information.
Further, the method also includes following features:
In a case where the exclusive data of feedback intelligent card write the successful information of card to smart card:Smart card is by complete intelligence
Block exclusive data and successfully save as corresponding file.
Further, the method also includes following features:
In a case where the exclusive data of feedback intelligent card write the information of card crash to smart card:
A) smart card judges the record that the sum of the contact person record collected is indicated with the name portion of contact person record
Sum is unequal;
b)When smart card is parsed to each data segment for reading, there is data parsing mistake;
c)Smart card is obtained after the complete exclusive data of smart card, fails to preserve successfully when corresponding file is saved as.
Further, the method also includes following features:
Mobile terminal reads the contact person record in yellow pages, and obtain smart card feedback writes card result.
Further, the method also includes following features:
The name portion of the contact person record in mobile terminal traversal yellow pages, such as detects record type to carry
Smart card feedback information, then according to the data type and number part of the contact person record, obtain certain type of smart card feedback
Whether the exclusive data of smart card write the successful feedback information of card.
In order to solve above-mentioned technical problem, the invention also discloses a kind of data interaction system, is applied to mobile terminal, bag
Include:
Data representation module, for the exclusive data of smart card to be expressed as into one or more contact person record;
Data write. module, for contact person record to be write one by one in the yellow pages of smart card.
Further, the system also includes following features:
Data representation module, for the exclusive data of smart card to be expressed as into one or more contact person record, including:
Mobile terminal according to the exclusive size of data of smart card and the capacity limit of wall scroll contact person record, by the smart card
Exclusive data are split as one or more data segments, and each data segment is represented with a contact person record;
Wherein, each contact person record is divided into name portion and number part, and the name portion includes following field:
Record type, data type, record sum and current record index;The number part carries the data or the number of a data segment
According to data derived from section;The record type is to indicate whether the record carries the exclusive data of smart card.
Further, the system also includes following features:
Data representation module, for the number part data derived from a data segment are carried, including:Using predictive encoding
Mode is encoded to the data segment, then writes number part.
Further, the system also includes following features:
The predictive encoding mode is improved BCD compression coding modes, including:By hexadecimal digit 0-9 with 1
BCD symbols represent that occupancy 4bit is nonnumeric using 1 by any one character in hexadecimal character A, B, C, D, E, F
The combination of BCD symbols and 1 numeral BCD symbol takes 8bit representing.
Further, the system also includes following features:
The system also includes:Read yellow pages module, for reading yellow pages in contact person record, obtain intelligence
Feedback can be blocked writes card result.
Further, the system also includes following features:
Read yellow pages module, for reading the contact person record in yellow pages in the following ways, obtain intelligence
Feedback can be blocked writes card result:The name portion of the contact person record in traversal yellow pages, such as detecting record type is
Smart card feedback information is carried, then according to the data type and number part of the contact person record, obtains certain of smart card feedback
Whether the exclusive data of type of smart card write the successful feedback information of card.
In order to solve above-mentioned technical problem, the invention also discloses a kind of data interaction system, is applied to smart card, bag
Include:
Detection module, increase newly in yellow pages the contact person record for carrying the exclusive data of smart card for such as detecting,
Then notify data resolution module;
Data resolution module, for the contact person record to be recombinated and parsed, such as obtains complete smart card special
Category data, then save as corresponding file.
Further, the system also includes following features:
Detection module, increase newly in yellow pages the contact for carrying the exclusive data of smart card for detecting in the following ways
People records:Such as detect and increase newly in yellow pages contact person record, then read the name portion of the contact person record, such as record
Type then caches the record to carry the exclusive data of smart card, then notifies data resolution module;
Data resolution module, in the following ways the contact person record being recombinated and being parsed:Judge this
Whether contact person record is the last item record of the exclusive data of the type smart card, is then that the type smart card of caching is special
All Contacts' record of category data is collected together, judge the sum of contact person record collected whether with contact person record
The record sum that indicates of name portion it is equal, such as equal, the then order for indexing according to the current record of contact person record, successively
The number part of contact person record is read, each data segment to reading is parsed, such as all data are correctly parsed, then obtained
The exclusive data of complete smart card.
Further, the system also includes following features:
The system also includes:Feedback module, for writing contact person record in yellow pages, wherein carrying smart card
Whether exclusive data write the successful feedback information of card;
The contact person record of the smart card write includes name portion and number part, and wherein name portion includes:Note
Record type, data type, record sum and current record index;The number part carries the exclusive data of the type smart card and writes
The information of card success or failure;The record type is to indicate whether the record carries smart card feedback information.
Further, the system also includes following features:
Feedback module, for the exclusive data of feedback intelligent card in a case where the successful information of card is write:Smart card will be complete
The exclusive data of whole smart card successfully save as corresponding file;
Feedback module, for the information that the exclusive data of feedback intelligent card in a case where write card crash:
A) judge that the sum of the contact person record collected is total with the record that the name portion of contact person record is indicated not
It is equal;
b)When each data segment to reading is parsed, there is data parsing mistake;
c)After obtaining the complete exclusive data of smart card, fail to preserve successfully when corresponding file is saved as.
Compared with prior art, the present invention is provided a kind of data interactive method and system, will intelligence by mobile terminal
Block exclusive data and be expressed as one or more contact person record, during the yellow pages of smart card are write one by one, smart card is to electricity
The contact person record for carrying the exclusive data of smart card increased newly in words number sheet is recombinated and is parsed, and such as obtains complete intelligence
Block exclusive data, then save as corresponding file, can be realized as data exchange channels by the use of the yellow pages on SIM
Data interaction between mobile terminal application and SIM.
Description of the drawings
Fig. 1 is a kind of flow chart of data interactive method of the embodiment of the present invention.
Fig. 2 is a kind of data interaction system of the embodiment of the present invention(It is applied to mobile terminal side)Structural representation.
Fig. 3 is a kind of data interaction system of the embodiment of the present invention(It is applied to smart card side)Structural representation.
Specific embodiment
To make the object, technical solutions and advantages of the present invention become more apparent, below in conjunction with accompanying drawing to the present invention
Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application
Feature can mutually be combined.
As shown in figure 1, a kind of data interactive method is embodiments provided, including:
The exclusive data of smart card are expressed as one or more contact person record by S10, mobile terminal, and smart card is write one by one
Yellow pages in;
S20, smart card is such as detected and increases the contact person record for carrying the exclusive data of smart card in yellow pages newly, then right
The contact person record is recombinated and is parsed, and such as obtains the exclusive data of complete smart card, then save as corresponding file.
The method further includes following features:
Wherein, the smart card is SIM(Subscriber Identity Module, client identification module)Card.
It is preferred that the exclusive data of the smart card open card information for mobile phone users, its data type is such as:Authentication
Key(KI), Personal Identity Number 1(PIN1), Personal Identity Number 2(PIN2), PIN code PUK 1(PUK1), PIN code
PUK 2(PUK2), international mobile subscriber identity(IMSI), integrated circuit card identification code(ICCID)Or Short Message Service ginseng
Number(SMSP).
It is preferred that the exclusive data of smart card are expressed as one or more contact person record by mobile terminal, including:
Mobile terminal according to the exclusive size of data of smart card and the capacity limit of wall scroll contact person record, by the smart card
Exclusive data are split as one or more data segments, and each data segment is represented with a contact person record;
Wherein, each contact person record is divided into name portion and number part, and the name portion includes following field:
Record type, data type, record sum and current record index;The number part carries the data or the number of a data segment
According to data derived from section;The record type is to indicate whether the record carries the exclusive data of smart card;The data class
Type belongs to the exclusive data of smart card of which type to represent the data;The total number to represent the type of the record
According to the sum of the record being expressed as;The current record indexes the position letter to represent current record in the data of the type
Breath.
It is preferred that smart card is such as detected increases the contact person record for carrying the exclusive data of smart card newly in yellow pages,
Then the contact person record is recombinated and parsed, including:
Smart card is such as detected and increase newly in yellow pages contact person record, then read the title portion of the contact person record
Point, such as record type then caches the record to carry the exclusive data of smart card;Judge whether this contact person record is such
The last item record of the exclusive data of type smart card is then by All Contacts' note of the exclusive data of the type smart card of caching
Record is collected together, and judges the sum of contact person record the collected whether record indicated with the name portion of contact person record
Sum is equal, such as equal, then the order for indexing according to the current record of contact person record, is successively read the number of contact person record
Part, each data segment to reading is parsed, and such as all data are correctly parsed, then obtain the exclusive number of complete smart card
According to.
It is preferred that the number part carries data derived from a data segment, including:Using predictive encoding mode to the number
Encoded according to section, then write number part.
It is preferred that the predictive encoding mode is improved BCD compression coding modes, including:By hexadecimal digit 0-9
Represented with 1 BCD symbol, take 4bit, any one character in hexadecimal character A, B, C, D, E, F is non-using 1
The combination of digital BCD symbols and 1 numeral BCD symbol takes 8bit representing.Such as, hexadecimal character A to F can divide
Do not represented with BCD symbol combinations A0, A1, A2, A3, A4, A5.
It is preferred that smart card also writes contact person record in yellow pages, wherein carry the exclusive data of smart card being
It is no to write the successful feedback information of card;
The contact person record of the smart card write includes name portion and number part, and wherein name portion includes:Note
Record type, data type, record sum and current record index;The number part carries the exclusive data of the type smart card and writes
The information of card success or failure;The record type is to indicate whether the record carries smart card feedback information.The number
Belong to the exclusive data of smart card of which type to represent the data according to type;The record sum is defaulted as 1;It is described
Current record index is defaulted as 1.
It is preferred that smart card in a case where the exclusive data of feedback intelligent card write the successful information of card:Smart card will be complete
The exclusive data of whole smart card successfully save as corresponding file.
It is preferred that smart card in a case where the exclusive data of feedback intelligent card write the information of card crash:
A) smart card judges the record that the sum of the contact person record collected is indicated with the name portion of contact person record
Sum is unequal;
b)When smart card is parsed to each data segment for reading, there is data parsing mistake;
c)Smart card is obtained after the complete exclusive data of smart card, fails to preserve successfully when corresponding file is saved as.
It is preferred that also including:Mobile terminal reads the contact person record in yellow pages, obtains writing for smart card feedback
Card result, including:The name portion of the contact person record in mobile terminal traversal yellow pages, such as detecting record type is
Smart card feedback information is carried, then according to the data type and number part of the contact person record, obtains certain of smart card feedback
Whether the exclusive data of type of smart card write the successful feedback information of card.
Such as, smart card may feed back PIN1 data and write card success, and PIN2 data write the information such as card crash.
As shown in Fig. 2 embodiments providing a kind of data interaction system, mobile terminal is applied to, including:
Data representation module, for the exclusive data of smart card to be expressed as into one or more contact person record;
Data write. module, for contact person record to be write one by one in the yellow pages of smart card.
The system can also include following features:
It is preferred that data representation module, for the exclusive data of smart card to be expressed as into one or more contact person record, bag
Include:
Mobile terminal according to the exclusive size of data of smart card and the capacity limit of wall scroll contact person record, by the smart card
Exclusive data are split as one or more data segments, and each data segment is represented with a contact person record;
Wherein, each contact person record is divided into name portion and number part, and the name portion includes following field:
Record type, data type, record sum and current record index;The number part carries the data or the number of a data segment
According to data derived from section;The record type is to indicate whether the record carries the exclusive data of smart card.
It is preferred that data representation module, for the number part data derived from a data segment are carried, including:Using
Predictive encoding mode is encoded to the data segment, then writes number part.
It is preferred that the predictive encoding mode is improved BCD compression coding modes, including:By hexadecimal digit 0-9
Represented with 1 BCD symbol, take 4bit, any one character in hexadecimal character A, B, C, D, E, F is non-using 1
The combination of digital BCD symbols and 1 numeral BCD symbol takes 8bit representing.
It is preferred that the system also include read yellow pages module, for reading yellow pages in contact person note
Record, obtain smart card feedback writes card result.
It is preferred that the reading yellow pages module, for reading the contact person in yellow pages in the following ways
Record, obtain smart card feedback writes card result:The name portion of the contact person record in traversal yellow pages, such as detects
Record type, then according to the data type and number part of the contact person record, obtains intelligence to carry smart card feedback information
Whether the exclusive data of certain type of smart card of card feedback write the successful feedback information of card.
As shown in figure 3, embodiments providing a kind of data interaction system, mobile terminal is applied to, including:
Detection module, increase newly in yellow pages the contact person record for carrying the exclusive data of smart card for such as detecting,
Then notify data resolution module;
Data resolution module, for the contact person record to be recombinated and parsed, such as obtains complete smart card special
Category data, then save as corresponding file.
The system can also include following features:
It is preferred that detection module, increase newly in yellow pages the exclusive number of carrying smart card for detecting in the following ways
According to contact person record:Such as detect and increase newly in yellow pages contact person record, then read the title portion of the contact person record
Point, such as record type then caches the record to carry the exclusive data of smart card, then notifies data resolution module;
Data resolution module, in the following ways the contact person record being recombinated and being parsed:Judge this
Whether contact person record is the last item record of the exclusive data of the type smart card, is then that the type smart card of caching is special
All Contacts' record of category data is collected together, judge the sum of contact person record collected whether with contact person record
The record sum that indicates of name portion it is equal, such as equal, the then order for indexing according to the current record of contact person record, successively
The number part of contact person record is read, each data segment to reading is parsed, such as all data are correctly parsed, then obtained
The exclusive data of complete smart card.
It is preferred that the system also includes:Feedback module, for writing contact person record in yellow pages, wherein taking
Whether the exclusive data of band smart card write the successful feedback information of card;
Wherein, the contact person record of the smart card write includes name portion and number part, wherein name portion bag
Include:Record type, data type, record sum and current record index;It is exclusive that the number part carries the type smart card
Data write the information of card success or failure;The record type is to indicate whether the record carries smart card feedback information.
It is preferred that the feedback module, for the exclusive data of feedback intelligent card in a case where the successful information of card is write:
The complete exclusive data of smart card are successfully saved as corresponding file by smart card;
Feedback module, for the information that the exclusive data of feedback intelligent card in a case where write card crash:
A) judge that the sum of the contact person record collected is total with the record that the name portion of contact person record is indicated not
It is equal;
b)When each data segment to reading is parsed, there is data parsing mistake;
c)After obtaining the complete exclusive data of smart card, fail to preserve successfully when corresponding file is saved as.
A kind of data interactive method and system that above-described embodiment is provided, by mobile terminal by the exclusive tables of data of smart card
One or more contact person record is shown as, during the yellow pages of smart card are write one by one, smart card is to new in yellow pages
The contact person record for carrying the exclusive data of smart card of increasing is recombinated and is parsed, and such as obtains the exclusive data of complete smart card,
Corresponding file is then saved as, can realize that mobile terminal should as data exchange channels by the use of the yellow pages on SIM
With the data interaction between SIM.
One of ordinary skill in the art will appreciate that all or part of step in said method can be instructed by program
Related hardware is completed, and described program can be stored in computer-readable recording medium, such as read-only storage, disk or CD
Deng.Alternatively, all or part of step of above-described embodiment can also be realized using one or more integrated circuits, accordingly
Ground, each module/unit in above-described embodiment can be realized in the form of hardware, it would however also be possible to employ the shape of software function module
Formula is realized.The present invention is not restricted to the combination of the hardware and software of any particular form.
It should be noted that the present invention can also have other various embodiments, without departing substantially from spiritual and its essence of the invention
In the case of, those of ordinary skill in the art can make various corresponding changes and deformation according to the present invention, but these are corresponding
Change and deform the protection domain that should all belong to appended claims of the invention.
Claims (15)
1. a kind of data interactive method, including:
The exclusive data of smart card are expressed as one or more contact person record by mobile terminal, and the phone number of smart card is write one by one
In code book;
Smart card is such as detected and increases the contact person record for carrying the exclusive data of smart card in yellow pages newly, then to the contact
People's record is recombinated and is parsed, and such as obtains the exclusive data of complete smart card, then save as corresponding file;
The exclusive data of smart card are expressed as one or more contact person record by mobile terminal, including:
Mobile terminal is exclusive by the smart card according to the exclusive size of data of smart card and the capacity limit of wall scroll contact person record
Data are split as one or more data segments, and each data segment is represented with a contact person record;
Wherein, each contact person record is divided into name portion and number part, and the name portion includes following field:Record
Type, data type, record sum and current record index;The number part carries the data or the data segment of a data segment
Derivative data;The record type is to indicate whether the record carries the exclusive data of smart card;
Smart card is such as detected and increases the contact person record for carrying the exclusive data of smart card in yellow pages newly, then to the contact
People's record is recombinated and is parsed, including:
Smart card is such as detected and increase newly in yellow pages contact person record, then read the name portion of the contact person record, such as
Record type then caches the record to carry the exclusive data of smart card;Judge whether this contact person record is the type intelligence
The last item record of exclusive data can be blocked, be then to receive All Contacts' record of the exclusive data of the type smart card of caching
Gather together, judge the record the sum whether sum of the contact person record collected indicates with the name portion of contact person record
Equal, such as equal, the then order for indexing according to the current record of contact person record is successively read the number portion of contact person record
Point, each data segment to reading is parsed, and such as all data are correctly parsed, then obtain the exclusive data of complete smart card.
2. the method for claim 1, it is characterised in that:
The number part carries data derived from a data segment, including:The data segment is compiled using predictive encoding mode
Code, then writes number part.
3. method as claimed in claim 2, it is characterised in that:
The predictive encoding mode is improved BCD compression coding modes, including:Hexadecimal digit 0-9 is accorded with 1 BCD
Number represent, take 4bit, by any one character in hexadecimal character A, B, C, D, E, F adopt 1 nonnumeric BCD symbol
Combination with 1 numeral BCD symbol takes 8bit representing.
4. the method for claim 1, it is characterised in that also include:
Smart card also writes contact person record in yellow pages, wherein carrying whether the exclusive data of smart card write card successfully
Feedback information;
The contact person record of the smart card write includes name portion and number part, and wherein name portion includes:Record class
Type, data type, record sum and current record index;The number part carry the exclusive data of the type smart card write card into
Work(or the information of failure;The record type is to indicate whether the record carries smart card feedback information.
5. method as claimed in claim 4, it is characterised in that also include:
In a case where the exclusive data of feedback intelligent card write the successful information of card to smart card:Smart card is special by complete smart card
Category data successfully save as corresponding file.
6. method as claimed in claim 4, it is characterised in that also include:
In a case where the exclusive data of feedback intelligent card write the information of card crash to smart card:
A) smart card judges the record sum that the sum of the contact person record collected is indicated with the name portion of contact person record
It is unequal;
B) when smart card is parsed to each data segment for reading, there is data parsing mistake;
C) smart card is obtained after the complete exclusive data of smart card, fails to preserve successfully when corresponding file is saved as.
7. method as claimed in claim 4, it is characterised in that also include:
Mobile terminal reads the contact person record in yellow pages, and obtain smart card feedback writes card result.
8. method as claimed in claim 7, it is characterised in that also include:
The name portion of the contact person record in mobile terminal traversal yellow pages, such as detects record type to carry intelligence
Card feedback information, then according to the data type and number part of the contact person record, obtain certain type intelligence of smart card feedback
Block whether exclusive data write the successful feedback information of card.
9. a kind of data interaction system, is applied to mobile terminal, including:
Data representation module, for the exclusive data of smart card to be expressed as into one or more contact person record;
Data write. module, for contact person record to be write one by one in the yellow pages of smart card;
Data representation module, for the exclusive data of smart card to be expressed as into one or more contact person record, including:
Mobile terminal is exclusive by the smart card according to the exclusive size of data of smart card and the capacity limit of wall scroll contact person record
Data are split as one or more data segments, and each data segment is represented with a contact person record;
Wherein, each contact person record is divided into name portion and number part, and the name portion includes following field:Record
Type, data type, record sum and current record index;The number part carries the data or the data segment of a data segment
Derivative data;The record type is to indicate whether the record carries the exclusive data of smart card;
Data representation module, for the number part data derived from a data segment are carried, including:Using predictive encoding mode
The data segment is encoded, number part is then write.
10. system as claimed in claim 9, it is characterised in that:
The predictive encoding mode is improved BCD compression coding modes, including:Hexadecimal digit 0-9 is accorded with 1 BCD
Number represent, take 4bit, by any one character in hexadecimal character A, B, C, D, E, F adopt 1 nonnumeric BCD symbol
Combination with 1 numeral BCD symbol takes 8bit representing.
11. systems as claimed in claim 9, it is characterised in that also include:
Read yellow pages module, for reading yellow pages in contact person record, obtain smart card feedback writes card tie
Really.
12. systems as claimed in claim 11, it is characterised in that:
Read yellow pages module, for reading the contact person record in yellow pages in the following ways, obtain smart card
That what is fed back writes card result:The name portion of the contact person record in traversal yellow pages, such as detects record type to carry
Smart card feedback information, then according to the data type and number part of the contact person record, obtain certain type of smart card feedback
Whether the exclusive data of smart card write the successful feedback information of card.
A kind of 13. data interaction systems, are applied to smart card, including:
Detection module, increase newly in yellow pages the contact person record for carrying the exclusive data of smart card for such as detecting, then lead to
Primary data parsing module;
Data resolution module, for the contact person record to be recombinated and parsed, such as obtains the exclusive number of complete smart card
According to then saving as corresponding file;
Detection module, for detecting in the following ways the contact person's note for carrying the exclusive data of smart card is increased newly in yellow pages
Record:Such as detect and increase newly in yellow pages contact person record, then read the name portion of the contact person record, such as record type
To carry the exclusive data of smart card, then the record is cached, then notify data resolution module;
Data resolution module, in the following ways the contact person record being recombinated and being parsed:Judge this contact
Whether people's record is the last item record of the exclusive data of the type smart card, be then will caching the exclusive number of the type smart card
According to All Contacts' record be collected together, judge the sum of contact person record the collected whether name with contact person record
The record sum for claiming part to indicate is equal, such as equal, then the order for indexing according to the current record of contact person record, is successively read
The number part of contact person record, each data segment to reading is parsed, and such as all data are correctly parsed, then obtain complete
The exclusive data of smart card.
14. systems as claimed in claim 13, it is characterised in that also include:
Feedback module, for writing contact person record in yellow pages, wherein carrying whether the exclusive data of smart card write card
Successful feedback information;
The contact person record of the smart card write includes name portion and number part, and wherein name portion includes:Record class
Type, data type, record sum and current record index;The number part carry the exclusive data of the type smart card write card into
Work(or the information of failure;The record type is to indicate whether the record carries smart card feedback information.
15. systems as claimed in claim 14, it is characterised in that:
Feedback module, for the exclusive data of feedback intelligent card in a case where the successful information of card is write:Smart card will be complete
The exclusive data of smart card successfully save as corresponding file;
Feedback module, for the information that the exclusive data of feedback intelligent card in a case where write card crash:
A) sum of the contact person record that judgement is collected is unequal with the record sum that the name portion of contact person record is indicated;
B) when each data segment to reading is parsed, there is data parsing mistake;
C) obtain after the complete exclusive data of smart card, fail to preserve successfully when corresponding file is saved as.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310742799.7A CN103716434B (en) | 2013-12-27 | 2013-12-27 | Method and system for data interaction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310742799.7A CN103716434B (en) | 2013-12-27 | 2013-12-27 | Method and system for data interaction |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103716434A CN103716434A (en) | 2014-04-09 |
CN103716434B true CN103716434B (en) | 2017-04-19 |
Family
ID=50409000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310742799.7A Expired - Fee Related CN103716434B (en) | 2013-12-27 | 2013-12-27 | Method and system for data interaction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103716434B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105744512A (en) * | 2016-01-21 | 2016-07-06 | 努比亚技术有限公司 | Contact information loading device and contact information loading method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0757336B1 (en) * | 1995-08-04 | 2000-11-22 | Belle Gate Investment B.V. | Data exchange systems comprising portable data processing units |
CN102387255B (en) * | 2011-10-25 | 2014-07-23 | 北京中清怡和科技有限公司 | Method and device for utilizing intelligent card to process third-party expanded service data |
CN102779283B (en) * | 2012-07-30 | 2015-09-23 | 亚信科技(中国)有限公司 | A kind of device, system and method realizing SIM card read-write |
CN103249033B (en) * | 2013-05-10 | 2015-09-30 | 东信和平科技股份有限公司 | The self-service number of the changing implementation method of SIM card and terminal |
-
2013
- 2013-12-27 CN CN201310742799.7A patent/CN103716434B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN103716434A (en) | 2014-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102937926B (en) | Method and device for recovering deleted sqlite files on mobile terminal | |
CN101753682B (en) | Right management method for user identification card and terminal unit | |
CN102883322A (en) | Mobile terminal and WiFi (wireless fidelity) connection method for same | |
EP3432615B1 (en) | Message anti-forgery implementation method and device | |
CN101006739A (en) | Reuse of identity data from an identity module in a user equipment by a peripheral device | |
CN102930435A (en) | Authentication method and system for mobile payment | |
US11621849B2 (en) | Call center web-based authentication using a contactless card | |
CN102065161B (en) | System and method for realizing multi-card multi-standby mobile phone function by virtual method | |
CN103119973A (en) | Method, device and system for controlling account management operation | |
CN104809618A (en) | Radio frequency identification tag-based product anti-counterfeiting method | |
CN101710240A (en) | Set-top box production control system | |
CN104318286A (en) | NFC label data management method and system and terminal | |
CN108171019A (en) | Anti-counterfeit authentication method, fake certification system, fake certification equipment and storage medium | |
CN103400184A (en) | SIM (subscriber identity module) card, mobile terminal, system and identifying method thereof | |
CN104423928A (en) | Data processing method, data processing device and terminal equipment | |
CN103716434B (en) | Method and system for data interaction | |
CN102111487B (en) | Method and device for realizing global system for mobile communications (GSM) terminal to access 3G universal subscriber identity module (USIM) card | |
CN101350985B (en) | Method for backup of SIM card information, mobile terminal and system | |
CN105430635A (en) | Card-changing method, device and system for mobile terminal, and mobile terminal | |
CN107657199A (en) | Mobile device, verification device and verification method thereof | |
CN104598651B (en) | A kind of management method and device of mobile terminal collection | |
CN107633583B (en) | Access control system and method supporting IOS equipment | |
EP3468261B1 (en) | Control method and apparatus for smart card, terminal device, and smart card | |
CN101022611A (en) | Mobile terminal addressbook information leading-out and leading-in method | |
CN101170467A (en) | Apparatus, and associated method, by which to store specific network identifiers at a wireless device |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170419 |