CN104318278B - IC-card wiring method and system, IC-card read method and system - Google Patents

IC-card wiring method and system, IC-card read method and system Download PDF

Info

Publication number
CN104318278B
CN104318278B CN201410536138.3A CN201410536138A CN104318278B CN 104318278 B CN104318278 B CN 104318278B CN 201410536138 A CN201410536138 A CN 201410536138A CN 104318278 B CN104318278 B CN 104318278B
Authority
CN
China
Prior art keywords
memory block
card
area code
read
current
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.)
Active
Application number
CN201410536138.3A
Other languages
Chinese (zh)
Other versions
CN104318278A (en
Inventor
林天鹏
贾宇辉
郭伟文
林汉洁
郭京互
仲兆峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Building Technology Guangzhou Co Ltd
Original Assignee
Guangzhou Ropente Technology Development 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 Guangzhou Ropente Technology Development Co Ltd filed Critical Guangzhou Ropente Technology Development Co Ltd
Priority to CN201410536138.3A priority Critical patent/CN104318278B/en
Publication of CN104318278A publication Critical patent/CN104318278A/en
Application granted granted Critical
Publication of CN104318278B publication Critical patent/CN104318278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

IC-card wiring method and system, IC-card read method and system, its wiring method include step:The card number of current IC-card when current IC-card is issued, is obtained, current card number is inquired about and be whether there is;If not existing, the area code address recorded during according to hair fastener before obtains memory block to be written;User profile is write into the memory block to be written and the area code address of the memory block to be written is recorded.According to the present invention program, this programme exempts from configuration storage regional address without the need for applying for the registration of to administrative organization, and not only read or write speed is fast, and easy to use.

Description

IC-card wiring method and system, IC-card read method and system
Technical field
The present invention relates to IC-card management applied technical field, more particularly to a kind of IC-card wiring method and system, IC-card Read method and system.
Background technology
At present, to have been widely used for building automatic for IC-card (Integrated Circuit Card, integrated circuit card) The fields such as change, office automation, public transport, finance;For example, general IC-card can apply to work attendance, gate inhibition, elevator, night watching, road The aspects such as lock, parking lot, consumption system.However, IC-card management method commonly used in the prior art, is write to IC-card in hair fastener Access customer information simultaneously takes memory space for a long time, can affect the compatibility with other systems.
On the one hand, MAD (the MIFARE Application that NXP companies (En Zhi Pus semiconductor company) formulate Directory, application catalog) standard, it is desirable in MIFARE (NXP Semiconductors, grace intelligence Pu quasiconductor) brand The registered application identification code of IC-card #0 sectors (and #16 sectors, if available) storage (AIDs, by 8bits functional groups code and 8bits application codes two parts are constituted), using #0 sectors (and #16 sectors) as directory entry is applied, terminal software is using described Sector pointers are replacing physical sector address.However, in the MIFARE cards using MAD standards, must be in #0 sectors during hair fastener (and #16 sectors) writes application identification code and takes the sector for a long time, and must first read #0 sectors (and #16 sectors) when swiping the card should With the user profile for reading correspondence sector after identification code again, read or write speed is slower, using and it is inconvenient.
On the other hand, be limited to MAD standards application for registration cost and apply number of codes, many application vendors not to NXP companies apply for the registration of.Unregistered application and other branded cards, then need to arrange each with cooperation manufacturer in each project Conflict is avoided using the sector for taking.It is unregistered to apply when writing to the MIFARE cards using MAD standards, without in #0 fans Area (and #16 sectors) stores application identification code, sends out with the registered applications of follow-up write so as to illegally occupy available sector Raw conflict, it is very loaded down with trivial details using process.
The content of the invention
Based on this, it is necessary to for the problem that IC-card in background technology is present in terms of read-write, there is provided a kind of IC-card write Method and system, IC-card read method and system, without the need for applying for the registration of to administrative organization, exempt from configuration storage regional address, not only read Writing rate is fast, and easy to use.
For achieving the above object, the technical scheme that the embodiment of the present invention is adopted is as follows:
A kind of IC-card wiring method, including step:
The card number of current IC-card when current IC-card is issued, is obtained, current card number is inquired about and be whether there is;
If not existing, the area code address recorded during according to hair fastener before obtains memory block to be written;
User profile is write into the memory block to be written and the area code address of the memory block to be written is recorded.
According to a kind of above-mentioned IC-card wiring method, the present invention program also provides a kind of IC-card writing system, including write Obtain enquiry module, obtain memory block module to be written, write logging modle;
Said write obtains enquiry module when current IC-card is issued, and obtains the card number of current IC-card, inquires about current card number Whether there is;
It is described to obtain memory block module to be written when the acquisition enquiry module is inquired about current card number and do not existed, according to it The area code address recorded during front hair fastener, obtains memory block to be written;
User profile is write the memory block to be written and records the memory block to be written by said write logging modle Area code address.
By when current IC-card is issued, first obtaining the card number of current IC-card, inquire about current card number and whether there is;If not depositing , then the area code address recorded when according to hair fastener before, acquisition memory block to be written;And then user profile is write described to be written Enter memory block and record the area code address of the memory block to be written, complete user profile is write in IC-card.And then in distribution During IC-card, without the need for applying for the registration of to administrative organization, exempt from configuration storage regional address, writing speed is fast.
A kind of IC-card read method, including step:
When current IC-card is read, read the information of the current IC-card and judge whether the current IC-card is effective;
If effectively, according to the area code address recorded when reading before, obtaining memory block to be read;
User profile is read in the memory block to be read and the area code address of the memory block to be read is recorded.
According to a kind of above-mentioned IC-card read method, the present invention program also provides a kind of IC-card and reads system, including IC-card Availability deciding module, acquisition memory block module to be read, reading logging modle;
The IC-card availability deciding module reads the information of the current IC-card and judges whether the current IC-card is effective;
It is described to obtain memory block module to be read and judge that the current IC-card is effective in the IC-card availability deciding module When, according to the area code address recorded when reading before, obtain memory block to be read;
The reading logging modle reads user profile in the memory block to be read and records the storage to be read The area code address in area.
By when current IC-card is read, judging whether the current IC-card is effective;If effectively, remembering according to when reading before The area code address of record, obtains memory block to be read;And then user profile is read in the memory block to be read and records described The area code address of memory block to be read, completes user profile is read in IC-card, and not only reading speed is fast, and process is simple.
Description of the drawings
Fig. 1 is the IC-card wiring method first embodiment flow chart of the present invention;
Fig. 2 is the IC-card wiring method second embodiment flow chart of the present invention;
Fig. 3 is the IC-card read method first embodiment flow chart of the present invention;
Fig. 4 is the IC-card read method second embodiment flow chart of the present invention;
Fig. 5 is the IC-card writing system example structure figure of the present invention;
Fig. 6 is that the IC-card of the present invention reads system embodiment structure chart.
Specific embodiment
To make the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, to this Invention is described in further detail.It should be appreciated that specific embodiment described herein is only to explain the present invention, Protection scope of the present invention is not limited.
Fig. 1 is referred to, is the IC-card wiring method first embodiment flow chart of the present invention;
Step S101:The card number of current IC-card when current IC-card is issued, is obtained, current card number is inquired about and be whether there is;
Specifically, when IC-card is issued, the card number of the IC-card is obtained first, and then the card of the IC-card is inquired about in data base Number whether there is, and then determine whether the IC-card had been issued.
In one embodiment, if in the presence of inquiring the card number of current IC-card, pointing out the current IC-card to issue.
Step S102:If not existing, the area code address recorded during according to hair fastener before obtains memory block to be written;
The area code address refers to the sector area code of IC-card memory block, such as existing MIFARE MF1ICS50 IC-cards tool Have from #0 to #15 totally 16 sectors as memory block;
In one embodiment, the area code address for recording during hair fastener before the basis, obtaining memory block to be written can be with Including step:
According to the area code address of the write memory block of a upper IC-card of record, by the write memory block with a upper IC-card The current IC-card of area code address identical memory block as the first judgement memory block to be written;
Judge whether the write password set in advance area code address that judge memory block to be written with described first matches;
If so, using the described first judgement memory block to be written as memory block to be written;
If it is not, according to the area code sequence of addresses of current IC-card memory block, judging said write password with current IC-card successively Whether the area code address of the memory block in addition to the described first memory block to be judged matches, until determining and said write password The area code address matched somebody with somebody;
Using the memory block of the area code address of matching as memory block to be written.
In another embodiment, the area code address for recording during hair fastener before the basis, obtaining memory block to be written can With including step:
Number of times is recorded according to area code address, from more to few current IC-card of area code address identical for being judged with record successively The area code address of memory block whether match with write password set in advance, deposit until determining with said write password match The area code address of storage area;
Using the memory block of the area code address of matching as memory block to be written.
Step S103:User profile is write into the memory block to be written and the area code ground of the memory block to be written is recorded Location;
Specifically, it is determined that behind the memory block to be written of IC-card, user profile being write the memory block to be written and being incited somebody to action The area code address of the memory block to be written is recorded in data base.In one embodiment, by the area of the memory block to be written After number address is recorded in data base, the area code address of the write memory block of the IC-card for recording before can be deleted, that is, count According to the area code address of the write memory block for only retaining the IC-card of distribution recently in storehouse, to avoid the storage of excessive occupancy data base Amount.Certainly, needed based on practical application, or record certain amount Zhang Fahang in a period of time recently or nearest IC-card write memory block area code address, the embodiment of the present invention is not specifically limited to this.
IC-card wiring method of the invention, by when current IC-card is issued, first obtaining the card number of current IC-card, looking into Ask current card number whether there is;If not existing, the area code address recorded during according to hair fastener before obtains memory block to be written; User profile is write into the memory block to be written further and the area code address of the memory block to be written is recorded, is completed in IC-card Middle write user profile.And then when IC-card is issued, without the need for applying for the registration of to administrative organization, exempt from configuration storage regional address, write Speed is fast.
In one embodiment, in the IC-card that the current IC-card is first distribution,
Judge whether write password set in advance is matched with the area code address in the default storage area of current IC-card;
If so, using the default storage area as memory block to be written;
If it is not, according to the area code sequence of addresses of current IC-card memory block, judging said write password with current IC-card successively Whether the area code address of the memory block in addition to the default storage area matches, until determining the area with said write password match Number address;
Using the memory block of the area code address of matching as memory block to be written.
In one embodiment, before write current user information, after obtaining memory block to be written, can also include Step:
The current user information is encrypted.
Specifically, when write current user information is prepared, current user information is passed through into block encryption method or other is existing Some data encryption methods are encrypted, so that it is guaranteed that the safety of current user information, prevents current user information from illegally being stolen Take.
In order to how the IC-card wiring method for further illustrating the present invention is realized, with reference to a specific embodiment It is described in detail, refers to Fig. 2, is the IC-card wiring method second embodiment flow chart of the present invention;
Step 201:In IC-card of the Card distribution for A, card number A is obtained, inquiry card number A whether there is;If existing, enter Step 202, if not existing, into step 203;
Step 202:The IC-card is pointed out to issue;
Step 203:Number of times is recorded according to area code address, from more to few area code address identical for being judged with record successively Whether the area code address of the memory block of IC-card is matched with write password set in advance, obtains depositing with said write password match The area code address #1 of storage area;
Step 204:Using area code address for #1 IC-card memory block as memory block to be written;
Step 205:User profile is encrypted;
Step 206:User profile after encryption is write into the memory block to be written and the memory block to be written is recorded Area code address #1.
Fig. 3 is referred to, is the IC-card read method first embodiment flow chart of the present invention;
Step 301:When current IC-card is read, read the information of the current IC-card and judge whether the current IC-card has Effect;
In one example, the card number of current IC-card when current IC-card is read, can be obtained, and then is looked in data base Ask the card number whether there is, to determine whether the IC-card has been issued, if the card number of the current IC-card is present, illustrate and the card number Corresponding IC-card is issued, and the current IC-card is effectively or whether the IC-card is effective with reference to other modes synthetic determination, if inquiry Card number to the IC-card is not present, then illustrate that the current IC-card is invalid, the IC-card can be pointed out illegal.
In another example, it can be the correlation of the memory block by reading current IC-card when current IC-card is read Information (such as to differentiate the whether registered user profile of the card), and judge whether the relevant information is registered, sentences with this Whether the fixed current IC-card is effective.If the relevant information is registered, the current IC-card is judged effectively, if the relevant information is not noted Volume, then judge that the current IC-card is invalid.
Step 302:If effectively, according to the area code address recorded when reading before, obtaining memory block to be read;
The area code address refers to the sector area code of IC-card memory block, such as existing MIFARE MF1ICS50 IC-cards tool Have from #0 to #15 totally 16 sectors as memory block;
In one embodiment, the area code address for recording during hair fastener before the basis, obtaining memory block to be read can be with Including step:
According to the area code address of the reading memory block of a upper IC-card of record, by the reading memory block with a upper IC-card The current IC-card of area code address identical memory block as the first judgement memory block to be read;
Judge whether the reading password set in advance area code address that judge memory block to be read with described first matches;
If so, using the described first judgement memory block to be read as memory block to be read;
If it is not, according to the area code sequence of addresses of current IC-card memory block, judging the reading password and current IC-card successively Whether the area code address of the memory block in addition to the described first memory block to be judged matches, until determining and the reading password The area code address matched somebody with somebody;
Using the memory block of the area code address of matching as memory block to be read.
In one embodiment, the area code address for recording during hair fastener before the basis, obtains memory block to be read and may be used also With including step:
Number of times is recorded according to area code address, from more to few current IC-card of area code address identical for being judged with record successively The area code address of memory block whether match with reading password set in advance, deposit until determining with the password match that reads The area code address of storage area;
Using the memory block of the area code address of matching as memory block to be read.
Step 303:User profile is read in the memory block to be read and the area code of the memory block to be read is recorded Address.
Specifically, it is determined that behind the memory block to be read of IC-card, reading user profile simultaneously in the memory block to be read The area code address of the memory block to be read is recorded in data base.In one embodiment, by the memory block to be read After area code address is recorded in data base, the area code address of the reading memory block of the IC-card for recording before can be deleted, i.e., Only retain the area code address of the reading memory block of the IC-card for reading recently in data base, to avoid depositing for excessive occupancy data base Reserves.Certainly, needed based on practical application, or recorded in a period of time recently or nearest certain amount is read The area code address of the reading memory block of the IC-card for taking, the embodiment of the present invention are not specifically limited to this.
IC-card read method of the invention, by when current IC-card is read, first obtaining the card number of current IC-card, looking into Ask current card number whether there is;If existing, according to the area code address recorded when reading before, memory block to be read is obtained;Enter And read user profile in memory block to be read and record the area code address of the memory block to be read, complete to read in IC-card Take the process of user profile.And then when IC-card is read, without the need for applying for the registration of to administrative organization, exempt from configuration storage regional address, read Take speed fast.
In one embodiment, in the IC-card that the current IC-card is first reading,
Judge whether reading password set in advance is matched with the area code address in the default storage area of current IC-card;
If so, using the default storage area as memory block to be read;
If it is not, according to the area code sequence of addresses of current IC-card memory block, judging the reading password and current IC-card successively Whether the area code address of the memory block in addition to the default storage area matches, until determining and the area for reading password match Number address;
Using the memory block of the area code address of matching as memory block to be read.
In one embodiment, before current user information is read, after obtaining memory block to be read, can also include Step:
The current user information is decrypted;
Specifically, prepare read current user information when, first current user information is decrypted, prevent because The situation that current user information is encrypted and cannot read.
In order to how the IC-card read method for further illustrating the present invention is realized, with reference to a specific embodiment Be described in detail, refer to Fig. 4, be the present invention IC-card read method second embodiment flow chart, in this example, be with By the card number for reading IC-card, and whether there is being said as a example by judging the IC-card whether by inquiring about the card number of the IC-card It is bright:
Step 401:The card number B of current IC-card when current IC-card is read, is obtained, current card number B is inquired about and be whether there is;If Do not exist, into step 402, if existing, into step 403;
Step 402:Point out the IC-card illegal;
Step 403:Number of times is recorded according to area code address, from more to few area code address identical for being judged with record successively Whether the area code address of the memory block of current IC-card is matched with reading password set in advance, is obtained and the reading password match Memory block area code address #1;
Step 404:Using area code address for #1 memory block as memory block to be read;
Step 405:The user profile of memory block to be read is decrypted;
Step 406:Read the user profile after decryption and record the area code address #1 of the memory block to be read.
According to a kind of above-mentioned IC-card wiring method, the present invention program also provides a kind of IC-card writing system, refers to figure 5, it is the IC-card writing system example structure figure of the present invention;
A kind of IC-card writing system, including write acquisition enquiry module 50, acquisition memory block module 51 to be written, write note Record module 52;
Said write obtains enquiry module 50 when current IC-card is issued, and obtains the card number of current IC-card, and inquiry is current to block Number whether there is;
It is described obtain memory block module 51 to be written and obtain enquiry module 50 and inquire about current card number in said write do not exist When, the area code address recorded during according to hair fastener before obtains memory block to be written;
User profile is write the memory block to be written and records the storage to be written by said write logging modle 52 The area code address in area.
Specifically, said write obtains enquiry module 50 when IC-card is issued, and obtains the card number of the IC-card, Jin Er first The card number that the IC-card is inquired about in data base whether there is, and then determine whether the IC-card had been issued.
In one embodiment, said write obtains enquiry module 50 in the presence of the card number for inquiring current IC-card, carries Show that the current IC-card is issued.
Specifically, the area code address refers to the sector area code of IC-card memory block, such as existing MIFARE MF1ICS50 IC-card with from #0 to #15 totally 16 sectors as memory block.
In one embodiment, the memory block module to be written 51 that obtains can include determining that the first judgement to be written is deposited Storage area unit, judge matching unit, determine memory block unit to be written;
The area code for determining the first judgement memory block to be written unit according to the write memory block of a upper IC-card of record Address, will wait to sentence as first with the memory block of the current IC-card of area code address identical of the write memory block of a upper IC-card Disconnected memory block;
It is described to judge that matching unit judges the area of write password set in advance and the described first judgement memory block to be written Whether number address matches;
It is described to determine that memory block unit to be written judges the described first judgement storage to be written in the judgement matching unit When the area code address in area matches, using the described first memory block to be judged as memory block to be written;
It is described to judge matching unit when the area code address for judging the first judgement memory block to be written mismatches, according to The area code sequence of addresses of current IC-card memory block, judges that write password removes the described first memory block to be judged with current IC-card successively Outside the area code address of memory block whether match, until determining the area code address with said write password match;
It is described to determine memory block unit to be written using the memory block of the area code address for matching as memory block to be written;
In another embodiment, the memory block module to be written 51 that obtains can include judging matching unit, determine Memory block unit to be written;
The judgement matching unit is recorded number of times according to area code address, from more to few area code ground for being judged with record successively The area code address of the memory block of the current IC-card of location identical with it is set in advance write password whether match, until determine with it is described The area code address of the memory block of write password match;
It is described to determine memory block unit to be written using the memory block of the area code address for matching as memory block to be written.
Can see, IC-card writing system of the invention, by when current IC-card is issued, first obtaining current IC-card Card number, inquire about current card number and whether there is;If not existing, the area code address recorded during according to hair fastener before obtains to be written Enter memory block;User profile is write into the memory block to be written further and the area code address of the memory block to be written is recorded, Complete user profile is write in IC-card.And then when IC-card is issued, without the need for applying for the registration of to administrative organization, exempt to configure memory block Address, writing speed are fast.
In one embodiment, the memory block module to be written 51 that obtains can include judging that matching unit, determination are treated Write memory block unit;
In the IC-card that the current IC-card is first distribution,
It is described to judge that matching unit directly judges the area of write password set in advance and the default storage area of current IC-card Whether number address matches;
It is described to determine described, memory block unit to be written judges that matching unit judges the default storage area of current IC-card When area code address matches, using the default storage area as memory block to be written;
It is described to judge matching unit after judging that the area code address in default storage area of current IC-card mismatches, according to current The area code sequence of addresses of IC-card memory block, judges said write password with current IC-card in addition to the default storage area successively Whether the area code address of memory block matches, until determining the area code address with said write password match;
It is described to determine memory block unit to be written using the memory block of the area code address for matching as memory block to be written.
In one embodiment, the IC-card writing system of the present invention program, also including encrypting module 53;
53 pairs of current user informations of the encrypting module are encrypted.
Specifically, current user information is passed through block encryption when write current user information is prepared by the encrypting module Method or other existing data encryption methods are encrypted, so that it is guaranteed that the safety of current user information, prevents active user Information is illegally stolen.
According to a kind of above-mentioned IC-card read method, the present invention program also provides a kind of IC-card and reads system, refers to figure 6, it is that the IC-card of the present invention reads system embodiment structure chart;
A kind of IC-card reads system, including IC-card availability deciding module 60, acquisition memory block module 61 to be read, reading Logging modle 62;
The IC-card availability deciding module 60 obtains the card number of current IC-card when current IC-card is read, and inquiry is current Card number whether there is;
It is described obtain memory block module 61 to be read and inquire about current card number in the IC-card availability deciding module 60 exist When, according to the area code address recorded when reading before, obtain memory block to be read;
The reading logging modle 62 reads user profile in the memory block to be read and records described to be read deposit The area code address of storage area.
Specifically, in one example, the IC-card availability deciding module 60 obtains current when current IC-card is read The card number of IC-card, and then the card number is inquired about in data base whether there is, to determine whether the IC-card has been issued.If IC-card is effective Sex determination module 60 is not present in the card number for inquiring the IC-card, then point out the IC-card illegal.
In another example, IC-card availability deciding module 60 can, when current IC-card is read, be worked as by reading The relevant information (such as to differentiate the whether registered user profile of the card) of the memory block of front IC-card, and judge that the correlation is believed Whether breath is registered, judges whether the current IC-card is effective with this.If the relevant information is registered, judge that the current IC-card has Effect, if the relevant information is unregistered, judges that the current IC-card is invalid.
The area code address refers to the sector area code of IC-card memory block, such as existing MIFARE MF1ICS50 IC-cards tool Have from #0 to #15 totally 16 sectors as memory block;
In one embodiment, the memory block module to be read 61 that obtains can include determining that the first judgement to be read is deposited Storage area unit, judge matching unit, determine memory block unit to be read;
The area code for determining the first judgement memory block to be read unit according to the reading memory block of a upper IC-card of record Address, will be continued as first with the memory block of the current IC-card of area code address identical of the reading memory block of a upper IC-card Take and judge memory block;
It is described to judge that matching unit judges the area for reading password and the described first judgement memory block to be read set in advance Whether number address matches;
It is described to determine that memory block unit to be read is judging the matching unit judgement first judgement memory block to be read When area code address matches, using the described first judgement memory block to be read as memory block to be read;
It is described to judge matching unit when the area code address for judging the first judgement memory block to be read mismatches, according to The area code sequence of addresses of current IC-card memory block, judges the reading password and current IC-card except described first to be read sentences successively Whether the area code address of the memory block outside disconnected memory block matches, until determining and the area code address for reading password match;
It is described to determine reading memory block to be read unit using the memory block of the area code address for matching as memory block to be read.
In another embodiment, the memory block module to be read 61 that obtains can include judging matching unit, determine Memory block unit to be read;
The judgement matching unit is recorded number of times according to area code address, from more to few area code ground for being judged with record successively The area code address of the memory block of the current IC-card of location identical with it is set in advance reading password whether match, until determine with it is described Read the area code address of the memory block of password match;
It is described to determine memory block unit to be read using the memory block of the area code address for matching as memory block to be read.
Can see, IC-card of the invention reads system, by when current IC-card is read, first obtaining current IC-card Card number, inquire about current card number and whether there is;If existing, according to the area code address recorded when reading before, obtain to be read Memory block;And then user profile is read in memory block to be read and the area code address of the memory block to be read is recorded, complete User profile is read in IC-card.And then when IC-card is read, without the need for applying for the registration of to administrative organization, exempt to configure memory block ground Location, reading speed are fast.
In one embodiment, the memory block module to be read 61 that obtains can include judging that matching unit, determination are treated Read memory block unit;
In the IC-card that the current IC-card is first reading,
It is described to judge that matching unit directly judges the area for reading password and the default storage area of current IC-card set in advance Whether number address matches;
It is described to determine described, memory block unit to be read judges that matching unit judges the default storage area of current IC-card When area code address matches, using the default storage area as memory block to be read;
It is described to judge matching unit when judging that the area code address in default storage area of current IC-card mismatches, according to current The area code sequence of addresses of IC-card memory block, judges the reading password with current IC-card in addition to the default storage area successively Whether the area code address of memory block matches, until determining and the area code address for reading password match;
It is described to determine memory block unit to be read using the memory block of the area code address for matching as memory block to be read.
In one embodiment, the IC-card of the present invention program reads system can also include deciphering module 63;
The deciphering module is decrypted to the current user information;
Specifically, the deciphering module is first decrypted to current user information when preparing to read current user information, Prevent situation about cannot read because current user information is encrypted.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more concrete and detailed, but and Therefore the restriction to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, some deformations and improvement can also be made, these belong to the guarantor of the present invention Shield scope.Therefore, the protection domain of patent of the present invention should be defined by claims.

Claims (12)

1. a kind of IC-card wiring method, it is characterised in that including step:
When current IC-card is issued, the card number of current IC-card is obtained, and the card number for inquiring about current IC-card whether there is;
If not existing, the area code address recorded during according to hair fastener before obtains memory block to be written;
User profile is write into the memory block to be written and the area code address of the memory block to be written is recorded;
In the IC-card that the current IC-card is first distribution,
Judge whether write password set in advance is matched with the area code address in the default storage area of current IC-card;
If so, using the default storage area as memory block to be written;
If it is not, according to the area code sequence of addresses of current IC-card memory block, judging that said write password removes institute with current IC-card successively Whether the area code address for stating the memory block outside default storage area matches, until determining the area code ground with said write password match Location;
Using the memory block of the area code address of matching as memory block to be written.
2. IC-card wiring method according to claim 1, it is characterised in that the area code recorded during hair fastener before the basis Address, obtaining memory block to be written includes step:
According to the area code address of the write memory block of a upper IC-card of record, by the area with the write memory block of a upper IC-card The memory block of number current IC-card of address identical is used as the first judgement memory block to be written;
Judge whether the write password set in advance area code address that judge memory block to be written with described first matches;
If so, using the described first judgement memory block to be written as memory block to be written;
If it is not, according to the area code sequence of addresses of current IC-card memory block, judging that said write password removes institute with current IC-card successively State whether the first area code address for judging the memory block outside memory block to be written matches, until determining and said write password The area code address matched somebody with somebody;
Using the memory block of the area code address of matching as memory block to be written;
Or
Number of times is recorded according to area code address, judges successively to deposit with the area code address current IC-card of identical for recording from more to few Whether the area code address of storage area is matched with write password set in advance, until determining the memory block with said write password match Area code address;
Using the memory block of the area code address of matching as memory block to be written.
3. IC-card wiring method according to claim 1 and 2, it is characterised in that before write user profile, acquisition is treated After write memory block, also including step:
The user profile is encrypted.
4. a kind of IC-card read method, it is characterised in that including step:
When current IC-card is read, read the information of the current IC-card and judge whether the current IC-card is effective;
If effectively, according to the area code address recorded when reading before, obtaining memory block to be read;
User profile is read in the memory block to be read and the area code address of the memory block to be read is recorded;
In the IC-card that the current IC-card is first reading,
Judge whether reading password set in advance is matched with the area code address in the default storage area of current IC-card;
If so, using the default storage area as memory block to be read;
If it is not, according to the area code sequence of addresses of current IC-card memory block, judging that the reading password removes institute with current IC-card successively Whether the area code address for stating the memory block outside default storage area matches, until determining and the area code ground for reading password match Location;
Using the memory block of the area code address of matching as memory block to be read.
5. IC-card read method according to claim 4, it is characterised in that the area code recorded when reading before the basis Address, obtaining memory block to be read includes step:
According to the area code address of the reading memory block of a upper IC-card of record, by the area with the reading memory block of a upper IC-card The memory block of number current IC-card of address identical is used as the first judgement memory block to be read;
Judge whether the reading password set in advance area code address that judge memory block to be read with described first matches;
If so, using the described first judgement memory block to be read as memory block to be read;
If it is not, according to the area code sequence of addresses of current IC-card memory block, judging that the reading password removes institute with current IC-card successively State whether the first area code address for judging the memory block outside memory block to be read matches, until determining and the reading password The area code address matched somebody with somebody;
Using the memory block of the area code address of matching as memory block to be read;
Or
Number of times is recorded according to area code address, judges successively to deposit with the area code address current IC-card of identical for recording from more to few Whether the area code address of storage area is matched with reading password set in advance, until determining and the memory block for reading password match Area code address;
Using the memory block of the area code address of matching as memory block to be read.
6. the IC-card read method according to claim 4 or 5, it is characterised in that before user profile is read, acquisition is treated After reading memory block, also including step:
The user profile is decrypted.
7. a kind of IC-card writing system, it is characterised in that including write obtain enquiry module, obtain memory block module to be written, Write logging modle;
Said write obtains enquiry module when current IC-card is issued, and obtains the card number of current IC-card, inquires about the card of current IC-card Number whether there is;
It is described to obtain memory block module to be written when said write obtains enquiry module and inquires about the card number of current IC-card and do not exist, The area code address recorded during according to hair fastener before, obtains memory block to be written;
User profile is write the memory block to be written and records the area of the memory block to be written by said write logging modle Number address;
It is described to obtain memory block module to be written and include judging matching unit, determine memory block unit to be written;
In the IC-card that the current IC-card is first distribution,
It is described to judge that matching unit directly judges the area code ground of write password set in advance and the default storage area of current IC-card Whether location matches;
It is described to determine described, memory block unit to be written judges that matching unit judges the area code in the default storage area of current IC-card When address matches, using the default storage area as memory block to be written;
It is described to judge matching unit after judging that the area code address in default storage area of current IC-card mismatches, according to current IC-card The area code sequence of addresses of memory block, judges storage of the said write password with current IC-card in addition to the default storage area successively Whether the area code address in area matches, until determining the area code address with said write password match;
It is described to determine memory block unit to be written using the memory block of the area code address for matching as memory block to be written.
8. IC-card writing system according to claim 7, it is characterised in that acquisition memory block module to be written includes Determine the first judgement memory block to be written unit, judge matching unit, determine memory block unit to be written;
The area code address for determining the first judgement memory block to be written unit according to the write memory block of a upper IC-card of record, To be written will sentence as first with the memory block of the current IC-card of area code address identical of the write memory block of a upper IC-card Disconnected memory block;
It is described to judge that matching unit judges the area code ground of write password set in advance and the described first judgement memory block to be written Whether location matches;
It is described to determine described, memory block unit to be written judges that matching unit judges the first judgement memory block to be written When area code address matches, using the described first judgement memory block to be written as memory block to be written;
It is described to judge matching unit when the area code address for judging the first judgement memory block to be written mismatches, according to current The area code sequence of addresses of IC-card memory block, judges that write password removes the described first judgement memory block to be written with current IC-card successively Outside the area code address of memory block whether match, until determining the area code address with said write password match;
It is described to determine memory block unit to be written using the memory block of the area code address for matching as memory block to be written;
Or
It is described to obtain memory block module to be written and include judging matching unit, determine memory block unit to be written;
The judgement matching unit is recorded number of times according to area code address, from more to few area code address phase for being judged with record successively Whether the area code address of the memory block of same current IC-card is matched with write password set in advance, until determining and said write The area code address of the memory block of password match;
It is described to determine memory block unit to be written using the memory block of the area code address for matching as memory block to be written.
9. the IC-card writing system according to claim 7 or 8, it is characterised in that also including encrypting module;
The encrypting module is encrypted to the user profile.
10. a kind of IC-card reads system, it is characterised in that including IC-card availability deciding module, obtain memory block mould to be read Block, reading logging modle;
The IC-card availability deciding module reads the information of current IC-card and judges whether the current IC-card is effective;
It is described to obtain memory block module to be read when the IC-card availability deciding module judges that the current IC-card is effective, root According to the area code address recorded when reading before, memory block to be read is obtained;
The reading logging modle reads user profile in the memory block to be read and records the memory block to be read Area code address;
It is described to obtain memory block module to be read and include judging matching unit, determine memory block unit to be read;
In the IC-card that the current IC-card is first reading,
It is described to judge that matching unit directly judges the area code ground for reading password and the default storage area of current IC-card set in advance Whether location matches;
It is described to determine described, memory block unit to be read judges that matching unit judges the area code in the default storage area of current IC-card When address matches, using the default storage area as memory block to be read;
It is described to judge matching unit when judging that the area code address in default storage area of current IC-card mismatches, according to current IC-card The area code sequence of addresses of memory block, judges the reading storage of the password with current IC-card in addition to the default storage area successively Whether the area code address in area matches, until determining and the area code address for reading password match;
It is described to determine memory block unit to be read using the memory block of the area code address for matching as memory block to be read.
11. IC-cards according to claim 10 read systems, it is characterised in that acquisition module bag in memory block to be read The first judgement memory block to be read unit of determination is included, matching unit is judged, is determined memory block unit to be read;
The area code address for determining the first judgement memory block to be read unit according to the write memory block of a upper IC-card of record, To be read will sentence as first with the memory block of the current IC-card of area code address identical of the reading memory block of a upper IC-card Disconnected memory block;
It is described to judge that matching unit judges the area code ground for reading password and the described first judgement memory block to be read set in advance Whether location matches;
It is described to determine memory block unit to be read in the area code for judging the matching unit judgement first judgement memory block to be read When address matches, using the described first judgement memory block to be read as memory block to be read;
It is described to judge matching unit when the area code address for judging the first judgement memory block to be read mismatches, according to current The area code sequence of addresses of IC-card memory block, judges the reading password with current IC-card except the described first judgement to be read is deposited successively Whether the area code address of the memory block outside storage area matches, until determining and the area code address for reading password match;
It is described to determine memory block unit to be read using the memory block of the area code address for matching as memory block to be read;
Or
It is described to obtain memory block module to be read and include judging matching unit, determine memory block unit to be read;
The judgement matching unit is recorded number of times according to area code address, from more to few area code address phase for being judged with record successively Whether the area code address of the memory block of same current IC-card is matched with reading password set in advance, until determining and the reading The area code address of the memory block of password match;
It is described to determine memory block unit to be read using the memory block of the area code address for matching as memory block to be read.
12. IC-cards according to claim 10 or 11 any one read system, it is characterised in that also including decryption mould Block;
The deciphering module is decrypted to the user profile.
CN201410536138.3A 2014-10-11 2014-10-11 IC-card wiring method and system, IC-card read method and system Active CN104318278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410536138.3A CN104318278B (en) 2014-10-11 2014-10-11 IC-card wiring method and system, IC-card read method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410536138.3A CN104318278B (en) 2014-10-11 2014-10-11 IC-card wiring method and system, IC-card read method and system

Publications (2)

Publication Number Publication Date
CN104318278A CN104318278A (en) 2015-01-28
CN104318278B true CN104318278B (en) 2017-03-29

Family

ID=52373507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410536138.3A Active CN104318278B (en) 2014-10-11 2014-10-11 IC-card wiring method and system, IC-card read method and system

Country Status (1)

Country Link
CN (1) CN104318278B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106096475B (en) * 2016-06-03 2018-11-16 日立楼宇技术(广州)有限公司 Card reading treating method and apparatus
CN106203191A (en) * 2016-07-06 2016-12-07 新智数字科技有限公司 A kind of data processing method and smart card
CN107945324A (en) * 2017-11-14 2018-04-20 广东安居宝数码科技股份有限公司 Card writing method, card reading method and the device of access control system
CN107958523A (en) * 2017-12-28 2018-04-24 克立司帝控制系统(上海)股份有限公司 A kind of high security access control system and control method
CN111144520B (en) * 2019-12-10 2023-09-29 惠州拓邦电气技术有限公司 IC card read-write method and device, storage medium and intelligent lock

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1225534A1 (en) * 1999-10-07 2002-07-24 Fujitsu Limited Ic card dealing system
CN101089877A (en) * 2006-06-14 2007-12-19 普天信息技术研究院 Method for dynamic aggregating multiple intelligent card function module based on memory card
CN102651079A (en) * 2012-04-01 2012-08-29 广州日滨科技发展有限公司 IC (integrated circuit) card management method occupying memory space for a short time and IC card management system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1225534A1 (en) * 1999-10-07 2002-07-24 Fujitsu Limited Ic card dealing system
CN101089877A (en) * 2006-06-14 2007-12-19 普天信息技术研究院 Method for dynamic aggregating multiple intelligent card function module based on memory card
CN102651079A (en) * 2012-04-01 2012-08-29 广州日滨科技发展有限公司 IC (integrated circuit) card management method occupying memory space for a short time and IC card management system

Also Published As

Publication number Publication date
CN104318278A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN104318278B (en) IC-card wiring method and system, IC-card read method and system
US8782433B2 (en) Data security
US8868929B2 (en) Method of mass storage memory management for large capacity universal integrated circuit cards
KR101107850B1 (en) Method, system and trusted service manager for securely transmitting an application to a mobile phone
US20050065891A1 (en) Method of granting DRM license to support plural devices
CN110447032A (en) Storage page between management program and virtual machine converts monitoring
EP2176808A2 (en) Mobile communication device and method for disabling applications
US8307181B2 (en) Apparatus and method for password protection of secure hidden memory
US10958665B2 (en) Consumer and business anti-counterfeiting services using identification tags
US9807595B2 (en) Terminal read with smart card update list
CN103021081A (en) Method for realizing communication and interaction between non-contact integrated circuit (IC) cards and card reading terminal on basis of multi-card fusion application
CN102024102A (en) Offline DRM certificate management and control method in embedded equipment
CN101930521A (en) File protecting method and device thereof
CN102651079B (en) IC (integrated circuit) card management method occupying memory space for a short time and IC card management system
CN104462893A (en) Method and device for managing multiple SE modules
CN101419651A (en) Electronic device and method with peripheral use right management function
TW201931269A (en) Privacy protection in financial transactions conducted on mobile platforms
US20120173424A1 (en) Payment system and method by identifying fingerprints
CN109447653B (en) IC card encryption method, device, terminal and storage medium
US20140354398A1 (en) Authenticating and Tracking a Valuable Asset Within the Confines of a Safe
JP2023081374A (en) Method and system for session-based secured access control on data storing system
CN108241732B (en) Electronic device, information processing method, and storage medium
US10824348B2 (en) Method of executing conditional data scrubbing inside a smart storage device
CN115935391A (en) Card manufacturing method, card issuing method, device, medium, and program product for IC card
EP1977551B1 (en) Binding a protected application program to shell code

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
CP03 Change of name, title or address

Address after: Nanxiang three road, Science City high tech Industrial Development Zone, Guangzhou city of Guangdong Province, No. 2 510660

Patentee after: Hitachi building technologies (Guangzhou) Co. Ltd.

Address before: Nanxiang Road three Guangzhou Science City 510660 high tech Industrial Development Zone, Guangdong city of Guangzhou province No. 2

Patentee before: Guangzhou Ropente Science and Technology Development Co., Ltd.

CP03 Change of name, title or address