CN108595344A - Electronically written method and device, electronic equipment and the storage medium of radio-frequency card - Google Patents

Electronically written method and device, electronic equipment and the storage medium of radio-frequency card Download PDF

Info

Publication number
CN108595344A
CN108595344A CN201711084643.9A CN201711084643A CN108595344A CN 108595344 A CN108595344 A CN 108595344A CN 201711084643 A CN201711084643 A CN 201711084643A CN 108595344 A CN108595344 A CN 108595344A
Authority
CN
China
Prior art keywords
data
radio
frequency card
item data
storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711084643.9A
Other languages
Chinese (zh)
Inventor
姜永胜
罗天煦
杨龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Emperor Technology Co Ltd
Original Assignee
Shenzhen Emperor Technology 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 Shenzhen Emperor Technology Co Ltd filed Critical Shenzhen Emperor Technology Co Ltd
Priority to CN201711084643.9A priority Critical patent/CN108595344A/en
Publication of CN108595344A publication Critical patent/CN108595344A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/0723Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips the record carrier comprising an arrangement for non-contact communication, e.g. wireless communication circuits on transponder cards, non-contact smart cards or RFIDs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides electronically written method and device, electronic equipment and the storage medium of a kind of radio-frequency card, this method includes:Obtain each item data to be written;Determine that the label, data length and storage initial address, the storage initial address of each item data are located in the memory block of radio-frequency card and are continuous;The label of each item data, data length and storage initial address are written to the memory block of the radio-frequency card, and each item data is written by the radio-frequency card according to the storage initial address of each item data.The present invention can save the memory space of radio-frequency card, improve memory space utilization rate.

Description

