A data collection method, system and device for RFID sensor tags

By adding a command and slot number allocation mechanism, the problem that RFID sensor tags cannot collect data in batches and quickly under the 2.45G national standard protocol is solved, and efficient collection of multi-sensor data is achieved, improving data acquisition efficiency and applicability.

CN114330613BActive Publication Date: 2024-11-19华大恒芯科技有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111626530.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-11-19
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

The existing 2.45G national standard agreement has failed to effectively solve the efficiency of RFID sensor tags in real-time measurement and multi-sensor data acquisition, especially the inability to batch and fast acquisition of sensor data.

Method used

By adding new commands, the batch or rapid acquisition of sensor data is realized, including initializing and configuring the file system of tags, assigning fixed slot numbers, and sending batch or rapid acquisition commands to obtain sensors based on compatible with GB/T 28925 protocol data.

Benefits of technology

Under the premise of compatibility with the national standard agreement, the rapid acquisition of multiple sensor data is achieved, the data acquisition efficiency is improved, the problem that sensor tags cannot collect data in batches and quickly, and the applicability of RFID tags is expanded.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114330613B_ABST
    Figure CN114330613B_ABST
Patent Text Reader

Abstract

The present invention provides a data collection method, system and device for an RFID sensor tag. The method includes a card reader generating an air interface command corresponding to the GB / T28925 protocol according to an initialization command and a configuration command sent by a host computer platform, sending the command to the tag, initializing and configuring the tag; performing deployment and network access operations on the initialized and configured tag, so that the tag and the gateway establish wireless communication; the tag responds to the data collection command sent by the gateway, collects sensor data, and feeds back the sensor data and tag ID information to the gateway according to the time slot number. In this way, the batch or rapid collection function of sensor data can be realized by adding new commands under the premise of being compatible with the national standard GB / T 28925-2012 protocol, solving the problem that the RFID tag carrying the sensor in the GB / T 28925 national standard protocol cannot collect sensor data in batches and rapidly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to the field of sensor data collection, and more specifically, to a data collection method, system and device for an RFID sensor tag. Background Art

[0002] RFID is radio frequency identification, which is a technology that automatically identifies objects and obtains relevant data through the spatial coupling principle of radio frequency signals. RFID is divided into low frequency (LF), high frequency (HF), ultra-high frequency (UHF), and microwave (MW) according to the different application frequencies. The corresponding representative frequencies are: low frequency below 135KHz, high frequency 13.56MHz, ultra-high frequency 860M~960MHz, microwave 2.4G, 5.8G. RFID is divided into passive RFID and active RFID according to the different energy supply methods.

[0003] The GB / T 28925-2012 protocol standard specifies the physical layer, data link layer, tag storage area structure, tag state transfer, reader / writer command and tag response, protocol working mode, anti-collision method and security protocol of the 2.45GHz band radio frequency identification air interface. The protocol only mentions the description of the "tag status word" data item in the tag's reply to the reader / writer response data packet, but does not clearly specify the details of how to use the sensor. However, in actual work, the real-time measurement and processing of the sensor may take a long time, and the existing commands in the existing 2.45G national standard protocol may no longer be applicable; and a tag (sensor node or wireless sensor) may carry multiple sensor devices. How to collect the real-time measurement values ​​of multiple sensor devices through one reader / writer command and realize the flexible configuration of users is also a problem that needs to be solved. Summary of the invention

[0004] According to an embodiment of the present invention, a data collection solution for RFID sensor tags is provided. This solution can realize the batch or rapid collection function of sensor data by adding commands under the premise of being compatible with the national standard GB / T 28925-2012 protocol, solving the problem that the RFID tags carrying sensors in the GB / T 28925 national standard protocol cannot collect sensor data in batches and rapidly.

[0005] In a first aspect of the present invention, a data collection method for an RFID sensor tag is provided.

[0006] The method includes:

[0007] The card reader generates an air interface command corresponding to the GB / T28925 protocol according to the initialization command and configuration command sent by the host computer platform, and sends it to the tag to initialize and configure the tag;

