CN101847167A - Mapping, modeling and simulating method of radio frequency identification system - Google Patents

Mapping, modeling and simulating method of radio frequency identification system Download PDF

Info

Publication number
CN101847167A
CN101847167A CN201010109396A CN201010109396A CN101847167A CN 101847167 A CN101847167 A CN 101847167A CN 201010109396 A CN201010109396 A CN 201010109396A CN 201010109396 A CN201010109396 A CN 201010109396A CN 101847167 A CN101847167 A CN 101847167A
Authority
CN
China
Prior art keywords
client
thread
server
modeling
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.)
Granted
Application number
CN201010109396A
Other languages
Chinese (zh)
Other versions
CN101847167B (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.)
Sysung Electronics and Telecomm Research Institute
Original Assignee
谭洪舟
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 谭洪舟 filed Critical 谭洪舟
Priority to CN201010109396A priority Critical patent/CN101847167B/en
Publication of CN101847167A publication Critical patent/CN101847167A/en
Application granted granted Critical
Publication of CN101847167B publication Critical patent/CN101847167B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a mapping, modeling and simulating method of a radio frequency identification (RFID) system. The method comprises the following steps: a reader-writer is taken as a server side and a tag card is taken as a client side to establish a Server/Client model, and connection of a TCP protocol is established between the server side and the client side; the server side starts up a management sub-thread to analyze commands and initialize commands; one corresponding management sub-thread is restarted for each connected client side to achieve sending out a reader-writer command and receiving response of the tag card; and the client side repeatedly carries out three steps of analyzing the commands, processing data and responding until an ending signal is obtained, i.e. the actual tag card in practice gets away from the effective area of an electromagnetic field. The method of the invention mainly adopts the mode based on a Server/Client network architecture model and a system multi-thread application technology to achieve mapping and modeling of the RFID system and rapid and effective preliminary evaluation and confirmation of the overall RFID system.

Description