Electronically written method and device, electronic equipment and the storage medium of radio-frequency card
Technical field
The present invention relates to Technology of Radio Frequency Card field, more particularly to the electronically written method and device of a kind of radio-frequency card, electronics are set Standby and storage medium.
Background technology
Radio-frequency card is also known as non-contact IC card, since radio-frequency card is without mechanical or optical contact, that is, read-write so that penetrate Frequency card is more simple on reading and writing data relative to Contact Type Ic Card, and operation is also more convenient, therefore is widely used.
Currently, when data are written to radio-frequency card, need to be stored according to the data item to be written.It is to store name Example, according to the storage location of " surname " and the storage location of " name ", defines corresponding memory space.It such as to store party A-subscriber and B is used The name at family, and " surname " of party A-subscriber has 30 bytes, still " name " only has 4 bytes, " surname " of party B-subscriber to have 4 bytes, still " name " There are 30 bytes, needs all to define 30 bytes for " surname " and " name " at this time, total length is 60 bytes, this makes the length of each item data Degree must all predefine maximum length, cause the significant wastage of memory space.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill Art.
Invention content
Based on this, the embodiment of the present invention be designed to provide a kind of electronically written method and device of radio-frequency card, electronics is set Standby and storage medium can save the memory space of radio-frequency card, improve memory space utilization rate.
A kind of electronically written method of radio-frequency card, the method includes:
Obtain each item data to be written;
Determine the label, data length and storage initial address of each item data, the storage initial address, which is located at, penetrates In the memory block of frequency card and it is continuous;
The label of each item data, data length and storage initial address are written to the memory block of the radio-frequency card, and The radio-frequency card is written into each item data according to the storage initial address of each item data.
Further, described that the radio frequency is written into the label of each item data, data length and storage initial address The memory block of card, and each item data is written by the radio-frequency card according to the storage initial address of each item data and includes:
The label of each item data, data length, storage initial address and each item data are organized successively, obtained To the data of sequence;
The data of the sequence are sequentially written in the radio-frequency card, the label for preserving each item data, is deposited at length The memory block for storing up initial address is index area, and the memory block for preserving each item data is data field.
Further, the storage initial address of each item data of the determination includes:
Obtain i-th item data, wherein i is that the initial value of positive integer and i are 1;
If i is 1, by the zero storage initial address as the i-th item data;
If i is not 1, determine that the (i-1)-th item data stores according to the storage initial address and data length of the (i-1)-th item data End address, the storage end address of the (i-1)-th item data is added into a storage initial address as the i-th item data.
Further, the method further includes:
If receiving reading data command, the data of the radio-frequency card storage are obtained;
The label that the data stored according to the radio-frequency card include carries out data parsing.
Further, the label that the data according to radio-frequency card storage include carries out data parsing and includes:
Obtain every label that the data of the radio-frequency card storage include;
Storage initial address corresponding with the items label and data length are read from the memory block of the radio-frequency card;
From and the corresponding storage initial address of every label read data length corresponding with the items label Data.
Further, the method further includes:
If including image data and/or finger print data among each item data to be written, to image data and/or refer to Line data are compressed.
Further, the radio-frequency card is M1 cards, and the index area is the 0th sector of M1 cards, and the data field is M1 cards Interior other sectors in addition to the 0th sector.
A kind of electronic equipment, the electronic equipment include memory and processor, and the memory is for storing at least one A instruction, the processor is for executing at least one instruction to realize the electronically written of radio-frequency card described in above-mentioned any one The step of method.
A kind of readable storage medium storing program for executing, is stored thereon at least one instruction, and at least one instruction is executed by processor Described in the above-mentioned any one of Shi Shixian the step of the electronically written method of radio-frequency card.
A kind of electric writing device of radio-frequency card, described device include:
Acquisition module, for obtaining each item data to be written;
Determining module, label, data length and storage initial address for determining each item data are described to store Beginning address is located in the memory block of radio-frequency card and is continuous;
Data module is write, for will be penetrated described in the label of each item data, data length and storage initial address write-in The memory block of frequency card, and each item data is written by the radio-frequency card according to the storage initial address of each item data.
Further, write data module is specifically used for:
The label of each item data, data length, storage initial address and each item data are organized successively, obtained To the data of sequence;
The data of the sequence are sequentially written in the radio-frequency card, the label for preserving each item data, is deposited at length The memory block for storing up initial address is index area, and the memory block for preserving each item data is data field.
Further, it is determined that module determines that the storage initial address of each item data includes:
Obtain i-th item data, wherein i is that the initial value of positive integer and i are 1;
If i is 1, by the zero storage initial address as the i-th item data;
If i is not 1, determine that the (i-1)-th item data stores according to the storage initial address and data length of the (i-1)-th item data End address, the storage end address of the (i-1)-th item data is added into a storage initial address as the i-th item data.
Further, the acquisition module obtains the number of the radio-frequency card storage if being additionally operable to receive reading data command According to;
Described device further includes:
Data resolution module, the label that the data for being stored according to the radio-frequency card include carry out data parsing.
Further, the data resolution module is specifically used for:
Obtain every label that the data of the radio-frequency card storage include;
Storage initial address corresponding with the items label and data length are read from the memory block of the radio-frequency card;
From and the corresponding storage initial address of every label read data length corresponding with the items label Data.
Further, described device further includes:
Compression module, if for including image data and/or finger print data among each item data to be written, to figure As data and/or finger print data are compressed.
Further, the radio-frequency card is M1 cards, and the index area is the 0th sector of M1 cards, and the data field is M1 cards Interior other sectors in addition to the 0th sector.
The present invention is by obtaining each item data to be written;Determine label, data length and the storage of each item data Initial address, the storage initial address are located in the memory block of radio-frequency card and are continuous;By the label of each item data, The memory block of the radio-frequency card is written in data length and storage initial address, and according to the storage initial address of each item data The radio-frequency card is written into each item data.Since the data length for each item data being written into is write with storage initial address Enter radio-frequency card so that when depositing each item data, without predefined maximum length, be directly stored in data length and corresponding data , memory space is saved, and since the storage initial address of data is located in the memory block of radio-frequency card and is continuous, because This does not have the waste of memory space, realizes the memory space for saving radio-frequency card, improves the purpose of memory space utilization rate.
Description of the drawings
Fig. 1 is the flow chart of the electronically written method of radio-frequency card provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram that zero sector stores data as index area in M1 cards;
Fig. 3 is the structure chart of the electric writing device of radio-frequency card provided in an embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
For the ease of more fully understanding the present invention, the present invention is carried out further below in conjunction with related embodiment attached drawing It explains.The embodiment of the present invention is given in attached drawing, but the present invention is not limited in above-mentioned preferred embodiment.On the contrary, providing The purpose of these embodiments be in order to make disclosure of the invention face more fully.
Referring to Fig. 1, the flow chart of the electronically written method for radio-frequency card provided in an embodiment of the present invention, as shown in Figure 1, penetrating The electronically written method of frequency card may include following steps:
Step S10 obtains each item data to be written.
The wiring method of radio-frequency card of the present invention can be applied in rf read-write device, the rf read-write device collection At in card maker, wherein card maker can be the equipment for making radio-frequency card.
Specifically, the equipment for making radio-frequency card can have the fabrication of the functions such as hair fastener, write magnetic, electronics write-in, printing Equipment.Radio-frequency card of the present invention can be the arbitrary card with radio frequency recognition function, for example, common radio-frequency card has student Card, the ID card, bank card or other business application cards etc..
Above-mentioned each item data to be written is each item data of radio-frequency card to be written, and the different meanings transmitted according to information can To split data into different data item, the data that radio-frequency card is written can be one or more data.
Step S20 determines the label, data length and storage initial address of each item data, the storage starting point Location is located in the memory block of radio-frequency card and is continuous.
In the present invention, different data item can be distinguished according to the data label of data, the data label of data can To be the attribute of pre-defined each item data, therefore, the number of each item data can be obtained together after getting each item data According to label.For example, L1, L2, L3 can be respectively name, gender, this three item data of department data label.
, can be by the length of data acquisition to data after getting each item data, such as pass through acquisition string length Function obtain the length of data.
The storage initial address of each item data refers to the initial address that each item data stores in radio-frequency card.Wherein, it stores Initial address, which is continuous, refers to, just then stores next data after having been stored per item data, is not between data free Therefore byte can greatly improve the utilization rate of memory space.
The storage initial address of each item data can be specifically each item data relative to the opposite of initial storage Data Position Offset can be with according to the storage initial address of previous item data and data length since every item data is Coutinuous store Determine the storage initial address of latter item data.
Further, in other embodiments of the present invention, the storage initial address of each item data of the determination may include:
Obtain i-th item data, wherein i is that the initial value of positive integer and i are 1;
If i is 1, by the zero storage initial address as the i-th item data;
If i is not 1, determine that the (i-1)-th item data stores according to the storage initial address and data length of the (i-1)-th item data End address, the storage end address of the (i-1)-th item data is added into a storage initial address as the i-th item data.
Wherein, when obtaining the storage initial address of each item data, the initial address per item data can be determined successively.
For example, obtaining the first item data, due to not storing other data before the first item data, zero can be made For the storage initial address of the first item data, storage initial address of the present invention, can be relative displacement, by opposite Offset can facilitate the initial storage location of the location data when data are written, and can also facilitate and facilitate data when reading data Reading.Can be relative to the offset of the block of a certain sector such as above-mentioned zero initial position as the first item data Zero.
If getting the second item data, and the length of the first item data is 6 bytes, then the end of the first item data storage Address is 7, then the storage end address of the second item data is 8.
By above method, the initial storage address of each item data can be quickly obtained.
Depositing for the radio-frequency card is written in the label of each item data, data length and storage initial address by step S30 Storage area, and each item data is written by the radio-frequency card according to the storage initial address of each item data.
It can be by the label of data, the data length of data, the storage initial address of data and data point by step S30 Not Xie Ru radio-frequency card memory block, per item data the data length according to its own and in the memory block of radio-frequency card occupy pair The byte answered is reserved without carrying out memory space to each write-in data.If at this point, increasing a data item, Ke Yiji newly Record increases the length of item data newly, and increases item data newly in followed by preserving for the data being written before.Also it further facilitates The upgrading of data in radio-frequency card, without all changing the storage organizations of cards again.
Further, in other embodiments of the present invention, the step S30 is long by the label of each item data, data The memory block of the radio-frequency card is written in degree and storage initial address, and will be described according to the storage initial address of each item data Each item data is written the radio-frequency card and may include:
The label of each item data, data length, storage initial address and each item data are organized successively, obtained To the data of sequence;
The data of the sequence are sequentially written in the radio-frequency card, the label for preserving each item data, is deposited at length The memory block for storing up initial address is index area, and the memory block for preserving each item data is data field.
Wherein, if the label, data length and storage address of each item data are organized the category as each item data successively Property information, then first can carry out tissue, then the data that will be stored by the label, data length and storage address of each item data Carry out tissue.In group organization data, the label of data, the sequence of data length and storage address and the storage for storing data are stored Unanimously.For example, get data order be the first item data be name, the second item data is gender, third item data is identity Card number, then in group organization data, according to the first item data be name, the second item data is gender, third item data is identity card Number sequential organization, and per item data storage sequence be also followed successively by name, gender, identification card number.
It is also possible to not according to, organize organization data in other orders, for example, by gender item be placed in name item data it Afterwards, but the sequence of data label, data length and storage address is organized to need the sequence consensus with group organization data.
The data for the sequence organized are sequentially written in radio-frequency card, then radio-frequency card stores the attribute information of data (such as respectively The storing initial address of the label of data, the length of data, data) and data concrete numerical value.It can will then store the length of data The area of the attribute informations such as degree stores the region of the occurrence of data as the data for preserving data as the index area for preserving data Area.
Specific implementation when, can processing data memory in carry out data organization, organize organization data process be according to Preset sequence obtains the process of the attribute information of each item data, and can be realized the mark of each item data by structure Label, data length, storage initial address and each item data are organized successively.
Further, in other embodiments of the present invention, the radio-frequency card is M1 cards, and the index area is the 0 of M1 cards Sector, the data field are other sectors in addition to the 0th sector in M1 cards.
Wherein, M1 cards are one kind of existing chip, can be to the electronically written side of M1 cards application radio-frequency card of the present invention Method sticks into row write operation to M1.
Specifically, M1 cards are divided into 16 sectors, each sector is made of 4 pieces (blocks 0 to block 3).The block 0 of usual 0th sector is used It is cured when storage manufacturer data, manufacture, it can not change, block 0 to the block 3 of other each sectors can be used for storing data, 3 bit control block of block of each sector includes password, storage control.Meanwhile each sector password and storage control be only Vertical, respective password and storage control can be set according to actual needs.When being written and read to M1 cards, can by block into Row read-write.
As described in Figure 2, Fig. 2 is the schematic diagram that zero sector stores data as index area in M1 cards.Wherein, the L1 in Fig. 2 The label identified to L19 per item data can also store the starting point of every item data wherein the length of every item data can be stored Location.The block 3 for the sector anticipated shown in Fig. 2 is that password and storage control.
Further, in other embodiments of the present invention, can also reading data be carried out to radio-frequency card by the following method:
If receiving reading data command, the data of the radio-frequency card storage are obtained;The data stored according to the radio-frequency card The label for including carries out data parsing.
Radio-frequency card into after row write data, can also be read out radio-frequency card.Specifically get radio-frequency card Data parsing is carried out according to the label that data include after data.
The label that the data that the basis is merged card storage include carries out data parsing:
Obtain every label that the data of the radio-frequency card storage include;
Storage initial address corresponding with the items label and data length are read from the memory block of the radio-frequency card;
From and the corresponding storage initial address of every label read data length corresponding with the items label Data.
Since every item data is defined by data label, every item number can be obtained according to data label According to data length and initial address, and read per item data.
Further, in other embodiments of the present invention, the electronically written method of radio-frequency card may also include:
If including image data and/or finger print data among each item data to be written, to image data and/or refer to Line data are compressed.
Since image data and finger print data need to occupy larger memory space, it can be to image data and fingerprint Data carry out compression combing, such as carry out limited compression to finger print data, are pressed with JP2000 compression algorithms image data Contracting etc..Then to display data after reading data, then need to be solved according to the corresponding decoding process of compression algorithm Code, to complete the display of data.A kind of electronically written method of radio-frequency card provided in this embodiment is by obtaining items to be written Data;Determine that the label, data length and storage initial address, the storage initial address of each item data are located at radio-frequency card Memory block in and be continuous;The radio frequency is written into the label of each item data, data length and storage initial address The memory block of card, and each item data is written by the radio-frequency card according to the storage initial address of each item data.Due to Radio-frequency card is written in the data length and storage initial address for each item data being written into so that when depositing each item data, nothing Maximum length need to be predefined, data length and corresponding data is directly stored in, saves memory space, and depositing due to data Storage initial address is located in the memory block of radio-frequency card and is continuous, therefore the not waste of memory space, realizes saving and penetrates The memory space of frequency card, improves the purpose of memory space utilization rate.
Referring to Fig. 2, the structural schematic diagram of the electric writing device for radio-frequency card provided in an embodiment of the present invention, the radio frequency The electric writing device of card includes acquisition module 310, determining module 320 and writes data module 330.
Acquisition module 310, for obtaining each item data to be written.
The writing station of radio-frequency card of the present invention can be applied in rf read-write device, the rf read-write device collection At in card maker, wherein card maker can be the equipment for making radio-frequency card.
Specifically, the equipment for making radio-frequency card can have the fabrication of the functions such as hair fastener, write magnetic, electronics write-in, printing Equipment.Radio-frequency card of the present invention can be the arbitrary card with radio frequency recognition function, for example, common radio-frequency card has student Card, the ID card, bank card or other business application cards etc..
Above-mentioned each item data to be written is each item data of radio-frequency card to be written, and the different meanings transmitted according to information can To split data into different data item, the data that radio-frequency card is written can be one or more data.
Determining module 320, label, data length and storage initial address for determining each item data are described to deposit Storage initial address is located in the memory block of radio-frequency card and is continuous.
In the present invention, different data item can be distinguished according to the data label of data, the data label of data can To be the attribute of pre-defined each item data, therefore, the number of each item data can be obtained together after getting each item data According to label.For example, L1 works, L2, L3 can be respectively name, gender, this three item data of department data label.
, can be by the length of data acquisition to data after getting each item data, such as pass through acquisition string length Function obtain the length of data.
The storage initial address of each item data refers to the initial address that each item data stores in radio-frequency card.Wherein, it stores Initial address, which is continuous, refers to, just then stores next data after having been stored per item data, is not between data free Therefore byte can greatly improve the utilization rate of memory space.
The storage initial address of each item data can be specifically each item data relative to the opposite of initial storage Data Position Offset can be with according to the storage initial address of previous item data and data length since every item data is Coutinuous store Determine the storage initial address of latter item data.
Further, in other embodiments of the present invention, the determining module 320 determines the storage starting point of each item data Location may include:
Obtain i-th item data, wherein i is that the initial value of positive integer and i are 1;
If i is 1, by the zero storage initial address as the i-th item data;
If i is not 1, determine that the (i-1)-th item data stores according to the storage initial address and data length of the (i-1)-th item data End address, the storage end address of the (i-1)-th item data is added into a storage initial address as the i-th item data.
Wherein, when obtaining the storage initial address of each item data, the initial address per item data can be determined successively.
For example, obtaining the first item data, due to not storing other data before the first item data, zero can be made For the storage initial address of the first item data, storage initial address of the present invention, can be relative displacement, by opposite Offset can facilitate the initial storage location of the location data when data are written, and can also facilitate and facilitate data when reading data Reading.Can be relative to the offset of the block of a certain sector such as above-mentioned zero initial position as the first item data Zero.
If getting the second item data, and the length of the first item data is 6 bytes, then the end of the first item data storage Address is 7, then the storage end address of the second item data is 8.
By above method, the initial storage address of each item data can be quickly obtained.
Write data module 330, for will the label of each item data, data length and storage initial address write-in described in The memory block of radio-frequency card, and each item data is written by the radio-frequency card according to the storage initial address of each item data.
By write data module 330 can by the label of data, the data length of data, data storage initial address and Data are respectively written into the memory block of radio-frequency card, per item data the data length according to its own and in the memory block of radio-frequency card Corresponding byte is occupied, is reserved without carrying out memory space to each write-in data.If at this point, increase newly a data item, The length of newly-increased item data can be recorded, and item data is increased newly in followed by preserving for the data being written before.Also into one Step facilitates the upgrading of data in radio-frequency card, without all changing the storage organization of card again.
Further, in other embodiments of the present invention, write data module 330 is specifically used for:
The label of each item data, data length, storage initial address and each item data are organized successively, obtained To the data of sequence;
The data of the sequence are sequentially written in the radio-frequency card, the label for preserving each item data, is deposited at length The memory block for storing up initial address is index area, and the memory block for preserving each item data is data field.
Wherein, if the label, data length and storage address of each item data are organized the category as each item data successively Property information, then first can carry out tissue, then the data that will be stored by the label, data length and storage address of each item data Carry out tissue.In group organization data, the label of data, the sequence of data length and storage address and the storage for storing data are stored Unanimously.For example, get data order be the first item data be name, the second item data is gender, third item data is identity Card number, then in group organization data, according to the first item data be name, the second item data is gender, third item data is identity card Number sequential organization, and per item data storage sequence be also followed successively by name, gender, identification card number.
It is also possible to not according to, organize organization data in other orders, for example, by gender item be placed in name item data it Afterwards, but the sequence of data label, data length and storage address is organized to need the sequence consensus with group organization data.
The data for the sequence organized are sequentially written in radio-frequency card, then radio-frequency card stores the attribute information of data (such as respectively The storing initial address of the label of data, the length of data, data) and data concrete numerical value.It can will then store the length of data The area of the attribute informations such as degree stores the region of the occurrence of data as the data for preserving data as the index area for preserving data Area.
Specific implementation when, can processing data memory in carry out data organization, organize organization data process be according to Preset sequence obtains the process of the attribute information of each item data, and can be realized the mark of each item data by structure Label, data length, storage initial address and each item data are organized successively.
Further, in other embodiments of the present invention, the radio-frequency card is M1 cards, and the index area is the 0 of M1 cards Sector, the data field are other sectors in addition to the 0th sector in M1 cards.
Wherein, M1 cards are one kind of existing chip, can be to the electronically written side of M1 cards application radio-frequency card of the present invention Method sticks into row write operation to M1.
Specifically, M1 cards are divided into 16 sectors, each sector is made of 4 pieces (blocks 0 to block 3).The block 0 of usual 0th sector is used It is cured when storage manufacturer data, manufacture, it can not change, block 0 to the block 3 of other each sectors can be used for storing data, 3 bit control block of block of each sector includes password, storage control.Meanwhile each sector password and storage control be only Vertical, respective password and storage control can be set according to actual needs.When being written and read to M1 cards, can by block into Row read-write.
As described in Figure 2, Fig. 2 is the schematic diagram that zero sector stores data as index area in M1 cards.Wherein, the L1 in Fig. 2 The label identified to L19 per item data can also store the starting point of every item data wherein the length of every item data can be stored Location.The block 3 for the sector anticipated shown in Fig. 2 is that password and storage control.
Further, in other embodiments of the present invention, the acquisition module and data resolution module pair can also be passed through Radio-frequency card reads the data stored in radio-frequency card:
The acquisition module 310 obtains the data of the radio-frequency card storage if being additionally operable to receive reading data command.
Data resolution module, the label that the data for being stored according to the radio-frequency card include carry out data parsing.
Radio-frequency card into after row write data, can also be read out radio-frequency card.Specifically get radio-frequency card Data parsing is carried out according to the label that data include after data.
The data resolution module is specifically used for:
Obtain every label that the data of the radio-frequency card storage include;
Storage initial address corresponding with the items label and data length are read from the memory block of the radio-frequency card;
From and the corresponding storage initial address of every label read data length corresponding with the items label Data.
Since every item data is defined by data label, every item number can be obtained according to data label According to data length and initial address, and read per item data.
Further, in other embodiments of the present invention, the electric writing device of radio-frequency card may also include:
Compression module, if for including image data and/or finger print data among each item data to be written, to figure As data and/or finger print data are compressed.
Since image data and finger print data need to occupy larger memory space, it can be to image data and fingerprint Data carry out compression combing, such as carry out limited compression to finger print data, are pressed with JP2000 compression algorithms image data Contracting etc..Then to display data after reading data, then need to be solved according to the corresponding decoding process of compression algorithm Code, to complete the display of data.One of ordinary skill in the art will appreciate that realizing the whole in above-described embodiment method or portion It is that relevant hardware can be instructed to complete by program step by step, it is computer-readable that the program can be stored in one In storage medium, which includes the steps that a kind of electronically written method of above-mentioned radio-frequency card when being executed.Described can be read is deposited Storage media is such as:ROM/RAM, magnetic disc, CD etc..
The present invention also provides a kind of electronic equipments of electronically written method that realizing radio-frequency card.
The electronic equipment be it is a kind of can according to the instruction for being previously set or storing, it is automatic carry out numerical computations and/or The equipment of information processing, hardware include but not limited to microprocessor, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), number Word processing device (Digital Signal Processor, DSP), embedded device etc..
The electronic equipment can be the equipment for writing data that any type can carry out radio-frequency card.
The electronic equipment includes at least one sending device, at least one processor, at least one processor, at least one A reception device and at least one communication bus.Wherein, the communication bus is logical for realizing the connection between these components Letter.
Wherein, the reception device and the sending device can be wired sending ports, or wireless device, example Such as include antenna assembly, for other equipment into row data communication.
The processor may include one or more microprocessor, digital processing unit.
The memory is for storing program code.The memory can be smart media card (smart media Card), the storage facilities such as safe digital card (secure digital card), flash memory cards (flash card).
Preferably, the processor can call the program code stored in memory to execute relevant function.For example, figure Modules described in 3 are stored in the program code in the memory, and performed by the processor, to realize one The electronically written method of kind radio-frequency card.
Above embodiment described the technical principles of the present invention, and the description is merely to explain the principles of the invention, and It cannot be construed to the limitation of the scope of the present invention in any way.Based on the explanation herein, those skilled in the art is not required to Other specific implementation modes of the present invention can be associated by paying performing creative labour, these modes fall within the present invention's In protection domain.