[0008] Performing deployment and network access operations on the initialized and configured tags, so that the tags establish wireless communication with the gateway;

[0009] The tag collects sensor data in response to the data collection command sent by the gateway, and feeds back the sensor data and tag ID information to the gateway according to the time slot number.

[0010] Further, the initializing and configuring the tag includes:

[0011] Initialize the file system of the tag; the file system includes a sensor folder, a sensor configuration file, a sensor real-time data file, and a minimum file system specified by the GB / T 28925 protocol;

[0012] The sensor acquisition period of the tag is configured, and a fixed time slot number is assigned to the tag.

[0013] Furthermore, if the data collection command is a batch collection command, then:

[0014] The tag responds to the ready command sent by the gateway, and if the tag carries a sensor, the tag enters the ready state; otherwise, the tag goes into sleep mode;

[0015] The gateway performs access operations on tags in the ready state and assigns an access time slot number to each tag that successfully accesses;

[0016] Tags whose allocated access time slot numbers are between the starting time slot number and the ending time slot number respond to the batch collection command sent by the gateway to collect sensor data, and feed back the tag ID information and the collected sensor data to the gateway in sequence according to the order of the access time slot numbers.

[0017] Furthermore, the batch acquisition command includes: a command code, a time slot width, a start time slot sequence number, an end time slot sequence number, a data reporting flag and a delay width; wherein

[0018] The command code is used to enable the tag to identify the batch acquisition command;

[0019] The slot width is the time allocated for a single tag to communicate;

[0020] The starting time slot number is used to specify the first response tag in the subsequent acquisition frame;

[0021] The end slot number is used to specify the tag of the last response in the subsequent acquisition frame;

[0022] The data reporting identifier is used to identify the sensor real-time data in the sensor real-time data transparent file that needs to be included in the tag response;

[0023] The delay width is the delay time from the start of the acquisition time slot, within which the tag can prepare the response data.

[0024] Furthermore, if the data acquisition command is a fast acquisition command, then:

[0025] The tag responds to the ready command sent by the gateway, and if the tag carries a sensor, the tag enters the ready state; otherwise, the tag goes into sleep mode;

[0026] The tags whose allocated fixed time slot numbers are within the interval between the starting time slot number and the ending time slot number and are in a ready state respond to the fast collection command sent by the gateway to collect sensor data, and feed back the tag ID information and the collected sensor data to the gateway in sequence according to the order of the fixed time slot numbers of the tags.

[0027] Furthermore, the fast acquisition command includes: command code, time slot width, start time slot sequence number, end time slot sequence number, data reporting flag, delay width and sleep control; wherein

[0028] The command code is used to enable the tag to identify the rapid acquisition command;

[0029] The slot width is the time allocated for a single tag to communicate;

[0030] The starting time slot number is used to specify the first response tag in the subsequent acquisition frame;

[0031] The end slot number is used to specify the tag of the last response in the subsequent acquisition frame;

[0032] The data reporting identifier is used to identify the sensor real-time data in the sensor real-time data transparent file that needs to be included in the tag response;

[0033] The delay width is the delay time from the start of the acquisition time slot, within which the tag can prepare the response data;

[0034] The sleep control is used to specify the tag state after the tag responds to the fast acquisition command, and the tag state includes a sleep state and an acquisition state.

[0035] Furthermore, it also includes:

[0036] After the tag collects sensor data, if the value of the sensor data reaches the preset sensor data alarm range, the tag switches from the GB / T28925 protocol working channel to the alarm channel and reports the alarm data to the gateway according to the preset alarm cycle;

[0037] When the value of the sensor data is restored to outside the sensor data alarm range or an alarm release command sent by the gateway is received, the tag switches from the alarm channel to the GB / T28925 protocol working channel.

[0038] Furthermore, it also includes:

[0039] If the tag is de-networked, the host computer platform reclaims the fixed time slot number of the tag, and the fixed time slot number is used for reallocation.

[0040] In a second aspect of the present invention, a data collection system for an RFID sensor tag is provided.

[0041] The system includes:

