CN104166862B - A kind of method based on active and passive RFID data collection and monitoring - Google Patents

A kind of method based on active and passive RFID data collection and monitoring Download PDF

Info

Publication number
CN104166862B
CN104166862B CN201310182410.8A CN201310182410A CN104166862B CN 104166862 B CN104166862 B CN 104166862B CN 201310182410 A CN201310182410 A CN 201310182410A CN 104166862 B CN104166862 B CN 104166862B
Authority
CN
China
Prior art keywords
data
label
interface
read write
write line
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.)
Expired - Fee Related
Application number
CN201310182410.8A
Other languages
Chinese (zh)
Other versions
CN104166862A (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.)
Institute of Information Engineering of CAS
Original Assignee
Institute of Information Engineering of CAS
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 Institute of Information Engineering of CAS filed Critical Institute of Information Engineering of CAS
Priority to CN201310182410.8A priority Critical patent/CN104166862B/en
Publication of CN104166862A publication Critical patent/CN104166862A/en
Application granted granted Critical
Publication of CN104166862B publication Critical patent/CN104166862B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Near-Field Transmission Systems (AREA)

Abstract

The invention discloses a kind of method based on active and passive RFID data collection and monitoring.This method is:1) some read write lines are laid in monitoring place;Data acquisition end is provided with an interface library, including the read write line interface that unified interface Function Format is write;2) data acquisition end calls read write line to open interface, driving read write line collection label data;3) data acquisition end checks whether to the label data of collection and has been entered into list of labels, is entered into if non-typing in the list of labels;If typing, check whether the label data has occurred in setting time threshold value, if there is then abandoning adding the label and are changed into current time the time of the label data, otherwise continue the label being entered into the list of labels;4) data acquisition end is sent to server end after the label data in the list of labels is carried out into data form unification processing.This method is high to data acquisition and monitoring efficiency, and active label long lifespan.

Description

