CN104156748B - Method for reading and writing label and device thereof - Google Patents

Method for reading and writing label and device thereof Download PDF

Info

Publication number
CN104156748B
CN104156748B CN201410412092.4A CN201410412092A CN104156748B CN 104156748 B CN104156748 B CN 104156748B CN 201410412092 A CN201410412092 A CN 201410412092A CN 104156748 B CN104156748 B CN 104156748B
Authority
CN
China
Prior art keywords
nfc
data
reading apparatus
label
nfc label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410412092.4A
Other languages
Chinese (zh)
Other versions
CN104156748A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410412092.4A priority Critical patent/CN104156748B/en
Publication of CN104156748A publication Critical patent/CN104156748A/en
Application granted granted Critical
Publication of CN104156748B publication Critical patent/CN104156748B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a method for reading and writing a label and a device thereof. The method comprises the steps: (1) when near field communication (NFC) card reading equipment enters into the sensing range of an NFC label, the NFC card reading equipment determines the operation type of operating the NFC label, (2) if the operation type is a data reading type, the NFC card reading equipment obtains the times of reading data from the NFC label by the NFC card reading equipment according to the counting circuit of the NFC label, (3) the NFC card reading equipment determines the address information of the read data from the NFC label by the NFC card reading equipment according to the numbers, and (4) the NFC card reading equipment reads data from the NFC label according to the determined address information. According to the technical scheme of the embodiment of the invention, the application range of the NFC label can be expanded.

Description