[0042] The card reader generates an air interface command corresponding to the GB / T28925 protocol according to the initialization and configuration commands sent by the host computer platform, and sends it to the tag to initialize and configure the tag;

[0043] The tag responds to the air interface command of the card reader, performs initialization and configuration, and then performs deployment and network access operations to establish wireless communication between the tag and the gateway; responds to the data collection command sent by the gateway, collects sensor data, and feeds back the sensor data and tag ID information to the gateway according to the time slot number.

[0044] In a third aspect of the present invention, an electronic device is provided. The electronic device has at least one processor; and a memory connected to the at least one processor in communication; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the method of the first aspect of the present invention.

[0045] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The above and other features, advantages and aspects of the embodiments of the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0047] Figure 1 A schematic diagram of a workflow of data collection of an RFID sensor tag according to an embodiment of the present invention is shown;

[0048] Figure 2 A schematic diagram of the structure of a tag storage area according to an embodiment of the present invention is shown;

[0049] Figure 3 A flow chart showing a data collection method of an RFID sensor tag according to an embodiment of the present invention;

[0050] Figure 4 A schematic diagram showing three sensor data collection methods according to an embodiment of the present invention;

[0051] Figure 5 A flow chart of a batch acquisition process according to an embodiment of the present invention is shown;

[0052] Figure 6 A flowchart of a fast acquisition process according to an embodiment of the present invention is shown;

[0053] Figure 7 A block diagram of a data acquisition system of an RFID sensor tag according to an embodiment of the present invention is shown;

[0054] Figure 8 A block diagram of an exemplary electronic device capable of implementing embodiments of the present invention is shown;

[0055] Among them, 800 is an electronic device, 801 is a CPU, 802 is a ROM, 803 is a RAM, 804 is a bus, 805 is an I / O interface, 806 is an input unit, 807 is an output unit, 808 is a storage unit, and 809 is a communication unit. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0058] like Figure 1 As shown in the figure, the general RFID application scenario includes three parts: management platform, reader and electronic tag. The management platform includes tag initialization and management, data management and interface, etc. The reader generally includes a fixed gateway or a portable card reader. The tag includes a sensor and a non-sensor. Figure 2As shown in the figure, the tag memory is logically divided into a security area and a user area. The security area is used to store tag security data, and the storage location and storage method are determined by the user; the user area is used to store user data and configuration information, which is organized and managed using the file system method.

[0059] The sensor data collection method specified by the GB / T 28925 air interface standard is generally a file reading method. The national standard protocol does not specify how the tag sensor data is stored and how it is sent to the read-write device. In the present invention, the batch or rapid collection function of sensor data can be realized by adding new commands under the premise of being compatible with the national standard GB / T 28925-2012 protocol, which solves the problem that the sensor RFID tag carrying the sensor in the GB / T 28925 national standard protocol cannot collect sensor data in batches and quickly. At the same time, the Internet of Things, sensors and RFID tags are also integrated together. The RFID tag realizes the recognition of the object, and the sensor realizes the perception of the environment in which the object is located, which greatly expands the applicability.

[0060] Figure 3 A flow chart of a data collection method of an RFID sensor tag according to an embodiment of the present invention is shown.

[0061] The method includes:

[0062] S301. The card reader generates an air interface command corresponding to the GB / T28925 protocol according to the initialization command and configuration command sent by the host computer platform, and sends the command to the tag to initialize and configure the tag.

[0063] Further, the initializing and configuring the tag includes:

[0064] Initialize the file system for the label.

[0065] The sensor acquisition cycle of the tag is configured, and a fixed time slot number is assigned to the tag. The fixed time slot number is a time sequence number assigned in sequence. If there is an alarm function, the alarm channel and alarm threshold and other information can be configured.

[0066] The file system includes a sensor folder, a sensor configuration file, a sensor real-time data file, and a minimum file system specified by the GB / T 28925 protocol. The sensor folder, namely the DF file, and a special file are used to store data files. The sensor real-time data file is the EF file.

[0067] The sensor configuration file is shown in Table 1:

[0068]

[0069] Table 1

[0070] The sensor real-time data file can be read by the user through the read-write device after obtaining the operation permission, as shown in Table 2:

[0071]

[0072]

[0073] Table 2

[0074] In addition to the measured value, the real-time sensor data can also include information such as sensor type, data unit, and effective data length, which is convenient for reading and writing devices or software to analyze.

[0075] As an embodiment of the present invention, it also includes establishing a transparent file of real-time sensor data.

[0076] The user can directly read the file through the read-write device without obtaining permission or perform batch collection of multiple tags through specific commands. The structure is shown in Table 3 below:

[0077]

[0078] Table 3

[0079] It should be noted that in order to improve communication efficiency and reduce tag power consumption, the amount of data responded by the tag can be shortened as much as possible, and each sensor only reports the length of the actual valid data, that is, A, B, and C in the example can be inconsistent, but none of them is greater than M in the sensor real-time data record file. In addition to the measured value, the sensor real-time data can also include information such as sensor type, data unit, length, etc., which is convenient for reading and writing devices or software to analyze.

[0080] In the above embodiment, the tag is configured by adding a fast acquisition configuration file, and a fixed time slot number is assigned to each tag. Since each tag is assigned a fixed time slot number, the tag can respond immediately after the tag wakes up without an access operation.

[0081] As an embodiment of the present invention, if the tag is disconnected from the network, the host computer platform reclaims the fixed time slot number of the tag, and the fixed time slot number is used for reallocation. The fixed time slot number is used when the gateway collects sensor tags quickly. Since the length of the time slot number is limited, for tags disconnected from the network due to inactivation and failure, the host computer platform can reclaim their time slot number, and the time slot number can be reallocated to a new tag.

[0082] In this embodiment, according to the life cycle of the sensor tag, there are the following situations where the tag needs to be de-networked:

[0083] 1) The tag has been inactivated.

[0084] 2) The label has reached the end of its service life.

[0085] 3) The tag has a software or hardware failure.

[0086] S302: Deploy and access the network of the initialized and configured tag, so that the tag can establish wireless communication with the gateway.

[0087] After the sensor tag is initialized and configured, it can be deployed to the site and perform operations such as network access. After network access, the sensor tag communicates wirelessly with the gateway.

[0088] S303 , the tag collects sensor data in response to the data collection command sent by the gateway, and feeds back the sensor data and tag ID information to the gateway according to the time slot number.

[0089] In an embodiment of the present invention, a new batch collection command is added, which is specifically used to collect real-time sensor data. When the gateway executes a batch collection command, the tag sensor will start a sensor data collection action in real time and return the collected sensor data to the gateway. After the tag receives the command, the tags whose allocated time slot numbers are between the starting time slot number and the ending time slot number respond within the agreed time slot. The tag with the starting time slot number will reply immediately after the delay width, and the other tags will respond in the corresponding time slots in turn.

[0090] The batch acquisition command includes: command code, time slot width, start time slot sequence number, end time slot sequence number, data reporting flag and delay width;

[0091] The command code is used to enable the tag to identify the batch acquisition command;

[0092] The slot width is the time allocated for a single tag to communicate;

[0093] The starting time slot number is used to specify the first response tag in the subsequent acquisition frame;

[0094] The end slot number is used to specify the tag of the last response in the subsequent acquisition frame;

[0095] The data reporting identifier is used to identify the sensor real-time data in the sensor real-time data transparent file that needs to be included in the tag response;

[0096] The delay width is the delay time from the start of the acquisition time slot, within which the tag can prepare the response data.

[0097] As an embodiment of the present invention, a new real-time data batch collection command is added, which is sent when the real-time data of each tag sensor is collected in batches through the inventory mode. For example, the "collection period start command" in the normal inventory process specified in the GB / T28925 national standard protocol is replaced with this "real-time data batch collection" command to realize the batch collection of real-time data of multiple tag sensors. The command format definition example is shown in Table 4 below:

[0098]

[0099] Table 4

[0100] Description of each data item:

[0101] 1) Command code: defined by the manufacturer, as long as it does not conflict with the 2.45G national standard protocol, and used by the tag to identify the command.

[0102] 2) Slot width: The time allocated for a single tag to communicate.

