WO2022160231A1 - Method and apparatus for reading data - Google Patents

Method and apparatus for reading data Download PDF

Info

Publication number
WO2022160231A1
WO2022160231A1 PCT/CN2021/074323 CN2021074323W WO2022160231A1 WO 2022160231 A1 WO2022160231 A1 WO 2022160231A1 CN 2021074323 W CN2021074323 W CN 2021074323W WO 2022160231 A1 WO2022160231 A1 WO 2022160231A1
Authority
WO
WIPO (PCT)
Prior art keywords
sensing data
information
read
data
tag
Prior art date
Application number
PCT/CN2021/074323
Other languages
French (fr)
Chinese (zh)
Inventor
李晨琬
吴毅凌
陈俊
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN202180091545.6A priority Critical patent/CN116830112A/en
Priority to PCT/CN2021/074323 priority patent/WO2022160231A1/en
Publication of WO2022160231A1 publication Critical patent/WO2022160231A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations

Definitions

  • the present application relates to the field of communications, and more particularly, to methods and apparatus for reading data.
  • Radio frequency identification radio frequency identification
  • RFID radio frequency identification
  • the RFID system can include tags and readers, each tag has a unique electronic code, and can be attached to objects or equipment to identify the target object, and the reader is a device that reads tag information and/or writes information to the tag.
  • tags support acquiring sensor data.
  • the existing RFID technology has not specified how the reader reads the data of the sensor in the label.
  • the present application provides a method and device for reading data, which can realize the reading of data of a sensor in a tag by a reader.
  • the present application provides a method for reading data, the method comprising: a tag receiving a first command from a reader, where the first command is used to read the first sensing data, so The first command includes first information and/or second information, the first information is used to indicate the storage space of the first sensing data, and the second information is used to indicate the first sensing data At least one of the type of the first sensor, the identification of the first sensor, and the starting position of the storage space, the first sensing data comes from the first sensor; the tag sends to the reader according to the first command The writer sends the first sensing data.
  • the above-mentioned sensory data may be data from sensors.
  • temperature data from a temperature sensor For example, pressure data from a pressure sensor, etc.
  • pressure data from a pressure sensor etc.
  • the application does not specifically limit the type of the sensor, for example, the sensor may be a temperature sensor, a pressure sensor, a humidity sensor, and the like.
  • the reader/writer indicates the sensor data to be read by indicating the storage space of the sensor data and/or the type of the sensor data and/or the sensor identification to the tag. After the tag receives the corresponding instruction , the corresponding sensor data can be fed back to the reader according to the obtained instructions, so that the reader can read the data of the sensor in the tag.
  • the storage space is in the memory of the tag: a first storage area, a first byte interval, a first document in the first storage area, the first The first byte interval of a document, or the first byte interval of the first storage area; or, the storage space is a register, a buffer or a space in an external interface of the tag.
  • the tag can reasonably store the sensing data from the sensor.
  • the storage space is a reserved area (reserved), an electronic product code (electronic product code, EPC) area, a label identification code ( tag identifier, TID) area or space in the user area; or, the storage space is a newly added storage space.
  • EPC electronic product code
  • TID label identification code
  • the sensor data may occupy the storage space of the existing storage area, or may occupy the storage space of the newly added storage area.
  • the first command further includes the length of bytes to be read, the number of records to be read, and the number of records to be read. at least one of the number of cycles.
  • the method further includes: the tag sends third information to the reader, where the third information includes all at least one of the time stamp of the first sensing data, the recording or storage time of the first sensing data, and the number of cycles of the first sensing data that have been recorded.
  • the method further includes: the tag sends first indication information to the reader/writer, the first indication information It is used to indicate that sensing data is stored in the tag, or the first indication information includes third sensing data.
  • the tag can first send the first indication information to the reader, indicating that the sensor data has been recorded or saved, and the reader can read it. .
  • the tag can actively report the sensor data after acquiring the sensor data.
  • the method further includes: determining, by the tag, that the reader/writer is allowed to read the first sensing data.
  • determining that the tag allows the reader to read the first sensing data includes: the tag determining the following When at least one of the conditions is satisfied, it is determined that the reader is allowed to read the first sensing data: the first access key is an access key for accessing the first sensing data, and the first command includes the first access key; the reader and the tag are authenticated; and the storage space is set to allow reading.
  • the sensing data can be protected, and the sensing data can be transmitted and read only if the permission requirements are met, which helps to enhance the security of the sensing data.
  • the method further includes: when the value of the second sensing data is greater than the first threshold, the value of the second sensing data is When the value is less than the second threshold, or the value of the second sensing data is greater than the first threshold and less than the second threshold, the tag sends fifth information to the reader, the fifth information It includes second indication information and/or second sensing data, where the second indication information is used to indicate that the second sensing data is abnormal.
  • the tag when the value of the second sensing data is greater than the first threshold, the value of the second sensing data is less than the second threshold, or the value of the second sensing data is greater than the first threshold and less than the second threshold when the second threshold is exceeded, the tag sends fifth information to the reader/writer, the tag determines that the second sensing data is abnormal, and sends the fifth information to the reader/writer.
  • the method further includes: receiving, by the tag, the first threshold and/or the first threshold from the reader/writer second threshold.
  • the present application provides a method for reading data, the method comprising: a reader/writer sending a first command to a tag, where the first command is used to read first sensing data, the The first command includes first information and/or second information, where the first information is used to indicate the storage space of the first sensing data, and the second information is used to indicate the type, At least one of the identification of the first sensor and the starting position of the storage space, the first sensing data comes from the first sensor; the reader receives the first sensing data from the tag data.
  • the above-mentioned sensory data may be data from sensors.
  • temperature data from a temperature sensor For example, pressure data from a pressure sensor, etc.
  • pressure data from a pressure sensor etc.
  • the application does not specifically limit the type of the sensor, for example, the sensor may be a temperature sensor, a pressure sensor, a humidity sensor, and the like.
  • the reader/writer indicates the sensor data to be read by indicating the storage space of the sensor data and/or the type of the sensor data and/or the sensor identifier to the tag, so that the tag receives the corresponding instruction Afterwards, the corresponding sensor data can be fed back to the reader according to the obtained instruction, so that the reader can read the data of the sensor in the tag.
  • the method further includes: the reader/writer receiving first indication information from the tag, where the first indication information is used to indicate that the tag is stored with The sensory data, or the first indication information includes third sensory data.
  • the tag can first send the first indication information to the reader, indicating that the sensor data has been recorded or saved, and the reader can read it. .
  • the tag can actively report the sensor data after acquiring the sensor data.
  • the method further includes: the reader/writer receiving fifth information from the tag, where the fifth information includes The second indication information and/or the second sensing data, the second indication information is used to indicate that the second sensing data is abnormal, wherein the value of the second sensing data is greater than the first threshold, the The value of the second sensing data is less than a second threshold, or the value of the second sensing data is greater than the first threshold and less than the second threshold.
  • the method further includes: the reader/writer sending the first threshold and/or the second threshold to the tag, where the The first threshold and the second threshold are used to determine whether the second sensing data is abnormal.
  • the storage space is the memory of the tag: a first storage area, a first byte interval, the first the first document of the storage area, the first byte interval of the first document, or the first byte interval of the first storage area; or, the storage space is the register of the tag, space in the buffer or external interface.
  • the storage space is a space in a reserved area, an EPC area, a TID area or a user area; or, the storage space is Added storage space.
  • the first command further includes the length of bytes to be read, the number of records to be read, and the number of records to be read. at least one of the number of cycles.
  • the method further includes: the reader/writer receiving third information from the tag, where the third information includes At least one of a time stamp of the first sensory data, a time of recording or storage of the first sensory data, and a number of cycles of the first sensory data that have been recorded.
  • the present application provides a communication device, the device includes a module for executing the method in the first aspect or any possible implementation manner of the first aspect; or, includes a module for executing the second aspect or A module of the method in any possible implementation of the second aspect.
  • the present application provides a communication device including a processor.
  • the processor is coupled to the memory and can be used to execute instructions in the memory to implement the method in any one of the possible implementations of the first aspect above.
  • the apparatus further includes a memory.
  • the apparatus further includes a communication interface to which the processor is coupled.
  • the device is a tag.
  • the communication interface may be a transceiver, or an input/output interface.
  • the device is a chip configured in the tag.
  • the communication interface may be an input/output interface.
  • the transceiver may be a transceiver circuit.
  • the input/output interface may be an input/output circuit.
  • the present application provides a communication device including a processor.
  • the processor is coupled to the memory and can be used to execute instructions in the memory to implement the method in any of the possible implementations of the second aspect above.
  • the apparatus further includes a memory.
  • the apparatus further includes a communication interface to which the processor is coupled.
  • the device is a reader/writer.
  • the communication interface may be a transceiver, or an input/output interface.
  • the device is a chip configured in the reader/writer.
  • the communication interface may be an input/output interface.
  • the transceiver may be a transceiver circuit.
  • the input/output interface may be an input/output circuit.
  • the present application provides a processor, including: an input circuit, an output circuit, and a processing circuit.
  • the processing circuit is configured to receive a signal through the input circuit and output a signal through the output circuit, so that the processor executes any one of the possible implementations of the first aspect or the second aspect. Methods.
  • the above-mentioned processor may be a chip
  • the input circuit may be an input pin
  • the output circuit may be an output pin
  • the processing circuit may be a transistor, a gate circuit, a flip-flop, and various logic circuits.
  • the input signal received by the input circuit may be received and input by, for example, but not limited to, a receiver
  • the signal output by the output circuit may be, for example, but not limited to, output to and transmitted by a transmitter
  • the circuit can be the same circuit that acts as an input circuit and an output circuit at different times.
  • the embodiments of the present application do not limit the specific implementation manners of the processor and various circuits.
  • the present application provides a communication device including a processor and a memory.
  • the processor is configured to read instructions stored in the memory, and can receive signals through a receiver and transmit signals through a transmitter, so as to perform the method in any one of the possible implementations of the first aspect or the second aspect .
  • processors there are one or more processors and one or more memories.
  • the memory may be integrated with the processor, or the memory may be provided separately from the processor.
  • the memory can be a non-transitory memory, such as a read only memory (ROM), which can be integrated with the processor on the same chip, or can be separately set in different On the chip, the embodiment of the present application does not limit the type of the memory and the setting manner of the memory and the processor.
  • ROM read only memory
  • the relevant data interaction process such as sending indication information, may be a process of outputting indication information from the processor, and receiving capability information may be a process of receiving input capability information by the processor.
  • the data output by the processing can be output to the transmitter, and the input data received by the processor can be from the receiver.
  • the transmitter and the receiver may be collectively referred to as a transceiver.
  • the device in the above seventh aspect may be a chip, and the processor may be implemented by hardware or software.
  • the processor When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc.; when implemented by software , the processor may be a general-purpose processor, and is implemented by reading software codes stored in a memory, which may be integrated in the processor or located outside the processor and exist independently.
  • the present application provides a computer-readable storage medium, in which a computer program or instruction is stored, and when the computer program or instruction is executed, the above-mentioned first aspect or the second aspect is realized.
  • the present application provides a computer program product comprising instructions that, when executed, implement the method of any possible implementation of any of the first or second aspects.
  • the present application provides an RFID system, which includes any one of the above tags and any one of the above readers.
  • the present application provides a communication system, which includes any one of the above tags and any one of the above readers.
  • FIG. 1 is a schematic diagram of the architecture of a communication system to which embodiments of the present application can be applied.
  • Figure 2 is a schematic diagram of several deployment modes of tags and readers in a communication system.
  • FIG. 3 is an example of storage space occupied by sensor data.
  • FIG. 4 is another example of storage space occupied by sensory data.
  • FIG. 5 is a schematic flowchart of a method for reading data provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a method for reading data provided by another embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a communication apparatus provided by an embodiment of the present application.
  • FIG. 8 is another schematic structural diagram of a communication apparatus provided by an embodiment of the present application.
  • RFID technology is a kind of automatic identification technology, which conducts non-contact two-way data communication through radio frequency. RFID technology can realize the reading and writing of tags by readers through radio frequency, so as to achieve the purpose of identifying targets and data exchange.
  • Typical application scenarios of RFID include animal chips, car chip immobilizers, access control, parking lot control, production line automation, and material management.
  • RFID systems may include tags and readers.
  • Tags can also be replaced by transponder devices, electronic tags, RFID tags, radio frequency tags, transponders, data carriers, recording media, radio frequency cards, IoT devices, etc.
  • tags For convenience of description, this application is collectively referred to as tags.
  • Each tag has a unique electronic code that can be attached to an object or device to identify the target object, and high-capacity tags have writable storage space. In the present application, the tag has storage space for storing sensory data.
  • the reader can also be replaced by a device with reading and/or writing functions, a reading and writing device, a reading device, a scanner, a reading head, a communicator, a reader, a reader, etc.
  • a reading and writing device a reading device
  • a scanner a reading head
  • a communicator a reader
  • reader a reader
  • the reader/writer is a device that reads tag information and/or writes information to the tag.
  • the tag After the tag enters the magnetic field, it receives the radio frequency signal from the reader and sends the information stored in the chip (for passive tags or passive tags) or actively sends a signal of a certain frequency with the energy obtained by the induced current. Send out the information stored in the chip (for active tags or active tags); the reader reads and decodes the information from the tag, and sends it to the information processing system for related data processing.
  • the sensory data may be data from sensors.
  • temperature data from a temperature sensor For example, pressure data from a pressure sensor, etc.
  • the sensing data of the sensor is simply referred to as sensing data in this application.
  • the sensing data of each sensor may be simply referred to as each sensing data.
  • the sensing data of multiple sensors may be simply referred to as multiple sensing data.
  • the tag may acquire and store sensory data from the sensor.
  • the sensor and the label can be set independently and transmit data through the corresponding communication interface, or can be integrated together, which is not specifically limited.
  • the present application does not specifically limit the type of sensor, that is, the type of sensing data is not specifically limited.
  • the sensor may be a temperature sensor, a pressure sensor, a humidity sensor, or the like.
  • CDMA code division multiple access
  • LTE long term evolution
  • LTE frequency division duplex frequency division duplex
  • duplex (FDD) system LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, wireless local area network (wireless local area network, WLAN), fifth generation ( 5th generation, 5G) system or NR communication system, sixth generation ( 6th generation, 6G) mobile communication system, satellite communication system, and future mobile communication systems, etc.
  • the communication system may be a third generation partnership project (third generation partnership project, 3GPP) communication system or a non-3GPP communication system, which is not limited.
  • 3GPP third generation partnership project
  • FIG. 1 is a schematic diagram of the architecture of a communication system to which embodiments of the present application can be applied.
  • the communication system includes at least one access network device (110a, 110b and 110c in FIG. 1), and may also include at least one terminal (120a in FIG. 1), the terminal is located in the access network device Coverage of one or more cells (carriers) provided. There may be one or more cells serving the terminal. When there are multiple serving cells for the terminal, the terminal can work according to carrier aggregation (CA), dual connectivity (DC) or coordinated multipoint transmission, wherein the multiple serving cells for the terminal are simultaneously The terminal provides radio resources. Terminals and terminals and access network devices and access network devices may be connected to each other in a wired or wireless manner.
  • Fig. 1 is only a schematic diagram, the communication system may also include other network devices, such as wireless relay devices and wireless backhaul devices, which are not shown in Fig. 1 .
  • the access network equipment in Figure 1 can be a base station (base station), an evolved NodeB (eNodeB), a transmission reception point (TRP), a radio network controller (RNC), a base station Controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved NodeB, or home Node B, HNB), base band unit (base band unit, BBU), wireless security Wireless Fidelity (Wifi) access point (AP), next generation NodeB (gNB) in 5G mobile communication system, next generation base station in 6G mobile communication system, future mobile communication system A base station or an access node in a WiFi system, etc.; it can also be a module or unit that completes some functions of the base station, for example, it can be a centralized unit (central unit, CU) or a distributed unit (distributed unit, DU).
  • base station base station
  • eNodeB evolved NodeB
  • TRP transmission reception point
  • RNC
  • the access network equipment can be a macro base station (110a in Figure 1), a micro base station, a small base station, a pole station, an indoor station, etc. (110b and 110c in Figure 1), or a relay node or Donor node, etc.
  • the embodiments of the present application do not limit the specific technology and specific device form adopted by the access network device.
  • the access network device is hereinafter referred to as a network device for short, and the terms network device and base station are interchangeable.
  • the terminal in FIG. 1 refers to a device that can provide voice and/or data connectivity to the user.
  • the terminal can communicate with network equipment through the uplink (uplink, UL) or downlink (downlink, DL) over the air interface.
  • uplink uplink
  • downlink downlink
  • the terminal can send data to the network device; in the DL direction, the network device can send control information to the terminal, and can also send data to the terminal, that is, the terminal can receive control information and/or data sent by the network device.
  • the terminal may also be referred to as terminal equipment, user equipment (user equipment, UE), mobile station, mobile terminal, and the like.
  • Terminals can be widely used in various scenarios, such as device-to-device (D2D), V2X communication, MTC, IoT, virtual reality (VR), augmented reality (AR), industrial Industrial control, autonomous driving, telemedicine, smart grid, smart furniture, smart office, smart wear, smart transportation, smart city, etc.
  • the terminal can be a mobile phone, tablet computer, notebook computer, PDA, mobile internet device (MID), computer with wireless transceiver function, wearable device, VR device, AR device, wireless terminal in industrial control, automatic Wireless terminal in driving, wireless terminal in remote surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, vehicle , drones, helicopters, planes, ships, robots, robotic arms, smart home equipment, etc.
  • the embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal.
  • the terminal may be located within the cell coverage of the network device.
  • network equipment and/or terminals can be deployed on land, including indoors or outdoors, hand-held or vehicle-mounted; on water; and on aircraft, balloons, and satellites in the air.
  • 120a in FIG. 1 is an unmanned aerial vehicle, and is configured as a mobile base station.
  • Another terminal in the communication system (not shown in FIG. 1, for convenience of description, referred to as 120b) can access the access network through 120a
  • 120a For the device 110a, for 120b, 120a is a base station; but for the access network device 110a, 120a is a terminal, that is, the access network devices 110a and 120a communicate through a wireless air interface protocol.
  • communication between the access network devices 110a and 120a may also be performed through an interface protocol between the base station and the base station.
  • 120a is also a base station.
  • both the access network equipment and the terminal may be collectively referred to as communication devices, 110a, 110b and 110c in FIG. 1 may be referred to as communication devices with base station functions, and 120a in FIG. 1 and 120b mentioned here may be referred to as communication devices with Terminal-capable communication device.
  • communication between network devices and terminals, between network devices and network devices, and between terminals and terminals can be performed through licensed spectrum, or through licensed spectrum, or simultaneously through licensed spectrum. Communicate with unlicensed spectrum.
  • the embodiments of the present application are applicable to both low frequency scenarios (sub 6G) and high frequency scenarios (above 6G), terahertz, optical communication, and the like.
  • a network device and a terminal can communicate through a spectrum below 6 GHz (gigahertz, GHz), or communicate through a spectrum above 6 GHz, and can also communicate using a spectrum below 6 GHz and a spectrum above 6 GHz at the same time.
  • the embodiments of the present application do not limit the spectrum resources used for communication.
  • the function of the network device may also be performed by a module (eg, a chip) in the network device, or may be performed by a control subsystem including the function of the network device.
  • the control subsystem including the function of the network device here may be the control center in the application scenarios of the above-mentioned terminals such as smart grid, industrial control, intelligent transportation, and smart city.
  • the functions of the terminal can also be performed by a module (such as a chip or a modem) in the terminal, and can also be performed by a device including the terminal functions.
  • the embodiments of the present application do not specifically limit the deployment manner of the tag and the reader/writer in the communication system.
  • the reader and the tag can be deployed in the communication system as a terminal, and the communication between the reader and the tag can be regarded as sidelink communication.
  • the reader can be deployed in the communication system as an access network device (for example, the reader is integrated in the access network device or the access network device has the function of the reader, etc.), and the tag can be deployed as a terminal in the communication system. in the communication system.
  • Figure 2 is a schematic diagram of several deployment modes of tags and readers in a communication system.
  • the reader can be deployed in the communication system as an access network device or together with the access network device, and the access network device can read the information in the tag and/or write information to the tag.
  • macro station 210a in FIG. 2 may read information from and/or write information to tag 220a.
  • the pole station 210c in FIG. 2 may read information from and/or write information to the tag 220c.
  • the reader/writer can be deployed as a terminal in the communication system or together with the terminal.
  • the reader in FIG. 2 is deployed as a terminal with pole station 210c that can read information from and/or write information to tag 220c.
  • the reader can be deployed as a terminal in the communication system, and data transmission is performed between the reader and the access network equipment through the uu (UE-UTRAN) interface, that is, air interface transmission, between the reader and the tag It can be seen as side link communication.
  • the macro station 210b in FIG. 2 and the reader/writer 230b may communicate through a uu interface, and the reader/writer 230b may read information in the tag 220b and/or write information to the tag 220b.
  • the pole station 210d and the reader/writer 230d may communicate through a uu interface, and the reader/writer 230d may read information in the tag 220d and/or write information to the tag 220d.
  • the pole station 210e and the reader 230e can communicate through the uu interface, and the reader 230e can read the information in the tag 220e and/or write information to the tag 220e. If the tag 220e has the air interface communication capability, the tag 220e can 220e may also communicate directly with pole station 210e.
  • the existing RFID system can realize the reading and writing of the tag by the reader and writer by means of radio frequency. But existing RFID systems have not yet specified how to store and read and write sensor data. In view of the above problems, the present application provides a method and apparatus for reading data, which can realize the storage and reading of sensor data.
  • the tag supports the storage of sensory data of at least one sensor. If the tag supports storing the sensing data of multiple sensors, the types of the multiple sensors may be the same or different, which is not limited.
  • each sensory data may occupy a separate storage space.
  • the first sensory data may occupy the first storage area, the first byte interval, the first file of the first storage area, the first byte interval of the first file of the first storage area, or the first The first byte range of the storage area, etc.
  • the document (file) may also be replaced by a file, etc., and the same description is referred to as a document in this application.
  • the sensing data may correspond to the storage areas one-to-one, for example, the first sensing data corresponds to the first storage area.
  • the sensing data may be in one-to-one correspondence with byte intervals, for example, the first sensing data corresponds to the first byte interval.
  • the sensory data may be in one-to-one correspondence with documents, for example, the first sensory data corresponds to the first document in the first storage area.
  • the sensor data may also correspond to the byte interval one-to-one.
  • the first sensor data corresponds to the first byte interval of the first document in the first storage area, or corresponds to the first byte interval of the first storage area. . If the tag includes multiple storage areas, the reader can first allocate storage areas for multiple sensor data, and then further allocate different documents or byte ranges for multiple sensor data.
  • the storage space occupied by the sensing data may be a newly added space dedicated to storing the sensing data, or may be a storage space in an existing storage area, which is not specifically limited.
  • FIG. 3 is an example of storage space occupied by sensor data.
  • the sensing data is stored by newly adding the first storage area.
  • the memory of the tag includes: a reserved area, an EPC area, a TID area, a user area, and a first storage area.
  • the reserved area also known as the reserved storage area, is used to store the passwords required for the kill (deactivation) and access (access) functions.
  • the storage addresses 00h to 1Fh store the kill password
  • 20h to 3Fh store the access password.
  • a tag that has not executed the kill and/or access password can be regarded as a password with a zero value and is permanently read/write locked.
  • the password storage area in the reserved area does not store a password with a zero value.
  • the EPC area is also called the EPC storage area and is used to store EPC numbers and the like. Among them, storage addresses 00h to 0Fh store cyclic redundancy check-16 (cyclic redundancy check-16, CRC-16), 10h to 1Fh store protocol control bits (protocol control, PC), 20h and its storage addresses greater than 20h Stores the code used to identify what the label is attached to.
  • cyclic redundancy check-16 cyclic redundancy check-16, CRC-16
  • 10h to 1Fh store protocol control bits (protocol control, PC)
  • 20h and its storage addresses greater than 20h Stores the code used to identify what the label is attached to.
  • the TID area also known as the TID storage area, is used to store the tag identification code.
  • storage addresses 00h to 07h store an 8-bit class identification code, and storage addresses above 07h should contain sufficient identification information so that the reader can uniquely identify the custom commands and/or optional commands supported by the tag.
  • the user area also known as the user memory area, is used to store user-defined data.
  • the storage organization structure of the user area can be defined by the user.
  • the first storage area is a newly added storage area for storing sensing data.
  • Each sensor data may occupy a single file (file) alone, or may occupy a fixed byte range, or multiple sensor data may occupy different byte ranges of a document.
  • the sensing data of sensor 0 occupies the 0th file in the first storage area
  • the sensing data of sensor n occupies the nth file in the first storage area
  • the sensing data of sensor 0 occupies the byte interval [15:0] of the first storage area
  • the sensing data of sensor 1 occupies the byte interval of the first storage area [31:16], and so on.
  • the embodiments of the present application do not specifically limit the name of the first storage interval during implementation.
  • it may be called sensor, sensor, sensor, or data, etc.
  • FIG. 4 is another example of storage space occupied by sensory data.
  • the memory of the tag includes: a reserved area, an EPC area, a TID area, and a user area.
  • the description about the reserved area, the EPC area, the TID area, and the user area can be described in the part of FIG. 3 , and will not be repeated here.
  • the sensor data is stored by occupying the storage space of the existing storage area, for example, occupying one or more of the reserved area, the EPC area, the TID area, and the user area. indivual.
  • different sensor data may occupy different documents in the user area, different byte intervals of a document in the user area, or different byte intervals of multiple documents in the user area.
  • the sensing data of sensor 0 occupies the i-th document in the user area
  • the sensing data of sensor 1 occupies the i+1-th document in the user area, where i is a non-negative integer.
  • each storage area may be in units of bytes, that is, 8 bits, and the first byte interval in FIG. 3 and FIG. 4 may be 00-07.
  • the sensor data can also be stored in an undefined storage space.
  • the data stored in this type of storage space can usually only be saved when the power is turned on. Once the power is turned off, the data will be lost.
  • sensory data may be stored in registers, buffers, or other external interfaces.
  • each sensing data may occupy a separate storage space. For example, different sensor data can occupy different byte intervals.
  • FIG. 5 is a schematic flowchart of a method for reading data provided by an embodiment of the present application.
  • the method shown in FIG. 5 may be implemented by a reader/writer and a tag, or may be implemented by a module or unit (eg, a chip, a circuit, a system on chip (SOC), etc.) in the reader/writer and the tag.
  • the execution subject is a reader and a tag as an example for description.
  • the method of FIG. 5 may include at least some of the following.
  • Step 510 the reader/writer sends a first command to the tag. Accordingly, the tag receives the first command from the reader. Wherein, the first command is used to read the first sensing data.
  • the reader/writer when the reader/writer wants to read the sensing data of the tag, it can acquire the corresponding sensing data by sending the first command to the tag.
  • the tag can be in an open state (open), a secure state (secured), or a connected state, such as a radio resource control (radio resource control, RRC) connected state.
  • RRC radio resource control
  • the first command may be a selection command (select), a query command (query), a read command (read) or other commands, which are not limited.
  • the first command includes first information, where the first information is used to indicate a storage space for storing the first sensing data.
  • the first command may include the first information.
  • the first information includes location information of a storage space where the first sensing data is stored.
  • the location information may include a storage area identification.
  • the location information may include at least two of the starting position of the storage area, the read byte length and the ending position; or, if the tag and the reader/writer The length of each read has been agreed, and the position information may include the start position and/or end position; or, the position information may include at least two of the start position, read length, and end position of the byte interval, and a storage area identification and a document identification; or, the location information may include at least two of a start position, a read length and an end position of a byte interval, and a storage area identification.
  • the location information may be a storage area identification and a document identification.
  • the above-mentioned storage area identifier may be a name of a storage area, for example, a user area, a reserved area, an EPC area, a TID area, or a first memory area, and the like.
  • the first command includes second information, where the second information is used to indicate the type of the first sensing data, the identification of the first sensor, the identification of the type of sensing data, and the storage of the first sensing data At least one of the starting positions of the space, the first sensory data is data from the first sensor.
  • the types of sensing data may specifically include temperature sensing data, humidity sensing data, and the like.
  • the data length of the sensing data read each time can be agreed to be a fixed value, for example, it is agreed to read the latest n records, it is agreed to read k bytes each time, or it is agreed to read m data, etc.
  • n, m, and k are integers greater than 0, wherein the number of bytes of each record and the data length of each data can be agreed as fixed values, such as 8 bytes or 16 bytes.
  • the read data length or the number of data records may be carried in the second information.
  • the second information may further indicate to read the latest n records, read k bytes, etc., where n and k are greater than An integer of 0, where the number of bytes in each record can be agreed to a fixed value, such as 8 bytes or 16 bytes.
  • the first command may further include at least one of the length of bytes to be read, the number of records to be read, and the number of cycles to be read. That is to say, the data length of the sensing data that the tag needs to be read is informed by the reader/writer.
  • the reader tells the tag to read k bytes, the latest n records, or m data through the first command, where n, m and k are integers greater than 0, where the number of bytes in each record is And the data length of each data can be agreed to a fixed value, such as 8 bits or 16 bits.
  • the first command includes fourth information
  • the fourth information is used to instruct the tag to periodically report the sensing data.
  • the fourth information includes a reporting period.
  • the first sensing data is stored in an undefined storage space of the tag, for example, stored in a register, a buffer or an external interface.
  • the first command may not include the first information, but may include the second message and so on.
  • Step 520 the tag sends the first sensing data to the reader according to the first command. Accordingly, the reader/writer receives the first sensing data from the tag.
  • the tag after receiving the first command, acquires the first sensing data according to the first command. If the first sensing data required by the reader/writer is obtained, the tag returns the first sensing data to the reader/writer. If it cannot return valid sensing data to the reader, the tag can return an error code to the reader to indicate that the sensing data cannot be returned normally, or the tag does not respond to the first command, or the tag jumps to other states .
  • the tag may also return third information to the reader.
  • the third information may include time information, specifically time stamp information, such as the time when the sensory data is fed back, such as xx, xx, xx, xx, xx; it can also be saving time information, such as receiving recorded data to the time saved at the time of sending, etc.
  • the third information may be the number of cycles or the amount of data of the first sensing data that has been recorded.
  • the third information may further include identification information and the like of the first sensing data.
  • the method shown in FIG. 5 may further include step 530 .
  • Step 530 the tag sends the first indication information to the reader. Accordingly, the reader/writer receives the first indication information from the tag. The first indication information is used to indicate that sensor data is stored in the tag.
  • step 530 is performed before step 510 . That is to say, before the reader reads the sensor data of the tag, the tag can first send the first indication information to the reader, indicating that the sensor data has been recorded or saved, and the reader can read it. .
  • the reader/writer instructs the tag to report the amount of stored data, such as the number of bytes, or instructs the tag to report the number of stored records, then after receiving it, the reader may further instruct the tag to report the specific record data, For example, for the latest time, the number of times n can also be indicated in chronological order, and the tag reports the latest n times of data; after receiving the instruction, the tag can give corresponding feedback, that is, send the first instruction information to the reader, feedback The situation of the stored sensor data; after receiving the first indication information, the reader can send the first command to read the first sensor data.
  • the first indication information may also directly carry sensor data.
  • the method shown in FIG. 5 may further include step 540 .
  • Step 540 the tag determines that the reader is allowed to read the first sensing data.
  • the tag when it is determined that the reader/writer is allowed to read the first sensing data, the tag will only send the first sensing data to the reader/writer. When it is determined that the reader is not allowed to read the first sensing data, the tag may return an error code, not respond, or jump to other states, without limitation.
  • permissions may be set for sensors, types of sensing data, or storage space, and only readers or commands with corresponding read permissions can acquire sensing data.
  • each sensing data access has an independent access key, and only the reader/writer that sends the correct access key can obtain the corresponding sensing data. That is, when the first access key provided by the reader/writer is the access key for accessing the first sensing data, the tag determines to allow the reader/writer to read the first sensing data.
  • the reader/writer may carry the first access key in the first command.
  • the reader/writer may also carry the first access key in other commands or information.
  • the reader and tag can be authenticated, and the reader and tag after authentication can read and transmit sensing data. That is, when the reader-writer and the tag are authenticated readers and tags, the tag determines that the reader-writer is allowed to read the first sensing data. In this way, rights management can be simplified.
  • a signaling authority may be set for the storage space of each sensing data, and within a specific authority, only some commands are allowed to be used by the reader, and other commands cannot be accessed.
  • a storage space that stores certain sensor data can be set to allow only reading and/or writing. That is, when the storage space of the first sensing data is set to allow reading, the tag determines that the reader/writer is allowed to read the first sensing data.
  • the signaling authority of the storage space can be modified by the reader.
  • FIG. 6 is a schematic flowchart of a method for reading data provided by another embodiment of the present application.
  • the method shown in FIG. 6 may include at least part of the following.
  • Step 610 the reader/writer sends a second command to the tag. Accordingly, the tag receives the second command from the reader.
  • the second command may be the above-mentioned first command or other commands, which is not limited.
  • the second command may include sixth information and/or seventh information, and condition information.
  • the sixth information is used to indicate the storage space for storing the second sensing data
  • the seventh information is used to indicate the type of the second sensing data or the identification of the second sensor
  • the second sensing data is data from the second sensor.
  • the condition information is used to indicate a condition that needs to be satisfied to report the second indication information and/or the second sensing data
  • the second indication information here may be used to indicate that the second sensing data is abnormal.
  • the condition information may include threshold information, which is used to determine whether the second sensing data is abnormal.
  • the threshold value information includes a first threshold value, and a tag indicating that the value of the second sensing data is greater than the first threshold value sends the second indication information and/or the second sensing data.
  • the threshold value information includes a second threshold value, indicating that a tag whose value of the second sensing data is smaller than the second threshold value sends the second indication information and/or the second sensing data.
  • the threshold value information includes a first threshold value and a second threshold value, indicating that a tag whose value of the second sensing data is greater than the first threshold value and less than the second threshold value sends the second indication information and/or the second sensing data.
  • condition information may indicate a condition that the tag needs to meet, and the tag that satisfies the condition accesses and reports sensing data and/or second indication information.
  • condition information may indicate specific bits included in the identification of the tag, and the tag with sensing function may report sensing data and/or second indication information.
  • the second command includes the specific bit and the sensor data reporting indication, so that the tag matching the condition initiates access, and after the access is successful, the sensor data and/or the reader is sent to the reader.
  • the second indication information, or the tag matching the condition directly sends the sensing data and/or the second indication information.
  • Step 620 the tag sends fifth information to the reader according to the second command. Accordingly, the reader/writer receives the fifth information from the tag.
  • the fifth information includes second indication information and/or second sensing data.
  • the second sensing data satisfies the condition indicated by the above condition information.
  • the tag determines whether the condition indicated by the condition information is satisfied. If it is determined that the condition indicated by the condition information is satisfied, the tag sends fifth information to the reader.
  • the tag determines whether the second sensing data is abnormal according to the threshold information in the second command. For example, when the value of the second sensing data is greater than the first threshold, the tag determines that the second sensing data is abnormal. For another example, when the value of the second sensing data is smaller than the second threshold, the tag determines that the second sensing data is abnormal. For another example, the tag determines that the second sensing data is abnormal when the value of the second sensing data is greater than the first threshold and less than the second threshold.
  • the second sensing data here may be the most recent or n-time records.
  • the tag determines whether the tag matches the condition according to the condition that the tag in the second command needs to meet. For example, when the tag has a specific bit included in the tag's identification and has a sensing function, it is determined that the tag matches the condition, and the fifth information is sent to the reader.
  • the tag can send the fifth information to the reader after the access is successful, or can directly send the fifth information.
  • a default threshold such as the first threshold or the second threshold, may be used. Then, when the tag receives the second command, it can activate the alarm process, and judge whether to report by comparing with the default threshold.
  • the reporting may also be periodic reporting or the reader configures the maximum number of reports, and within the maximum number of times, the reporting is performed at a fixed period until the maximum number is reached or the reader instructs the reader to stop the alarm process.
  • the fifth information may have only 1 bit for indicating the existence of abnormal data.
  • the fifth information may also include the type of the sensing data and an abnormality indication, where the abnormality indication is used to indicate that abnormal data exists.
  • the fifth information can be sent together with the EPC, or reported together with the random number or the label identifier during the access process of the label, and the reporting method is not limited.
  • the reader will send signaling to initiate a new round of tag access.
  • the fifth information may be actively sent by the tag.
  • threshold information may be preconfigured in the tag for each sensing data, and the tag determines whether the sensing data is abnormal according to the preconfigured threshold information.
  • the preconfigured threshold information can be stored in the memory, such as the five storage areas above.
  • the threshold information can be assigned to the tag by the reader, core network device or server.
  • the tag determines that the sensor data is abnormal, it can trigger an active report, and the report method can refer to the description of step 620, which will not be repeated here.
  • the second command may be the first command
  • the first sensing data may be the second sensing data
  • the first information may be the sixth information
  • the second information may be the seventh information .
  • the tag and the reader/writer include corresponding hardware structures and/or software modules for performing each function.
  • the units and method steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software-driven hardware depends on the specific application scenarios and design constraints of the technical solution.
  • command sent by the reader/writer may be determined by the reader/writer, or may be obtained from the core network device or the server device and sent to the tag.
  • an indication message can be sent to indicate that there is no data to report or Error indication.
  • FIG. 7 and FIG. 8 are schematic structural diagrams of possible communication apparatuses provided by embodiments of the present application. These communication apparatuses can be used to implement the functions of the terminal or the network device in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments.
  • the communication device may be tags 220a-220e as shown in FIG. 2, or readers 230b, 230d and 230e as shown in FIG.
  • the module (eg chip) of the writer may be tags 220a-220e as shown in FIG. 2, or readers 230b, 230d and 230e as shown in FIG.
  • the module eg chip
  • the communication apparatus 700 includes a processing unit 710 and a transceiver unit 720 .
  • the communication device 700 is used to implement the function of the tag or the reader/writer in the method embodiment shown in FIG. 5 or FIG. 6 .
  • the transceiver unit 720 is configured to receive a first command from the reader, where the first command is used to read the first sensing data, the first command includes first information and/or second information, and the first command is used to read the first sensor data.
  • One piece of information is used to indicate the storage space of the first sensing data
  • the second information is used to indicate the type of the first sensing data or the identifier of the first sensor
  • the first sensing data is from the A first sensor; used for sending the first sensing data to the reader according to the first command.
  • the transceiver unit 720 is further configured to send first indication information to the reader, where the first indication information is used to indicate that the tag stores sensor data, or the first indication information includes the third transmission information. sense data.
  • the processing unit 710 is configured to determine that the reader/writer is allowed to read the first sensing data.
  • the transceiver unit 720 is further configured to send third information to the reader, where the third information includes a timestamp of the first sensing data, a record or stored data of the first sensing data. at least one of time, and the number of cycles of the first sensing data that have been recorded.
  • the transceiver unit 720 is configured to send a first command to the tag, where the first command is used to read the first sensing data, and the first command includes first information and/or second information, and the first information is used is used to indicate the storage space of the first sensing data, the second information is used to indicate at least one of the type of the first sensing data, the identification of the first sensor and the starting position of the storage space,
  • the first sensory data is from the first sensor; the first sensory data is received from the tag.
  • the transceiver unit 720 is further configured to receive first indication information from the tag, where the first indication information is used to indicate that sensor data is stored in the tag, or the first indication information includes a third sensor data.
  • the transceiver unit 720 is further configured to receive fifth information from the tag, where the fifth information includes second indication information and/or second sensing data, and the second indication information is used to indicate the The second sensing data is abnormal.
  • the transceiver unit 720 is further configured to send a first threshold and/or a second threshold to the tag, where the first threshold and the second threshold are used to determine whether the second sensing data is abnormal.
  • the transceiver unit 720 is further configured to receive third information sent by the tag, where the third information includes a time stamp of the first sensing data and a time when the first sensing data was recorded or stored , and at least one of the number of cycles of the first sensing data that have been recorded.
  • the transceiver unit 720 is used for receiving the second command from the reader.
  • the transceiver unit 720 is further configured to send fifth information to the reader according to the second command.
  • the transceiver unit 720 is used for sending the second command to the tag.
  • the transceiver unit 720 is further configured to receive the fifth information sent by the tag.
  • the communication apparatus 800 includes a processor 810 and an interface circuit 820 .
  • the processor 810 and the interface circuit 820 are coupled to each other.
  • the interface circuit 820 can be a transceiver or an input-output interface.
  • the communication apparatus 800 may further include a memory 830 for storing instructions executed by the processor 810 or input data required by the processor 810 to execute the instructions or data generated after the processor 810 executes the instructions.
  • the processor 810 is used to implement the function of the above-mentioned processing unit 710
  • the interface circuit 820 is used to implement the function of the above-mentioned transceiver unit 720 .
  • the tag chip implements the function of the tag in the above method embodiment.
  • the tag chip receives information from other modules (such as radio frequency modules or antennas) in the terminal device, and the information is sent by the reader to the tag; or, the tag chip sends information to other modules in the tag (such as radio frequency modules or antennas) information, which is sent by the tag to the reader.
  • the reader/writer chip implements the functions of the reader/writer in the above method embodiments.
  • the reader-writer chip receives information from other modules in the reader-writer (such as radio frequency modules or antennas), and the information is sent by the tag to the reader-writer; or, the reader-writer chip sends information to other modules in the reader-writer (such as radio frequency module or antenna) to send information, the information is sent to the tag by the reader.
  • the processor in the embodiments of the present application may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
  • a general-purpose processor may be a microprocessor or any conventional processor.
  • the method steps in the embodiments of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions.
  • Software instructions may be composed of corresponding software modules, and software modules may be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory memory, registers, hard disk, removable hard disk, CD-ROM or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and storage medium may reside in an ASIC. Alternatively, the ASIC can be located in the reader or tag. Of course, the processor and storage medium may also exist in the reader or tag as discrete components.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer programs or instructions.
  • the processes or functions described in the embodiments of the present application are executed in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus.
  • the computer program or instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, A server or data center transmits by wire or wireless to another website site, computer, server or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, data center, or the like that integrates one or more available media.
  • the usable media may be magnetic media, such as floppy disks, hard disks, magnetic tapes; optical media, such as digital video discs; and semiconductor media, such as solid-state drives.
  • “at least one” means one or more, and “plurality” means two or more.
  • “And/or”, which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the related objects are a kind of "or” relationship; in the formula of this application, the character "/” indicates that the related objects are a kind of "division" Relationship.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method and apparatus for reading data. By means of indicating, to a tag, at least one of a storage space of sensing data, the type of the sensing data, a sensor identifier, and a starting position of the storage space, a reader-writer indicates the sensing data that needs to be read, and after receiving the corresponding indication, the tag can feed back the corresponding sensing data to the reader-writer according to the obtained indication, such that the reading of data, in the tag, of a sensor by the reader-writer can be realized.