A kind of method and device of read write tag
Technical field
The present invention relates to radio network technique field, and in particular to a kind of method and device of read write tag.
Background technology
Near field communication (NFC) (NFC) has become one of basic function of mobile terminal, used as the basic training of NFC One of can, the application scenarios that mobile terminal reads NFC label are also more and more.In people's daily life, can using NFC label With record information or logging software operating process, can greatly simplify the operation of mobile terminal.
But at present NFC label has some limitations when in use, when data are write, it is necessary to disposable all to write Enter, it is impossible to write several times, be also disposable all readings, it is impossible to read different values by several times when data are read, it is this Limitation has a strong impact on the range of application of NFC label, and then affects promoting the use of for NFC label.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of method and device of read write tag, to extend the application of NFC label Scope.
In a first aspect, a kind of method of reading label is embodiments provided, including:
When near field communication (NFC) NFC card-reading apparatus enter the induction range of NFC label, the NFC Card Readers set It is standby to determine the action type operated to the NFC label;
If the action type is reading data type, counting circuit of the NFC card-reading apparatus according to the NFC label Obtain the number of times that the NFC card-reading apparatus have read data from the NFC label;
The NFC card-reading apparatus determine that the NFC card-reading apparatus read data from the NFC label according to the number of times Address information;
NFC card-reading apparatus address information according to determined by reads data from the NFC label.
Second aspect, the embodiment of the present invention additionally provides a kind of method for writing label, including:
When near field communication (NFC) NFC card-reading apparatus enter the induction range of NFC label, the NFC Card Readers set It is standby to determine the action type operated to the NFC label;
If the action type is to write data type, counting circuit of the NFC card-reading apparatus according to the NFC label The NFC card-reading apparatus are obtained to the number of times of written data in the NFC label;
The NFC card-reading apparatus determine that the NFC card-reading apparatus write data in the NFC label according to the number of times Address information;
The data of the NFC card-reading apparatus are write the NFC by NFC card-reading apparatus address information according to determined by Label.
The third aspect, the embodiment of the present invention additionally provides a kind of method of read write tag, including:
When near field communication (NFC) NFC card-reading apparatus enter the induction range of NFC label, the NFC Card Readers set It is standby to determine the action type operated to the NFC label;
If the action type is to read data type, the NFC card-reading apparatus are counted according to the first of the NFC label Circuit obtains the number of times that the NFC card-reading apparatus have read data from the NFC label;
The NFC card-reading apparatus determine that the NFC card-reading apparatus read data from the NFC label according to the number of times Address information;
NFC card-reading apparatus address information according to determined by reads data from the NFC label;
If the action type is to write data type, the NFC card-reading apparatus are counted according to the second of the NFC label Circuit obtains number of times of the NFC card-reading apparatus to written data in the NFC label;
The NFC card-reading apparatus determine that the NFC card-reading apparatus write data in the NFC label according to the number of times Address information;
The data of the NFC card-reading apparatus are write the NFC by NFC card-reading apparatus address information according to determined by Label.
Fourth aspect, the embodiment of the present invention additionally provides a kind of device of reading label, including:
Action type acquiring unit, for entering the sensing of NFC label when near field communication (NFC) NFC card-reading apparatus During scope, the NFC card-reading apparatus determine the action type operated to the NFC label;
Number of times acquiring unit, if for the action type to read data type, the NFC card-reading apparatus are according to described The counting circuit of NFC label obtains the number of times that the NFC card-reading apparatus have read data from the NFC label;
Address information determining unit, for the NFC card-reading apparatus according to the number of times determine the NFC card-reading apparatus from The address information of data is read in the NFC label;
Data-reading unit, for the NFC card-reading apparatus, the address information according to determined by is read from the NFC label Fetch data.
5th aspect, the embodiment of the present invention additionally provides a kind of device for writing label, including:
Action type acquiring unit, for entering the sensing of NFC label when near field communication (NFC) NFC card-reading apparatus During scope, the NFC card-reading apparatus determine the action type operated to the NFC label;
Write number of times acquiring unit, if for the action type to write data type, the NFC card-reading apparatus according to The counting circuit of the NFC label obtains number of times of the NFC card-reading apparatus to written data in the NFC label;
Address information determining unit, for the NFC card-reading apparatus according to the number of times determine the NFC card-reading apparatus to The address information of data is write in the NFC label;
Data write unit, for the NFC card-reading apparatus according to determined by address information by the NFC card-reading apparatus Data write the NFC label.
6th aspect, the embodiment of the present invention additionally provides a kind of device of read write tag, including:
Action type acquiring unit, for entering the sensing of NFC label when near field communication (NFC) NFC card-reading apparatus During scope, the NFC card-reading apparatus determine the action type operated to the NFC label;
Reading times acquiring unit, if for the action type for read data type, the NFC card-reading apparatus according to First counting circuit of the NFC label obtains the number of times that the NFC card-reading apparatus have read data from the NFC label;
Address information determining unit is read, the number of times for having read data according to for the NFC card-reading apparatus determines The NFC card-reading apparatus read the address information of data from the NFC label;
Data-reading unit, for the NFC card-reading apparatus, the address information according to determined by is read from the NFC label Fetch data;
Write number of times acquiring unit, if for the action type to write data type, the NFC card-reading apparatus according to Second counting circuit of the NFC label obtains number of times of the NFC card-reading apparatus to written data in the NFC label;
Writing address information determination unit, determines for the NFC card-reading apparatus according to the number of times of the written data The NFC card-reading apparatus write the address information of data in the NFC label;
Data write unit, for the NFC card-reading apparatus according to determined by address information by the NFC card-reading apparatus Data write the NFC label.
The technical scheme of the embodiment of the present invention is used to record the NFC label by increasing enumerator inside NFC label In read the number of times of data or the number of times of written data, or used respectively by increasing by two enumerators inside NFC label In the number of times that read the number of times and written data of data in the NFC label is recorded, can realize carrying out repeatedly NFC label Read or repeatedly write, or repeatedly read and repeatedly write, the range of application of NFC label can be extended.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to institute in embodiment of the present invention description The accompanying drawing that needs are used is briefly described, it should be apparent that, drawings in the following description are only some enforcements of the present invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to present invention enforcement The content of example and these accompanying drawings obtain other accompanying drawings.
Fig. 1 is the method flow diagram of the reading label described in the embodiment of the present invention one;
Fig. 2 is the method flow diagram of the reading label described in the embodiment of the present invention two;
Fig. 3 is the method flow diagram for writing label described in the embodiment of the present invention three;
Fig. 4 is the method flow diagram for writing label described in the embodiment of the present invention four;
Fig. 5 is the method flow diagram of the read write tag described in the embodiment of the present invention five;
Fig. 6 is the method flow diagram of the read write tag described in the embodiment of the present invention six;
Fig. 7 is a kind of NFC label internal circuit schematic diagram described in the embodiment of the present invention six;
Fig. 8 is another kind of NFC label internal circuit schematic diagram described in the embodiment of the present invention six;
Fig. 9 is the structured flowchart of the device of the reading label described in the embodiment of the present invention seven;
Figure 10 is the structured flowchart of the device for writing label described in the embodiment of the present invention eight;
Figure 11 is the structured flowchart of the device of the read write tag described in the embodiment of the present invention nine.
Specific embodiment
For make present invention solves the technical problem that, the technical scheme that adopts and the technique effect that reaches it is clearer, below Accompanying drawing will be combined to be described in further detail the technical scheme of the embodiment of the present invention, it is clear that described embodiment is only It is a part of embodiment of the invention, rather than the embodiment of whole.Based on the embodiment in the present invention, those skilled in the art exist The every other embodiment obtained under the premise of creative work is not made, the scope of protection of the invention is belonged to.
Further illustrate technical scheme below in conjunction with the accompanying drawings and by specific embodiment.
Embodiment one
Fig. 1 is the method flow diagram of the reading label that the embodiment of the present invention one is provided, and the present embodiment is applicable to NFC reader The situation of the NFC label of counting circuit that reading includes, the method described in the present embodiment can be by being configured in NFC card-reading apparatus Reading label device performing, as shown in figure 1, the method for the reading label described in the present embodiment includes:
Step S101, when near field communication (NFC) NFC card-reading apparatus enter NFC label induction range when, it is described NFC card-reading apparatus determine the action type operated to the NFC label.
The action type includes reading data type and writes data type.The NFC card-reading apparatus determine to be marked to the NFC The action type that label are operated may include various situations, can be obtained according to the characteristic of NFC label, set also dependent on NFC Card Readers Standby setting can also be obtained obtaining according to preset rules.
If the NFC label is read only tag, the NFC card-reading apparatus directly determine to be grasped to the NFC label The action type of work is reading data type;If the NFC label is only to write label, it is right that the NFC card-reading apparatus directly determine The action type that the NFC label is operated is to write data type.
If the NFC card-reading apparatus current state is to write data mode, the NFC card-reading apparatus are determined to the NFC The action type that label is operated is to write data type;If the NFC card-reading apparatus current state is reading data mode, institute Stating NFC card-reading apparatus determines the action type operated to the NFC label to read data type;
If presetting, the NFC card-reading apparatus periodically continuously read and write data preset times and reading data are preset Number of times, then the operation class that the NFC card-reading apparatus are operated according to current read-write total degree determination to the NFC label Type.
If, to read data type, the NFC card-reading apparatus are according to the NFC label for step S102, the action type Counting circuit obtain the number of times that the NFC card-reading apparatus have read data from the NFC label.
Step S103, the NFC card-reading apparatus determine the NFC card-reading apparatus from the NFC label according to the number of times The middle address information for reading data.
Specifically, determine that the NFC card-reading apparatus read the address letter of data from the NFC label according to the number of times The operation of breath may include:The number of times is carried out into modulus computing with the frequency threshold value that can read of the NFC label, is transported according to modulus Calculate result and determine that the NFC card-reading apparatus read the address information of data from the NFC label.
If the data that can read frequency threshold value to be stored in 10, i.e. NFC label of NFC label are whole by 10 times Take out, when reading for the 11st time, the original position that the NFC label is jumped back to again starts to read, and the rest may be inferred.Therefore, it is current to read Take number of times and NFC label can read number of times modulus, the as sequence number fetched data that continues of the NFC label.For example, the NFC It is 52 that card-reading apparatus have read the number of times of data from the NFC label, then current reading times are equal to for 53,53 with 10 modulus 3, then currently continue the serial number 3 fetched data.
Acquisition is currently continued after the sequence number fetched data, you can is obtained this according to the storage mode of data in NFC label and is continued The address information fetched data.
If the data fixed length storage in NFC label, for example each data length to be read is 1K, and starts to deposit from 0 address Storage, then the address fetched data of continuing of serial number 3 is between 2K to 3K-1, if the elongated storage of data in NFC label, basis The sequence number that default memory space list fetches data according to continuing obtains the address fetched data of continuing.
Step S104, NFC card-reading apparatus address information according to determined by read data from the NFC label.
When the NFC card-reading apparatus determine the action type operated to the NFC label to read data type, The application software for reading data is opened at NFC card-reading apparatus end, and address information reads the data in NFC label according to determined by.
The technical scheme of the present embodiment is by the counting circuit acquisition NFC card-reading apparatus of NFC label from the NFC label The number of times of data has been read, has determined that the NFC card-reading apparatus read the address of data from the NFC label according to the number of times Information, address information reads data from the NFC label according to determined by, can realize repeatedly reading the number in NFC label According to the range of application of NFC label can be extended.
Embodiment two
Fig. 2 is the method flow diagram of the reading label described in the embodiment of the present invention two, as shown in Fig. 2 described in the present embodiment Reading the method for label includes:
Step S201, when near field communication (NFC) NFC card-reading apparatus enter NFC label induction range when, it is described NFC card-reading apparatus determine the action type operated to the NFC label.
Step S202, the NFC card-reading apparatus obtain the storage mode information of the NFC label, the storage mode letter Cease the address information for storing each reading data of the NFC label.
The storage mode information may include the initial address and data length of each reading data of the NFC label, institute State initial address and end address that storage mode information may also comprise each reading data of the NFC label.
The NFC card-reading apparatus obtain the storage mode information of the NFC label and may include various ways, for example, work as institute State NFC card-reading apparatus into NFC label induction range when, the NFC card-reading apparatus are read from the preset address of the NFC label Take the storage mode information of the NFC label;And for example, the NFC card-reading apparatus read the NFC label from prestored information Storage mode information.
If, to read data type, the NFC card-reading apparatus are according to the NFC label for step S203, the action type Counting circuit obtain the number of times that the NFC card-reading apparatus have read data from the NFC label.
Step S204, the NFC card-reading apparatus determine the NFC Card Readers according to the number of times and the storage mode information Equipment reads the address information of data from the NFC label.
Can initially with the method described in S103 the step of embodiment one can read the number of times and the NFC label Frequency threshold value carries out modulus computing, obtains the sequence number fetched data that currently continues, true according to the sequence number and the storage mode information The fixed NFC card-reading apparatus read the address information of data from the NFC label.
For example, if the storage mode information includes that the initial address and data of each reading data of the NFC label are long Degree, then carry out modulus computing by the number of times with the frequency threshold value that can read of the NFC label, and acquisition currently continues what is fetched data Sequence number, continue the initial address and data length fetched data according to this time of inquiry by the sequence number.And for example, if the storage side Formula information may also comprise the initial address and end address of each time of NFC label reading data, then by the number of times with it is described The frequency threshold value that can read of NFC label carries out modulus computing, the sequence number fetched data that currently continues is obtained, according to the sequence number Inquire about this time to continue the initial address and end address fetched data.
Step S205, NFC card-reading apparatus address information according to determined by read data from the NFC label.
The technical scheme of the present embodiment increased the storage side for obtaining the NFC label on the basis of embodiment one The step of formula information, determine this from the NFC to the number of times and the storage mode information that have read data according to The address information of data is read in label, can realize repeatedly reading the data of different storage sizes in NFC label, one can be entered The range of application of step extension NFC label.
Embodiment three
Fig. 3 is the method flow diagram for writing label described in the embodiment of the present invention three, as shown in figure 3, described in the present embodiment Writing the method for label includes:
Step S301, when near field communication (NFC) NFC card-reading apparatus enter NFC label induction range when, it is described NFC card-reading apparatus determine the action type operated to the NFC label.
, with S101 the step of embodiment one, therefore not to repeat here for the step.
If, to write data type, the NFC card-reading apparatus are according to the NFC label for step S302, the action type Counting circuit obtain the number of times of the NFC card-reading apparatus to written data in the NFC label.
Step S303, the NFC card-reading apparatus determine the NFC card-reading apparatus to the NFC label according to the number of times The address information of middle write data.
Specifically, determine that the NFC card-reading apparatus write the address letter of data in the NFC label according to the number of times The operation of breath may include:The number of times is carried out into modulus computing with the writable frequency threshold value of the NFC label, is transported according to modulus Calculate result and determine that the NFC card-reading apparatus write the address information of data in the NFC label.
If the writable frequency threshold value of NFC label is 10, i.e., data is write in NFC label and returns the NFC full 10 times The initial address of label re-writes, and when reading for the 11st time, the original position that the NFC label is jumped back to again starts write, according to This analogizes.Therefore, the writeable indegree modulus of this write number of times and NFC label, the as sequence number of this write data.Example Such as, the NFC card-reading apparatus are 52 to the number of times of written data in the NFC label, then the number of times of this write data is 53,53 and 10 modulus are equal to 3, then the serial number 3 of this write data.
After obtaining the sequence number of this data to be written, you can obtain this according to the data writing mode of data in NFC label The address information of secondary data to be written.
If NFC label is fixed length writing mode, it is 1K that data length is for example write every time, and starts write from 0 address, then Write data serial number 3 when, address realm to be written be 2K to 3K-1 between, if NFC label be elongated writing mode, root Compare list with space to obtain the address of data to be written according to default write data sequence number.
Step S304, the NFC card-reading apparatus address information according to determined by writes the data of the NFC card-reading apparatus Enter the NFC label.
When the NFC card-reading apparatus determine the action type operated to the NFC label to write data type, The application software for writing data is opened at NFC card-reading apparatus end, and address information writes data in NFC label according to determined by.
The technical scheme of the present embodiment is by the counting circuit acquisition NFC card-reading apparatus of NFC label in the NFC label The number of times of written data, determines that the NFC card-reading apparatus write the address of data in the NFC label according to the number of times Information, the data of the NFC card-reading apparatus are write the NFC label by address information according to determined by, can realize repeatedly to Data are write in NFC label, the range of application of NFC label can be extended.
Example IV
Fig. 4 is the method flow diagram for writing label described in the embodiment of the present invention four, as shown in figure 4, described in the present embodiment Writing the method for label includes:
Step S401, when near field communication (NFC) NFC card-reading apparatus enter NFC label induction range when, it is described NFC card-reading apparatus determine the action type operated to the NFC label.
Step S402, the NFC card-reading apparatus obtain the storage mode information of the NFC label, the storage mode letter Cease the address information for storing each write data of the NFC label.
The storage mode information may include the initial address and data length of each write data of the NFC label, institute State initial address and end address that storage mode information may also comprise each write data of the NFC label.
The NFC card-reading apparatus obtain the storage mode information of the NFC label and may include various ways, for example, work as institute State NFC card-reading apparatus into NFC label induction range when, the NFC card-reading apparatus are read from the preset address of the NFC label Take the storage mode information of the NFC label;And for example, the NFC card-reading apparatus read the NFC label from prestored information Storage mode information.
If, to write data type, the NFC card-reading apparatus are according to the NFC label for step S403, the action type Counting circuit obtain the number of times of the NFC card-reading apparatus to written data in the NFC label.
Step S404, the NFC card-reading apparatus determine the NFC Card Readers according to the number of times and the storage mode information Equipment writes the address information of data in the NFC label.
Can initially with the method described in S303 the step of embodiment three can read the number of times and the NFC label Frequency threshold value carries out modulus computing, obtains the sequence number of this write data, is determined according to the sequence number and the storage mode information The NFC card-reading apparatus this address information of data is write in the NFC label.
For example, if the storage mode information includes that the initial address and data of each write data of the NFC label are long Degree, then carry out modulus computing by the number of times with the writable frequency threshold value of the NFC label, obtains the sequence of this write data Number, the initial address and data length of this write data can be inquired about according to the sequence number.And for example, if storage mode letter Breath includes the initial address of each write data of the NFC label and cut-off address, then by the number of times and the NFC label Writable frequency threshold value carries out modulus computing, obtains the sequence number of this write data, can inquire about this according to the sequence number and write Enter the initial address and end address of data.
Step S405, the NFC card-reading apparatus address information according to determined by writes the data of the NFC card-reading apparatus Enter the NFC label.
The technical scheme of the present embodiment increased the storage side for obtaining the NFC label on the basis of embodiment three The step of formula information, determine this to the NFC to the number of times according to the written data and the storage mode information The address information of data is write in label, can realize repeatedly writing the data of different storage sizes in NFC label, can be entered One step extends the range of application of NFC label.
Embodiment five
Fig. 5 is the method flow diagram of the read write tag described in the embodiment of the present invention five, as shown in figure 5, described in the present embodiment The method of read write tag include:
Step S501, when near field communication (NFC) NFC card-reading apparatus enter NFC label induction range when, it is described NFC card-reading apparatus determine the action type operated to the NFC label.
The step of this step detailed in Example one S101, therefore not to repeat here.
If, to read data type, the NFC card-reading apparatus are according to the NFC label for step S502, the action type The first counting circuit obtain the number of times that the NFC card-reading apparatus have read data from the NFC label.
Step S503, the NFC card-reading apparatus read according to the number of times of data determine the NFC card-reading apparatus from The address information of data is read in the NFC label.
The step of this step detailed in Example one S103, therefore not to repeat here.
Step S504, the NFC card-reading apparatus read the address information of data from the NFC label according to determined by Read data.
The step of this step detailed in Example one S104, therefore not to repeat here.
If, to write data type, the NFC card-reading apparatus are according to the NFC label for step S505, the action type The second counting circuit obtain the number of times of the NFC card-reading apparatus to written data in the NFC label.
Step S506, the NFC card-reading apparatus according to the number of times of the written data determine the NFC card-reading apparatus to The address information of data is write in the NFC label.
The step of this step detailed in Example three S303, therefore not to repeat here.
Step S507, the NFC card-reading apparatus write the address information of data according to determined by and set the NFC Card Readers Standby data write the NFC label.
The step of this step detailed in Example three S304, therefore not to repeat here.
The technical scheme of the present embodiment is respectively used to record the NFC by increasing by two enumerators inside NFC label The number of times of data and the number of times of written data are read in label, can realize that NFC label is carried out repeatedly to read and repeatedly write, energy The range of application of extension NFC label.
Embodiment six
Fig. 6 is the method flow diagram of the read write tag described in the embodiment of the present invention six, as shown in fig. 6, described in the present embodiment The method of read write tag include:
Step S601, when NFC card-reading apparatus enter the induction range of NFC label, the NFC card-reading apparatus are determined to institute State the action type that NFC label is operated.
Step S602, the NFC card-reading apparatus obtain the storage mode information of the NFC label, the storage mode letter Cease and read data and write data address information for each time for storing the NFC label.
The NFC card-reading apparatus obtain the operation of the storage mode information of the NFC label to be included:
When the NFC card-reading apparatus enter the induction range of NFC label, the NFC card-reading apparatus are from the NFC label Preset address read the storage mode information of the NFC label;Or
The NFC card-reading apparatus read the storage mode information of the NFC label from prestored information.
Further, the storage mode information includes the starting point of each receive data of the NFC label and write data Location and data length, or the storage mode information is including each reading data of the NFC label and the starting point of write data Location and end address.
The each write of data in order to ensure NFC label and the integrity for reading, each time of the present embodiment requirement NFC label Data storage is corresponding with each reading data, that is, require that the address space of the data of each storage of NFC label is secondary with corresponding respectively The address space of several reading data is identical.For example, if the 5th time is recorded in storage mode information reads data and write data Initial address and end address be respectively between 4K to 5K, then the 5th time write data initial address and end address difference For between 4K to 5K, while the initial address and end address of the 5th reading data are respectively between 4K to 5K.
It should be noted that when to data storage in NFC label, the address space size of the data of each storage can be with Be etc. size can also be variable-size.
If the address space of the data of each storage is equal in magnitude, i.e., NFC label reads and writes fixed-length data, inside NFC label Circuit diagram can be as shown in fig. 7,
In Fig. 7, the circuit structure of each module is described below:
The D of multiplexer is power pins, connects the power supply of chip operation, and ENB is to enable pin, when ENB pins connect When tactile is 1 signal (high level), multiplexer just can normal work, what is connect when ENB pins is 0 signal (low level), many Path multiplexer does not work, C1, C2, is the input pin of multiplexer, and S1~S4 is output pin, and C1, C2 are input into different values, It is also different in the result of S1~S4 feet output, such as, when C1, C2 are input into respectively 0 signal (low level), 0 signal (low level), S1 The output of~S4 is respectively 1 signal (high level), 0 signal (low level), 0 signal (low level), 0 signal (low level), is passed through Change the input of C1, C2, then can change the output of S1~S4.
First enumerator and the second enumerator:U/D pins are power pins, for the power supply that connection provides chip operation, ENB is the enable pin of chip, and when ENB pins are input into 1 signal (high level), chip can be counted normally, and CP is triggering Pin, Carry out (can be designated as Q1~Q4) are output pins, the count results of output counter, when CP pins are by 0 signal When (low level) is to 1 signal (high level) change procedure, enumerator output result Carryout increases by 1, Reset pins is Pin is reset, when Reset pins are set to 1 signal (high level), the result of enumerator resets, and B1~B4 is default value, can For arranging the value of output result, do not use here.When multiplexer C1, C2 are input into 0 signal (low level), 0 letter When number (low level), S1~S4 exports 1 signal (high level), 0 signal (low level), 0 signal (low level), 0 signal (low electricity It is flat), the second enumerator is normally counted, when multiplexer C1, C2 are input into 1 signal (high level), 0 signal (low level), S1 When~S4 exports 0 signal (low level), 1 signal (high level), 0 signal (low level), 0 signal (low level), the second enumerator Numerical value reset, restart count.
Multiplier is that the count results of enumerator are multiplied with fixed-length data length, draws the memory area ground for needing to obtain Location, and then take out suitable data.
Logic judgment unit, can with being judged with, OR gate, for judging whether count results are 1, if 1, Then illustrate that the current value for needing to read is the first byte of memory area, what the inside stored is the length of fixed-length data, by fixed length The length of data is stored in relief area " data length reading unit " module
Data length reading unit, for storing fixed-length data length, there is provided to multiplier, tie for calculating a certain counting Really corresponding memory area.
During data being read from NFC label:
Normal counting process includes:The first enumerator (read counter) normal work is chosen in switch selection, (is selected The input of C1, C2, allows the output of S1~S4, and the first enumerator ENB pins to be input into 1 signal (high level)), at this moment, without reading Card apparatus near when, the CP pins input of the first enumerator is 0 signal (low level), NFC card-reading apparatus often near a secondary label, The voltage that NFC antenna is obtained over there, the CP pins that can give the first enumerator are input into 1 signal (high level), and CP pins are by 0 signal (low level) to the change procedure of 1 signal (high level) can allow the first rolling counters forward, Carry out pins to increase by 1, multiplier After count results are multiplied with data length, current address is drawn, then this block address is found from data storage, take out data It is supplied to NFC antenna, card-reading apparatus to obtain data.If the result of the first enumerator is 1, that is, when counting for the first time, is led to Logic judgment unit is crossed, show that be currently needed for reading is the data length of fixed-length data, during this address is obtained from storage Data, and it is supplied to data length relief area and NFC antenna, card-reading apparatus to obtain this data (fixed-length data length) Get data length.
Clearing process includes:If in counting process, if data need to be re-read, thus it is possible to vary the C1 of multiplexer, C2 is input into, and allows in S1~S4 the output being connected with the first enumerator Reset feet to be set to 1 signal (high level), then the first enumerator Count results reset immediately, read data process restart.
During data being write in NFC label:
Normal counting process includes:The first enumerator (writing enumerator) normal work is chosen in switch selection, (is selected The input of C1, C2, allows the output of S1~S4, and the ENB pins of the second enumerator to be input into 1 signal (high level)), at this moment, do not have Card-reading apparatus near when, the first enumerator CP pins input be 0 signal (low level), NFC card-reading apparatus are often near a deutero-albumose Sign, the voltage that NFC antenna is obtained over there, the CP pins that can give the second enumerator are input into 1 signal (high level), and CP pins are by 0 letter Number (low level) to the change procedure of 1 signal (high level) can allow the first rolling counters forward, Carry out pins to increase by 1, multiplication After device is multiplied count results with data length, current address is drawn, the data obtained from NFC antenna are write into data storage In this block address.If the result of the second enumerator is 1, that is, when counting for the first time, by logic judgment unit, draws and work as What front needs write is the data length of fixed-length data, and this data (fixed-length data length) is written to into this ground in storage Location.
Clearing process includes:If in counting process, data need to be re-write, thus it is possible to vary C1, C2 of multiplexer Input, allow in S1~S4 the output being connected with the second enumerator Reset feet to be set to 1 signal (high level), then the second enumerator Count results reset immediately, and the process of writing restarts.
If NFC label reads and writes fixed-length data, the size that data are read and write every time is certain length, and this length can be advance Arrange, and in the one or more successive byte of the memory area that data length value is write NFC label.
NFC label is to read data or write data, is selected to determine by multiplexer, when the switch of multiplexer is selected When enabling the work of the second counter circuit, the software application for writing data is opened in NFC card-reading apparatus, to memory area number is write According to;When multiplexer selects the first enumerator enable work, the software application for reading data is opened in NFC card-reading apparatus, read Take the data in memory area;Multi-path choice can also enable the replacement pin on the first enumerator and the second enumerator, when weight When putting pin and being enabled, the first enumerator and the second enumerator return to zero.Such as, when NFC label is just begun to use, switch Choose and write data circuit switch enable, write circuit is started counting up, and for the first time write is the fixed length of fixed-length data, and is deposited In entering first or continuous several bytes, when writing again, the second enumerator increases by 1, and writes data into according to write circuit In the memory area that count value is calculated, the like.When first time enabling in the first enumerator, the first enumerator starts Count, NFC card-reading apparatus for the first time near the NFC label when, read the first character section of memory area, identify data storage Length because for the first time the value of read-write data is the length of memory area data, for the first time the length of read-write data and Storage area data length may be different, is judged by logic judgment unit.
In read-write data procedures, restart to read and write data if desired, can cut switch contact at switch selection The clear terminal of the first enumerator and the second enumerator is shifted to, enumerator is counted again, data are read and write again.Memory area every time from When initial address starts to write data, it is required for writing the length of hereafter data storage.
If the address space size of the data of each storage is unequal, NFC label internal circuit schematic diagram can be such as Fig. 8 institutes Show, in Fig. 8, the circuit structure of each module is described below:
Multiplexer:What is represented at D is supply pin, and the power supply of chip operation, ENB pins are to enable pin, work as pin Contact be 1 signal (high level) when, multiplexer just understands normal work, and what is connect when ENB pins is 0 letter thing (low electricity It is flat), multiplexer does not work, C1, C2, is the input pin of multiplexer, and S1~S4 is output pin, and C1, C2 are input into not Same value, also different in the result of S1~S4 feet output, such as, C1, C2 are input into respectively 0 signal (low level), 0 signal (low electricity It is flat) when, the output of S1~S4 is respectively 1 signal (high level), 0 signal (low level), 0 signal (low level), 0 signal (low electricity It is flat), at this moment the second enumerator can be operated.
First enumerator and two enumerators:U/D pins are power pins, for the power supply that connection provides chip operation, ENB It is the enable pin of chip, when this pin input 1 signal (high level), chip can be counted normally, and CP is that triggering is drawn Foot, Carry out (can be designated as Q1~Q4) are output pins, the count results of output counter, when the letter that CP pins are received When number by 0 signal (low level) to 1 signal (high level) change procedure, enumerator output result Carry out increases by 1, Reset pins are to reset pin, and when the signal that Reset pins are put is 1 signal (high level), the result of enumerator resets, B1 ~B4 is default value, can be used to arrange the value of output result, is not used herein.When multiplexer C1, C2 are input into respectively 0 When signal (low level) and 0 signal (low level), it is (low that S1~S4 exports 1 signal (high level), 0 signal (low level), 0 signal Level), 0 signal (low level), the second enumerator normally counts, when multiplexer C1, C2 are input into 1 signal (high level), 0 letter When number (low level), S1~S4 exports 0 signal (low level), 1 signal (high level), 0 signal (low level), 0 signal (low electricity It is flat) when, the numerical value of the second enumerator resets, and restarts to count.
Data-reading unit:Buffer, data are read for buffering from memory area, and write number in memory area According to.The chip power supply of single-chip microcomputer is also provided by power supply, not shown in Fig. 8.
The operation principle of the circuit shown in Fig. 8 is as follows:
During data are read from NFC label:
Normal counting process includes:The first enumerator (read counter) normal work is chosen in switch selection, (is selected The input of C1, C2, allows the output of S1~S4, and the first enumerator ENB pins to be input into 1 signal (high level)), at this moment, without reading Card apparatus near when, the CP pins input of the first enumerator is 0 signal (low level), NFC card-reading apparatus often near a secondary label, The voltage that NFC antenna is obtained over there, the CP pins that can give the first enumerator are input into 1 signal (high level), and CP pins are by 0 signal (low level) to the change procedure of 1 signal (high level) can allow the first rolling counters forward, Carry out pins to increase by 1, multiplier Count results are supplied to into the single-chip microcomputer of inside, according to the stored data of single-chip microcomputer internal record, current ground is counted Location, then this block address is found from data storage, the data in this block region are taken out, and the extra information such as data length is gone Remove, only data content is sent to into NFC antenna by data wire, NFC antenna is then forwarded to card-reading apparatus.
Clearing process includes:In counting process, if data need to be re-read, thus it is possible to vary C1, C2 of multiplexer Input, allows S1~S4 to neutralize the signal of output signal 1 (high level) after the first enumerator Reset pins are connected, and makes the first enumerator Count results reset immediately, restart data read process.
During data being write in NFC label:
Normal counting process includes:The first enumerator (writing enumerator) normal work is chosen in switch selection, (is selected The input of C1, C2, allows the output of S1~S4, and the second enumerator ENB pins to be input into 1 signal (high level)), at this moment, without reading Card apparatus near when, the CP pins input of the first enumerator is 0 signal (low level), NFC card-reading apparatus often near a secondary label, The voltage that NFC antenna is obtained over there, the CP pins that can give the second enumerator are input into 1 signal (high level), and CP pins are by 0 signal (low level) to the change procedure of 1 signal (high level) can allow the first rolling counters forward, Carry out pins to increase by 1, multiplier Count results are supplied to into the single-chip microcomputer of inside, according to the stored data of single-chip microcomputer internal record, this is obtained to be written Enter address, then this block address is found from data storage, the data obtained from NFC antenna are write into the address.Single-chip microcomputer is being deposited Add after the information such as data length, data check in storage data, this data message is write in memory area (long comprising data The information such as degree, data content and data check)
Clearing process includes:If in counting process, wanting to re-write data, thus it is possible to vary C1, C2 of multiplexer Input, allow in S1~S4 the output being connected with the second enumerator Reset feet to be set to 1 signal (high level), then the second enumerator Count results reset immediately, and the process of writing restarts.
If NFC label reads and writes elongated data, the size that data are read and write every time may not be certain length, every time to During NFC label write data, need the first character section in data write to store the length of current data storage, storage every time Data are in addition to storing length, the data of current data storage, in addition it is also necessary to store end mark (by a string of specific data sets Into), whether terminate for flag data write.
During write data, can be at the switch selection of multiplexer, switch contact is switched to into the second enumerator makes Can work, start counting up, NFC card-reading apparatus directly to NFC label memory area write actual storage data, after most to When memory area is stored, the length of this write data is calculated by single-chip microcomputer, and end mark is added at data end, most Data length, data, end mark are put in accessing zone afterwards.
When reading data, at the switch selection of multiplexer, switch contact is switched to into the first enumerator enable work, is opened Begin to count, single-chip microcomputer receives the signal of the first rolling counters forward increase, from the memory area of NFC label data are taken out, take out number According to length, data, end mark, from the data that these take out, show that this reads data in the actually active of memory area Address, therefrom reads actually active data.
If read-write data are carried out, want to restart read-write, then cut the contact at the switch selection of multiplexer The clear terminal of the first enumerator and the second enumerator is changed to, the counting of counting circuit is read and write after clearing, restart to count.
If, to read data type, the NFC card-reading apparatus are according to the NFC label for step S603, the action type The first counting circuit obtain the number of times that the NFC card-reading apparatus have read data from the NFC label.
The number of times and the storage mode information that step S604, the NFC card-reading apparatus have read data according to is true The fixed NFC card-reading apparatus read the address information of data from the NFC label.
Step S605, the NFC card-reading apparatus read the address information of data from the NFC label according to determined by Read data.
If, to write data type, the NFC card-reading apparatus are according to the NFC label for step S606, the action type The second counting circuit obtain the number of times of the NFC card-reading apparatus to written data in the NFC label.
Step S607, the NFC card-reading apparatus are true according to the number of times and the storage mode information of the written data The fixed NFC card-reading apparatus write the address information of data in the NFC label.
Step S608, the NFC card-reading apparatus write the address information of data according to determined by and set the NFC Card Readers Standby data write the NFC label.
The technical scheme of the present embodiment increased the storage side for obtaining the NFC label on the basis of embodiment five The step of formula information, to have read the number of times of data or the number of times of written data, and the storage mode according to Information determines this address address information of data read from the NFC label or data are write in the NFC label, The data of different storage sizes can be realized repeatedly reading in NFC label or different length is repeatedly write in NFC label Data, can further expand the range of application of NFC label.
Embodiment seven
Fig. 9 is the structured flowchart of the device of the reading label described in the embodiment of the present invention seven, as shown in figure 9, the present embodiment institute The device of the reading label stated includes:
Action type acquiring unit 901, for entering NFC label when near field communication (NFC) NFC card-reading apparatus During induction range, it is determined that the action type operated to the NFC label;
Reading times acquiring unit 902, if for the action type to read data type, according to the NFC label Counting circuit obtain the number of times that the NFC card-reading apparatus have read data from the NFC label;
Address information determining unit 903, for determining the NFC card-reading apparatus from the NFC label according to the number of times The middle address information for reading data;
Data-reading unit 904, data are read for address information determined by basis from the NFC label.
Further, the address information determining unit 903 specifically for:
The number of times is carried out into modulus computing with the frequency threshold value that can read of the NFC label, according to modulus operation result Determine that the NFC card-reading apparatus read the address information of data from the NFC label.
Further, described device also include storage mode information acquisition unit, for the NFC card-reading apparatus according to The number of times determines that the NFC card-reading apparatus read before the address information of data from the NFC label, obtains the NFC The storage mode information of label, the storage mode information is used to store the address information of each reading data of the NFC label;
The address information determining unit 903 specifically for:
Determine that the NFC card-reading apparatus read from the NFC label according to the number of times and the storage mode information The address information of data.
Further, the storage mode information acquisition unit specifically for:
When the NFC card-reading apparatus enter the induction range of NFC label, read from the preset address of the NFC label The storage mode information of the NFC label;Or
The storage mode information of the NFC label is read from prestored information.
Further, the storage mode information includes the initial address and data of each reading data of the NFC label Length, or the storage mode information is including the initial address and end address of each reading data of the NFC label.
The reading mark that the executable embodiment of the present invention one of device of the reading label that the present embodiment is provided and embodiment two are provided The method of label, possesses the corresponding functional module of execution method and beneficial effect.
Embodiment eight
Figure 10 is the structured flowchart of the device for writing label described in the embodiment of the present invention eight, as shown in Figure 10, the present embodiment The described device for writing label includes:
Action type acquiring unit 1001, for entering NFC label when near field communication (NFC) NFC card-reading apparatus During induction range, it is determined that the action type operated to the NFC label;
Write number of times acquiring unit 1002, if for the action type to write data type, according to the NFC label Counting circuit obtain the number of times of the NFC card-reading apparatus to written data in the NFC label;
Address information determining unit 1003, for determining the NFC card-reading apparatus to the NFC label according to the number of times The address information of middle write data;
Data write unit 1004, writes the data of the NFC card-reading apparatus for address information determined by basis The NFC label.
Further, the address information determining unit 1003 specifically for:
The number of times is carried out into modulus computing with the writable data times threshold value of the NFC label, according to modulus computing As a result determine that the NFC card-reading apparatus write the address information of data in the NFC label.
Further, described device also include storage mode information acquisition unit, for the NFC card-reading apparatus according to The number of times determines that the NFC card-reading apparatus write before the address information of data in the NFC label, obtains the NFC The storage mode information of label, the storage mode information is used to store the address information of each write data of the NFC label;
The address information determining unit 1003 specifically for:
Determine that the NFC card-reading apparatus write in the NFC label according to the number of times and the storage mode information The address information of data.
Further, the storage mode information acquisition unit specifically for:
When the NFC card-reading apparatus enter the induction range of NFC label, read from the preset address of the NFC label The storage mode information of the NFC label;Or
The storage mode information of the NFC label is read from prestored information.
Further, the storage mode information includes the initial address and data of each write data of the NFC label Length, or initial address and cut-off address of the storage mode information including each write data of the NFC label.
What the executable embodiment of the present invention three of the device for writing label of the present embodiment offer and example IV were provided writes mark The method of label, possesses the corresponding functional module of execution method and beneficial effect.
Embodiment nine
Figure 11 is the structured flowchart of the device of the read write tag described in the embodiment of the present invention nine, as shown in figure 11, this enforcement The device of the read write tag described in example includes:
Action type acquiring unit 1101, for entering NFC label when near field communication (NFC) NFC card-reading apparatus During induction range, it is determined that the action type operated to the NFC label;
Reading times acquiring unit 1102, if for the action type to read data type, according to the NFC label The first counting circuit obtain the number of times that the NFC card-reading apparatus have read data from the NFC label;
Address information determining unit 1103 is read, the number of times for having read data according to determines the NFC Card Readers Equipment reads the address information of data from the NFC label;
Data-reading unit 1104, the address information for reading data determined by basis is read from the NFC label Fetch data;
Write number of times acquiring unit 1105, if for the action type to write data type, according to the NFC label The second counting circuit obtain the number of times of the NFC card-reading apparatus to written data in the NFC label;
Writing address information determination unit 1106, for determining the NFC Card Readers according to the number of times of the written data Equipment writes the address information of data in the NFC label;
Data write unit 1107, for write data determined by basis address information by the NFC card-reading apparatus Data write the NFC label.
Further, the reading address information determining unit 1103 specifically for:
The number of times for having read data is carried out into modulus computing with the frequency threshold value that can read of the NFC label, according to Modulus operation result determines that the NFC card-reading apparatus read the address information of data from the NFC label.
Further, described device also includes storage mode information acquisition unit, for obtaining the storage of the NFC label Mode information, the storage mode information is used to store the address information that the NFC label reads data and write data for each time;
The reading address information determining unit 1103 specifically for:According to the number of times for having read data and described deposit Storage mode information determines that the NFC card-reading apparatus read the address information of data from the NFC label;
Said write address information determining unit 1106 specifically for:According to the number of times of the written data and described deposit Storage mode information determines that the NFC card-reading apparatus write the address information of data in the NFC label.
Further, the storage mode information acquisition unit specifically for:
When the NFC card-reading apparatus enter the induction range of NFC label, read from the preset address of the NFC label The storage mode information of the NFC label;Or
The storage mode information of the NFC label is read from prestored information.
Further, the storage mode information includes that the NFC label reads the starting of data and write data for each time Address and data length, or the storage mode information is including the starting of each reading data of the NFC label and write data Address and end address.
Further, said write address information determining unit 1106 specifically for:By the number of times of the written data Modulus computing is carried out with the writable data times threshold value of the NFC label, the NFC Card Readers are determined according to modulus operation result Equipment writes the address information of data in the NFC label.
The reading that the executable embodiment of the present invention five of the device of the read write tag that the present embodiment is provided and embodiment six are provided The method for writing label, possesses the corresponding functional module of execution method and beneficial effect.
Above example provide technical scheme in all or part of content can be realized by software programming, its software In the storage medium that can read, storage medium is for example for program storage:Hard disk, CD or floppy disk in computer.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also More other Equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (16)

1. it is a kind of read label method, it is characterised in that include:
When near field communication (NFC) NFC card-reading apparatus enter the induction range of NFC label, the NFC card-reading apparatus are true The fixed action type that the NFC label is operated;
If the action type is to read data type, the NFC card-reading apparatus are obtained according to the counting circuit of the NFC label The NFC card-reading apparatus have read the number of times of data from the NFC label;
The NFC card-reading apparatus determine that the NFC card-reading apparatus read the ground of data from the NFC label according to the number of times Location information;
NFC card-reading apparatus address information according to determined by reads data from the NFC label.
2. method according to claim 1, it is characterised in that the NFC card-reading apparatus are according to the number of times determines NFC card-reading apparatus read the operation of the address information of data from the NFC label and specifically include:
The number of times is carried out into modulus computing with the frequency threshold value that can read of the NFC label, is determined according to modulus operation result The NFC card-reading apparatus read the address information of data from the NFC label.
3. method according to claim 1, it is characterised in that institute is determined according to the number of times in the NFC card-reading apparatus State also includes before the address information that NFC card-reading apparatus read data from the NFC label:The NFC card-reading apparatus are obtained The storage mode information of the NFC label, the storage mode information is used to store the ground of each reading data of the NFC label Location information;
The NFC card-reading apparatus determine that the NFC card-reading apparatus read the ground of data from the NFC label according to the number of times The operation of location information is specifically included:
The NFC card-reading apparatus determine the NFC card-reading apparatus from the NFC according to the number of times and the storage mode information The address information of data is read in label.
4. method according to claim 3, it is characterised in that the NFC card-reading apparatus obtain the storage of the NFC label The operation of mode information includes:
When the NFC card-reading apparatus enter the induction range of NFC label, the NFC card-reading apparatus are from the pre- of the NFC label If the storage mode information of the NFC label is read in address.
5. the method according to claim 3 or 4, it is characterised in that the storage mode information includes that the NFC label is each The secondary initial address and data length for reading data, or the storage mode information is including each reading data of the NFC label Initial address and end address.
6. a kind of method for writing label, it is characterised in that include:
When near field communication (NFC) NFC card-reading apparatus enter the induction range of NFC label, the NFC card-reading apparatus are true The fixed action type that the NFC label is operated;
If the action type is to write data type, the NFC card-reading apparatus are obtained according to the counting circuit of the NFC label Number of times of the NFC card-reading apparatus to written data in the NFC label;
The NFC card-reading apparatus determine that the NFC card-reading apparatus write the ground of data in the NFC label according to the number of times Location information;
The data of the NFC card-reading apparatus are write the NFC marks by NFC card-reading apparatus address information according to determined by Sign.
7. method according to claim 6, it is characterised in that the NFC card-reading apparatus are according to the number of times determines NFC card-reading apparatus write the operation of the address information of data in the NFC label and specifically include:
The number of times is carried out into modulus computing with the writable data times threshold value of the NFC label, according to modulus operation result Determine that the NFC card-reading apparatus write the address information of data in the NFC label.
8. method according to claim 6, it is characterised in that in the NFC card-reading apparatus according to the number of times determines Also include before the address information that NFC card-reading apparatus write data in the NFC label:The NFC card-reading apparatus obtain institute The storage mode information of NFC label is stated, the storage mode information is used to store the address of each write data of the NFC label Information;
The NFC card-reading apparatus determine that the NFC card-reading apparatus write the ground of data in the NFC label according to the number of times The operation of location information is specifically included:
The NFC card-reading apparatus determine the NFC card-reading apparatus to the NFC according to the number of times and the storage mode information The address information of data is write in label.
9. method according to claim 8, it is characterised in that the NFC card-reading apparatus obtain the storage of the NFC label The operation of mode information includes:
When the NFC card-reading apparatus enter the induction range of NFC label, the NFC card-reading apparatus are from the pre- of the NFC label If the storage mode information of the NFC label is read in address.
10. method according to claim 8 or claim 9, it is characterised in that the storage mode information includes the NFC label The initial address and data length of each write data, or the storage mode information is including each write number of the NFC label According to initial address and cut-off address.
A kind of 11. methods of read write tag, it is characterised in that include:
When near field communication (NFC) NFC card-reading apparatus enter the induction range of NFC label, the NFC card-reading apparatus are true The fixed action type that the NFC label is operated;
If the action type is reading data type, first counting circuit of the NFC card-reading apparatus according to the NFC label Obtain the number of times that the NFC card-reading apparatus have read data from the NFC label;
The NFC card-reading apparatus have read the number of times of data and have determined the NFC card-reading apparatus from the NFC label according to Read the address information of data;
The NFC card-reading apparatus read the address information of data according to determined by and read data from the NFC label;
If the action type is to write data type, second counting circuit of the NFC card-reading apparatus according to the NFC label The NFC card-reading apparatus are obtained to the number of times of written data in the NFC label;
The NFC card-reading apparatus determine the NFC card-reading apparatus in the NFC label according to the number of times of the written data The address information of write data;
The NFC card-reading apparatus write the address information of data according to determined by and write the data of the NFC card-reading apparatus The NFC label.
12. a kind of devices for reading label, it is characterised in that include:
Action type acquiring unit, for entering the induction range of NFC label when near field communication (NFC) NFC card-reading apparatus When, it is determined that the action type operated to the NFC label;
Number of times acquiring unit, if being obtained according to the counting circuit of the NFC label to read data type for the action type Take the number of times that the NFC card-reading apparatus have read data from the NFC label;
Address information determining unit, for determining the NFC card-reading apparatus from receive data in the NFC label according to the number of times According to address information;
Data-reading unit, data are read for address information determined by basis from the NFC label.
13. devices according to claim 12, it is characterised in that described device also includes storage mode acquisition of information list Unit, for determining the NFC card-reading apparatus from receive data in the NFC label according to the number of times in the NFC card-reading apparatus According to address information before, obtain the storage mode information of the NFC label, the storage mode information is used to store described The address information of each reading data of NFC label;
The address information determining unit specifically for:
Determine that the NFC card-reading apparatus read data from the NFC label according to the number of times and the storage mode information Address information.
14. a kind of devices for writing label, it is characterised in that include:
Action type acquiring unit, for entering the induction range of NFC label when near field communication (NFC) NFC card-reading apparatus When, it is determined that the action type operated to the NFC label;
Write number of times acquiring unit, if for the action type to write data type, according to the counting electricity of the NFC label Road obtains number of times of the NFC card-reading apparatus to written data in the NFC label;
Address information determining unit, for determining that the NFC card-reading apparatus write number in the NFC label according to the number of times According to address information;
The data of the NFC card-reading apparatus are write the NFC marks by data write unit for address information determined by basis Sign.
15. according to claim 14 described device, it is characterised in that described device also includes storage mode information acquisition unit, For determining that the NFC card-reading apparatus write data in the NFC label according to the number of times in the NFC card-reading apparatus Before address information, the storage mode information of the NFC label is obtained, the storage mode information is used to store the NFC marks Sign the address information of each write data;
The address information determining unit specifically for:
Determine that the NFC card-reading apparatus write data in the NFC label according to the number of times and the storage mode information Address information.
16. a kind of devices of read write tag, it is characterised in that include:
Action type acquiring unit, for entering the induction range of NFC label when near field communication (NFC) NFC card-reading apparatus When, it is determined that the action type operated to the NFC label;
Reading times acquiring unit, if for the action type to read data type, according to the first of the NFC label the meter Number circuit obtains the number of times that the NFC card-reading apparatus have read data from the NFC label;
Address information determining unit is read, the number of times for having read data according to determines the NFC card-reading apparatus from institute State the address information that data are read in NFC label;
Data-reading unit, the address information for reading data determined by basis reads data from the NFC label;
Write number of times acquiring unit, if for the action type to write data type, according to the second of the NFC label the meter Number circuit obtains number of times of the NFC card-reading apparatus to written data in the NFC label;
Writing address information determination unit, for determining the NFC card-reading apparatus to institute according to the number of times of the written data State the address information that data are write in NFC label;
Data write unit, the address information for writing data determined by basis writes the data of the NFC card-reading apparatus Enter the NFC label.
CN201410412092.4A 2014-08-20 2014-08-20 Method for reading and writing label and device thereof Expired - Fee Related CN104156748B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410412092.4A CN104156748B (en) 2014-08-20 2014-08-20 Method for reading and writing label and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410412092.4A CN104156748B (en) 2014-08-20 2014-08-20 Method for reading and writing label and device thereof

Publications (2)

Publication Number Publication Date
CN104156748A CN104156748A (en) 2014-11-19
CN104156748B true CN104156748B (en) 2017-04-12

Family

ID=51882245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410412092.4A Expired - Fee Related CN104156748B (en) 2014-08-20 2014-08-20 Method for reading and writing label and device thereof

Country Status (1)

Country Link
CN (1) CN104156748B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107271815A (en) * 2017-06-15 2017-10-20 中山市天键电声有限公司 A kind of detection method and NFC detection tool of NFC label quality
CN108595344A (en) * 2017-11-07 2018-09-28 深圳市雄帝科技股份有限公司 Electronically written method and device, electronic equipment and the storage medium of radio-frequency card
CN110826657B (en) * 2018-08-09 2023-07-14 中国电信股份有限公司 Apparatus and method for NFC tag
CN110874073A (en) * 2018-09-04 2020-03-10 宁波方太厨具有限公司 Separated household electrical appliance control device
US11153428B2 (en) * 2020-03-02 2021-10-19 Capital One Services, Llc Systems, methods, and computer-accessible mediums for repressing or turning off the read of a digital tag
CN113591500B (en) * 2021-09-29 2022-03-08 广州朗国电子科技股份有限公司 NFC chip read-write frequency automatic detection method and device
CN114781418A (en) * 2022-04-12 2022-07-22 四川虹美智能科技有限公司 Intelligent product information writing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170300A (en) * 2010-02-26 2011-08-31 通用汽车环球科技运作有限责任公司 Multiple near field communication tags in a pairing domain
DE202012009670U1 (en) * 2012-10-10 2012-10-31 Mega-Tel Ag/Sa NFC tag and NFC system
CN103544456A (en) * 2013-09-30 2014-01-29 小米科技有限责任公司 Information processing method, information processing device and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101143729B1 (en) * 2011-09-23 2012-05-09 강필준 Method for preventing reproduction of nfc tag and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170300A (en) * 2010-02-26 2011-08-31 通用汽车环球科技运作有限责任公司 Multiple near field communication tags in a pairing domain
DE202012009670U1 (en) * 2012-10-10 2012-10-31 Mega-Tel Ag/Sa NFC tag and NFC system
CN103544456A (en) * 2013-09-30 2014-01-29 小米科技有限责任公司 Information processing method, information processing device and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于NFC技术的标签模式设计;林龙等;《微处理机》;20130630(第3期);第31-36页 *