Mapping, modeling and simulating method of radio frequency identification system
Technical field
The present invention relates to radio-frequency (RF) identification (RFID) technical field, be specially a kind of mapping, modeling and simulating method of radio frequency identification system based on server/customer end model and multithreading.
Background technology
RFID (Radio Frequency Identification) technology is the emerging technology that promotes present information service development, it has a large capacity and a wide range, it is the technology that new growth engines and tool are changed power, can be widely used in fields such as production, logistics, traffic, manufacturing, medical treatment, public information service, can significantly improve management and operational paradigm, reduce cost, promote modern service industry, new high-tech industry and advanced manufacturing industry fusion development.
When carrying out the rfid system design, no matter be design read write line or label card, all needing has thorough assurance to whole protocol interaction flow process.In order to hold the correctness of design, except by related consensus standard is carried out deep and careful studying carefully, can also use the method for modeling and simulating, come more clearly to reproduce the communication process of " order-response " of consensus standard defined.
Yet, at present generally when carrying out the research and development of rfid system exploitation or RFID chip, be mostly earlier to carry out software emulation at the difference in functionality module again, as software emulation checking at anti-collision algorithms to totally carrying out function modoularization; Again each module and total system are carried out hardware design and testing authentication.Such design process has two aspect deficiencies, and the one, do not carry out low-cost and total system software emulation checking fast, the 2nd, the hardware simulation proving period of total system is oversize, can't carry out simple and effective software verification in early stage.Based on above problem, be badly in need of a kind of novel rfid system software emulation checking of invention modeling method, realize assessment checking in early stage fast and effectively to the RFID total system.
Summary of the invention
The problem that exists when the objective of the invention is at the above rfid system exploitation or the research and development of RFID chip, providing needs a kind of mapping, modeling and simulating method of radio frequency identification system of realizing the assessment checking in early stage fast and effectively of RFID total system based on server/customer end model and multithreading of invention.
The present invention is achieved in that mapping, modeling and simulating method of radio frequency identification system, with read write line as server end, label card is set up server/customer end (Server/Client) model as client, sets up being connected of Transmission Control Protocol between server end and the client;
Server end is opened a sub-thread of management, the work of Treatment Analysis order, initialization command; And open one again for each client that has connected and manage sub-thread accordingly, realize the transmission of read write line order and the reception that label card is responded;
Client is carried out analysis order, data processing repeatedly, the circulation of three steps responding, and until obtaining end signal, promptly the label card in the reality leaves the electromagnetic field effective coverage.Native system promptly is to simulate the information transmission of being undertaken by the electromagnetism place between read write line and label card with this.
Described server end mainly is the work of being simulated whole read write line end by read write line management thread and label card management thread.The method of synchronization that activates by incident between read write line management thread and label card management thread communicates, thereby realizes the synchronized broadcast of order, and the synchronous acquisition of response is handled.
Described at server end, defined the global variable s_send[10 of two unsigned char array types] and s_recv[20] [10], s_send[10] the service device waits the command frame sent out, shares for all sub-threads that connected, realizes the transmission of " order "; S_recv[20] response frame of the connexon thread of controlling oneself that receives of [10] service device, and distinguish different clients with the one dimension subscript of two-dimensional array.This structure helps server and carries out anti-collision round-robin data processing.
In order on same PC, to carry out rfid system emulation, can make client when foundation is connected with the TCP of server, consistent with the IP of server binding this machine IP is called out.
The present invention mainly adopts the mapping, modeling of realizing rfid system based on the mode of Server/Client network architecture model and system's multithreading application technology.Can simulate single read write line and many situations that label card is mutual based on Server/Client network architecture model, server is suitable read write line, client promptly is equivalent to label card, tangible network promptly is equivalent to invisible read write line magnetic field, carry out each other coordination by multithreading, thereby realize the function of simulation, can realize assessment checking in early stage fast and effectively the RFID total system.
Description of drawings
Fig. 1 is server/customer end (Server/Client) the modular concept block diagram of mapping, modeling and simulating method of radio frequency identification system of the present invention;
Fig. 2 is the process flow diagram of the server end of mapping, modeling and simulating method of radio frequency identification system of the present invention;
Fig. 3 is the process flow diagram of the client of mapping, modeling and simulating method of radio frequency identification system of the present invention.
Embodiment
Below in conjunction with accompanying drawing mapping, modeling and simulating method of radio frequency identification system of the present invention is further set forth.
Mapping, modeling and simulating method of radio frequency identification system, as server end, label card is set up as shown in Figure 1 server/customer end (Server/Client) model as client with read write line, sets up being connected of Transmission Control Protocol between server end and the client; Server end is opened a sub-thread of management, the work of Treatment Analysis order, initialization command; And open one again for each client that has connected and manage sub-thread accordingly, realize the transmission of read write line order and the reception that label card is responded; Client is carried out analysis order, data processing repeatedly, the circulation of three steps responding, and until obtaining end signal, promptly the label card in the reality leaves the electromagnetic field effective coverage.Native system promptly is to simulate the information transmission of being undertaken by the electromagnetism place between read write line and label card with this.
Typical R FID system for example can be that single read write line is corresponding to many label cards, and by read write line broadcasting command or data, responded respectively or the pattern of data feedback by label card.So when carrying out system modelling emulation, the crucial independence that just is how to embody a plurality of main bodys such as read write line and many label cards more is how to embody the process of carrying out command response and data interaction between read write line and label card.
In order to simulate single read write line, many situations that label card is mutual, the present invention has utilized the server/customer end in the network technology (Server/Client) model.The server/customer end model is to be used for realizing on the main frame of many different spatial multiple functions such as resource sharing, resource management and unified control in network application.Its transmission medium is the network that is made of electric wire optical fiber.When a station server and a plurality of client were carried out data interaction, the single read write line in the quite similar rfid system and many label cards carried out mutual situation.Server is suitable read write line, and client promptly is equivalent to label card, and tangible network promptly is equivalent to invisible read write line magnetic field.Certainly, we can allow same PC play the part of the role of server and client simultaneously when emulation, carry out each other coordination by multithreading, thereby realize the function of simulation.
The native system platform is at first set up being connected of Transmission Control Protocol between server and client when specific implementation.For server end, can open a sub-thread of management, the work of Treatment Analysis order, initialization command; And open one again for each client that has connected and manage sub-thread accordingly, realize the transmission of read write line order and the reception that label card is responded.For client then is to carry out analysis order, data processing repeatedly, the circulation of three steps responding, and until obtaining end signal, promptly the label card in the reality leaves the electromagnetic field effective coverage.Native system promptly is to simulate the information transmission of being undertaken by the electromagnetism place between read write line and label card with this.
Server end mainly is the work of being simulated whole read write line end by read write line management thread and label card management thread.Cross-thread communicates by the method for synchronization that incident activates, thereby realizes the synchronized broadcast of order, and the synchronous acquisition of response is handled.
In order on same PC, to carry out rfid system emulation, can make client when foundation is connected with the TCP of server, consistent with the IP of server binding this machine IP is called out.
When simulation command frame and response frame, native system adopts the variable of unsigned char type to represent a byte, and constitutes a frame structure with the array of unsigned char type.
In addition, on simulation synchronism problem, the native system platform solves by the simultaneous techniques of thread.Here adopted the processing mode of critical section to guarantee of the read and write of each thread to global variable; When having adopted the thread synchronization mode of event object (Event) to guarantee that thread is advanced simultaneously synchronously, thereby the synchronism when realizing that rfid system sends order and receives response.
Mapping, modeling and simulating method of radio frequency identification system of the present invention is as follows in concrete enforcement, mainly comprises the design and the client design of server end.
(1) server end design
At server end, defined the global variable s_send[10 of two unsigned char array types] and s_recv[20] [10], s_send[10] the service device waits the command frame sent out, shares for all sub-threads that connected, realizes the transmission of " order "; S_recv[20] response frame of the next own connexon thread that receives of [10] service device, and distinguish different clients with the one dimension subscript of two-dimensional array.This structure helps server and carries out anti-collision round-robin data processing.
At first, carry out data processing, comprise and analyze current response condition, finish the order to be sent of next bar, carry out work such as state exchange by the read write line management thread.Then the read write line management thread can activate incident hEvent_s, is equivalent to send an indicator signal, and the indication next command has initially been finished and has been ready for sending.The read write line management thread will enter the stage of waiting for label card management thread indicator signal automatically then, wait for that all label cards finish the synchronization point of response.
And in the label card management thread, be to be blocked in the state of waiting for indicator signal at the beginning, when obtaining the indication that initially finishes from the order that the read write line management thread is sent, promptly begun to the reading and sending process of command frame with to the reception and the ablation process of response frame.Activate incident hEvent_c[num after finishing again], the label card response of the current num of being numbered of indication finishes.
Therefore, mainly be the work of simulating whole read write line end by read write line management thread and label card management thread at server end.Cross-thread communicates by the method for synchronization that incident activates, thereby realizes the synchronized broadcast of order, and the synchronous acquisition of response is handled.This point is of crucial importance in the rfid system of reality.
On the basis of server-side system platform, can realize the read write line function of compatible different agreement by the data processing function in the read write line management thread is carried out concrete description.
Server end specific procedure flow process as shown in Figure 2.
(2) client design
Defined the global variable reply[10 of a unsigned char array type in client], be used to store current response frame to be sent, make data handling procedure seem clear and convenience.
In order on same PC, to carry out rfid system emulation, can make client when foundation is connected with the TCP of server, consistent with the IP of server binding this machine IP is called out.
The modeling of client is simple relatively, and main platform feature can realize by a circulation.At first be that the order that receives from server end is waited on obstructive ground, then carry out order analysis and data processing, frame and sending meets with a response; Carry out at last the judgement of done state again,, then quit work automatically as leaving read write line electromagnetic field inducing scope as if label card in the reality.
Client end specific procedure flow process as shown in Figure 3.
If will develop on this system platform, it is specific only to need that then order analysis in the circulation and data processing link are carried out suitable function performance, can realize the compatibility to different rfid systems.

