IEEM110 Spring 2005 LAB10

IEEM 110 Computing in Industrial Applications Lab 10 Introduction to RFID Lab Sheet

Introduction

Radio Frequency Identification (RFID) A method of remotely storing and retrieving data using devices called RFID tags. An RFID tag is a small object, such as an adhesive sticker, that can be attached to or incorporated into a product. RFID tags contain antennas to enable them to receive and respond to radio-frequency queries from an RFID transceiver.

RFID reader The reader is designed to read and Program Class I NanoBlock tags and issue event reports to a host computer system. The host computer can be connected at a remote network location or using the serial port.

Class 1 NanoBlock Tags They are passive devices which mean they do not Have an onboard power source. They are powered by the radio frequency energy transmitted by the reader. They communicate with the reader by means of Backscatter Modulation, which means they do not actually transmit anything; they merely change their reflective characteristics in a systematic way and reflect RF energy back to the reader.

Java is an object-oriented programming language developed initially Sun Microsystems. The language, initially called Oak (named after the oak trees outside Gosling's office), was intended to replace ++, although the feature set better resembles that of Objective C. Sun Microsystems currently maintains and updates Java regularly.

Page 1 of 3 IEEM110 Spring 2005 LAB10

JCreator JCreator is a powerful IDE (integrated development environment) for Java technologies. It enables the developer manage projects with ease with an interface that is much like Visual Studio. Unlike most IDEs, JCreator can be used to debug Java code with an easy, intuitive interface.

Class used in this lab Class AlienClass1Reader This class allows the system to interact with an Alien Class 1 Reader. The Reader classes are the primary classes for communicating with a reader either over the network or serial port. Method * void setConnection(java.lang.String networkAddress, int networkPort) Sets a reader's connection method to TCP/IP, specifying both address and port. * void setUsername(java.lang.String username) Sets a reader's connection login. We use “alien” as the login name * void setPassword(java.lang.String password) Sets a reader's connection password. We use “password” as the login password * void open() Opens a connection to the reader after entering the login and password * Tag[] getTagList() Immediately scans the field for tags once and reports the results * void close() Closes the connection to the reader

Class Tag Tag object represents information about a single Tag. Each Tag must have a TagID stored in it as a String. Method * getTagID() Returns this Tag's TagID attribute * getAntenna() Returns the antenna that this Tag was last seen on

Page 2 of 3 IEEM110 Spring 2005 LAB10

Before we start to do the lab exercise, several small programs will be asked to write to make sure you understand how to program with Java using JCreator.

Lab Exercise Description You are going to write a program in java. You need to use the program to first connect to the RFID reader, and then check whether there is any tag. If there are tags, the program should show the tag ID. A template can be downloaded to help you developing the program.

The template contains a folder “Lab10”, which inside contain another folder “RFID project” and a JCreator workspace file “Lab10”. Double click this file to start your work. You should only create and edit the code in the area marked “Add your code here” as below

When you finish the tasks, please notify the TA and show your set-up and results You are expected to answer some questions from TA about the lab. ***************************************************************************

Page 3 of 3