Also Published As

Publication number Publication date
CN104156748A (en) 2014-11-19

Similar Documents

Publication Publication Date Title
CN104156748B (en) Method for reading and writing label and device thereof
CN104424261B (en) Information displaying method based on electronic map and device
CN106202028B (en) A kind of address information recognition methods and device
CN103019887B (en) Data back up method and device
CN103345469B (en) The storage of set of numbers, querying method and device thereof
CN105849706A (en) Storage module and method for managing logical-to-physical address mapping
CN101539822B (en) Method and system for identifying handwriting area of touch screen
CN103517304A (en) Method and device for obtaining safe state of mobile terminal
CN101963912A (en) Implementation method for storing and checking hardware configuration information of system
US9996194B1 (en) Touch screen self-capacitance foreign matter detection
CN114035749B (en) Electronic equipment and Flash memory
CN103914397B (en) Flash memory device and its management method
CN105447074A (en) Information display device and information display method
CN109144754A (en) A kind of method for testing reliability and device
CN106598379A (en) Method and device for managing application program
CN103309892A (en) Method and equipment for information processing and Web browsing history navigation and electronic device
CN104657678B (en) Response protection monotone counter, read method and method of counting
CN109408416B (en) Address mapping table entry page management method and device
CN107102210A (en) A kind of capacitance determining method and device based on capacitive touch chip
CN108491168A (en) A kind of processing method and solid state disk of reading and writing command stream
CN108170837A (en) Method of Data Discretization, device, computer equipment and storage medium
CN116339643A (en) Formatting method, formatting device, formatting equipment and formatting medium for disk array
CN105573999B (en) The method and apparatus of identification intelligent equipment user
CN109885345A (en) A kind of date storage method, SD storage card and electronic equipment and storage medium
US20170060998A1 (en) Method and apparatus for mining maximal repeated sequence

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170412