Wireless Sensor Monitoring System by using Field Programmable Gate Array(FPGA)

DOI : 10.17577/IJERTV3IS10247

Download Full-Text PDF Cite this Publication

Text Only Version

Wireless Sensor Monitoring System by using Field Programmable Gate Array(FPGA)

N. Sudheer Kumar1, A Sateesh Kumar2 , V Satish Kumar3

1 Vignans institute of technology and Aeronautical engineering, Vignan hills, Hyderabad 2 Vignans institute of technology and Aeronautical engineering, Vignan hills, Hyderabad 3 Vignans institute of technology and Aeronautical engineering, Vignan hills, Hyderabad

Abstract

The aim of this paper is to model and design an efficient wireless system that is easy to integrate with other technologies or infrastructures at a low cost. The system would read analogue information recorded by a biomedical sensor in a transmitting unit attached to the patient. The recorded data are converted digitally using analogue-to-digital converter and sent to transmitter through field programmable gate arrays (FPGAs). VHDL has been used to implement the required functions of the FPGA, such as bus interfacing, data buffering, compression and data framing. The compression of data is done with RLE and it is so efficient. On the other hand, Simulink software has been used to model and simulate FPGA transmitter/receiver. This architecture suitable for short-range communications.. These illustrate how easily the mixed signal modeling can be well mapped into hardware description language (HDL) and mathematical programming techniques. The developed simulation models are used to explore the design change options. The behavioral HDL design has been interfaced to the Simulink model using system generator in a co-simulation environment, and the overall performance has been verified.

KEYWORDS:HDL,VHDL,FPGA

  1. INTRODUCTION

    Equipment are long battery life, lightweight and small Home healthcare costs have increased by 400% in the last five years. Although hospital or nursing home care can be delivered at the patients home, professional services such as clinical and medication monitoring are still required. On the other hand, advancement in wireless and Internet technologies are developing rapidly and has opened new opportunities for the health services to reconsider the traditional model of patient care [1]. In the next 25 years, the global population over the age 65 would increase by88% the challenge is to raise or at least maintain the present level of healthcare provision without ending up in an uncontrolled cost explosion. The increasing number of researchers and manufacturers who are working towards a new generation of wireless technology applications in the

    field of medicine has led to an improvement in the quality of patient care and also reduction in cost ]. One of the areas in healthcare that best lend itself to wireless technology is patient monitoring, also known as wireless telemetry. By attaching a wireless monitoring device to the patients bedside or directly to the patient, physicians can monitor vital signs from down the hall to across the town. The most critical features of wearable health monitoring dimensions[2]. Continuous monitoring during normal activity also requires that the device can be hidden to protect users privacy. In order to make the monitoring devices easily wearable and suitable for the patient, they need to be designed ergonomically. The equipment must also produce high-quality signals, be easy to wear and remove, robust and suitable for different environments and users, both males and females . The aim of this work is to present a useful model that

    .combines both hardware and software

    environments and achieves the described demands. The key features of the introduced models are low complexity, low power consumption and efficient data transmission. The main motive behind using a filed programmable gate array (FPGA) device to implement the digital part of the model is to have a ready platform for ASIC, which is the next stage of this research work. In addition, FPGA design is characterized to be configurable and can be upgraded any time, which is an attractive feature that cannot be obtained with any other fixed hardware microprocessors or digital signal processing (DSP) devices.

  2. SYSTEM SPECIFICATIONS

The main blocks of the system are sketched in Fig. 1.First, an eight-bit ADC handles the analogue signal recorded by the sensor readout circuit. The FPGA then makes different processing on the digital data like buffering, compression and framing, and then send the data to the FSK transmitter model. Behavioral models for both transmitter/receiver have been implemented using Simulink based on the direct conversion architecture. A novel logic detector has been modelled at the receiver side to

Sensor1

RLEDE

Compressor

BUFFER

DAC

recover the transmitted symbols. A second FPGA is interfaced to the output of the receiver and is

Sensor31

