Docsity

RFID Patient Tagging and Database System: A Final Year Project Report, Study Guides, Projects, Research of Network security

Partial preview of the text

Download RFID Patient Tagging and Database System: A Final Year Project Report and more Study Guides, Projects, Research Network security in PDF only on Docsity!

Department of Electronic Engineering

RFID Patient Tagging and

Database System

Final Year Project Report

Student:

Martin O’Halloran

Supervisor: Martin Glavin

Date: April 2004

Acknowledgements

I would like to thank the department technicians, Aodh Dalton, Myles Meehan and Martin Burke for their assistance throughout this project.

I would also like to thank my supervisor, Martin Glavin, for giving me the help and insight I needed, and for giving me the liberty to develop this project.

Finally, I would like to express my gratitude to Connaught Electronics Ltd for their continued assistance and support throughout this project.

40 .........................................................................................................................................

(^44) ......................................................................................................................................... 45 ........................................................................................................................................ 38

wrist. Doctors, nurses and administration personnel are allowed access the database using a PDA (Personal Digital Assistant) or tablet PC enabled with a wireless network card, as shown in figure 1.1. The RFID tag is read, and the identifier is passed over the wireless network to the centralised server. The server searches the database and dynamically generates a web page containing the relevant patient information. Medical personnel are then be authorised to view and update the patient details. The information contained in the database comprises text and multimedia data. The structure of the system can be described as client-server architecture. The client consists of the PDA while the server includes the web server and database, as shown in figure 1.1. The client code handles communication with the RFID reader and also handles the viewing of patient records. The server software deals with the storage and retrieval of patient information.

Figure : Overview of the system

1.3 Problems to be considered

The client software has to fulfil the following functionality:

  • It must interface with the RFID reader read the RFID tag.
  • It must be able to communicate with the Web-server.
  • It must incorporate a web-browser for the viewing and updating of patient information. The server software must incorporate the following functionality:
    • It must be secure.
    • It must store all the patient information in an efficient manner.
    • It must allow the patient information to be easily viewed and updated through the generation of dynamic web pages.

2. Research

2.1 Introduction

The main objective of any database is to accurately reflect the information it models. That is to say, the database should hold information that is both relevant and useful. With this is mind, the next step involved establishing what patient information was maintained by medical personnel in hospitals. The findings of the research are outlined below.

2.1 Information recorded by doctors

After several meeting with hospital interns, the following is a list of the general patient details recorded by doctors:

Patient History

  • Presenting Compliant : Symptoms that the patient is complaining of and the duration of these symptoms (brief 2-3 lines only)
  • History of Presenting Complaint : Further questioning of the presenting complaint e.g. when did the symptoms first present themselves
  • Family History : illnesses of family members.
  • Social History : Information such as does the patient smoke, units of alcohol consumed per day, does the patient live alone, etc
  • Past Medical History : Present or previous medical history.
  • Past surgical history
  • Any Allergies
  • Current Medication
  • Review of Systems: quick questioning of all the other organ systems

Examinations

  • Patient respiratory examination.
  • Inspection: Check the chest for scars, over-expansion, muscle wasting, etc.
  • (^) Palpation test

3. RFID

3.1 Introduction to RFID

Radio Frequency Identification (RFID) systems were originally developed in the 1960’s for automatic data capture based on radio frequency transmissions to identify rail carriages, personnel, and animals. Radio Frequency Identification (RFID) used electromagnetic energy as a medium for communication. The two basic components, a reader and a transponder, are connected to a host computer that controls the reader. The transponder consists of a single unit containing a radio receiver and transmitter. When the transponder receives a signal from the unit reader, it responds by transmitting its unique identification code and any other data that is requested in the form of a serial data stream.. The object of any RFID system is to carry data in suitable transponders, generally known as tags, and to retrieve data at a suitable time and place to satisfy particular application needs. Data within a tag may provide identification for an item in manufacture, goods in transit, object location information, the identity of a vehicle, or animal identification. In addition to tags, the system requires a means of reading or interrogating the tags, and some means of communicating the data to a host computer.

3.2 Types of RFID systems

RFID systems can be classified according to the radio frequency used, the type of modulation used to communicate and the type of tag used in the system.

3.2.1 Radio Frequency

