Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Get Started with RFID Development in Java : Page 3

Using RFID Anywhere, you can build a highly customized Radio Frequency Identification (RFID) application or service that meets your specific needs.


advertisement
Installing RFID Anywhere
Perform the following steps to install and run RFID Anywhere 2.0.1 on your computer:
  • Install MSMQ Messaging Service (if it is not already installed).
  • Install Microsoft Internet Information Services (IIS) (if it is not already installed).
  • Install the Microsoft .NET Framework 1.1 SP1 and enable ASP.NET.
  • Install Microsoft Web Services Extensions (WSE) 2.0 SP3 for Microsoft .NET (if it is not already installed).
  • Install RFID Anywhere 2.x core files.
  • Install RFID Anywhere 2.0.1 updates.
  • Ensure that all required Windows services are running. To do that, open the Control Panel by choosing Start > Settings > Control Panel. Double-click Administrative Tools, and double-click Services. Ensure that the following services have a status of Started, and that their Startup Type is set to Automatic:
  • IIS Admin—used to manage the Web site
  • Message Queuing—used internally by RFID Anywhere and by the MSMQ messaging connector
  • World Wide Web Publishing—used to host the Administrator Console and Web services.
  • Start the RFID Anywhere service: From the Start menu, choose Programs > RFID Anywhere > Start Service. The RFID Anywhere Service starts running on the computer. This service is named rnservice and launches the process iAnywhere.RfidNet.RunTime.exe, which is visible from the Windows Task Manager.
RFID Anywhere's simulation environment uses simulated data to feed raw RFID data to business logic in exactly the same way as raw data coming from a reader.
Building an RFID Demo Application
I've modified the Enterprise Application used in the Inventory Tracker demo supplied with the RFID Anywhere toolkit to provide a demo application for this article. The demo uses RFID Anywhere simulation environment to simulate actual RFID device events, so you don't need to have RFID hardware to run the demo or experiment with RFID technology. But you do need to create a simulated network, as described in the following section.

Creating a Simulated RFID Network
RFID Anywhere's RFID Network Simulator takes the place of physical devices for developing and testing business logic. By simulating a series of device events with a definable set of values, formats, and protocols, developers can check special cases and perform load testing without acquiring and installing physical RFID hardware.

 
Figure 3. Architecture of RFID Anywhere Application: The figure shows the various components of a completed RFID Anywhere application.
You accomplish all this using the RFID Simulator Data Editor and RFID Multiprotocol Simulator connector—an RFID Anywhere component that uses simulated data to feed raw RFID data into business logic in exactly the same way as raw data coming from a reader. Figure 3 shows the components and interactions found in a typical RFID Anywhere simulated environment:

The Inventory Tracker demo retrieves business-context information from a "secondary" XML file, in this case, a file called SecondarySource.xml, which contains mappings of raw tag data to actual manufacturer and product names. The Inventory Tracker demo reads the secondary source file and provides the mapped results to the Enterprise Application in the form of custom XML reports. The Enterprise Application demo listens on port 10001 for incoming reports transmitted via the TCP messaging connector. Creating Simulation Data
To get started, you need to create some simulated data. To do that, you enter tag activity-timeline scenario information into the RFID Simulator Data Editor. You save the entered data as .smt files that the RFID Simulator connector can import and use within RFID Anywhere.



  1. To start the RFID Simulator Data Editor, choose Start > Programs > RFID Anywhere > RFID Simulator Data Editor. The RFID Simulator Data Editor should appear (see Figure 4). RFID Anywhere's simulation environment groups tags according to time, so tags that appear at the same time and remain for the same duration would be part of one group.
  2. First, you'll create a group of tags for Time 0. From the Session menu, choose New to create a new session. From the Groups menu, choose New and then EPC to create the first group of tags (Time 0 in the tag activity timeline).
  3. Enter T0 in the Name field, and enter 2 in the Quantity field. Select "Enter Tags Manually" in the Creation Mode section. Ensure that the "Increment tags per session" checkbox is cleared.
  4. Choose "EPC_SGTIN96" from the "Type" dropdown list in the Encoding section and choose "SIX" from the "Partition" dropdown list. An SGTIN96-encoded tag has four fields: filter, company prefix, item reference, and serial number. Therefore:
     
    Figure 4. RFID Simulator Data Editor: The figure shows the RFID Simulator Data Editor after defining two tags.
    • In the Value column of the Filter row in the template, enter 1.
    • In the Value column of the CompanyPrefix row, enter 1.
    • In the Value column of the ItemReference row, enter 2.
    • In the Value column of the SerialNumber row, enter 5.
    • In the Increment column of the SerialNumber row, select the checkbox. This indicates that 5 is the starting serial number, and other tags from this template have unique incremented serial numbers. Here, for example, the two tags you're creating will have serial numbers 5 and 6.
  5. Choose "RFID Anywhere DPP" from the DPP dropdown list to use RFID Anywhere's default Data Protocol Processor for EPC tags.
  6. Click the "Create Tags" button to generate the tags and add them to the group. Once created, these tags appear in the Tags window on the right side of the RFID Simulator Data Editor (see Figure 4).
  7. Repeat the preceding steps for all desired times.
  8. To add this group of tags to the simulator session, choose Add from the Groups menu. The "Session Items" dialog will appear (see Figure 5).
  9.  
    Figure 5. Session Items Dialog: The figure shows the session item settings for the sample application.
  10. In the "Start Interval" field of the Session Items dialog enter "0:0" to indicate that this group of tags appears immediately when the simulation starts. In the "Life Time" field, enter 0:10 to indicate that this group of tags will remain in the simulated reader's read zone for 10 seconds. After 10 seconds, the next group of tags in the sequence will appear.
  11. Make sure that RFID Anywhere DPP is selected in the "DPP:" dropdown list.
  12. Make sure that iAnywhere.RfidNet.Rfid.Tags.RFIDTagEPC_Class0 is selected in the "Class to generate:" dropdown list (see Figure 5).
  13. Click OK, and then save your session by choosing Save from the Session menu. Use the resulting dialog to save the file you've created with an extension of .smt to a directory of your choosing.
  14. Exit the RFID Simulator Data Editor by selecting Exit from the Session menu.


Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap