How RFID application system transmits data through web services
Abstract: RFID technology has attracted more and more attention because of its own advantages, and its application system has also begun to be widely used. In RFID application system, we need a fast and effective way to transmit data on the Internet. This paper studies the use of WebService technology to provide the interconnection between different platforms, which can well solve the demand for data transmission in RFID application system, solve the information interaction between enterprises and between different enterprises, and make RFID application system operate more effectively
0 introduction
as a new automatic identification technology, radio frequency identification (RFID) has developed rapidly at home and abroad in recent years. It has many advantages, such as high precision, strong adaptability to the environment, strong anti-interference, fast operation and so on. Web services (Web services) is also a technology that has attracted much attention in the information field in recent years. Interconnection can cross the boundaries between enterprises through WebServices technology. RFID makes it easier and more flexible to obtain item information. After using this technology, commercial application systems can more effectively grasp the information of item attributes and flow direction. These data can be transferred between different systems through interconnection, and WebServices technology can make it easier for different endpoints on the network to share real-time data and transaction processing. Therefore, the combination of RFID and web services is very necessary
this paper introduces the composition, working principle and application of RFID system, as well as the basic definition and composition of WebService. This paper expounds the necessity of the combination of RFID and web.service. This paper studies the process of using WebService to transmit data in RFID application system, and introduces how to realize its function. And summarize the above research and implementation
1 basic overview it is used to measure the deformation concept generated by the sample in the experimental process
1.1 RFID system composition, working principle and application prospects
radio frequency identification (RFID) is a kind of automatic identification technology, that is, to identify the target through non-contact two-way data communication through radio frequency. Compared with traditional identification technology, it has outstanding advantages such as non-contact, erasable information, larger reading and writing distance, large capacity (relative to bar code), information input and processing without manual intervention, multiple identification, and working in various harsh environments. It can be widely used in production, logistics, transportation, medical treatment, anti-counterfeiting, tracking, equipment and asset management and other application fields that need to collect and process data, It is considered as a future substitute for bar code labels
rfid system is basically composed of electronic tag, reader reader and application system processor. The electronic tag has the functions of intelligent reading and writing and encrypted communication. It exchanges data with the reading and writing equipment through radio waves, and the working energy is provided by the RF pulse sent by the reader. The tag reader can transmit the read-write command of the host to the electronic tag, encrypt the data sent from the host to the electronic tag, and decrypt the data returned by the electronic tag and send it to the host. The data exchange and application software mainly completes the storage and management of data information and the reading and writing control of cards
the basic working principle of RFID (as shown in Figure 1) is to use the transmission characteristics of RF signal and spatial coupling (inductive or electromagnetic coupling) to realize the automatic identification of the identified items. The tag reader emits electromagnetic waves, and this electromagnetic wave has its radiation range. When the electronic tag enters this electromagnetic wave radiation range, the electronic tag stores the small electromagnetic wave energy emitted by the reader and then converts it into the electric energy required by the circuit, and transmits the stored identification data to the reader in the form of electromagnetic waves for confirmation and subsequent data exchange with the application software
with the development and evolution of RFID technology and the reduction of costs, RFID technology will mainly focus on the application of supply chain in the next few years. The global open market will bring huge business opportunities for RFID. From procurement, warehousing, production, packaging, unloading, circulation and processing, distribution, sales to services, when these business processes and links in the supply chain operate, enterprises must at any time accurately grasp the business flow, logistics, information and capital flow in the supply chain, so as to enable enterprises to give full play to their efficiency and benefits. RFID technology is a technology that effectively solves the problems of input and output of business operation data, control and tracking of business processes, and reducing the error rate in the supply chain
1.2 overview and architecture of WebService
web service is an Internet based development model proposed by Microsoft, which has been widely promoted by the industry as soon as it is proposed. Architecture description, which is defined as: Web services are self-contained and modular applications, which can be described, published, found and called in the network (usually the web). One of the main ideas of Web services is that future applications will be composed of a group of services that apply networks. Web services architecture is a reasonable development of object-oriented analysis and design (OOAD), and it is also a reasonable development of componentization in e-commerce solutions for architecture, design, implementation and deployment. Let's take a look at the architecture of WebServices - Service-oriented Architecture (SOA), as shown in the figure. We should also consider whether the oil is too thin and dirty, etc. 2
as can be seen from Figure 2, there are three roles in SOA structure: ① servicepro.provider: publish your own services and respond to requests to use your own services. ② Servicebroker: register published serviceproviders, classify them, and provide search services. ③ Service requester: use the service broker to find the required service, and then use the service
components in an SOA architecture must have one or more of the above roles. Three operations are used between these roles: ① publish operation: enable the service provider to register its own functions and access interfaces with the service broker. ② Find operation: enables the service requester to find specific types of services through the service broker. ③ Bind operation: enable the service requester to really use the service provider
2 the combination of RFID and WebService
due to the characteristics of RFID itself, the information source in the RFID application system is mainly the object of item information in each unit. The large number of items and the diversification of item information lead to the great increase in the amount and form of data to be processed by the whole system, and the information interaction and management between systems are also more complex. Web.services technology maps a real world to a set of services. RFID data is mostly closely related to objects in the real physical world. The processing function of data is provided in the form of services. The system hands some functions to web services for processing, which will greatly reduce the burden of data management and transmission of RFID Application system, reduce the complexity of the system itself, and let the system only need to process some functions, Others can be handed over to web service providers with strength and technology. At the same time, due to the characteristics of Web services, combined with RFID applications, it can be language independent, protocol independent, platform independent. If you have an application published through web services, it is not only available within the company (it can be other c/s or b/s applications), but also can be used by other companies connected to lntemet, shielding the differences between different languages. Because the bottom layer is HTTP protocol, it can easily cross the enterprise firewall, and web services are running on the Internet, which can be easily implemented anywhere in the world, so its running cost is relatively low
3 research and implementation
3.1 RFID application system structure and function design
upload the information obtained from RFID tags to the enterprise background system through web services for global data statistics and management. The application system obtains the tag information through the following steps: ① the RFID tag stores the item information and the circulation process information; ② The machine obtains the information on the RFID tag through the reading device, processes it into the system specified data and sends it to the application system; ③ The application system gets the data and processes it. At the same time, send some information to be written into the label to the machine; ④ The implement writes the information received from the application system into the RFID tag
after receiving the tag data, the RFID application system can process the data as needed. At the same time, in order to exchange information with the central background system or other enterprise systems of the enterprise, the local system needs to be interconnected through web services. The general steps are as follows: ① the system providing web services first formulates service procedures and external access addresses and interfaces of services according to needs; ② The application system organizes the information that needs to be uploaded, and sends the data to the recipient through the address published by wleb service and the provisions of the interactive API interface function; ③ After receiving the data, the receiver will carry out relevant processing, and will return to the application system whether the data is successfully transmitted and the data to be returned after processing
the data transmission process of RFID application system through web services is the focus of this paper, and its implementation process is described in detail in the next section
3.2 implementation process of Web services in the system
3.2.1 give examples and definition data
write information to the label and stick it on each box of goods, and then send the goods to the warehouse of the purchasing manufacturer. After the goods arrive at the destination, they are warehoused. The information of each label is read with a reading and writing machine and transmitted to the application system of the purchasing manufacturer. The system saves and processes the data, and then transmits some of the information to the web service for further processing. The data passed to the web service is shown in Table 2
after receiving the above information, the web service will process and judge each type of information respectively, and return the processing results. Table 3 shows the processing contents and return results
the buyer's system accepts the return data of the web service and decides whether to accept the goods according to the structure. In general, the content of this web service is to further process the data uploaded by the RFID application system, and then return the processing results
3.2.2 implementation of Web services
(1) generate web services according to requirements
according to the above requirements, the service provider providing web services writes data processing programs on the server side, defines the interface of Web services according to the data types uploaded by the application system, and generates WSDL files to describe Web services. WSDL (Web servicedescriptionlanguage) is a standard for describing wleb services with XML documents, and it is the interface definition language of Web services
after the service release, the application program organizes data according to the API interface. Most of the enterprise RFID application systems are running under the windows system, so the application system here is also a Windows desktop program, and the system needs a module with the function of connecting with the web service. By getting the WSDL file of the web service, you can define the type and interface of the uploaded data. Here, microsor visual studio c++ is used to write the client of the web service
convert WSDL into proxy class files of CPP and HPP types that can be referenced by visual studio c++ through tools. The following file will be generated: upload.b
LINK
Copyright © 2011 JIN SHI