The radio frequency is defined as the frequency of the sine wave generated by the reader to send a request to the tag. Carrier wave frequency is of primary importance in determining data transfer rates. In practical terms the rate of data transfer is influenced primarily by the frequency of the carrier wave used to carry the data between the tag and its reader. Generally speaking the higher the frequency the higher the data transfer that can be achieved. Three frequency ranges are generally pre-

defined in RFID systems as low, intermediate (medium) and high as shown in Table 3.1.

Frequency Range Frequency Low 100-500 kHz Intermediate 10-15 MHz High 2.4-5.8 GHz

Table 3. : RFID frequency bands

Low Frequency RFID The advantage of low frequency RFID is that unlike high frequency RFID systems, they do not require a line of sight between the transponder and the reader antenna. They have an operating range of between 1 and 3 metres. They can use low power levels, therefore making them more acceptable for licensing. The transponders are quite inexpensive, and the low frequency allows for reads through non-metallics.

Medium Frequency RFID Medium frequency RFID (typically 13.56 MHz) is used in Emergency Action Notification (EAS) systems and ISM (Industrial, Scientific and Medical) applications. They have a medium read range, medium data transfer rate, but are less able to permit solids. While the medium frequency RFID systems are more orientation sensitive than the low frequency system, they still do not require a line of sight between the reader and the transponder.

High Frequency RFID High frequency RFID (typically >900 MHz) is less acceptable internationally due to licensing issues. These systems are available with operating ranges of 30 metres or more. However, to obtain these ranges, high power levels are required. The ability of these transponders to read through solids is very limited, and it is generally accepted that a line of sight is required between the transponder and the reader unit. The advantage of the high frequency RFID systems is that they have very high data transfer rates afforded to them by the very high carrier frequency.

3.2.2 Modulation

power circuitry can ensure functionality for as long as ten or more years, depending upon the operating temperatures, read/write cycles and usage. Active tags usually send data back to the reader with power generated from the tag. The trade-off is greater size and greater cost compared with passive tags.

Passive Tags Passive tags operate without an internal battery, deriving the power to operate from the magnetic field generated by the reader. Passive tags have shorter read ranges than active tags and require a higher-powered reader. Passive tags are also constrained in their capacity to store data and the ability to perform well in electromagnetically noisy environments due to the fact that they don’t have a local power supply and are more vulnerable to noise. However, passive tags offer advantages in terms of cost and life span. They generally have much longer lifetime and are lower in price than active transponders. Passive tags use modulated backscatter to communicate with the RFID reader.

3.3 RFID tag structure The function of the tag is to respond to a request for the data it carries. Figure 4 shows the basic structure of the RFID transponder, with its analogue front-end, coupled with its back-end digital circuitry. The transponder memory may comprise Read-Only Memory (ROM), Random Access Memory (RAM) and non-volatile programmable memory for data storage depending upon the type and complexity of the device. The non-volatile programmable memory is typically Electrically Erasable Programmable Read Only Memory (EEPROM). It is used to store the transponder data and must be non-volatile to ensure that the data is retained when the device is in its quiescent or power-saving "sleep" state

Figure : Basic Structure of an RFID transponder

3.4 RFID reader structure RFID readers are usually a microcontroller-based unit with a wound output coil, peak detector hardware, comparators, and firmware to control the unit. The overall function of an RFID reader is to provide the means of communicating with the tags and

facilitating data transfer. Functions performed by the reader may include quite sophisticated signal conditioning, parity error checking and correction. Once the signal from a transponder has been correctly received and decoded, algorithms may be applied to decide whether the signal is a repeat transmission, and may then instruct the transponder to cease transmitting. This is known as the "Command Response Protocol" and is used to circumvent the problem of reading multiple tags in a short space of time. Using interrogators in this way is sometimes referred to as "Hands Down Polling". An alternative, more secure, but slower tag polling technique is called "Hands Up Polling" which involves the interrogator looking for tags with specific identities, and interrogating them in turn. This is contention management, and a variety of techniques have been developed to improve the process of batch reading. A further approach may use multiple readers, multiplexed into one interrogator, but with attendant increases in costs

