+ All Categories
Home > Documents > DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif....

DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif....

Date post: 22-Jan-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
26
UNIVERSITI PUTRA MALAYSIA MD. NAZMUS SAADAT FK 2006 125 DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH-BASED APPLICATION SYSTEM FRAMEWORK FOR CONTROLLING AND MONITORING REMOTE DEVICES
Transcript
Page 1: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

UNIVERSITI PUTRA MALAYSIA

MD. NAZMUS SAADAT

FK 2006 125

DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH-BASED APPLICATION SYSTEM FRAMEWORK FOR CONTROLLING AND

MONITORING REMOTE DEVICES

Page 2: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH-BASED

APPLICATION SYSTEM FRAMEWORK FOR CONTROLLING AND

MONITORING REMOTE DEVICES

By

MD. NAZMUS SAADAT

Thesis Submitted to the School of Graduate Studies, Universiti Putra Malaysia,

in Partial Fulfillment of the Requirement for the Degree of Master of Science

June 2006

Page 3: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

ii

DEDICATED TO

My Mother Mrs. Rabeya Khatun, my Father Md. Borhan Uddin, my Brother Md.

Robiul Hasanat and his family, my loving little sister Iffat Ara Chaity, my Father in

Law Sk. Afzal Hossain, My Mother in Law Mrs. Laila Parveen, my soulmate and

beloved wife Fariah Afzal Tuli and all teachers and friends throughout my life.

May Allah reward you the best.

Page 4: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

iii

Abstract of thesis presented to the Senate of Universiti Putra Malaysia in partial

fulfilment of the requirement for the degree of Master of Science

DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH-BASED

APPLICATION SYSTEM FRAMEWORK FOR CONTROLLING AND

MONITORING REMOTE DEVICES

By

MD. NAZMUS SAADAT

June 2006

Chairman : Professor Borhanuddin Mohd. Ali , PhD

Faculty : Engineering

For short range wireless communication, Bluetooth technology is well known

standard while competing with other short range wireless standard like Infrared,

WiFi, and UWB. Bluetooth is being used worldwide today. Its point to multipoint

and no line of sight facility has removed the obstacles that some other hugely used

technology like IrDA had. This work focuses on designing and developing an

application system framework for controlling and monitoring remote devices

wirelessly using Bluetooth within its standard range. For example, any Bluetooth

enabled PDA, laptop or mobile phone can be used for controlling the household

devices like lights, air con or digital audio systems in room environment or this can

be used for industrial machine controls and office environment for various purposes

starting from switching devices to acquiring real-time data from working systems or

from sensors. Also the system can be used for robotic aspects in short range distance.

Page 5: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

iv

The system design went through number of different tests and real time simulations

to assure performance issues. The results show that it provides the standard features

of system services with acceptable quality in data transmission and reception and

controlling remote devices and the user application and interfaces are very much

convenient to interact with.

Finally, a prototype has been developed according to the design. The test results

measured using the prototype verify the system design and confirm the standard

performance of services.

Page 6: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

v

Abstrak tesis yang dikemukakan kepada senat Universiti Putra Malaysia untuk

memenuhi sebahagian daripada keperluan Ijazah Master Sains

PEMBANGUNAN SISTEM PENJANAAN DAN PEMANTAUAN

BERASASKAN PERANTI PEGANGAN TANGAN BLUETOOTH

Oleh

MD. NAZMUS SAADAT

Jun 2006

Pengerusi : Profesor Borhanuddin Mohd. Ali, PhD

Fakulti : Kejuruteraan

Untuk komunikasi tanpa wayar jarak dekat, teknologi Bluetooth adalah piawaian

yang diketahui umum bersaing dengan piawaian tanpa wayar jarak dekat yang lain

seperti Inframerah, WiFi, UWB dan sebagainya. Hari ini, Bluetooth digunakan di

seluruh dunia dalam peranti-peranti mudah alih. Bercirikan satu titik ke pelbagai titik

dan ketidakperluan kepada garis nampak menjadikan ia lebih baik berbanding

teknologi yang telah meluas penggunaannya seperti IrDA. Kerja ini tertumpu kepada