Claims (4)

1. mapping, modeling and simulating method of radio frequency identification system is characterized in that, as server end, label card is set up the server/customer end model as client with read write line, sets up being connected of Transmission Control Protocol between server end and the client;
Server end is opened a sub-thread of management, the work of Treatment Analysis order, initialization command; And open one again for each client that has connected and manage sub-thread accordingly, realize the transmission of read write line order and the reception that label card is responded;
Client is carried out analysis order, data processing repeatedly, the circulation of three steps responding, and until obtaining end signal, promptly the label card in the reality leaves the electromagnetic field effective coverage.
2. frequency recognition system mapping, modeling and simulating method according to claim 1 is characterized in that, described server end is the work of being simulated whole read write line end by read write line management thread and label card management thread; The method of synchronization that activates by incident between read write line management thread and label card management thread communicates, and realizes the synchronized broadcast of order, and the synchronous acquisition of response is handled.
3. the frequency recognition system mapping, modeling and simulating method of stating according to claim 2, it is characterized in that, described server end has defined the global variable s_send[10 of two unsigned char array types] and s_recv[20] [10], s_send[10] the service device waits the command frame sent out, share for all sub-threads that connected, realize the transmission of " order "; S_recv[20] response frame of the next own connexon thread that receives of [10] service device, and distinguish different clients with the one dimension subscript of two-dimensional array.
4. frequency recognition system mapping, modeling and simulating method according to claim 1 is characterized in that, when described client is connected with the TCP of server end in foundation, consistent with the IP of server end binding this machine IP is called out.
CN201010109396A 2010-02-05 2010-02-05 Mapping, modeling and simulating method of radio frequency identification system Expired - Fee Related CN101847167B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010109396A CN101847167B (en) 2010-02-05 2010-02-05 Mapping, modeling and simulating method of radio frequency identification system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010109396A CN101847167B (en) 2010-02-05 2010-02-05 Mapping, modeling and simulating method of radio frequency identification system