responsible for processing the data inversely like de- framing and de-compressing.

Fig: 1 block diagram of system 3.FPGA DESCRIPTION

The units and the flow of data through the system are controlled by a main finite-state machine (FSM) controller. At the receiver end, the system units of the FPGA are organized as shown in Fig. 3. A data recovery main blocks of the transmitter side FPGA are known in Fig. 2. The different units of the system were coded using VHDL simulated with ModelSim SE V6.0a and implemented using ISE7.1. The final implementation was done using Spartan-3 device, as it provides the various features that solve designers challenge throughout the entire system. From Fig. 2, the FPGA consists of mainly a adc scanner, buffer, run length encoding (RLE) compressor and high data link control (HDLC) units. The operation of the system unit is needed to extract the clock from the received bit stream. The HDLC de-framer and the RLE de-compressor blocks are designed to reconstruct the original data bytes sent by the transmitter.

Sensor1

RLE

Compressor

BUFFER

AD

C

Sensor 31

HDLC Framer

Modulator

Fig:2 Building blocks of the transmitter FPGA

HDLC DeFramer

DeModulator

Fig:3 Building blocks of the receiver FPGA

4.RLE COMPRESSOR

Data compression is effective when the measured signals are expected to be slow and repeatable. The task of this unit is crucial to the system power performance. RLE is a conceptually simple form of compression. RLE consists of the process of searching for repeated runs of a single symbol in an input stream, and replacing them by a single instance of the symbol and a run count. A simple flowchart of the RLE implementation is shown in Fig. 4.

A sample of the output simulation waveforms is shown in Fig. 5, where the three waveforms marked are the input data bytes, valid data signal which is active (high) when there is a new or not repeated data and the two bytes (input and count) output data. The HDL code for the compressor has been written as a state machine and optimized to only two states. The code also has been synthesised successfully to achieve good device utilization. It is worth to mention that other types of compression techniques have been considered in this work, but it was found that RLE is more suitable in terms of design complexity, power resources and compression performance.

Fig:5 sample wave form of compresor

Fig. 4 RLE compressor implementation 5.RLE DE-COMPRESSOR

To reconstruct back the compressed data bytes, a RLE de-compressor is introduced at the receiver side FPGA. Again a simple algorithm has been adopted to implement the block tasks as shown in Fig. 6./p>

After initialization, the de-compressor is set in a standby mode for the embedded buffer in the de- framer to be filled. Two bytes, information and count bytes are loaded into special 16-bit register each time. The count byte determines the number of times the information byte needs to be sent to the next stage, a sample of the output waveforms obtained from running the test bench is shown and both compressed and uncompressed output data bytes have been identified.

Fig 6: Flow chart of RLE De-compressor

6.HDLC FRAMER

This unit is considered to be the main core of the system model, where the data are grouped into frames and sent to the transmitter. HDLC protocol is a bit-oriented protocol that is used as a data link for most of the current communication systems [5]. The main features provided by this protocol are:

  1. Synchronous operation;

  2. Start and end of frame pattern generation;

  3. Zero insertion and removal for transparent transmission;

    and

  4. Cyclic redundancy check (CRC) generation for error

handling.

6.1 HDLC FRAME

The basic structure of the HDLC frame is shown in Fig. 7.

  1. Start and end flags, represented by the sequence (01111110), are required for synchronous transmission.

  2. Address field is used to identify the destination address at

    the receiver side.

  3. Control field is used to classify the HDLC frames according to the link configuration type.

  4. Information field contains the transported data.

  5. Frame check sum (FCS) is used to detect errors by adopting CRC generation.