rekabentuk dan pembangunan kerangka kerja satu sistem aplikasi untuk mengawal

dan mengawasi satu peranti kawalan jauh tanpa wayar mengunakan Bluetooth di

dalam lingkungan jarak piawaiannya. Sebagai contoh, sebarang PDA, komputer riba

atau telefon mudah alih yang memiliki Bluetooth boleh digunakan untuk mengawal

peralatan-peralatan rumah seperti lampu, pendingin hawa, sistem audio digital dan

sebagainya di dalam sesebuah bilik atau ia juga boleh digunakan untuk mengawal

mesin kilang atau di pejabat untuk pelbagai tujuan dari menghidupkan peranti hingga

kepada pemerolehan data masa nyata daripada sistem kerja atau daripada sensor. Ia

juga boleh digunakan untuk kawalan robotik dalam lingkungan jarak dekat.

Page 7: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

vi

Sistem ini melalui beberapa ujian yang berbeza dan simulasi masa nyata untuk

memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-

ciri piawaian perkhidmatan sesuatu sistem dengan kualiti yang boleh diterima dalam

penghantaran dan penerimaan data dan mengawal peranti kawalan jauh dan di mana

aplikasi pengguna dan antaramuka mudah digunakan.

Akhir sekali, satu prototaip berdasarkan reka bentuk telah dihasilkan. Keputusan

ujian ke atas prototaip mengesahkan reka bentuk mematuhi piawaian prestasi servis

yang dikehendaki.

Page 8: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

vii

ACKNOWLEDGEMENT

Bismillahir Rahmanir Rahim- everything goes by the mercy of Allah, the most

gracious the most merciful. I am grateful to him to give me the chance for higher

studies and everything. Then I am grateful to my parents and family who are always

by my side.

I would like to express my respect and thanks to my supervisor, Prof. Dr.

Borhanuddin Mohd. Ali for his invaluable guidance, patience, encouragement and

advises that made this work possible. I am grateful to Dr. Sabira Khatun and Mr.

Hanif Yaacob for being my committee members. I extend my gratitude and thanks to

Mrs. Ratna Kalos and Mr. Hanif Yaacob who had been supporting me for the full

duration. I am grateful to RMC of Universiti Putra Malaysia for establishing the

scope of this research work.

I would like to acknowledge and thank Mr. Richard Hoptroff, the CEO of Flexipanel

Ltd. who had been constantly supporting me with useful information and suggestions

regarding the project and simulations.

Finally, I am endlessly owed to my mother Mrs. Rabeya Khatun, father Md. Borhan

Uddin, my father in law Sk. Afzal Hossain, mother in Law Mrs Laila Parveen my

brother Major Md. Robiul Hasanat and his family, my little sister Iffat Ara Chaity

and my beloved sweet wife Fariah Afzal Tuli for being always with me in sorrow

and in happiness, who never leaves me.

Page 9: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

viii

I certify that an Examination Committee has met on 9th

June 2006 to conduct the

final examination of Md. Nazmus Saadat on his Master of Science thesis entitled

“Design And Development Of A Handheld Bluetooth-Based Application System

Framework For Controlling And Monitoring Remote Devices” in accordance with

Universiti Pertanian Malaysia (Higher Degree) Act 1980 and Universiti Pertanian

Malaysia (Higher Degree) Regulations 1981. The Committee recommends that the

candidate be awarded a relevant degree. Members of the Examination Committee are

as follows:

Mohd. Adzir b. Mahdi, PhD

Associate Professor

Computer And Communication Systems Engineering,

Faculty of Engineering,

Universiti Putra Malaysia.

(Chairman)

Samsul Bahari B. Mohd. Noor, PhD

Lecturer

Computer And Communication Systems Engineering,

Faculty of Engineering,

Universiti Putra Malaysia.

(Internal Examiner)

Abdul Rahman b. Ramli, PhD

Associate Professor

Computer And Communication Systems Engineering,

Faculty of Engineering,

Universiti Putra Malaysia.

(Internal Examiner)

Mahamod Ismail, PhD

Associate Professor

Faculty of Graduate Studies