Publications (2)

Publication Number Publication Date
CN101847167A true CN101847167A (en) 2010-09-29
CN101847167B CN101847167B (en) 2012-10-10

Family

ID=42771786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010109396A Expired - Fee Related CN101847167B (en) 2010-02-05 2010-02-05 Mapping, modeling and simulating method of radio frequency identification system

Country Status (1)

Country Link
CN (1) CN101847167B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383565A (en) * 2013-06-20 2013-11-06 国家电网公司 Closed loop testing method for step-out wide area control system
CN108537084A (en) * 2018-06-05 2018-09-14 福建工程学院 A kind of multi-protocols and emulate multi-tag RFID reader design method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201259678Y (en) * 2008-03-04 2009-06-17 烽火通信科技股份有限公司 Flexible and general RFID system
CN101398906A (en) * 2008-10-10 2009-04-01 华南理工大学 RFID middleware based on agent and equipment management method thereof
CN101477635B (en) * 2008-12-12 2013-05-08 华南理工大学 Embedded RFID middleware based on light-weight ALE

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383565A (en) * 2013-06-20 2013-11-06 国家电网公司 Closed loop testing method for step-out wide area control system
CN103383565B (en) * 2013-06-20 2016-01-20 国家电网公司 A kind of closed loop test method of step-out wide-area control system
CN108537084A (en) * 2018-06-05 2018-09-14 福建工程学院 A kind of multi-protocols and emulate multi-tag RFID reader design method
CN108537084B (en) * 2018-06-05 2023-06-27 福建工程学院 Design method of multi-protocol and multi-tag simulation RFID reader

Also Published As

Publication number Publication date
CN101847167B (en) 2012-10-10

Similar Documents

Publication Publication Date Title
CN105515819B (en) A kind of data interface method and system of communication component and application component based on IEC61850
CN108023879A (en) A kind of NB-IOT device data acquisition system and methods based on block chain
CN103297517B (en) Distributed data transmission method of condition monitoring system
CN109101381A (en) Configuration file update method, system, electronic equipment and storage medium
CN104065528A (en) Method And Apparatus For Analyzing And Verifying Functionality Of Multiple Network Devices
CN105335316A (en) Motor assembling line serial port server based on cloud computation
CN108141733A (en) NFC " splitting storehouse " architectural framework
CN103188101A (en) Distributed type collection scheduling method and device
CN102053962A (en) Lightweight middleware-based networking RFID system and data interaction method
CN101847167B (en) Mapping, modeling and simulating method of radio frequency identification system
CN105225305A (en) A kind of passive smart lock system and method for operating thereof
CN108333566A (en) A kind of portable radar test system and test method based on ZYNQ
CN109348498A (en) NM server test method, device and system
CN107948970A (en) System of real name method of network entry, system and the mobile terminal of subordinate terminal
CN110224898A (en) Specification encryption test method, device, equipment and the storage medium of distribution terminal
CN205158404U (en) Concrete test block positioning system based on RFID chip
CN105988903A (en) Laptop mainboard tester
CN207164210U (en) A kind of test device of smart card
CN204244262U (en) Based on the consistency test device of IEC 61850 configuration file of NI CRIO platform
JP6243906B2 (en) Method and device for providing communication connections for multiple candidate applications within a mobile device
CN115278211A (en) Image processing method, device and system and image acquisition equipment
CN106663170A (en) Information processing system, control method, and control program
CN212367291U (en) Internet of things terminal test system
CN206921162U (en) One kind communication inspection device
CN105554794A (en) Portable wireless ZigBee network configuration 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
ASS Succession or assignment of patent right

Owner name: GUANGZHOU HUADU DISTRICT SYSUNG ELECTRONICS AND TE

Free format text: FORMER OWNER: TAN HONGZHOU

Effective date: 20130703

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 510310 GUANGZHOU, GUANGDONG PROVINCE TO: 510006 GUANGZHOU, GUANGDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20130703

Address after: 510006, No. 8, Jinghu Avenue, Xinhua Street, Huadu District, Guangdong, Guangzhou

Patentee after: Sysung Electronics and Telecomm Research Institute

Address before: 510310, room 764, 604 west side, 135 West Haizhuqu District Road, Guangzhou, Guangdong, Xingang

Patentee before: Tan Hongzhou

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

Granted publication date: 20121010

Termination date: 20150205

EXPY Termination of patent right or utility model