Description

用于读取数据的方法和装置Method and apparatus for reading data 技术领域technical field
本申请涉及通信领域,并且更具体地,涉及用读取数据的方法和装置。The present application relates to the field of communications, and more particularly, to methods and apparatus for reading data.
背景技术Background technique
无线射频识别(radio frequency identification,RFID)技术是自动识别技术的一种,通过无线射频方式进行非接触双向数据通信。RFID技术可以通过无线射频方式,实现读写器对标签的读写,从而达到识别目标和数据交换的目的。RFID***可以包括标签和读写器,每个标签具有唯一的电子编码,可以附着在物体或设备上标识目标对象,读写器为读取标签信息和/或向标签写入信息的设备。Radio frequency identification (radio frequency identification, RFID) technology is a kind of automatic identification technology, which is used for non-contact two-way data communication through radio frequency. RFID technology can realize the reading and writing of tags by readers through radio frequency, so as to achieve the purpose of identifying targets and data exchange. The RFID system can include tags and readers, each tag has a unique electronic code, and can be attached to objects or equipment to identify the target object, and the reader is a device that reads tag information and/or writes information to the tag.
目前,标签支持获取传感器的数据。但是现有的RFID技术尚未规定读写器如何读取标签中的传感器的数据。Currently, tags support acquiring sensor data. But the existing RFID technology has not specified how the reader reads the data of the sensor in the label.
发明内容SUMMARY OF THE INVENTION
本申请提供一种用于读取数据的方法和装置,能够实现读写器对标签中的传感器的数据的读取。The present application provides a method and device for reading data, which can realize the reading of data of a sensor in a tag by a reader.
第一方面,本申请提供了一种用于读取数据的方法,所述方法包括:标签接收来自读写器的第一命令,所述第一命令用于读取第一传感数据,所述第一命令中包括第一信息和/或第二信息,所述第一信息用于指示所述第一传感数据的存储空间,所述第二信息用于指示所述第一传感数据的类型、第一传感器的标识和所述存储空间的起始位置中的至少一个,所述第一传感数据来自所述第一传感器;所述标签根据所述第一命令,向所述读写器发送所述第一传感数据。In a first aspect, the present application provides a method for reading data, the method comprising: a tag receiving a first command from a reader, where the first command is used to read the first sensing data, so The first command includes first information and/or second information, the first information is used to indicate the storage space of the first sensing data, and the second information is used to indicate the first sensing data At least one of the type of the first sensor, the identification of the first sensor, and the starting position of the storage space, the first sensing data comes from the first sensor; the tag sends to the reader according to the first command The writer sends the first sensing data.
上述传感数据可以为来自传感器的数据。例如,来自温度传感器的温度数据、来自压力传感器的压力数据等。本申请对于传感器的类型不作具体限定,例如,传感器可以为温度传感器、压力传感器、湿度传感器等。The above-mentioned sensory data may be data from sensors. For example, temperature data from a temperature sensor, pressure data from a pressure sensor, etc. The application does not specifically limit the type of the sensor, for example, the sensor may be a temperature sensor, a pressure sensor, a humidity sensor, and the like.
在上述技术方案中,读写器通过向标签指示传感数据的存储空间和/或传感数据的类型和/或传感器标识,来指示需要读取的传感数据,标签在接收到相应指示后,可以根据获得的指示向读写器反馈相应的传感数据,这样可以实现读写器对标签中的传感器的数据的读取。In the above technical solution, the reader/writer indicates the sensor data to be read by indicating the storage space of the sensor data and/or the type of the sensor data and/or the sensor identification to the tag. After the tag receives the corresponding instruction , the corresponding sensor data can be fed back to the reader according to the obtained instructions, so that the reader can read the data of the sensor in the tag.
结合第一方面,在一些可能的实现方式中,所述存储空间为所述标签的内存的:第一存储区、第一字节区间、所述第一存储区的第一文档、所述第一文档的所述第一字节区间、或所述第一存储区的所述第一字节区间;或者,所述存储空间为所述标签的寄存器、缓存器或外部接口中的空间。With reference to the first aspect, in some possible implementations, the storage space is in the memory of the tag: a first storage area, a first byte interval, a first document in the first storage area, the first The first byte interval of a document, or the first byte interval of the first storage area; or, the storage space is a register, a buffer or a space in an external interface of the tag.
通过上述技术方案,标签可以合理地存储来自传感器的传感数据。Through the above technical solutions, the tag can reasonably store the sensing data from the sensor.
结合第一方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述存储 空间为保留区(reserved)、电子产品代码(electronic product code,EPC)区、标签识别码(tag identifier,TID)区或用户区中的空间;或者,所述存储空间为新增的存储空间。With reference to the first aspect or any of the above possible implementations, in other possible implementations, the storage space is a reserved area (reserved), an electronic product code (electronic product code, EPC) area, a label identification code ( tag identifier, TID) area or space in the user area; or, the storage space is a newly added storage space.
也就是说,传感数据可以占用已有存储区的存储空间,也可以占用新增的存储区的存储空间。That is to say, the sensor data may occupy the storage space of the existing storage area, or may occupy the storage space of the newly added storage area.
结合第一方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述第一命令还包括待读取的字节长度、待读取的记录的次数和待读取的周期数中的至少一个。In combination with the first aspect or any of the above possible implementations, in other possible implementations, the first command further includes the length of bytes to be read, the number of records to be read, and the number of records to be read. at least one of the number of cycles.
结合第一方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述方法还包括:所述标签向所述读写器发送第三信息,所述第三信息包括所述第一传感数据的时间戳、所述第一传感数据的记录或存储的时间、和已经记录的所述第一传感数据的周期数中的至少一个。With reference to the first aspect or any of the above possible implementation manners, in some other possible implementation manners, the method further includes: the tag sends third information to the reader, where the third information includes all at least one of the time stamp of the first sensing data, the recording or storage time of the first sensing data, and the number of cycles of the first sensing data that have been recorded.
结合第一方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述方法还包括:所述标签向所述读写器发送第一指示信息,所述第一指示信息用于指示所述标签中存储有传感数据,或所述第一指示信息包括第三传感数据。With reference to the first aspect or any of the above possible implementation manners, in some other possible implementation manners, the method further includes: the tag sends first indication information to the reader/writer, the first indication information It is used to indicate that sensing data is stored in the tag, or the first indication information includes third sensing data.
也就是说,在读写器读取标签传感数据之前,标签可以先向读写器发送第一指示信息,指示已经有记录好或保存好的传感数据,读写器可以进行读取操作。或者,标签可以在获取到传感数据后,主动上报传感数据。That is to say, before the reader reads the sensor data of the tag, the tag can first send the first indication information to the reader, indicating that the sensor data has been recorded or saved, and the reader can read it. . Alternatively, the tag can actively report the sensor data after acquiring the sensor data.
结合第一方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述方法还包括:所述标签确定允许所述读写器读取所述第一传感数据。With reference to the first aspect or any of the above possible implementation manners, in some other possible implementation manners, the method further includes: determining, by the tag, that the reader/writer is allowed to read the first sensing data.
结合第一方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述标签确定允许所述读写器读取所述第一传感数据,包括:所述标签确定以下条件中的至少一项被满足时,确定允许所述读写器读取第一传感数据:第一访问秘钥是访问所述第一传感数据的访问秘钥,所述第一命令包括所述第一访问秘钥;所述读写器和所述标签经过鉴权;以及所述存储空间被设置为允许读取。With reference to the first aspect or any of the above possible implementation manners, in other possible implementation manners, determining that the tag allows the reader to read the first sensing data includes: the tag determining the following When at least one of the conditions is satisfied, it is determined that the reader is allowed to read the first sensing data: the first access key is an access key for accessing the first sensing data, and the first command includes the first access key; the reader and the tag are authenticated; and the storage space is set to allow reading.
通过上述技术方案,可以对传感数据进行保护,只有满足权限要求才可进行传感数据的传输和读取,有助于增强传感数据的安全性。Through the above technical solution, the sensing data can be protected, and the sensing data can be transmitted and read only if the permission requirements are met, which helps to enhance the security of the sensing data.
结合第一方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述方法还包括:当第二传感数据的数值大于第一阈值、所述第二传感数据的数值小于第二阈值、或所述第二传感数据的数值大于所述第一阈值且小于所述第二阈值时,所述标签向所述读写器发送第五信息,所述第五信息包括第二指示信息和/或第二传感数据,所述第二指示信息用于指示所述第二传感数据异常。With reference to the first aspect or any of the above possible implementation manners, in some other possible implementation manners, the method further includes: when the value of the second sensing data is greater than the first threshold, the value of the second sensing data is When the value is less than the second threshold, or the value of the second sensing data is greater than the first threshold and less than the second threshold, the tag sends fifth information to the reader, the fifth information It includes second indication information and/or second sensing data, where the second indication information is used to indicate that the second sensing data is abnormal.
可选地,当第二传感数据的数值大于第一阈值、所述第二传感数据的数值小于第二阈值、或所述第二传感数据的数值大于所述第一阈值且小于所述第二阈值时,所述标签向所述读写器发送第五信息,所述标签确定第二传感数据异常,并向读写器发送第五信息。Optionally, when the value of the second sensing data is greater than the first threshold, the value of the second sensing data is less than the second threshold, or the value of the second sensing data is greater than the first threshold and less than the When the second threshold is exceeded, the tag sends fifth information to the reader/writer, the tag determines that the second sensing data is abnormal, and sends the fifth information to the reader/writer.
通过上述技术方案,可以实现异常传感数据的盘存和上报。Through the above technical solutions, the inventory and reporting of abnormal sensing data can be realized.
结合第一方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述方法还包括:所述标签接收来自所述读写器的所述第一阈值和/或所述第二阈值。With reference to the first aspect or any of the above possible implementation manners, in some other possible implementation manners, the method further includes: receiving, by the tag, the first threshold and/or the first threshold from the reader/writer second threshold.
第二方面,本申请提供了一种用于读取数据的方法,所述方法包括:读写器向标签发送第一命令,所述第一命令用于读取第一传感数据,所述第一命令中包括第一信息和/或第二信息,所述第一信息用于指示所述第一传感数据的存储空间,第二信息用于指示所述 第一传感数据的类型、第一传感器的标识和所述存储空间的起始位置中的至少一个,所述第一传感数据来自所述第一传感器;所述读写器接收来自所述标签的所述第一传感数据。In a second aspect, the present application provides a method for reading data, the method comprising: a reader/writer sending a first command to a tag, where the first command is used to read first sensing data, the The first command includes first information and/or second information, where the first information is used to indicate the storage space of the first sensing data, and the second information is used to indicate the type, At least one of the identification of the first sensor and the starting position of the storage space, the first sensing data comes from the first sensor; the reader receives the first sensing data from the tag data.
上述传感数据可以为来自传感器的数据。例如,来自温度传感器的温度数据、来自压力传感器的压力数据等。本申请对于传感器的类型不作具体限定,例如,传感器可以为温度传感器、压力传感器、湿度传感器等。The above-mentioned sensory data may be data from sensors. For example, temperature data from a temperature sensor, pressure data from a pressure sensor, etc. The application does not specifically limit the type of the sensor, for example, the sensor may be a temperature sensor, a pressure sensor, a humidity sensor, and the like.
在上述技术方案中,读写器通过向标签指示传感数据的存储空间和/或传感数据的类型和/或传感器标识,来指示需要读取的传感数据,使得标签在接收到相应指示后,可以根据获得的指示向读写器反馈相应的传感数据,这样可以实现读写器对标签中的传感器的数据的读取。In the above technical solution, the reader/writer indicates the sensor data to be read by indicating the storage space of the sensor data and/or the type of the sensor data and/or the sensor identifier to the tag, so that the tag receives the corresponding instruction Afterwards, the corresponding sensor data can be fed back to the reader according to the obtained instruction, so that the reader can read the data of the sensor in the tag.
结合第二方面,在一些可能的实现方式中,所述方法还包括:所述读写器接收来自所述标签的第一指示信息,所述第一指示信息用于指示所述标签中存储有传感数据,或所述第一指示信息包括第三传感数据。With reference to the second aspect, in some possible implementations, the method further includes: the reader/writer receiving first indication information from the tag, where the first indication information is used to indicate that the tag is stored with The sensory data, or the first indication information includes third sensory data.
也就是说,在读写器读取标签传感数据之前,标签可以先向读写器发送第一指示信息,指示已经有记录好或保存好的传感数据,读写器可以进行读取操作。或者,标签可以在获取到传感数据后,主动上报传感数据。That is to say, before the reader reads the sensor data of the tag, the tag can first send the first indication information to the reader, indicating that the sensor data has been recorded or saved, and the reader can read it. . Alternatively, the tag can actively report the sensor data after acquiring the sensor data.
结合第二方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述方法还包括:所述读写器接收来自所述标签的第五信息,所述第五信息包括第二指示信息和/或所述第二传感数据,所述第二指示信息用于指示所述第二传感数据异常,其中,所述第二传感数据的数值大于第一阈值、所述第二传感数据的数值小于第二阈值、或所述第二传感数据的数值大于所述第一阈值且小于所述第二阈值。With reference to the second aspect or any of the above possible implementation manners, in some other possible implementation manners, the method further includes: the reader/writer receiving fifth information from the tag, where the fifth information includes The second indication information and/or the second sensing data, the second indication information is used to indicate that the second sensing data is abnormal, wherein the value of the second sensing data is greater than the first threshold, the The value of the second sensing data is less than a second threshold, or the value of the second sensing data is greater than the first threshold and less than the second threshold.
结合第二方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述方法还包括:所述读写器向所述标签发送第一阈值和/或第二阈值,所述第一阈值和所述第二阈值用于确定第二传感数据是否异常。With reference to the second aspect or any of the above possible implementation manners, in some other possible implementation manners, the method further includes: the reader/writer sending the first threshold and/or the second threshold to the tag, where the The first threshold and the second threshold are used to determine whether the second sensing data is abnormal.
结合第二方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述存储空间为所述标签的内存的:第一存储区、第一字节区间、所述第一存储区的第一文档、所述第一文档的所述第一字节区间、或所述第一存储区的所述第一字节区间;或者,所述存储空间为所述标签的寄存器、缓存器或外部接口中的空间。With reference to the second aspect or any of the above possible implementation manners, in some other possible implementation manners, the storage space is the memory of the tag: a first storage area, a first byte interval, the first the first document of the storage area, the first byte interval of the first document, or the first byte interval of the first storage area; or, the storage space is the register of the tag, space in the buffer or external interface.
结合第二方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述存储空间为保留区、EPC区、TID区或用户区中的空间;或者,所述存储空间为新增的存储空间。In combination with the second aspect or any of the above possible implementation manners, in other possible implementation manners, the storage space is a space in a reserved area, an EPC area, a TID area or a user area; or, the storage space is Added storage space.
结合第二方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述第一命令还包括待读取的字节长度、待读取的记录的次数和待读取的周期数中的至少一个。In combination with the second aspect or any of the above possible implementations, in other possible implementations, the first command further includes the length of bytes to be read, the number of records to be read, and the number of records to be read. at least one of the number of cycles.
结合第二方面或上述任一种可能的实现方式,在另一些可能的实现方式中,所述方法还包括:所述读写器接收来自所述标签的第三信息,所述第三信息包括所述第一传感数据的时间戳、所述第一传感数据的记录或存储的时间、和已经记录的所述第一传感数据的周期数中的至少一个。With reference to the second aspect or any of the above possible implementation manners, in some other possible implementation manners, the method further includes: the reader/writer receiving third information from the tag, where the third information includes At least one of a time stamp of the first sensory data, a time of recording or storage of the first sensory data, and a number of cycles of the first sensory data that have been recorded.
第三方面,本申请提供了一种通信装置,该装置包括用于执行上述第一方面或第一方面的任意可能的实现方式中的方法的模块;或者,包括用于执行上述第二方面或第二方面的任意可能的实现方式中的方法的模块。In a third aspect, the present application provides a communication device, the device includes a module for executing the method in the first aspect or any possible implementation manner of the first aspect; or, includes a module for executing the second aspect or A module of the method in any possible implementation of the second aspect.
第四方面,本申请提供了一种通信装置,包括处理器。该处理器与存储器耦合,可用于执行存储器中的指令,以实现上述第一方面中任一种可能实现方式中的方法。可选地,该装置还包括存储器。可选地,该装置还包括通信接口,处理器与通信接口耦合。In a fourth aspect, the present application provides a communication device including a processor. The processor is coupled to the memory and can be used to execute instructions in the memory to implement the method in any one of the possible implementations of the first aspect above. Optionally, the apparatus further includes a memory. Optionally, the apparatus further includes a communication interface to which the processor is coupled.
在一种实现方式中,该装置为标签。当该装置为标签时,所述通信接口可以是收发器,或,输入/输出接口。In one implementation, the device is a tag. When the device is a tag, the communication interface may be a transceiver, or an input/output interface.
在另一种实现方式中,该装置为配置于标签中的芯片。当该装置为配置于标签中的芯片时,所述通信接口可以是输入/输出接口。In another implementation, the device is a chip configured in the tag. When the device is a chip configured in the tag, the communication interface may be an input/output interface.
可选地,所述收发器可以为收发电路。可选地,所述输入/输出接口可以为输入/输出电路。Optionally, the transceiver may be a transceiver circuit. Optionally, the input/output interface may be an input/output circuit.
第五方面,本申请提供了一种通信装置,包括处理器。该处理器与存储器耦合,可用于执行存储器中的指令,以实现上述第二方面中任一种可能实现方式中的方法。可选地,该装置还包括存储器。可选地,该装置还包括通信接口,处理器与通信接口耦合。In a fifth aspect, the present application provides a communication device including a processor. The processor is coupled to the memory and can be used to execute instructions in the memory to implement the method in any of the possible implementations of the second aspect above. Optionally, the apparatus further includes a memory. Optionally, the apparatus further includes a communication interface to which the processor is coupled.
在一种实现方式中,该装置为读写器。当该装置为读写器时,所述通信接口可以是收发器,或,输入/输出接口。In one implementation, the device is a reader/writer. When the device is a reader/writer, the communication interface may be a transceiver, or an input/output interface.
在另一种实现方式中,该装置为配置于读写器中的芯片。当该装置为配置于读写器中的芯片时,所述通信接口可以是输入/输出接口。In another implementation manner, the device is a chip configured in the reader/writer. When the device is a chip configured in the reader/writer, the communication interface may be an input/output interface.
可选地,所述收发器可以为收发电路。可选地,所述输入/输出接口可以为输入/输出电路。Optionally, the transceiver may be a transceiver circuit. Optionally, the input/output interface may be an input/output circuit.
第六方面,本申请提供了一种处理器,包括:输入电路、输出电路和处理电路。所述处理电路用于通过所述输入电路接收信号,并通过所述输出电路输出信号,使得所述处理器执行上述第一方面或第二方面中任一方面中的任一种可能实现方式中的方法。In a sixth aspect, the present application provides a processor, including: an input circuit, an output circuit, and a processing circuit. The processing circuit is configured to receive a signal through the input circuit and output a signal through the output circuit, so that the processor executes any one of the possible implementations of the first aspect or the second aspect. Methods.
在具体实现过程中,上述处理器可以为芯片,输入电路可以为输入管脚,输出电路可以为输出管脚,处理电路可以为晶体管、门电路、触发器和各种逻辑电路等。输入电路所接收的输入的信号可以是由例如但不限于接收器接收并输入的,输出电路所输出的信号可以是例如但不限于输出给发射器并由发射器发射的,且输入电路和输出电路可以是同一电路,该电路在不同的时刻分别用作输入电路和输出电路。本申请实施例对处理器及各种电路的具体实现方式不做限定。In a specific implementation process, the above-mentioned processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a flip-flop, and various logic circuits. The input signal received by the input circuit may be received and input by, for example, but not limited to, a receiver, the signal output by the output circuit may be, for example, but not limited to, output to and transmitted by a transmitter, and the input circuit and output The circuit can be the same circuit that acts as an input circuit and an output circuit at different times. The embodiments of the present application do not limit the specific implementation manners of the processor and various circuits.
第七方面,本申请提供了一种通信装置,包括处理器和存储器。该处理器用于读取存储器中存储的指令,并可通过接收器接收信号,通过发射器发射信号,以执行第一方面或第二方面中任一方面中的任一种可能实现方式中的方法。In a seventh aspect, the present application provides a communication device including a processor and a memory. The processor is configured to read instructions stored in the memory, and can receive signals through a receiver and transmit signals through a transmitter, so as to perform the method in any one of the possible implementations of the first aspect or the second aspect .
可选地,所述处理器为一个或多个,所述存储器为一个或多个。Optionally, there are one or more processors and one or more memories.
可选地,所述存储器可以与所述处理器集成在一起,或者所述存储器与处理器分离设置。Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
在具体实现过程中,存储器可以为非瞬时性(non-transitory)存储器,例如只读存储器(read only memory,ROM),其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型以及存储器与处理器的设置方式不做限定。In the specific implementation process, the memory can be a non-transitory memory, such as a read only memory (ROM), which can be integrated with the processor on the same chip, or can be separately set in different On the chip, the embodiment of the present application does not limit the type of the memory and the setting manner of the memory and the processor.
应理解,相关的数据交互过程例如发送指示信息可以为从处理器输出指示信息的过程,接收能力信息可以为处理器接收输入能力信息的过程。具体地,处理输出的数据可以 输出给发射器,处理器接收的输入数据可以来自接收器。其中,发射器和接收器可以统称为收发器。It should be understood that the relevant data interaction process, such as sending indication information, may be a process of outputting indication information from the processor, and receiving capability information may be a process of receiving input capability information by the processor. Specifically, the data output by the processing can be output to the transmitter, and the input data received by the processor can be from the receiver. Among them, the transmitter and the receiver may be collectively referred to as a transceiver.
上述第七方面中的装置可以是芯片,该处理器可以通过硬件来实现也可以通过软件来实现,当通过硬件实现时,该处理器可以是逻辑电路、集成电路等;当通过软件来实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器可以集成在处理器中,可以位于该处理器之外,独立存在。The device in the above seventh aspect may be a chip, and the processor may be implemented by hardware or software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc.; when implemented by software , the processor may be a general-purpose processor, and is implemented by reading software codes stored in a memory, which may be integrated in the processor or located outside the processor and exist independently.
第八方面,本申请提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序或指令,当该计算机程序或指令被执行时,实现上述第一方面或第二方面中任一方面中的任意可能的实现方式中的方法。In an eighth aspect, the present application provides a computer-readable storage medium, in which a computer program or instruction is stored, and when the computer program or instruction is executed, the above-mentioned first aspect or the second aspect is realized. A method in any possible implementation of any aspect.
第九方面,本申请提供了一种计算机程序产品,包含指令,当该指令被运行时,实现第一方面或第二方面中任一方面中的任意可能的实现方式中的方法。In a ninth aspect, the present application provides a computer program product comprising instructions that, when executed, implement the method of any possible implementation of any of the first or second aspects.
第十方面,本申请提供了一种RFID***,该RFID***包括上述任意一种标签和上述任意一种读写器。In a tenth aspect, the present application provides an RFID system, which includes any one of the above tags and any one of the above readers.
第十一方面,本申请提供了一种通信***,该通信***包括上述任意一种标签和上述任意一种读写器。In an eleventh aspect, the present application provides a communication system, which includes any one of the above tags and any one of the above readers.
附图说明Description of drawings
图1是可以应用本申请的实施例的通信***的架构示意图。FIG. 1 is a schematic diagram of the architecture of a communication system to which embodiments of the present application can be applied.
图2是标签和读写器在通信***中的几种部署方式的示意图。Figure 2 is a schematic diagram of several deployment modes of tags and readers in a communication system.
图3是传感数据占用的存储空间的一个示例。FIG. 3 is an example of storage space occupied by sensor data.
图4是传感数据占用的存储空间的另一个示例。FIG. 4 is another example of storage space occupied by sensory data.
图5是本申请的实施例提供的用于读取数据的方法的示意性流程图。FIG. 5 is a schematic flowchart of a method for reading data provided by an embodiment of the present application.
图6是本申请的另一实施例提供的用于读取数据的方法的示意性流程图。FIG. 6 is a schematic flowchart of a method for reading data provided by another embodiment of the present application.
图7是本申请的实施例提供的通信装置的结构示意图。FIG. 7 is a schematic structural diagram of a communication apparatus provided by an embodiment of the present application.
图8是本申请的实施例提供的通信装置的另一结构示意图。FIG. 8 is another schematic structural diagram of a communication apparatus provided by an embodiment of the present application.
具体实施方式Detailed ways
为了便于理解,下面给出与本申请相关的概念的说明。For ease of understanding, a description of concepts related to the present application is given below.
1、RFID技术1. RFID technology
RFID技术是自动识别技术的一种,通过无线射频方式进行非接触双向数据通信。RFID技术可以通过无线射频方式,实现读写器对标签的读写,从而达到识别目标和数据交换的目的。RFID technology is a kind of automatic identification technology, which conducts non-contact two-way data communication through radio frequency. RFID technology can realize the reading and writing of tags by readers through radio frequency, so as to achieve the purpose of identifying targets and data exchange.
RFID典型的应用场景有动物晶片、汽车晶片防盗器、门禁管制、停车场管制、生产线自动化、和物料管理等。Typical application scenarios of RFID include animal chips, car chip immobilizers, access control, parking lot control, production line automation, and material management.
2、RFID***2. RFID system
RFID***可以包括标签和读写器。RFID systems may include tags and readers.
标签也可以替换为应答设备、电子标签、RFID标签、射频标签、应答器、数据载体、记录媒体、射频卡、物联网设备等,为了方便描述,本申请统一称为标签。每个标签具有唯一的电子编码,可以附着在物体或设备上标识目标对象,高容量标签具有可写入的存储 空间。在本申请中,标签具有存储传感数据的存储空间。Tags can also be replaced by transponder devices, electronic tags, RFID tags, radio frequency tags, transponders, data carriers, recording media, radio frequency cards, IoT devices, etc. For convenience of description, this application is collectively referred to as tags. Each tag has a unique electronic code that can be attached to an object or device to identify the target object, and high-capacity tags have writable storage space. In the present application, the tag has storage space for storing sensory data.
读写器也可以替换为具备读和/或写功能的设备、读写设备、读出装置、扫描器、读头、通信器、阅读器、解读器等,为了方便描述,本申请统一称为读写器。读写器为读取标签信息和/或向标签写入信息的设备。The reader can also be replaced by a device with reading and/or writing functions, a reading and writing device, a reading device, a scanner, a reading head, a communicator, a reader, a reader, etc. For the convenience of description, this application is collectively referred to as reader. The reader/writer is a device that reads tag information and/or writes information to the tag.
3、RFID***的工作原理3. The working principle of RFID system
标签进入磁场后,接收读写器发出的射频信号,凭借感应电流所获得的能量发送出存储在芯片中的信息(对于无源标签或被动标签(passive tag))或者主动发送某一频率的信号发送出存储在芯片中的信息(对于有源标签或主动标签(active tag));读写器读取到来自标签的信息并解码后,送至信息处理***进行有关的数据处理。After the tag enters the magnetic field, it receives the radio frequency signal from the reader and sends the information stored in the chip (for passive tags or passive tags) or actively sends a signal of a certain frequency with the energy obtained by the induced current. Send out the information stored in the chip (for active tags or active tags); the reader reads and decodes the information from the tag, and sends it to the information processing system for related data processing.
4、传感数据4. Sensing data
传感数据可以为来自传感器的数据。例如,来自温度传感器的温度数据、来自压力传感器的压力数据等。为了方便描述,在本申请中将传感器的传感数据简称为传感数据。例如,每个传感器的传感数据可以简称为每个传感数据。又例如,多个传感器的传感数据可以简称为多个传感数据。The sensory data may be data from sensors. For example, temperature data from a temperature sensor, pressure data from a pressure sensor, etc. For the convenience of description, the sensing data of the sensor is simply referred to as sensing data in this application. For example, the sensing data of each sensor may be simply referred to as each sensing data. For another example, the sensing data of multiple sensors may be simply referred to as multiple sensing data.
在本申请中,标签可以从传感器获取并存储传感数据。其中,传感器与标签可以独立设置并通过相应通信接口进行数据传输,也可以集成在一起,对此不作具体限定。In the present application, the tag may acquire and store sensory data from the sensor. Wherein, the sensor and the label can be set independently and transmit data through the corresponding communication interface, or can be integrated together, which is not specifically limited.
此外,本申请对于传感器的类型也不作具体限定,即对传感数据的类型不作具体限定。例如,传感器可以为温度传感器、压力传感器、湿度传感器等。In addition, the present application does not specifically limit the type of sensor, that is, the type of sensing data is not specifically limited. For example, the sensor may be a temperature sensor, a pressure sensor, a humidity sensor, or the like.
下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in the present application will be described below with reference to the accompanying drawings.
本申请实施例的技术方案可以应用于各种通信***,例如,码分多址(code division multiple access,CDMA)***、长期演进(long term evolution,LTE)***、LTE频分双工(frequency division duplex,FDD)***、LTE时分双工(time division duplex,TDD)、通用移动通信***(universal mobile telecommunication system,UMTS)、全球互联微波接入(worldwide interoperability for microwave access,WiMAX)通信***、无线局域网(wireless local area network,WLAN)、第五代(5 th generation,5G)***或NR通信***、第六代(6 th generation,6G)移动通信***、卫星通信***、以及未来的移动通信***等。还可以应用于LTE和5G混合组网的***中,或者设备到设备(device-to-device,D2D)通信***、机器到机器(machine to machine,M2M)通信***、物联网(internet of things,IoT)、全双工***、接入回传***、中继***等。通信***可以为第三代合作伙伴计划(third generation partnership project,3GPP)通信***,也可以为非3GPP通信***,不予限制。 The technical solutions of the embodiments of the present application can be applied to various communication systems, for example, a code division multiple access (CDMA) system, a long term evolution (LTE) system, and an LTE frequency division duplex (frequency division duplex) system. duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, wireless local area network (wireless local area network, WLAN), fifth generation ( 5th generation, 5G) system or NR communication system, sixth generation ( 6th generation, 6G) mobile communication system, satellite communication system, and future mobile communication systems, etc. . It can also be applied to LTE and 5G hybrid networking systems, or device-to-device (D2D) communication systems, machine-to-machine (M2M) communication systems, internet of things (internet of things, IoT), full-duplex systems, access backhaul systems, relay systems, etc. The communication system may be a third generation partnership project (third generation partnership project, 3GPP) communication system or a non-3GPP communication system, which is not limited.
图1是可以应用本申请的实施例的通信***的架构示意图。FIG. 1 is a schematic diagram of the architecture of a communication system to which embodiments of the present application can be applied.
如图1所示,该通信***包括至少一个接入网设备(如图1中的110a、110b和110c),还可以包括至少一个终端(如图1中的120a),终端位于接入网设备提供的一个或多个小区(载波)的覆盖范围内。为终端服务的小区可以为一个或多个。当为终端的服务小区有多个时,终端可以按照载波聚合(carrier aggregation,CA)、双连接(dual connectivity,DC)或协作多点传输方式工作,其中,多个为终端的服务小区同时为终端提供无线资源。终端和终端之间以及接入网设备和接入网设备之间可以通过有线或无线的方式相互连接。图1只是示意图,该通信***中还可以包括其它网络设备,如还可以包括无线中继设备和 无线回传设备,在图1中未画出。As shown in FIG. 1, the communication system includes at least one access network device (110a, 110b and 110c in FIG. 1), and may also include at least one terminal (120a in FIG. 1), the terminal is located in the access network device Coverage of one or more cells (carriers) provided. There may be one or more cells serving the terminal. When there are multiple serving cells for the terminal, the terminal can work according to carrier aggregation (CA), dual connectivity (DC) or coordinated multipoint transmission, wherein the multiple serving cells for the terminal are simultaneously The terminal provides radio resources. Terminals and terminals and access network devices and access network devices may be connected to each other in a wired or wireless manner. Fig. 1 is only a schematic diagram, the communication system may also include other network devices, such as wireless relay devices and wireless backhaul devices, which are not shown in Fig. 1 .
图1中的接入网设备可以是基站(base station)、演进型基站(evolved NodeB,eNodeB)、发送接收点(transmission reception point,TRP)、无线网络控制器(radio network controller,RNC)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,home evolved NodeB,或home Node B,HNB)、基带单元(base band unit,BBU)、无线保真(wireless fidelity,Wifi)接入点(access point,AP)、5G移动通信***中的下一代基站(next generation NodeB,gNB)、6G移动通信***中的下一代基站、未来移动通信***中的基站或WiFi***中的接入节点等;也可以是完成基站部分功能的模块或单元,例如,可以是集中式单元(central unit,CU),也可以是分布式单元(distributed unit,DU)。接入网设备可以是宏基站(如图1中的110a),也可以是微基站、小基站、杆站、室内站等(如图1中的110b和110c),还可以是中继节点或施主节点等。本申请的实施例对接入网设备所采用的具体技术和具体设备形态不做限定。为了便于描述,下文中将接入网设备简称为网络设备,网络设备和基站两个术语可以互换。The access network equipment in Figure 1 can be a base station (base station), an evolved NodeB (eNodeB), a transmission reception point (TRP), a radio network controller (RNC), a base station Controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved NodeB, or home Node B, HNB), base band unit (base band unit, BBU), wireless security Wireless Fidelity (Wifi) access point (AP), next generation NodeB (gNB) in 5G mobile communication system, next generation base station in 6G mobile communication system, future mobile communication system A base station or an access node in a WiFi system, etc.; it can also be a module or unit that completes some functions of the base station, for example, it can be a centralized unit (central unit, CU) or a distributed unit (distributed unit, DU). The access network equipment can be a macro base station (110a in Figure 1), a micro base station, a small base station, a pole station, an indoor station, etc. (110b and 110c in Figure 1), or a relay node or Donor node, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the access network device. For the convenience of description, the access network device is hereinafter referred to as a network device for short, and the terms network device and base station are interchangeable.
图1中终端是指可以向用户提供语音和/或数据连通性的设备,终端可以通过上行链路(uplink,UL)或下行链路(downlink,DL)与网络设备进行空口通信,在UL方向上,终端可以向网络设备发送数据;在DL方向上,网络设备可以向终端发送控制信息,也可以向终端发送数据,即终端可以接收网络设备发送的控制信息和/或数据。其中,终端也可以称为终端设备、用户设备(user equipment,UE)、移动台、移动终端等。终端可以广泛应用于各种场景,例如,设备到设备(device-to-device,D2D)、V2X通信、MTC、IoT、虚拟现实(virtual reality,VR)、增强现实(augmented reality,AR)、工业控制(industrial control)、自动驾驶、远程医疗、智能电网(smart grid)、智能家具、智能办公、智能穿戴、智能交通、智慧城市(smart city)等。终端可以是手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、带无线收发功能的电脑、可穿戴设备、VR设备、AR设备、工业控制中的无线终端、自动驾驶中的无线终端、远程手术中的无线终端、智能电网中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市中的无线终端、智慧家庭(smart home)中的无线终端、车辆、无人机、直升机、飞机、轮船、机器人、机械臂、智能家居设备等。本申请的实施例对终端所采用的具体技术和具体设备形态不做限定。终端可以位于网络设备的小区覆盖范围内。The terminal in FIG. 1 refers to a device that can provide voice and/or data connectivity to the user. The terminal can communicate with network equipment through the uplink (uplink, UL) or downlink (downlink, DL) over the air interface. In the UL direction In the DL direction, the terminal can send data to the network device; in the DL direction, the network device can send control information to the terminal, and can also send data to the terminal, that is, the terminal can receive control information and/or data sent by the network device. The terminal may also be referred to as terminal equipment, user equipment (user equipment, UE), mobile station, mobile terminal, and the like. Terminals can be widely used in various scenarios, such as device-to-device (D2D), V2X communication, MTC, IoT, virtual reality (VR), augmented reality (AR), industrial Industrial control, autonomous driving, telemedicine, smart grid, smart furniture, smart office, smart wear, smart transportation, smart city, etc. The terminal can be a mobile phone, tablet computer, notebook computer, PDA, mobile internet device (MID), computer with wireless transceiver function, wearable device, VR device, AR device, wireless terminal in industrial control, automatic Wireless terminal in driving, wireless terminal in remote surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, vehicle , drones, helicopters, planes, ships, robots, robotic arms, smart home equipment, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal. The terminal may be located within the cell coverage of the network device.
本申请的实施例对网络设备和终端的应用场景不做限定。例如,网络设备和/或终端可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上;还可以部署在空中的飞机、气球和人造卫星上。The embodiments of the present application do not limit the application scenarios of network devices and terminals. For example, network equipment and/or terminals can be deployed on land, including indoors or outdoors, hand-held or vehicle-mounted; on water; and on aircraft, balloons, and satellites in the air.
需要指出的是,网络设备和终端的角色可以是相对的。例如,图1中的120a为无人机,且被配置成移动基站,通信***中的另一终端(图1中未示出,为了方便描述,称为120b)可以通过120a接入接入网设备110a,对于120b来说,120a是基站;但对于接入网设备110a来说,120a是终端,即接入网设备110a与120a之间是通过无线空口协议进行通信的。当然,接入网设备110a与120a之间也可以是通过基站与基站之间的接口协议进行通信的,此时,相对于接入网设备110a来说,120a也是基站。因此,接入网设备和终端都可以统一称为通信装置,图1中的110a、110b和110c可以称为具有基站功能的通信装置,图1中的120a以及这里提及的120b可以称为具有终端功能的通信装置。It should be pointed out that the roles of network devices and terminals may be relative. For example, 120a in FIG. 1 is an unmanned aerial vehicle, and is configured as a mobile base station. Another terminal in the communication system (not shown in FIG. 1, for convenience of description, referred to as 120b) can access the access network through 120a For the device 110a, for 120b, 120a is a base station; but for the access network device 110a, 120a is a terminal, that is, the access network devices 110a and 120a communicate through a wireless air interface protocol. Of course, communication between the access network devices 110a and 120a may also be performed through an interface protocol between the base station and the base station. In this case, relative to the access network device 110a, 120a is also a base station. Therefore, both the access network equipment and the terminal may be collectively referred to as communication devices, 110a, 110b and 110c in FIG. 1 may be referred to as communication devices with base station functions, and 120a in FIG. 1 and 120b mentioned here may be referred to as communication devices with Terminal-capable communication device.
在本申请的实施例中,网络设备和终端之间、网络设备和网络设备之间、终端和终端之间可以通过授权频谱进行通信,也可以通过免授权频谱进行通信,也可以同时通过授权频谱和免授权频谱进行通信。本申请的实施例即适用于低频场景(sub 6G),也适用于高频场景(6G以上)、太赫兹、光通信等。例如,网络设备和终端之间可以通过6千兆赫(gigahertz,GHz)以下的频谱进行通信,也可以通过6GHz以上的频谱进行通信,还可以同时使用6GHz以下的频谱和6GHz以上的频谱进行通信。本申请的实施例对通信所使用的频谱资源不做限定。In the embodiments of the present application, communication between network devices and terminals, between network devices and network devices, and between terminals and terminals can be performed through licensed spectrum, or through licensed spectrum, or simultaneously through licensed spectrum. Communicate with unlicensed spectrum. The embodiments of the present application are applicable to both low frequency scenarios (sub 6G) and high frequency scenarios (above 6G), terahertz, optical communication, and the like. For example, a network device and a terminal can communicate through a spectrum below 6 GHz (gigahertz, GHz), or communicate through a spectrum above 6 GHz, and can also communicate using a spectrum below 6 GHz and a spectrum above 6 GHz at the same time. The embodiments of the present application do not limit the spectrum resources used for communication.
在本申请的实施例中,网络设备的功能也可以由网络设备中的模块(如芯片)来执行,也可以由包含有网络设备功能的控制子***来执行。这里的包含有网络设备功能的控制子***可以是智能电网、工业控制、智能交通、智慧城市等上述终端的应用场景中的控制中心。终端的功能也可以由终端中的模块(如芯片或调制解调器)来执行,也可以由包含有终端功能的装置来执行。In the embodiment of the present application, the function of the network device may also be performed by a module (eg, a chip) in the network device, or may be performed by a control subsystem including the function of the network device. The control subsystem including the function of the network device here may be the control center in the application scenarios of the above-mentioned terminals such as smart grid, industrial control, intelligent transportation, and smart city. The functions of the terminal can also be performed by a module (such as a chip or a modem) in the terminal, and can also be performed by a device including the terminal functions.
本申请的实施例对于标签和读写器在通信***中的部署方式不作具体限定。例如,读写器和标签可以作为终端部署在通信***中,读写器和标签之间的通信可以看作旁链路(sidelink)通信。又例如,读写器可以作为接入网设备部署在通信***中(例如,读写器集成在接入网设备中或接入网设备具备读写器的功能等),标签可以作为终端部署在通信***中。The embodiments of the present application do not specifically limit the deployment manner of the tag and the reader/writer in the communication system. For example, the reader and the tag can be deployed in the communication system as a terminal, and the communication between the reader and the tag can be regarded as sidelink communication. For another example, the reader can be deployed in the communication system as an access network device (for example, the reader is integrated in the access network device or the access network device has the function of the reader, etc.), and the tag can be deployed as a terminal in the communication system. in the communication system.
图2是标签和读写器在通信***中的几种部署方式的示意图。Figure 2 is a schematic diagram of several deployment modes of tags and readers in a communication system.
对于基础覆盖场景,读写器可以作为接入网设备部署在通信***或者与接入网设备部署在一起,接入网设备可以读取标签中的信息和/或向标签写入信息。例如,图2中的宏站210a可以读取标签220a中的信息和/或向标签220a写入信息。又例如,图2中的杆站210c可以读取标签220c中的信息和/或向标签220c写入信息。或者,读写器可以作为终端部署在通信***或者与终端部署在一起。例如,图2中的读写器作为终端与杆站210c部署在一起,210c可以读取标签220c中的信息和/或向标签220c写入信息。For basic coverage scenarios, the reader can be deployed in the communication system as an access network device or together with the access network device, and the access network device can read the information in the tag and/or write information to the tag. For example, macro station 210a in FIG. 2 may read information from and/or write information to tag 220a. As another example, the pole station 210c in FIG. 2 may read information from and/or write information to the tag 220c. Alternatively, the reader/writer can be deployed as a terminal in the communication system or together with the terminal. For example, the reader in FIG. 2 is deployed as a terminal with pole station 210c that can read information from and/or write information to tag 220c.
对于补充覆盖场景,读写器可以作为终端部署在通信***中,读写器与接入网设备之间通过uu(UE-UTRAN)接口进行数据传输,即空口传输,读写器与标签之间可以看作旁链路通信。例如,图2中的宏站210b与读写器230b可以通过uu接口通信,读写器230b可以读取标签220b中的信息和/或向标签220b写入信息。又例如,图2杆站210d与读写器230d可以通过uu接口通信,读写器230d可以读取标签220d中的信息和/或向标签220d写入信息。又例如,图2杆站210e与读写器230e可以通过uu接口通信,读写器230e可以读取标签220e中的信息和/或向标签220e写入信息,若标签220e具备空口通信能力,标签220e也可以直接与杆站210e进行通信。For supplementary coverage scenarios, the reader can be deployed as a terminal in the communication system, and data transmission is performed between the reader and the access network equipment through the uu (UE-UTRAN) interface, that is, air interface transmission, between the reader and the tag It can be seen as side link communication. For example, the macro station 210b in FIG. 2 and the reader/writer 230b may communicate through a uu interface, and the reader/writer 230b may read information in the tag 220b and/or write information to the tag 220b. For another example, in FIG. 2, the pole station 210d and the reader/writer 230d may communicate through a uu interface, and the reader/writer 230d may read information in the tag 220d and/or write information to the tag 220d. For another example, in FIG. 2, the pole station 210e and the reader 230e can communicate through the uu interface, and the reader 230e can read the information in the tag 220e and/or write information to the tag 220e. If the tag 220e has the air interface communication capability, the tag 220e can 220e may also communicate directly with pole station 210e.
现有的RFID***可以通过无线射频方式,实现读写器对标签的读写。但是现有的RFID***尚未规定如何存储和读写传感数据。针对上述问题,本申请提供了用于读取数据的方法和装置,能够实现存储和读取传感数据。The existing RFID system can realize the reading and writing of the tag by the reader and writer by means of radio frequency. But existing RFID systems have not yet specified how to store and read and write sensor data. In view of the above problems, the present application provides a method and apparatus for reading data, which can realize the storage and reading of sensor data.
下面首先对本申请的实施例的传感数据的存储空间进行描述。The storage space of the sensing data in the embodiments of the present application is first described below.
在本申请中,标签支持存储至少一个传感器的传感数据。若标签支持存储多个传感器的传感数据,该多个传感器的类型可以相同,也可以不同,不予限制。In the present application, the tag supports the storage of sensory data of at least one sensor. If the tag supports storing the sensing data of multiple sensors, the types of the multiple sensors may be the same or different, which is not limited.
在一些实现方式中,每个传感数据可以占用单独的存储空间。例如,第一传感数据可 以占用第一存储区、第一字节区间、第一存储区的第一文档(file)、第一存储区的第一文档的第一字节区间、或第一存储区的第一字节区间等。需要说明的是,文档(file)也可以替换为文件等,本申请同一描述为文档。In some implementations, each sensory data may occupy a separate storage space. For example, the first sensory data may occupy the first storage area, the first byte interval, the first file of the first storage area, the first byte interval of the first file of the first storage area, or the first The first byte range of the storage area, etc. It should be noted that the document (file) may also be replaced by a file, etc., and the same description is referred to as a document in this application.
换句话说,传感数据可以与存储区一一对应,例如,第一传感数据对应于第一存储区。传感数据可以与字节区间一一对应,例如,第一传感数据对应于第一字节区间。传感数据可以与文档一一对应,例如,第一传感数据对应于第一存储区的第一文档。传感数据也可以与字节区间一一对应,例如,第一传感数据对应于第一存储区的第一文档的第一字节区间,或者对应于第一存储区的第一字节区间。若标签中包括多个存储区,读写器可以先为多个传感数据分配存储区,再进一步为多个传感数据分配不同的文档或字节区间。In other words, the sensing data may correspond to the storage areas one-to-one, for example, the first sensing data corresponds to the first storage area. The sensing data may be in one-to-one correspondence with byte intervals, for example, the first sensing data corresponds to the first byte interval. The sensory data may be in one-to-one correspondence with documents, for example, the first sensory data corresponds to the first document in the first storage area. The sensor data may also correspond to the byte interval one-to-one. For example, the first sensor data corresponds to the first byte interval of the first document in the first storage area, or corresponds to the first byte interval of the first storage area. . If the tag includes multiple storage areas, the reader can first allocate storage areas for multiple sensor data, and then further allocate different documents or byte ranges for multiple sensor data.
在本申请中,传感数据占用的存储空间可以是新增加的专门用于存储传感数据的空间,也可以是已有存储区中的存储空间,对此不作具体限定。In this application, the storage space occupied by the sensing data may be a newly added space dedicated to storing the sensing data, or may be a storage space in an existing storage area, which is not specifically limited.
下面结合具体的示例,对传感数据占用的存储空间进行描述。The storage space occupied by the sensor data will be described below with reference to specific examples.
图3是传感数据占用的存储空间的一个示例。FIG. 3 is an example of storage space occupied by sensor data.
在图3所示的示例中,通过新增加第一存储区来存储传感数据。如图3所示,标签的内存包括:保留区、EPC区、TID区、用户区、以及第一存储区。In the example shown in FIG. 3 , the sensing data is stored by newly adding the first storage area. As shown in FIG. 3 , the memory of the tag includes: a reserved area, an EPC area, a TID area, a user area, and a first storage area.
1)保留区1) Reserved area
保留区也称为保留存储区,用于存储kill(灭活)和access(访问)功能所需的密码。其中,存储地址00h到1Fh存储kill密码,20h到3Fh存储access密码。没有执行过kill和/或access密码的标签,可以看作具有零值的密码,并被永久的读/写锁定,在保留区里的密码存储区中不用保存零值的密码。The reserved area, also known as the reserved storage area, is used to store the passwords required for the kill (deactivation) and access (access) functions. Among them, the storage addresses 00h to 1Fh store the kill password, and 20h to 3Fh store the access password. A tag that has not executed the kill and/or access password can be regarded as a password with a zero value and is permanently read/write locked. The password storage area in the reserved area does not store a password with a zero value.
2)EPC区2) EPC area
EPC区也称为EPC存储区,用于存储EPC号码等。其中,存储地址00h到0Fh存储循环冗余码校验-16(cyclic redundancy check-16,CRC-16),10h到1Fh存储协议控制位(protocol control,PC),20h及其大于20h的存储地址存储用于识别标签附着对象的代码。The EPC area is also called the EPC storage area and is used to store EPC numbers and the like. Among them, storage addresses 00h to 0Fh store cyclic redundancy check-16 (cyclic redundancy check-16, CRC-16), 10h to 1Fh store protocol control bits (protocol control, PC), 20h and its storage addresses greater than 20h Stores the code used to identify what the label is attached to.
3)TID区3) TID area
TID区也称为TID存储区,用于存储标签识别码。其中,存储地址00h到07h存储一个8位的类识别码,07h以上的存储地址应包含充足的识别信息,使读写器能唯一识别标签所支持的定制命令和/或可选择性命令。The TID area, also known as the TID storage area, is used to store the tag identification code. Among them, storage addresses 00h to 07h store an 8-bit class identification code, and storage addresses above 07h should contain sufficient identification information so that the reader can uniquely identify the custom commands and/or optional commands supported by the tag.
4)用户区4) User area
用户区也称为用户存储区,用于存储用户定义的数据。用户区的存储组织结构可以由用户定义。The user area, also known as the user memory area, is used to store user-defined data. The storage organization structure of the user area can be defined by the user.
需要说明的是,保留区、EPC区、TID区、和用户区的更详细的描述可以参考现有技术,在此不再赘述。It should be noted that, for a more detailed description of the reserved area, the EPC area, the TID area, and the user area, reference may be made to the prior art, which will not be repeated here.
5)第一存储区5) The first storage area
第一存储区为新增加的存储区,用于存储传感数据。每个传感数据可以单独占用一个文档(file),也可以占用固定的字节区间,还可以多个传感数据共占用一个文档的不同字节区间。The first storage area is a newly added storage area for storing sensing data. Each sensor data may occupy a single file (file) alone, or may occupy a fixed byte range, or multiple sensor data may occupy different byte ranges of a document.
例如,如图3的(a)图所示,传感器0的传感数据占用第一存储区的第0文档,以 此类推,传感器n的传感数据占用第一存储器的第n文档。For example, as shown in (a) of Figure 3, the sensing data of sensor 0 occupies the 0th file in the first storage area, and so on, the sensing data of sensor n occupies the nth file in the first storage area.
又例如,如图3的(b)图所示,传感器0的传感数据占用第一存储区的字节区间[15:0],传感器1的传感数据占用第一存储区的字节区间[31:16],以此类推。For another example, as shown in (b) of FIG. 3 , the sensing data of sensor 0 occupies the byte interval [15:0] of the first storage area, and the sensing data of sensor 1 occupies the byte interval of the first storage area [31:16], and so on.
本申请的实施例对于第一存储区间在实现时的名称不作具体限定。例如,可以称为传感器、senser、sensor、或data等。The embodiments of the present application do not specifically limit the name of the first storage interval during implementation. For example, it may be called sensor, sensor, sensor, or data, etc.
图4是传感数据占用的存储空间的另一个示例。FIG. 4 is another example of storage space occupied by sensory data.
如图4所示,标签的内存包括:保留区、EPC区、TID区、以及用户区。关于保留区、EPC区、TID区、以及用户区的描述可以图3部分的描述,在此不再赘述。与图3不同的是,在图4所示的示例中,通过占用已有存储区的存储空间来存储传感数据,例如,占用保留区、EPC区、TID区、用户区中的一个或多个。As shown in Figure 4, the memory of the tag includes: a reserved area, an EPC area, a TID area, and a user area. The description about the reserved area, the EPC area, the TID area, and the user area can be described in the part of FIG. 3 , and will not be repeated here. Different from Fig. 3, in the example shown in Fig. 4, the sensor data is stored by occupying the storage space of the existing storage area, for example, occupying one or more of the reserved area, the EPC area, the TID area, and the user area. indivual.
以占用用户区为例,不同传感数据可以占用用户区的不同文档、用户区的一个文档的不同字节区间、或者用户区的多个文档的不同字节区间。Taking the occupation of the user area as an example, different sensor data may occupy different documents in the user area, different byte intervals of a document in the user area, or different byte intervals of multiple documents in the user area.
例如,如图4的(a)图所示,传感器0的传感数据占用用户区的第i文档,传感器1的传感数据占用用户区的第i+1文档,其中i为非负整数。For example, as shown in (a) of Figure 4, the sensing data of sensor 0 occupies the i-th document in the user area, and the sensing data of sensor 1 occupies the i+1-th document in the user area, where i is a non-negative integer.
例如,如图4的(b)图所示,多个传感数据占用用户区的第i文档,传感器0的传感数据占用第i文档的字节区间[15:0],传感器1的传感数据占用第i文档的字节区间[31:16],以此类推,其中i为非负整数。For example, as shown in (b) of Figure 4, multiple sensor data occupy the i-th file in the user area, the sensor data of sensor 0 occupy the byte interval [15:0] of the i-th file, and the sensor data of sensor 1 The sense data occupies the byte interval [31:16] of the i-th document, and so on, where i is a non-negative integer.
在另一些实现方式中,每个存储区可以是以字节为单位即8比特,则图3和图4中第一个字节区间可以为00—07。In other implementation manners, each storage area may be in units of bytes, that is, 8 bits, and the first byte interval in FIG. 3 and FIG. 4 may be 00-07.
在另一些实现方式中,传感数据还可以被存储在未被定义的存储空间,在这类存储空间存储的数据通常只在上电的时候可以保存,一旦断电,数据就会丢失。例如,传感数据可以被存储在寄存器、缓存器或者其他外部接口之中。在该实现方式中,每个传感数据可以占用单独的存储空间。例如,不同的传感数据可以占用不同的字节区间。In other implementations, the sensor data can also be stored in an undefined storage space. The data stored in this type of storage space can usually only be saved when the power is turned on. Once the power is turned off, the data will be lost. For example, sensory data may be stored in registers, buffers, or other external interfaces. In this implementation, each sensing data may occupy a separate storage space. For example, different sensor data can occupy different byte intervals.
下面对本申请的实施例的传感数据的读写流程进行描述。The following describes the process of reading and writing sensor data in the embodiments of the present application.
图5是本申请的实施例提供的用于读取数据的方法的示意性流程图。图5所示的方法可以由读写器和标签实现,也可以由读写器和标签中的模块或单元实现(例如,芯片、电路、片上***(system on chip,SOC)等)。图5中以执行主体为读写器和标签为例进行描述。图5中的方法可以包括以下内容的至少部分内容。FIG. 5 is a schematic flowchart of a method for reading data provided by an embodiment of the present application. The method shown in FIG. 5 may be implemented by a reader/writer and a tag, or may be implemented by a module or unit (eg, a chip, a circuit, a system on chip (SOC), etc.) in the reader/writer and the tag. In FIG. 5, the execution subject is a reader and a tag as an example for description. The method of FIG. 5 may include at least some of the following.
步骤510,读写器向标签发送第一命令。相应地,标签接收来自读写器的第一命令。其中,第一命令用于读取第一传感数据。Step 510, the reader/writer sends a first command to the tag. Accordingly, the tag receives the first command from the reader. Wherein, the first command is used to read the first sensing data.
也就是说,当读写器想要读取标签的传感数据时,可以通过向标签发送第一命令来获取相应的传感数据。此时标签可以处于开放状态(open)或者安全状态(secured)或者处于连接态,如无线资源控制(radio resource control,RRC)连接态。That is, when the reader/writer wants to read the sensing data of the tag, it can acquire the corresponding sensing data by sending the first command to the tag. At this time, the tag can be in an open state (open), a secure state (secured), or a connected state, such as a radio resource control (radio resource control, RRC) connected state.
可选地,第一命令可以是选择命令(select)、查询命令(query)、读取命令(read)或者其他命令,不予限制。Optionally, the first command may be a selection command (select), a query command (query), a read command (read) or other commands, which are not limited.
在一些实现方式中,第一命令中包括第一信息,第一信息用于指示存储第一传感数据的存储空间。示例性地,若第一传感数据保存在标签的内存中,第一命令可以包括第一信息。In some implementations, the first command includes first information, where the first information is used to indicate a storage space for storing the first sensing data. Exemplarily, if the first sensing data is stored in the memory of the tag, the first command may include the first information.
可选地,第一信息包括存储第一传感数据的存储空间的位置信息。例如,若传感数据 占用存储区,该位置信息可以包括存储区标识。又例如,若每个传感数据占用单独的字节区间,该位置信息可以包括存储区的起始位置、读取字节长度和终止位置中的至少两个;或者,若标签和读写器已经约定好每次读取的长度,该位置信息可以包括起始位置和/终止位置;或者,该位置信息可以包括字节区间的起始位置、读取长度和终止位置中的至少两个、以及存储区标识和文档标识;或者,该位置信息可以包括字节区间的起始位置、读取长度和终止位置中的至少两个、以及存储区标识。又例如,若每个传感数据占用单独的文档,该位置信息可以为存储区标识和文档标识。Optionally, the first information includes location information of a storage space where the first sensing data is stored. For example, if the sensory data occupies a storage area, the location information may include a storage area identification. For another example, if each sensing data occupies a separate byte interval, the location information may include at least two of the starting position of the storage area, the read byte length and the ending position; or, if the tag and the reader/writer The length of each read has been agreed, and the position information may include the start position and/or end position; or, the position information may include at least two of the start position, read length, and end position of the byte interval, and a storage area identification and a document identification; or, the location information may include at least two of a start position, a read length and an end position of a byte interval, and a storage area identification. For another example, if each sensing data occupies a separate document, the location information may be a storage area identification and a document identification.
上述存储区标识可以为存储区的名称,例如,用户区、保留区、EPC区、TID区、或第一存储器区等。The above-mentioned storage area identifier may be a name of a storage area, for example, a user area, a reserved area, an EPC area, a TID area, or a first memory area, and the like.
在另一些实现方式中,第一命令中包括第二信息,第二信息用于指示第一传感数据的类型、第一传感器的标识、传感数据类型的标识和第一传感数据的存储空间的起始位置中的至少一个,第一传感数据为来自第一传感器的数据。传感数据的类型具体可以包括温度传感数据、湿度传感数据等等。In other implementation manners, the first command includes second information, where the second information is used to indicate the type of the first sensing data, the identification of the first sensor, the identification of the type of sensing data, and the storage of the first sensing data At least one of the starting positions of the space, the first sensory data is data from the first sensor. The types of sensing data may specifically include temperature sensing data, humidity sensing data, and the like.
可选地,每次读取的传感数据的数据长度可以约定为固定值,例如,约定读取最近的n次记录、约定每次读取k个字节、或者约定读取m个数据等,n、m和k为大于0的整数,其中,每个记录的字节数和每个数据的数据长度可以约定为固定值,例如8字节或者16字节等。Optionally, the data length of the sensing data read each time can be agreed to be a fixed value, for example, it is agreed to read the latest n records, it is agreed to read k bytes each time, or it is agreed to read m data, etc. , n, m, and k are integers greater than 0, wherein the number of bytes of each record and the data length of each data can be agreed as fixed values, such as 8 bytes or 16 bytes.
可选地,可以在第二信息中携带读取的数据长度或者数据记录数,例如,第二信息可以进一步指示读取最近的n次记录、读取k个字节等,n和k为大于0的整数,其中,每个记录的字节数可以约定为固定值,例如8字节或者16字节等。Optionally, the read data length or the number of data records may be carried in the second information. For example, the second information may further indicate to read the latest n records, read k bytes, etc., where n and k are greater than An integer of 0, where the number of bytes in each record can be agreed to a fixed value, such as 8 bytes or 16 bytes.
在一些实现方式中,第一命令还可以包括待读取的字节长度、待读取的记录的次数和待读取的周期数中的至少一个。也就是说,由读写器告知标签需要读取的传感数据的数据长度。例如,读写器通过第一命令告知标签读取k个字节、最近的n次记录、或m个数据等,n、m和k为大于0的整数,其中,每个记录的字节数和每个数据的数据长度可以约定为固定值,例如8比特或者16比特等。In some implementations, the first command may further include at least one of the length of bytes to be read, the number of records to be read, and the number of cycles to be read. That is to say, the data length of the sensing data that the tag needs to be read is informed by the reader/writer. For example, the reader tells the tag to read k bytes, the latest n records, or m data through the first command, where n, m and k are integers greater than 0, where the number of bytes in each record is And the data length of each data can be agreed to a fixed value, such as 8 bits or 16 bits.
在一些实现方式中,第一命令包括第四信息,第四信息用于指示标签周期性上报传感数据,具体地,第四信息包括上报周期。In some implementation manners, the first command includes fourth information, and the fourth information is used to instruct the tag to periodically report the sensing data. Specifically, the fourth information includes a reporting period.
示例性地,若第一传感数据保存在标签的未被定义的存储空间中,例如存储在寄存器、缓存器或外部接口中。此时第一命令可以不包括第一信息,包含第二消息等等。Exemplarily, if the first sensing data is stored in an undefined storage space of the tag, for example, stored in a register, a buffer or an external interface. At this time, the first command may not include the first information, but may include the second message and so on.
步骤520,标签根据第一命令,向读写器发送第一传感数据。相应地,读写器接收来自标签的第一传感数据。Step 520, the tag sends the first sensing data to the reader according to the first command. Accordingly, the reader/writer receives the first sensing data from the tag.
在一些实现方式中,标签在接收到第一命令后,根据第一命令获取第一传感数据。若获取到读写器要求的第一传感数据,则标签向读写器返回第一传感数据。若无法向读写器返回有效的传感数据,则标签可以向读写器返回一个错误代码,用于指示无法正常返回传感数据,或者标签不响应第一命令,或者标签跳转到其他状态。In some implementations, after receiving the first command, the tag acquires the first sensing data according to the first command. If the first sensing data required by the reader/writer is obtained, the tag returns the first sensing data to the reader/writer. If it cannot return valid sensing data to the reader, the tag can return an error code to the reader to indicate that the sensing data cannot be returned normally, or the tag does not respond to the first command, or the tag jumps to other states .
在一些实现方式中,标签在接收到第一命令后,除了向读写器返回第一传感数据之外,还可以向读写器返回第三信息。第三信息可以包括时间信息,具体可以为时间戳信息,例如反馈传感数据记录的时间,如xx年xx月xx日,xx时xx分;还可以为保存时间信息,例如,收到记录数据到发送时保存的时间等。第三信息可以为已经记录的第一传感数据的 周期数或数据量等。可选地,第三信息还可以包括第一传感数据的标识信息等。In some implementations, after receiving the first command, in addition to returning the first sensing data to the reader, the tag may also return third information to the reader. The third information may include time information, specifically time stamp information, such as the time when the sensory data is fed back, such as xx, xx, xx, xx, xx, xx; it can also be saving time information, such as receiving recorded data to the time saved at the time of sending, etc. The third information may be the number of cycles or the amount of data of the first sensing data that has been recorded. Optionally, the third information may further include identification information and the like of the first sensing data.
可选地,图5所示的方法还可以包括步骤530。Optionally, the method shown in FIG. 5 may further include step 530 .
步骤530,标签向读写器发送第一指示信息。相应地,读写器接收来自标签的第一指示信息。其中,第一指示信息用于指示标签中存储有传感数据。Step 530, the tag sends the first indication information to the reader. Accordingly, the reader/writer receives the first indication information from the tag. The first indication information is used to indicate that sensor data is stored in the tag.
示例性地,在步骤510之前执行步骤530。也就是说,在读写器读取标签传感数据之前,标签可以先向读写器发送第一指示信息,指示已经有记录好或保存好的传感数据,读写器可以进行读取操作。Illustratively, step 530 is performed before step 510 . That is to say, before the reader reads the sensor data of the tag, the tag can first send the first indication information to the reader, indicating that the sensor data has been recorded or saved, and the reader can read it. .
在一些实现方式中,读写器指示标签上报存储的数据量,比如字节数,或者指示标签上报存储的记录的数量,则读写器收到后,可以进一步指示标签上报具体记录的数据,比如时间最近的一次,也可以按照时间顺序指示次数n,标签则上报最近储存的n次数据;标签收到该指示后可以进行相应的反馈,即向读写器发送至第一指示信息,反馈存储的传感数据的情况;读写器接收到第一指示信息后,可以发送第一命令,读取第一传感数据。In some implementations, the reader/writer instructs the tag to report the amount of stored data, such as the number of bytes, or instructs the tag to report the number of stored records, then after receiving it, the reader may further instruct the tag to report the specific record data, For example, for the latest time, the number of times n can also be indicated in chronological order, and the tag reports the latest n times of data; after receiving the instruction, the tag can give corresponding feedback, that is, send the first instruction information to the reader, feedback The situation of the stored sensor data; after receiving the first indication information, the reader can send the first command to read the first sensor data.
在另一些实现方式中,第一指示信息也可以直接携带传感数据。In other implementation manners, the first indication information may also directly carry sensor data.
可选地,图5所示的方法还可以包括步骤540。Optionally, the method shown in FIG. 5 may further include step 540 .
步骤540,标签确定允许读写器读取第一传感数据。Step 540, the tag determines that the reader is allowed to read the first sensing data.
也就是说,在确定允许读写器读取第一传感数据时,标签才会向读写器发送第一传感数据。在确定不允许读写器读取第一传感数据时,标签可以返回错误代码、不响应、或者跳转到其他状态,不予限制。That is to say, when it is determined that the reader/writer is allowed to read the first sensing data, the tag will only send the first sensing data to the reader/writer. When it is determined that the reader is not allowed to read the first sensing data, the tag may return an error code, not respond, or jump to other states, without limitation.
在本申请的实施例中,可以针对传感器、传感数据的类型或存储空间设置权限,只有具备相应读取权限的读写器或者命令才能获取传感数据。In the embodiments of the present application, permissions may be set for sensors, types of sensing data, or storage space, and only readers or commands with corresponding read permissions can acquire sensing data.
在一些实现方式中,每个传感数据的访问具有独立的访问秘钥,只有发送正确的访问秘钥的读写器才可以获取相应传感数据。也就是说,当读写器提供的第一访问秘钥是访问第一传感数据的访问秘钥时,标签确定允许读写器读取第一传感数据。In some implementations, each sensing data access has an independent access key, and only the reader/writer that sends the correct access key can obtain the corresponding sensing data. That is, when the first access key provided by the reader/writer is the access key for accessing the first sensing data, the tag determines to allow the reader/writer to read the first sensing data.
可选地,读写器可以在第一命令中携带第一访问秘钥。Optionally, the reader/writer may carry the first access key in the first command.
可选地,读写器也可以在其他命令或信息中携带第一访问秘钥。Optionally, the reader/writer may also carry the first access key in other commands or information.
在另一些实现方式中,可以对读写器和标签进行鉴权,经过鉴权后的读写器和标签才可以进行传感数据的读取和传输。也就是说,当读写器和标签是鉴权后的读写器和标签时,标签确定允许读写器读取第一传感数据。通过该方式可以简化权限管理。In other implementation manners, the reader and tag can be authenticated, and the reader and tag after authentication can read and transmit sensing data. That is, when the reader-writer and the tag are authenticated readers and tags, the tag determines that the reader-writer is allowed to read the first sensing data. In this way, rights management can be simplified.
在另一些实现方式中,可以为每个传感数据的存储空间设置信令权限,在特定权限内,只允许读写器使用部分命令,其他命令不能接入。例如,可以设置存储某个传感数据的存储空间仅允许读取和/或写入。也就是说,当第一传感数据的存储空间被设置为允许读取时,标签确定允许读写器读取第一传感数据。In other implementations, a signaling authority may be set for the storage space of each sensing data, and within a specific authority, only some commands are allowed to be used by the reader, and other commands cannot be accessed. For example, a storage space that stores certain sensor data can be set to allow only reading and/or writing. That is, when the storage space of the first sensing data is set to allow reading, the tag determines that the reader/writer is allowed to read the first sensing data.
可选地,存储空间的信令权限可以被读写器修改。Optionally, the signaling authority of the storage space can be modified by the reader.
图6是本申请的另一实施例提供的用于读取数据的方法的示意性流程图。如图6所示的方法可以包括以下内容的至少部分内容。FIG. 6 is a schematic flowchart of a method for reading data provided by another embodiment of the present application. The method shown in FIG. 6 may include at least part of the following.
步骤610,读写器向标签发送第二命令。相应地,标签接收来自读写器的第二命令。Step 610, the reader/writer sends a second command to the tag. Accordingly, the tag receives the second command from the reader.
可选地,第二命令可以为上述第一命令或其他命令,不予限制。Optionally, the second command may be the above-mentioned first command or other commands, which is not limited.
在一些实现方式中,第二命令可以包括第六信息和/或第七信息、以及条件信息。其中,第六信息用于指示存储第二传感数据的存储空间,第七信息用于指示第二传感数据的 类型或第二传感器标识,第二传感数据为来自第二传感器的数据,第六信息和第七信息的实现方式可以参考第一信息和第二信息,在此不再赘述。条件信息用于指示上报第二指示信息和/或第二传感数据所需满足的条件,这里的第二指示信息可以用于指示第二传感数据出现异常。In some implementations, the second command may include sixth information and/or seventh information, and condition information. Wherein, the sixth information is used to indicate the storage space for storing the second sensing data, the seventh information is used to indicate the type of the second sensing data or the identification of the second sensor, and the second sensing data is data from the second sensor, For the implementation manner of the sixth information and the seventh information, reference may be made to the first information and the second information, which will not be repeated here. The condition information is used to indicate a condition that needs to be satisfied to report the second indication information and/or the second sensing data, and the second indication information here may be used to indicate that the second sensing data is abnormal.
作为一个示例,条件信息可以包括阈值信息,阈值信息用于确定第二传感数据是否异常。例如,阈值信息包括第一阈值,表示第二传感数据的数值大于第一阈值的标签发送第二指示信息和/或第二传感数据。又例如,阈值信息包括第二阈值,表示第二传感数据的数值小于第二阈值的标签发送第二指示信息和/或第二传感数据。又例如,阈值信息包括第一阈值和第二阈值,表示第二传感数据的数值大于第一阈值且小于第二阈值的标签发送第二指示信息和/或第二传感数据。As an example, the condition information may include threshold information, which is used to determine whether the second sensing data is abnormal. For example, the threshold value information includes a first threshold value, and a tag indicating that the value of the second sensing data is greater than the first threshold value sends the second indication information and/or the second sensing data. For another example, the threshold value information includes a second threshold value, indicating that a tag whose value of the second sensing data is smaller than the second threshold value sends the second indication information and/or the second sensing data. For another example, the threshold value information includes a first threshold value and a second threshold value, indicating that a tag whose value of the second sensing data is greater than the first threshold value and less than the second threshold value sends the second indication information and/or the second sensing data.
作为另一个示例,条件信息可以指示标签需满足的条件,满足条件的标签进行接入,并上报传感数据和/或第二指示信息。例如,条件信息可以指示标签的标识中包含的特定比特且具备传感功能的标签可以上报传感数据和/或第二指示信息。一种具体的实现方式为第二命令中包含该特定比特、以及传感数据上报指示,以便匹配该条件的标签发起接入,等待接入成功后并向读写器发送传感数据和/或第二指示信息,或者匹配该条件的标签直接发送传感数据和/或第二指示信息。As another example, the condition information may indicate a condition that the tag needs to meet, and the tag that satisfies the condition accesses and reports sensing data and/or second indication information. For example, the condition information may indicate specific bits included in the identification of the tag, and the tag with sensing function may report sensing data and/or second indication information. A specific implementation is that the second command includes the specific bit and the sensor data reporting indication, so that the tag matching the condition initiates access, and after the access is successful, the sensor data and/or the reader is sent to the reader. The second indication information, or the tag matching the condition directly sends the sensing data and/or the second indication information.
步骤620,标签根据第二命令,向读写器发送第五信息。相应地,读写器接收来自标签的第五信息。Step 620, the tag sends fifth information to the reader according to the second command. Accordingly, the reader/writer receives the fifth information from the tag.
其中,第五信息包括第二指示信息和/或第二传感数据。第二传感数据满足上述条件信息所指示的条件。Wherein, the fifth information includes second indication information and/or second sensing data. The second sensing data satisfies the condition indicated by the above condition information.
在一些实现方式中,在接收到第二命令后,标签确定是否满足条件信息所指示的条件。若确定满足条件信息所指示的条件,标签向读写器发送第五信息。In some implementations, after receiving the second command, the tag determines whether the condition indicated by the condition information is satisfied. If it is determined that the condition indicated by the condition information is satisfied, the tag sends fifth information to the reader.
作为一个示例,标签根据第二命令中的阈值信息,确定第二传感数据是否异常。例如,标签在第二传感数据的数值大于第一阈值时,确定第二传感数据异常。又例如,标签在第二传感数据的数值小于第二阈值时,确定第二传感数据异常。又例如,标签在第二传感数据的数值大于第一阈值且小于第二阈值时,确定第二传感数据异常。这里的第二传感数据可以是最近一次或者n次的记录。As an example, the tag determines whether the second sensing data is abnormal according to the threshold information in the second command. For example, when the value of the second sensing data is greater than the first threshold, the tag determines that the second sensing data is abnormal. For another example, when the value of the second sensing data is smaller than the second threshold, the tag determines that the second sensing data is abnormal. For another example, the tag determines that the second sensing data is abnormal when the value of the second sensing data is greater than the first threshold and less than the second threshold. The second sensing data here may be the most recent or n-time records.
作为另一个示例,标签根据第二命令中的标签需满足的条件,确定标签是否匹配该条件。例如,标签在该标签的标识中包含的特定比特且具备传感功能时,确定标签匹配该条件,向读写器发送第五信息。标签可以等待接入成功后向读写器发送第五信息,也可以直接发送第五信息。As another example, the tag determines whether the tag matches the condition according to the condition that the tag in the second command needs to meet. For example, when the tag has a specific bit included in the tag's identification and has a sensing function, it is determined that the tag matches the condition, and the fifth information is sent to the reader. The tag can send the fifth information to the reader after the access is successful, or can directly send the fifth information.
若第二命令中没有包含阈值信息,可以使用默认的阈值,如第一阈值或者第二阈值。则当标签收到第二命令时,可以激活告警流程,通过与默认阈值比较判断是否上报。具体的,上报也可以为周期上报或者读写器配置上报最大次数,在最大次数内以固定周期进行上报直到达到最大次数或者读写器指示停止告警流程。If the second command does not contain threshold information, a default threshold, such as the first threshold or the second threshold, may be used. Then, when the tag receives the second command, it can activate the alarm process, and judge whether to report by comparing with the default threshold. Specifically, the reporting may also be periodic reporting or the reader configures the maximum number of reports, and within the maximum number of times, the reporting is performed at a fixed period until the maximum number is reached or the reader instructs the reader to stop the alarm process.
可选地,第五信息可以只有1比特用于指示存在异常数据。Optionally, the fifth information may have only 1 bit for indicating the existence of abnormal data.
可选地,第五信息也可以包括传感数据的类型和异常指示,异常指示用于指示存在异常数据。Optionally, the fifth information may also include the type of the sensing data and an abnormality indication, where the abnormality indication is used to indicate that abnormal data exists.
可选地,第五信息可以与EPC一起发送,或者在标签的接入过程中与随机数或者标 签标识一起进行上报,上报方式不限。Optionally, the fifth information can be sent together with the EPC, or reported together with the random number or the label identifier during the access process of the label, and the reporting method is not limited.
此外,若标签上报第五信息后若出现碰撞,则读写器发送信令,初始化新一轮标签接入。In addition, if a collision occurs after the tag reports the fifth information, the reader will send signaling to initiate a new round of tag access.
在另一些实现方式中,可以由标签主动发送第五信息。In other implementations, the fifth information may be actively sent by the tag.
示例性地,可以在标签中为每个传感数据预配置阈值信息,标签根据预配置的阈值信息,确定传感数据是否异常。该预配置的阈值信息可以保存在内存中,如上文中5个存储区中。阈值信息可以是读写器、核心网设备或者服务器向标签分配的。当标签判断传感数据存在异常时可以触发主动上报,上报方式可以参考步骤620的描述,在此不再赘述。Exemplarily, threshold information may be preconfigured in the tag for each sensing data, and the tag determines whether the sensing data is abnormal according to the preconfigured threshold information. The preconfigured threshold information can be stored in the memory, such as the five storage areas above. The threshold information can be assigned to the tag by the reader, core network device or server. When the tag determines that the sensor data is abnormal, it can trigger an active report, and the report method can refer to the description of step 620, which will not be repeated here.
需要说明的是,在一些实现方式中,第二命令可以为第一命令,第一传感数据可以为第二传感数据,第一信息可以为第六信息,第二信息可以为第七信息。It should be noted that, in some implementation manners, the second command may be the first command, the first sensing data may be the second sensing data, the first information may be the sixth information, and the second information may be the seventh information .
可以理解的是,为了实现上述实施例中功能,标签和读写器包括了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本申请中所公开的实施例描述的各示例的单元及方法步骤,本申请能够以硬件或硬件和计算机软件相结合的形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用场景和设计约束条件。It can be understood that, in order to implement the functions in the above embodiments, the tag and the reader/writer include corresponding hardware structures and/or software modules for performing each function. Those skilled in the art should easily realize that the units and method steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software-driven hardware depends on the specific application scenarios and design constraints of the technical solution.
需要说明的是,读写器发送的命令,可以是读写器确定的,也可以是从核心网设备或者服务器设备获取并发送给标签的。It should be noted that the command sent by the reader/writer may be determined by the reader/writer, or may be obtained from the core network device or the server device and sent to the tag.
需要说明的是,若标签从读写器收到第一命令或者第二命令时,若标签没有传感数据可以发送至读写器,则可以发送一条指示信息,用于指示无数据可上报或错误指示。It should be noted that when the tag receives the first command or the second command from the reader, if the tag has no sensor data that can be sent to the reader, an indication message can be sent to indicate that there is no data to report or Error indication.
图7和图8为本申请的实施例提供的可能的通信装置的结构示意图。这些通信装置可以用于实现上述方法实施例中终端或网络设备的功能,因此也能实现上述方法实施例所具备的有益效果。在本申请的实施例中,该通信装置可以是如图2所示的标签220a-220e,也可以是如图2所示的读写器230b、230d和230e,还可以是应用于标签或读写器的模块(如芯片)。FIG. 7 and FIG. 8 are schematic structural diagrams of possible communication apparatuses provided by embodiments of the present application. These communication apparatuses can be used to implement the functions of the terminal or the network device in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments. In the embodiment of the present application, the communication device may be tags 220a-220e as shown in FIG. 2, or readers 230b, 230d and 230e as shown in FIG. The module (eg chip) of the writer.
如图7所示,通信装置700包括处理单元710和收发单元720。通信装置700用于实现上述图5或图6中所示的方法实施例中标签或读写器的功能。As shown in FIG. 7 , the communication apparatus 700 includes a processing unit 710 and a transceiver unit 720 . The communication device 700 is used to implement the function of the tag or the reader/writer in the method embodiment shown in FIG. 5 or FIG. 6 .
当通信装置700用于实现图5所示的方法实施例中标签的功能时:When the communication device 700 is used to implement the function of the tag in the method embodiment shown in FIG. 5:
收发单元720用于接收来自读写器的第一命令,所述第一命令用于读取第一传感数据,所述第一命令中包括第一信息和/或第二信息,所述第一信息用于指示所述第一传感数据的存储空间,所述第二信息用于指示所述第一传感数据的类型或第一传感器的标识,所述第一传感数据来自所述第一传感器;用于根据所述第一命令,向读写器发送所述第一传感数据。The transceiver unit 720 is configured to receive a first command from the reader, where the first command is used to read the first sensing data, the first command includes first information and/or second information, and the first command is used to read the first sensor data. One piece of information is used to indicate the storage space of the first sensing data, the second information is used to indicate the type of the first sensing data or the identifier of the first sensor, and the first sensing data is from the A first sensor; used for sending the first sensing data to the reader according to the first command.
可选地,收发单元720还用于向读写器发送第一指示信息,所述第一指示信息用于指示所述标签中存储有传感数据,或所述第一指示信息包括第三传感数据。Optionally, the transceiver unit 720 is further configured to send first indication information to the reader, where the first indication information is used to indicate that the tag stores sensor data, or the first indication information includes the third transmission information. sense data.
可选地,处理单元710用于确定允许读写器读取所述第一传感数据。Optionally, the processing unit 710 is configured to determine that the reader/writer is allowed to read the first sensing data.
可选地,收发单元720还用于向所述读写器发送第三信息,所述第三信息包括所述第一传感数据的时间戳、所述第一传感数据的记录或存储的时间、和已经记录的所述第一传感数据的周期数中的至少一个。Optionally, the transceiver unit 720 is further configured to send third information to the reader, where the third information includes a timestamp of the first sensing data, a record or stored data of the first sensing data. at least one of time, and the number of cycles of the first sensing data that have been recorded.
当通信装置700用于实现图5所示的方法实施例中读写器的功能时:When the communication device 700 is used to realize the function of the reader/writer in the method embodiment shown in FIG. 5:
收发单元720用于向标签发送第一命令,所述第一命令用于读取第一传感数据,所述第一命令中包括第一信息和/或第二信息,所述第一信息用于指示所述第一传感数据的存储空间,所述第二信息用于指示所述第一传感数据的类型、第一传感器的标识和所述存储空间的起始位置中的至少一个,所述第一传感数据来自所述第一传感器;接收来自所述标签的所述第一传感数据。The transceiver unit 720 is configured to send a first command to the tag, where the first command is used to read the first sensing data, and the first command includes first information and/or second information, and the first information is used is used to indicate the storage space of the first sensing data, the second information is used to indicate at least one of the type of the first sensing data, the identification of the first sensor and the starting position of the storage space, The first sensory data is from the first sensor; the first sensory data is received from the tag.
可选地,收发单元720还用于接收来自所述标签的第一指示信息,所述第一指示信息用于指示所述标签中存储有传感数据,或所述第一指示信息包括第三传感数据。Optionally, the transceiver unit 720 is further configured to receive first indication information from the tag, where the first indication information is used to indicate that sensor data is stored in the tag, or the first indication information includes a third sensor data.
可选地,收发单元720还用于接收来自所述标签的第五信息,所述第五信息包括第二指示信息和/或第二传感数据,所述第二指示信息用于指示所述第二传感数据异常。Optionally, the transceiver unit 720 is further configured to receive fifth information from the tag, where the fifth information includes second indication information and/or second sensing data, and the second indication information is used to indicate the The second sensing data is abnormal.
可选地,收发单元720还用于向所述标签发送第一阈值和/或第二阈值,所述第一阈值和所述第二阈值用于确定第二传感数据是否异常。Optionally, the transceiver unit 720 is further configured to send a first threshold and/or a second threshold to the tag, where the first threshold and the second threshold are used to determine whether the second sensing data is abnormal.
可选地,收发单元720还用于接收所述标签发送的第三信息,所述第三信息包括所述第一传感数据的时间戳、所述第一传感数据的记录或存储的时间、和已经记录的所述第一传感数据的周期数中的至少一个。Optionally, the transceiver unit 720 is further configured to receive third information sent by the tag, where the third information includes a time stamp of the first sensing data and a time when the first sensing data was recorded or stored , and at least one of the number of cycles of the first sensing data that have been recorded.
当通信装置700用于实现图6所示的方法实施例中标签的功能时:When the communication device 700 is used to implement the function of the tag in the method embodiment shown in FIG. 6:
收发单元720用于接收来自读写器的第二命令。The transceiver unit 720 is used for receiving the second command from the reader.
收发单元720还用于根据所述第二命令,向读写器发送第五信息。The transceiver unit 720 is further configured to send fifth information to the reader according to the second command.
当通信装置700用于实现图6所示的方法实施例中读写器的功能时:When the communication device 700 is used to implement the function of the reader/writer in the method embodiment shown in FIG. 6:
收发单元720用于向标签发送第二命令。The transceiver unit 720 is used for sending the second command to the tag.
收发单元720还用于接收标签发送的第五信息。The transceiver unit 720 is further configured to receive the fifth information sent by the tag.
有关上述处理单元710和收发单元720更详细的描述可以直接参考图5和图6所示的方法实施例中相关描述直接得到,这里不加赘述。More detailed descriptions about the above-mentioned processing unit 710 and the transceiver unit 720 can be obtained directly by referring to the relevant descriptions in the method embodiments shown in FIG. 5 and FIG. 6 , and details are not repeated here.
如图8所示,通信装置800包括处理器810和接口电路820。处理器810和接口电路820之间相互耦合。可以理解的是,接口电路820可以为收发器或输入输出接口。可选地,通信装置800还可以包括存储器830,用于存储处理器810执行的指令或存储处理器810运行指令所需要的输入数据或存储处理器810运行指令后产生的数据。As shown in FIG. 8 , the communication apparatus 800 includes a processor 810 and an interface circuit 820 . The processor 810 and the interface circuit 820 are coupled to each other. It can be understood that the interface circuit 820 can be a transceiver or an input-output interface. Optionally, the communication apparatus 800 may further include a memory 830 for storing instructions executed by the processor 810 or input data required by the processor 810 to execute the instructions or data generated after the processor 810 executes the instructions.
当通信装置800用于实现图5或图6所示的方法时,处理器810用于实现上述处理单元710的功能,接口电路820用于实现上述收发单元720的功能。When the communication apparatus 800 is used to implement the method shown in FIG. 5 or FIG. 6 , the processor 810 is used to implement the function of the above-mentioned processing unit 710 , and the interface circuit 820 is used to implement the function of the above-mentioned transceiver unit 720 .
当上述通信装置为应用于标签的芯片时,该标签芯片实现上述方法实施例中标签的功能。该标签芯片从终端设备中的其它模块(如射频模块或天线)接收信息,该信息是读写器发送给标签的;或者,该标签芯片向标签中的其它模块(如射频模块或天线)发送信息,该信息是标签发送给读写器的。When the above communication device is a chip applied to a tag, the tag chip implements the function of the tag in the above method embodiment. The tag chip receives information from other modules (such as radio frequency modules or antennas) in the terminal device, and the information is sent by the reader to the tag; or, the tag chip sends information to other modules in the tag (such as radio frequency modules or antennas) information, which is sent by the tag to the reader.
当上述通信装置为应用于读写器的芯片时,该读写器芯片实现上述方法实施例中读写器的功能。该读写器芯片从读写器中的其它模块(如射频模块或天线)接收信息,该信息是标签发送给读写器的;或者,该读写器芯片向读写器中的其它模块(如射频模块或天线)发送信息,该信息是读写器发送给标签的。When the above communication device is a chip applied to a reader/writer, the reader/writer chip implements the functions of the reader/writer in the above method embodiments. The reader-writer chip receives information from other modules in the reader-writer (such as radio frequency modules or antennas), and the information is sent by the tag to the reader-writer; or, the reader-writer chip sends information to other modules in the reader-writer ( Such as radio frequency module or antenna) to send information, the information is sent to the tag by the reader.
可以理解的是,本申请的实施例中的处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field  Programmable Gate Array,FPGA)或者其它可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。It can be understood that the processor in the embodiments of the present application may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. A general-purpose processor may be a microprocessor or any conventional processor.
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器、闪存、只读存储器、可编程只读存储器、可擦除可编程只读存储器、电可擦除可编程只读存储器、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于读写器或标签中。当然,处理器和存储介质也可以作为分立组件存在于读写器或标签中。The method steps in the embodiments of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions. Software instructions may be composed of corresponding software modules, and software modules may be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory memory, registers, hard disk, removable hard disk, CD-ROM or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium may reside in an ASIC. Alternatively, the ASIC can be located in the reader or tag. Of course, the processor and storage medium may also exist in the reader or tag as discrete components.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其它可编程装置。所述计算机程序或指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘;还可以是半导体介质,例如,固态硬盘。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are executed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus. The computer program or instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, A server or data center transmits by wire or wireless to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, data center, or the like that integrates one or more available media. The usable media may be magnetic media, such as floppy disks, hard disks, magnetic tapes; optical media, such as digital video discs; and semiconductor media, such as solid-state drives.
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In the various embodiments of the present application, if there is no special description or logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referred to each other, and the technical features in different embodiments are based on their inherent Logical relationships can be combined to form new embodiments.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。在本申请的文字描述中,字符“/”,一般表示前后关联对象是一种“或”的关系;在本申请的公式中,字符“/”,表示前后关联对象是一种“相除”的关系。In this application, "at least one" means one or more, and "plurality" means two or more. "And/or", which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural. In the text description of this application, the character "/" generally indicates that the related objects are a kind of "or" relationship; in the formula of this application, the character "/" indicates that the related objects are a kind of "division" Relationship.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定。It can be understood that, the various numbers and numbers involved in the embodiments of the present application are only for the convenience of description, and are not used to limit the scope of the embodiments of the present application. The size of the sequence numbers of the above processes does not imply the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (23)

  1. 一种用于读取数据的方法,其特征在于,所述方法包括:A method for reading data, characterized in that the method comprises:
    应答设备接收来自读写设备的第一命令,所述第一命令用于读取第一传感数据,所述第一命令中包括第一信息和/或第二信息,所述第一信息用于指示所述第一传感数据的存储空间,所述第二信息用于指示所述第一传感数据的类型、第一传感器的标识和所述存储空间的起始位置中的至少一个,所述第一传感数据来自所述第一传感器;The answering device receives the first command from the reading and writing device, the first command is used to read the first sensing data, the first command includes the first information and/or the second information, and the first information is used to read the first information. is used to indicate the storage space of the first sensing data, the second information is used to indicate at least one of the type of the first sensing data, the identification of the first sensor and the starting position of the storage space, the first sensing data is from the first sensor;
    所述应答设备根据所述第一命令,向所述读写设备发送所述第一传感数据。The response device sends the first sensing data to the read-write device according to the first command.
  2. 根据权利要求1所述的方法,其特征在于,The method of claim 1, wherein:
    所述存储空间为所述应答设备的内存的:第一存储区、第一字节区间、所述第一存储区的第一文档、所述第一文档的所述第一字节区间、或所述第一存储区的所述第一字节区间;或者,The storage space is the memory of the answering device: the first storage area, the first byte interval, the first document of the first storage area, the first byte interval of the first document, or the first byte interval of the first storage area; or,
    所述存储空间为所述应答设备的寄存器、缓存器或外部接口中的空间。The storage space is the space in the register, buffer or external interface of the response device.
  3. 根据权利要求1或2所述的方法,其特征在于,The method according to claim 1 or 2, characterized in that,
    所述第一命令还包括待读取的字节长度、待读取的记录的次数和待读取的周期数中的至少一个。The first command also includes at least one of the length of bytes to be read, the number of records to be read, and the number of cycles to be read.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    所述应答设备向所述读写设备发送第三信息,所述第三信息包括所述第一传感数据的时间戳、所述第一传感数据的记录或存储的时间、和已经记录的所述第一传感数据的周期数中的至少一个。The response device sends third information to the read-write device, the third information includes the time stamp of the first sensing data, the recording or storage time of the first sensing data, and the recorded at least one of the number of cycles of the first sensing data.
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,The method according to any one of claims 1 to 4, characterized in that,
    所述存储空间为保留区、电子产品代码EPC区、标签识别码TID区或用户区中的空间;或者,The storage space is the space in the reserved area, the electronic product code EPC area, the tag identification code TID area or the user area; or,
    所述存储空间为新增的存储空间。The storage space is newly added storage space.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    所述应答设备向所述读写设备发送第一指示信息,所述第一指示信息用于指示所述应答设备中存储有传感数据,或所述第一指示信息包括第三传感数据。The responding device sends first indication information to the reading and writing device, where the first indication information is used to indicate that sensing data is stored in the responding device, or the first indication information includes third sensing data.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    所述应答设备确定允许所述读写设备读取所述第一传感数据。The answering device determines that the read-write device is allowed to read the first sensing data.
  8. 根据权利要求7所述的方法,其特征在于,所述应答设备确定允许所述读写设备读取所述第一传感数据,包括:The method according to claim 7, wherein determining by the response device to allow the read-write device to read the first sensing data comprises:
    所述应答设备确定以下条件中的至少一项被满足时,确定允许所述读写设备读取第一传感数据:When the response device determines that at least one of the following conditions is satisfied, it determines that the read-write device is allowed to read the first sensing data:
    第一访问秘钥是访问所述第一传感数据的访问秘钥,所述第一命令包括所述第一访问秘钥;或,The first access key is an access key for accessing the first sensing data, and the first command includes the first access key; or,
    所述读写设备和所述应答设备经过鉴权;或,The read-write device and the response device are authenticated; or,
    所述存储空间被设置为允许读取。The storage space is set to allow reading.
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 8, wherein the method further comprises:
    当第二传感数据的数值大于第一阈值、所述第二传感数据的数值小于第二阈值、或所述第二传感数据的数值大于所述第一阈值且小于所述第二阈值时,所述应答设备向所述读写设备发送第五信息,所述第五信息包括第二指示信息和/或所述第二传感数据,所述第二指示信息用于指示所述第二传感数据异常。When the value of the second sensing data is greater than the first threshold, the value of the second sensing data is less than the second threshold, or the value of the second sensing data is greater than the first threshold and less than the second threshold When the response device sends fifth information to the reading and writing device, the fifth information includes second indication information and/or the second sensor data, and the second indication information is used to indicate the first 2. The sensor data is abnormal.
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method according to claim 9, wherein the method further comprises:
    所述应答设备接收来自所述读写设备的所述第一阈值和/或所述第二阈值。The answering device receives the first threshold and/or the second threshold from the read-write device.
  11. 一种用于读取数据的方法,其特征在于,所述方法包括:A method for reading data, characterized in that the method comprises:
    读写设备向应答设备发送第一命令,所述第一命令用于读取第一传感数据,所述第一命令中包括第一信息和/或第二信息,所述第一信息用于指示所述第一传感数据的存储空间,所述第二信息用于指示所述第一传感数据的类型、第一传感器的标识和所述存储空间的起始位置中的至少一个,所述第一传感数据来自所述第一传感器;The read-write device sends a first command to the response device, the first command is used to read the first sensor data, the first command includes first information and/or second information, and the first information is used for Indicates the storage space of the first sensing data, and the second information is used to indicate at least one of the type of the first sensing data, the identification of the first sensor, and the starting position of the storage space, so the first sensing data comes from the first sensor;
    所述读写设备接收来自所述应答设备的所述第一传感数据。The read-write device receives the first sensory data from the response device.
  12. 根据权利要求11所述的方法,其特征在于,The method of claim 11, wherein:
    所述存储空间为所述应答设备的内存的:第一存储区、第一字节区间、所述第一存储区的第一文档、所述第一文档的所述第一字节区间、或所述第一存储区的所述第一字节区间;或者,The storage space is in the memory of the answering device: the first storage area, the first byte interval, the first document of the first storage area, the first byte interval of the first document, or the first byte interval of the first storage area; or,
    所述存储空间为所述应答设备的寄存器、缓存器或外部接口中的空间。The storage space is the space in the register, buffer or external interface of the response device.
  13. 根据权利要求11或12所述的方法,其特征在于,The method according to claim 11 or 12, wherein,
    所述存储空间为保留区、电子产品代码EPC区、标签识别码TID区或用户区中的空间;或者,The storage space is the space in the reserved area, the electronic product code EPC area, the tag identification code TID area or the user area; or,
    所述存储空间为新增的存储空间。The storage space is newly added storage space.
  14. 根据权利要求11至13中任一项所述的方法,其特征在于,The method according to any one of claims 11 to 13, wherein,
    所述第一命令还包括待读取的字节长度、待读取的记录的次数和待读取的周期数中的至少一个。The first command also includes at least one of the length of bytes to be read, the number of records to be read, and the number of cycles to be read.
  15. 根据权利要求11至14中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 11 to 14, wherein the method further comprises:
    所述读写设备接收来自所述应答设备的第三信息,所述第三信息包括所述第一传感数据的时间戳、所述第一传感数据的记录或存储的时间、和已经记录的所述第一传感数据的周期数中的至少一个。The read-write device receives third information from the response device, the third information includes the time stamp of the first sensory data, the time of recording or storage of the first sensory data, and the record at least one of the number of cycles of the first sensing data.
  16. 根据权利要求11至15中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 11 to 15, wherein the method further comprises:
    所述读写设备接收来自所述应答设备的第一指示信息,所述第一指示信息用于指示所述应答设备中存储有传感数据,或所述第一指示信息中包含包括第三传感数据。The read-write device receives first indication information from the answering device, where the first indication information is used to indicate that the answering device stores sensor data, or the first indication information includes a third transmission information. sense data.
  17. 根据权利要求11至16中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 11 to 16, wherein the method further comprises:
    所述读写设备接收来自所述应答设备的第五信息,所述第五信息包括第二指示信息和/或所述第二传感数据,所述第二指示信息用于指示所述第二传感数据异常,其中,所述第二传感数据的数值大于第一阈值、所述第二传感数据的数值小于第二阈值、或所述第二传感数据的数值大于所述第一阈值且小于所述第二阈值。The read-write device receives fifth information from the response device, the fifth information includes second indication information and/or the second sensor data, and the second indication information is used to indicate the second The sensing data is abnormal, wherein the value of the second sensing data is greater than the first threshold, the value of the second sensing data is less than the second threshold, or the value of the second sensing data is greater than the first threshold threshold and less than the second threshold.
  18. 根据权利要求17所述的方法,其特征在于,所述方法还包括:The method of claim 17, wherein the method further comprises:
    所述读写设备向所述应答设备发送所述第一阈值和/或所述第二阈值。The read-write device sends the first threshold and/or the second threshold to the answering device.
  19. 一种通信装置,其特征在于,包括用于执行如权利要求1至10中的任一项所述 方法的模块或单元,或者用于执行如权利要求11至18中的任一项所述方法的模块或单元。A communication device, characterized by comprising a module or unit for performing the method as claimed in any one of claims 1 to 10, or for performing the method as claimed in any one of claims 11 to 18 module or unit.
  20. 一种通信装置,其特征在于,包括处理器和接口电路,所述接口电路用于接收来自所述通信装置之外的其它通信装置的信号并传输至所述处理器或将来自所述处理器的信号发送给所述通信装置之外的其它通信装置,所述处理器通过逻辑电路或执行代码指令用于实现如权利要求1至10中任一项所述的方法,或者用于实现如权利要求11至18中任一项所述的方法。A communication device, characterized by comprising a processor and an interface circuit, wherein the interface circuit is configured to receive signals from other communication devices other than the communication device and transmit to the processor or transfer signals from the processor The signal is sent to other communication devices other than the communication device, and the processor is used to implement the method as claimed in any one of claims 1 to 10 through logic circuits or execute code instructions, or to implement the method as claimed in claim 1. The method of any one of claims 11 to 18.
  21. 一种芯片,其特征在于,包括处理器,所述处理器和存储器耦合,所述存储器用于存储计算机程序,所述处理器用于执行所述存储器中存储的计算机程序以实现如权利要求1至10中任一项所述的方法,或者实现如权利要求11至18中任一项所述的方法。A chip, characterized in that it comprises a processor, wherein the processor is coupled with a memory, the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory to realize the invention as claimed in claim 1 to 10, or implement the method of any one of claims 11 to 18.
  22. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序或指令,当所述计算机程序或指令被通信装置执行时,实现如权利要求1至10中任一项所述的方法,或者实现如权利要求11至18中任一项所述的方法。A computer-readable storage medium, characterized in that, a computer program or instruction is stored in the storage medium, and when the computer program or instruction is executed by a communication device, any one of claims 1 to 10 is implemented. method, or implement a method as claimed in any one of claims 11 to 18.
  23. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被运行时,实现如权利要求1至10中任一项所述的方法,或者实现如权利要求11至18中任一项所述的方法。A computer program product, characterized in that it includes a computer program that, when the computer program is executed, implements the method as claimed in any one of claims 1 to 10, or implements any one of claims 11 to 18 method described in item.