Universiti Putra Malaysia.

(External Examiner)

________________________________

HASANAH MOHD GHAZALI, PhD

Professor/Deputy Dean

School of Graduate Studies

Universiti Putra Malaysia

Date:

Page 10: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

ix

This thesis submitted to the Senate of Universiti Putra Malaysia has been accepted as

partial fulfillment of the requirement for the degree of Master of Science. The

members of the Supervisory Committee are as follows:

Borhanuddin Mohd Ali, PhD

Professor

Faculty of Engineering

Universiti Putra Malaysia

(Chairman)

Sabira Khatun, PhD

Associate Professor

Faculty of Engineering

Universiti Putra Malaysia

(Member)

Mohd. Hanif Yaacob,

Lecturer

Faculty of Engineering

Universiti Putra Malaysia

(Member)

______________________

AINI IDERIS, PhD

Professor/Dean

School of Graduate Studies

Universiti Putra Malaysia.

Date:

Page 11: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

x

DECLARATION

I hereby declare that the thesis is based on my original work except for quotations

and citations, which have been duly acknowledged. I also declare that it has not been

previously or currently submitted for any other degree at UPM or other institutions.

______________________

MD. NAZMUS SAADAT

Date:

Page 12: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

xi

TABLE OF CONTENTS

Page

DEDICAT TO II

ABSTRACT iii

ABSTRAK v

ACKNOWLEDGEMENT VII

APPROVAL viii

DECLARATION x

TABLE OF CONTENTS xi

LIST OF TABLES xiv

LIST OF FIGURES xv

LIST OF ABBREVIATION XIX

1 INTRODUCTION 1

1.1 Introduction and Problem Statement 1

1.2 Objectives 2

1.3 Scope of work: 2

1.4 Thesis arrangement 3

2 LITERATURE REVIEW 4

2.0 Bluetooth Based Wireless Remote Device Controlling System 4

2.1 Bluetooth Technology 8

2.1.2 Competitors 10

2.1.3 Core System Architecture: 12

2.1.4 Core Architectural Blocks 13

2.1.4.1 Channel manager 13

2.1.4.2 L2CAP resource manager 13

2.1.4.3 Device manager 14

2.1.4.4 Link manager 15

2.1.4.5 Baseband resource manager 15

2.1.4.6 Link controller 16

2.1.4.7 RF 16

2.1.4.8 Basic Protocol Classification 17

2.1.4.9 Bluetooth Generic Packet Structure 18

2.1.5 Communication and Operational Procedures and Modes: 20

2.1.6 Inquiry (Discovering) Procedure 20

2.1.6.1 Paging (Connecting) Procedure 21

2.1.6.2 Connected mode 21

2.1.6.3 Hold mode 23

2.1.6.4 Sniff mode 23

2.1.6.5 Parked state 24

2.1.6.6 Role switch procedure 24

2.1.7 Bluetooth networking 25

2.1.8 Slave and Master: 26

2.1.9 WinCE: 26

2.1.10 MPLAB: 27

2.1.11 Microchip C18 Compiler: 27

Page 13: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

xii

2.1.12 Flexipanel Designer Services 27

2.1.13 PIC18LF6720 Microcontroller 28

2.1.14 AT Command Set 31

2.1.15 Golden receive power range 32

2.1.16 Conclusion 33

3 DEVELOPMENT METHODOLOGIES 34

3.1 Design Approach and System Specification 34

3.1.1 Master Unit (MU) 37

3.1.2 Slave Unit (SU) 38

3.1.2.1 Bluetooth Module Specification 39

3.1.2.2 Bluetooth Radio with Antenna Specification 40

3.1.2.3 Integrated Microcontroller Module 41

3.2 System Architecture 41

3.2.1 MU Functionalities for the Proposed System 43

3.2.2 Device Discovery, Connection Setup and Data Handling

Operations 44

3.2.3 GUI Development for Master Unit: 50

3.2.3.1 Wireless Field Programming/ Uploading 55

3.2.4 SU Architecture 57

3.2.4.1 SU Hardware: 57

3.2.4.2 SU Software 62

3.2.4.3 SU Application Development 63