[0103] 3) Starting time slot number: The starting time slot number is used to specify the first response tag in the subsequent collection frame.

[0104] 4) End slot number: The end slot number is used to specify the tag of the last response in the subsequent collection frame.

[0105] 5) Data reporting identification: used to inform the tag which sensor real-time data in the sensor real-time data transparent file needs to be included in the response. For example, 1 byte of data is 8 bits, corresponding to the identification bits of up to 8 sensors.

[0106] 6) Delay width: The delay time at the start of the acquisition time slot (to allow time for the sensor to measure in real time).

[0107] As an embodiment of the present invention, a fast collection command is added. This command is used by the gateway to directly switch the tag from the listening state to the collection state, and can immediately respond to the real-time data fast collection command. Among them, after the tag receives the command, the tag whose allocated time slot number is in the interval between the starting time slot number and the ending time slot number responds in the agreed time slot. The tag with the same number as the starting time slot immediately replies after the delay width, and other tags return responses in the corresponding time slots in turn.

[0108] The fast acquisition command includes: command code, time slot width, start time slot sequence number, end time slot sequence number, data reporting mark, delay width and sleep control;

[0109] The command code is used to enable the tag to identify the rapid acquisition command;

[0110] The slot width is the time allocated for a single tag to communicate;

[0111] The starting time slot number is used to specify the first response tag in the subsequent acquisition frame;

[0112] The end slot number is used to specify the tag of the last response in the subsequent acquisition frame;

[0113] The data reporting identifier is used to identify the sensor real-time data in the sensor real-time data transparent file that needs to be included in the tag response;

[0114] The delay width is the delay time from the start of the acquisition time slot, within which the tag can prepare the response data.

[0115] The sleep control is used to specify the tag state after the tag responds to the fast acquisition command, and the tag state includes a sleep state and an acquisition state.

[0116] As an embodiment of the present invention, the format definition of the fast acquisition command is shown in Table 5 below:

[0117]

[0118] Table 5

[0119] Description of each data item:

[0120] 1) Command code: defined by the manufacturer, as long as it does not conflict with the 2.45G national standard protocol, and used by the tag to identify the command;

[0121] 2) Slot width: the time allocated for a single tag to communicate;

[0122] 3) Starting time slot number: The starting time slot number is used to specify the first responding tag in the subsequent acquisition frame;

[0123] 4) Ending slot number: The ending slot number is used to specify the last responding tag in the subsequent acquisition frame;

[0124] 5) Data reporting identification: used to inform the tag which sensor real-time data in the sensor real-time data transparent file needs to be included in the response. For example, 1 byte of data is 8 bits, corresponding to the identification bits of up to 8 sensors;

[0125] 6) Delay width: The delay time at the start of the acquisition time slot (to allow time for the sensor to measure in real time).

[0126] 7) Sleep control: used to specify whether the tag will sleep immediately after responding to a command. 00h means sleep immediately; 01h means keep collecting data.

[0127] In order to achieve maximum compatibility with the GB / T 28925 protocol, the gateway should regard this command as an extension of the direct session command; that is, the processing and response to this command are equivalent to the processing of the direct session command.

[0128] like Figure 4 As shown, there are three ways to collect sensor data between the gateway and the tag:

[0129] 1. Acquisition of sensor data is realized through the GB / T 28925 national standard file reading operation command. That is, if the data acquisition command is a file reading command, sensor data acquisition is realized according to the GB / T 28925 national standard file.

[0130] 2. Realize batch and multi-parameter real-time collection of sensors through customized batch acquisition commands according to GB / T 28925 national standard.

[0131] 3. Through the fast acquisition command extended by GB / T 28925 national standard, the gateway pre-allocates a fixed time slot to each tag. After the tag wakes up, it directly performs fast acquisition on the sensor tag.

[0132] Furthermore, if Figure 5 As shown, if the data acquisition command is a batch acquisition command, then:

[0133] S501. The tag responds to the ready command sent by the gateway. If the tag carries a sensor, the tag enters the ready state; otherwise, the tag goes into sleep mode. The ready command is, for example, a "sleep all tags except a certain type of tag" command, which puts tags without sensors into sleep mode and tags with sensors into readiness mode, ready to respond to subsequent commands. The "certain type" in the command is a condition, which is variable. For example, at this time, the condition is "whether to carry a sensor".

[0134] S502: The gateway performs access operations on tags in the ready state, and allocates an access time slot number to each tag that successfully accesses.

[0135] The access operation includes: the gateway sends commands such as "access frame start", "access frame time slot", "access success confirmation", "access failure confirmation" and so on in sequence to complete the tag access operation.

[0136] The time slot number is a serial number that is accumulated from zero and is non-repeatable. It is used for tags to reply data to the gateway in sequence according to the serial number. If all tags reply data to the gateway at the same time, a collision will occur and the gateway will not receive the data. The access time slot number is the time slot number assigned to the tag after successful access, which is different from the fixed time slot number. The access time slot number can be regarded as a temporary time slot number, which does not involve recycling. Because the collection in this process must first access to obtain the access time slot number; then collect, the access time slot number will automatically become invalid after the collection is completed. If you collect again next time, you must re-access and reallocate the access time slot number.

[0137] S503, the tags whose allocated access time slot numbers are between the starting time slot number and the ending time slot number respond to the batch collection command sent by the gateway, collect sensor data, and feed back the tag ID information and the collected sensor data to the gateway in sequence according to the order of the access time slot numbers.

[0138] The tags whose allocated access time slot numbers are between the starting time slot number and the ending time slot number respond to the batch collection command sent by the gateway, which is equivalent to the tag with the starting time slot number replying immediately after the delay width, and other tags return responses in the corresponding time slots in turn.

[0139] The batch collection command is a custom command compatible with the national standard protocol GB / T 28925. The command is compatible with the label collection and processing flow in the national standard protocol to the greatest extent.

[0140] Furthermore, if Figure 6 As shown, if the data acquisition command is a fast acquisition command, then:

[0141] S601. The tag responds to the ready command sent by the gateway. If the tag carries a sensor, the tag enters the ready state; otherwise, the tag goes into sleep mode. The ready command is, for example, a "sleep all tags except a certain type of tag" command, which puts tags without sensors into sleep mode and tags with sensors into readiness mode, ready to respond to subsequent commands. The "certain type" in the command is a condition, which is variable. For example, at this time, the condition is "whether to carry a sensor".

[0142] S602, the tags whose allocated fixed time slot numbers are within the interval between the starting time slot number and the ending time slot number and are in a ready state respond to the fast collection command sent by the gateway to collect sensor data, and feed back the tag ID information and the collected sensor data to the gateway in sequence according to the order of the fixed time slot numbers of the tags.

[0143] The time slot number is a serial number that is accumulated from zero and is non-repeatable. The tags are used to reply data to the gateway in sequence according to the serial number. If all tags reply data to the gateway at the same time, a collision will occur and the gateway will not receive the data. The fixed time slot number is generated for each tag during the sensor tag configuration phase, which is different from the access time slot number. The fixed time slot number can be regarded as a non-temporary time slot number. When the tag is delisted, the upper computer management platform will recycle the fixed time slot number of the tag, and the fixed time slot number can be reallocated to other tags after recycling.

[0144] The fast acquisition command is a newly added custom command. By using this command, tedious access operations are omitted, and the purpose of faster sensor data acquisition is achieved.

[0145] In some embodiments, after the tag collects sensor data, if the value of the sensor data reaches a preset sensor data alarm range, the tag switches from the GB / T28925 protocol working channel to the alarm channel and reports the alarm data to the gateway according to a preset alarm period.

[0146] Furthermore, when the value of the sensor data returns to outside the sensor data alarm range or receives an alarm release command sent by the gateway, the tag switches from the alarm channel to the GB / T28925 protocol working channel. The sensor data alarm range is limited by the alarm threshold set by the sensor tag. The alarm channel and alarm threshold can be set in the settings of the sensor tag, and the specific configuration of the alarm function can be implemented through Table 6:

[0147] Storage Location Data content Data length Remark Bytes 1 to 2 Upper threshold value 2 bytes Set according to actual needs Bytes 3-4 Threshold lower limit 2 bytes Set according to actual needs Byte 5 Alarm channel 1 byte The default configuration is 15 Byte 6 Alarm cycle 1 byte Unit: Minutes Byte 7 Alarm Enable 1 byte Whether to enable the alarm function

[0148] Table 6

[0149] Furthermore, the gateway collects the identity data and sensor data of the sensor tags and uploads them to the IoT cloud platform via the 4G wireless network.

[0150] According to the embodiments of the present invention, the batch or rapid collection function of sensor data can be realized by adding new commands under the premise of being compatible with the national standard GB / T 28925-2012 protocol, and the function of ultra-long-distance RFID sensor can be realized; three methods of acquiring real-time data can be supported, and batch rapid sensor data can be collected for multiple sensors and multiple tags; multiple sensor tags can be read in a short time, and the collection is faster and the working method is more flexible compared with the collection of ordinary sensors; the problem that sensor RFID tags carrying sensors in the GB / T 28925 national standard protocol cannot collect sensor data in batches and quickly is solved.

[0151] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0152] The above is an introduction to a method embodiment. The following is a further explanation of the solution of the present invention through an apparatus embodiment.

[0153] like Figure 7 As shown, the system 700 includes:

[0154] The card reader 710 generates an air interface command corresponding to the GB / T28925 protocol according to the initialization and configuration commands sent by the host computer platform, and sends it to the tag to initialize and configure the tag;

[0155] Tag 720, in response to the air interface command of the card reader, performs initialization and configuration, and then performs deployment and network access operations to establish wireless communication between the tag and the gateway; in response to the data collection command sent by the gateway, collects sensor data, and feeds back the sensor data and tag ID information to the gateway according to the time slot number.

[0156] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0157] In the technical solution of the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0158] According to an embodiment of the present invention, the present invention also provides an electronic device and a readable storage medium.

[0159] Figure 8 A schematic block diagram of an electronic device 800 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0160] The device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0161] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0162] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as methods S301 to S303. For example, in some embodiments, methods S301 to S303 may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the methods S301 to S303 described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to execute methods S301 to S303 in any other appropriate manner (eg, by means of firmware).

[0163] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0164] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0165] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0166] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0167] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0168] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0169] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0170] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A data collection method for an RFID sensor tag, characterized in that: include: The card reader generates an air interface command corresponding to the GB / T28925 protocol according to the initialization command and configuration command sent by the host computer platform, and sends it to the tag to initialize and configure the tag; Performing deployment and network access operations on the initialized and configured tags, so that the tags establish wireless communication with the gateway; The tag collects sensor data in response to the data collection command sent by the gateway, and feeds back the sensor data and tag ID information to the gateway according to the time slot number; If the data acquisition command is a fast acquisition command, then: The tag responds to the ready command sent by the gateway, and if the tag carries a sensor, the tag enters the ready state; otherwise, the tag goes into sleep mode; The tags whose allocated fixed time slot numbers are within the interval between the start time slot number and the end time slot number and are in the ready state respond to the fast collection command sent by the gateway to collect sensor data, and feed back the tag ID information and the collected sensor data to the gateway in sequence according to the order of the fixed time slot numbers of the tags; The initializing and configuring the tag includes: Initialize the file system of the tag; the file system includes a sensor folder, a sensor configuration file, a sensor real-time data file, and a minimum file system specified by the GB / T 28925 protocol; Configuring the sensor acquisition period of the tag and assigning a fixed time slot number to the tag; The sensor folder is a DF file, which is used to store data files; The sensor configuration file includes a storage location, data content, data length and remarks, wherein the data content includes: a fast acquisition fixed time slot number and a fast acquisition enable.

2. The method according to claim 1, characterized in that If the data collection command is a batch collection command, then: The tag responds to the ready command sent by the gateway, and if the tag carries a sensor, the tag enters the ready state; otherwise, the tag goes into sleep mode; The gateway performs access operations on tags in the ready state and assigns an access time slot number to each tag that successfully accesses; Tags whose allocated access time slot numbers are between the starting time slot number and the ending time slot number respond to the batch collection command sent by the gateway to collect sensor data, and feed back the tag ID information and the collected sensor data to the gateway in sequence according to the order of the access time slot numbers.