PCT/CN2021/074323 2021-01-29 2021-01-29 Method and apparatus for reading data WO2022160231A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202180091545.6A CN116830112A (en) 2021-01-29 2021-01-29 Method and device for reading data
PCT/CN2021/074323 WO2022160231A1 (en) 2021-01-29 2021-01-29 Method and apparatus for reading data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/074323 WO2022160231A1 (en) 2021-01-29 2021-01-29 Method and apparatus for reading data

Publications (1)

Publication Number Publication Date
WO2022160231A1 true WO2022160231A1 (en) 2022-08-04

Family

ID=82652849

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/074323 WO2022160231A1 (en) 2021-01-29 2021-01-29 Method and apparatus for reading data

Country Status (2)

Country Link
CN (1) CN116830112A (en)
WO (1) WO2022160231A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115730618A (en) * 2022-09-09 2023-03-03 芯电智联(北京)科技有限公司 Data processing method of electronic cigarette label connected with sensor
CN116720537A (en) * 2023-08-10 2023-09-08 天津环球磁卡科技有限公司 Bus card data reading method and reading system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739594A (en) * 2009-12-28 2010-06-16 中国人民解放军总后勤部军事交通运输研究所 Sensor virtual spreadsheet-based self-descriptive sensing tag system
US20140247118A1 (en) * 2011-08-03 2014-09-04 Ams R&D Analogni Polprevodniki, D.O.O. Method for an acquisition of data from external digital sensors with an rfid smart tag and a tag integrated circuit for carrying out said method
CN106778939A (en) * 2015-11-19 2017-05-31 北京计算机技术及应用研究所 Electronic tag sensor-based system
CN109086641A (en) * 2018-09-13 2018-12-25 国网浙江省电力有限公司宁波供电公司 The self-adapting tuning label of integrating passive wireless sensor
CN112070196A (en) * 2019-06-11 2020-12-11 四川谦泰仁投资管理有限公司 Passive RFID chip with external battery and tag

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739594A (en) * 2009-12-28 2010-06-16 中国人民解放军总后勤部军事交通运输研究所 Sensor virtual spreadsheet-based self-descriptive sensing tag system
US20140247118A1 (en) * 2011-08-03 2014-09-04 Ams R&D Analogni Polprevodniki, D.O.O. Method for an acquisition of data from external digital sensors with an rfid smart tag and a tag integrated circuit for carrying out said method
CN106778939A (en) * 2015-11-19 2017-05-31 北京计算机技术及应用研究所 Electronic tag sensor-based system
CN109086641A (en) * 2018-09-13 2018-12-25 国网浙江省电力有限公司宁波供电公司 The self-adapting tuning label of integrating passive wireless sensor
CN112070196A (en) * 2019-06-11 2020-12-11 四川谦泰仁投资管理有限公司 Passive RFID chip with external battery and tag

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115730618A (en) * 2022-09-09 2023-03-03 芯电智联(北京)科技有限公司 Data processing method of electronic cigarette label connected with sensor
CN115730618B (en) * 2022-09-09 2023-08-15 芯电智联(北京)科技有限公司 Data processing method of electronic cigarette label connected with sensor
CN116720537A (en) * 2023-08-10 2023-09-08 天津环球磁卡科技有限公司 Bus card data reading method and reading system
CN116720537B (en) * 2023-08-10 2023-10-10 天津环球磁卡科技有限公司 Bus card data reading method and reading system