3.2.5 MU and SU Interaction 70

3.3 The Prototype and Performance Evaluation Entities 73

3.3.1 Device Discovery Delay 73

3.3.2 Connection Duration 74

3.3.3 Connection Delay 74

3.3.4 Data (Bytes) Reception Delay 75

3.3.5 Throughput 75

3.3.6 BER 75

3.3.7 Summary 76

4 PROTOTYPE EVALUATION, RESULTS AND DISCUSSION 77

4.1 The Prototype Evaluation 77

4.2 Prototyping MU Framework 77

4.3 Prototyping SU Framework 88

4.3.1 Temperature Sensor Operation Monitoring 98

4.4 Simulation & Test Results 102

4.4.1 Connection Delay 104

4.4.2 Link Quality And Bit Error Rate 106

4.4.3 Connection Duration 109

4.4.4 Delay/Latency for MU Display 109

4.4.5 Data Value Variation for Analog Inputs 110

4.4.6 Throughput 111

4.5 Discussions 116

4.6 Summary 116

5 CONCLUSION 117

5.0 Limitations 117

Page 14: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

xiii

5.1 Conclusion 117

5.2 Future Work 118

REFERENCES 119

APPENDICES 122

BIODATA OF THE AUTHOR 130

Page 15: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

xiv

LIST OF TABLES

Table Page

2.1 Protocol Classes in Brief

3.1 General Specification for the system. 36

3.2 Physical Specification of the BT Module 36

3.3 Bluetooth radio specification for the System 36

3.4 Electrical Specification for the Bluetooth module 36

3.5 Pins and I/Os of the Bluetooth PIC module used in the system. 58

3.6 Important connections to be made between ICD 2 and Bluetooth PIC 64

4.1 Link Quality and Corresponding BER 107

Page 16: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

xv

LIST OF FIGURES

Figure Page

2.1 Bluetooth Core System Architecture 12

2.2 Conceptual Protocol stack diagram 17

2.3 Piconet and scatternet formation scenario. 26

2.4 Pin diagram for PIC18F6720 used with the Bluetooth module. 30

2.5 Block diagram of the PIC18F6720 series microcontroller. 31

2.6 Golden Received Power Range. 33

3.1 Modular Approach for the development of the proposed system. 35

3.2 Proposed wireless triggering and monitoring system. 38

3.3 Bluetooth Enabled Slave Unit for the Proposed System 40

3.4 Architecture of Wireless Device Triggering and Monitoring System. 42

3.5 Bluetooth Protocol stack with Flexipanel system services 43

3.6 MU functionalities developed for the proposed system 44

3.7 Producing C code from GUI for MU. 52

3.8 Screen shot of Control Properties for Analog to Digital Conversion. 53

3.9 Screen shot of Designing of the MU GUI Application. 54

3.10 Screen shot of Designing of the MU GUI Application. 54

3.11 Screen shot of MU GUI for Pocket PC for motor control button. 55

3.12 Screen shot-I of the wireless uploading test of the SU application. 56

3.13 Screen shot-II of the wireless uploading test. 56

3.14 Basic circuit diagram of SU to connect with external circuitries. 59

3.15 Components and pin configurations of BT PIC. 60

3.16 SU with BT PIC on PCB with external circuitry arrangement 61

3.17 Schematic of the Sample Implementation circuitry connected to SU. 62

Page 17: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

xvi

3.18 Internal design with protocol stack of the SU system development. 63

3.19 The adapter and the Bluetooth PIC module used in this thesis. 65

3.20 ICD 2 connected to the adapter and wired adapter. 65

3.21 The file list in the project and selecting processor. 67

3.22 The MPLAB VDI to set up initialization code. 67

3.23 Initializing and monitoring the processor parameters. 68

3.24 Selecting the Oscillator type and its configurations. 68

3.25 Configuring the A/D input pins and its respective other settings. 69

3.26 Settings in the visual ‘Configuration Bits’ window. 69

3.27 Programming .hex file to the PIC via the ICD and adapter. 70

3.28 Flow chart for MU and SU system interaction. 72

3.29 Testing and simulation environment setup. 73

