CN102629205A - Interface system for being communicated with RFID reader - Google Patents
Interface system for being communicated with RFID reader Download PDFInfo
- Publication number
- CN102629205A CN102629205A CN2012100702448A CN201210070244A CN102629205A CN 102629205 A CN102629205 A CN 102629205A CN 2012100702448 A CN2012100702448 A CN 2012100702448A CN 201210070244 A CN201210070244 A CN 201210070244A CN 102629205 A CN102629205 A CN 102629205A
- Authority
- CN
- China
- Prior art keywords
- data
- module
- rfid reader
- pipeline
- interface system
- 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.)
- Granted
Links
Images
Abstract
The invention discloses an interface system being communicated with an RFID reader, which comprises an initialization module, an application layer module, a bottom layer data transmission module, a data checking module, a thread synchronization module and a pipeline data protective module. The bottom layer data transmission module adopts a USBHID protocol; the data checking module adopts a CRC algorithm to guarantee the high reliability of data transmission; the pipeline data protective module can promote data processing to be more efficient; and the thread synchronization module is used for realizing high-efficiency communication among threads. The interface system is compatible with multi-protocol designs including ISO/IEC15693, ISO/IEC14443A and ISO/IEC14443B standards, and can realize rapid and safe reading and writing operation of storage cards, logic encrypt cards and intelligent cards meeting the standards. The interface system improves the data transmission speed and the data processing speed of the RFID reader, and guarantees the reliability of data transmission.
Description
Technical field
The present invention relates to the RFID field, especially a kind of interface system that is used for the RFID reader communication.
Background technology
RFID (Radio Frequency Identification) reader second development interface is one group of interface that is used for the RFID reader operation.The open Management Information Base function of interface can be realized the communication with the RFID reader through the visit to command functions.Through with the communication of RFID reader, can carry out corresponding read-write operation to the rfid card sheet.This second development interface can be used for the RFID reader is carried out application and development, realizes the application corresponding system according to business need.On the WINDOWS platform, second development interface generally adopts dynamic link library technology or static link library technology to develop.
Along with the popularization that RFID uses, the RFID reader is widely used on market.But still there is following deficiency in the RFID reader second development interface that is used for application system development at present:
1. most of RFID reader second development interfaces adopt the serial communication mode, and transfer rate is slow; Perhaps adopt usb communication but and do not meet the HID agreement, need the complicated Kernel Driver of exploitation;
2. the synchronization mechanism that adopts block type to wait for influences data access speed, is unfavorable for developing some real-times and requires the application system high, that data reliability is high;
3. do not protect using layer data, when read operation that same data buffer is carried out and write operation, read-write efficiency is not high and be easy to generate the read-write mistake.
Summary of the invention
The technical matters that the present invention will solve is: the interface system that carries out secondary development with communicating by letter of RFID reader that provides that a kind of transfer rate is fast, data reliability is high.
In order to solve the problems of the technologies described above, the technical scheme that the present invention adopted is:
A kind of interface system that is used for the RFID reader communication comprises:
Initialization module is used for said interface system is carried out initialization operation, comprises the interface initialization with the RFID reader communication, initial work such as thread, data buffer;
Application layer module is used to handle the application layer order and reaches the bottom data from the bottom thread;
The bottom data transport module is used for carrying out the transmission of bottom data through communication interface and RFID reader;
The data check module is used for the integrality and the correctness of bottom data are carried out verification;
The thread synchronization module is used to realize the coordinate synchronization between application layer thread and the bottom thread;
The pipeline data protection module is used for the data from application layer module are protected;
Application layer module receives application layer order back generation order data and writes the pipeline data protection module; Thread synchronization module notice bottom thread has been accomplished order data and has been prepared; The data check module is carried out checking treatment and will be passed to the bottom data transport module through the order data after the verification the order data from the pipeline data protection module, and the bottom data transport module is sent to the RFID reader with order data through interrupting the way of output; The bottom data transport module receives from the bottom data of RFID reader after the data check module is carried out verification to the integrality and the correctness of bottom data; To write the pipeline data protection module through the bottom data of verification, thread synchronization module notification applications layer module reads bottom data from the pipeline data protection module.
Further as preferred embodiment, said pipeline data protection module comprises and is used to store the pipeline data buffer zone of the data that get into the pipeline data protection module and the authority judge module that the read-write operation authority is judged.
Further as preferred embodiment; Also comprise a data packet parse module; After said thread synchronization module notice bottom thread had been accomplished the order data preparation, the data packet parse module carried out passing to the data check module after package is handled to the order data from the pipeline data protection module and carries out checking treatment; Said bottom data through verification writes the pipeline data protection module after the data packet parse module unpacks processing.
Further as preferred embodiment, the application layer order that said application layer module is handled meets ISO/IEC15693 standard, ISO/IEC1443A standard or ISO/IEC14443B standard.
Further as preferred embodiment, said bottom data transport module adopts USB interface and RFID reader to communicate, and communication protocol meets USB HID agreement.
Further as preferred embodiment, said data check module adopts the CRC algorithm that the integrality and the correctness of bottom data are carried out verification.
The invention has the beneficial effects as follows: the present invention is used for the RFID reader is carried out the interface system of secondary development, has adopted multi-thread design, has guaranteed the efficient processing to data; When handling the order data that application layer module generates, the authority of read-write operation is judged that the data transmission fault of having avoided read/write conflict to cause has improved the stability and the reliability of system through the pipeline data protection module.
Description of drawings
Be described further below in conjunction with the accompanying drawing specific embodiments of the invention:
Fig. 1 is that the present invention is used for the theory diagram with the interface system of RFID reader communication;
Fig. 2 is the structural representation of interface system application layer module of the present invention;
Fig. 3 is the structural representation of interface system pipeline data protection module of the present invention.
Embodiment
With reference to Fig. 1, the present invention is a kind of to be used for the interface system with the RFID reader communication, comprising:
Bottom data transport module 20 is used for carrying out the transmission of bottom data through communication interface and RFID reader; After initialization module 10 is accomplished initialization operation; The bottom data transport module has obtained a series of details such as USB working method, working end point and endpoint transmission mode of RFID reader; The bottom data transport module is handled when the data transmission according to these information accordingly, with guarantee data fast, reliable transmission;
Pipeline data protection module 60 is used for protecting from the data of application layer module 70.
The principle of work of interface system of the present invention is following:
Earlier the RFID reader is connected to the PC main frame through USB interface, simultaneously the rfid card sheet is positioned in the induced field of RFID reader, on PC, call this USB interface;
By the initialization operation of initialization module 10 executive's interface systems, specifically comprise initial work settings such as Memory Allocation, thread initialization, USB device are enumerated, the RFID reader is provided with;
Accomplish after the initialization operation; The PC main frame is according to demand calling application layer module 70; Application layer module 70 receives the application layer order and carries out handled and generate order data; Then the order data that generates is write pipeline data protection module 60, thread synchronization module 50 notice bottom threads have been accomplished order data and have been prepared;
The bottom thread carries out checking treatment through 30 pairs of data check modules from the order data in the pipeline data protection module 60 also will pass to bottom data transport module 20 through the order data after the verification;
Bottom data transport module 20 is sent to the RFID reader with order data through interrupting the way of output; Bottom data transport module 20 is packaged in order data in the form of USB HID agreement, is sent to the RFID reader and waits for returning of RFID reader data through interrupting the way of output;
Bottom data transport module 20 receives from the bottom data of RFID reader after the integrality of 30 pairs of bottom datas of data check module and correctness are carried out verification, will write pipeline data protection module 60 through the bottom data of verification; Said data check module 30 adopts the CRC algorithm that the integrality and the correctness of bottom data are carried out verification;
With reference to Fig. 2, application layer module 70 is used for the reception to the transmission of the order data of the rfid card sheet that meets different protocol standards and the bottom data that returns.Its function is respectively:
ISO/IEC15693 submodule 71: the application layer submodule that is used to handle the order of the storage card that meets the ISO/IEC15693 consensus standard.
ISO/IEC14443A submodule 72: be used to handle logic encryption card and each application layer submodule of ordering of smart card of meeting the ISO/IEC14443A consensus standard.
ISO/IEC14443B submodule 73: be used to handle storage card and each application layer submodule of ordering of smart card of meeting the ISO/IEC14443B consensus standard.
With reference to Fig. 3; Pipeline data protection module 60 comprises pipeline data buffer zone 61 that is used to store the data that get into pipeline data protection module 60 and the authority judge module 62 that the read-write operation authority is judged; The data that will meet the write operation of predetermined policy through authority judge module 62 are passed through pipeline input channel data buffer 61; The data that will meet the read operation of predetermined policy are read in output channel from pipeline data buffer zone 61, have guaranteed the efficient processing of data.
As the further improvement of interface system of the present invention, interface system of the present invention also comprises a data packet parse module 40, and the order data from application layer is carried out package and bottom data is unpacked.After said thread synchronization module 50 notice bottom threads have been accomplished the order data preparation; 40 pairs of order datas from the pipeline data protection module of data packet parse module carry out passing to data check module 30 after package is handled and carry out checking treatment, and the order data through verification passes to bottom data transport module 20; For bottom data; 30 pairs of data check modules adopt the CRC algorithms to carry out integrality and verification of correctness from the bottom datas of bottom data transport module 20, and the bottom data through verification writes pipeline data protection module 60 after data packet parse module 40 unpacks processing.Data packet parse module 40 and data check module 30 constitute the intermediary interface of application layer order datas and bottom data.Preferably, data packet parse module 40 also adopts the packet chained technology, the related bits position is set during through package specifies this packet whether to belong to the link bag, and then realize the transmission of long arbitrarily application data bag.
Aspect the raising message transmission rate: present most of RFID reader second development interface adopts the serial communication mode; The transfer rate of bottom data is not high; Interface system of the present invention has adopted USB HDI communication mode, and end points adopts and interrupts importing and the transmission mode of interrupting output, and the form that combines to simplify transmits data; Guaranteed the seeervice cycle and the bandwidth of data transmission, thereby the high speed that has guaranteed the bottom data transmission is with stable.
Aspect the raising data-handling efficiency: multi-thread design mode and unblock formula waiting mechanism are not adopted in most second development interface designs, and efficient is not high on data processing.When same data buffer is read and write, adopt the timesharing strategy, can't reach the efficient operation of reading and writing data.The present invention takes the multi-thread design mode, adopts incident kernel objects synchronization mechanism and unblock formula to wait for, and has designed the concurrency of pipeline data protection module assurance data write, thereby has guaranteed the data processing high efficiency.
Aspect the raising data reliability: aspect the reliability that guarantees data; Most second development interface does not guarantee the reliability of application layer data; And only rely on the host-host protocol that adopts that bottom data is carried out simple protective at bottom; Perhaps just adopt simple XOR account form, forcefully the reliability of protected data.The present invention has adopted the multi-levels data protection mechanism aspect the reliability that guarantees data.USB HID agreement has guaranteed the reliability of bottom data, and data check module 30 and pipeline data protection module 60 have guaranteed the reliability of application layer order data.Data check module 30 has adopted the CRC algorithm, not only than XOR account form stronger debugging ability is arranged, and also has the error correcting capability that the XOR account form is not had.Pipeline data protection module 60 has adopted the authority judgment mechanism, has effectively guaranteed the safe read-write of the application layer data in the pipeline data buffer zone 61.
More than be that preferable enforcement of the present invention is specified; But the invention is not limited to said embodiment; Those of ordinary skill in the art can also make all equivalent variations or replacement under the prerequisite of spirit of the present invention, distortion that these are equal to or replacement all are included in the application's claim institute restricted portion.
Claims (6)
1. an interface system that is used for the RFID reader communication is characterized in that, comprising:
Initialization module (10) is used for said interface system is carried out initialization operation;
Application layer module (70) is used to handle the application layer order and reaches the bottom data from the bottom thread;
Bottom data transport module (20) is used for carrying out the transmission of bottom data through communication interface and RFID reader;
Data check module (30) is used for the integrality and the correctness of bottom data are carried out verification;
Thread synchronization module (50) is used to realize the coordinate synchronization between application layer thread and the bottom thread;
Pipeline data protection module (60) is used for the data from application layer module are protected;
Said application layer module (70) receives application layer order back generation order data and writes pipeline data protection module (60); Thread synchronization module (50) notice bottom thread has been accomplished order data and has been prepared; Data check module (30) is carried out checking treatment and will be passed to bottom data transport module (20) through the order data after the verification the order data from pipeline data protection module (60), and bottom data transport module (20) is sent to the RFID reader with order data through interrupting the way of output; Bottom data transport module (20) receives from the bottom data of RFID reader after data check module (30) is carried out verification to the integrality and the correctness of bottom data; To write pipeline data protection module (60) through the bottom data of verification, thread synchronization module (50) notification applications layer module (70) reads bottom data from pipeline data protection module (60).
2. a kind of interface system that is used for the RFID reader communication according to claim 1 is characterized in that: said pipeline data protection module (60) comprises and is used for pipeline data buffer zone (61) and the authority judge module (62) that the read-write operation authority is judged that storage gets into the data of pipeline data protection module (60).
3. a kind of interface system that is used for the RFID reader communication according to claim 1; It is characterized in that: also comprise a data packet parse module (40); After said thread synchronization module (50) notice bottom thread had been accomplished the order data preparation, data packet parse module (40) carried out passing to data check module (30) after package is handled to the order data from the pipeline data protection module and carries out checking treatment; Said bottom data through verification writes pipeline data protection module (60) after data packet parse module (40) unpacks processing.
4. a kind of interface system that is used for the RFID reader communication according to claim 1 is characterized in that: the application layer order that said application layer module (70) is handled meets ISO/IEC15693 standard, ISO/IEC1443A standard or ISO/IEC14443B standard.
5. a kind of interface system that is used for the RFID reader communication according to claim 1 is characterized in that: said bottom data transport module (20) adopts USB interface and RFID reader to communicate, and communication protocol meets USB HID agreement.
6. a kind of interface system that is used for the RFID reader communication according to claim 1 is characterized in that: said data check module (30) adopts the CRC algorithm that the integrality and the correctness of bottom data are carried out verification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210070244.8A CN102629205B (en) | 2012-03-16 | 2012-03-16 | Interface system for being communicated with RFID reader |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210070244.8A CN102629205B (en) | 2012-03-16 | 2012-03-16 | Interface system for being communicated with RFID reader |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102629205A true CN102629205A (en) | 2012-08-08 |
CN102629205B CN102629205B (en) | 2015-03-11 |
Family
ID=46587465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210070244.8A Expired - Fee Related CN102629205B (en) | 2012-03-16 | 2012-03-16 | Interface system for being communicated with RFID reader |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102629205B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104699512A (en) * | 2015-03-31 | 2015-06-10 | 四川秘无痕信息安全技术有限责任公司 | Procedure and method for online Android device underlying data reading and writing |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006123920A1 (en) * | 2005-05-20 | 2006-11-23 | Lg Electronics Inc. | Radio frequency identification data processing system |
US20090077624A1 (en) * | 2005-03-16 | 2009-03-19 | Marc Baum | Forming A Security Network Including Integrated Security System Components and Network Devices |
CN101408948A (en) * | 2008-11-25 | 2009-04-15 | 东南大学 | Middleware for wireless radio frequency recognition system and working method thereof |
CN101739575A (en) * | 2008-11-26 | 2010-06-16 | 上海科识通信息科技有限公司 | Data processing method for multi-hardware equipment centralized management in radio frequency identification system |
CN101950261A (en) * | 2010-09-09 | 2011-01-19 | 中兴通讯股份有限公司 | Data storage/authentication parallel processing method and terminal |
CN101957927A (en) * | 2010-11-12 | 2011-01-26 | 福州联迅信息科技有限公司 | Middleware architecture of Internet of things and SOA architecture-based middleware of Internet of things |
CN102004891A (en) * | 2009-09-03 | 2011-04-06 | 上海宝信软件股份有限公司 | Interprocess data communication method and device for RFID (Radio Frequency Identification Device) middleware |
-
2012
- 2012-03-16 CN CN201210070244.8A patent/CN102629205B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090077624A1 (en) * | 2005-03-16 | 2009-03-19 | Marc Baum | Forming A Security Network Including Integrated Security System Components and Network Devices |
WO2006123920A1 (en) * | 2005-05-20 | 2006-11-23 | Lg Electronics Inc. | Radio frequency identification data processing system |
CN101408948A (en) * | 2008-11-25 | 2009-04-15 | 东南大学 | Middleware for wireless radio frequency recognition system and working method thereof |
CN101739575A (en) * | 2008-11-26 | 2010-06-16 | 上海科识通信息科技有限公司 | Data processing method for multi-hardware equipment centralized management in radio frequency identification system |
CN102004891A (en) * | 2009-09-03 | 2011-04-06 | 上海宝信软件股份有限公司 | Interprocess data communication method and device for RFID (Radio Frequency Identification Device) middleware |
CN101950261A (en) * | 2010-09-09 | 2011-01-19 | 中兴通讯股份有限公司 | Data storage/authentication parallel processing method and terminal |
CN101957927A (en) * | 2010-11-12 | 2011-01-26 | 福州联迅信息科技有限公司 | Middleware architecture of Internet of things and SOA architecture-based middleware of Internet of things |
Non-Patent Citations (3)
Title |
---|
李欣荣: "RFID中间件技术在现代图书馆的应用", 《数字与缩微影像》, no. 1, 24 April 2009 (2009-04-24), pages 28 - 30 * |
路康等: "基于JMS的RFID中间件设计与实现", 《河南大学学报(自然科学版)》, 30 September 2008 (2008-09-30) * |
邓海生等: "RFID中间件研究与设计", 《计算机技术与发展》, 30 November 2008 (2008-11-30) * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104699512A (en) * | 2015-03-31 | 2015-06-10 | 四川秘无痕信息安全技术有限责任公司 | Procedure and method for online Android device underlying data reading and writing |
Also Published As
Publication number | Publication date |
---|---|
CN102629205B (en) | 2015-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200366135A1 (en) | Near field communication and wireless power | |
US10192081B2 (en) | Interface between near field communications (NFC) controller and secure element | |
KR101724840B1 (en) | Radio communication devices and methods for controlling a radio communication device | |
CN102136046B (en) | High-speed low-power consumption safe secure digital (SD) card communicating method | |
WO2012143953A4 (en) | Optimized multi-root input output virtualization aware switch | |
CN108141733B (en) | NFC split stack architecture | |
US20070237087A1 (en) | Communication medium, communication medium processing apparatus, and communication medium processing system | |
CN111930676A (en) | Method, device, system and storage medium for communication among multiple processors | |
JP2018531565A6 (en) | NFC “split stack” architecture | |
CN104798010A (en) | Serial storage protocol compatible frame conversion, at least in part | |
CN107153412B (en) | A kind of CAN controller circuit with transmission FIFO | |
CN103150190A (en) | Automatic detecting and driving loading method of user mode network card in Linux system | |
CN105573947B (en) | A kind of SD/MMC card control methods based on APB buses | |
CN104143996A (en) | Radio communication devices and methods for controlling a radio communication device | |
CN102629205B (en) | Interface system for being communicated with RFID reader | |
CN106919531A (en) | Exchange method and equipment based on non-volatile memories bus protocol | |
CN110659143B (en) | Communication method and device between containers and electronic equipment | |
CN104408516B (en) | A kind of novel double-core piece smart card and its control method | |
CN100511196C (en) | Data processing chip and memory device | |
CN101566975B (en) | Method for communication with safe mobile memory apparatus | |
CN205263799U (en) | Treatment circuit of indiscriminate preface response package of PCIe link | |
CN101645299B (en) | High-speed safe U disk with expansible card reader | |
CN101882231B (en) | RFID (Radio Frequency Identification Devices) reader-writer and data transmission method thereof | |
CN101754448B (en) | Dual-core intelligent card for mobile communication and data transmission and processing method thereof | |
CN103679257B (en) | A kind of contactless payment telecommunications integrated circuit card and implementation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150311 Termination date: 20190316 |
|
CF01 | Termination of patent right due to non-payment of annual fee |