WO2017167274A1 - Nfc标签 - Google Patents
Nfc标签 Download PDFInfo
- Publication number
- WO2017167274A1 WO2017167274A1 PCT/CN2017/079009 CN2017079009W WO2017167274A1 WO 2017167274 A1 WO2017167274 A1 WO 2017167274A1 CN 2017079009 W CN2017079009 W CN 2017079009W WO 2017167274 A1 WO2017167274 A1 WO 2017167274A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- ndef
- carrying
- nfc
- amount
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/067—Record 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/07—Record 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/0723—Record 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/067—Record 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/07—Record 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/067—Record 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/07—Record 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/0701—Record 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 at least one of the integrated circuit chips comprising an arrangement for power management
- G06K19/0707—Record 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 at least one of the integrated circuit chips comprising an arrangement for power management the arrangement being capable of collecting energy from external energy sources, e.g. thermocouples, vibration, electromagnetic radiation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/067—Record 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/07—Record 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/077—Constructional details, e.g. mounting of circuits in the carrier
- G06K19/07749—Constructional details, e.g. mounting of circuits in the carrier the record carrier being capable of non-contact communication, e.g. constructional details of the antenna of a non-contact smart card
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
- G06K7/10297—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
Definitions
- the invention belongs to the field of wireless communication, and relates to an NFC tag, an NFC reader and an NFC tag data reading and writing method working in a tag and reader mode.
- NFC Near Field Communication
- NFC devices currently defined by the NFC protocol specification NFCIP-1 (including ISO/IEC 18092 international standard and ECMA-340 standard), ISO/IEC 14443 international standard, Japanese Industrial Standard (JIS) X 6319-4 and other non-contact smart card standards can be used.
- NFC devices Working in reader mode for NFC tags, peer-to-peer mode for other NFC devices, card emulation mode for other NFC readers, and NFC devices based on different NFC standards support 106kbps (kilobits per second) Different data transmission rates, such as 212 kbps and 424 kbps.
- Two communication modes are supported between NFC devices: the communication initiation device and the target communication device both actively transmit data through their own active mode (such as point-to-point mode); the communication initiation device generates a wireless signal and supplies power to the target communication device through the electromagnetic field, the target The communication device responds to the passive mode of the communication initiating device (such as the reader mode and the card emulation mode) by modulating the existing electromagnetic field.
- an NFC reader (such as a handset that supports NFC communication) is placed close to the passive NFC tag and generates a wireless signal, and the antenna of the NFC tag captures power from the electromagnetic field of the wireless signal to power the memory, and The data stored in the memory is transmitted to the NFC reader by modulation of the electromagnetic field. Since the passive NFC tag only needs the antenna and the corresponding storage device without the need of an extra battery, the utility model has the advantages of simple manufacture, low cost, convenient volume and thin carrying, and is widely used in electronic signing, anti-counterfeiting identification and electronic business cards for people's lives. Great convenience.
- NFC Forum which defines the NFC Data Exchange Format (NDEF) as the NFC device and NFC.
- NDEF NFC Data Exchange Format
- An NDEF message may contain at least one NDEF record, and each NDEF record carries a payload for communication (NDEF Payload).
- NDEF Payload a payload for communication
- the NFC generator inside the target communication device encapsulates the data to be communicated as one payload into one or more NDEF records, and records the one or more NDEFs as one NDEF message.
- the NFC parser Sended to the communication initiating device, the NFC parser (NFC parser) inside the communication initiating device parses the received NDEF message out of the payload and transmits it to the NDEF application for processing.
- an NDEF message is stored in the memory of the NFC tag in the form of a single NDEF record.
- the NFC tag When the NFC device reads the NFC tag as the communication initiating device, the NFC tag directly sends the single NDEF record as an NDEF message to the NFC.
- the multiple files are usually encapsulated into multiple NDEF sub-records as payloads, and the multiple NDEF sub-records are encapsulated into a single NDEF record and stored in the NFC tag.
- the multiple NDEF sub-records are encapsulated into a single NDEF record and stored in the NFC tag.
- an NFC tag capable of storing and transmitting a relatively large amount of data and an NFC tag reading and writing method for selectively reading and writing a partial data are required.
- the present invention provides a new data reading and writing method for the NFC tag, the NFC reader, and the NFC tag. .
- An NFC tag that includes:
- An NFC antenna for transmitting and receiving communication of NDEF records carrying data of a small amount of data by demodulating or modulating an electromagnetic field
- a non-volatile storage unit that stores data of a larger amount of data in the form of a plurality of NDEF records carrying data of a smaller amount of data
- the data management system includes an NDEF message reading unit and an NDEF message sending unit, and the NDEF message reading unit is configured to read out the NDEF record of the plurality of data carrying the smaller data amount from the non-volatile storage unit, the NDEF message
- the transmitting unit is configured to transmit, by the NDEF message reading unit, a plurality of NDEF records carrying data of a smaller data amount through the NFC antenna modulation electromagnetic field.
- the NDEF message reading unit is configured to sequentially fetch the NDEF records of the data carrying the smaller data amount from the non-volatile storage unit one by one according to the data of the larger data amount.
- the NDEF record reading of data carrying a small amount of data is configured to sequentially fetch the NDEF records of the data carrying the smaller data amount from the non-volatile storage unit one by one according to the data of the larger data amount.
- the NDEF message sending unit is configured to sequentially load the data carrying the smaller data amount one by one according to the order of the NDEF records in which the data of the larger data amount is encapsulated into data carrying a smaller amount of data.
- the NDEF record is modulated by an NFC antenna modulated electromagnetic field.
- An NFC tag that includes:
- An NFC antenna for transmitting and receiving communication of NDEF records carrying data of a small amount of data by demodulating or modulating an electromagnetic field
- a non-volatile storage unit that stores data of a larger amount of data
- the data management system includes a data reading and writing unit, an NDEF message encapsulating unit, an NDEF message parsing unit, and an NDEF messaging unit, and the data reading and writing unit is configured to read out a large amount of data stored by the nonvolatile storage unit.
- the NDEF message encapsulating unit is configured to encapsulate the data of a larger amount of data into a plurality of NDEF records carrying data of a smaller amount of data
- the NDEF messaging unit is configured to pass the NDEF records of the plurality of data carrying a smaller amount of data.
- the NFC antenna modulates the electromagnetic field transmission
- the NDEF messaging unit is configured to send the NDEF record of the plurality of data carrying the smaller data amount received by the NFC antenna to the NDEF message parsing unit, where the NDEF message parsing unit is configured to compare the multiple bearers
- the NDEF record of the small data amount data parses and extracts the data of the larger data amount in the payload, transfers the data of the larger data amount to the data read/write unit, and the data read/write unit uses the larger data amount
- the data is written to the non-volatile memory unit.
- the NDEF record of the plurality of data carrying a smaller amount of data includes at least one NDEF sub-record, and the NDEF message parsing unit transmits the at least one NDEF sub-record to the data read/write unit.
- the NFC tag of the NFC tag described above is also used to capture electrical energy from an electromagnetic field.
- the NFC tag, the NFC reader and the reading for the NFC tag provided by the present invention are compared with the prior art.
- Write method set data management system in NFC tag, read multiple NDEF records through data management system, and directly write multiple NDEF records into non-volatile storage unit to realize storage and transmission of larger amounts of data, and Setting a data header in a non-volatile storage unit, performing targeted or partial file data reading or rewriting, rewriting, and application through the NFC reader-side by index information of each file in the data header NFC tag reading and writing, enabling more flexible reading and writing of data in NFC tags.
- FIG. 1 is a schematic structural view of an NFC tag provided by the present invention.
- FIG. 2 is a schematic structural diagram of an NFC tag according to Embodiment 1 of the present invention.
- FIG. 3 is a schematic structural diagram of an NFC tag according to Embodiment 2 of the present invention.
- FIG. 4 is a structural diagram of data storage of an NFC tag according to an embodiment of the present invention.
- FIG. 1 is a schematic structural view of an NFC tag provided by the present invention.
- the NFC tag 2 includes: an NFC antenna 21 for capturing electric energy from an electromagnetic field and transceiving or modulating an electromagnetic field, and a nonvolatile memory unit 22 storing a plurality of packaged NDEF records, and
- the NFC tag 2 further includes a data management system 23 for managing, reading or storing a plurality of NDEF records stored by the non-volatile storage unit 22, and storing a plurality of NDEFs stored by the non-volatile storage unit 22.
- the record is read out and sent directly by the NFC antenna 21 or the NDEF message received by the NFC antenna 21 is directly written to the nonvolatile storage unit 22.
- the NFC antenna 21 may be a coil that is wound into a circular or elliptical shape or any other shape.
- the non-volatile memory unit 22 can be implemented by a non-volatile memory device such as EEPROM, EPROM, FLASH, ferroelectric memory or phase change memory, or can be used with one or more registers, registers, and RAM.
- the memory is implemented in combination with at least one of the above non-volatile memories.
- the data management system 23 can be a separately set single
- the slice controller may also be a combination of a plurality of control circuits integrated with the nonvolatile memory unit 23, such as an SOC system designed on a wafer.
- the data management system 23 provided by the present invention can be implemented in various manners for different storage types.
- the implementation structure of the NFC tag 2 provided by the present invention will be described in detail below with reference to FIG.
- An NFC tag that includes:
- An NFC antenna for transmitting and receiving communication of NDEF records carrying data of a small amount of data by demodulating or modulating an electromagnetic field
- a non-volatile storage unit that stores data of a larger amount of data in the form of a plurality of NDEF records carrying data of a smaller amount of data
- a data management system including an NDEF message reading unit and an NDEF message sending unit,
- the NDEF message reading unit is configured to read out, from the non-volatile storage unit, the plurality of NDEF records carrying data of a smaller data amount,
- the NDEF message sending unit is configured to send, by the NDEF message reading unit, the plurality of NDEF records carrying data of a smaller data amount through the NFC antenna modulation electromagnetic field.
- the non-volatile storage unit stores the NDEF record carrying the data of a smaller amount of data one by one in the order of the NDEF records in which the data of the larger data amount is encapsulated into the plurality of data carrying a smaller amount of data.
- the NDEF message readout unit is configured to sequentially read out the data carrying the smaller data amount from the start address of the NDEF record of the data carrying the smaller data amount stored by the nonvolatile storage unit. NDEF record.
- the NDEF message readout unit is configured to sequentially from the non-volatile storage unit in the order of the NDEF records in which the data of the larger data amount is encapsulated into the plurality of data carrying a smaller amount of data.
- the NDEF message sending unit is configured to read the NDEF message reading unit by the NDEF record in which the data of the larger data amount is encapsulated into the NDEF records of the plurality of data carrying a smaller data amount.
- An NDEF record carrying data of a small amount of data is transmitted through the NFC antenna modulating electromagnetic field.
- the NDEF message readout unit is configured to sequentially from the non-volatile storage unit in the order of the NDEF records in which the data of the larger data amount is encapsulated into the plurality of data carrying a smaller amount of data.
- NDEF record readout of a plurality of data carrying a small amount of data
- the NDEF message sending unit is configured to send, by the NDEF message reading unit, a single NDEF record carrying the smaller data amount data by the NFC antenna modulation electromagnetic field.
- the NDEF message sending unit sends the first NDEF record carrying the data of a smaller amount of data before Sending an NDEF record carrying a start tag, the NDEF record carrying the start tag is used to indicate the start of the NDEF record transmission of the plurality of data carrying a smaller amount of data, and/or
- the NDEF message sending unit sends an NDEF record carrying an end tag after transmitting the last NDEF record carrying the data of a small amount of data, where the NDEF record carrying the end tag is used to represent the multiple bearers The NDEF record of the smaller amount of data is sent for completion.
- the NDEF message sending unit performs a start tag on the NDEF record of the first data carrying the smaller data amount to be sent, where the start tag is used to represent the plurality of data carrying a small amount of data.
- the NDEF message sending unit performs an end tag on the NDEF record of the last data carrying the smaller amount of data to be transmitted, the end tag being used to indicate the NDEF record of the plurality of data carrying a smaller amount of data The completion of the transmission.
- the NDEF carrying the data of a smaller amount of data is recorded as an NDEF record that can be stably transmitted by the NFC antenna.
- the NDEF record carrying data of a small amount of data is recorded as an NDEF record having a data amount of less than 8 KB.
- the data amount of the larger amount of data exceeds the amount of data of the payload carryable data of a single NDEF record that can be stably transmitted by the NFC antenna.
- the data of the larger data amount is a file whose data amount is larger than 1 MB.
- FIG. 2 is a schematic structural diagram of an NFC tag according to Embodiment 1 of the present invention.
- the non-volatile memory unit 22 of the NFC tag 2 stores a relatively large amount of data in the form of a plurality of encapsulated NDEF records (for example, a file larger than 1 MB, the amount of data exceeding that of the NFC antenna can be exceeded.
- the payload of a single NDEF record sent to the NFC reader/writer can carry the data amount of the data, and a part of the stored larger amount of data is encapsulated into each NDEF record as a payload, and each NDEF record carries a small amount.
- the data (e.g., NDEF record less than 8 KB) and can be stably transmitted to the NFC reader by the NFC antenna 21, and the data management system 23 of the NFC tag 2 includes the NDEF message transmitting unit 231a and the NDEF message reading unit 232a, NDEF
- the message reading unit 232a is configured to read out the plurality of NDEF records from the nonvolatile storage unit 22 one by one in the order in which the larger amount of data is encapsulated into NDEF records, and the NDEF message transmitting unit 231a is configured to read the NDEF message.
- the ordered NDEF record read by the unit 232a is transmitted as an at least one NDEF message by the NFC antenna 21 modulating the electromagnetic field.
- the NDEF message sending unit 231a sends an NDEF record carrying the start tag to indicate the start of sending the plurality of NDEF records before transmitting the first NDEF record carrying the smaller amount of data, and is transmitting After the last NDEF record carrying the smaller amount of data is sent, an NDEF record carrying the end tag is sent to indicate the completion of the transmission of the plurality of NDEF records; or, by the NDEF message sending unit 231a
- the first NDEF record carrying the smaller amount of data is marked on the NDEF record, and is terminated on the NDEF record when the last NDEF record carrying the smaller amount of data is sent. mark.
- the NDEF message sending unit 231a and the NDEF message reading unit 232a may also be combined to be a single NDEF message readout transmitting unit that controls the NDEF record readout and transmission, or a plurality of overlapping control circuit combinations.
- the NDEF message reading unit 232a may also read the plurality of NDEF records one by one directly from the non-volatile storage unit 22, and encapsulate the NDEF records by the NDEF message sending unit 231a according to the larger amount of data.
- the sequence of the plurality of NDEF records transmitted as an NDEF message by the NFC antenna 21 modulating the electromagnetic field; or the NDEF message readout unit 232a directly records the plurality of NDEFs from the non-volatile storage unit 22 according to the larger amount.
- the data is read out in the order of the NDEF records, and the single NDEF record read out by the NDEF message transmitting unit 231a is transmitted as an NDEF message one by one through the NFC antenna 21 modulating electromagnetic field.
- the non-volatile storage unit 22 stores the plurality of NDEF records one by one in the order in which the larger amount of data is encapsulated into NDEF records, and the plurality of NDEFs are sequentially read out from the start address by the NDEF message readout unit 232a. recording.
- the non-volatile storage unit 22 of the NFC tag 2 may store only a plurality of NDEF records of one NDEF message, or may store NDEF records of multiple NDEF messages in sequence, as long as it is sent.
- the NDEF record of the next NDEF message is sent after one or more NDEF records of one NDEF message are sent, and the ordered reception of different NDEF messages is performed and parsed to avoid NDEF record conflicts belonging to different NDEF messages.
- a data management system is set in the NFC tag, so that the NFC tag has data management capability, and can read out a plurality of NDEF records encapsulated with a larger amount of data one by one and utilize the communication start and end tags. Controlling the plurality of NDEF records can be continuously and stably transmitted, so that the NFC tag can not only store a larger amount of data, but also can transmit a larger amount of data by satisfying the limitation of the current NFC communication.
- An NFC tag that includes:
- An NFC antenna for transmitting and receiving communication of NDEF records carrying data of a small amount of data by demodulating or modulating an electromagnetic field
- a non-volatile storage unit that stores data of a larger amount of data in the form of a plurality of NDEF records carrying data of a smaller amount of data
- Data management system including NDEF message reading and writing unit and NDEF messaging unit,
- the NDEF message read/write unit is configured to read out, from the non-volatile storage unit, the NDEF records of the plurality of data carrying a smaller amount of data, where the NDEF messaging unit is configured to use the NDEF message
- the NDEF records of the plurality of data carrying a smaller amount of data read by the reading unit are transmitted by the NFC antenna modulation electromagnetic field, and
- the NDEF message sending and receiving unit is configured to send, by the NFC antenna, the NDEF records of the plurality of data carrying a smaller amount of data to the NDEF message reading and writing unit, where the NDEF message reading and writing unit is used for A plurality of NDEF records carrying data of a smaller amount of data are written to the non-volatile storage unit.
- the NDEF message readout unit is configured to sequentially from the non-volatile storage unit in the order of the NDEF records in which the data of the larger data amount is encapsulated into the plurality of data carrying a smaller amount of data.
- the NDEF message read/write unit is configured to write the NDEF records of the plurality of data carrying a smaller amount of data according to an order of the NDEF records of the plurality of data carrying a smaller amount of data received by the NFC antenna. To the non-volatile memory unit.
- the NDEF message reading unit records the NDEF records of the plurality of data carrying a smaller amount of data from the non-sequence according to an order of NDEF records of the plurality of data carrying a smaller amount of data received by the NFC antenna
- the start address of the NDEF record of the data carrying the smaller amount of data stored by the volatile storage unit is sequentially written to the nonvolatile storage unit.
- the NDEF messaging unit is configured to send the NDEF record carrying the smaller amount of data to the NDEF message read and write every time the NFC antenna receives an NDEF record carrying the smaller amount of data.
- the NDEF record carrying the data of a smaller amount of data to the non-volatile storage unit.
- the NDEF messaging unit indicates, when receiving an NDEF record carrying a start tag, the beginning of the NDEF record reception of the plurality of data carrying a smaller amount of data, and/or
- the NDEF messaging unit indicates completion of the NDEF record reception of the plurality of data carrying a smaller amount of data when receiving an NDEF record carrying an end tag.
- the NDEF record carrying the initial tag is the first NDEF record carrying the smaller amount of data, and/or
- the NDEF record carrying the end tag is the last NDEF record carrying the smaller amount of data.
- FIG. 3 is a schematic structural diagram of an NFC tag according to Embodiment 2 of the present invention. Similar to the NFC tag provided in the first embodiment, the non-volatile memory unit 22 of the NFC tag 2 provided in this embodiment also stores a relatively large amount of data in the form of a plurality of encapsulated NDEF records. As shown in FIG. 3, the NDEF messaging unit 231b and the NDEF message reading and writing unit 232b of the data management system 23 provided in this embodiment are compared with the NDEF message sending unit 231a and the NDEF message reading unit provided in the first embodiment. 232a, not only has the function setting of NDEF message readout, but also has the function setting of NDEF message writing.
- NDEF messaging unit 231b and the NDEF message reading and writing unit 232b read the plurality of NDEF records stored in the non-volatile storage unit 22 is the same as that of the first embodiment, and details are not described herein again.
- the NFC antenna 21 of the NFC tag 2 demodulates the electromagnetic field to obtain the received NDEF message, and the NDEF messaging unit 231b transmits the NDEF message containing the NDEF records of the plurality of specific sequences.
- the NDEF message read/write unit 232b writes the plurality of NDEF records one by one to the nonvolatile storage unit 22 one by one.
- the NDEF messaging unit 231b receives the NDEF record carrying the initial tag sent by an NFC reader/writer, indicating the start of transmission of multiple NDEF records, and then starts receiving the first NDEF record carrying a smaller amount of data. And indicating that the completion of the transmission of the plurality of NDEF records is received when receiving an NDEF record carrying the end tag; or, starting on the first NDEF record sent to the NDEF messaging unit 231b to carry a smaller amount of data.
- the start flag is marked on the last NDEF record carrying the smaller amount of data for the current transmission, and the NDEF messaging unit 231b completes the judgment of the message reception.
- the NDEF message read/write unit 232b may also be separately configured as a single NDEF message readout unit for controlling NDEF message readout (such as 232a in FIG. 2) and a separate NDEF message for controlling NDEF message write.
- the NDEF messaging unit 231b can also be separately configured as a single NDEF message sending unit for controlling NDEF message transmission (such as 231a in FIG. 2) and a single NDEF message receiving unit for controlling NDEF message reception. unit.
- the NDEF message reading and writing unit 232b when the NDEF message reading and writing unit 232b writes a plurality of NDEF records to the nonvolatile storage unit 22, the NDEF message reading sequence may be sequentially started from the first address of the nonvolatile storage unit 22 in the order of NDEF recording.
- the write storage may also be written in accordance with the predetermined order stored by the non-volatile storage unit 22 without prior to the storage address of the NDEF record, as long as the NDEF record is read in the order of the NDEF record according to the larger amount of data. Read it out.
- the NDEF messaging unit 231b may also be configured to send the NDEF record to the NDEF message read/write unit 232b every time an NDEF record is received, and write to the non-volatile storage unit 22 by the NDEF message read/write unit 232b. in.
- the data management system provided in the NFC tag enables the NFC tag to have a data management write capability, and can write and store a plurality of NDEF records encapsulated with a larger amount of data one by one, so that NFC tags can not only transmit a larger amount of data than the current NFC communication limit, but also receive and store a larger amount of data in the form of NDEF records.
- Embodiment 1 and Embodiment 2 provide an NFC tag that stores a larger amount of data in the form of a plurality of encapsulated NDEF records, where the larger amount of data includes a combination of multiple files and needs to be separately read for different files.
- the present invention provides an NFC tag data storage structure for managing a plurality of files.
- An NFC tag that includes:
- An NFC antenna for transmitting and receiving communication of NDEF records carrying data of a small amount of data by demodulating or modulating an electromagnetic field
- a non-volatile storage unit storing a larger amount of data in the form of a plurality of sets of said NDEF records carrying data of a smaller amount of data, the data of the larger amount of data comprising a plurality of files, each of said The files are respectively encapsulated into a set of NDEF records that carry data of a smaller amount of data;
- a data management system including an NDEF message reading unit and an NDEF message sending unit,
- the NDEF message readout unit is configured to read out the NDEF record carrying the smaller amount of data from the nonvolatile storage unit
- the NDEF message sending unit is configured to send the NDEF record of the data carrying a small amount of data read by the NDEF message readout unit through the NFC antenna modulation electromagnetic field,
- the nonvolatile storage unit includes:
- the directory area describes the total data length of the data header and the total data length of the data area.
- the data header is stored before the data area, and the directory area is stored before the data header.
- the total data length information of the data header of the directory area is set at a starting position of the data header.
- the total data length information of the data area of the directory area is set at a start position of the data area.
- the data header also describes the data length of the NDEF record for each of the sets of data of the data area that carries a smaller amount of data.
- the data header also describes an end address of the NDEF record of each of the sets of data of the data area that carries a smaller amount of data.
- the data header further describes at least one type of information, such as a file name, a file type or an identifier, and a sequence code, of the file carried by the NDEF record of each group of data carrying a small amount of data.
- at least one type of information such as a file name, a file type or an identifier, and a sequence code, of the file carried by the NDEF record of each group of data carrying a small amount of data.
- the identifier is used to mark the type of the file carried by the NDEF record carrying the data of a small amount of data
- the sequence code is used to mark the reading order of the files carried by the NDEF records of each group of data carrying a small amount of data.
- the directory area further describes a number of groups of the NDEF record of the data carrying the smaller amount of data of the data area, a generation date of the NDEF record of each set of data carrying the smaller amount of data, and each set of the The date of rewriting of the NDEF record carrying the data of a smaller amount of data, the name, type, function, date of manufacture of the NFC tag, and at least one of the corresponding identification code or check code.
- the type of the NFC tag is used to determine an application policy of the file carried by the NDEF record of the plurality of groups of data carrying a smaller amount of data of the NFC tag.
- the directory area and the data header are stored in a non-volatile storage unit in the form of the NDEF record group carrying data of a smaller amount of data, wherein
- the directory area is encapsulated into at least one set of NDEF records that carry data of a smaller amount of data
- the data header is encapsulated into at least one set of NDEF records that carry data of a smaller amount of data.
- the NDEF carrying the data of a smaller amount of data is recorded as an NDEF record that can be stably transmitted by the NFC antenna.
- the data amount of the larger amount of data exceeds the amount of data of the payload carryable data of a single NDEF record that can be stably transmitted by the NFC antenna.
- FIG. 4 is a schematic diagram of a data storage structure of an NFC tag according to Embodiment 3 of the present invention.
- the non-volatile storage unit 22 may be provided with a firmware area for storing running programs, instructions required for the operation of the data management system, and an NDEF record for storing a plurality of file data and data management related to the NDEF records.
- the storage area of the index directory As shown in FIG. 4, the non-volatile storage unit 22 includes a firmware area 221 for storing firmware such as running programs, instructions, and the like required for the operation of the data management system, and other storage firmware required for the operation of the NFC tag; 222, before the data header 223 and the data area 224, describe the total length information and data of the data header 223.
- the total length information of the area 224, the number of NDEF record groups of the data area 224 (each file corresponds to a set of NDEF records), and the like are used to index and identify the data header 223 and the data area 224, respectively, and the directory area can also be Including the name, type, function, date of manufacture, date of generation of each group of NDEF records, date of rewriting of each group of NDEF records, and corresponding identification code or check code, etc.
- the type of NFC tag can be identified by an identification code.
- a tag is used to determine the application policy of the data of the NFC tag.
- the name of the NFC tag can be set to be changed or unchangeable, and is used to identify and distinguish the NFC tag by the type of the NFC tag and the name of the NFC tag; the data header 223, according to each The storage order of the group NDEF records respectively describes the first address information and the length information of each group of NDEF records, and is used to search and read and write the NDEF records of each group by using the starting address and the length of the data of each group of NDEF records.
- the data header 223 may also describe the first address information and the tail address information of each group of NDEF records, respectively, by using the start address and the end address of each group of NDEF records.
- the group NDEF record wherein the data header 223 may additionally add a file name, a file type, or an identification code and a sequence code of each file of the file carried by each group of NDEF records; the data area 224 is described in accordance with the data header 223.
- the first address information and the data length information of the group NDEF record, or the first address information and the tail address information, store each group of NDEF record data.
- each file is packaged into a group.
- the number of NDEF records in each group of NDEF records may be one or more, and the proportion of the file data may be encapsulated into a proportion of NDEF records carrying a small amount of data capable of performing stable NFC communication to determine the encapsulated NDEF record. Number.
- the information of the directory area 222 and the header 223 are also stored in the non-volatile storage unit 22 in the form of an NDEF record group.
- the directory area 222 is encapsulated into a first group of NDEF records
- the data header 223 is encapsulated into a second group of NDEF records.
- Each file in the data area 224 is encapsulated into a set of NDEF records, when the data in the NFC tag needs to be read.
- the NFC tag first sends the NDEF record of the directory area 222 and the data header 223, and transmits some or all of the NDEF records in the data area 224 according to the corresponding read command.
- the information of the directory area 222 and the data header 223 can also be encapsulated into multiple sets of NDEF records, for example, the total length information of the data header 223 of the directory area 222 and the total length of the data area 224.
- the number of NDEF record groups of the information and data area 224 is encapsulated into a first group of NDEF records, the name, type, function, production date, date of generation of each group of NDEF records, and rewrite date of each group of NDEF records of the directory area 222.
- Information such as the corresponding identification code or check code is encapsulated into a second set of NDEF records for meeting specific partial read requirements.
- the total length information of the data header 223 and the total length information of the data area 224 may also be separately described in the starting position of the respective area, for example, the first 2 bytes of the directory area describe the total of the directory area. Length, in front of the data header 2 The byte describes the total length of the data header; moreover, the directory area 222 and the data header 223 can also be combined into a single information area for describing the information of the NFC tag, and the number of NDEF record groups and files of the data area. The start address, data length, or end address of the NDEF record group corresponding to the name and each file.
- the data management system and the non-volatile memory unit When the NFC tag of the NFC tag captures power from the electromagnetic field, the data management system and the non-volatile memory unit obtain the power required for operation, and the data management system loads the running program from the firmware area of the non-volatile memory unit to perform reading of the data. Management tasks such as writing or writing, wherein the data management system preferentially reads out the directory area of the non-volatile storage unit and the NDEF record group of the data header, and sends the information to identify the information of the NFC tag and the index. The start address, data length, or end address of each group of NDEF records.
- the data management system When receiving a read/write request for at least one set of NDEF records in the data area 224, the data management system performs readout or rewriting according to the start address and the data length/end address corresponding to the set of NDEF records, or when receiving When a read or write request for data of a start address and a data length is reached, the data management system points to the start address and performs read or rewrite on the data of the specified data length.
- the directory area and the data header are preferably stored in front of the data area.
- the directory area or the data header may be stored in other addresses or stored in other specific order, as long as the priority reading is performed. It is the object of the present invention to index information of the directory area and the data header and thereby index each group of NDEF records in the data area.
- each file described in this embodiment may also be stored in the form of NDEF records.
- each file described in this embodiment may be A single file of a single type may also be a collection of multiple files, such as a compressed file of a file, or a part of a single file, such as one of a plurality of compressed packages.
- each file may be separately indexed according to the start address, length information, or start address and end address of each group of NDEF records encapsulated by each file described by the data header. Its NDEF records, and the file is read and written in a targeted or only partial manner, providing a more flexible way of reading and writing NFC tag multi-file data.
- An NFC reader for communicating with NFC tags
- the non-volatile storage unit of the NFC tag stores a larger amount of data in the form of a plurality of sets of NDEF records carrying data of a smaller amount of data, the data of the larger amount of data including a plurality of files, each The files are respectively encapsulated into a set of NDEF records carrying data of a small amount of data,
- the nonvolatile storage unit includes a data area, a data header, and a directory area.
- the data area stores, in order, the NDEF records of the plurality of sets of data carrying a small amount of data.
- the data header describes an NDEF record of each set of the data carrying the smaller amount of data in the data area Starting address
- the directory area describes a total data length of the data header, a total data length of the data area, and at least one type of information of a name, a type, and a function of the NFC tag.
- the NFC reader/writer includes:
- An NFC antenna for performing NFC communication with the NFC tag
- An NFC parser configured to parse the NDEF record of the data that carries the smaller amount of data received by the NFC antenna
- An NFC generator configured to encapsulate data or instructions to be sent by the NFC reader/writer into the NDEF record carrying the data of a smaller amount of data
- An application installed in the NFC reader, for acquiring at least one type of index information described by a directory area and a data header of the NFC tag via an NFC antenna, and specifying the at least one index information according to the at least one index information
- the number of readings and reading order of NDEF records of multiple sets of data in an NFC tag carrying a small amount of data.
- the application acquires the type of the NFC tag, and specifies a read order of the NDEF records of the plurality of groups of data in the NFC tag that carry a smaller amount of data according to the type of the NFC tag.
- the data header further describes at least one type of information, such as a file name, a file type or an identifier, and a sequence code, of the file carried by the NDEF record of each group of data carrying a small amount of data.
- at least one type of information such as a file name, a file type or an identifier, and a sequence code, of the file carried by the NDEF record of each group of data carrying a small amount of data.
- the identifier is used to mark the type of the file carried by the NDEF record carrying the data of a small amount of data
- the sequence code is used to mark the reading order of the files carried by the NDEF records of each group of data carrying a small amount of data.
- the application has an operation interface for user visualization and user interaction, and the application is configured to acquire a file name of the file carried by the NDEF record of the group of the NFC tags that carries data of a small amount of data,
- the file type, and the file name and file type of the file are displayed to the user in the visual operation interface.
- the application is further configured to specify, according to the at least one file to be read selected by the user, the NDEF record group encapsulated by the file to be read in the NFC tag that carries data of a smaller data amount. Read.
- the application specifies, according to the sequence code, a reading order of the NDEF records of the plurality of sets of data in the NFC tag that carry a smaller amount of data.
- the application directly specifies the read address of the NFC tag according to the start address of the NDEF record of each set of the data carrying the smaller amount of data to be read.
- the application is further configured to specify, according to the at least one index information, a write of the NDEF record of the data carrying the smaller amount of data of the NFC tag.
- the application directly specifies the rewriting address of the NFC tag according to the starting address of the NDEF record group of the data that carries the smaller amount of data to be rewritten.
- the application transmits new data of the directory area, the data header, and the larger data amount of the data area to the NFC generator and encapsulated by the NFC generator into the bearer An NDEF record of data of a small amount of data, specifying that the NFC tag performs rewriting from the first address.
- the NDEF carrying the data of a smaller amount of data is recorded as an NDEF record that can be stably transmitted by the NFC antenna.
- the data amount of the larger amount of data exceeds the amount of data of the payload carryable data of a single NDEF record that can be stably transmitted by the NFC antenna.
- an NFC reader is provided, which is provided with an NFC antenna for NFC communication and an NFC parser for parsing NDEF records in an NDEF message, and NFC generation for encapsulating data or instructions into NDEF records
- the NFC reader/writer further includes at least one application (Application, APP for short) capable of processing data carried by the NDEF record, and the NDEF application (ie, the application) is used to obtain via NFC communication.
- the DEF records the read processing operation, or specifies the write type of the NFC tag according to the at least one index information, and performs a transmission process of the corresponding NDEF record write.
- At least one application of the NFC reader obtains the type of the NFC tag, and directly specifies the reading order of the plurality of sets of NDEF records in the NFC tag according to the type of the NFC tag, for example, for different types of NFC tags.
- Set different NDEF record group priority reading order rules, or, optionally, at least one application of the NFC reader has an operation interface of user visualization and user interaction, and the NFC tag can be specified by the user's priority reading instruction.
- the reading order of the plurality of sets of NDEF records corresponding to the plurality of files may be a mobile phone supporting NFC communication, and the application may be an application APP in the mobile phone, and the application APP passes Obtain the file name or file type of the file carried in the NDEF record in the NFC tag and display it to the user in the visual operation interface.
- the NFC reader/writer may be a mobile phone supporting NFC communication
- the application may be an application APP in the mobile phone, and the application APP passes
- At least one application of the NFC reader determines the read group of each group of NDEF records by acquiring the name, type, or file name, file type, or file identifier of the file carried by the NFC tag.
- the number and sequence, and the data management system that directly specifies the NFC tag according to the start address, data length or end address information of each group of NDEF records reads the NDEF record according to each start address and the corresponding data length or end address.
- at least one application of the NFC reader/writer performs the data management system according to the start address, data length or end address information written to the NDEF record group and the corresponding NDEF record and the NFC tag is specified.
- the address is used to perform the rewriting of the NDEF record, or by directly transmitting the written directory area, the data header, and the NDEF record of the data area, and the data management system of the NFC tag directly performs the rewriting from the first address.
- the following methods can be implemented for reading and writing multi-file data of the NFC reader and the NFC tag.
- the NFC reader includes an NFC antenna, an NFC parser, and an application.
- the NFC tag includes an NFC antenna, a data management system, and a non-volatile storage unit, the non-volatile storage unit including a directory area, a data header, and a data area, the data area carrying a plurality of groups carrying a small amount of data
- the form of the NDEF record of the data stores data of a larger amount of data, the data of the larger amount of data comprising a plurality of files, each of the files being separately packaged into a set of NDEF records carrying the data of a smaller amount of data
- the data header describes a starting address of an NDEF record of each set of data carrying a smaller amount of data of the data area, the directory area describing a total data length of the data header, the data area The total data length, and at least one of the information of the name, type, and function of the NFC tag,
- the multi-file data reading method includes:
- the data management system of the NFC tag loads the directory area of the non-volatile storage unit and the NDEF record group encapsulated by the data header to carry data of a small amount of data, and is configured by the NFC tag
- the NFC antenna modulating electromagnetic field is sent to the NFC reader/writer;
- the application program of the NFC reader determines the file to be read and the reading order of the plurality of files according to the at least one index information described by the directory area and the data header, and is packaged according to the file to be read.
- Said bearer The start address of the NDEF record of the data of the smaller data amount describes the NDEF record group read command of the data carrying the smaller data amount, the NFC generator of the NFC reader/writer reads the bearer to be read.
- the start address instruction of the NDEF record group of the smaller amount of data is encapsulated into at least one NDEF instruction record carrying data of a smaller amount of data, and is sent to the NFC tag by the NFC antenna of the NFC reader/writer via an electromagnetic field ;
- the data management system of the NFC tag parses and acquires a starting address of the NDEF record group of the data that carries the smaller data amount to be read by the application of the NFC reader/writer, and the bearers of each group are smaller
- the NDEF record of the data amount data is read from the data area of the non-volatile memory unit, and is sent to the NFC reader/writer by the NFC antenna modulated electromagnetic field of the NFC tag;
- the application of the NFC reader/writer performs processing on the file being read.
- the application of the NFC reader acquires the type of the NFC tag, and determines a file to be read and a reading order of the plurality of files according to the type of the NFC tag.
- the data header further describes at least one type of information, such as a file name, a file type, or an identifier of the file carried by the NDEF record of each group of data carrying a small amount of data, where the identifier is used for marking the location.
- the type of the file carried by the NDEF record carrying the data of a smaller amount of data is used for marking the location.
- the application program of the NFC reader/writer is configured to acquire a file name, a file type, or an identifier of the file carried by the NDEF record of the group of data carrying a small amount of data, and according to the user, At least one of the file names, file types, or identification codes selected by the visual interface of the application determines the file to be read and the order in which the plurality of files are read.
- the data header further describes a sequence code of the file carried by the NDEF record of each group of data carrying a small amount of data, where the sequence code is used to mark each group of data carrying a small amount of data.
- the application determines a reading order of the plurality of files to be read according to the sequence code.
- the application program of the NFC reader determines the file to be read and the reading order of the plurality of files according to the at least one index information described by the directory area and the data header, and is packaged according to the file to be read.
- the start address of the NDEF record of the data carrying the smaller amount of data describes the NDEF record group read instruction of the data carrying the smaller amount of data, the read instruction including the bearer to be read NDEF record group for small data volume data a starting address and a reading order of the plurality of sets of said NDEF records carrying data of a smaller amount of data, said NFC reader of said NFC reader packaging said read instructions into at least one carrying a smaller amount of data
- An NDEF instruction of data is recorded and sent to the NFC tag by an NFC antenna of the NFC reader/writer via an electromagnetic field;
- the data management system of the NFC tag parses and acquires a starting address and a reading order of the NDEF record group of the data carrying the smaller data amount to be read by the application of the NFC reader/writer, in the reading order
- the NDEF records of the sets of data carrying the smaller amount of data are read from the data area of the non-volatile storage unit.
- the application program of the NFC reader determines the file to be read and the reading order of the plurality of files according to the at least one index information described by the directory area and the data header, and is packaged according to the file to be read.
- the start address of the NDEF record of the data carrying the smaller amount of data is described one by one in the reading order, and the read instruction of each set of the NDEF record carrying the data of a smaller amount of data, each of the read instructions a start address of the NDEF record of the set of the data to be read, which carries a smaller amount of data, and the NFC generator of the NFC reader/writer encapsulates each of the read instructions into at least one bearer
- the NDEF instruction of the data amount data is recorded and sent to the NFC tag by the NFC antenna of the NFC reader/writer via an electromagnetic field;
- the data management system of the NFC tag parses and acquires a start address of the NDEF record group of the data that carries the smaller data amount to be read by the application of the NFC reader/writer, and the bearer has a smaller data amount.
- the NDEF record of the data is read from the data area of the non-volatile memory unit.
- the NFC tag stores the NDEF encapsulated with multiple files. Recording the group, and setting the corresponding directory area and data header in front of the record group, the NFC reader obtains the directory area and the data header and specifies the multi-file data reading method of the NDEF record group to be read by the NFC tag, which may include the following process :
- the NFC reader is close to the NFC tag and establishes NFC communication.
- the NFC tag NFC antenna captures electric energy from the electromagnetic field emitted by the NFC reader, and the NFC tag data management system and the non-volatile storage unit are started.
- the required power, the data management system starts running from the firmware area loading and running program of the non-volatile storage unit;
- Step 501 The data management system of the NFC tag loads the directory area of the non-volatile storage unit and the NDEF record group of the data header, and is sent to the NFC reader by the NFC antenna modulated electromagnetic field of the NFC tag;
- Step 502 The NFC antenna of the NFC reader acquires the NDEF record of the directory area and the data header, and parses the file carried by the NFC parser and stores the files carried in the NDEF record of the NFC tag by the name, type, and data area. At least part of the information such as the file name, file type or file identifier, file sequence code, and data area At least a part of information such as a starting address, a data length or an ending address of the stored plurality of files is transmitted to an application of the NFC reader/writer;
- Step 503 The application of the NFC reader/writer determines, according to the type of the NFC tag or according to the order of the file to be read by the user, the file name or file type of the file to be read and the reading order of the plurality of files. And describing the NDEF record group read command according to the start address, data length or end address information of the file carried by each group of NDEF records to be read, and the NFC generator of the NFC reader/writer will read each group of NDEFs to be read.
- the start address, data length or end address information of the record and the read order instruction of each group of NDEF records are encapsulated into at least one NDEF instruction record carrying a small amount of data, and are sent to the NFC by the NFC antenna of the NFC reader/writer through the electromagnetic field. label;
- Step 504 The NFC antenna of the NFC tag demodulates the electromagnetic field to acquire the data management system that records the at least one NDEF command and transmits the data to the NFC tag.
- Step 505 The data management system of the NFC tag parses and acquires the start address, the data length or the end address information, and the reading order of the NDEF record group to be read by the application of the NFC reader, and sequentially records each group of NDEFs in order. Reading from the data area of the non-volatile memory unit, and transmitting the electromagnetic field to the NFC reader by the NFC antenna of the NFC tag;
- Step 506 The NFC antenna of the NFC reader acquires the at least one NDEF data record, parses the file through the NFC parser, and transmits the file to the application of the NFC reader/writer;
- Step 507 The application of the NFC reader/writer performs processing on the read file.
- the NFC reader application may not send the reading order of the NDEF record group encapsulated by the multiple files to NFC tag, but only the read request (the start address and length information/end address of the NDEF record) of the NDEF record group with the highest read order, and the read order is sent after the group of NDEF records are read.
- the read request of the next NDEF record group start address and length information/end address of the NDEF record
- the application of the NFC reader can read from the beginning of the file by the starting address of the NDEF record group encapsulated by the file, and pass the length information to be read. Locate the length of the file to be read, or, when a portion of a single file has been read, the NFC reader application can locate the starting address (the middle of the entire file) that needs to be read, and by reading The length information taken controls the amount of data to be read.
- the NFC reader acquires an index of a plurality of files of the NFC tag through the directory area and the data header, and further specifies that the file to be read is encapsulated into of The read address and reading order of the NDEF record group, or the reading of a part of the data of the specified file according to the need, provides a more flexible NFC tag file data reading mechanism.
- the NFC reader includes an NFC antenna, an NFC parser, and an application.
- the NFC tag includes an NFC antenna, a data management system, and a non-volatile storage unit, the non-volatile storage unit including a directory area, a data header, and a data area, the data area carrying a plurality of groups carrying a small amount of data
- the form of the NDEF record of the data stores data of a larger amount of data, the data of the larger amount of data comprising a plurality of files, each of the files being separately packaged into a set of NDEF records carrying the data of a smaller amount of data
- the data header describes a starting address of an NDEF record of each set of data carrying a smaller amount of data of the data area, the directory area describing a total data length of the data header, the data area The total data length, and at least one of the information of the name, type, and function of the NFC tag,
- the multi-file data rewriting method includes:
- the data management system of the NFC tag loads the directory area of the non-volatile storage unit and the NDEF record group encapsulated by the data header to carry data of a small amount of data, and is configured by the NFC tag
- the NFC antenna modulating electromagnetic field is sent to the NFC reader/writer;
- the application program of the NFC reader/writer determines a file to be rewritten and a reading order of the plurality of files according to the at least one index information described by the directory area and the data header, and is encapsulated according to the file to be rewritten.
- the start address of the NDEF record carrying the data of a smaller amount of data describes the NDEF record group rewriting instruction of the data carrying the smaller amount of data
- the NFC generator of the NFC reader/writer The start address of the NDEF record group carrying the data of a smaller amount of data and the corresponding rewrite data command are respectively encapsulated into at least one NDEF instruction record carrying data of a smaller data amount, an NDEF record group of the data area, and by the NFC
- the NFC antenna of the reader/writer is sent to the NFC tag through an electromagnetic field;
- the data management system of the NFC tag parses and acquires the start address of the NDEF record group and the corresponding bearer data of the data carrying the smaller data amount to be rewritten by the application of the NFC reader/writer An NDEF record group of data of a small amount of data, said data area of said non-volatile storage unit carrying a smaller amount of data The NDEF record group of data is rewritten.
- the data header further describes at least one type of information, such as a file name, a file type, or an identifier of the file carried by the NDEF record of each group of data carrying a small amount of data, where the identifier is used for marking the location.
- the type of the file carried by the NDEF record carrying the data of a smaller amount of data is used for marking the location.
- the application program of the NFC reader/writer is configured to acquire a file name, a file type, or an identifier of the file carried by the NDEF record of the group of data carrying a small amount of data, and according to the user, At least one of the file name, file type or identification code selected by the visual interface of the application determines the file to be overwritten and the rewriting order of the plurality of files.
- the application program of the NFC reader/writer determines the file to be rewritten and the rewriting order of the plurality of files according to the at least one index information described by the directory area and the data header, and is encapsulated according to the file to be rewritten.
- the start address of the NDEF record carrying the data of a smaller amount of data describes the NDEF record group rewrite instruction of the data carrying the smaller amount of data, the rewrite instruction including the data carrying the smaller amount of data to be rewritten a start address of the NDEF record group and a rewrite sequence of the NDEF records of the plurality of sets of data carrying the smaller data amount, the NFC generator of the NFC reader/writer encapsulating the rewrite instruction into at least one bearer with a smaller data amount
- the NDEF instruction record of the data, the corresponding rewritten data is encapsulated into at least one NDEF record group carrying data of a smaller amount of data, and sent to the NFC tag by the NFC antenna of the NFC reader/writer through an electromagnetic field;
- the data management system of the NFC tag parses and acquires a starting address and a rewriting sequence of the NDEF record group of the data carrying the smaller data amount to be rewritten by the application of the NFC reader/writer, and the rewriting order is
- the NDEF record group carrying the data of a smaller amount of data in the data area of the nonvolatile memory unit performs overwriting.
- the application program of the NFC reader/writer determines the file to be rewritten and the rewriting order of the plurality of files according to the at least one index information described by the directory area and the data header, and is encapsulated according to the file to be rewritten.
- the start address of the NDEF record carrying the data of the smaller data amount describes the rewrite instruction of the NDEF record of each set of the data carrying the smaller data amount one by one in the rewriting order, and each of the rewrite instructions includes a set of rewriting instructions
- the start address of the NDEF record carrying the data of a smaller amount of data the NFC generator of the NFC reader/writer respectively encapsulates each of the rewrite instructions into at least one NDEF instruction record carrying data of a smaller amount of data Decapsulating the corresponding rewritten data into at least one NDEF record group carrying data of a smaller amount of data, and transmitting the NFC tag to the NFC tag by an NFC antenna of the NFC reader/writer;
- the data management system of the NFC tag parses and acquires a starting address of the NDEF record group of the data carrying a smaller amount of data to be rewritten by an application of the NFC reader/writer, and the non-volatile storage unit
- the data area of the NDEF record group carrying data of a small amount of data performs overwriting.
- the NFC tag stores the NDEF encapsulated with multiple files. Recording group, and setting a corresponding directory area and data header in front of the NDEF record group, the NFC reader obtains the directory area and the data header and specifies the multi-file data rewriting method of at least one set of NDEF records to be rewritten by the NFC tag may include the following Process:
- the NFC reader is close to the NFC tag and establishes NFC communication.
- the NFC tag NFC antenna captures electric energy from the electromagnetic field emitted by the NFC reader, and the NFC tag data management system and the non-volatile storage unit are started.
- the required power, the data management system starts running from the firmware area loading and running program of the non-volatile storage unit;
- Step 601 The data management system of the NFC tag loads the directory area of the non-volatile storage unit and the NDEF record group of the data header, and is sent to the NFC reader by the NFC antenna modulation electromagnetic field;
- Step 602 The NFC antenna of the NFC reader acquires the NDEF record of the directory area and the data header, and parses the file carried by the NFC parser and stores the files carried by the NFC tag in the name, type, and data group. At least a part of information such as a file name, a file type or a file identifier, a file sequence code, and at least a part of information such as a start address, a data length or an end address of a plurality of files stored in the data area are transmitted to an application of the NFC reader/writer ;
- Step 603 The application of the NFC reader/writer determines the file to be rewritten according to the file name, file type or file identification code of the NFC tag, the file identification code, the file sequence code, or according to the selection of the file to be rewritten by the user.
- the file name or file type and the rewriting order of multiple files, and the NDEF record group rewriting instruction is described according to the start address, data length or end address information of the files carried in each group of NDEF records to be rewritten, and the NFC reader/writer
- the NFC generator encapsulates the start address, the data length or the end address information of the file to be rewritten, the rewriting sequence of the plurality of files, and the corresponding NDEF record rewriting data into at least one NDEF instruction record carrying a small amount of data, and
- the NFC antenna of the NFC reader is sent to the NFC tag through an electromagnetic field;
- Step 604 The NFC antenna of the NFC tag demodulates the electromagnetic field to acquire the data management system of the at least one NDEF instruction record and transmitted to the NFC tag;
- Step 605 The data management system of the NFC tag parses and acquires the start address, the data length or the end address information of the file to be rewritten by the application program of the NFC reader, the rewriting sequence of the plurality of files, and the corresponding NDEF record rewriting data, directly The NDEF records of the data area of the non-volatile memory unit are rewritten in order.
- the NFC reader application may not send the rewriting order of the NDEF record group encapsulated by the multiple files to the NFC tag. , but only the rewriting request of the NDEF record group with the highest rewrite order (the start address and length information/end of the NDEF record) Address and corresponding rewriting data), and after the rewriting of the group of NDEF records is completed, the rewriting request of the next NDEF record group in the rewriting sequence (the start address and length information/end address of the NDEF record and the corresponding rewriting data) are sent, This completes the NFC communication until all the files to be rewritten are rewritten.
- the application of the NFC reader can be rewritten from the beginning of the file by using the starting address of the NDEF record group encapsulated by the file, and the location information to be overwritten by the length information to be rewritten.
- the length of the file or, when it is necessary to rewrite from the middle of the file, the NFC reader application can control the desired communication by locating the starting address (the middle position of the entire file) that needs to be rewritten, and by the length information to be rewritten. The amount of data.
- the application of the NFC reader/writer when the application of the NFC reader/writer sends the start address, data length or end address information of the NDEF record group encapsulated by the file to be rewritten, the application may be set to at least one NDEF record group. A separate rewritten write type is sent to the NFC tag.
- the NFC reader acquires the indexes of the plurality of files of the NFC tag through the directory area and the data header, and further specifies the NDEF encapsulated by the file to be rewritten.
- the rewriting address of the record group and the rewriting sequence, or the rewriting of a part of the data of the specified file according to the need, provides a more flexible NFC tag file data rewriting mechanism.
- the NFC reader includes an NFC antenna, an NFC parser, and an application.
- the NFC tag includes an NFC antenna, a data management system, and a non-volatile storage unit, the non-volatile storage unit including a directory area, a data header, and a data area, the data area carrying a plurality of groups carrying a small amount of data
- the form of the NDEF record of the data stores data of a larger amount of data, the data of the larger amount of data comprising a plurality of files, each of the files being separately packaged into a set of NDEF records carrying the data of a smaller amount of data
- the data header describes a starting address of an NDEF record of each set of data carrying a smaller amount of data of the data area, the directory area describing a total data length of the data header, the data area Total data length,
- the multi-file data rewriting method includes:
- the application program of the NFC reader/writer generates a data header, a directory area of a start address of the NDEF record of the data carrying the smaller data amount encapsulated by the new file according to the file to be rewritten, the rewriting order Index information, the NFC generator of the NFC reader/writer encapsulates the data header to be rewritten, the index information of the directory area, and the corresponding overwrite file into at least one NDEF instruction record carrying data of a small amount of data.
- the NDEF record group of the directory area, the NDEF record group of the data header, and the NDEF record group of the data area and are sent to the NFC tag by the NFC antenna of the NFC reader/writer through an electromagnetic field;
- the NFC tag data management system parses and acquires an instruction to be rewritten by the NFC reader/writer application, and directly receives the received NDEF record group of the directory area and the data header that carries data of a smaller data amount. Rewriting the directory area and the data header of the non-volatile storage unit, and sequentially rewriting the NDEF record group of the data area carrying the smaller data amount of the data area to the non-volatile storage The data area of the unit.
- the data header is further configured to describe at least one type of information, such as a file name, a file type, or an identifier of the file carried by the NDEF record of each group of data carrying a small amount of data, where the identifier is used for marking The type of the file carried by the NDEF record carrying data of a small amount of data,
- the application of the NFC reader/writer determines a file to be rewritten and a rewriting order of the plurality of files according to at least one of the file name, file type or identification code selected by the user through the visual interface of the application.
- the multi-file data rewriting method can include the following processes:
- the NFC reader is close to the NFC tag and establishes NFC communication.
- the NFC tag NFC antenna captures electric energy from the electromagnetic field emitted by the NFC reader, and the NFC tag data management system and the non-volatile storage unit are started.
- the required power, the data management system starts running from the firmware area loading and running program of the non-volatile storage unit;
- Step 701 The application of the NFC reader determines the file name or file type of the file to be rewritten and the rewriting order of the plurality of files according to the selection of the file to be rewritten by the user, and according to each file to be rewritten.
- the start address, data length or end address information generates a new file name, file type, file identifier, file sequence code, and index information such as the start address, data length or end address of the file, and NFC occurrence of the NFC reader/writer
- the file name or file type, the start address, the data length or the end address information of each file to be rewritten, the rewriting order of the plurality of files, the corresponding file rewriting data, and the corresponding new index information are respectively encapsulated into a bearer.
- Step 702 The data management system of the NFC tag parses and acquires an instruction to be rewritten by the application of the NFC reader, directly writes the index information of the new directory area and the data header to the directory area and the data header, and sequentially The NDEF record of the data area of the nonvolatile memory cell is overwritten.
- the NFC reader can be straight The file name, file type or file address to be rewritten and the new index information are specified, so that the NFC tag rewriting operation can be directly controlled on the NFC reader side, and a more flexible NFC tag file data writing mechanism is provided. .
- the NFC tag provided by the present invention should not be limited to a portable NFC card, and the NFC tag may also be attached or
- the integrated way to form NFC storage parts on fixed equipment or large equipment, such as NFC storage parts attached to the exhibition stand, attached to the refrigerator or self-service vending machine, can be pasted to the NFC poster of the wall, the same,
- the NFC tag can also be packaged in other shapes or configurations, such as an NFC identification tag that is machined into the collar, attached to the NFC verification component in the wine, as long as the larger amount of data provided by the present invention is applied in the NFC storage component.
- the methods of storage, reading and writing are all within the scope of the invention.
- the electromagnetic field through the NFC communication in the NFC tag can capture the power required for the operation of the NFC tag
- the NFC tag can be attached to the battery or other power supply device for powering the NFC tag.
- the work of the data management system does not affect the implementation of the technical idea of the present invention.
- a data management system is set in an NFC tag, a plurality of NDEF records are read by the data management system, and a plurality of NDEF records are directly written into the non-volatile storage unit, thereby realizing The storage and transmission of a relatively large amount of data, and the data header is set in the non-volatile storage unit, and the reading or rewriting of the NDEF record encapsulated by the targeted or partial file is performed by the index information of each file in the data header.
- Rewrite, and read and write NFC tags through the NFC reader-side application to achieve more flexible reading and writing of data in NFC tags.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Computer Networks & Wireless Communication (AREA)
- Toxicology (AREA)
- Electromagnetism (AREA)
- Computer Security & Cryptography (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Near-Field Transmission Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
一种NFC标签。NFC标签内设置数据管理系统,通过数据管理系统读取多个承载较小数据量的数据的NDEF记录组,以及将多个承载较小数据量的数据的NDEF记录组直接写入非易失性存储单元,实现较大量数据的存储和传输,并且,在非易失性存储单元中设置数据头,通过数据头中各个NDEF记录组的索引信息执行有针对性的或部分文件数据的读取或改写、重写,实现更灵活的NFC标签内数据的读取与写入操作。
Description
相关技术的交叉引用
本申请要求享有2016年04月01日提交的名称为:“NFC标签、NFC读写器和NFC标签的数据读写方法”的中国专利申请CN201610206809.9的优先权,其全部内容通过引用并入本文中。
本发明属于无线通信领域,涉及工作于标签和读写器模式的一种NFC标签、NFC读写器和NFC标签的数据读写方法。
近场通信(Near Field Communication,简称NFC),是一种工作于13.56MHz(兆赫兹)的频率上、通信连接建立时间小于1秒且通信距离通常局限在10厘米以内的快捷短距离高频无线通信技术。目前基于NFC协议规范NFCIP-1(包括ISO/IEC 18092国际标准和ECMA-340标准)、ISO/IEC 14443国际标准、日本工业标准(JIS)X 6319-4等非接触智能卡标准定义的NFC设备可以工作于针对NFC标签的读写器模式、针对其它NFC设备之间的点对点模式、针对其它NFC读写器的卡模拟模式中,而且基于不同的NFC标准的NFC设备支持106kbps(千比特每秒)、212kbps和424kbps等不同的数据传输速率。NFC设备之间支持两种通信模式:通信发起设备和目标通信设备都通过自身供电且交替传输数据的主动模式(如点对点模式);通信发起设备产生无线信号并通过电磁场为目标通信设备供电,目标通信设备通过对现有电磁场调制来回应通信发起设备的被动模式(如读写器模式和卡模拟模式)。通常在标签和读写器模式中,NFC读写器(如支持NFC通信的手机)靠近无源NFC标签并产生无线信号,NFC标签的天线从该无线信号的电磁场中捕获电能为存储器供电,并通过对该电磁场的调制来将存储器所存储的数据发送至NFC读写器。由于无源NFC标签仅需天线和相应的存储器件而无需额外电池的特点,制造简单、成本低廉且体积单薄携带方便,目前广泛应用于电子签卡、防伪识别和电子名片中,给人们的生活带来极大便利。
目前,NFC数据通信的协议由NFC论坛(NFC Forum)进行标准化,NFC论坛定义了NFC数据交换格式(NFC Data Exchange Format,简称NDEF)作为NFC设备与NFC
标签之间以及NFC设备之间进行NFC通信的通用数据格式。NDEF以一个NDEF消息(NDEF Message)作为一次NFC通信的数据交换结构,一个NDEF消息可以包含至少一个NDEF记录(NDEF Record),每一个NDEF记录承载有用于通信的数据作为的有效载荷(NDEF Payload)。NFC设备之间通信时,目标通信设备内部的NFC发生器(NFC generator)将需要通信的数据作为有效载荷封装入一个或多个NDEF记录中,并将该一个或多个NDEF记录作为一个NDEF消息发送至通信发起设备,通信发起设备内部的NFC解析器(NFC parser)将所接收的NDEF消息解析出有效载荷并传送给NDEF应用(NDEF Application)进行处理。
现有的NFC标签中,NFC标签的存储器内以单个NDEF记录的形式存储一个NDEF消息,NFC设备作为通信发起设备读取NFC标签时,NFC标签直接将该单个NDEF记录作为一个NDEF消息发送至NFC设备,NFC设备内部的NFC解析器将该单个NDEF记录解析出有效载荷并传送给NDEF应用进行处理。
由于现有的NFC标签中只存储单个NDEF记录,即便该单个NDEF记录中可以包含多个NDEF子记录作为有效载荷进行封装。但是,由于NFC通信速度的限制,且目标通信设备和通信发起设备之间通过数据帧传输,单个NDEF记录数据量过大会造成NFC通信中的丢帧传输使通信错误率太高而传输失败,目前NFC标签所能够存储的单个NDEF记录数据量通常限制在8KB(千字节)以内。从而,目前的NFC标签是无法存储并传输数十KB甚至几MB(兆字节)的较大量的数据的。
而且,涉及多个文件的组合数据存储与传输中,通常将该多个文件分别作为有效载荷封装入多个NDEF子记录中,再将该多个NDEF子记录封装入单个NDEF记录存储至NFC标签中。读取文件时,需要将NFC标签中的NDEF记录全部读出并由NFC解析器解析后才能获得目标文件,无法有选择性地或仅部分地读取其中的文件,写入文件时,需要将全部文件封装成单个NDEF记录写入至NFC标签,无法有针对性地或仅部分地改写其中的文件,不具备文件读写的灵活性。
从而,一种能够存储并传输较大量数据的NFC标签以及一种有选择性地读写部分数据的NFC标签读写方法是需要的。
发明内容
为了解决现有技术中存在的NFC标签无法存储并传输较大量的数据且数据读写不灵活的问题,本发明提供了一种新的NFC标签、NFC读写器和NFC标签的数据读写方法。
一种NFC标签,包括:
NFC天线,通过解调或调制电磁场进行承载较小数据量的数据的NDEF记录的收发通信;
非易失性存储单元,以多个承载较小数据量的数据的NDEF记录的形式存储着较大数据量的数据;
数据管理系统,包括NDEF消息读出单元和NDEF消息发送单元,NDEF消息读出单元用于从非易失性存储单元中将该多个承载较小数据量的数据的NDEF记录读出,NDEF消息发送单元用于将NDEF消息读出单元读出的多个承载较小数据量的数据的NDEF记录通过NFC天线调制电磁场发送。
基于本发明的实施例,上述NDEF消息读出单元用于按照该较大数据量的数据所封装成承载较小数据量的数据的NDEF记录的顺序逐个从非易失性存储单元中将该多个承载较小数据量的数据的NDEF记录读出。
基于本发明的实施例,上述NDEF消息发送单元用于按照该较大数据量的数据所封装成承载较小数据量的数据的NDEF记录的顺序逐个将该多个承载较小数据量的数据的NDEF记录通过NFC天线调制电磁场发送。
一种NFC标签,包括:
NFC天线,通过解调或调制电磁场进行承载较小数据量的数据的NDEF记录的收发通信;
非易失性存储单元,存储较大数据量的数据;
数据管理系统,包括数据读写单元、NDEF消息封装单元、NDEF消息解析单元和NDEF消息收发单元,数据读写单元用于将非易失性存储单元所存储的较大数据量的数据读出,NDEF消息封装单元用于将该较大数据量的数据封装成多个承载较小数据量的数据的NDEF记录,NDEF消息收发单元用于将该多个承载较小数据量的数据的NDEF记录通过NFC天线调制电磁场发送,以及,NDEF消息收发单元用于将NFC天线接收的多个承载较小数据量的数据的NDEF记录发送至NDEF消息解析单元,NDEF消息解析单元用于将该多个承载较小数据量的数据的NDEF记录解析并提取出有效载荷中的较大数据量的数据,将该较大数据量的数据传送给数据读写单元,数据读写单元用于将该较大数据量的数据写入至非易失性存储单元。
基于本发明的实施例,上述多个承载较小数据量的数据的NDEF记录包含至少一个NDEF子记录,NDEF消息解析单元将该至少一个NDEF子记录传送给数据读写单元。
基于本发明的实施例,上述NFC标签的NFC天线还用于从电磁场捕获电能。
与现有技术相比,本发明所提供的NFC标签、NFC读写器以及针对NFC标签的读
写方法,在NFC标签内设置数据管理系统,通过数据管理系统读取多个NDEF记录,以及将多个NDEF记录直接写入非易失性存储单元,实现较大量数据的存储和传输,并且,在非易失性存储单元中设置数据头,通过数据头中各个文件的索引信息执行有针对性的或部分文件数据的读取或改写、重写,以及,通过NFC读写器端的应用程序对NFC标签读写,实现更灵活的NFC标签内数据的读取与写入操作。
本发明的其它特征和优点将在随后的说明书中阐述,并且部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图用来提供对本实用新型的进一步理解,并且构成说明书的一部分,与本发明的实施例共同用于解释本发明,并不构成对本发明的限制。在附图中:
图1是本发明所提供的NFC标签的结构示意图;
图2是本发明实施例一所提供的NFC标签的结构示意图;
图3是本发明实施例二所提供的NFC标签的结构示意图;
图4是本发明实施例所提供的NFC标签的数据存储结构图。
下面,结合附图和实施例对本发明的技术方案进行详细描述。本领域普通技术人员应理解,为了简化描述过程以及使技术方案清楚呈现,以下仅以最优的实现方式来加以说明,只要不构成冲突,本发明中的各个实施例以及各实施例中的各个特征可以相互结合,所形成的技术方案均应当在本发明的保护范围之内。
图1为本发明所提供的NFC标签的结构示意图。如图1所示,NFC标签2包括:用于从电磁场捕获电能并通过解调或调制电磁场进行收发通信的NFC天线21,存储有多个已封装NDEF记录的非易失性存储单元22,以及,NFC标签2还包括数据管理系统23,用于对非易失性存储单元22所存储的多个NDEF记录进行管理、读出或存储,将非易失性存储单元22所存储的多个NDEF记录读出并直接由NFC天线21发送出去或将NFC天线21所接收的NDEF消息直接写入至非易失性存储单元22。
具体的,NFC天线21可以是环绕成圆形或椭圆形或者其它任意形状的线圈。非易失性存储单元22可以采用EEPROM、EPROM、FLASH、铁电存储器或相变存储器等非易失性存储器件来实现,也可以采用一个或多个寄存器、暂存器以及RAM等易失性存储器和以上至少一种非易失性存储器的组合来实现。数据管理系统23可以是单独设置的单
片机控制器,也可以是与非易失性存储单元23集成于一体的多个控制电路组合,比如采用设计于晶圆上的SOC系统。
针对不同的存储类型,本发明所提供的数据管理系统23可以有多种实现方式,下面结合附图2-3对本发明所提供的NFC标签2的实现结构做详细说明。
实施例一
一种NFC标签,包括:
NFC天线,通过解调或调制电磁场进行承载较小数据量的数据的NDEF记录的收发通信;
非易失性存储单元,以多个所述承载较小数据量的数据的NDEF记录的形式存储着较大数据量的数据;
数据管理系统,包括NDEF消息读出单元和NDEF消息发送单元,
所述NDEF消息读出单元用于从所述非易失性存储单元中将所述多个承载较小数据量的数据的NDEF记录读出,
所述NDEF消息发送单元用于将所述NDEF消息读出单元读出的所述多个承载较小数据量的数据的NDEF记录通过所述NFC天线调制电磁场发送。
所述非易失性存储单元按照所述较大数据量的数据所封装成所述多个承载较小数据量的数据的NDEF记录的顺序逐个存储所述承载较小数据量的数据的NDEF记录,
所述NDEF消息读出单元用于从所述非易失性存储单元所存储的所述承载较小数据量的数据的NDEF记录的起始地址顺序读出所述承载较小数据量的数据的NDEF记录。
所述NDEF消息读出单元用于按照所述较大数据量的数据所封装成所述多个承载较小数据量的数据的NDEF记录的顺序逐个从所述非易失性存储单元中将所述多个承载较小数据量的数据的NDEF记录读出。
所述NDEF消息发送单元用于按照所述较大数据量的数据所封装成所述多个承载较小数据量的数据的NDEF记录的顺序将所述NDEF消息读出单元读出的所述多个承载较小数据量的数据的NDEF记录通过所述NFC天线调制电磁场发送。
所述NDEF消息读出单元用于按照所述较大数据量的数据所封装成所述多个承载较小数据量的数据的NDEF记录的顺序逐个从所述非易失性存储单元中将所述多个承载较小数据量的数据的NDEF记录读出,
所述NDEF消息发送单元用于将所述NDEF消息读出单元逐个读出的单个所述承载较小数据量的数据的NDEF记录通过所述NFC天线调制电磁场发送。
所述NDEF消息发送单元在发送首个所述承载较小数据量的数据的NDEF记录之前
发送一个携带有起始标记的NDEF记录,所述携带有起始标记的NDEF记录用于表示所述多个承载较小数据量的数据的NDEF记录发送的开始,和/或
所述NDEF消息发送单元在发送最后一个所述承载较小数据量的数据的NDEF记录之后发送一个携带有结束标记的NDEF记录,所述携带有结束标记的NDEF记录用于表示所述多个承载较小数据量的数据的NDEF记录发送的完成。
所述NDEF消息发送单元在要发送的首个所述承载较小数据量的数据的NDEF记录上进行起始标记,所述起始标记用于表示所述多个承载较小数据量的数据的NDEF记录发送的开始,和/或
所述NDEF消息发送单元在要发送的最后一个所述承载较小数据量的数据的NDEF记录上进行结束标记,所述结束标记用于表示所述多个承载较小数据量的数据的NDEF记录发送的完成。
所述承载较小数据量的数据的NDEF记录为能够被NFC天线稳定发送出去的NDEF记录。
所述承载较小数据量的数据的NDEF记录为数据量小于8KB的NDEF记录。
所述较大数据量的数据的数据量超过了能够被NFC天线稳定发送出去的单个NDEF记录的有效载荷可携带数据的数据量。
所述较大数据量的数据为数据量大于1MB的文件。
具体的,
图2为本发明实施例一所提供的NFC标签的结构示意图。如图2所示,NFC标签2的非易失性存储单元22以已封装好的多个NDEF记录的形式存储着较大量的数据(如大于1MB的文件,其数据量超过了能够被NFC天线稳定发送至NFC读写器的单个NDEF记录的有效载荷可携带数据的数据量),该所存储的较大量数据的一部分作为有效载荷封装入每一个NDEF记录中,每一个NDEF记录承载较小量的数据(如小于8KB的NDEF记录)且能够被NFC天线21稳定发送至NFC读写器中,以及,NFC标签2的数据管理系统23包括NDEF消息发送单元231a和NDEF消息读出单元232a,NDEF消息读出单元232a用于按照该较大量的数据所封装成NDEF记录的顺序逐个从非易失性存储单元22中将该多个NDEF记录读出,NDEF消息发送单元231a用于将NDEF消息读出单元232a读出的有序的NDEF记录作为至少一个NDEF消息通过NFC天线21调制电磁场发送出去。
进一步的,NDEF消息发送单元231a在发送首个承载较小量的数据的NDEF记录之前先发送一个携带有起始标记的NDEF记录以表示多个NDEF记录发送的开始,并在发
送完本次读取的最后一个承载较小量的数据的NDEF记录之后再发送一个携带有结束标记的NDEF记录以表示本次多个NDEF记录发送的完成;或者,由NDEF消息发送单元231a在发送首个承载较小量的数据的NDEF记录时在该NDEF记录上进行起始标记,并在发送本次读取的最后一个承载较小量的数据的NDEF记录时在该NDEF记录上进行结束标记。
可选的,NDEF消息发送单元231a和NDEF消息读出单元232a也可以合并设置为单独一个控制NDEF记录读出并发送的NDEF消息读出发送单元,或是采用相重叠的多个控制电路组合。
可选的,NDEF消息读出单元232a也可以直接从非易失性存储单元22中将该多个NDEF记录逐个读出,并由NDEF消息发送单元231a按照该较大量的数据所封装成NDEF记录的顺序将该多个NDEF记录作为一个NDEF消息通过NFC天线21调制电磁场发送出去;或者,NDEF消息读出单元232a直接从非易失性存储单元22中将该多个NDEF记录按照该较大量的数据所封装成NDEF记录的顺序逐个读出,并由NDEF消息发送单元231a将读出的单个NDEF记录作为一个NDEF消息通过NFC天线21调制电磁场逐个发送出去。
优选的,非易失性存储单元22按照该较大量的数据所封装成NDEF记录的顺序逐个存储该多个NDEF记录,并由NDEF消息读出单元232a从起始地址顺序读出该多个NDEF记录。
需要说明的是,本实施例所提供的NFC标签2的非易失性存储单元22可以仅存储一个NDEF消息的多个NDEF记录,也可以按顺序存储多个NDEF消息的NDEF记录,只要在发送完一个NDEF消息的一个或多个NDEF记录后再发送下一个NDEF消息的NDEF记录即可实现不同NDEF消息的有序接收并解析处理以避免属于不同的NDEF消息的NDEF记录冲突。
基于本实施例所提供的NFC标签,在NFC标签中设置数据管理系统,使得NFC标签具备数据管理能力,能够将封装有较大量数据的多个NDEF记录逐个读出并利用通信起始和结束标记控制该多个NDEF记录能够持续稳定地发送出去,使得NFC标签不仅能够存储较大量的数据,而且能够满足当前NFC通信的限制将较大量的数据发送出去。
实施例二
一种NFC标签,包括:
NFC天线,通过解调或调制电磁场进行承载较小数据量的数据的NDEF记录的收发通信;
非易失性存储单元,以多个所述承载较小数据量的数据的NDEF记录的形式存储着较大数据量的数据;
数据管理系统,包括NDEF消息读写单元和NDEF消息收发单元,
所述NDEF消息读写单元用于从所述非易失性存储单元中将所述多个承载较小数据量的数据的NDEF记录读出,所述NDEF消息收发单元用于将所述NDEF消息读出单元读出的所述多个承载较小数据量的数据的NDEF记录通过所述NFC天线调制电磁场发送,以及,
所述NDEF消息收发单元用于将所述NFC天线接收的所述多个承载较小数据量的数据的NDEF记录发送至所述NDEF消息读写单元,所述NDEF消息读写单元用于将所述多个承载较小数据量的数据的NDEF记录写入至所述非易失性存储单元。
所述NDEF消息读出单元用于按照所述较大数据量的数据所封装成所述多个承载较小数据量的数据的NDEF记录的顺序逐个从所述非易失性存储单元中将所述多个承载较小数据量的数据的NDEF记录读出。
所述NDEF消息读写单元用于按照所述NFC天线所接收的所述多个承载较小数据量的数据的NDEF记录的顺序将所述多个承载较小数据量的数据的NDEF记录写入至所述非易失性存储单元。
所述NDEF消息读出单元按照所述NFC天线所接收的所述多个承载较小数据量的数据的NDEF记录的顺序将所述多个承载较小数据量的数据的NDEF记录从所述非易失性存储单元所存储的所述承载较小数据量的数据的NDEF记录的起始地址顺序写入至所述非易失性存储单元。
所述NDEF消息收发单元设置为从所述NFC天线每接收一个所述承载较小数据量的数据的NDEF记录就将所述承载较小数据量的数据的NDEF记录发送至所述NDEF消息读写单元,
并由所述NDEF消息读写单元将所述一个承载较小数据量的数据的NDEF记录写入至所述非易失性存储单元。
所述NDEF消息收发单元在接收到一个携带有起始标记的NDEF记录时表示所述多个承载较小数据量的数据的NDEF记录接收的开始,和/或
所述NDEF消息收发单元在接收到一个携带有结束标记的NDEF记录时表示所述多个承载较小数据量的数据的NDEF记录接收的完成。
所述携带有起始标记的NDEF记录为首个所述承载较小量的数据的NDEF记录,和/或
所述携带有结束标记的NDEF记录为最后一个所述承载较小量的数据的NDEF记录。
具体的,
图3为本发明实施例二所提供的NFC标签的结构示意图。与实施例一所提供的NFC标签相类似的,本实施例所提供的NFC标签2的非易失性存储单元22同样以已封装好的多个NDEF记录的形式存储着较大量的数据。如图3所示,本实施例所提供的数据管理系统23的NDEF消息收发单元231b和NDEF消息读写单元232b,相比于实施例一所提供的NDEF消息发送单元231a和NDEF消息读出单元232a,不仅具有NDEF消息读出的功能设置,还具有NDEF消息写入的功能设置。由于NDEF消息收发单元231b和NDEF消息读写单元232b将非易失性存储单元22所存储的多个NDEF记录读出的原理和实施例一的相同,在此不再赘述。
当NFC读写器向NFC标签2写入数据时,NFC标签2的NFC天线21解调电磁场得到所接收的NDEF消息,NDEF消息收发单元231b将该包含多个特定顺序的NDEF记录的NDEF消息发送至NDEF消息读写单元232b,NDEF消息读写单元232b将该多个NDEF记录按照顺序逐个写入至非易失性存储单元22中。
进一步的,NDEF消息收发单元231b接收到一个NFC读写器发送的携带有起始标记的NDEF记录时表示多个NDEF记录发送的开始,紧接着开始接收首个承载较小量的数据的NDEF记录,并在接收到一个携带有结束标记的NDEF记录时表示本次多个NDEF记录发送的完成;或者,在发送给NDEF消息收发单元231b的首个承载较小量的数据的NDEF记录上进行起始标记,并在本次发送的最后一个承载较小量的数据的NDEF记录上进行结束标记,由NDEF消息收发单元231b完成消息接收的判断。可选的,NDEF消息读写单元232b也可以分开设置为单独一个用于控制NDEF消息读出的NDEF消息读出单元(如图2的232a)和单独一个用于控制NDEF消息写入的NDEF消息写入单元,同样的,NDEF消息收发单元231b也可以分开设置为单独一个用于控制NDEF消息发送的NDEF消息发送单元(如图2的231a)和单独一个用于控制NDEF消息接收的NDEF消息接收单元。
需要说明的是,NDEF消息读写单元232b将多个NDEF记录写入至非易失性存储单元22时,可以按照NDEF记录的先后顺序从非易失性存储单元22的首地址开始向后逐个写入存储,也可以按照非易失性存储单元22所存储的既定顺序不分前后存储地址的写入NDEF记录,只要在读取NDEF记录时按照该较大量的数据所封装成NDEF记录的顺序读出即可。
可选的,NDEF消息收发单元231b也可以设置为每接收到一个NDEF记录就将该NDEF记录发送至NDEF消息读写单元232b,由NDEF消息读写单元232b写入至非易失性存储单元22中。
基于本实施例所提供的NFC标签,在NFC标签中设置的数据管理系统,使得NFC标签具备数据管理的写入能力,能够将封装有较大量数据的多个NDEF记录逐个写入并存储,使得NFC标签不仅能够满足当前NFC通信的限制将较大量的数据发送出去,而且能够以NDEF记录的形式接收并存储较大量的数据。
实施例一和实施例二提供了一种以已封装好的多个NDEF记录的形式存储较大量数据的NFC标签,当该较大量数据包括多个文件的组合且需要针对不同的文件进行分别读写管理时,本发明提供了一种用于管理多个文件的NFC标签数据存储结构。
实施例三
一种NFC标签,包括:
NFC天线,通过解调或调制电磁场进行承载较小数据量的数据的NDEF记录的收发通信;
非易失性存储单元,以多组所述承载较小数据量的数据的NDEF记录的形式存储着较大数据量的数据,所述较大数据量的数据包括多个文件,每个所述文件分别封装成一组所述承载较小数据量的数据的NDEF记录;
数据管理系统,包括NDEF消息读出单元和NDEF消息发送单元,
所述NDEF消息读出单元用于从所述非易失性存储单元中将所述承载较小数据量的数据的NDEF记录读出,
所述NDEF消息发送单元用于将所述NDEF消息读出单元读出的所述承载较小数据量的数据的NDEF记录通过所述NFC天线调制电磁场发送,
其中,所述非易失性存储单元包括:
数据区,按顺序存储着所述多组承载较小数据量的数据的NDEF记录;
数据头,描述了所述数据区的每组所述承载较小数据量的数据的NDEF记录的起始地址;
目录区,描述了所述数据头的总数据长度以及所述数据区的总数据长度。
在所述非易失性存储单元的存储地址中,所述数据头存储在所述数据区之前,所述目录区存储在所述数据头之前。
所述目录区的所述数据头的总数据长度信息设置于所述数据头的起始位置,
所述目录区的所述数据区的总数据长度信息设置于所述数据区的起始位置。
所述数据头还描述了所述数据区的每组所述承载较小数据量的数据的NDEF记录的数据长度。
所述数据头还描述了所述数据区的每组所述承载较小数据量的数据的NDEF记录的结束地址。
所述数据头还描述了各组所述承载较小数据量的数据的NDEF记录所携带的所述文件的文件名、文件类型或识别码、顺序码以上至少一种信息,
所述识别码用于标记所述承载较小数据量的数据的NDEF记录所携带的所述文件的类型,
所述顺序码用于标记各组所述承载较小数据量的数据的NDEF记录所携带的所述文件的读取顺序。
所述目录区还描述了所述数据区的所述承载较小数据量的数据的NDEF记录的组数、每组所述承载较小数据量的数据的NDEF记录的生成日期、每组所述承载较小数据量的数据的NDEF记录的改写日期,所述NFC标签的名称、类型、功能、生产日期以及相应的识别码或校验码以上至少一种信息。
所述NFC标签的类型用于确定所述NFC标签的所述多组承载较小数据量的数据的NDEF记录所携带的所述文件的应用策略。
所述目录区和所述数据头以所述承载较小数据量的数据的NDEF记录组的形式存储在非易失性存储单元中,其中,
所述目录区封装为至少一组所述承载较小数据量的数据的NDEF记录,
所述数据头封装为至少一组所述承载较小数据量的数据的NDEF记录。
所述承载较小数据量的数据的NDEF记录为能够被NFC天线稳定发送出去的NDEF记录。
所述较大数据量的数据的数据量超过了能够被NFC天线稳定发送出去的单个NDEF记录的有效载荷可携带数据的数据量。
具体的,
图4为本发明实施例三所提供的NFC标签的数据存储结构示意图。非易失性存储单元22中可以设置有用于存储数据管理系统运行所需的运行程序、指令的固件区和用于存储包括多个文件数据的NDEF记录以及与这些NDEF记录相关的用于数据管理的索引目录的存储区。如图4所示,非易失性存储单元22包括:固件区221,用于存储数据管理系统运行所需的运行程序、指令等固件,以及其他本NFC标签运行所需的存储固件;目录区222,设置于数据头223和数据区224之前,描述了数据头223的总长度信息、数据
区224的总长度信息、数据区224的NDEF记录组数(每一个文件对应于一组NDEF记录)等至少一种信息,用于分别索引并识别数据头223和数据区224,目录区还可以包括本NFC标签的名称、类型、功能、生产日期、每组NDEF记录的生成日期、每组NDEF记录的改写日期以及相应的识别码或校验码等信息,NFC标签的类型可以用标识码来标记,用于确定NFC标签的数据的应用策略,NFC标签的名称可以设置为更改或不可更改,用于通过NFC标签的类型和NFC标签的名称来识别并区别NFC标签;数据头223,按照各组NDEF记录的存储顺序分别描述了各组NDEF记录的首地址信息和长度信息,用于通过每组NDEF记录的起始地址和数据的长度分别对该组NDEF记录进行查找以及读写,可选的,数据头223也可以分别描述各组NDEF记录的首地址信息和尾地址信息,通过每组NDEF记录的起始地址和结束地址来索引该组NDEF记录,其中,数据头223也可以追加描述各组NDEF记录所携带的文件的文件名、文件类型或各文件的识别码、顺序码;数据区224,依照数据头223所描述的各组NDEF记录的首地址信息和数据长度信息,或者,首地址信息和尾地址信息,存储各组NDEF记录数据。
当NFC标签所存储的较大量数据是由不同类型的多个文件组合或者同一类型的多个文件组成时,在本实施例所提供的数据存储结构中,分别将每一个文件封装成一组携带有较小数据量的NDEF记录,并对该组NDEF记录进行描述和索引,从而实现对不同文件数据的分别读写和管理。其中,每组NDEF记录中NDEF记录的数量可以为一个或者多个,可以根据文件数据的大小封装成能够进行稳定NFC通信的携带较小数据量的NDEF记录的比例来决定所封装的NDEF记录的个数。
进一步的,目录区222和数据头223的信息也是以NDEF记录组的形式存储在非易失性存储单元22中。优选的,目录区222封装为第一组NDEF记录,数据头223封装为第二组NDEF记录,数据区224中每个文件分别封装为一组NDEF记录,当需要读取NFC标签中的数据时,NFC标签首先将目录区222和数据头223的NDEF记录发送出去,依据相应的读取指令将数据区224中的部分或全部NDEF记录发送出去。当然,根据读取的流程设置,也可以将目录区222和数据头223的信息分别封装为多组NDEF记录,例如,将目录区222的数据头223的总长度信息、数据区224的总长度信息、数据区224的NDEF记录组数封装为第一组NDEF记录,将目录区222的NFC标签的名称、类型、功能、生产日期、每组NDEF记录的生成日期、每组NDEF记录的改写日期以及相应的识别码或校验码等信息封装为第二组NDEF记录,用于满足特定的部分读取需求。可选的,数据头223的总长度信息和数据区224的总长度信息,也可以分别在各自区的起始位置单独进行描述,例如,在目录区的前2字节描述了目录区的总长度,在数据头的前2
字节描述了数据头的总长度;而且,目录区222也可以和数据头223也可以合并为单独的一个信息区,用于描述本NFC标签的信息,以及数据区的NDEF记录组数、文件名和每个文件对应的NDEF记录组的起始地址、数据长度或结束地址。
当NFC标签的NFC天线从电磁场中捕获电能,数据管理系统和非易失性存储单元获得运行所需的电能,数据管理系统从非易失性存储单元的固件区加载运行程序开始执行数据的读出或写入等管理任务,其中,数据管理系统优先读出非易失性存储单元的目录区和数据头的NDEF记录组,并将这些信息发送出去,用于识别NFC标签的信息,以及索引每组NDEF记录的起始地址、数据长度或结束地址。当接收到对数据区224中至少一组NDEF记录的读写请求时,数据管理系统依据该组NDEF记录所对应的起始地址和数据长度/结束地址,执行读出或改写,或者,当接收到对某一起始地址和数据长度的数据的读写请求时,数据管理系统指向该起始地址并对规定的数据长度的数据执行读出或改写。
需要说明的是,本实施例优选地将目录区和数据头存储在数据区前,可选的,也可以将目录区或数据头存储在其它地址或以其它特定的顺序存储,只要优先读取本目录区和数据头的索引信息并以此来索引数据区中各组NDEF记录即属于本发明之目的。
需要说明的是,不加以限定的,本实施例所描述的每组NDEF记录所对应的文件也可以是以NDEF记录的形式存储的数据,同样的,本实施例所描述的每个文件可以是单独类型的单个文件也可以是多个文件的集合体,如文件的压缩包等,还可以是单个文件的一部分,如多个压缩包中的一个。
基于本实施例所提供的NFC标签的数据存储结构,可以依据数据头描述的各文件所封装成的每组NDEF记录的起始地址、长度信息或起始地址、结束地址单独索引每一个文件及其NDEF记录,并有针对性地或仅部分地执行文件的读写,为NFC标签的多文件数据提供了更灵活的读写方式。
实施例四
一种NFC读写器,用于与NFC标签通信,
所述NFC标签的非易失性存储单元以多组承载较小数据量的数据的NDEF记录的形式存储着较大数据量的数据,所述较大数据量的数据包括多个文件,每个所述文件分别封装成一组所述承载较小数据量的数据的NDEF记录,
所述非易失性存储单元包括数据区、数据头、目录区,
所述数据区按顺序存储着所述多组承载较小数据量的数据的NDEF记录,
所述数据头描述了所述数据区的每组所述承载较小数据量的数据的NDEF记录的起
始地址,
所述目录区描述了所述数据头的总数据长度、所述数据区的总数据长度,以及所述NFC标签的名称、类型、功能以上至少一种信息,
所述NFC读写器包括:
NFC天线,用于与所述NFC标签进行NFC通信;
NFC解析器,用于解析所述NFC天线所接收到的所述承载较小数据量的数据的NDEF记录;
NFC发生器,用于将所述NFC读写器要发送的数据或指令封装成所述承载较小数据量的数据的NDEF记录;
应用程序,安装在所述NFC读写器中,用于经由NFC天线获取所述NFC标签的目录区、数据头所描述的至少一种索引信息,并依据所述至少一种索引信息指定所述NFC标签中的多组承载较小数据量的数据的NDEF记录的读取个数和读取顺序。
所述应用程序获取所述NFC标签的类型,并依据所述NFC标签的类型指定所述NFC标签中的多组承载较小数据量的数据的NDEF记录的读取顺序。
所述数据头还描述了各组所述承载较小数据量的数据的NDEF记录所携带的所述文件的文件名、文件类型或识别码、顺序码以上至少一种信息,
所述识别码用于标记所述承载较小数据量的数据的NDEF记录所携带的所述文件的类型,
所述顺序码用于标记各组所述承载较小数据量的数据的NDEF记录所携带的所述文件的读取顺序。
所述应用程序具有用户可视化和用户交互的操作界面,所述应用程序用于获取所述NFC标签的各组所述承载较小数据量的数据的NDEF记录所携带的所述文件的文件名、文件类型,并将所述文件的文件名、文件类型在可视化操作界面中显示给用户,
所述应用程序还用于依据用户选定的至少一个待读取的所述文件指定所述NFC标签中的所述待读取的文件封装成的承载较小数据量的数据的NDEF记录组的读取。
所述应用程序依据所述顺序码指定所述NFC标签中的多组承载较小数据量的数据的NDEF记录的读取顺序。
所述应用程序依据所要读取的每组所述承载较小数据量的数据的NDEF记录的起始地址直接指定所述NFC标签的读取地址。
所述应用程序还用于依据所述至少一种索引信息指定所述NFC标签的所述承载较小数据量的数据的NDEF记录的写入。
所述应用程序依据所要改写的所述承载较小数据量的数据的NDEF记录组的起始地址直接指定所述NFC标签的改写地址。
所述应用程序将新的所述目录区、所述数据头以及所述数据区的所述较大数据量的数据发送至所述NFC发生器并由所述NFC发生器封装成所述承载较小数据量的数据的NDEF记录,指定所述NFC标签从首地址执行重写。
所述承载较小数据量的数据的NDEF记录为能够被NFC天线稳定发送出去的NDEF记录。
所述较大数据量的数据的数据量超过了能够被NFC天线稳定发送出去的单个NDEF记录的有效载荷可携带数据的数据量。
具体的,
当本发明所提供的NFC标签与NFC读写器工作于标签和读写器模式中通信时,为了更好的执行本发明所提供的NFC标签的NDEF记录的读取或写入,本实施例提供了一种NFC读写器,该NFC读写器中设置有用于NFC通信的NFC天线和用于解析NDEF消息中NDEF记录的NFC解析器、用于将数据或指令封装成NDEF记录的NFC发生器,其中,该NFC读写器中还安装有至少一个能够对NDEF记录所携带的数据进行处理的应用程序(Application,简称APP),该NDEF应用(即该应用程序)用于经由NFC通信获取NFC标签的名称、类型、数据区所存储的多组NDEF记录所携带的文件的文件名、文件类型或文件识别码、文件顺序码,以及数据区所存储的多组NDEF记录的起始地址、数据长度或结束地址中的至少一种索引信息,并依据该至少一种索引信息指定该NFC标签中的多组NDEF记录的读取个数和读取顺序,以及执行相应的NDEF记录读出的处理操作,或者,依据该至少一种索引信息指定该NFC标签的写入类型,以及执行相应的NDEF记录写入的发送处理。
可选的,NFC读写器的至少一个应用程序通过获取NFC标签的类型,并依据该NFC标签的类型直接指定NFC标签中多组NDEF记录的读取顺序,例如,针对不同类型的NFC标签分别设定不同的NDEF记录组优先读取顺序规则,或者,可选的,NFC读写器的至少一个应用程序具有用户可视化和用户交互的操作界面,可通过用户的优先读取指令来指定NFC标签中多个文件所对应的多组NDEF记录的读取顺序,例如,该NFC读写器可以是一部支持NFC通信的手机,该应用程序可以是手机中的一款应用APP,该应用APP通过获取NFC标签中的NDEF记录所携带的文件的文件名或文件类型并在可视化操作界面中显示给用户,由用户点击或选定相应的优先读取的文件,同时,在不需要读取所有文件时也可以由用户选择需要读取的文件个数,从而指定相应的NDEF记录组的读
出。
进一步的,该NFC读写器的至少一个应用程序通过获取NFC标签的名称、类型或多组NDEF记录所携带的文件的文件名、文件类型或文件识别码以确定各组NDEF记录的读取组数和顺序,并依据各组NDEF记录的起始地址、数据长度或结束地址信息直接指定NFC标签的数据管理系统依据各起始地址以及相应的数据长度或结束地址来读取NDEF记录。进一步的,该NFC读写器的至少一个应用程序通过直接发送写入NDEF记录组的起始地址、数据长度或结束地址信息以及相应的写入NDEF记录并指定NFC标签的数据管理系统依据起始地址来执行NDEF记录的改写,或者,通过直接发送写入的目录区、数据头以及数据区的NDEF记录,而由NFC标签的数据管理系统直接执行从首地址执行重写。
基于实施例四所提供的NFC读写器,针对NFC读写器和NFC标签的多文件数据读写可以有以下几种实现方法。
实施例五
一种NFC读写器对NFC标签的多文件数据读取方法,
所述NFC读写器包括NFC天线、NFC解析器和应用程序,
所述NFC标签包括NFC天线、数据管理系统和非易失性存储单元,所述非易失性存储单元包括目录区、数据头和数据区,所述数据区以多组承载较小数据量的数据的NDEF记录的形式存储着较大数据量的数据,所述较大数据量的数据包括多个文件,每个所述文件分别封装成一组所述承载较小数据量的数据的NDEF记录,所述数据头描述了所述数据区的每组所述承载较小数据量的数据的NDEF记录的起始地址,所述目录区描述了所述数据头的总数据长度、所述数据区的总数据长度,以及所述NFC标签的名称、类型、功能以上至少一种信息,
所述多文件数据读取方法包括:
所述NFC标签的数据管理系统加载所述非易失性存储单元的所述目录区和所述数据头封装成的所述承载较小数据量的数据的NDEF记录组,并由所述NFC标签的NFC天线调制电磁场发送至所述NFC读写器;
所述NFC读写器的NFC天线获取所述目录区和所述数据头封装成的所述承载较小数据量的数据的NDEF记录组,经由所述NFC解析器解析后将所述目录区和所述数据头传送给所述NFC读写器的应用程序;
所述NFC读写器的应用程序依据所述目录区和所述数据头所描述的至少一种索引信息确定要读取的文件以及多个文件的读取顺序,并依据要读取的文件封装成的所述承载
较小数据量的数据的NDEF记录的起始地址描述所述承载较小数据量的数据的NDEF记录组读取指令,所述NFC读写器的NFC发生器将该要读取的所述承载较小数据量的数据的NDEF记录组的起始地址指令封装成至少一个承载较小数据量的数据的NDEF指令记录,并由所述NFC读写器的NFC天线通过电磁场发送至所述NFC标签;
所述NFC标签的NFC天线解调电磁场获取所述至少一个承载较小数据量的数据的NDEF指令记录并传送给所述NFC标签的数据管理系统;
所述NFC标签的数据管理系统解析并获取所述NFC读写器的应用程序所要读取的所述承载较小数据量的数据的NDEF记录组的起始地址,将各组所述承载较小数据量的数据的NDEF记录从所述非易失性存储单元的数据区读出,并由所述NFC标签的NFC天线调制电磁场发送至所述NFC读写器;
所述NFC读写器的NFC天线获取所述承载较小数据量的数据的NDEF记录组,经由所述NFC解析器解析后并将所述承载较小数据量的数据的NDEF记录组所封装的文件传送给所述NFC读写器的应用程序;
所述NFC读写器的应用程序对所读取的所述文件执行处理。
所述NFC读写器的应用程序获取所述NFC标签的类型,并依据所述NFC标签的类型确定要读取的文件以及多个文件的读取顺序。
所述数据头还描述了各组所述承载较小数据量的数据的NDEF记录所携带的所述文件的文件名、文件类型或识别码以上至少一种信息,所述识别码用于标记所述承载较小数据量的数据的NDEF记录所携带的所述文件的类型,
所述NFC读写器的应用程序用于获取所述各组所述承载较小数据量的数据的NDEF记录所携带的所述文件的文件名、文件类型或识别码,并依据用户通过所述应用程序的可视化界面选定的至少一个所述文件名、文件类型或识别码确定要读取的文件以及多个文件的读取顺序。
所述数据头还描述了各组所述承载较小数据量的数据的NDEF记录所携带的所述文件的顺序码,所述顺序码用于标记各组所述承载较小数据量的数据的NDEF记录所携带的所述文件的读取顺序,
所述应用程序依据所述顺序码确定要读取的多个文件的读取顺序。
所述NFC读写器的应用程序依据所述目录区和所述数据头所描述的至少一种索引信息确定要读取的文件以及多个文件的读取顺序,并依据要读取的文件封装成的所述承载较小数据量的数据的NDEF记录的起始地址描述所述承载较小数据量的数据的NDEF记录组读取指令,所述读取指令包括要读取的所述承载较小数据量的数据的NDEF记录组
的起始地址以及多组所述承载较小数据量的数据的NDEF记录的读取顺序,所述NFC读写器的NFC发生器将所述读取指令封装成至少一个承载较小数据量的数据的NDEF指令记录,并由所述NFC读写器的NFC天线通过电磁场发送至所述NFC标签;
所述NFC标签的数据管理系统解析并获取所述NFC读写器的应用程序所要读取的所述承载较小数据量的数据的NDEF记录组的起始地址以及读取顺序,按读取顺序将各组所述承载较小数据量的数据的NDEF记录从所述非易失性存储单元的数据区读出。
所述NFC读写器的应用程序依据所述目录区和所述数据头所描述的至少一种索引信息确定要读取的文件以及多个文件的读取顺序,并依据要读取的文件封装成的所述承载较小数据量的数据的NDEF记录的起始地址按照读取顺序逐个描述每组所述承载较小数据量的数据的NDEF记录的读取指令,每个所述读取指令包括一组要读取的所述承载较小数据量的数据的NDEF记录的起始地址,所述NFC读写器的NFC发生器将每个所述读取指令分别封装成至少一个承载较小数据量的数据的NDEF指令记录,并由所述NFC读写器的NFC天线通过电磁场发送至所述NFC标签;
所述NFC标签的数据管理系统解析并获取所述NFC读写器的应用程序所要读取的所述承载较小数据量的数据的NDEF记录组的起始地址,将所述承载较小数据量的数据的NDEF记录从所述非易失性存储单元的数据区读出。
具体的,
基于实施例一所提供的NFC标签的实现结构和实施例三所提供的NFC标签的数据存储结构,以及实施例四所提供的NFC读写器,NFC标签中存储着封装有多个文件的NDEF记录组,并在记录组前设置有相应的目录区和数据头,NFC读写器获取目录区和数据头并指定NFC标签所要读取的NDEF记录组的多文件数据读取方法可以包括以下流程:
准备步骤:NFC读写器与NFC标签靠近并建立NFC通信,NFC标签的NFC天线从NFC读写器所发射的电磁场中捕获电能,NFC标签的数据管理系统和非易失性存储单元获得启动运行所需的电能,数据管理系统从非易失性存储单元的固件区加载运行程序开始运行;
步骤501:NFC标签的数据管理系统加载非易失性存储单元的目录区和数据头的NDEF记录组,并由NFC标签的NFC天线调制电磁场发送至NFC读写器;
步骤502:NFC读写器的NFC天线获取该目录区和数据头的NDEF记录,经由NFC解析器解析后并将该NFC标签的名称、类型、数据区所存储的多组NDEF记录所携带的文件的文件名、文件类型或文件识别码、文件顺序码等至少一部分信息以及数据区所存
储的多个文件的起始地址、数据长度或结束地址等至少一部分信息传送给NFC读写器的应用程序;
步骤503:该NFC读写器的应用程序依据NFC标签的类型或依据用户对要读取的文件的顺序选定确定要读取的文件的文件名或文件类型以及多个文件的读取顺序,并依据要读取的各组NDEF记录所携带的文件的起始地址、数据长度或结束地址信息描述NDEF记录组读取指令,NFC读写器的NFC发生器将该要读取的各组NDEF记录的起始地址、数据长度或结束地址信息以及各组NDEF记录的读取顺序指令封装成承载较小数据量的至少一个NDEF指令记录,并由NFC读写器的NFC天线通过电磁场发送至NFC标签;
步骤504:NFC标签的NFC天线解调电磁场获取该至少一个NDEF指令记录并传送给NFC标签的数据管理系统;
步骤505:NFC标签的数据管理系统解析并获取NFC读写器的应用程序所要读取的NDEF记录组的起始地址、数据长度或结束地址信息以及读取顺序,直接按顺序将各组NDEF记录从非易失性存储单元的数据区读出,并由NFC标签的NFC天线调制电磁场发送至NFC读写器;
步骤506:NFC读写器的NFC天线获取该至少一个NDEF数据记录,经由NFC解析器解析后并将这些文件传送给NFC读写器的应用程序;
步骤507:NFC读写器的应用程序对所读取的文件执行处理。
可选的,当用户指定或选定多个文件及其相应的读取顺序时,NFC读写器的应用程序也可以不将该多个文件所封装成的NDEF记录组的读取顺序发送至NFC标签,而是只发送读取顺序最前的NDEF记录组的读取请求(NDEF记录的起始地址和长度信息/结束地址),并在该组NDEF记录读取完成后再发送读取顺序中下一个NDEF记录组的读取请求(NDEF记录的起始地址和长度信息/结束地址),如此直至读取完所有要读取的文件,结束NFC通信。
可选的,当不需要读取整个文件时,NFC读写器的应用程序可以通过文件所封装成的NDEF记录组的起始地址定位从文件的开头读取,并通过要读取的长度信息定位所要读取的文件长度,或者,当已经读取完单个文件的一部分时,NFC读写器的应用程序可以通过定位需要读取的起始地址(整个文件的中间位置),并通过要读取的长度信息控制所要读取的数据量。
基于本实施例所提供的NFC读写器和NFC标签的数据读取方法,NFC读写器通过目录区和数据头获取NFC标签的多个文件的索引,进而指定要读取的文件所封装成的
NDEF记录组的读取地址以及读取顺序,或者依据需要指定文件一部分数据的读出,提供了更灵活的NFC标签文件数据读取机制。
实施例六
一种NFC读写器对NFC标签的多文件数据改写方法,
所述NFC读写器包括NFC天线、NFC解析器和应用程序,
所述NFC标签包括NFC天线、数据管理系统和非易失性存储单元,所述非易失性存储单元包括目录区、数据头和数据区,所述数据区以多组承载较小数据量的数据的NDEF记录的形式存储着较大数据量的数据,所述较大数据量的数据包括多个文件,每个所述文件分别封装成一组所述承载较小数据量的数据的NDEF记录,所述数据头描述了所述数据区的每组所述承载较小数据量的数据的NDEF记录的起始地址,所述目录区描述了所述数据头的总数据长度、所述数据区的总数据长度,以及所述NFC标签的名称、类型、功能以上至少一种信息,
所述多文件数据改写方法包括:
所述NFC标签的数据管理系统加载所述非易失性存储单元的所述目录区和所述数据头封装成的所述承载较小数据量的数据的NDEF记录组,并由所述NFC标签的NFC天线调制电磁场发送至所述NFC读写器;
所述NFC读写器的NFC天线获取所述目录区和所述数据头封装成的所述承载较小数据量的数据的NDEF记录组,经由所述NFC解析器解析后将所述目录区和所述数据头传送给所述NFC读写器的应用程序;
所述NFC读写器的应用程序依据所述目录区和所述数据头所描述的至少一种索引信息确定要改写的文件以及多个文件的读取顺序,并依据要改写的文件封装成的所述承载较小数据量的数据的NDEF记录的起始地址描述所述承载较小数据量的数据的NDEF记录组改写指令,所述NFC读写器的NFC发生器将该要改写的所述承载较小数据量的数据的NDEF记录组的起始地址、相应的改写数据指令分别封装成至少一个承载较小数据量的数据的NDEF指令记录、数据区的NDEF记录组,并由所述NFC读写器的NFC天线通过电磁场发送至所述NFC标签;
所述NFC标签的NFC天线解调电磁场获取所述至少一个承载较小数据量的数据的NDEF指令记录并传送给所述NFC标签的数据管理系统;
所述NFC标签的数据管理系统解析并获取所述NFC读写器的应用程序所要改写的所述承载较小数据量的数据的NDEF记录组的起始地址和相应的改写数据的所述承载较小数据量的数据的NDEF记录组,将所述非易失性存储单元的数据区所述承载较小数据量
的数据的NDEF记录组执行改写。
所述数据头还描述了各组所述承载较小数据量的数据的NDEF记录所携带的所述文件的文件名、文件类型或识别码以上至少一种信息,所述识别码用于标记所述承载较小数据量的数据的NDEF记录所携带的所述文件的类型,
所述NFC读写器的应用程序用于获取所述各组所述承载较小数据量的数据的NDEF记录所携带的所述文件的文件名、文件类型或识别码,并依据用户通过所述应用程序的可视化界面选定的至少一个所述文件名、文件类型或识别码确定要改写的文件以及多个文件的改写顺序。
所述NFC读写器的应用程序依据所述目录区和所述数据头所描述的至少一种索引信息确定要改写的文件以及多个文件的改写顺序,并依据要改写的文件封装成的所述承载较小数据量的数据的NDEF记录的起始地址描述所述承载较小数据量的数据的NDEF记录组改写指令,所述改写指令包括要改写的所述承载较小数据量的数据的NDEF记录组的起始地址以及多组所述承载较小数据量的数据的NDEF记录的改写顺序,所述NFC读写器的NFC发生器将所述改写指令封装成至少一个承载较小数据量的数据的NDEF指令记录,将相应的改写数据封装成至少一个承载较小数据量的数据的NDEF记录组,并由所述NFC读写器的NFC天线通过电磁场发送至所述NFC标签;
所述NFC标签的数据管理系统解析并获取所述NFC读写器的应用程序所要改写的所述承载较小数据量的数据的NDEF记录组的起始地址以及改写顺序,按改写顺序将所述非易失性存储单元的数据区所述承载较小数据量的数据的NDEF记录组执行改写。
所述NFC读写器的应用程序依据所述目录区和所述数据头所描述的至少一种索引信息确定要改写的文件以及多个文件的改写顺序,并依据要改写的文件封装成的所述承载较小数据量的数据的NDEF记录的起始地址按照改写顺序逐个描述每组所述承载较小数据量的数据的NDEF记录的改写指令,每个所述改写指令包括一组要改写的所述承载较小数据量的数据的NDEF记录的起始地址,所述NFC读写器的NFC发生器将每个所述改写指令分别封装成至少一个承载较小数据量的数据的NDEF指令记录,将相应的改写数据封装成至少一个承载较小数据量的数据的NDEF记录组,并由所述NFC读写器的NFC天线通过电磁场发送至所述NFC标签;
所述NFC标签的数据管理系统解析并获取所述NFC读写器的应用程序所要改写的所述承载较小数据量的数据的NDEF记录组的起始地址,将所述非易失性存储单元的数据区所述承载较小数据量的数据的NDEF记录组执行改写。
具体的,
基于实施例二所提供的NFC标签的实现结构和实施例三所提供的NFC标签的数据存储结构,以及实施例四所提供的NFC读写器,NFC标签中存储着封装有多个文件的NDEF记录组,并在NDEF记录组前设置有相应的目录区和数据头,NFC读写器获取目录区和数据头并指定NFC标签所要改写的至少一组NDEF记录的多文件数据改写方法可以包括以下流程:
准备步骤:NFC读写器与NFC标签靠近并建立NFC通信,NFC标签的NFC天线从NFC读写器所发射的电磁场中捕获电能,NFC标签的数据管理系统和非易失性存储单元获得启动运行所需的电能,数据管理系统从非易失性存储单元的固件区加载运行程序开始运行;
步骤601:NFC标签的数据管理系统加载非易失性存储单元的目录区和数据头的NDEF记录组,并由NFC天线调制电磁场发送至NFC读写器;
步骤602:NFC读写器的NFC天线获取该目录区和数据头的NDEF记录,经由NFC解析器解析后并将该NFC标签的名称、类型、数据区所存储的多组NDEF记录所携带的文件的文件名、文件类型或文件识别码、文件顺序码等至少一部分信息以及数据区所存储的多个文件的起始地址、数据长度或结束地址等至少一部分信息传送给NFC读写器的应用程序;
步骤603:该NFC读写器的应用程序依据NFC标签的多个文件的文件名、文件类型或文件识别码、文件顺序码直接指定或依据用户对要改写的文件的选定确定要改写的文件的文件名或文件类型以及多个文件的改写顺序,并依据要改写的各组NDEF记录所携带的文件的起始地址、数据长度或结束地址信息描述NDEF记录组改写指令,NFC读写器的NFC发生器将该要改写的文件的起始地址、数据长度或结束地址信息、多个文件的改写顺序以及相应的NDEF记录改写数据封装成承载较小数据量的至少一个NDEF指令记录,并由NFC读写器的NFC天线通过电磁场发送至NFC标签;
步骤604:NFC标签的NFC天线解调电磁场获取该至少一个NDEF指令记录并传送给NFC标签的数据管理系统;
步骤605:NFC标签的数据管理系统解析并获取NFC读写器的应用程序所要改写的文件的起始地址、数据长度或结束地址信息、多个文件的改写顺序以及相应的NDEF记录改写数据,直接按顺序将非易失性存储单元的数据区的NDEF记录改写。
可选的,当用户指定或选定多个文件及其相应的改写顺序时,NFC读写器的应用程序也可以不将该多个文件所封装成的NDEF记录组的改写顺序发送至NFC标签,而是只发送改写顺序最前的NDEF记录组的改写请求(NDEF记录的起始地址和长度信息/结束
地址以及相应的改写数据),并在该组NDEF记录改写完成后再发送改写顺序中下一个NDEF记录组的改写请求(NDEF记录的起始地址和长度信息/结束地址以及相应的改写数据),如此直至改写完所有要改写的文件,结束NFC通信。
可选的,当不需要改写整个文件时,NFC读写器的应用程序可以通过文件所封装成的NDEF记录组的起始地址定位从文件的开头改写,并通过要改写的长度信息定位所要改写的文件长度,或者,当需要从文件的中间位置改写时,NFC读写器的应用程序可以通过定位需要改写的起始地址(整个文件的中间位置),并通过要改写的长度信息控制所要通信的数据量。
可选的,NFC读写器的应用程序在发送要改写的文件所封装成的NDEF记录组的起始地址、数据长度或结束地址信息时,也可以将相应的设定为至少一个NDEF记录组的单独改写的写入类型发送至NFC标签。
基于本实施例所提供的NFC读写器和NFC标签的数据改写方法,NFC读写器通过目录区和数据头获取NFC标签的多个文件的索引,进而指定要改写的文件所封装成的NDEF记录组的改写地址以及改写顺序,或者依据需要指定文件一部分数据的改写,提供了更灵活的NFC标签文件数据改写机制。
实施例七
一种NFC读写器对NFC标签的多文件数据重写方法,
所述NFC读写器包括NFC天线、NFC解析器和应用程序,
所述NFC标签包括NFC天线、数据管理系统和非易失性存储单元,所述非易失性存储单元包括目录区、数据头和数据区,所述数据区以多组承载较小数据量的数据的NDEF记录的形式存储着较大数据量的数据,所述较大数据量的数据包括多个文件,每个所述文件分别封装成一组所述承载较小数据量的数据的NDEF记录,所述数据头描述了所述数据区的每组所述承载较小数据量的数据的NDEF记录的起始地址,所述目录区描述了所述数据头的总数据长度、所述数据区的总数据长度,
所述多文件数据重写方法包括:
所述NFC读写器的应用程序依据依据要重写的文件、重写顺序生成新的文件封装成的所述承载较小数据量的数据的NDEF记录的起始地址的数据头、目录区的索引信息,所述NFC读写器的NFC发生器将所述要重写的数据头、目录区的索引信息、相应的重写文件分别封装成至少一个承载较小数据量的数据的NDEF指令记录、目录区的NDEF记录组、数据头的NDEF记录组、数据区的NDEF记录组,并由所述NFC读写器的NFC天线通过电磁场发送至所述NFC标签;
所述NFC标签的NFC天线解调电磁场获取所述至少一个承载较小数据量的数据的NDEF指令记录并传送给所述NFC标签的数据管理系统;
所述NFC标签的数据管理系统解析并获取所述NFC读写器的应用程序所要重写的指令,直接将接收到的所述目录区、数据头的承载较小数据量的数据的NDEF记录组重写入所述非易失性存储单元的目录区和数据头,将接收到的所述数据区的承载较小数据量的数据的NDEF记录组按顺序重写入所述非易失性存储单元的数据区。
所述数据头还用于描述各组所述承载较小数据量的数据的NDEF记录所携带的所述文件的文件名、文件类型或识别码以上至少一种信息,所述识别码用于标记所述承载较小数据量的数据的NDEF记录所携带的所述文件的类型,
所述NFC读写器的应用程序依据用户通过所述应用程序的可视化界面选定的至少一个所述文件名、文件类型或识别码确定要重写的文件以及多个文件的重写顺序。
具体的,
基于实施例二所提供的NFC标签的实现结构和实施例三所提供的NFC标签的数据存储结构,以及实施例四所提供的NFC读写器,NFC读写器指定NFC标签重新写入所有数据的多文件数据重新写入方法可以包括以下流程:
准备步骤:NFC读写器与NFC标签靠近并建立NFC通信,NFC标签的NFC天线从NFC读写器所发射的电磁场中捕获电能,NFC标签的数据管理系统和非易失性存储单元获得启动运行所需的电能,数据管理系统从非易失性存储单元的固件区加载运行程序开始运行;
步骤701:NFC读写器的应用程序依据用户对要重写的文件的选定确定要重写的文件的文件名或文件类型以及多个文件的重写顺序,并依据要重写的各文件的起始地址、数据长度或结束地址信息生成新的文件名、文件类型、文件识别码、文件顺序码以及文件的起始地址、数据长度或结束地址等索引信息,NFC读写器的NFC发生器将要重写的各文件的文件名或文件类型、起始地址、数据长度或结束地址信息、多个文件的重写顺序、相应的文件重写数据以及相应的新的索引信息分别封装成承载较小数据量的至少一个NDEF指令记录、目录区的NDEF记录组、数据头的NDEF记录组和数据区的NDEF记录组,并由NFC读写器的NFC天线通过电磁场发送至NFC标签;
步骤702:NFC标签的数据管理系统解析并获取NFC读写器的应用程序所要重写的指令,直接将该新的目录区和数据头的索引信息写入至目录区和数据头,并按顺序将非易失性存储单元的数据区的NDEF记录重写。
基于本实施例所提供的NFC读写器和NFC标签的数据重写方法,NFC读写器可直
接指定要重写的文件名、文件类型或文件地址以及新的索引信息,从而可以在NFC读写器端直接控制对NFC标签的重写操作,提供了更灵活的NFC标签文件数据写入机制。
需要说明的是,尽管本发明实施例采用NFC标签来以最优的方式表述本发明的技术思路,本发明所提供的NFC标签也不应当限于便携式的NFC卡片中,NFC标签也可以以附着或集成的方式形成与固定设备或大型设备上,如附着于参展台上的NFC存储部件,附着于电冰箱或自助售货机上的NFC读取部件,可粘贴至墙体的NFC海报,同样的,NFC标签也可以以其它的形状或结构来加以包装,如加工至衣领中的NFC鉴别标签,附着于酒品中的NFC验证部件,只要在NFC存储部件中应用本发明所提供的较大量数据存储、读取及写入方法,均应当属于本发明之范围。
需要说明的是,尽管通常NFC标签中通过NFC通信的电磁场就可以捕获NFC标签工作所需的电能,可选的,也可以给NFC标签附着电池或其它可供电的设备,用于供电给NFC标签的数据管理系统的工作,其同样不影响本发明技术思路的实现。
显然,采用本发明实施例所提供的技术方案,在NFC标签内设置数据管理系统,通过数据管理系统读取多个NDEF记录,以及将多个NDEF记录直接写入非易失性存储单元,实现较大量数据的存储和传输,并且,在非易失性存储单元中设置数据头,通过数据头中各个文件的索引信息执行有针对性的或部分文件所封装成的NDEF记录的读取或改写、重写,以及,通过NFC读写器端的应用程序对NFC标签读写,实现更灵活的NFC标签内数据的读取与写入操作。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。
Claims (18)
- 一种NFC标签,包括:NFC天线,通过解调或调制电磁场进行承载较小数据量的数据的NDEF记录的收发通信;非易失性存储单元,以多个所述承载较小数据量的数据的NDEF记录的形式存储着较大数据量的数据;数据管理系统,包括NDEF消息读出单元和NDEF消息发送单元,所述NDEF消息读出单元用于从所述非易失性存储单元中将所述多个承载较小数据量的数据的NDEF记录读出,所述NDEF消息发送单元用于将所述NDEF消息读出单元读出的所述多个承载较小数据量的数据的NDEF记录通过所述NFC天线调制电磁场发送。
- 如权利要求1所述的NFC标签,其特征在于:所述非易失性存储单元按照所述较大数据量的数据所封装成所述多个承载较小数据量的数据的NDEF记录的顺序逐个存储所述承载较小数据量的数据的NDEF记录,所述NDEF消息读出单元用于从所述非易失性存储单元所存储的所述承载较小数据量的数据的NDEF记录的起始地址顺序读出所述承载较小数据量的数据的NDEF记录。
- 如权利要求1所述的NFC标签,其特征在于:所述NDEF消息读出单元用于按照所述较大数据量的数据所封装成所述多个承载较小数据量的数据的NDEF记录的顺序逐个从所述非易失性存储单元中将所述多个承载较小数据量的数据的NDEF记录读出。
- 如权利要求1所述的NFC标签,其特征在于:所述NDEF消息发送单元用于按照所述较大数据量的数据所封装成所述多个承载较小数据量的数据的NDEF记录的顺序将所述NDEF消息读出单元读出的所述多个承载较小数据量的数据的NDEF记录通过所述NFC天线调制电磁场发送。。
- 如权利要求1所述的NFC标签,其特征在于:所述NDEF消息读出单元用于按照所述较大数据量的数据所封装成所述多个承载较小数据量的数据的NDEF记录的顺序逐个从所述非易失性存储单元中将所述多个承载较小数据量的数据的NDEF记录读出,所述NDEF消息发送单元用于将所述NDEF消息读出单元逐个读出的单个所述承载较小数据量的数据的NDEF记录通过所述NFC天线调制电磁场发送。
- 如权利要求1所述的NFC标签,其特征在于:所述NDEF消息发送单元在发送首个所述承载较小数据量的数据的NDEF记录之前发送一个携带有起始标记的NDEF记录,所述携带有起始标记的NDEF记录用于表示所述多个承载较小数据量的数据的NDEF记录发送的开始,和/或所述NDEF消息发送单元在发送最后一个所述承载较小数据量的数据的NDEF记录之后发送一个携带有结束标记的NDEF记录,所述携带有结束标记的NDEF记录用于表示所述多个承载较小数据量的数据的NDEF记录发送的完成。
- 如权利要求1所述的NFC标签,其特征在于:所述NDEF消息发送单元在要发送的首个所述承载较小数据量的数据的NDEF记录上进行起始标记,所述起始标记用于表示所述多个承载较小数据量的数据的NDEF记录发送的开始,和/或所述NDEF消息发送单元在要发送的最后一个所述承载较小数据量的数据的NDEF记录上进行结束标记,所述结束标记用于表示所述多个承载较小数据量的数据的NDEF记录发送的完成。
- 如权利要求1-7任一项所述的NFC标签,其特征在于:所述承载较小数据量的数据的NDEF记录为能够被NFC天线稳定发送出去的NDEF记录。
- 如权利要求8所述的NFC标签,其特征在于:所述承载较小数据量的数据的NDEF记录为数据量小于8KB的NDEF记录。
- 如权利要求1-7任一项所述的NFC标签,其特征在于:所述较大数据量的数据的数据量超过了能够被NFC天线稳定发送出去的单个NDEF记录的有效载荷可携带数据的数据量。
- 如权利要求10所述的NFC标签,其特征在于:所述较大数据量的数据为数据量大于1MB的文件。
- 一种NFC标签,包括:NFC天线,通过解调或调制电磁场进行承载较小数据量的数据的NDEF记录的收发通信;非易失性存储单元,以多个所述承载较小数据量的数据的NDEF记录的形式存储着较大数据量的数据;数据管理系统,包括NDEF消息读写单元和NDEF消息收发单元,所述NDEF消息读写单元用于从所述非易失性存储单元中将所述多个承载较小数据量的数据的NDEF记录读出,所述NDEF消息收发单元用于将所述NDEF消息读出单元 读出的所述多个承载较小数据量的数据的NDEF记录通过所述NFC天线调制电磁场发送,以及,所述NDEF消息收发单元用于将所述NFC天线接收的所述多个承载较小数据量的数据的NDEF记录发送至所述NDEF消息读写单元,所述NDEF消息读写单元用于将所述多个承载较小数据量的数据的NDEF记录写入至所述非易失性存储单元。
- 如权利要求12所述的NFC标签,其特征在于:所述NDEF消息读出单元用于按照所述较大数据量的数据所封装成所述多个承载较小数据量的数据的NDEF记录的顺序逐个从所述非易失性存储单元中将所述多个承载较小数据量的数据的NDEF记录读出。
- 如权利要求12所述的NFC标签,其特征在于:所述NDEF消息读写单元用于按照所述NFC天线所接收的所述多个承载较小数据量的数据的NDEF记录的顺序将所述多个承载较小数据量的数据的NDEF记录写入至所述非易失性存储单元。
- 如权利要求14所述的NFC标签,其特征在于:所述NDEF消息读出单元按照所述NFC天线所接收的所述多个承载较小数据量的数据的NDEF记录的顺序将所述多个承载较小数据量的数据的NDEF记录从所述非易失性存储单元所存储的所述承载较小数据量的数据的NDEF记录的起始地址顺序写入至所述非易失性存储单元。
- 如权利要求12所述的NFC标签,其特征在于:所述NDEF消息收发单元设置为从所述NFC天线每接收一个所述承载较小数据量的数据的NDEF记录就将所述承载较小数据量的数据的NDEF记录发送至所述NDEF消息读写单元,并由所述NDEF消息读写单元将所述一个承载较小数据量的数据的NDEF记录写入至所述非易失性存储单元。
- 如权利要求12所述的NFC标签,其特征在于:所述NDEF消息收发单元在接收到一个携带有起始标记的NDEF记录时表示所述多个承载较小数据量的数据的NDEF记录接收的开始,和/或所述NDEF消息收发单元在接收到一个携带有结束标记的NDEF记录时表示所述多个承载较小数据量的数据的NDEF记录接收的完成。
- 如权利要求17所述的NFC标签,其特征在于:所述携带有起始标记的NDEF记录为首个所述承载较小量的数据的NDEF记录,和/ 或所述携带有结束标记的NDEF记录为最后一个所述承载较小量的数据的NDEF记录。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610206809 | 2016-04-01 | ||
CN201610206809.9 | 2016-04-01 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017167274A1 true WO2017167274A1 (zh) | 2017-10-05 |
Family
ID=59142254
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/079009 WO2017167274A1 (zh) | 2016-04-01 | 2017-03-31 | Nfc标签 |
PCT/CN2017/079276 WO2017167311A1 (zh) | 2016-04-01 | 2017-04-01 | Nfc标签 |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/079276 WO2017167311A1 (zh) | 2016-04-01 | 2017-04-01 | Nfc标签 |
Country Status (2)
Country | Link |
---|---|
CN (6) | CN106951809B (zh) |
WO (2) | WO2017167274A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019090403A1 (pt) * | 2017-11-10 | 2019-05-16 | Ccl Industries Do Brasil S/A | Método de gravação sequencial de etiqueta eletrônica aplicada para solução anti‐falsificação e equipamento de gravação |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110728159A (zh) * | 2018-07-17 | 2020-01-24 | 上海复旦微电子集团股份有限公司 | Ndef数据的读取及上传方法、终端、标签芯片、可读介质 |
CN110826657B (zh) * | 2018-08-09 | 2023-07-14 | 中国电信股份有限公司 | 用于nfc标签的装置和方法 |
CN110059514B (zh) * | 2019-04-18 | 2021-06-08 | 珠海美佳音科技有限公司 | 数据写入方法、nfc标签、nfc设备及存储介质 |
CN113362489A (zh) * | 2020-03-06 | 2021-09-07 | 联合汽车电子有限公司 | 车辆测量文件的创建方法、电子设备和存储介质 |
CN114565070B (zh) * | 2022-02-23 | 2023-11-10 | Tcl通讯科技(成都)有限公司 | 一种标签绑定方法、装置及移动终端 |
CN115345268B (zh) * | 2022-08-18 | 2023-04-11 | 芯电智联(北京)科技有限公司 | 一种连接发光二极管的nfc标签的数据处理方法 |
CN115484119B (zh) * | 2022-09-14 | 2023-12-19 | 海尔优家智能科技(北京)有限公司 | 设备的控制方法和装置、存储介质及电子装置 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3674525B2 (ja) * | 2001-03-23 | 2005-07-20 | オムロン株式会社 | 非接触id装置 |
CN101681358A (zh) * | 2006-12-22 | 2010-03-24 | Nxp股份有限公司 | 在rfid应答器中存储数据的方法 |
CN102132291A (zh) * | 2008-09-11 | 2011-07-20 | 日本电气株式会社 | 集成电路标签控制方法和设备 |
US20110199186A1 (en) * | 2010-02-18 | 2011-08-18 | Samsung Electronics Co., Ltd | Passive wireless memory device |
CN103975536A (zh) * | 2011-12-06 | 2014-08-06 | Aq株式会社 | 多标签操作系统以及其操作方法 |
CN105303208A (zh) * | 2015-10-26 | 2016-02-03 | 福建新大陆电脑股份有限公司 | 一种ic卡管理方法及系统 |
Family Cites Families (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4613969B2 (ja) * | 2008-03-03 | 2011-01-19 | ソニー株式会社 | 通信装置、及び通信方法 |
EP2573970B1 (en) * | 2011-09-20 | 2020-05-20 | Sony Corporation | Near field communication reader device, near field communication tag device, near field communication system and near field communication method |
US8706036B2 (en) * | 2011-12-21 | 2014-04-22 | Nxp, B.V. | Near field communication data conversion with an event-field |
US10445722B2 (en) * | 2012-07-09 | 2019-10-15 | Intel Corporation | Systems and methods for enabling secure transactions with mobile devices |
US9124304B2 (en) * | 2012-10-17 | 2015-09-01 | Qualcomm Incorporated | Methods and apparatus for reducing overhead for NFC data exchange protocol messages |
US9110897B2 (en) * | 2012-11-16 | 2015-08-18 | Electronics And Telecommunications Research Institute | Sensor tag and method of providing service using the same |
KR101754176B1 (ko) * | 2013-07-26 | 2017-07-05 | 후아웨이 디바이스 컴퍼니 리미티드 | 태그 식별 방법 및 장치 |
KR20150014317A (ko) * | 2013-07-29 | 2015-02-06 | 삼성전자주식회사 | 근거리 무선 통신(nfc)을 이용하여 무선 설정을 수행하는 화상형성장치 및 모바일 디바이스 |
CN104517077A (zh) * | 2013-09-29 | 2015-04-15 | 北京三星通信技术研究有限公司 | 一种nfc设备中模拟标签的实现方法及其装置 |
EP2858259B1 (en) * | 2013-10-07 | 2019-06-26 | Nxp B.V. | NFC tag, communication method and system |
CN103680101B (zh) * | 2013-12-13 | 2017-05-03 | 深圳Tcl新技术有限公司 | 一种为nfc设备或nfc标签编辑nfc数据的方法及系统 |
US9419803B2 (en) * | 2013-12-31 | 2016-08-16 | Nxp B.V. | Flexible data authentication |
KR101518764B1 (ko) * | 2014-06-09 | 2015-05-11 | (주) 듀얼아이 | 기계판독영역 데이터를 엔에프씨 데이터 교환형식 데이터로 변환하고 저장하는 시스템 및 방법 |
CN104469656B (zh) * | 2014-08-28 | 2018-10-26 | 宇龙计算机通信科技(深圳)有限公司 | 基于nfc的数据传输方法及系统 |
CN204303007U (zh) * | 2014-12-05 | 2015-04-29 | 广东财经大学 | 一种智能支付卡 |
CN104915696B (zh) * | 2015-07-01 | 2017-10-27 | 浙江工业大学 | 一种基于Android平台的NFC读写方法 |
-
2017
- 2017-03-31 WO PCT/CN2017/079009 patent/WO2017167274A1/zh active Application Filing
- 2017-03-31 CN CN201710208698.XA patent/CN106951809B/zh active Active
- 2017-03-31 CN CN201710207738.9A patent/CN106991352B/zh active Active
- 2017-03-31 CN CN201710208701.8A patent/CN106934445B/zh active Active
- 2017-04-01 CN CN201710213954.4A patent/CN106845599B/zh active Active
- 2017-04-01 CN CN201710213952.5A patent/CN106991463B/zh active Active
- 2017-04-01 CN CN201710213608.6A patent/CN106991353B/zh active Active
- 2017-04-01 WO PCT/CN2017/079276 patent/WO2017167311A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3674525B2 (ja) * | 2001-03-23 | 2005-07-20 | オムロン株式会社 | 非接触id装置 |
CN101681358A (zh) * | 2006-12-22 | 2010-03-24 | Nxp股份有限公司 | 在rfid应答器中存储数据的方法 |
CN102132291A (zh) * | 2008-09-11 | 2011-07-20 | 日本电气株式会社 | 集成电路标签控制方法和设备 |
US20110199186A1 (en) * | 2010-02-18 | 2011-08-18 | Samsung Electronics Co., Ltd | Passive wireless memory device |
CN103975536A (zh) * | 2011-12-06 | 2014-08-06 | Aq株式会社 | 多标签操作系统以及其操作方法 |
CN105303208A (zh) * | 2015-10-26 | 2016-02-03 | 福建新大陆电脑股份有限公司 | 一种ic卡管理方法及系统 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019090403A1 (pt) * | 2017-11-10 | 2019-05-16 | Ccl Industries Do Brasil S/A | Método de gravação sequencial de etiqueta eletrônica aplicada para solução anti‐falsificação e equipamento de gravação |
Also Published As
Publication number | Publication date |
---|---|
CN106845599B (zh) | 2020-04-07 |
CN106951809A (zh) | 2017-07-14 |
CN106991352A (zh) | 2017-07-28 |
CN106991352B (zh) | 2020-03-20 |
CN106991463A (zh) | 2017-07-28 |
CN106991353A (zh) | 2017-07-28 |
CN106845599A (zh) | 2017-06-13 |
CN106934445B (zh) | 2020-08-25 |
CN106991463B (zh) | 2020-01-10 |
CN106951809B (zh) | 2020-02-07 |
CN106934445A (zh) | 2017-07-07 |
WO2017167311A1 (zh) | 2017-10-05 |
CN106991353B (zh) | 2020-03-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017167274A1 (zh) | Nfc标签 | |
KR100917490B1 (ko) | 리더 콘트롤 시스템 | |
JP5033196B2 (ja) | データ記憶方法、並びにこの方法を実行するように構成されたトランスポンダ、読取り/書込み装置、プログラム要素、及びプログラム要素を含むコンピュータ可読媒体 | |
US9031503B2 (en) | Wireless data communications | |
US9214986B2 (en) | Non-volatile memory for NFC router | |
CN110213020A (zh) | 基于蓝牙外设的数据传输方法、终端、系统以及装置 | |
CN107491706B (zh) | 基于移动终端的nfc压力测试方法、系统及存储装置 | |
CN103501192B (zh) | 终端间的数据传输方法和装置 | |
KR101527185B1 (ko) | 수동 rfid의 대용량 데이터 전송 방법 및 시스템 | |
CN109561169B (zh) | 一种蓝牙水表的检测系统及使用方法 | |
WO2018219329A1 (zh) | 包装袋认证方法及包装袋挤推装置 | |
CN102938804B (zh) | 一种管理联系人信息的方法和装置 | |
CN105184338A (zh) | 一种互感器、互感器身份信息获取系统及方法 | |
US20160226767A1 (en) | Default data packet routing in a nfc device | |
CN101661547B (zh) | 一种射频识别系统中向标签写数据的方法及装置 | |
CN105550615A (zh) | 一种电子价格标签的启停系统及其方法 | |
CN103078719A (zh) | 一种rfid阅读器无线通信系统方法与系统 | |
CN105415675A (zh) | 3d打印系统及3d打印方法 | |
CN115964579A (zh) | 一种电子器件测试站位信息共享方法及装置 | |
CN117057369A (zh) | 物联网标签、读取方法、系统、装置、存储介质及处理器 | |
CN104219616B (zh) | 一种多媒体数据处理装置、方法和无线多媒体服务器 | |
KR20140142566A (ko) | 혼성모드를 지원하는 nfc 태그 및 그 생성 방법 | |
CN103164718A (zh) | 射频识别交互方法及射频识别系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17773304 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 07/12/2018) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17773304 Country of ref document: EP Kind code of ref document: A1 |