4.1 Initiate the device discovery to discover and be discovered. 79

4.2 Showing the busy mode after starting the device discovery. 79

4.3 The SU is found and user may connect to this device. 80

4.4 A shortcut would be created on the PDA to handle it easily. 80

4.5 The available services/profiles with(/out) secure connection. 81

4.6 The signal strength is shown visually. 81

4.7 Shows the full strength of the signal with the service name. 82

Page 18: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

xvii

4.8 The MU application GUI is located here. 83

4.9 The MU application is a click away. 83

4.10 The MU application starts with this Connect button. 84

4.11 The connection with the SU is in progress. 84

4.12 MU Functionalities list. User may choose one at a time. 85

4.13 This screen is to test/run the Digital Triggering. 85

4.14 Screen shot of the Digital Input Test. 86

4.15 Screen shot of the Parallel Output Test 86

4.16 Screen shot of the Parallel Inputs 87

4.17 Screen shot for AD conversion of analog voltages applied. 87

4.18 Preliminary prototype of SU with all the arrangement. 90

4.19 Close view of the Laboratory prototyp. 91

4.20 Initial SU circuit board implementation. 91

4.21 Next stage of the prototype with Handheld/MU shown. 92

4.22 Preliminary Construction of the SU. 93

4.23 Complete circuit board implementation -Top view. 93

4.24 Part of the circuitries with oval and square mark. 94

4.25 The backside of the circuit board with a hole. 94

4.26 One end of the Bluetooth module with PIC. 95

4.27 One sensor (LM35 series) is shown at the left for sample. 95

4.28 Sample DC 12 voltage load and other connecting points. 96

4.29 This PDA has been used as MU to connect to the SU. 96

4.30 SU is ready to be operated by MU for a 220V load switching. 97

Figure Page

Page 19: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

xviii

4.31 The bulb is switched on, also the 12 volt DC fan from MU. 97

4.32 Temperature Sensor circuitry on breadboard 98

4.33 LM35 series Temperature Sensor with general circuitry. 99

4.34 Showing the corrected format design to be shown on the MU 100

4.35 The GUI to be formatted to show the temperature reading. 101

4.36 Monitoring temperature sensor data on PDA. 101

4.37 Capturing data into files from simulation with desktop PC. 103

4.38 One of the Test and Simulation Setup. 103

4.39 MU is Discovering SUs and 5 SUs are discovered. 105

4.40 PDA Connecting to the remote device via the serial port. 105

4.41 Total delay for establishing connection. 106

4.42 Distance Vs RSSI graph for 10 different trials 108

4.43 Delay for analog data display on PDA. 110

4.44 Difference in values for different input values and distance. 111

4.45 Throughput at Baudrate of 115200 bps. 112

4.46 Throughput at Baudrate of 230400 bps. 115

4.47 Throughput at Baudrate of 460800 bps. 115

Page 20: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

xix

LIST OF ABBREVIATION

PDA Personal Digital Assistant

WLAN Wireless LAN

IrDA Infrared

WAP Wireless Access Protocol

PIC Peripheral Interface Controller

ADC Analog to Digital Converter

SU Slave Unit

MU Master Unit

L2CAP Logical Link Control & Adaptation Protocol

VDI Visual Device Initializer

BER Bit Error Rate

SPP Serial Port Profile

RSSI Received Signal Strength Indication

Page 21: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

CHAPTER 1

INTRODUCTION

1.1 Introduction and Problem Statement

Along side the growth of computing power, recent times have seen large advances in

the area of networking and communications, mainly by the explosion of the wireless

and Internet technology. These developments are now seeing smaller mobile devices

such as PDAs and mobile phones empowered with the WLAN, BLUETOOTH,

IrDA, and Wireless Access Protocol (WAP) providing users with the convenience of

access to information on the connected devices and networks.

Wireless control over remote devices is a great challenge for current time while

everything wired is turning to wireless and of course without line of sight is

important to take into consideration. Till now many remote device controlling

systems are using Infrared. Bluetooth has some advantages over IrDA like it uses

radio frequency and does not have line of sight problem. Moreover, it is available in