Claims (10)

1. a kind of electronically written method of radio-frequency card, which is characterized in that the method includes:
Obtain each item data to be written;
Determine that the label, data length and storage initial address, the storage initial address of each item data are located at radio-frequency card Memory block in and be continuous;
The label of each item data, data length and storage initial address are written into the memory block of the radio-frequency card, and according to The radio-frequency card is written in each item data by the storage initial address of each item data.
2. the method as described in claim 1, which is characterized in that described by the label of each item data, data length and to deposit Storage initial address is written the memory block of the radio-frequency card, and according to the storage initial address of each item data by each item number Include according to the radio-frequency card is written:
The label of each item data, data length, storage initial address and each item data are organized successively, obtained suitable The data of sequence;
The data of the sequence are sequentially written in the radio-frequency card, the label for preserving each item data, stores length The memory block of beginning address is index area, and the memory block for preserving each item data is data field.
3. the method as described in claim 1, which is characterized in that the storage initial address of each item data of determination includes:
Obtain i-th item data, wherein i is that the initial value of positive integer and i are 1;
If i is 1, by the zero storage initial address as the i-th item data;
If i is not 1, the end of the (i-1)-th item data storage is determined according to the storage initial address and data length of the (i-1)-th item data The storage end address of (i-1)-th item data is added a storage initial address as the i-th item data by tail address.
4. method as claimed any one in claims 1 to 3, which is characterized in that the method further includes:
If receiving reading data command, the data of the radio-frequency card storage are obtained;
The label that the data stored according to the radio-frequency card include carries out data parsing.
5. method as claimed in claim 4, which is characterized in that the mark that the data according to radio-frequency card storage include Label carry out data parsing:
Obtain every label that the data of the radio-frequency card storage include;
Storage initial address corresponding with the items label and data length are read from the memory block of the radio-frequency card;
From and the corresponding storage initial address of every label read the data of data length corresponding with the items label.
6. method as claimed any one in claims 1 to 3, which is characterized in that the method further includes:
If including image data and/or finger print data among each item data to be written, to image data and/or fingerprint number According to being compressed.
7. such as claim 2 the method, which is characterized in that the radio-frequency card is M1 cards, and the index area is the of M1 cards Zero sector, the data field are other sectors in addition to the 0th sector in M1 cards.
8. a kind of electronic equipment, which is characterized in that the electronic equipment includes memory and processor, and the memory is for depositing At least one instruction is stored up, the processor is for executing at least one instruction to realize any one of claim 1-7 The step of described method.
9. a kind of readable storage medium storing program for executing is stored thereon at least one instruction, which is characterized in that at least one instruction is located Manage the step of realizing the method as described in any one of claim 1-7 when device executes.
10. a kind of electric writing device of radio-frequency card, which is characterized in that described device includes:
Acquisition module, for obtaining each item data to be written;
Determining module, label, data length and storage initial address for determining each item data, the storage starting point Location is located in the memory block of radio-frequency card and is continuous;
Data module is write, for the radio-frequency card to be written in the label of each item data, data length and storage initial address Memory block, and each item data is written by the radio-frequency card according to the storage initial address of each item data.
CN201711084643.9A 2017-11-07 2017-11-07 Electronically written method and device, electronic equipment and the storage medium of radio-frequency card Pending CN108595344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711084643.9A CN108595344A (en) 2017-11-07 2017-11-07 Electronically written method and device, electronic equipment and the storage medium of radio-frequency card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711084643.9A CN108595344A (en) 2017-11-07 2017-11-07 Electronically written method and device, electronic equipment and the storage medium of radio-frequency card