3.5 rfid communication Active tags actually send data back to the reader with radio power derived from the tags internally battery. Passive tags on the other hand, use modulated backscatter (MBS) to respond to the reader’s request. Backscatter is a method of "reflecting" the carrier wave and putting a signal into that reflection. Backscatter is achieved by modulating the radar-cross section of the tag antenna. The tag modifies the reflected wave by altering the tag feed-point impedance. This amplitude modulated reflected wave hence communicates the data back to the reader as shown in figure 3.3.

Figure 3.3 RFID Communication through backscattering

4.2 apache

Apache server is one of the most popular Web service applications. Apache is a powerful, flexible, HTTP/1.1 compliant web server. It is highly configurable and extensible with third-party modules. Users can further customise Apache by writing modules using the Apache module. Apache implements the following features:

  • Database Management (DBM) databases for authentication that allows the user to set up password-protected pages with large numbers of authorized users, without bogging down the server.
  • Customized responses to errors and problems which allows you to set up files, or even CGI scripts, which are returned by the server in response to errors and problems
  • Unlimited flexible URL rewriting and aliasing meaning Apache has no fixed limit on the numbers of Aliases and Redirects which may be declared in the config files. In addition, a powerful rewriting engine can be used to solve most URL manipulation problems.
  • Virtual Hosts which are often referred to as multi-homed servers. This allows the server to distinguish between requests made to different IP addresses or names (mapped to the same machine). Apache also offers dynamically configurable mass-virtual hosting.
  • Apache can be configured to generate reliable piped logs, such as an error log. In addition, on most UNIX architectures, Apache can send log files to a pipe, allowing for log rotation, hit filtering, real-time splitting of multiple vhosts into separate logs, and asynchronous DNS (Domain Naming Service) resolving on the fly.
  • 1 Acknowledgements........................................................................................................
  • 2 Abstract..........................................................................................................................
  • 3 1.1 Introduction.............................................................................................................
  • 4 1.2 Overview of the system...........................................................................................
  • 6 1.3 Problems to be considered......................................................................................
  • 7 2. Research...........................................................................................................
  • 8 2.1 Introduction
  • 9 2.1 Information recorded by doctors...........................................................................
    • 9.1 Patient History.................................................................................................
    • 9.2 Examinations....................................................................................................
    • 9.3 Special Investigations.......................................................................................
  • 10 2.2 Information recorded by nurses............................................................................
    • 10.1 General Observations.......................................................................................
    • 10.2 Neurological Observations...............................................................................
  • 11 3. RFID...........................................................................................................................
  • 12 3.1 Introduction to RFID......................................................................................
  • 13 3.2 Types of RFID systems............................................................................................
    • 13.1 3.2.1 Radio Frequency......................................................................................
      • 13.1.1 Low Frequency RFID.....................................................................................................
      • 13.1.2
      • 13.1.3 Medium Frequency RFID..............................................................................................
      • 13.1.4 High Frequency RFID....................................................................................................
    • 13.2 3.2.2 Modulation...............................................................................................
      • 13.2.1 Electromagnetic coupling...............................................................................................
      • 13.2.2 Propagating Electromagnetic Waves..............................................................................
    • 13.3 3.2.3 Types of RFID Tag...................................................................................
      • 13.3.1 Active Tags.....................................................................................................................
      • 13.3.2 Passive Tags....................................................................................................................
  • 14 3.3 RFID tag structure..................................................................................................
  • 15 3.4 RFID reader structure............................................................................................
  • 16 3.5 rfid communication.................................................................................................
  • 17 4. Technologies Employed in the System..........................................................
  • 18 4.1 Linux................................................................................................................
  • 19 4.2 apache.......................................................................................................................
  • 21 4.3 php............................................................................................................................
  • 23 4.4 Visual Basic......................................................................................................
  • 24 4.4.1 Introduction..........................................................................................................
  • 25 4.4.2 Advantages offered by Visual Basic....................................................................
  • 26 5. Server-side setup and installation............................................................................
  • 27 5.1 Introduction
  • 28 5.2 Installation of Linux................................................................................................
    • 29.1 5.2.1 Initial Installation Process.......................................................................
    • 29.2 5.2.1 Post-Installation Configuration...............................................................
  • 30 5.3 Apache Installation and Configuration.................................................................
    • 30.1 5.3.1 Installation...............................................................................................
    • 30.2 5.3.2 Apache Configuration..............................................................................
    • 30.3 5.3.2 Apache Testing.........................................................................................
  • 31 5.4 MySQL Installation
    • 31.1 5.4.1 MySQL Installation..................................................................................
    • 31.2 5.4.2 MySQL Testing.........................................................................................
  • 32 5.5 PHP installation and configuration.......................................................................
    • 32.1 5.5.1 Introduction.............................................................................................
    • 32.2 5.5.2 Installation...............................................................................................
    • 32.4 5.5.3 Configuration...........................................................................................
    • 32.5 5.5.4 Testing......................................................................................................
  • 33 6. Visual basic client application
  • 35 6.1 Introduction.............................................................................................................
  • 36 6.2 Communication with the RFID reader.................................................................
    • 36.1 6.2.1 Introduction.............................................................................................
    • 36.2 6.2.2 RFID reader serial protocol definition....................................................
      • 36.2.1 6.2.2.1 Request packet format........................................................................................
      • 36.2.
      • 36.2.3 6.2.2.2 Response packet format......................................................................................
      • 36.2.
      • 36.2.5 6.2.2.3 Request commands
      • 36.2.6 6.2.2.4 Request Command Flags....................................................................................
      • 36.2.7 6.2.2.5 Response Command Flags.................................................................................
    • 36.3 6.2.3 MSComm communication control............................................................
      • 36.3.1 6.2.3.1 Initial MSComm setup.......................................................................................
      • 36.3.2 6.2.3.2 Reading the RFID tag number............................................................................
  • 37 6.3 Client Login System................................................................................................
  • 39 6.4 User-type specific controls......................................................................................
  • 42 6.5 Updating Patient Information................................................................................
  • 43 6.6 Viewing Patient Information..................................................................................
  • 47 7. Php and mysql database development
  • 49 7.1 Introduction.............................................................................................................
  • FID Patient Tagging and Database System April