most of the standard handheld devices like PDA, Mobile phone and also in form of

dongles that can enable any desktop or laptop to use Bluetooth. This work focuses on

developing and implementing systems that can be used for controlling and

monitoring remote devices wirelessly using Bluetooth technology with handheld

devices. The system can use any Bluetooth enabled PDA or Mobile Phone or Laptop

to control remote slave devices at home, office and industry within the standard

range.

Page 22: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

2

1.2 Objectives

The objectives of this thesis are:

1. To develop functionalities to communicate and use Bluetooth chip for

accessing the in built vendor supplied radio services and independent

services.

2. To control the Bluetooth radio services by programming high performance

Peripheral Interface Controller (PIC).

3. To develop user interface program for the user device or master device (such

as for PDA, mobile Phone, desktop or laptop ).

4. To develop circuitry for practical implementation of the wireless control and

monitoring systems.

5. To test the total implementation for stable performances and prototyping and

converting the prototype to a product prototype.

6. To test the performance of the developed system and its critical points of data

handling.

1.3 Scope of work:

This research work will present a design and a prototype according to the design,

which will be able to achieve the objectives stated in section 1.2. This work does not

develop any integrated Bluetooth radio module rather it uses off the shelf radio

module and Microchip’s PIC18FL6720 together to develop the wireless remote

control and monitoring system. C18 compiler and MPLAB, Win CE 3.0 and

Flexipanel Interface Designer are used for software development.

Page 23: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

3

1.4 Thesis arrangement

Chapter 1 describes introduction, objectives and scope of the work mainly. Chapter 2

makes a critical and useful literature review. Chapter 3 will discuss the design and

development methodologies and will describe the performance entities for the

evaluation of the system prototype. Chapter 4 will show the developed system, its

real time implementation with test and simulation results. Finally Chapter 5 will

conclude.

Page 24: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

119

REFERENCES

[1] G. Záruba, S. Basagni and I. Chlamtac, BlueTrees – Scatternet formation to

enable Bluetooth-based personal area networks, in: Proceedings of the IEEE

International Conference on Communications, ICC 2001, Helsinki, Finland,

Vol. 1 (11–14 June 2001) pp. 273–277.

[2] C. Petrioli, S. Basagni and I. Chlamtac, Configuring BlueStars: Multihop

scatternet formation for Bluetooth networks, IEEE Transactions on

Computers 52(6), Special Issue on Wireless Internet (2003) pp 779–790.

[3] Z.Wang, R.J. Thomas and Z. Haas, BlueNet – A new scatternet formation

scheme, in: Proceedings of the 35th Hawaii International Conference on

System Science (HICSS-35), Big Island, Hawaii (7–10 January 2002).

[4] B Fridtoof Feldbusch , “The BTRC Bluetooth remote control

system”Alexander Paar, Manuel Odendahl, Ivan IvanovJuly 2003, Personal

and Ubiquitous Computing, Volume 7 Issue 2

[5] Satyajit Chakrabarti, S. Liyun Wu, Son Vuong, Leung, “A Remotely

Controlled Bluetooth Enabled Environment” V.C.M. Consumer

Communications and Networking Conference, 2004. CCNC 2004, IEEE, 5-8

Jan. 2004 pp:77 - 81

[6] T. Hodes, M. Newman, S. McCanne, R. Katz, J.Landay, "Shared Remote

Control of a Video Conferencing Application: Motivation, Design, and

Implementation," SPIE Multimedia Computing and Networking (MMCN),

Proc. SPIE, vol. 3654, 1998, pp. 17-28.

[7] T. Hodes, R.Katz, "A Document-based Framework for Internet Application

Control," 2nd USENIX Symposium on internet Technologies and Systems

(USITS), 1999, pp. 59-70.

[8] B. Myers, H. Stiel, and R. Gargiulo. "Collaboration Using Multiple PDAs

Connected to a PC." Proceedings CSCW'98: ACM Conference on Computer-

Supported Cooperative Work, Seattle, 1998, WA. pp. 285-294.

[10] Sevillano, J.L., Díaz, F., Jiménez, G., Cascado,D., Civit-Balcells, A., “An