Fig. 7 Main fields of the HDLC frame structure

  1. SYSTEM IMPLEMENTATION:

    Recently, number of models for the HDLC protocol has been developed [68]. The main blocks of HDLC transmitter are shown in Fig. 8. An FSM is responsible for generating all the necessary internal control signals required by the different modules. First, the controller checks if there is a valid data output from the compressor and then starts loading the bytes into FIFO memory storage. Then the data are read serially from the memory storage and sent to the CRC module to generate the frame check sequence (FCS). The bit stuffer is responsible for examining the frame content and checking every five consecutive 1s bits including FCS bits. If five consecutive 1s are detected, a 0-bit is

    inserted into the serial bit stream. This helps the receiver to distinguish the actual data transmitted. The start and end flags are generated at the final stage and attached to the frame. Also, the transmitter fills the gaps between the frames when the transmission is idle by sending a sequence of eight consecutive 1s. The received frames are processed inversely by similar structure at the receiver control to recover the transmitted bytes. All the modules of both HDLC transmitter and receiver have been modeled, simulated and synthesized successfully.

    Fig 8:HDLC transmitter FSM

  2. Simulation Results

    1. Receiver

    2. Compressor

    3. HDLC Framer

  3. CONCLUSIONS

In this paper, a mixed hardware and software simulation environments have been used to model a remote short-range wireless system. Although HDL provides many high-level abstractions and language constructions for behavioural modelling, its synthesizable subset is far too restrictive for system-level design. On the other hand, Simulink environment provides a powerful high-level mathematical modeling environment for digital communication systems that can be widely used for algorithm development and verification. The two main operations implemented by the transmitter FPGA are compression and framing. RLE has been used to compress the stored data bytes efficiently with an optimal number of states. The HDLC protocol has been used successfully for framing the data and providing error-handling mechanism to the receiver. All the FPGA modules have been verified and implemented using Xilinx Spartan-3 device. During the development of the VHDL codes, our main goal was to make all the units synthesisable. A detailed description about both transmitter and receiver units was given. The transceiver system performance was tested under different conditions. The implemented model showed a good capability in recovering the original data at the receiver side with different transmission frequencies. The simulation running time is considered to be the main limitation of using Simulink. Real-time simulation of both the Simulink and the VHDL models is not the motive of this work, but to build a realistic design suitable for future hardware design. The VHDL code execution has been optimized using the code coverage feature of the ModelSim. Such feature can identify the unused dead code that has a high impact on the simulation acceleration time and reducing both waste as well as risk in the targeted design. The design has a feasibility that programming of number of channels.

REFERENCES

  1. Folke, M., Andreasson, J., Hok, B., Linden, M., Nilsson, G., Ekstrom,M., and Backlund, Y.: Artefact reduction in lemetric ECG monitoring. Proc. 12th Nordic Baltic Conf. on Biomedical Engineering and Medical Physics,

    Island, June 2002, vol. 2, pp. 1822

  2. Guillen, J.M., Millet, J., and Cebrian, A.: Design of a prototype for dynamic electrocardiography monitoring using GSM technology. Proc. IEEE/EMBS 23rd Annual Int. Conf., Turkey, October 2001, vol. 4, pp. 3956 3959

  3. XILINX Documentation, System Generator User Guide, Version 8.1

  4. Andreasson, J., Ekstrom, M., Fard, A., Castano, J.G., and Johnson, T.: Remote system for patient monitoring using Bluetooth/spi trade. IEEE Sensors Proc., June 2002, vol. 1, pp. 304307

  5. Razavi, B.: RF microelectronics (Prentice-Hall, NJ, USA, 1998)

  6. Michael, R., and Patel, A.: Performance analysis of an HDLC based protocol with data compression, Comput. Commun. J., 1997, 20, (7), pp. 567575.

  7. Yuanlin, L., Zhigong, W., Lufeng, Q., and Bin, H.:

    Communications. Design and implementation of multi-channel high speed HDLC data processor. Proc. IEEE Circuits and Systems and West Sino Expositions, China, JuneJuly 2002, vol. 2, pp. 14711475

  8. Bin, H., Zhigong, W., LuFeng, Q., and Yuanlin, L.: Design of a multi-channel high speed FIFO applied to HDLC processor based on PCI bus. Proc. IEEE Circuits and Systems and West Sino Expositions, China, JuneJuly 2002, vol. 2, pp. 14761480.

Leave a Reply