[go: up one dir, main page]

CN103544050B - A kind of reader drive device, method and reader control system - Google Patents

A kind of reader drive device, method and reader control system Download PDF

Info

Publication number
CN103544050B
CN103544050B CN201210243675.XA CN201210243675A CN103544050B CN 103544050 B CN103544050 B CN 103544050B CN 201210243675 A CN201210243675 A CN 201210243675A CN 103544050 B CN103544050 B CN 103544050B
Authority
CN
China
Prior art keywords
reader
write
read
interface
mixed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210243675.XA
Other languages
Chinese (zh)
Other versions
CN103544050A (en
Inventor
陆娜
陈杰
王雪敏
张晓庆
张永智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Intelligent IoT Technology Co Ltd
Original Assignee
ZTE Intelligent IoT Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Intelligent IoT Technology Co Ltd filed Critical ZTE Intelligent IoT Technology Co Ltd
Priority to CN201210243675.XA priority Critical patent/CN103544050B/en
Publication of CN103544050A publication Critical patent/CN103544050A/en
Application granted granted Critical
Publication of CN103544050B publication Critical patent/CN103544050B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)

Abstract

The present invention discloses a kind of reader drive device, method and reader control system, the reader drive device includes communication unit and application operating interface unit, the application operating interface unit includes mixing read-write interface, the mixing read-write interface is used to receive calling for upper layer application, configure the mixing read-write rule of reader, mixing read-write operation is carried out to the label of two or more protocol type according to the mixing read-write rule control reader, it is additionally operable to obtain the mixing read-write result of reader, and reports to upper layer application;The communication unit is used to realize the information exchange between the mixing read-write interface and reader.The present invention passes through above technical scheme, solve the problems, such as that reader drive device is not supported to recognize various protocols type label in the prior art, or reader drive device is toggled between different application operate interface, application and development inconvenience, low efficiency and the problems such as high cost are caused.

Description