4.3 php

PHP is a scripting language designed specifically for use on the Web. PHP is a server- side scripting language which was developed for dynamic Web sites and applications. It is an embedded scripting language, which means that PHP code is embedded in HTML code. PHP scripts can parse data submitted by HTML forms, communicate with databases, and make complex calculations on the fly. PHP is very fast because the freely available source code is compiled into the Apache Web server. A PHP script is executed as part of the Web server process and requires no forking, often a criticism of Common Gateway Interface (CGI) scripts. PHP interacts with the database by invoking SQL commands, and displays the results in dynamically generated Web pages. PHP provides the application part and MYSQL provides the database part of a Web database application. PHP is used to move data into and out of the MYSQL database. PHP is also suitable for more complicated tasks such as parsing and verifying data that the user has entered into an HTML form. PHP’s advantages include the following:

  • It’s free via the GNU General Public License (GPL).
  • It’s fast due to the fact that it’s embedded into the HTML code.
  • It’s designed to support databases including functionality designed to interact with specific databases. It negates the need for the user to need to know the technical details required to communicate with a database.
  • It’s quite easy to use in that it only contains elements of a programming language needed to interact with a database and to generate dynamic web- pages.

FID Patient Tagging and Database System April 2004

4.4 Visual Basic

4.4.1 Introduction

Visual Basic is currently one of the most widely used visual programming languages used to develop stand-alone windows applications. Visual Basic allows for the rapid development of custom designed applications modelled on the full range of window features. Visual Basic provides for the building of very easy to use and intuitive user interfaces. Using Visual Basic you can create quality user-interfaces by positioning re-useable components directly into forms. Functionality is then added by linking code to these components.

4.4.2 Advantages offered by Visual Basic

Visual Basic has many advantages that make it amenable for use in this project. The advantages include the following:

  • Visual Basic as a programming language is relatively simple. Its structure is quite straightforward.
  • The Visual Basic Integrated Development Environment (IDE) allows for Rapid Application Development (RAD). It ideal for the development of Graphical User Interfaces (GUI).
  • The online MSDM libraries provide a comprehensive interactive and context- sensitive online help system.
  • Visual Basic is a component Integration language. It allows for the integration of the Microsoft Component Object Model (COM). COM components can be therefore embedded into your application’s user interface.

FID Patient Tagging and Database System April 2004