A kind of method based on active and passive RFID data collection and monitoring
Technical field
The present invention relates to based on active and passive RFID data collection and monitoring method, belong to REID neck Domain.
Background technology
RFID radio frequency identifications are a kind of non-contacting automatic identification technologies, and its general principle is to utilize radiofrequency signal or space The transmission characteristic of (inductance or electromagnetic coupled) is coupled, the automatic identification to article is realized.RFID technique and other automatic identifications Technology (bar codes technique, optical identification etc.) is compared, with strong antijamming capability, contain much information, non-vision scope read-write and the longevity The advantages of ordering long, is widely used in logistics, supply chain, animal and vehicle identification, gate control system, taking care of books, automatic charging, life The fields such as production manufacture.However, when from RFID technique, different RFID products have different DLLs, and active The difference that RFID device and passive RFID device are present is bigger.How existing software and system combine from different RFID devices Use, as a difficult point.In addition, in RFID label tag may comprising substantial amounts of classified information etc., therefore be accomplished by one can The platform being monitored to the information, is realized to monitoring of concerning security matters article etc..
Current RFID data acquisition, which is mainly, uses middleware Technology, and a kind of radio frequency based on extensible markup language is known A kind of integrated side of RFID middleware based on XML language is proposed in other middleware integrated approach (Publication No. CN102622231A) Method, mainly solves the different read write line readings of interface difference problem and different enterprises of the different read write lines of different enterprises Two problems such as data structure and format differences problem.This method encapsulates the distinct interface of underlying device, and shielding bottom is set The otherness of standby interface.Then will in xml form exist after the RFID tag data processing of acquisition, although this method solves reading The problem of the problem of writing device interface otherness and data form unification.But this method still has some shortcomings part:(1) The patent solve only the different read write lines of different enterprises to the otherness of collection tag data interface, and different enterprises are not solved The opening of different read write lines, the otherness closed, write the interfaces such as label data.(2) it is poor in solution data structure and data form In different problem, used two steps, i.e., first called reading data method, collected the label data in region, recall by The method that data are transformed into expandable mark language XML is read, a data can only be handled every time, it is impossible to carry out batch processing.
In addition, after being gathered to RFID data, being typically all monitored using the form of passive label to article, i.e., Label is needed to set up corresponding contact with article.Signal is done by metal surface and human body yet with passive RFID technology Disturb than larger, be unfavorable for realizing the monitoring to notebook etc.At present, in order to make up the shortcoming of passive RFID technology, to containing The article monitoring of metal is can to use active RFID technology.
The content of the invention
The present invention is a kind of method based on active and passive RFID data collection and monitoring, primarily directed to carrying above To the problem of and weak point, proposition a kind of RFID data collection and monitoring method, mainly solve active and passive read-write Interface differentiation problem between device and the different read write lines of different manufacturers, that is, devise a compatible active read-write simultaneously The middleware of device and passive read write line, is responsible for realizing the collection and processing to data.
In view of the life problems of active label, the present invention adds the mode bit of excitation to active read write line, that is, only had Label could be gathered and handled by read write line under excitation state, therefore add this state to the definition of data form.Number It is within the defined time to be handled according to repeated and redundant data filtering, it is ensured that a label is only read once, and the label read It must be the label for being entered into database.The data collected are handled and transmitted using unified form simultaneously. Unified definition is carried out to data structure and form using structure, for the collection and monitoring of small data quantity, structure is used Encapsulation process and transmission, processing speed are accordingly very fast.Data are when transmission, it is contemplated that the security of data, are encrypted Transmission.In order to realize the monitoring to article, the Item Information for needing to monitor is entered into database in advance, responsibility is distributed to article People, whether authorize carrying etc. attribute.The Item Information of the data of collection and advance input database is subjected to matched and searched, according to Corresponding strategy, is monitored and alarms to article.
The technical scheme is that:
A kind of method based on active and passive RFID data collection and monitoring, its step is:
1) some rfid interrogators are laid in monitoring place;The rfid interrogator is connected with data acquisition end data; The data acquisition end is provided with an interface library, and the interface library includes the read write line interface that unified interface Function Format is write; Wherein, the rfid interrogator includes active rfid interrogator and passive RFID read write line;
2) data acquisition end calls the read write line in the read write line interface to open interface, driving rfid interrogator collection mark Sign data;
3) whether each label data that data acquisition end is gathered to rfid interrogator, it is to have recorded to check the label data Enter into list of labels, be entered into if non-typing in the list of labels;If typing, the label data is checked Whether occur in setting time threshold value, if there is then abandoning adding the label to the list of labels and by the label The time of data is changed to current time, otherwise continues the label being entered into the list of labels;
4) after data acquisition terminates, the label data in the list of labels is carried out data form unification by data acquisition end Server end is sent to after processing.
Further, the read write line interface includes read write line opening interface, read write line down interface, reads tag interface With status checkout interface.
Further, the cleaning memory block interface of unified structure is additionally provided with the driving of the rfid interrogator and is rewritten and is marked Sign ID interfaces.
Further, the step 2) collection label data method be:Read write line is called to open first in data acquisition end Interface sets up the data communication of rfid interrogator and label, when then label data is read in data acquisition end every time, by checking The connection status of read write line interface check rfid interrogator, if having connected, then calls rfid interrogator to read tag interface Label data is read, the communication connection for calling read write line down interface to close read write line and label after finishing is read.
Further, provided with two category of electricity and excitation state in the active label of the active RFID read write line collection Property, the data acquisition end is provided with the driver of an active label;Read write line is called to open interface driver in the data acquisition end During the active RFID read write line collection active label data, the driver is first called to send a low frequency signal, will be described Active label is activated to working condition and carries out data acquisition.
Further, the method for the data acquisition end progress data form unification processing is:The data acquisition end It is defaulted as the passive label data increase electricity that passive RFID read write line is gathered with excitation two attributes of state, and electricity attribute High electricity, excitation state are defaulted as having encouraged.
Further, the data acquisition end carries out data form unification processing using a data structure, is encapsulated as Structured data, the form that the structured data then is changed into data flow again is sent to the server end;Wherein, institute The data form for stating data structure is:Tag ID, the sensitivity of label, electricity flag bit, whether be in excitation state, label The timestamp of processing.
Further, the data acquisition end is monitored to active label electricity, is set when the electricity of active label is less than Definite value alarm.
Further, the data acquisition end monitors the state of read write line in real time, if the shape not networked occurs in read write line State, then call disconnection reconnecting technology to reconnect rfid interrogator automatically, rfid interrogator configured, makes rfid interrogator In normal operating conditions;If rfid interrogator is all not attached to network in setting number of times, it is determined as broken string, calls reading Write device interface and indicate that connection status, to have disconnected, corresponding read write line interface is not recalled.
Compared with prior art, the positive effect of the present invention is:
This method can realize data acquisition and monitoring to all articles for speckling with active label and passive label, solve simultaneously The problem of active label short life of having determined, processing speed is effectively increased, and reduce rate of failing to report, meanwhile, beneficial to article Monitoring and fix duty operation.
Brief description of the drawings
Fig. 1 the inventive method flow charts;
Fig. 2 data filtering process charts;
Fig. 3 label data read method flow charts;
Fig. 4 is data monitoring flow chart.
Embodiment
A kind of active and passive RFID data collection of the present invention and monitoring method flow are as shown in figure 1, specifically include:
(1) hardware is disposed
Rfid interrogator is laid in some gateways, it is the physical basis monitored that hardware, which is laid,.Used according to RFID system Working frequency can be divided into 4 classes:Low frequency (LF, 30~300kHz), high frequency (HF, 3~30MHz), hyperfrequency (UHF, 300~ 968MHz) with microwave (UWF, 2.4~5.8GHz).Different frequency, the tag read of model are apart from mutually far short of what is expected.Research has shown that, 2.4GHz RFID label tag has decay smaller, and long transmission distance transmission data are fast, and data throughout is high, recognize multiple target energy The characteristics of power is strong.
This method is in an experiment using 2.4GHz active label and 900MHz passive label.It is generally desirable to A read write line is disposed in the gateway in the region of monitoring, and ceaselessly scanning obtains label to read write line in cycle T.And read write line and Between label, barrier, especially metal barrier are avoided as far as possible, rate of failing to report otherwise can be significantly increased, influence performance.
(2) user writes read write line interface according to unified interface function form, is sealed using corresponding driver Fill as dll files, realized for interface and corresponding interface library is provided.Read write line interface is included to the opening of read write line, closing, cleaning Memory block, the ID interfaces for reading label, status checkout interface and rewriting label.Here read write line interface is most commonly opened With the operate interface for closing read write line.For the application program at data acquisition end, it is only necessary to corresponding interface in calling interface storehouse It can be carried out corresponding operation.Corresponding interface is defined as:
As shown in figure 3, the present invention realizes collection label data by the read write line interface of definition, first by calling read-write Device opens the data communication that interface sets up read write line and label, when then reading label data every time, by checking that read write line connects Mouth checks the connection status of read write line, if having connected, then calls read write line to read tag interface and read label data, read Read write line down interface is called to close the communication connection of read write line and label after finishing.
(3) server end is handled the data of collection:Each label that data acquisition end is gathered to rfid interrogator Data, whether be entered into list of labels, the label column is entered into if non-typing if checking the label data In table;Check whether the label data has occurred in setting time threshold value, if occurred, and same label occur when Between interval less than setting time threshold, then the time of the label data of this in list of labels is changed to current time, while not existing Continue to add the change information in list;Such as larger than or equal to the time threshold of setting, then label is entered into list of labels, Handled as a new label.The specific handling process is as shown in Figure 2.
(4) data form unification:The structure and form of gathered data are defined, is easy to the processing of data post and answers With.Because the form of active label and the data structure of passive label has difference, maximum difference is exactly for active label Electricity and excitation two attributes of state, and be that passive label adds this in order to be able to carry out unified processing to these labels Two states (electricity is defaulted as high electricity, and excitation state is defaulted as having encouraged).Active label does not work in the case of acquiescence, only Have in the case of excitation, active label just works, so as to extend the life-span of active label.In the implementation, it is necessary to using to having The driver of source label, driver sends a low frequency signal, and active label is initially located in work after low frequency signal is received Make state, the label of dead can not just be collected in (3), so as to reduce data volume, slow down the pressure of system.Separately Outside, data acquisition end can obtain the battery electric quantity of active label, by the monitoring to active label electricity, realize to active mark The alarm of low battery is signed, points out to change active label, the situation of article can not be monitored by preventing.Specific data structure structural Case Formula is as follows:
During data form unification is done, we are only needed in the read write line unified interface of superincumbent introduction, In data acquisition, interface LoadTagData (ref XtiveTag [] tagData, the ref int for reading label data are called RecordCount), while label data is gathered, we are just entered using first parameter XtiveTag in interface function Row data form unification, i.e., only read the attribute section defined in XtiveTag, rather than all after reading in screening, improve The speed of data acquisition and processing (DAP).Meanwhile, during data acquisition, many labels can be once read, In LoadTagData interface functions, the label number once read is recorded using second parameter RecordCount, is easy to Data processing.
(5) data transfer is encrypted:The data that data acquisition end is collected to read write line equipment are by step (3) filtering etc. After reason, data are encrypted and are transferred to server end.Need exist for using two methods, StructToBytes () is mainly By the Tag Packaging collected into structure, then structured data is changed into the form of data flow again;MD5Encrypt() Data are mainly realized in network transmission, the data flow to transmission is encrypted, it is ensured that the safety of data.First, use Stream compression is turned to byte stream by StructToBytes () method, and then data stream is carried out using MD5Encrypt () method Encryption, in receiving terminal, is decrypted using corresponding method.
(6) disconnection reconnecting mechanism:Read write line interface has following phenomenon:The function for setting up connection connects correct feelings in netting twine All succeed it cannot be guaranteed that calling every time under condition;The function of foundation connection, which can block, calls thread several seconds;When the letter for setting up connection After number successful connection, read write line interface indicates connection status to have connected, but after netting twine disconnection or read write line power down, read write line Interface indicates that connection status is still to have connected;After connection is correct, receives label function and all succeed it cannot be guaranteed that calling every time;When When network connection is connected again after disconnecting, program is needed to re-establish after connection, and label could correctly be returned to by receiving label function Data.For such case, it is necessary to monitor the state of read write line in real time, as long as the state not networked occurs in read write line, just call Disconnection reconnecting technology, automatically reconnects read write line, is written and read device and configures accordingly, read write line is in normal work State.If read write line is all not attached to network in defined number of times, it is determined as really broken string, read write line interface is indicated Connection status will not recall the function for receiving label to have disconnected.Related personnel is needed to carry out the inspection of network service.The machine System reduces the number of times of artificial system maintenance.
(7) data monitoring:In order to realize the monitoring to article, the Item Information for needing to monitor is entered into data in advance Whether storehouse, to article distribution person liable, authorize the attributes such as carrying.By the data of collection and the Item Information of advance input database Matched and searched is carried out, according to corresponding strategy, article is monitored and alarmed.It is illustrated in figure 4 the data monitoring of the present invention Flow chart, collection and processing to RFID tag data, by the tag queries database of acquisition, are realized to article to be monitored Monitoring.In the method, inquiry is mainly carried out by the ID of label, in addition, the information Store of article is in Item Information table, When the article for having unauthorized by when detection zone when, can be alarmed according to authorization conditions.It is easy to the monitoring pipe to article Reason.Therefore, this method also realizes the function of being monitored to RFID data.

Claims (8)

1. a kind of based on active and passive RFID data collection and the method monitored, its step is:
1) Item Information for needing to monitor first is entered into database, some rfid interrogators is laid in monitoring place;It is described Rfid interrogator is connected with data acquisition end data;The data acquisition end is provided with an interface library, and the interface library includes system The read write line interface that one interface function form is write;Wherein, the rfid interrogator includes active rfid interrogator and passive Rfid interrogator;
2) data acquisition end calls the read write line in the read write line interface to open interface, driving rfid interrogator collection number of tags According to;Provided with electricity and excitation two attributes of state, the data acquisition in the active label of the active RFID read write line collection Driver of the end provided with an active label;Call read write line to open active RFID described in interface driver and read and write in the data acquisition end When device gathers active label data, first call the driver to send a low frequency signal, the active label is activated to work Make state and carry out data acquisition;
3) whether each label data that data acquisition end is gathered to rfid interrogator, it is to be entered into check the label data In list of labels, it is entered into if non-typing in the list of labels;If typing, check that the label data is being set Whether occur in threshold value of fixing time, if there is then abandoning adding the label to the list of labels and by the label data Time be changed to current time, otherwise continue the label being entered into the list of labels;
4) after data acquisition terminates, the label data in the list of labels is carried out data form unification processing by data acquisition end After be sent to server end.
2. the method as described in claim 1, it is characterised in that the read write line interface includes read write line and opens interface, read write line Down interface, reading tag interface and status checkout interface.
3. the method as described in claim 1, it is characterised in that be additionally provided with unified structure in the driving of the rfid interrogator Clear up memory block interface and rewrite tag ID interface.
4. method as claimed in claim 2 or claim 3, it is characterised in that the step 2) method of collection label data is:Data Collection terminal calls read write line to open the data communication that interface sets up rfid interrogator and label first, and then data acquisition end is each When reading label data, by checking the connection status of read write line interface check rfid interrogator, if having connected, then call Rfid interrogator read tag interface read label data, reading finish after call read write line down interface close read write line with The communication connection of label.
5. the method as described in claim 1, it is characterised in that the data acquisition end carries out data form unification processing Method is:The data acquisition end is the passive label data increase electricity and excitation state two that passive RFID read write line is gathered Attribute, and electricity attribute is defaulted as high electricity, excitation state and is defaulted as having encouraged.
6. method as claimed in claim 5, it is characterised in that the data acquisition end carries out data using a data structure The processing of form unification, is encapsulated as structured data, and the form that the structured data then is changed into data flow again is sent To the server end;Wherein, the data form of the data structure is:Tag ID, the sensitivity of label, electricity mark Position, whether be in excitation state, the timestamp of tag processes.
7. the method as described in claim 1 or 5, it is characterised in that supervised to active label electricity at the data acquisition end Control, when the electricity of active label is less than setting value alarm.
8. the method as described in claim 1, it is characterised in that the data acquisition end monitors the state of read write line in real time, if There is the state not networked in read write line, then calls disconnection reconnecting technology to reconnect rfid interrogator automatically, to rfid interrogator Configured, rfid interrogator is in normal operating conditions;If rfid interrogator is all not attached to net in setting number of times Network, then be determined as broken string, calls read write line interface to indicate that connection status, to have disconnected, corresponding read write line interface is not recalled.
CN201310182410.8A 2013-05-16 2013-05-16 A kind of method based on active and passive RFID data collection and monitoring Expired - Fee Related CN104166862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310182410.8A CN104166862B (en) 2013-05-16 2013-05-16 A kind of method based on active and passive RFID data collection and monitoring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310182410.8A CN104166862B (en) 2013-05-16 2013-05-16 A kind of method based on active and passive RFID data collection and monitoring

Publications (2)

Publication Number Publication Date
CN104166862A CN104166862A (en) 2014-11-26
CN104166862B true CN104166862B (en) 2017-07-18

Family

ID=51910664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310182410.8A Expired - Fee Related CN104166862B (en) 2013-05-16 2013-05-16 A kind of method based on active and passive RFID data collection and monitoring

Country Status (1)

Country Link
CN (1) CN104166862B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105407008A (en) * 2015-12-17 2016-03-16 上海斐讯数据通信技术有限公司 Reconnecting method and system for interrupted TCP (Transmission Control Protocol) connection, terminal and server
CN105631376B (en) * 2015-12-29 2018-07-20 中国科学院信息工程研究所 RFID middleware and RFID data transmission realizing method
CN105574201B (en) * 2016-01-05 2019-05-31 卡斯柯信号有限公司 Data format and file memory method based on real-time data collection feature
CN110377649B (en) * 2019-06-17 2023-07-14 中国平安财产保险股份有限公司 Construction and query methods, devices, equipment and storage medium of tagged data
CN111601291B (en) * 2020-04-07 2022-12-02 浙江西图盟数字科技有限公司 RFID middleware, publish-subscribe system and data transmission method
CN115366958B (en) * 2022-08-25 2023-08-22 中车青岛四方机车车辆股份有限公司 Self-diagnosis method, system and data management system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622231A (en) * 2012-02-29 2012-08-01 扬州大学 Radio frequency identification middleware integrated method based on extensible markup language
CN202373004U (en) * 2011-12-22 2012-08-08 国家保密科学技术研究所 RFID-based confidential article supervisory system
CN103049773A (en) * 2012-12-14 2013-04-17 华南理工大学 Method for integration and data fusion of RFID (Radio Frequency Identification) equipment and sensing equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202373004U (en) * 2011-12-22 2012-08-08 国家保密科学技术研究所 RFID-based confidential article supervisory system
CN102622231A (en) * 2012-02-29 2012-08-01 扬州大学 Radio frequency identification middleware integrated method based on extensible markup language
CN103049773A (en) * 2012-12-14 2013-04-17 华南理工大学 Method for integration and data fusion of RFID (Radio Frequency Identification) equipment and sensing equipment