Reader driving device and method and reader control system
Technical Field
The invention relates to the field of Radio Frequency Identification (RFID), in particular to a reader driving device, a reader control system and a reader driving method which support and identify tags of various protocol types through a uniform interface.
Background
RFID systems typically include readers (readers), electronic TAGs (TAGs) and upper-level applications.
The reader is a radio frequency tag reading and writing device, is an information control and processing center of the RFID system, and is used for sending a reading and writing command to the electronic tag through a radio frequency channel; the electronic tag makes a corresponding response after receiving the read-write command, and the reader also acquires information written in the electronic tag from the upper application or reports the information read from the electronic tag to the upper application. Generally, data interaction is performed between the reader and the upper Application through a specific command format or an agreed protocol, and the interaction function is implemented through an Application Program Interface (API) between the reader and the upper Application. Most application operation interfaces (APIs) between the reader and the upper-layer application use a Read Interface Driver (RID) to implement Link control of the reader and basic operations such as reading and writing, and the RID encapsulates corresponding information into a DLL (Dynamic Link Library) format and provides the DLL format to the upper-layer application for development. At present, a reader can generally identify tags of only one protocol type, and a reader driving device often provides an application operation interface for only one protocol type. Sometimes, in an application scenario, tags of different protocol types need to be identified simultaneously, different application operation interfaces need to be set in the reader driving device for tags of various protocol types, so that the reader driving device is switched back and forth between different application operation interfaces, which causes the problems of inconvenience in application development, low efficiency, high cost and the like.
Disclosure of Invention
The invention provides a reader driving device, a reader control system and a reader driving method, which solve the problems that the reader driving device in the prior art does not support the identification of tags with various protocol types, or the reader driving device is switched back and forth among different application operation interfaces, so that the application development is inconvenient, the efficiency is low, the cost is high and the like.
In order to solve the technical problems, the invention adopts the following technical scheme.
A reader driving device is characterized by comprising a communication unit and an application operation interface unit, wherein the application operation interface unit comprises a mixed read-write interface, the mixed read-write interface is used for receiving the calling of upper-layer application, configuring the mixed read-write rule of a reader, controlling the reader to perform mixed read-write operation on tags of two or more protocol types according to the mixed read-write rule, and obtaining the mixed read-write result of the reader and reporting the mixed read-write result to the upper-layer application; the communication unit is used for realizing information interaction between the hybrid read-write interface and the reader.
In an embodiment of the present invention, the hybrid read/write interface is configured to receive a hybrid read/write parameter issued by an upper application, and configure a hybrid read/write rule of a reader according to the hybrid read/write parameter, where the hybrid read/write parameter carries two or more protocol types.
In an embodiment of the present invention, the hybrid read/write interface is configured to issue corresponding RO rules and AO rules to the reader according to two or more protocol types carried in the hybrid read/write parameters, so as to configure the hybrid read/write rules of the reader.
In an embodiment of the present invention, the hybrid read/write interface includes a hybrid read/write start interface, a hybrid read/write result acquisition interface, and a hybrid read/write stop interface; the mixed read-write starting interface is used for receiving the call of the upper application, issuing a mixed read-write rule to the reader and starting the mixed read-write operation of the reader; the mixed read-write result acquisition interface is used for acquiring the mixed read-write result of the reader and reporting the mixed read-write result to an upper layer application; the mixed read-write stopping interface is used for deleting the mixed read-write rule issued by the mixed read-write starting interface to the reader and stopping the mixed read-write operation of the reader.
In an embodiment of the present invention, the hybrid read/write interface is configured to control a reader to perform a circular hybrid read/write operation on tags of two or more protocol types according to the hybrid read/write rule.
In an embodiment of the present invention, the application operation interface unit further includes a mixed single counting interface and/or a mixed cycle counting interface; the mixed single counting interface is used for receiving the call of an upper application and controlling the reader to carry out single counting operation on the tags of two or more protocol types; the mixed single-period counting interface is used for receiving the calling of upper-layer application and controlling the reader to periodically count the tags of two or more protocol types.
In an embodiment of the present invention, the application operation interface unit further includes one or more single-protocol application operation interfaces, each single-protocol application operation interface is configured to accept a call of an upper-layer application, and control the reader to perform read-write, single-time counting, and/or periodic counting operations on tags of a single protocol type.
In an embodiment of the present invention, the single protocol application operation interface includes an ISO18000-6C protocol application operation interface and/or an ISO18000-6B protocol application operation interface; the ISO18000-6C protocol application operation interface is used for controlling a reader to read and write, count once and/or count periodically a label of an ISO18000-6C protocol type; the ISO18000-6B protocol application operation interface is used for controlling a reader to read and write, count once and/or count periodically a label of an ISO18000-6B protocol type.
In an embodiment of the present invention, the reader driving apparatus further includes a message processing unit, where the message processing unit includes an encoding module and a decoding module, where the encoding module is configured to convert information from the application operation interface unit into a bit stream format and transmit the bit stream format to the communication unit; the decoding module is used for converting the information from the communication unit into a Message format and correspondingly transmitting the Message format to the application operation interface unit.
In an embodiment of the present invention, the message processing unit further includes a buffer for storing information from the communication unit and providing the information to the decoding module.
In an embodiment of the present invention, the message processing unit further includes a queue processing module, configured to add information completely decoded by the decoding module to a message queue, and then provide the information to the application operation interface unit.
In an embodiment of the present invention, the message processing unit further includes a message searching module, configured to search for corresponding information from the message queue, and provide the corresponding information to the application operation interface unit.
In an embodiment of the present invention, the reader driving apparatus further includes a reader management unit, where the reader management unit includes a reader opening module and a reader closing module, where the reader opening module is configured to establish a link between the communication unit and the reader by setting a corresponding parameter object; the reader closing module is used for disconnecting the link between the communication unit and the reader.
In an embodiment of the present invention, the reader management unit further includes a link monitoring module, configured to monitor the reader in a reader client mode.
In an embodiment of the present invention, the reader management unit further includes a link detection module, configured to detect a link status of the reader.
A reader control system comprises a reader, an upper application and any one of the reader driving devices; the reader driving device comprises a communication unit and an application operation interface unit, wherein the application operation interface unit comprises a mixed read-write interface; the hybrid read-write interface is used for receiving the call of the upper application, configuring the hybrid read-write rule of the reader, controlling the reader to perform hybrid read-write operation on the tags of two or more protocol types according to the hybrid read-write rule, and also used for acquiring the hybrid read-write result of the reader and reporting the result to the upper application; the communication unit is used for realizing information interaction between the hybrid read-write interface and a reader; the upper layer application is used for calling the mixed read-write interface and receiving a mixed read-write result reported by the mixed read-write interface; the reader is used for carrying out information interaction with the mixed read-write interface through the communication unit, adding a mixed read-write rule configured by the mixed read-write interface, carrying out mixed read-write operation on tags of two or more protocol types according to the mixed read-write rule, and feeding back a mixed read-write result to the mixed read-write interface.
A reader driving method applied to any one of the reader driving apparatuses described above, the reader driving method comprising: a hybrid read-write interface in the reader driving device receives the call of an upper application; configuring a mixed read-write rule of a reader, wherein the mixed read-write rule is used for controlling the reader to perform mixed read-write operation on tags of two or more protocol types, and starting the mixed read-write operation of the reader according to the mixed read-write rule; and acquiring the mixed reading and writing result of the reader and reporting the result to the upper-layer application.
In an embodiment of the present invention, the process of configuring the hybrid read-write rule of the reader specifically includes: receiving a mixed read-write parameter issued by an upper layer application, wherein the mixed read-write parameter carries two or more than two protocol types; and configuring a mixed reading and writing rule of the reader according to the mixed reading and writing parameters.
In an embodiment of the present invention, the process of configuring the hybrid read-write rule of the reader according to the hybrid read-write parameter specifically includes: and issuing corresponding RO rules and AO rules to the reader according to two or more protocol types carried in the mixed read-write parameters so as to configure the mixed read-write rules of the reader, wherein one AO rule corresponds to one protocol type.
In an embodiment of the present invention, after obtaining the hybrid read-write result of the reader, the method further includes: and deleting the mixed reading and writing rule issued by the mixed reading and writing starting interface to the reader, and stopping the mixed reading and writing operation of the reader.
In an embodiment of the present invention, the hybrid read-write rule is a cyclic hybrid read-write rule, the cyclic hybrid read-write rule includes a cyclic operation interval, and the cyclic hybrid read-write rule is used to control a reader to perform a cyclic hybrid read-write operation on tags of two or more protocol types.
The invention has the beneficial effects that: the reader driving device, the reader control system and the reader driving method enable the reader to have the read-write operation function on the tags with two or more protocol types, and the upper application development can be performed corresponding to different protocol tags through a uniform application operation interface, so that the development cost is obviously reduced, and the working efficiency of the reader is improved.
Furthermore, the reader can have the single counting and periodic counting operation functions on the tags of two or more protocol types through the mixed single counting interface and the mixed periodic counting interface.
Furthermore, the reader driving device of the present invention may further include one or more single protocol application operation interfaces supporting identification of a relatively common single protocol type tag, such as an ISO18000-6C protocol application operation interface supporting identification of a relatively common ISO18000-6C protocol type tag, an ISO18000-6B protocol application operation interface supporting identification of a relatively common ISO18000-6B protocol type tag, and the like, in addition to the hybrid read-write interface. Under the condition that the user knows the protocol type of the identified label, an application operation interface corresponding to the protocol type can be called in the upper layer application to carry out information interaction, and the communication efficiency is improved. Under the condition that a user does not know the protocol type of the identified label or needs to identify labels of different protocol types at the same time, a mixed read-write interface, a mixed single counting interface and a mixed periodic counting interface can be called in upper-layer application to carry out service operation.
Drawings
FIG. 1 is a schematic diagram of a reader control system according to an embodiment of the present invention;
FIG. 2 is a diagram of an application operation interface unit in the system of FIG. 1;
FIG. 3 is a diagram of a hybrid read/write interface in the application operation interface unit shown in FIG. 2;
fig. 4 is a flowchart of the reader control system shown in fig. 1 controlling the reader to implement the service operation.
Detailed Description
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings.
In the invention, the Reader driving device can be realized based on LLRP (Low Level Reader Protocol). The mixed read-write operation means that the reader has the read-write operation function on the tags with two or more protocol types, including the simultaneous read-write operation on the tags with two or more protocol types and the cyclic read-write operation on the tags with two or more protocol types. For ISO18000-6C tags, there are mainly four areas, Reserve area, EPC area, TID area, and User area. For ISO18000-6B tags, a region is typically represented by several bytes, such as 8-12 bytes for one region and 16-20 bytes for another region of the tag. The method for performing cyclic mixed read-write operation on the ISO18000-6C label and the ISO18000-6B label comprises the following steps: circularly reading TID zone 0-4 bytes of ISO18000-6C label and 8-12 bytes of ISO18000-6B protocol label; or circularly read TID zone 0-4 bytes and User zone 0-8 bytes of ISO18000-6C label, and circularly read 8-12 bytes and 16-20 bytes of ISO18000-6B protocol label. The mixed read-write interface is used for configuring the mixed read-write operation function of the reader and transmitting the relevant information for realizing the function between the upper application and the reader through the communication unit. A hybrid single inventory operation refers to a reader having the functionality of a single inventory operation for tags of two or more protocol types. The mixed single-check interface is used for configuring the mixed single-check operation function of the reader and transmitting the relevant information for realizing the function between the upper-layer application and the reader through the communication unit. The mixed cycle counting operation means that the reader has a cycle counting operation function for tags of two or more protocol types. The mixed cycle counting interface is used for configuring the mixed cycle counting operation function of the reader and transmitting relevant information for realizing the function between the upper application and the reader through the communication unit.
As shown in fig. 1, a reader control system according to an embodiment of the present invention includes an upper application 1, a reader 2, and a reader driving device 3.
The reader driving device 3 includes an application operation interface unit 31, a communication unit 32, a message processing unit 33, and a reader management unit 34. The application operation interface unit 31 and the reader management unit 34 each implement corresponding operation control according to the call of the upper layer application 1. The communication unit 32 is used for realizing information interaction between the application operation interface unit 31, the message processing unit 33, the reader management unit 34 and the reader 2.
The upper application 1 can call the application operation interface unit 31 and the reader management unit 34 in the reader driving device 3, thereby implementing the reader link control and the service operation control. For example, the reader link control includes turning on the reader, turning off the reader, detecting the link, monitoring the link in the reader server mode, and the like; the business operation control comprises operations of counting, reading, writing, locking, killing and the like on the label of the ISO18000-6C protocol type, operations of counting, reading, writing, locking, killing and the like on the label of the ISO18000-6B protocol type, mixed single counting, mixed periodic counting, mixed read-write operations and the like on the labels of a plurality of protocol types.
The reader 2 can perform information interaction with the reader driving device 3 through a primitive interface.
The application operation interface unit 31 includes a multi-protocol application operation interface 311 supporting identification of two or more protocol type tags, and further includes an ISO18000-6C protocol application operation interface 312 supporting identification of only an ISO18000-6C protocol type tag, and an ISO18000-6B protocol application operation interface 313 supporting identification of only an ISO18000-6B protocol type tag. The ISO18000-6C protocol application operation interface 312 is used to control the reader 2 to perform service operations such as checking, reading, writing, locking, killing and the like on the tags of the ISO18000-6C protocol type. The ISO18000-6B protocol application operation interface 313 is used for controlling the reader 2 to perform business operations such as counting, reading, writing, locking, killing and the like on the tags of the ISO18000-6B protocol type. The multi-protocol application operation interface 311 is used for performing service operations such as mixed single-time counting, mixed periodic counting, mixed read-write and the like on tags of two or more protocol types. The application operation interface unit 31 may also include other single-protocol application operation interfaces supporting identification of tags of a single protocol type according to actual needs. The upper application 1 can configure the service operation function of the reader through the application operation interface unit 31, thereby implementing secondary development of the reader.
The multi-protocol application operation interface 311, the ISO18000-6C protocol application operation interface 312 and the ISO18000-6B protocol application operation interface 313 of the present invention all refer to interfaces with a set as a unit, for example, the multi-protocol application operation interface 311 refers to a set of multi-protocol application operation interfaces including at least one interface supporting identification of multiple protocol type tags. As shown in fig. 2:
the multi-protocol application operation interface 311 includes a mixed single-time counting interface 311a, a mixed periodic counting interface 311b, a mixed read-write interface 311c, and the like, and is respectively used for receiving the call of an upper application and performing mixed single-time counting, mixed periodic counting, and mixed read-write operations on tags of two or more protocol types. Taking the hybrid read-write interface 311c as an example, the upper application 1 may configure the hybrid read-write rule of the reader through the hybrid read-write interface 311c, so as to implement secondary development of the hybrid read-write function of the reader. Specifically, the hybrid read-write interface 311c receives the call of the upper application, configures the hybrid read-write rule of the reader 3, controls the reader 3 to perform the hybrid read-write operation on the tags of two or more protocol types according to the hybrid read-write rule, and is further configured to obtain the hybrid read-write result of the reader 3 and report the result to the upper application 1. The hybrid read/write interface 311c may configure the reader 3 according to a hybrid read/write rule preset in the interface, or may configure the hybrid read/write rule of the reader 3 according to a hybrid read/write parameter issued by the upper application 1, in short, the configured hybrid read/write rule enables the reader 3 to perform a hybrid read/write operation on tags of two or more protocol types.
The ISO18000-6C protocol application operation interface 312 comprises an ISO18000-6C checking interface 312a, an ISO18000-6C reading interface 312b, an ISO18000-6C writing interface 312C, an ISO18000-6C locking interface 312d, an ISO18000-6C killing interface 312e and the like, and is respectively used for realizing the checking, reading, writing, locking and killing operations of the reader 2 on the label of the ISO18000-6C protocol type. Taking the checking operation of the tag of the ISO18000-6C protocol type as an example, the ISO18000-6C checking interface 312a receives the call of the upper application 1, performs information interaction with the reader 2 through the communication unit 32, encapsulates the received checking information returned by the reader 2, and provides the information to the upper application 1.
The ISO18000-6B protocol application operation interface 313 comprises an ISO18000-6B counting interface 313a, an ISO18000-6B reading interface 313B, an ISO18000-6B writing interface 313c, an ISO18000-6B locking interface 313d, an ISO18000-6B killing interface 313E and the like, and is respectively used for realizing counting, reading, writing, locking and killing operations of the reader 2 on tags of the ISO18000-6B protocol type.
The message processing unit 33 is used for performing corresponding encoding and decoding on the information from the application operation interface unit 31 and the communication unit 32, and includes an encoding module 331, a decoding module 332, a buffer 333, a queue processing module 334, a message lookup module 335, and the like.
In the downlink direction, the encoding module 331 is configured to convert information (such as a Message format) from the multi-protocol application operation interface 311, the ISO18000-6C protocol application operation interface 312, and the ISO18000-6B protocol application operation interface 313 into a bit stream format for transmission to the communication unit 32, and preferably, the encoding module 331 performs conversion from the Message format to the bit stream based on the LLRP.
In the uplink direction, the decoding module 332 is used to convert the information (e.g. bit stream) from the communication unit 32 into a Message format and transmit the Message to the multiprotocol application operation interface 311, the ISO18000-6C protocol application operation interface 312 or the ISO18000-6B protocol application operation interface 313. Preferably, the decoding module 332 performs bit stream to Message format conversion based on LLRP.
In the uplink direction, before the decoding module 332 decodes, the buffer 333 may be used to store information (e.g., a bit stream) from the communication unit 2, and transmit the information to the decoding module 332 after receiving and processing the information according to a corresponding receiving state, where the receiving state of the information in the buffer includes three states, i.e., READY, FRAME _ ERROR, and new _ MORE, which respectively represent that a complete FRAME of information is received, the receiving is incorrect, and the information NEEDs to be continuously received. After the decoding module 332 completes decoding, the queue processing module 334 may be adopted to add the information completely decoded by the decoding module 332 to the message queue, and provide the information to the corresponding multi-protocol application operation interface 311, ISO18000-6C protocol application operation interface 312 or ISO18000-6B protocol application operation interface 313 according to the order of the message queue.
The message lookup module 335 is configured to provide the specific information to the multi-protocol application operation interface 311, the ISO18000-6C protocol application operation interface 312, or the ISO18000-6B protocol application operation interface 313 after looking up the specific information from the message queue. The searching can be carried out according to the information type or the ID number, and the information can be deleted from the message queue after the searching is finished. For example, the upper layer application calls the multi-protocol application operation interface 311, the multi-protocol application operation interface 311 sends an addROSpec (RO rule increase) message to the reader 2 based on the LLRP protocol, the reader 2 returns an addROSpec response message after receiving the addROSpec response message, at this time, the message lookup module 335 needs to lookup the addROSpec response message from the message queue, if the ID number of the message is consistent with the ID number of the addROSpec message, it is determined that the addROSpec response message is found, extract the addROSpec response message to the corresponding multi-protocol application operation interface 311, return the addROSpec response message to the upper layer application 1 through the corresponding multi-protocol application operation interface 311, and delete the message from the message queue.
The reader management unit 34 is configured to manage a link state of the reader 2, and includes a reader opening module 341, a reader closing module 342, a link monitoring module 343, and a link detection module 344, where when the upper application 1 interacts with the reader 2, the reader opening module 341 is configured to open the communication unit 32 by setting a corresponding parameter object, and establish a link between the communication unit 32 and the reader, and the reader closing module 342 is configured to disconnect the link between the communication unit 32 and the reader 1.
The communication mode of the reader driving device comprises a serial port mode and a network port mode, when the reader driving device 3 and the reader 2 realize communication in the serial port mode, the upper application 1 calls the reader management unit 34, sets a corresponding parameter object in the reader opening module 341 as a serial port parameter, namely, a serial port of the communication unit 32 can be opened to establish link with the reader 2, and after the link is completed, the reader closing module 342 can be called to disconnect the link with the reader 2. The network port mode comprises a reader server side mode and a reader client side mode. In the reader server mode, after the reader 2 is started, the upper application 1 calls the reader management unit 34, sets the corresponding parameter object in the reader opening module 341 to the IP information of the reader 2 to be linked, that is, the internet access of the communication unit 32 can be opened to link with the reader 2, and after the link is completed, the upper application 1 can call the reader closing module 342 to disconnect the link. In the reader client mode, the upper application 1 calls the reader management unit 34, monitors the reader 2 by using the link monitoring module 343, waits for the reader 2 to build a link, and can stop the link monitoring from disconnecting with the reader 2 after the link building is completed.
The link detection module 344 is configured to detect a link state of the readers 2 in real time or periodically during a link process, so as to determine the number of the readers 2 currently linked with the upper application 1, whether each reader 2 is normally linked with the upper application 1, and the like, and report to the upper application 1 if a certain reader 2 is already disconnected. Preferably, a heartbeat detection mode is adopted, that is, the link detection module 314 periodically replies heartbeat information of the reader 2 during the link process, for example, the heartbeat interval time is defaulted to 5s, if the heartbeat information of the reader 2 is not received within 10 seconds, the link detection module 314 determines that the link of the reader 2 is disconnected, and may also periodically send the heartbeat information to the reader 2 and wait for a response.
As shown in fig. 3, the hybrid read/write interface 311c is a schematic diagram of a hybrid read/write interface 311c, and the hybrid read/write interface 311c includes a hybrid read/write start interface (e.g., a startpedidrw interface of the LLRP protocol), a hybrid read/write result obtaining interface (e.g., a getpedidrwreresult interface of the LLRP protocol), and a hybrid read/write stop interface (e.g., a stopperiod rw interface of the LLRP protocol). Taking the cyclic mixed read-write operation based on the LLRP protocol as an example:
the StartPoriodrW interface receives the mixed read-write parameters issued by the upper application 1, analyzes the mixed read-write parameters, issues corresponding RO rules and AO rules to the reader 3 according to the mixed read-write parameters to configure the mixed read-write rules of the reader, and starts the mixed read-write operation of the reader after the RO rules and the AO rules are added and completed by the reader 3. Specifically, the startpedidrw interface receives the hybrid read-write parameters issued by the upper layer application 1, where the hybrid read-write parameters may include a cycle operation interval, an identifier of a reader, two or more protocol types, read-write information, and the like, and may also include mask information and the like. After the analysis, the corresponding RO rule and AO rule are issued to the reader 3, preferably, one RO rule and two or more AO rules are issued for one reader, wherein each AO rule corresponds to one protocol type, such as the following AO rule of an ISO18000-6B protocol and the following AO rule of an ISO18000-6C protocol. And packaging the RO rules and the AO rules into different messages and sending the messages to the reader. The specific process of issuing the RO rule and the AO rule may be:
firstly, issuing RO rules: the RO rules may include antenna configuration, protocol type (if the hybrid read/write parameters include two protocol types of ISO18000-6C and ISO18000-6B, then two protocol types of ISO18000-6C and ISO18000-6B, a loop operation interval, ROSpecID (unique identifier of RO rule), and other information, where ROSpecID is used to identify the RO rule and is issued to the reader 3 in the form of standard LLRP protocol Message, and the reader 3 adds the received RO rule and returns a notification of success or failure of addition to the startpedidr interface.
Secondly, aiming at the protocol types carried in the mixed reading and writing parameters, respectively issuing corresponding AO rules: the AO rule may be configured with an accessspec (unique identifier of the access rule) as a ropecid in the RO rule, the AO rule further includes a protocol type (if the mixed read-write parameters include two protocol types, i.e., ISO18000-6C and ISO18000-6B, then the AO rule is also configured with two protocol types, i.e., ISO18000-6C and ISO 18000-6B), at least one opsec (operation rule, including read opsec, write opsec, etc.), each opsec further carries a different opsecid, each AO rule may include multiple opsecspecs, one opsec may correspond to a region of a protocol type tag, e.g., in an AO rule, where one opsec is a read operation in a region of an ISO18000-6C protocol tag, a start address is 2, and a length is 8 words; another OpSpec is the USER area write operation of the ISO18000-6C protocol label, the starting address is 0, and the length is 4 words. The AO rule issued in this way can be used for reading the EPC area of the ISO18000-6C protocol label and can also be used for writing the USER area of the ISO18000-6C protocol label. Each AO rule is issued to the reader 3 in the form of a standard LLRP protocol Message, the reader 3 adds the received AO rule and returns a notification of success or failure of the addition to the StartPoriodrW interface. If OpSpec is not added, the reader will simply perform the inventory operation. The AO rule may further include mask information (after the mask information is configured, the mask report data needs to be matched, and only the tag matched with the mask information is subjected to read-write operation), an operation password (password for read-write operation, password verification is performed before the read-write operation, and the read-write operation is allowed after the verification is successful), and the like.
The Impinj label belongs to one of ISO18000-6C protocol labels, the label states of the Impinj label are public and private states, when the mixed read-write operation is carried out on the label, the mixed read-write interface issues a temporary public-private operation, and the subsequent AO adding operation is carried out.
After the reader 3 completes the addition of the RO rule and the AO rule, the StartPerodRW interface starts the circular mixed read-write operation of the reader.
The reader 3 reports the circulating mixed read-write result by taking an antenna as a unit, wherein the circulating mixed read-write result comprises tag content, the tag content comprises information such as a protocol type, the antenna, a tag ID, a tag OpSpec result and the like, and the OpSpec result comprises an OpSpec ID corresponding to the read OPSpec issued in the AO rule, the read data length and the read data; the write OpSpec result includes an OpSpecID corresponding to the write OPSpec issued in the AO rules, and the write Op result. The OpSpecID carried in the read-write result is consistent with the OpSpecID carried by the corresponding OpSpec operation issued in the AO rule, so that after the mixed read-write result fed back by the reader 3 is obtained by the GetPerodRWAresult interface, the read-write result corresponding to each OpSpec operation can be analyzed and reported to an upper layer application.
When the circular mixed read-write operation is finished, the StopPeriodRW interface issues a DeleteRO (RO deleting rule) operation, the reader deletes the RO rule issued before the StartPeriodRW interface and all AO rules according to the DeleteRO, and the circular mixed read-write operation of the reader is stopped.
The invention also provides a reader driving method, specifically, after the upper application 1 and the reader 2 are linked through the reader driving device 3, in the downlink direction, the information (such as Message format) from the multi-protocol application operation interface 311, the ISO18000-6C protocol application operation interface 312 and the ISO18000-6B protocol application operation interface 313 is converted into the bit stream format and transmitted to the reader 2; in the uplink direction, the operation Message in the bit stream format from the reader 2 is converted into the Message format and provided to the upper application 1 through a corresponding interface. As shown in fig. 4, in order to control the reader to implement the service operation, the following processes are performed:
s401: before upper application 1 communicates with reader 2, reader drive arrangement 3 and reader 2 establish the link, and according to the communication mode (serial port mode, net gape mode including reader server mode and reader client mode) difference of reader drive arrangement 3, the mode of establishing the link is also different:
in the serial port mode, the upper application 1 calls the reader management unit 34, sets the corresponding parameter object in the reader opening module 341 as the serial port parameter, and opens the serial port of the communication unit 32 to establish a link with the reader 2.
In the reader client mode, the upper layer application 1 calls the reader management unit 34, starts the link monitoring module 343, and the link monitoring module 343 first calls the Windows network programming interface WSAStart to initialize Winsock, thereby creating a socket function; calling a socket function to create a monitor; binding and monitoring a communication object specified by a socket function; calling a listen waiting link; calling an accept link and generating a session socket; calls send () and recv () are made to talk to the reader 2. In addition, after the link is completed, a closesocket function may be called to close the socket, stop monitoring the reader 2, and disconnect the link with the reader 2.
In the reader server mode, the upper application 1 calls the reader management unit 34, starts the reader opening module 341, and the reader opening module 341 first calls the Windows network programming interface WSAStart to initialize Winsock, so as to create a socket function; calling a socket function to create a session; after the session is successfully created, call connect, and set the corresponding parameter object in the reader opening module 341 as the IP information of the reader 2 to be linked; calling send () and recv () to make a session with the reader 2 through the communication unit 32; in addition, after the link is completed, the closesocket function may be called by the reader closing module 342 to close the socket, and the link with the reader 2 is disconnected.
After the link is successful, the upper application 1 can also call a configuration operation interface of the reader driving device 3 to inquire and update the basic configuration of the reader 2, including antenna power, antenna in-place detection, antenna state inquiry, forward and reverse rates, coding types, modulation modes, communication type parameters, protocol types, equipment coding, fixed frequency hopping and other common parameters. After the configuration of the protocol type, the antenna power and the like is completed, the interaction of the basic service operation message with the reader 2 can be realized.
S402: the upper layer application 1 selects the called application operation interface (a multi-protocol application operation interface 311 supporting identification of two or more protocol type labels, an ISO18000-6C protocol application operation interface 312 supporting only identification of ISO18000-6C protocol type labels, or an ISO18000-6B protocol application operation interface 313 supporting only identification of ISO18000-6B protocol type labels, etc.) according to the actual situation of the label to be operated.
Under the condition that the user knows the protocol type of the identified label, an application operation interface corresponding to the protocol type can be called in the upper layer application to carry out information interaction, and the communication efficiency is improved. Under the condition that the user does not know the protocol type of the identified tag or needs to identify tags of different protocol types at the same time, the multi-protocol application operation interface 311 can be called in the upper layer application, and then the mixed single-time counting interface 311a, the mixed periodic counting interface 311b or the mixed read-write interface 311c is selected to be called according to the specific function to be realized.
S403: if the hybrid read/write interface 311c is called, the hybrid read/write start interface in the hybrid read/write interface 311c receives the call of the upper application, converts the hybrid read/write rule into a bit stream format through the encoding module 331 in the message processing unit 33, transmits the bit stream format to the communication unit 32, and sends the bit stream format to the reader 3 through the communication unit 32.
The hybrid read-write rule may be preset in the interface of the hybrid read-write interface 311c, or may be a hybrid read-write rule obtained by the hybrid read-write interface 311c according to the hybrid read-write parameters issued by the upper application 1, and in short, the issued hybrid read-write rule enables the reader 3 to perform the hybrid read-write operation on the tags of two or more protocol types.
S404: the reader adds the hybrid read-write rule and feeds back the result of success or failure of the addition to the hybrid read-write interface 311 c. If all the addition is successful, the hybrid read-write interface 311c starts the hybrid read-write operation of the reader, and the step S405 is entered; if the addition fails, the hybrid read/write interface 311c re-issues the corresponding rule, or the process ends.
S405: the reader 3 performs the mixed read-write operation on the tags of two or more protocol types according to the mixed read-write rule.
S406: the reader 3 feeds back the mixed read-write result to the communication unit 32 in the bit stream format, and the decoding module 332 in the Message processing unit 33 converts the mixed read-write result from the communication unit 32 into the Message format and correspondingly transmits the Message format to the mixed read-write result obtaining interface in the mixed read-write interface 311 c.
S407: the mixed read-write result acquisition interface returns the mixed read-write result in the Message format to the upper application 1. If the circular mixed read-write operation is defined in the mixed read-write rule issued to the reader 3 in the step S403, returning to execute S305; otherwise, the upper application determines whether the mixed read-write operation flow needs to be ended, if the read-write operation flow needs to be ended, the mixed read-write stop interface in the mixed read-write interface 311c issues a delete command to the reader, deletes the mixed read-write rule issued to the reader by the mixed read-write start interface in step S403, and stops the mixed read-write operation of the reader.
The reader driving device, the reader control system and the reader driving method provided by the invention can enable the same reader to perform read-write operation on tags with two or more protocol types, namely mixed read-write operation, and the upper application development can perform development operation corresponding to different protocol tags through a uniform application operation interface, so that the development cost can be obviously reduced, and the working efficiency of the reader can be improved. The mixed single counting interface and the mixed cycle counting interface can further enable the same reader to carry out mixed single counting and mixed cycle counting operation on the tags of two or more protocol types. One or more single-protocol application operation interfaces supporting identification of a relatively common single-protocol type label can be additionally arranged in the reader driving device, and under the condition that the protocol type of the identified label is known by a user, the application operation interface corresponding to the protocol type can be called in upper-layer application to carry out information interaction, so that the communication efficiency is improved. Under the condition that a user does not know the protocol type of the identified label or needs to identify labels of different protocol types at the same time, a mixed read-write interface, a mixed single counting interface and a mixed periodic counting interface can be called in upper-layer application to carry out service operation.
The foregoing is a more detailed description of the present invention that is presented in conjunction with specific embodiments, and the practice of the invention is not to be considered limited to those descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (14)

1. A reader driving device is characterized by comprising a communication unit and an application operation interface unit, wherein the application operation interface unit comprises a mixed read-write interface,
the hybrid read-write interface is used for receiving the call of the upper application, configuring the hybrid read-write rule of the reader, controlling the reader to perform hybrid read-write operation on the tags of two or more protocol types according to the hybrid read-write rule, and also used for acquiring the hybrid read-write result of the reader and reporting the result to the upper application;
the communication unit is used for realizing information interaction between the hybrid read-write interface and a reader;
the hybrid read-write interface configures a hybrid read-write rule of the reader according to a hybrid read-write rule preset in the interface, or is used for receiving a hybrid read-write parameter issued by an upper application and configuring the hybrid read-write rule of the reader according to the hybrid read-write parameter, wherein the hybrid read-write parameter carries two or more protocol types;
and the hybrid read-write interface is used for controlling the reader to perform circular hybrid read-write operation on the tags of two or more protocol types according to the hybrid read-write rule.
2. The reader driving device according to claim 1, wherein the hybrid read/write interface is configured to issue corresponding RO rules and AO rules to the reader according to two or more protocol types carried in the hybrid read/write parameters, so as to configure the hybrid read/write rules of the reader.
3. The reader driving apparatus according to claim 1, wherein the hybrid read/write interface includes a hybrid read/write start interface, a hybrid read/write result acquisition interface, and a hybrid read/write stop interface; the mixed read-write starting interface is used for receiving the call of the upper application, issuing a mixed read-write rule to the reader and starting the mixed read-write operation of the reader; the mixed read-write result acquisition interface is used for acquiring the mixed read-write result of the reader and reporting the mixed read-write result to an upper layer application; the mixed read-write stopping interface is used for deleting the mixed read-write rule issued by the mixed read-write starting interface to the reader and stopping the mixed read-write operation of the reader.
4. The reader driving apparatus according to claim 1, wherein said application operation interface unit further comprises a mixed single counting interface and/or a mixed cycle counting interface; the mixed single counting interface is used for receiving the call of an upper application and controlling the reader to carry out single counting operation on the tags of two or more protocol types; the mixed single-period counting interface is used for receiving the calling of upper-layer application and controlling the reader to periodically count the tags of two or more protocol types.
5. The reader driving device according to claim 1, wherein the application operation interface unit further comprises one or more single-protocol application operation interfaces, each single-protocol application operation interface is configured to accept a call from an upper-layer application and control the reader to perform read-write, single-count and/or periodic count operations on tags of a single protocol type.
6. The reader driving apparatus according to claim 5, wherein the single protocol application operation interface comprises an ISO18000-6C protocol application operation interface and/or an ISO18000-6B protocol application operation interface; the ISO18000-6C protocol application operation interface is used for controlling a reader to read and write, count once and/or count periodically a label of an ISO18000-6C protocol type; the ISO18000-6B protocol application operation interface is used for controlling a reader to read and write, count once and/or count periodically a label of an ISO18000-6B protocol type.
7. The reader driving apparatus according to any one of claims 1 to 6, further comprising a message processing unit including an encoding module and a decoding module, wherein,
the coding module is used for converting the information from the application operation interface unit into a bit stream format and transmitting the bit stream format to the communication unit;
the decoding module is used for converting the information from the communication unit into a Message format and correspondingly transmitting the Message format to the application operation interface unit.
8. The reader driving apparatus according to any one of claims 1 to 6, further comprising a reader managing unit including a reader opening module and a reader closing module, wherein,
the reader opening module is used for establishing a link between the communication unit and the reader by setting a corresponding parameter object;
the reader closing module is used for disconnecting the link between the communication unit and the reader.
9. A reader control system comprising a reader, an upper application, and the reader driving device of any one of claims 1 to 8; wherein,
the reader driving device comprises a communication unit and an application operation interface unit, wherein the application operation interface unit comprises a mixed read-write interface; the hybrid read-write interface is used for receiving the call of the upper application, configuring the hybrid read-write rule of the reader, controlling the reader to perform hybrid read-write operation on the tags of two or more protocol types according to the hybrid read-write rule, and also used for acquiring the hybrid read-write result of the reader and reporting the result to the upper application; the communication unit is used for realizing information interaction between the hybrid read-write interface and a reader;
the upper layer application is used for calling the mixed read-write interface and receiving a mixed read-write result reported by the mixed read-write interface;
the reader is used for carrying out information interaction with the mixed read-write interface through the communication unit, adding a mixed read-write rule configured by the mixed read-write interface, carrying out mixed read-write operation on tags of two or more protocol types according to the mixed read-write rule, and feeding back a mixed read-write result to the mixed read-write interface.
10. A reader driving method applied to the reader driving device according to any one of claims 1 to 8, the reader driving method comprising:
a hybrid read-write interface in the reader driving device receives the call of an upper application;
configuring a mixed read-write rule of a reader, wherein the mixed read-write rule is used for controlling the reader to perform mixed read-write operation on tags of two or more protocol types, and starting the mixed read-write operation of the reader according to the mixed read-write rule;
and acquiring the mixed reading and writing result of the reader and reporting the result to the upper-layer application.
11. The reader driving method according to claim 10, wherein the process of configuring the hybrid read-write rule of the reader specifically includes: receiving a mixed read-write parameter issued by an upper layer application, wherein the mixed read-write parameter carries two or more than two protocol types; and configuring a mixed reading and writing rule of the reader according to the mixed reading and writing parameters.
12. The reader driving method according to claim 11, wherein the process of configuring the hybrid read-write rule of the reader according to the hybrid read-write parameter specifically includes: and issuing corresponding RO rules and AO rules to the reader according to two or more protocol types carried in the mixed read-write parameters so as to configure the mixed read-write rules of the reader, wherein one AO rule corresponds to one protocol type.
13. The reader driving method according to claim 10, further comprising, after obtaining the hybrid read-write result of the reader: and deleting the mixed reading and writing rule issued by the mixed reading and writing starting interface to the reader, and stopping the mixed reading and writing operation of the reader.
14. The reader driving method according to any one of claims 10 to 13, wherein the hybrid read-write rule is a cyclic hybrid read-write rule, the cyclic hybrid read-write rule includes a cyclic operation interval, and the cyclic hybrid read-write rule is used to control a reader to perform cyclic hybrid read-write operation on tags of two or more protocol types.
CN201210243675.XA 2012-07-13 2012-07-13 A kind of reader drive device, method and reader control system Active CN103544050B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210243675.XA CN103544050B (en) 2012-07-13 2012-07-13 A kind of reader drive device, method and reader control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210243675.XA CN103544050B (en) 2012-07-13 2012-07-13 A kind of reader drive device, method and reader control system

Publications (2)

Publication Number Publication Date
CN103544050A CN103544050A (en) 2014-01-29
CN103544050B true CN103544050B (en) 2017-05-31

Family

ID=49967528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210243675.XA Active CN103544050B (en) 2012-07-13 2012-07-13 A kind of reader drive device, method and reader control system

Country Status (1)

Country Link
CN (1) CN103544050B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109784112B (en) * 2018-12-14 2022-04-08 北京千方科技股份有限公司 Automobile electronic identification reading and writing method and device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998052168A2 (en) * 1997-05-14 1998-11-19 Avid Identification Systems, Inc. Reader for rfid system
CN1767532A (en) * 2005-11-29 2006-05-03 大连维深自动识别技术有限公司 Open type super high frequency RF recognition protocol platform
CN102045896A (en) * 2010-11-22 2011-05-04 中山爱科数字科技有限公司 Virtual Internet-of-things gateway system capable of realizing multiprotocol and network self-adapting
CN102289636A (en) * 2010-06-21 2011-12-21 中兴通讯股份有限公司 Reader driving device, system and method based on low level reader protocol (LLRP) protocol
CN102663458A (en) * 2012-03-16 2012-09-12 江苏瑞福智能科技有限公司 Multi-core UHF RFID reader-writer realized by application software

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7076787B2 (en) * 2002-05-30 2006-07-11 Sun Microsystems, Inc. Supporting multiple protocols with a single device driver

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998052168A2 (en) * 1997-05-14 1998-11-19 Avid Identification Systems, Inc. Reader for rfid system
CN1767532A (en) * 2005-11-29 2006-05-03 大连维深自动识别技术有限公司 Open type super high frequency RF recognition protocol platform
CN102289636A (en) * 2010-06-21 2011-12-21 中兴通讯股份有限公司 Reader driving device, system and method based on low level reader protocol (LLRP) protocol
CN102045896A (en) * 2010-11-22 2011-05-04 中山爱科数字科技有限公司 Virtual Internet-of-things gateway system capable of realizing multiprotocol and network self-adapting
CN102663458A (en) * 2012-03-16 2012-09-12 江苏瑞福智能科技有限公司 Multi-core UHF RFID reader-writer realized by application software

Also Published As

Publication number Publication date
CN103544050A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
CN115942282B (en) Communication method, node, device, communication system, and storage medium
CN104967596A (en) Method and apparatus for realizing binding and communication between user terminal and Internet of things device
US20090282130A1 (en) Resource sharing via close-proximity wireless communication
CN116528216A (en) Communication method, device and system
US9942092B2 (en) Method and an apparatus for controlling messages between host and controller
US8174386B2 (en) RFID reader controlling device, interlocking method for RFID reader, and RFID reader controlling method
CN105472038A (en) Control method, control apparatus and control system for file transmission
CN102289636B (en) Reader driving device, system and method based on low level reader protocol (LLRP) protocol
CN114844926A (en) Remote asset checking system and method based on Internet of things technology and RFID reader
WO2023236907A1 (en) Information indication method, terminal, network side device, and readable storage medium
CN101739575A (en) Data processing method for multi-hardware equipment centralized management in radio frequency identification system
CN103544050B (en) A kind of reader drive device, method and reader control system
CN102281197A (en) Radio frequency identification (RFID) router architecture system
CN115022074A (en) User authentication and authorization method, device, medium and equipment
CN102646205B (en) A kind of reader drive unit, method and reader control system
US9130840B2 (en) Method and apparatus for optimizing management and configuration of radio frequency identification readers
CN103765791B (en) Near field communication radio frequency discovery control, device and terminal equipment
CN103853602A (en) Reader driving device, reader driving method and reader control system
CN103632174B (en) The operating method and device of public and private stateful label
CN116112899A (en) Separated RFID networking architecture based on NB
CN101197684B (en) Data exchange method based on radio frequency recognition technology
CN104680204A (en) Operating method for label state
CN103632173A (en) Tag access and access processing method and device
KR101182858B1 (en) RFID Reader controlling device, Interlocking method for RFID Reader, and RFID Reader controlling method
CN117098151A (en) Reporting and receiving method of terminal network state, terminal and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160909

Address after: 300308 Tianjin Airport Economic Zone, Binhai New Area seven East Road No. 2 Zhongxing Industrial Base

Applicant after: ZTE INTELLIGENT IOT TECHNOLOGY Co.,Ltd.

Address before: 518057 Nanshan District science and Technology Park, Guangdong, South Road, ZTE building, science and Technology Park

Applicant before: ZTE Corp.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 300308 Tianjin Binhai New Area Tianjin Free Trade Test Area (Airport Economic Zone) Room 401, Building 12, East District, Airport Business Park, No. 80 Huanbei Road

Patentee after: Gaoxing Zhilian Technology Co.,Ltd.

Address before: 300308 Tianjin Binhai New Area Airport Economic Zone Dongqidao No.2 ZTE Industrial Base

Patentee before: ZTE INTELLIGENT IOT TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190611

Address after: Room 4-707, No. 2, Dongqidao, Tianjin Free Trade Experimental Zone (Airport Economic Zone), Tianjin Binhai New Area, 300308

Patentee after: TIANJIN ZHONGXING SOFTWARE Co.,Ltd.

Address before: 300308 Tianjin Binhai New Area Tianjin Free Trade Test Area (Airport Economic Zone) Room 401, Building 12, East District, Airport Business Park, No. 80 Huanbei Road

Patentee before: Gaoxing Zhilian Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220928

Address after: Room 401, building 12, East Airport Business Park, 80 Huanhe North Road, Tianjin Binhai New Area pilot free trade zone (Airport Economic Zone)

Patentee after: Gaoxing Zhilian Technology Co.,Ltd.

Address before: Room 4-707, No. 2, Dongqidao, Tianjin Free Trade Experimental Zone (Airport Economic Zone), Tianjin Binhai New Area, 300308

Patentee before: TIANJIN ZHONGXING SOFTWARE Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Room 401, building 12, East Airport Business Park, 80 Huanhe North Road, Tianjin Binhai New Area pilot free trade zone (Airport Economic Zone)

Patentee after: Zte Intelligent Iot Technology Co.,Ltd.

Address before: Room 401, building 12, East Airport Business Park, 80 Huanhe North Road, Tianjin Binhai New Area pilot free trade zone (Airport Economic Zone)

Patentee before: Gaoxing Zhilian Technology Co.,Ltd.