Also Published As

Publication number Publication date
CN116830112A (en) 2023-09-29

Similar Documents

Publication Publication Date Title
WO2018041001A1 (en) Method, device, and system for communicating with radio frequency apparatus
WO2022160231A1 (en) Method and apparatus for reading data
CN114270910A (en) Beam indication method and device of intelligent relay service link
CN112637857B (en) Method, device and storage medium for scheduling carrier waves in symbiotic network
US20230367982A1 (en) Communication method and communication apparatus
KR20200033804A (en) Data transmission method, terminal device and network device
WO2017072652A1 (en) Rfid reader for communication in the ultra-high frequency band, intelligent system for radiofrequency identification and transmission of data in the ultra-high frequency band and method of their operation
WO2023077917A1 (en) Communication method and device
JP7173174B2 (en) Wireless terminal, base station, and methods thereof
CN114339875B (en) Information transmission method and communication device
WO2023173376A1 (en) Communication method and communication apparatus
WO2024027475A1 (en) Communication method and apparatus
WO2023173301A1 (en) Backscatter communication method, terminal device, and network device
CN111147114A (en) Method and device for beam training
WO2023124985A1 (en) Identification method and apparatus
WO2024041066A1 (en) Message tracing method and communication apparatus
WO2024065267A1 (en) Wireless communication method and device
WO2024045194A1 (en) Positioning method and apparatus, and communication device
WO2023184283A1 (en) Wireless communication method and apparatus
WO2023160201A1 (en) Communication method and apparatus
WO2024021935A1 (en) Communication method and apparatus
WO2024026771A1 (en) Access authentication method and device
US11997618B2 (en) PHR reporting for multi-beam PUSCH transmissions
CN114026907B (en) Method and device for measuring uplink wave beam
WO2024088147A1 (en) Communication method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21921837

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202180091545.6

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21921837

Country of ref document: EP

Kind code of ref document: A1