Also Published As

Publication number Publication date
CN104166862A (en) 2014-11-26

Similar Documents

Publication Publication Date Title
CN104166862B (en) A kind of method based on active and passive RFID data collection and monitoring
CN102509210B (en) Transportation storage system and method of blood
CN104715299B (en) A kind of base liquor approaches to IM and its system based on technology of Internet of things
Zhu Complex event detection for commodity distribution Internet of Things model incorporating radio frequency identification and Wireless Sensor Network
CN104464152B (en) Based on recognition of face and the antitheft system for valuables of RFID and theft preventing method thereof
CN204065815U (en) A kind of control system based on 433 gateways
KR20140047677A (en) Electronic price label system and method
CN104463313A (en) Ultrahigh frequency electronic tag with anti-dismantling protection function and anti-dismantling protection method
CN108510648A (en) A kind of automatic vending machine remote control administrative system based on GPRS DTU
CN102867347A (en) RFID (radio frequency identification) wireless interconnection safety control intelligent terminal management system
CN207008661U (en) The goods that a kind of WSN is combined with RFID is in way attitude monitoring system
CN102821185A (en) Method for keeping personal belongings
Chunli et al. Application and development of RFID technique
Ruan et al. RFID and ZigBee based manufacturing monitoring system
CN201835672U (en) Intelligent safe box based on RFID (radio frequency identification)
CN103268303B (en) A kind of method communicated between multiple RFID reader
CN103218594A (en) Radio frequency identification terminal
CN107658976A (en) A kind of new bus warning monitoring system
CN204759662U (en) Alarm based on face identification and sign discernment
CN104657769A (en) Disposable anti-theft electronic steel wire seal
CN101149811A (en) Memory device information mark system and method
CN202404617U (en) Tracking anti-counterfeit system for brand clothing based on mobile RFID
CN204480303U (en) A kind of historical relic monitor protective system based on RFID technique
CN205211090U (en) Electronic tags anti -theft system
CN110288360B (en) Anti-counterfeiting and anti-goods-mixing system and method based on BLE Lite technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170718

CF01 Termination of patent right due to non-payment of annual fee