Data communication method and device, equipment, storage medium and product
By implementing the data communication method in the RFID reader and writer, distinguishing and processing RFID data according to the data priority, the network performance problem caused by the failure of the RFID system to distinguish data priority is solved, and the reliability of data transmission and the adaptability of the system are improved.
Patent Information
- Application Number
- CN202411572099.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-02-14
AI Technical Summary
The RFID system does not prioritize data, which makes it difficult to ensure network performance, insufficient reliability of key data transmission, unreasonable resource allocation, insufficient response speed for emergency tasks, and poor overall system adaptability.
By implementing a data communication method in an RFID reader and writer, the target RFID tag is determined based on the current processing event, the tag information and priority are obtained, the data priority is constructed, and the data is sent to an external network device for hierarchical processing according to the data priority is carried out. .
By distinguishing data at priority, we ensure that high-priority data can be efficiently transmitted, network performance is improved, resource rational utilization is ensured, and overall adaptability and response speed of the system are improved.
Smart Images

Figure CN119450426A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to data communication methods, devices, equipment, storage media and products. Background Art
[0002] Radio Frequency Identification (RFID) is an automatic identification technology that uses radio waves for identification and data exchange. The RFID system mainly consists of three parts: RFID tags, RFID readers and writers, and background databases. With the popularization of RFID tags, a large amount of network traffic needs to be provided by readers and writers, and RFID applications will also expand accordingly, such as short-distance communication, supply chain automation, asset management, personnel tracking and other scenarios. The types of data read include but are not limited to: product information, location data, status data (such as temperature, humidity), etc. These data are used in different industries and have different requirements for latency and bandwidth.
[0003] However, due to the limited network bandwidth, congestion may occur, so it is important to distinguish the level of data. However, the current RFID system does not have a dedicated QoS (Quality of Service) guarantee mechanism, cannot guarantee bandwidth, and cannot process RFID data based on different priorities, resulting in the reliability of key data transmission cannot be guaranteed, unreasonable resource allocation, insufficient response speed of emergency task system, poor overall system adaptability, and the possibility of repeated execution of read and write tasks, making it difficult to guarantee the performance of the RFID network. Summary of the invention
[0004] The main purpose of this application is to provide a data communication method, device, equipment, storage medium and product, aiming to solve the technical problem that the RFID system does not distinguish data priority, resulting in difficulty in ensuring the network performance of the RFID system and its docking system.
[0005] To achieve the above-mentioned purpose, the present application proposes a data communication method, which is applied to an RFID reader;
[0006] The method comprises:
[0007] Determine the target RFID tag according to the current processing event, wherein the current processing event is a tag information reading event currently being processed and initiated by an external network device;
[0008] Acquire tag information in the target RFID tag and a tag priority corresponding to the target RFID tag;
[0009] Constructing a data priority corresponding to the tag data according to the reader priority and / or the tag priority;
[0010] The data priority and the tag information are sent to the external network device.
[0011] Optionally, before determining the target RFID tag according to the current processing event, the method further includes:
[0012] determining at least one RFID event based on a read command sent by an external network device;
[0013] Get the event priority corresponding to each RFID event;
[0014] Sort each RFID event based on the event priority to generate an event sequence;
[0015] extracting a currently processed event from the event sequence;
[0016] After sending the priority category and the label information to the external network device, the method further includes:
[0017] Detecting whether there is an unprocessed event in the event sequence;
[0018] If so, return to the step of extracting the current processing event from the event sequence.
[0019] Optionally, obtaining the event priority corresponding to each RFID event includes:
[0020] Determine the network priority corresponding to each RFID event according to the read command;
[0021] Detect whether the RFID priority is stored in the external space;
[0022] If it is not stored in the external space, the network priority is used as the event priority corresponding to each RFID event.
[0023] Optionally, after detecting whether the RFID priority is stored in the external space, the step further includes:
[0024] If stored in an external space, reading an RFID priority list from the external space, the RFID priority list including tag priority and / or reader priority;
[0025] Determine the RFID priority corresponding to each RFID event according to the RFID priority list;
[0026] The event priority corresponding to each RFID event is determined according to the network priority and the RFID priority.
[0027] Optionally, sending the data priority and the label information to the external network device includes:
[0028] Selecting a data transmission link according to the data priority;
[0029] The data priority and the tag information are sent to the external network device based on the data sending link.
[0030] Optionally, the acquiring the tag information in the target RFID tag and the tag priority corresponding to the target RFID tag includes:
[0031] Acquire tag information in the target RFID tag and priority information stored in the target RFID tag;
[0032] If the RFID priority is stored in the external space, detecting whether the priority information corresponding to the target RFID tag stored in the external space is consistent with the priority information stored in the target RFID tag;
[0033] If they are inconsistent, determining the tag priority corresponding to the target RFID tag according to the priority information stored in the target RFID tag and the priority information corresponding to the target RFID tag stored in the external space;
[0034] The priority information stored in the target RFID tag is updated according to the tag priority, or the priority information corresponding to the target RFID tag stored in the external space is updated.
[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a data communication device, the device comprising:
[0036] A determination module, used to determine a target RFID tag according to a current processing event, wherein the current processing event is a tag information reading event currently being processed and initiated by an external network device;
[0037] An acquisition module, used to acquire tag information in the target RFID tag and a tag priority corresponding to the target RFID tag;
[0038] A construction module, used to construct a data priority corresponding to the tag data according to the reader priority and / or the tag priority;
[0039] A sending module is used to send the data priority and the label information to the external network device.
[0040] In addition, to achieve the above-mentioned purpose, the present application also provides a data communication device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data communication method as described above.
[0041] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data communication method described above are implemented.
[0042] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the data communication method described above are implemented.
[0043] One or more technical solutions proposed in this application have at least the following technical effects:
[0044] Since the priority can be used to distinguish each data, and the data priority and tag information are sent to the external network device, the RFID system and the external network device can process the data in a hierarchical manner according to the data priority, ensuring the rational use of resources and thus improving network performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0047] Figure 1 A flowchart of the first embodiment of the data communication method of the present application is provided;
[0048] Figure 2 This is a schematic diagram of the RFID system structure of an embodiment of the present application;
[0049] Figure 3 A schematic diagram of a data upload process according to an embodiment of the present application;
[0050] Figure 4 This is a schematic diagram of the network connection of an RFID system according to an embodiment of the present application;
[0051] Figure 5A schematic diagram of selecting a communication link for an RFID system according to an embodiment of the present application;
[0052] Figure 6 A schematic diagram of network switching of an RFID system according to an embodiment of the present application;
[0053] Figure 7 A flowchart of the second embodiment of the data communication method of the present application is provided;
[0054] Figure 8 A schematic diagram of a process for determining event priority according to an embodiment of the present application;
[0055] Fig. 9 A schematic diagram of a data communication execution flow according to an embodiment of the present application;
[0056] Fig.10 This is a schematic diagram of the module structure of the data communication device according to an embodiment of the present application;
[0057] Fig.11 Schematic diagram of the device structure of the hardware operating environment involved in the data communication method in the embodiment of the present application.
[0058] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0059] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0060] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0061] Based on this, the embodiment of the present application provides a data communication method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the data communication method of the present application.
[0062] In this embodiment, the data communication method is applied to an RFID reader / writer, and the data communication method includes steps S10 to S40:
[0063] Step S10: Determine the target RFID tag according to the current processing event.
[0064] It should be noted that the execution subject of this embodiment can be an RFID system or an RFID reader / writer in the RFID system. In this embodiment and the following embodiments, the data communication method of this application is described by taking the RFID reader / writer as an example.
[0065] It should be noted that the currently processed event may be a tag information reading event currently being processed by the RFID reader / writer and initiated by an external network device (such as a mobile phone, a server or other device).
[0066] In actual use, the currently processed event may include an event ID (such as a number), a network priority of the event, identification information of the accessed RFID reader / writer, and identification information of the RFID tag.
[0067] The network priority of the event may be used to characterize the importance of the information to be obtained in this event to the external network device.
[0068] For ease of understanding, now combined Figure 2 This is for illustration only, but not for limitation. Figure 2 Schematic diagram of the RFID system structure of this embodiment.
[0069] like Figure 2 As shown, two networks are included, one is an RFID network including tags and readers (i.e., a network composed of RFID systems, which has priority), and the other is an external network connected to the RFID network (the external network may include external network devices). The external network devices in the second network can send read commands to the RFID readers in the RFID system, so that the RFID readers can obtain the data of the tags and feedback them. The data communication method of this embodiment is applied to Figure 2 The RFID reader (i.e. RFID reader / writer) in.
[0070] Step S20: Acquire tag information in the target RFID tag and a tag priority corresponding to the target RFID tag.
[0071] In actual use, after determining the target RFID tag, the target RFID reader / writer can read the tag information stored in the target RFID tag.
[0072] The RFID tag can store its own priority information, so the priority information in the target RFID tag can be read at this time, and the priority of the RFID tag can be determined based on the priority information. The priority information in the RFID tag can be pre-set by the administrator of the data communication equipment according to the importance of the tag information stored in the RFID tag.
[0073] For example: RFID tags can use a header + value encoding scheme. The header stores the tag ID and can also define attributes such as the value type and length. The value field usually contains RFID data. The header field also contains a priority field, which corresponds to the tag's priority value. The writing of priority values can be customized by the tag or uniformly deployed through the reader. The priority value is written to the tag header after the reader is deployed. If there are a total of 8 priority RFID tags, 3 priority bits can be used to represent them. When writing, write a priority value of 7 to urgent and important RFID tags, and write a priority value of 2 to general RFID tags to distinguish high and low priorities.
[0074] Of course, the priority information can also be stored in the RFID reader. At this time, the RFID reader can read the priority information list stored in itself, and determine the tag priority corresponding to the target RFID tag according to the priority information list. Among them, the priority information list stored in the RFID reader may include the priority information of the RFID tags managed by the RFID reader.
[0075] The priority information stored in the RFID reader may include: tag priority information or reader priority information, or both, and both priority information need to be considered before adding the final priority level to the RFID event.
[0076] For example, commands from readers of RFID critical security applications have higher priority than general business commands, which can reduce the possibility of delays or bandwidth reduction for high-priority data packets in congested networks.
[0077] The RFID reader can be movable or fixed in position, and communicates with external network devices via wired or wireless means.
[0078] Step S30: constructing a data priority corresponding to the tag data according to the reader priority and / or the tag priority.
[0079] It should be noted that the reader priority can be the priority of the RFID reader itself. The RFID reader priority can be set according to the importance of the data accessed by the reader, the location of the reader, etc. If necessary, the priority information of the RFID reader can also include: the importance of the data accessed by the reader, the location of the reader, etc.
[0080] In actual use, the reader priority or tag priority can be directly used as the data priority corresponding to the tag data. Of course, the data priority corresponding to the tag data can also be generated by comprehensively judging based on the reader priority and the tag priority.
[0081] Among them, when making a comprehensive judgment, the data priority corresponding to the tag data can be generated by using the maximum value, minimum value, average value, median value, total value, weighted sum value, etc. between the reader priority and the tag priority.
[0082] Step S40: Send the data priority and the label information to the external network device.
[0083] In actual use, the RFID reader can communicate with the external network device via wired / wireless mode, and send the data priority and tag information to the external network device via the wired / wireless connection.
[0084] Since the data is transmitted from the RFID system to the external network device, the QoS technology used by the RFID system and the external network device may be different, and the priority level used in the RFID system may be different from that in the external network device. Therefore, before sending, it is necessary to map between the two groups of priorities. Based on this, a priority mapping table can be pre-built to store the mapping relationship between the two groups of priority levels.
[0085] At this time, the priority mapping table can be used to map the data priority corresponding to the tag information to the priority category used by the external network device. Then, the priority category and tag information are sent to the external network device to ensure that high priority data can be transmitted as in the RFID system.
[0086] In this process, the RFID reader can be used as a connection tool to map the priority information corresponding to the RFID network to the priority category of the external network device, and generate priority information that meets the use of the external network device. After the data is mapped, the RFID reader can pass the data to the external network device and continue to process the next event. The priority level of the RFID network in this embodiment can be mapped with an existing QoS mechanism (such as the quality of service mechanism specified in wireless LAN802.11e, 3GPP service level, etc.).
[0087] In a specific implementation, in order to ensure, the step S20 may include:
[0088] Acquire tag information in the target RFID tag and priority information stored in the target RFID tag;
[0089] If the RFID priority is stored in the external space, detecting whether the priority information corresponding to the target RFID tag stored in the external space is consistent with the priority information stored in the target RFID tag;
[0090] If they are inconsistent, determining the tag priority corresponding to the target RFID tag according to the priority information stored in the target RFID tag and the priority information corresponding to the target RFID tag stored in the external space;
[0091] The priority information stored in the target RFID tag is updated according to the tag priority, or the priority information corresponding to the target RFID tag stored in the external space is updated.
[0092] It should be noted that when the RFID priority is stored in the external space, certain situations may cause the priority information stored in the RFID tag to be inconsistent with the priority information stored in the external space. In this case, synchronization is required. Therefore, when obtaining the tag information in the target RFID tag and the priority information stored in the target RFID tag, if it is detected that the RFID priority is stored in the external space, it is necessary to detect whether the priority information corresponding to the target RFID tag stored in the external space is consistent with the priority information stored in the target RFID tag.
[0093] If the priority information corresponding to the target RFID tag stored in the external space is inconsistent with the priority information stored in the target RFID tag, the tag priority corresponding to the target RFID tag can be determined based on the priority information stored in the target RFID tag and the priority information corresponding to the target RFID tag stored in the external space. Thereafter, the priority information stored in the target RFID tag can be updated based on the tag priority, or the priority information corresponding to the target RFID tag stored in the external space can be updated.
[0094] For example, the priority information corresponding to the target RFID tag stored in the external space is used as the tag priority corresponding to the target RFID tag, and the priority information stored in the target RFID tag is updated, and vice versa, which will not be elaborated here.
[0095] Among them, when the priority information corresponding to the target RFID tag stored in the external space is inconsistent with the priority information stored in the target RFID tag, the last update time of the priority information of the two can be compared, and the part with a later last update time can be taken as the latest priority information, and the tag priority corresponding to the target RFID tag can be determined according to the latest priority information.
[0096] For ease of understanding, now combined Figure 3 This is for illustration only, but not for limitation. Figure 3 Schematic diagram of the data upload process of this embodiment.
[0097] like Figure 3As shown, the method for providing QoS for upstream data (the direction of reading information from a tag and transmitting it to an external network device in a second network) in the RFID system in this embodiment comprises the following specific steps:
[0098] Step 1: The RFID reader reads data from the RFID tag (sends a signal, and the RFID tag feeds back the data stored in the tag according to the signal). The data mainly includes RFID tag attributes, such as tag ID and priority information, etc. ( Figure 3 (3-1).
[0099] Step 2: The RFID reader needs to determine whether there is an externally stored priority, because when the reader obtains the tag data, it will store the priority of the read tag, which can improve the QoS of the overall RFID system. This method can obtain the reader priority information of the tag without accessing the tag itself ( Figure 3 (3-2).
[0100] Step 3: If the externally stored priority does not exist, the reader updates and stores the priority and broadcasts it to nearby readers ( Figure 3 3-7), then execute Figure 3 Middle 3-9.
[0101] Step 4: If the external storage priority exists, the reader accesses the priority ( Figure 3 (3-3).
[0102] Step 5: Compare the external storage priority and the tag priority to see if they are different ( Figure 3 3-4), if they are the same, execute Figure 3 Middle 3-9.
[0103] Step 6: If there is a discrepancy between the external storage priority and the tag priority, then corrections need to be made. Figure 3 3-5 in the figure is used to determine whether to update the external storage priority (i.e., determine which one is the tag priority corresponding to the target RFID tag according to the order of the last update time of the two, and determine which one needs to be updated). For example, in some cases, a reader changes the tag priority without updating the external storage priority. In this case, an update is required. The reader accesses the tag priority to update the external storage priority and broadcast it (3-7 in the figure), and then executes Figure 3 Middle 3-9.
[0104] Step 7: Figure 33-6 are used to determine whether to update the tag priority. The movement of the tag will cause the priority to change. For example, if the tag was originally attached to an important item, the priority was set higher. Later, the tag was moved to an unimportant item, and the priority was lowered. At this time, the tag priority needs to be rewritten ( Figure 3 3-8), rewriting can synchronize the priority of the external storage to the priority of the tag. For example, the reader can transmit the priority of the external storage to the RFID tag through a transmission channel such as a wired LAN, a wireless LAN, or a cellular network. Then execute Figure 3 Middle 3-9.
[0105] Step 8: Reader access tag priority ( Figure 3 3-9).
[0106] Step 9: The reader priority and the tag priority form the final calculation priority. The calculation here mainly uses some functions to combine the tag and reader priorities, such as maximum function, minimum function, average function, median function, sum function, and if necessary, deterministic functions such as tag-determinations and reader-determinations can also be used ( Figure 3 3-10).
[0107] Step 10: Map the calculated final priority to the priority on the second network ( Figure 3 3-11).
[0108] Step 11: The reader can transmit the RFID tag data together with the mapped priority to the second network through the transmission channel. With the mapped priority, the second network can forward the tag data to the corresponding destination with different urgency based on the priority of the data ( Figure 3 3-12).
[0109] In a specific implementation, in order to ensure the transmission efficiency of important data, step S40 in this embodiment may include:
[0110] Selecting a data transmission link according to the data priority;
[0111] The data priority and the tag information are sent to the external network device based on the data sending link.
[0112] It should be noted that the data transmission link may be a path for data transmission when sending data.
[0113] In actual use, multiple available data transmission links can be set in the RFID reader at the same time, and different data transmission links have different transmission efficiency and different network occupancy. Based on this, the administrator of the RFID reader can set the corresponding priority (or priority threshold) for each data transmission link in advance. Therefore, when data needs to be sent, the data priority can be matched with the corresponding priority (or priority threshold) set for each data transmission link, and the data transmission link can be selected. After that, the data priority and tag information are sent to the external network device through the data transmission link.
[0114] For ease of understanding, now combined Figure 4 , 5 and 6 for illustration, but not for limitation. Figure 4 This is a schematic diagram of the network connection of the RFID system of this embodiment. Figure 5 Select a schematic diagram for the RFID system communication link. Figure 6 FIG. 4 is a schematic diagram of network switching of the RFID system of this embodiment.
[0115] like Figure 4 As shown, including an RFID network and a second network, the RFID middleware and application software for implementing the RFID process can have components distributed thereon, access points / base stations, routers, and server controllers to support QoS. The application software can be located on top of the RFID middleware. Both the middleware and the application software can be updated by downloading updated versions from the network. For example, the RFID network includes an RFID reader coupled to an RFID tag via wireless technology (such as backscatter). The RFID network includes an RFID tag and an RFID reader. As shown in FIG. Figure 4 As shown, reader 1 can interact with RFID tags 1, 2, and 3, while reader 2 can interact with RFID tags 4, 5, and 6. RFID tags can also interact with multiple RFID readers. In addition, when an RFID tag is within the range of multiple RFID readers, the tag can also communicate with multiple readers. The RFID reader is coupled to the second network through various methods, including but not limited to a wired local area network ("wired LAN") access point, a wireless local area network ("wireless LAN") access point, and a cellular base station;
[0116] like Figure 4As shown, the RFID network communicates with the second network through any one of the wireless LAN access points 1-k, and each wireless LAN access point can communicate with multiple RFID readers. The access point can forward commands to the reader and retrieve data from the reader. The Internet / enterprise application or server controller can initiate a command to query a group of tags. The command can be received by the router and can be sent to the wireless LAN access point 1 or k. The access point can then forward the command to the appropriate RFID reader. The router, server controller, and Internet / enterprise application all support QoS. In addition, each reader contains RFID middleware software that can perform filtering operations to filter duplicate and erroneous tag readings. The reader forwards the filtered data to the wireless LAN access point, and then the access point forwards the data to the router. The router has an additional middleware software component that can perform some data processing functions before forwarding the data to the Internet / enterprise application or server controller that processes the RFID information. In some cases, the access point can also act as a router, so the router can be implemented within the wireless LAN access point. Since the data transmission process of the wired LAN is similar to that of the wireless LAN, the above process method is also applicable to the wired LAN.
[0117] The RFID network also communicates with the second network through a cellular network. The cellular network may include a cellular base station and a cellular backbone system. The cellular backbone system may route data received from the RFID reader through the cellular infrastructure to a data network to be received by a router. Various cellular networks with QoS may be used. For example, cellular networks such as General Packet Radio Service (GPRS) or Cellular Digital Packet Data Switching (CDPD) may be used to provide services such as packet switching. Through packet switching, the router determines a different path for each packet, and the packet assembler reconstructs the received sequential packets into a sequence. The cellular base station and cellular backbone system also support QoS. This may allow the cellular network to prioritize packets when they are received by the reader. Since cellular networks and wireless networks have many of the same characteristics, many of the functions of wireless LANs described above may also be applied to cellular networks, and vice versa.
[0118] In some cases, such as Figure 5As shown, RFID readers 1, 2, and 3 are multi-mode radio readers. Multi-mode radio readers are readers equipped with multiple radios, allowing them to communicate over multiple networks. This can allow the reader to transmit and receive data from other readers. For example, in the figure, RFID readers 1, 2, and 3 can communicate with each other through a network communication channel m1 using one network protocol, while RFID readers 1 and 3 can communicate with a wireless LAN access point through a network communication channel m2 using a second network protocol. Additional capabilities to meet QoS constraints are provided by providing multiple network options to the reader.
[0119] The specific data transmission link used by the RFID reader depends on the final priority. For example, in a certain RFID event, reader 3 needs to send the data received from RFID tags n-2 and n-1 to the distant wireless LAN access point 1;
[0120] In order to minimize energy usage while meeting QoS requirements, reader / writer 3 can select a network path (i.e., a data transmission link, also referred to as a data link) according to the final priority of the data. If the final priority of tag n-2 (i.e., the data priority corresponding to the tag data) is low, reader / writer 3 can send the data to reader / writer 2, reader / writer 2 forwards the data to reader / writer 1, and reader / writer 411 forwards the data to wireless LAN access point 1;
[0121] If the final priority level of tag n-1 is high, the reader 3 directly sends the data to the wireless LAN access point 1 through the network communication channel m2 to avoid introducing additional delays. In addition, the multimode radio reader also has a function: monitoring the network conditions on the second network. Network conditions such as signal strength, throughput or delay can be monitored in the second network. By monitoring the second network, the reader can switch from the current network to the second network when it is favorable. Avoid network switching failures caused by reduced load on the second network, reduced speed of the current network, changes in the reader's position, etc.
[0122] And as Figure 6As shown, RFID readers 1, 2, and 3 are multi-mode radio readers that can transmit data on various networks depending on their location, battery power, network usage costs, and network conditions. The readers can be embedded in portable electronic devices such as PDAs or mobile phones. Readers 1, 2, and 3 are capable of transmitting through wireless LAN and cellular networks. Reader 1 can be connected to a wireless LAN access point through an ad hoc network communication channel Q1 because it is within the range of the wireless network. Reader 2 can be connected to reader 3 through a network communication channel Q2. An ad hoc network is a self-configuring network that includes multiple mobile routers. Routers can move and organize them freely. And because the distance is shorter, connecting reader 2 to the ad hoc network channel Q2 saves more transmission energy and reduces network usage costs when compared to direct transmission to a cellular base station. Reader 3 can be connected to a cellular base station mainly through a network channel Q3. If network conditions change, the reader can also switch to another network.
[0123] For example, the reader 1 is mobile, and if it moves to a location where the wireless LAN signal is weak, it can switch to a cellular base station (provided that the cellular signal is strong). This flexible movement of the reader creates a more robust network that can withstand changing network conditions and network failures.
[0124] This embodiment provides a data communication method. Since the priority level can be used to distinguish each data, and the data priority level and tag information are sent to the external network device, the RFID system and the external network device can process the data in a hierarchical manner according to the data priority level, thereby ensuring that resources can be reasonably utilized, thereby improving network performance.
[0125] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 7 Before step S10, the data communication method further includes steps S01 to S02:
[0126] Step S01: determining at least one RFID event according to a read command sent by an external network device.
[0127] It should be noted that when an external network device needs to access an RFID tag to obtain corresponding data, it can send a read command to the RFID reader / writer. The external network device may need to access multiple RFID tags multiple times or multiple times. Therefore, the read command can contain multiple RFIDs. Therefore, the RFID reader / writer can parse the read command and generate at least one RFID event.
[0128] Step S02: Obtain the event priority corresponding to each RFID event.
[0129] It should be noted that each RFID event may correspond to an event priority, and the event priority is used to represent the importance of the RFID event.
[0130] In actual use, the external network device will set a corresponding network priority for each RFID event. The network priority is used to represent the importance of the RFID event reading data to the external network device. At this time, the network priority of the RFID event can actually be directly used as the event priority corresponding to the RFID event.
[0131] In a specific implementation, the priority information of the RFID system may also be stored in an external space. In this case, the priority of the RFID event. In this case, the external network device may also want to use the priority information of the RFID system and the network priority to comprehensively represent the priority of the RFID event. In order to distinguish specific scenarios, the implementation step S02 of this embodiment may include:
[0132] Determine the network priority corresponding to each RFID event according to the read command;
[0133] Detect whether the RFID priority is stored in the external space;
[0134] If it is not stored in the external space, the network priority is used as the event priority corresponding to each RFID event.
[0135] It should be noted that the external space can be a storage space in an external network device or a separately set cache space (such as a cache server, etc.), that is, the relevant information of the RFID priority may be stored in an external network device or in a specific server. In order to distinguish the scene, the RFID reader can first detect whether the RFID priority is stored in the external space.
[0136] In actual use, if the RFID priority is not stored in the external space, the network priority corresponding to each RFID event can be directly used as the event priority corresponding to each RFID event.
[0137] If the RFID priority is stored in the external space, the priority information of the RFID system and the network priority can be used to comprehensively represent the priority of the RFID event. Therefore, after the step of detecting whether the RFID priority is stored in the external space in this embodiment, the following steps may also be included:
[0138] If stored in an external space, reading the RFID priority list from the external space;
[0139] Determine the RFID priority corresponding to each RFID event according to the RFID priority list;
[0140] The event priority corresponding to each RFID event is determined according to the network priority and the RFID priority.
[0141] It should be noted that the RFID priority list includes tag priority and / or reader priority, wherein the tag priority is the priority information of the RFID tag in the RFID system, and the reader priority is the priority information of the RFID reader in the RFID system.
[0142] In actual use, the corresponding priority information can be searched in the RFID priority list according to the identifier of the RFID tag corresponding to the RFID event and the identifier of the RFID reader, and the found priority information is used as the RFID priority corresponding to the RFID event.
[0143] In actual application, the event priority corresponding to each RFID event can be determined by combining the network priority and the RFID priority for comprehensive judgment.
[0144] Among them, when making a comprehensive judgment, the maximum value, minimum value, average value, median value, total value, weighted sum value, etc. between the read network priority and the RFID priority can be used as the event priority corresponding to the data priority RFID event.
[0145] Step S03: Sort the RFID events based on the event priorities to generate an event sequence.
[0146] It should be noted that in order to ensure network performance, it is necessary to ensure that important RFID events are executed first. Therefore, the RFID events can be sorted from high to low based on the event priority to generate an event sequence.
[0147] Step S04: extracting the current processing event from the event sequence.
[0148] In actual use, extracting the current processing event from the event sequence may be performed by sequentially extracting the RFID events from the event sequence according to the sequence order of the event sequence, and taking the mentioned RFID events as the current processing event.
[0149] For ease of understanding, now combined Figure 8 This is for illustration only, but not for limitation. Fig. 9 The figure is a schematic diagram of the event priority determination process of this embodiment.
[0150] Figure 8 The method of providing QoS for downstream data (the direction in which the external network device in the second network sends the RFID event) in the RFID system of this solution is shown. The specific steps are as follows:
[0151] Step 1: When an external network device in the second network (external network) needs to obtain certain information from a tag in the RFID network, an RFID event can be generated. If there are multiple RFID events, they can be grouped and sent to the RFID network ( Figure 8 (2-1).
[0152] Step 2: The external network device associates the network priority with the RFID event. Here, the network priority refers to the importance of obtaining information to the second network. And the second network can be allowed to determine the order of executing RFID events by specifying the QoS level. For example: Assuming that the priority level is represented by a numerical value, the priority levels of RFID events 1, 2, and 3 are 2, 5, and 3 respectively. The larger the value, the higher the priority. This means that the second network wants to execute event 2 first, then event 3, and finally event 1 ( Figure 8 (2-2).
[0153] Step 3: The RFID event is sent to the RFID reader. The transmission path can be a wired LAN, a wireless LAN, or a cellular network. Figure 8 (2-3).
[0154] Step 4: RFID reader receives events ( Figure 8 2-4).
[0155] Step 5: After receiving the event, the reader performs a query operation to determine whether there is an RFID priority corresponding to the RFID event outside the tag. In one case, the priority can be stored in a table on the reader, and the RFID priority information can include tag priority information (for example, for one or more tags to be read) or reader priority information (such as based on the location of the reader). In another case, the priority is located on a second network ( Figure 8 2-5).
[0156] Step 6: If the corresponding priority exists outside the tag (i.e., the RFID priority is stored in the external space), the reader can request the RFID priority, and the request can be transmitted on a transmission channel such as a wired LAN, a wireless LAN, or a cellular network. The RFID reader then receives the corresponding priority, associates the priority with the RFID event, determines the RFID priority of each RFID event, calculates the network priority and the RFID priority, and obtains the final priority of each RFID event (i.e., the event priority). Finally, the RFID events are sorted based on the event priority, and the events are executed sequentially to obtain relevant information from the tag ( Figure 8 (2-7, 2-8, 2-9).
[0157] Step 7: If there is no corresponding priority outside the tag, then use the network priority as the final priority of the event, execute the event, and obtain relevant information from the tag ( Figure 8 (2-6, 2-10).
[0158] In this embodiment, after sending the priority category and the label information to the external network device, the method further includes:
[0159] Step S50: Detect whether there is any unprocessed event in the event sequence.
[0160] Step S60: If it exists, return to the step of extracting the current processing event from the event sequence.
[0161] In actual use, after sending the priority category and tag information to the external network device, the RFID reader can further determine whether there are any unprocessed RFID events, so it can detect whether there are any unprocessed events in the event sequence.
[0162] If there are unprocessed RFID events in the event sequence, the RFID events can be further extracted from the event sequence for processing, and therefore, the process can return to step S04.
[0163] For ease of understanding, now combined Fig. 9 This is for illustration only, but not for limitation. Fig. 9 Schematic diagram of the data communication execution flow of this embodiment.
[0164] like Fig. 9 As shown, the data communication execution process may include the following steps:
[0165] Step 1: The RFID reader receives a read command for an RFID event from the second network ( Fig. 9 4-1). This command may include one or more RFID events, which will obtain information from many RFID tags. RFID events may include a priority value to implement QoS when the command is transmitted from the network to the reader. Introducing QoS during command transmission can reduce delays or packet loss of high-priority data in the network by allowing high-priority RFID events to execute first. The network node sending the command to the RFID reader can set the priority of the command to match the priority of the RFID time.
[0166] Step 2: The RFID reader needs to determine whether the tag's priority information is stored externally ( Fig. 94-2). The tag priority information can be stored in the RFID reader, or stored externally (e.g., cache memory) for fast access. This is used to determine the way the reader interrogates the corresponding RFID tag. If the tag priority information is not stored externally, the RFID events are sorted according to the priority value assigned by the second network ( Fig. 9 4-3), then proceed to step 5 ( Fig. 9 4-6). For example: If the reader does not query the priorities of many tags before receiving the read command, and the RFID event does not have a priority, the reader will query the RFID tags in a random order. Once the reader receives the tag information, it will store the tag priority information to facilitate QoS queries for subsequent events. If the read command received from the second network contains tags that are not stored in the external priority, the above method can be used to sort the RFID events.
[0167] Step 3: If the tag priority is stored externally to the tag, the reader can retrieve this priority information ( Fig. 9 (4-4).
[0168] Step 4: The reader sorts the RFID events according to the priority information ( Fig. 9 4-5).
[0169] Step 5: Query RFID tags based on priority ( Fig. 9 4-6), the inquiry mainly includes sending signals to the RFID tag and receiving signals from the RFID tag ( Fig. 9 4-7), the received data mainly includes priority information, tag ID, tag attributes, etc.
[0170] Step 6: After the reader obtains the tag's priority, it compares the tag's priority information with the externally stored priority to see if they are different ( Fig. 9 4-8).
[0171] Step 7: If different, update external storage priority ( Fig. 9 4-9).
[0172] Step 8: You can Fig. 9 4-10 in the RFID reader priority. In RFID applications, readers can provide priorities based on user-defined criteria. For example, a reader has a pre-configured location priority. If the actual location of the reader is updated via GPS, the parameters of the reader priority are changed synchronously (read time, application type). The reader priority can be stored in the reader itself, so that the reader priority information can be quickly accessed. The priority order can also be stored elsewhere in the RFID network.
[0173] Step 9: The reader priority can be combined with the tag priority and calculated to form the final priority ( Fig. 9 For example, both the reader and the tag contain 8 levels of priority values, which means there are 64 possible priority combinations. Table 1 lists several cases of the 64 combinations.
[0174] Table 1 - The final priority is formed by combining the reader priority and the tag priority
[0175]
[0176] For tag #1, the tag priority is 2 and the reader priority is 5. For tag #2, the tag priority is 4 and the reader priority is 3. The fourth column of Table 1 shows that the tag priority determines the priority of the final calculation (i.e., ignoring the reader level). The fifth column is the opposite, where the reader priority value determines the priority of the final calculation (i.e., ignoring the tag level), which is applicable to the case where there is no tag priority. The last column is the priority obtained by the final calculation of the tag and reader priorities. The calculation function is P Max (tag priority, reader priority), where the larger of the tag and reader level is determined as the final priority. The calculation function can also be minimum, average, median, sum, weighted, etc., determined according to the RFID event attributes.
[0177] Step 10: The RFID reader can map the priority information of the tag to the priority information in the second network ( Fig. 9 4-12). For example, a component of the second network (eg, access point) or a cell base station may perform the mapping function by retrieving necessary information from the reader, and QoS may be applied to the second network.
[0178] The information needed to perform the mapping function may include the number of available network traffic classes. The number of available network traffic classes depends on the type of network to which the reader is connected.
[0179] For example, WLAN access points that support 802.11e, cellular base stations that support 3GPP QoS, and wired QoS with IP precedence / CoS. Example: The priority of a tag is represented by 3 bits. Therefore, there are 8 priority levels that can be mapped to the available network traffic classes.
[0180] Step 11: The reader can send the acquired tag information and mapping priority to the second network ( Fig. 9 4-13).
[0181] Step 12: The reader checks whether all RFID events have been executed. If all events have been processed, the reader has completed processing the command. If there are more events, the reader will continue to execute the next RFID event ( Fig. 9 4-14).
[0182] In addition, if the tag priority has not been stored (for example, the reader has never read the tag before), the reader can store the tag priority, including the tag ID and priority, so that the reader can perform QoS-based inquiries on the tag in the future.
[0183] This embodiment provides a data communication method. Since the RFID system also sorts the RFID events generated according to the command based on the priority, it is ensured that the high-priority RFID events can be executed first, which further improves the resource utilization and thus further improves the network performance.
[0184] This application also provides a data communication device, please refer to Fig.10 , the data communication device comprises:
[0185] A determination module 10, configured to determine a target RFID tag according to a current processing event, wherein the current processing event is a tag information reading event currently being processed and initiated by an external network device;
[0186] An acquisition module 20, configured to acquire tag information in the target RFID tag and a tag priority corresponding to the target RFID tag;
[0187] A construction module 30, configured to construct a data priority corresponding to the tag data according to a reader priority and / or the tag priority;
[0188] The sending module 40 is used to send the data priority and the label information to the external network device.
[0189] The data communication device provided by the present application adopts the data communication method in the above embodiment, which can solve the technical problem that the RFID system does not distinguish data priority, resulting in the difficulty in ensuring the network performance of the RFID system and the system connected to it. Compared with the prior art, the beneficial effects of the data communication device provided by the present application are the same as the beneficial effects of the data communication method provided by the above embodiment, and the other technical features in the data communication device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0190] The present application provides a data communication device, which includes: at least one processor; and a memory connected to the at least one processor; wherein 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 so that the at least one processor can execute the data communication method in the above-mentioned embodiment 1.
[0191] Reference below Fig.11 , which shows a schematic diagram of the structure of a data communication device suitable for implementing the embodiment of the present application. The data communication device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11 The data communication device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0192] like Fig.11 As shown, the data communication device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the data communication device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the data communication device to communicate with other devices wirelessly or by wire to exchange data. Although the data communication device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0193] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0194] The data communication device provided by the present application adopts the data communication method in the above embodiment, which can solve the technical problem that the RFID system does not distinguish data priority, resulting in the network performance of the RFID system and the system connected to it being difficult to ensure. Compared with the prior art, the beneficial effects of the data communication device provided by the present application are the same as the beneficial effects of the data communication method provided by the above embodiment, and the other technical features in the data communication device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0195] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0196] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0197] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the data communication method in the above-mentioned embodiment.
[0198] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0199] The computer-readable storage medium may be included in the data communication device; or may exist independently without being installed in the data communication device.
[0200] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the data communication device, the data communication device: determines the target RFID tag according to the current processing event, and the current processing event is a tag information reading event currently being processed and initiated by an external network device; obtains the tag information in the target RFID tag, and the tag priority corresponding to the target RFID tag; constructs the data priority corresponding to the tag data according to the reader priority and / or the tag priority; and sends the data priority and the tag information to the external network device.
[0201] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0202] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0203] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0204] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data communication method, and can solve the technical problem that the RFID system does not distinguish data priorities, resulting in the difficulty in ensuring the network performance of the RFID system and the system connected to it. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the data communication method provided by the above-mentioned embodiment, and will not be repeated here.
[0205] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the data communication method described above are implemented.
[0206] The computer program product provided by the present application can solve the technical problem that the RFID system does not distinguish data priorities, resulting in the difficulty in ensuring the network performance of the RFID system and the system connected to it. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the data communication method provided by the above embodiment, which will not be repeated here.
[0207] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A data communication method, characterized in that: Applied to RFID readers; The method comprises: Determine the target RFID tag according to the current processing event, wherein the current processing event is a tag information reading event currently being processed and initiated by an external network device; Acquire tag information in the target RFID tag and a tag priority corresponding to the target RFID tag; Constructing a data priority corresponding to the tag data according to the reader priority and / or the tag priority; The data priority and the tag information are sent to the external network device.
2. The data communication method according to claim 1, wherein: Before determining the target RFID tag according to the current processing event, the method further includes: determining at least one RFID event based on a read command sent by an external network device; Get the event priority corresponding to each RFID event; Sort each RFID event based on the event priority to generate an event sequence; extracting a currently processed event from the event sequence; After sending the priority category and the label information to the external network device, the method further includes: Detecting whether there is an unprocessed event in the event sequence; If so, return to the step of extracting the current processing event from the event sequence.
3. The data communication method according to claim 2, characterized in that: The obtaining of the event priority corresponding to each RFID event includes: Determine the network priority corresponding to each RFID event according to the read command; Detect whether the RFID priority is stored in the external space; If it is not stored in the external space, the network priority is used as the event priority corresponding to each RFID event.
4. The data communication method according to claim 3, characterized in that: After detecting whether the RFID priority is stored in the external space, the method further includes: If stored in an external space, reading an RFID priority list from the external space, the RFID priority list including tag priority and / or reader priority; Determine the RFID priority corresponding to each RFID event according to the RFID priority list; The event priority corresponding to each RFID event is determined according to the network priority and the RFID priority.
5. The data communication method according to claim 1, wherein: The sending the data priority and the label information to the external network device includes: Selecting a data transmission link according to the data priority; The data priority and the tag information are sent to the external network device based on the data sending link.
6. The data communication method according to any one of claims 1 to 5, characterized in that: The acquiring the tag information in the target RFID tag and the tag priority corresponding to the target RFID tag includes: Acquire tag information in the target RFID tag and priority information stored in the target RFID tag; If the RFID priority is stored in the external space, detecting whether the priority information corresponding to the target RFID tag stored in the external space is consistent with the priority information stored in the target RFID tag; If they are inconsistent, determining the tag priority corresponding to the target RFID tag according to the priority information stored in the target RFID tag and the priority information corresponding to the target RFID tag stored in the external space; The priority information stored in the target RFID tag is updated according to the tag priority, or the priority information corresponding to the target RFID tag stored in the external space is updated.
7. A data communication device, characterized in that: The device comprises: A determination module, used to determine a target RFID tag according to a current processing event, wherein the current processing event is a tag information reading event currently being processed and initiated by an external network device; An acquisition module, used to acquire tag information in the target RFID tag and a tag priority corresponding to the target RFID tag; A construction module, used to construct a data priority corresponding to the tag data according to the reader priority and / or the tag priority; A sending module is used to send the data priority and the label information to the external network device.
8. A data communication device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data communication method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data communication method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the data communication method according to any one of claims 1 to 6 are implemented.