Publications (1)

Publication Number Publication Date
CN108595344A true CN108595344A (en) 2018-09-28

Family

ID=63633097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711084643.9A Pending CN108595344A (en) 2017-11-07 2017-11-07 Electronically written method and device, electronic equipment and the storage medium of radio-frequency card

Country Status (1)

Country Link
CN (1) CN108595344A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112987673A (en) * 2021-04-22 2021-06-18 飞天诚信科技股份有限公司 Method and system for producing visual card

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120112889A1 (en) * 2009-07-24 2012-05-10 Electronics And Telecommunications Research Institute Operation method of an rfid tag, operation method of an rfid reader, rfid tag, and rfid reader
CN104156748A (en) * 2014-08-20 2014-11-19 广东欧珀移动通信有限公司 Method for reading and writing label and device thereof
CN104281529A (en) * 2013-07-12 2015-01-14 北京金辉东方科技有限公司 High-capacity RFID (radio frequency identification device) electronic tag dynamic partitioning method as well as electronic tag and application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120112889A1 (en) * 2009-07-24 2012-05-10 Electronics And Telecommunications Research Institute Operation method of an rfid tag, operation method of an rfid reader, rfid tag, and rfid reader
CN104281529A (en) * 2013-07-12 2015-01-14 北京金辉东方科技有限公司 High-capacity RFID (radio frequency identification device) electronic tag dynamic partitioning method as well as electronic tag and application
CN104156748A (en) * 2014-08-20 2014-11-19 广东欧珀移动通信有限公司 Method for reading and writing label and device thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙志卓等: "连续数据存储中面向RAID5的写操作优化设计", 《计算机研究与发展》 *
陈元春等: "《实用数据结构基础》", 30 September 2015, 中国铁道出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112987673A (en) * 2021-04-22 2021-06-18 飞天诚信科技股份有限公司 Method and system for producing visual card

