The method of collaborative work between a kind of RFID reader
Technical field
The present invention relates to reader technology field, refer in particular to the method for collaborative work between a kind of RFID reader based on REID.
Background technology
RFID (Radio Frequency Identification, radio-frequency (RF) identification) technology is a kind of automatic identification technology that begins to rise the nineties in 20th century, it is that a kind of radiofrequency signal of utilizing realizes the transmission of non-contact type information by space coupling (alternating magnetic field or electromagnetic field), and the information of passing through to be transmitted reaches the technology of automatic identifying purpose.Non-visual transmission, transmission speed are fast because this technology has, penetrability more by force, stronger anti-adverse environment ability and advantage such as reusable and extremely numerous industries and professional person's concern.Make a general survey of domestic and international rfid system, its basic comprising is RFID tag, radio-frequency identification reader and application layer software; Wherein the function of radio-frequency identification reader is to receive the command information of application layer, startup radio-frequency module wherein is with control antenna work, finish and the communicating by letter of radio-frequency (RF) tag, simultaneously the label information that recognizes is transferred to application layer for customer analysis and processing by interface control module.
Aforementioned existing RFID reader has only single interface control module, and is independent fully between reader and the reader; Interconnected flexibly, collaborative work between this just very difficult reader of realizing in the radio frequency network.
Summary of the invention
The technical matters that the present invention solves is to provide a kind of method that can realize collaborative work between the RFID reader.
The technical scheme that the present invention solves the problems of the technologies described above is: a collaborative work module is arranged in reader, and the communication protocol of definition reader; And the interface control module of reader comprises network interface; By data transmission between described network interface realization reader and application layer and the networking between the reader; The collaborative work module is according to data transmission between the communication protocol control reader and cross complaint operation; The concrete grammar of collaborative work module controls reader collaborative work is, at first, reader A sends a request message to reader B, if reader B accepts request, reader B will send response message and make Message Processing to reader A, otherwise, reader A continues to send out request message to reader B, make great efforts initiatively to start reader B and enter the collaborative work state, if can not receive the collaborative feedback information of reader B for a long time, then reader A provides respective handling information; Thereby the collaborative work between the realization reader.
Described collaborative work module comprises collaborative request module, collaborative responder module and associated treatment module; Collaborative request module is used for reader A and sends collaborative request to reader B; And collaborative responder module is used to respond collaborative request signal; The associated treatment module comprises the processing module and the collaborative not successful processing module of transmission that receives after working in coordination with.
RFID reader of the present invention provides the multiple hardwares interface shape by communication interface, as network interface, CF interface, USB interface, Wiegand26 interface and RS-232 etc.; Can realize with PDA (Personal DigitalAssistant, palm PC), smart mobile phone, removable computer and PC between information transmission; Also can under the effect of collaborative work module, realize the collaborative work between reader and the reader by network interface with forming the radio-frequency (RF) identification network between a plurality of readers; The reliability of raising system.
Description of drawings
Accompanying drawing 1 is a reader structured flowchart of the present invention;
Accompanying drawing 2 is reader program main functional modules figure of the present invention;
Accompanying drawing 3 is collaborative work communication protocol data form synoptic diagram between the reader of the present invention.
The explanation of accompanying drawing figure number:
Power supply 11 interface control modules 12
CPU 13 RF modules 14
Antenna 15 memory modules 16
Start reader module 21 identifications module 22 is set
Read label model 23 collaborative request module 24
Collaborative responder module 25 associated treatment modules 26
Collaborative work module 27
Keep position 50 type of messages 51
Message-length 52 message contents 53
Message verification sequence 54 end of message signs 55
Embodiment
See accompanying drawing 1, reader of the present invention mainly includes power supply 11, interface control module 12, CPU13, RF module 14 (radio frequency identification module), antenna 15 and memory module 16; Power supply 11 is given RF module 14, interface control module 12, memory module 16 and CPU 13 power supplies; Antenna 15 carries out the transmission of energy and information with label, and label information is transferred to by RF module 14 in time CPU 13 carries out analyzing and processing and memory module 16 is stored; Described interface control module 12 includes network interface; This network interface makes this reader to link to each other with application layer easily, and can carry out networking with application layer or other reader, to realize the collaborative work function between network-type radio-frequency (RF) identification and reader.
See accompanying drawing 2, the main functional modules of control program of the present invention has the reader module 21 of startup, identification module 22 to be set, to read label model 23 and collaborative work module 27; After starting reader module 21 reader being started, identification is provided with that 22 pairs of labels with identification of module are classified and grouping is provided with, in order to the analysis and the processing of data; Reading label model 23 and be that the electrical information that label passes to radio-frequency antenna is converted into subsequent module can analyze and the numerical information of handling.
Collaborative work module 27 realizes data transmission and the cross complaint operation between the reader, mainly comprises collaborative request module 24, collaborative responder module 25, associated treatment module 26; Collaborative request module 24 is used for reader A and sends collaborative request to reader B; And collaborative responder module 25 is used to respond the requesting cooperative signal that other reader sends; Associated treatment module 26 comprises the processing module and the collaborative not successful processing module of transmission that receives after working in coordination with.At first, reader A sends a request message to reader B, if reader B accepts request, reader B will send response message and make Message Processing to reader A, otherwise reader A continues to send out request message to reader B, makes great efforts initiatively to start reader B and enters the collaborative work state, if can not receive the collaborative feedback information of reader B for a long time, then reader A provides respective handling information.
As shown in Figure 3, be the data layout of reader collaborative work communication protocol of the present invention, information such as expansion or placement protocol type after wherein reservation position 50 can be stayed and do.Type of message 51 at different processing form to message classification, this protocol definition obtain the reader configuration status parameter, the reader configuration status parameter be set, with order control reader-tag read, multiple type of messages such as the synchronous data transmission of failover, transmission label data information, error checking, response data type.Message-length 52 comprises from keeping the total length of position to end of message sign.Message content 53 is the main body of transmission, and is different according to the different length of type.Message verification sequence 54 guarantees that for reducing error rate transmission quality is provided with, and is one group of sequence of message content being carried out verification.End of message sign 55 refers at the end of message with the end of several byte flag message, so that reader is to message management.
Certainly, interface control module 12 of the present invention can adopt the standby form of multiple interfaces, except that aforesaid network interface, also can comprise multiple interfaces such as CF interface, USB interface, Wiegand26 interface and RS-232.And the CF interface is mainly used in PDA, smart mobile phone and removable computer and communicates operation, and USB, Wiegand26 interface and RS-232 interface mainly realization and memory device, PC and industrial field device communicate function.
Because radio-frequency (RF) identification speed is very fast, quantity of information is more, is the coordinations at different levels of realization system, and this reader CPU13 can adopt high-speed controller, as ARM, PowerPC and Godson series microprocessor etc.; Radio frequency identification module 14 adopts integrated microcontroller and RF transmit-receive circuit in the radio frequency identification module of one, communicates with peripheral antenna 15, thereby realizes the identification of radio-frequency (RF) tag ground, comprising element circuits such as modulation, encoding and decodings.And memory module 16 is divided into the storage of non-memory property and two modules of Memorability storage, and the former is used for storing the label ID information that radio frequency identification module recognizes, and deposits in the Memorability module through the information after the processing such as data filter and integration.