3. The method according to claim 2, characterized in that The batch acquisition command includes: command code, time slot width, start time slot sequence number, end time slot sequence number, data reporting flag and delay width; The command code is used to enable the tag to identify the batch acquisition command; The slot width is the time allocated for a single tag to communicate; The starting time slot number is used to specify the first response tag in the subsequent acquisition frame; The end slot number is used to specify the tag of the last response in the subsequent acquisition frame; The data reporting identifier is used to identify the sensor real-time data in the sensor real-time data transparent file that needs to be included in the tag response; The delay width is the delay time from the start of the acquisition time slot.

4. The method according to claim 1, characterized in that: The fast acquisition command includes: command code, time slot width, start time slot sequence number, end time slot sequence number, data reporting mark, delay width and sleep control; The command code is used to enable the tag to identify the rapid acquisition command; The slot width is the time allocated for a single tag to communicate; The starting time slot number is used to specify the first response tag in the subsequent acquisition frame; The end slot number is used to specify the tag of the last response in the subsequent acquisition frame; The data reporting identifier is used to identify the sensor real-time data in the sensor real-time data transparent file that needs to be included in the tag response; The delay width is the delay time from the start of the acquisition time slot; The sleep control is used to specify the tag state after the tag responds to the fast acquisition command, and the tag state includes a sleep state and an acquisition state.

5. The method according to claim 1, characterized in that Also includes: After the tag collects sensor data, if the value of the sensor data reaches the preset sensor data alarm range, the tag switches from the GB / T28925 protocol working channel to the alarm channel and reports the alarm data to the gateway according to the preset alarm cycle; When the value of the sensor data is restored to outside the sensor data alarm range or an alarm release command sent by the gateway is received, the tag switches from the alarm channel to the GB / T28925 protocol working channel.

6. The method according to claim 1, characterized in that Also includes: If the tag is de-networked, the host computer platform reclaims the fixed time slot number of the tag, and the fixed time slot number is used for reallocation.

7. A data acquisition system for an RFID sensor tag, characterized in that: include: The card reader generates an air interface command corresponding to the GB / T28925 protocol according to the initialization and configuration commands sent by the host computer platform, and sends it to the tag to initialize and configure the tag; The tag, in response to the air interface command of the card reader, is initialized and configured, and then performs deployment and network access operations to establish wireless communication between the tag and the gateway; In response to a data collection command sent by the gateway, the sensor data is collected, and the sensor data and tag ID information are fed back to the gateway according to the time slot number; If the data acquisition command is a fast acquisition command, then: The tag responds to the ready command sent by the gateway, and if the tag carries a sensor, the tag enters the ready state; otherwise, the tag goes into sleep mode; The tags whose allocated fixed time slot numbers are within the interval between the start time slot number and the end time slot number and are in the ready state respond to the fast collection command sent by the gateway to collect sensor data, and feed back the tag ID information and the collected sensor data to the gateway in sequence according to the order of the fixed time slot numbers of the tags; The initializing and configuring the tag includes: Initialize the file system of the tag; the file system includes a sensor folder, a sensor configuration file, a sensor real-time data file, and a minimum file system specified by the GB / T 28925 protocol; Configuring the sensor acquisition period of the tag and assigning a fixed time slot number to the tag; The sensor folder is a DF file, which is used to store data files; The sensor configuration file includes a storage location, data content, data length and remarks, wherein the data content includes: a fast acquisition fixed time slot number and a fast acquisition enable.

8. An electronic device, comprising at least one processor; and A memory communicatively connected to the at least one processor; characterized in that The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Low power consumption continuous information uploading method of microwave frequency active radio frequency identification (RFID) system

    CN101980253A

  • Method for communicating reader and tags in radio frequency identification

    CN102147849A

  • Active RFID low-power-consumption anti-collision method

    CN104392191A