Similar Documents

Publication Publication Date Title
US10366275B2 (en) Method and device for improving fingerprint template, and terminal device
CN106056191B (en) Multifrequency transponder
JPS6228297A (en) Integrated circuit card having reading means of update information and hysteresis information
US10395130B2 (en) Fingerprint registration method and device and terminal thereof
CN108388598A (en) Electronic device, date storage method and storage medium
RU2006130300A (en) DATA RECORDING DEVICE, METHOD AND PROGRAM FOR REMEMBERING PORTABLE TERMINAL DEVICE
CN107657051A (en) A kind of generation method of picture tag, terminal device and storage medium
US20140156913A1 (en) Data processing method, memory controller and memory storage apparatus
US8645624B2 (en) Portable electronic device, smartcard and control method for portable electronic device
CN103258173A (en) Wearable device, write-in system and write-in method for card
CN104156748A (en) Method for reading and writing label and device thereof
CN108595344A (en) Electronically written method and device, electronic equipment and the storage medium of radio-frequency card
JP2529868B2 (en) Recording method of information recording medium
CN101499124B (en) Method, system and apparatus for read-write operation of smart card
CN112379835A (en) OOB area data extraction method, terminal device and storage medium
FR2918483A1 (en) PORTABLE ELECTRONIC DEVICE AND FILE MANAGEMENT METHOD FOR USE IN A PORTABLE ELECTRONIC DEVICE
US20110231617A1 (en) Portable electronic apparatus and method of controlling a portable electronic apparatus
CN107423804A (en) Smart card, smart card administrative system and management method
CN102301369A (en) Data storage device access method and device
CN105162782A (en) User biological characteristic storage method, device and terminal
CN201594285U (en) Production line double-card binding RFID station reader
CN107454953B (en) EMV (empirical mode decomposition) implementation method and device
CN103824040A (en) Self-service material taking device based on radio frequency identification device (RFID) and using method thereof
US3581285A (en) Keyboard to memory peripheral device
CN112601040A (en) Video storage method and device, network camera and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180928