analytical model of Inter-channel Interference in Bluetooth-Based Systems”,

IEEE MWCN, pp. 384-388. 2002. ISBN/D.L.: 0-7803-7606-4.

[11] Fridtjof Feldbusch, Alexander Paar, Manuel Odendahl, Ivan Ivanov. “The

BTRC Bluetooth remote control system” IEEE 2003, Personal Ubiquitous

Computing,Vol 7, Issue 2, (July 2003), pp: 102-112, ISSN:1617-4909, ACM

Digital Library.

[12] I. Chlamtac and A. Faragó, A new approach to the design and analysis of

peer-to-peer mobile networks, Wireless Networks 5(3) (1999) pp: 149– 156. [13] A Remote Controlled Wireless Enabled Environment, Satyajit Chakrabarti,

Liyun Wu, Son Vuong, Victor C.M. Leung, Consumer Communications and

networking Conference, 2004. CCNC 2004

Page 25: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

120

[14] The information home appliance control system - a Bluetooth universal type

remote controller Jia-Ren Chang Chien; Cheng-Chi Tai; Networking, Sensing

and Control, 2004 IEEE International Conference on Volume 1, 21-23

March 2004 age(s):399 - 400 Vol.1

[15] Temperature sensor information,

http://www.national.com/pf/LM/LM35.html, Last Accessed on 01/01/2006.

[16] Deepak Jayanna, Gergely V. Záruba, A Dynamic and Distributed Scatternet

formation Protocol for Real-life Bluetooth Scatternets, Proceedings of the

38th Hawaii International Conference on System Sciences – 2005.

[17] Microchip MPLAB, PIC and Data Sheets, http://www.microchip.com, Last

Accessed on 01/01/2006.

[18] Bluetooth Module, manuals, www.flexipanel.com, Last Accessed on

12/07/2006.

[19] Alps Electric Company Ltd, Japan. Alps Virtual Cable Light, Firmware

Revision

B3_10 Release Note Document Version 1.0-2003.

[20] Bluetooth info, specifications, SIG info, www.bluetooth.org, Last Accessed

on 05/06/2006.

[21] AT Command Set info,

http://encyclopedia.thefreedictionary.com/Hayes+AT+command+set, Last

Accessed on 05/05/05.

[22] Bluetooth Specification Version 1.2 [vol 2], Section 4.1, page 37 of 790, 5th

November 2003.

[23] General Bandwidth info for variaous wireless technologies,

http://en.wikipedia.org/wiki/List_of_device_bandwidths, as on 15/05/06.

[24] Lee, W.S., Burks, T.F., Schueller, J.K., 2002. Silage yield monitoring system.

ASAE Paper No.: 02-1165. Science Direct, The American Society of

Agriculture Engineers, St. Joseph, Michigan, USA.

[25] Cugati, S., Miller, W., Schueller, J., 2003. Automation concepts for the

variable rate fertilizer applicator for tree farming. In: The Proceedings of the

4th European Conference in Precision Agriculture, Berlin, Germany, June

14–19.

[26] Liu, G., Ying, Y., 2003. Application of Bluetooth technology in greenhouse

environment, monitor and control. J. Zhejiang Univ., Agric. Life Sci. Science

Direct, 29, 329–334.

[27] Nagl, L., Schmitz, R.,Warren, S., Hildreth, T.S., Erickson, H., Andresen, D.,

2003.Wearable sensor system for wireless state-of-health determination in

cattle. In: Proceedings of the 25th IEEE EMBS Conference, Cancun, Mexico,

September 17–21.

Page 26: DESIGN AND DEVELOPMENT OF A HANDHELD BLUETOOTH … · memastikan prestasinya yang positif. Keputusan menunjukkan ia memberikan ciri-ciri piawaian perkhidmatan sesuatu sistem dengan

© COPYRIG

HT UPM

121

[28] Development of a low cost, GPS-based upgrade to a standard handheld

gamma detector for mapping environmental radioactive contaminationm J.

Paridaens / Applied Radiation and Isotopes 64 (2006), Science Direct, pp:

264–271.


Recommended