bluetooth remote controller using java

Upload: jack-pane

Post on 19-Oct-2015

23 views

Category:

Documents


0 download

TRANSCRIPT

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    1/27

    BLUETOOTH REMOTE CONTROLLER USLNG JAVA

    MOHAMMAD NOR IHSAN BIN MD Z N

    This report is submitted in partial fulfillment of the requirements for theBachelor of Computer Science Computer Network)

    FACULTY OF INFORMATION ND COMMUNICATION TECHNOLOGYWIVERSITI TEKNIKAL MALAYSIA MELAKA2007

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    2/27

    BSTR CT

    Bluetooth Remote Controller Using Java is a project based on Bluetoothapplication. This Bluetooth innovation will enable user to control their home deviceusing B luetooth mob ile phone. For this project the device which can control is lamp.The lamp will create as virtual and will be locates in computer system. User need toconnect their mob ile phone with computer via Bluetooth in order to control the v irtuallamp. User can control the lamp whether to switch it ON o r OFF.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    3/27

    BSTR K

    Bluetooth Remote Controller Using Java adalah sebuah projek yang berasaskanaplikasi Bluetooth Inovasi Bluetooth ini membenarkan pengguna mengawal peralatan didalam rumahnya menggunakan telefon bimbit yang menyokong Bluetooth Dalamprojek ini peralatan yang boleh dikawal adalah lampu Lampu tersebut akandibangunkan secara maya dan akan diletakkan di dalam sistem komputer Penggunaperlu menyambung atau menghubungkan telefon bimbitnya dengan komputer melaluiBluetooth untuk membolehkan beliau mengawal lampu maya tersebut Pengguna bolehmengawal peralatan rumahnya samada ON atau OFF.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    4/27

    CHAPTER I

    INTRODUCTION

    1 1 Project Background

    Th e project o f Bluetooth R emote Controller Using Java will allow people applyBluetooth technology to control a lamp via their Bluetooth enabled mobile phone. Thelamp which will be controlled will create virtually and will be appear on the monitorscreen for both computer and mobile phone. The system in the computer will developusing Java programming language and for mobile phone, Java 2 Micro Edition J2ME )will be used. User can use their Bluetooth mobile phone to either switch the lamp o n o roff. The wh ole application will be build using Java programming language.

    1 2 Problem Statements

    Suitable with era circulation, the usage of data cable is no longer practical fordevices connection and data transmission. Wireless has replace the cable usage, and givemore comfortable to people. Nowadays, people search for something easier andaffordable to daily usage. Bluetooth is a technology that allows computer or mobilephone com municates with other devices wirelessly.

    Today, the usage of Bluetooth technology mostly limited to communicationbetween mobile phones. The popular uses of Bluetooth are transferring data, such s

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    5/27

    MP3, games, and other application in mobile phone. Now people can apply this wirelesstechnology as a remote controller. Means, by using Bluetooth enabled mobile phone,people can control other devices like computer, car, or their home devices.

    1 3 Objectives

    The objectives of developing Bluetooth Remote Controller Using Java are:Develop Virtual Lamp application for computer systemDevelop Virtual Lamp application for mobile phoneThe Virtual Lamp application is able to control the Virtual LampApply Bluetooth connection to communicate between computer and mobilephone using Bluetooth USB adapter as the medium.

    1 4 Scope

    The project will concerns on developing virtual lamp application using Javaprogramming language in the computer system and developing virtual lamp applicationGUI using Java J2ME programming at Bluetooth mobile phone. The virtual lampapplication GUI at mobile phone will be simple than the GUI at computer. Besides, theproject will use Bluetooth technology to connecting the Bluetooth mobile phone and thecomputer. At this point, Bluetooth USB adapter will plug-in into the computer to allowcommunication and data transmission between the two devices. After the connectionbetween devices success, user can control the virtual lamp application either to switchon or off the device. Once the device switched on n the mobile phone s virtual lampapplication, the device in computer s virtual lamp application also switched on.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    6/27

    1 5 Project Significance

    The significance of this project is to ease and accelerate people work in take careof their home. By using Bluetooth mobile phone people can easily switch on or off theirlamp at home. No need to worry forget to switch off the lights the controller is at yourfmgertips. This will give more convenience and save much time to the user.

    1 6 Expected Output

    The expected output of the project is understands how Bluetooth can be aconnection medium between computer and mobile phone. Beside that this projecthopefully can make people fully implementing Bluetooth technology in their dailyhabits. Although in this project the lamp creates as virtual it is not impossible to makeit reality in the future. Furthermore this technology can be implements in other devicesystem such as fan and electronic door.

    1 7 Conclusion

    A project success usually begins with a good research about the project domain.This chapter discusses overview of the project. According to problem statements ofnetwork domain and Bluetooth technology this project may be the solution for it. Theearly procedure of a project was completed in this chapter. Next chapter will discusesabout literature review and project methodology.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    7/27

    CHAPTER I

    LITERATURE REVIEW AND PROJECT METHODOLOGY

    2 1 Introduction

    After discussing the project preview in previous chapter this chapter will presentthe literature review and project methodology. The literature review focuses on thevarious theory and basic network knowledge used in the project. Project methodologywill discuss detail about type of methodology techniques hardware or softwarerequirements and project planning to develop the project so that the planning for theproject proposed to meet project objectives scopes and requirements.

    2 2 Fact And Finding

    There is lot of techniques used to gather information that related to the project. Itmight be find from the Internet web pages books that related to project domain journalsor articles from passed research. These initial documents will provide some valuableinformation to determine the basic view for the project. The theory and concept from thepassed research references case study and other can be applied in order to understandthe project requirements.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    8/27

    2 2 1 Domain

    This sub-topic explains the domain related to this project which is the Bluetooth.This will elaborate in details about Bluetooth technology, its operation and Bluetoothnetwork topology. These are the important information about Bluetooth system.

    2 2 1 1 Bluetooth Technology

    Bluetooth technology is a cutting-edge open specification that enables short-range wireless connections using low-power radio communications between desktop andnotebook computers, personal digital assistants, handhelds, mobile phones, cameraphones, printers, digital cameras, headsets, keyboards and even a computer mouse. Thename Bluetooth is borrowed from Harald Bluetooth, a king in Denmark more than1,000 years ago.

    Bluetooth wireless technology is intended to replace the cables connectingportable and fixed devices while maintaining high levels of security. This wirelesstechnology uses a globally available frequency band (2.4GHz) for worldwidecompatibility. In nutshell, Bluetooth technology unplugs your digital peripherals andmakes cable clutter a thing of the past. Although the Bluetooth standard utilizes the same2.4 GHz range as 802.1 1b and 802.1 1g, Bluetooth technology is not a suitable Wi-Fireplacement. Compared to Wi-Fi, Bluetooth networking is much slower, a bit morelimited in range, and supports many fewer devices

    Wireless signals transmitted with Bluetooth cover short distances, typically up to30 feet (10 meters). Bluetooth devices generally communicate at less than 1 Mbps.Bluetooth networks feature a dynamic topology called a piconet or PAN. Piconetscontain a minimum of two and a maximum of eight Bluetooth peer devices. Devicescommunicate using protocols that are part of the Bluetooth Specification.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    9/27

    2 2 1 2 Bluetooth Operation

    The Bluetooth core system consists of an R transceiver, base band, and protocolstack. The system offers services that enable the connection of devices and the exchangeof a variety of data classes between these devices.

    Bluetooth can connect 8 devices at the same time. Although each of thosedevices on the same radius, it would not interfere with each other. Bluetooth utilizes atechnique known as low frequency hopping, which makes it harder for more than onedevice to transmit on the same frequency at the same time. One of the ways Bluetoothwill avoid interfering with other electronic devices is by sending out weak signals ofaround miliwatt mw). The low power signals will limit the range of a Bluetoothdevice to around 10 meters, which cut the chances of interference between yourcomputer and other electronic devices. Even though it has low power, Bluetooth doesnot require a line of sight between the communicating devices.

    When the Bluetooth devices come within close range of each other, an electronicconversation will occur to determine whether or not they have data to share or whetherone needs to take total control. The user does not have any buttons to press orcommands to give, the conversation will occur automatically.

    Once the conversation has occurred, the devices will form a network. Bluetoothdevices will create a PAN Personal Area Network) or piconet that may fill aroom. Once the piconet has been established, the devices will randomly hop infrequencies.

    2 2 1 3 Bluetooth Network Topology

    Bluetooth-enabled devices are organized in groups Called piconets. A piconetconsists of a master and up to seven active slaves. A master with a single slave will use

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    10/27

    point-to-point communication to communicate among each other. If there are multipleslaves, point-to-multipoint com munication is used. master unit is the device thatinitiates the comm unication. device in one piconet can comm unicate to another dev icein ano ther piconet, forming a scatternet. Scatternet is a group o f linked piconets joinedby common members that can either be slaves on both piconets or a master of onepiconet and a slave on another. Notice that a master in one piconet may be a slave inanother piconet.

    Figure 2 1: Piconets and Scatternet

    The normal duration of transmission is one slot, and a packet can last up to fivetime slots in length. In order to support full-duplex communications, Bluetooth uses atime-division multiplexing TDM ) scheme , in which master device always uses aneven-num bered slot when it transmits, and a slave uses an odd-num bered slot.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    11/27

    2 2 2 Existing System

    There are some Bluetooth remote controller exists in the market today. Everyproduct has different specification and function. These are several Bluetooth-basedsystems that already exist:

    i. Bluetoot11P Dialer

    Bluetooth PC Dialer is both a stand-alone application and a BluetoothOutlook plug in. This means that user can access call directly from withinOutlook with a single click.

    With Bluetooth PC Dialer user have the following call options:

    Copy a number to clipboard and press the call short keycombination.Call any number from the Bluetooth PC Dialer applicationIn Outlook call from a highlighted email Bluetooth PC Dialerfinds the Contact that matches the senders e-mail addressIn Outlook call from a highlighted Contactn Outlook call from an opened ContactIn Outlook call any number that you chose

    Bluetooth PC Dialer can be operated completely via fast keys without theneed of the mice, and it have same call related functionality as the phone.

    To use Bluetooth PC Dialer user need a Bluetooth enabled mobile phoneand a Bluetooth PC solution. Bluetooth PC Dialer accesses Bluetooth stackdirectly so there is no need for setting up Bluetooth COM ports Widcomrn andMicrosoft stack). The program supports most Bluetooth enabled mobile phonesand all PC solutions.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    12/27

    11 Bluetooth Remote Control Version 3

    Bluetooth Remote Control is a true universal remote control. It allows theuser to modify the current behavior as well as add support for new applications.User can add support by writing Java or VB scripts, defining key maps and fileactions. With key maps the user can very easy and fast define application actionsand link them to any buttons on the mobile phone.

    Bluetooth Remote Control is free to try for as long as user wants. Thedemo version provides a limited number of actions before disconnected and mustreconnect. The full version can be purchased and registered securely from withinthe program.

    iii. Device Synchronization

    Seamless connectivity among Personal Digital Assistant (PDA),computers, and mobile phones allows applications to update information onmultiple devices automatically when data on any one device changes.

    2 2 3 Technique

    The applicable approach that related to this project is using Java MIDlet. AMIDlet is a Java program for embedded devices, more specifically the Java ME virtualmachine. Generally, these are games and applications that run on a cell phone.

    A MIDlet requires a device that implements Java ME Mobile InformationDevice Profile (MIDP) to run. The MIDP, when combined with the Connected LimitedDevice Configuration (CLDC), is the Java runtime environment for today's most popularcompact mobile information devices, such as cell phones aid mainstream PDAs. Likeother Java programs, MIDlets have a compile once, run anywhere potential. To write a

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    13/27

    MIDlet you can get the Sun Java Wireless Toolkit or NetBeans with the NetBeansMobility Pack from the Java website which is available on several platforms and iscompletely free. MIDlet distributions also consist of a .jad file describing the contents ofthe JAR file.

    2 3 Project ethodology

    The project will used the Waterfall Model as it methodology to achieve theobjectives. The Waterfall Model will cascade effect from one phase to the other. Itsimplified the steps or preparation for how to begin or implement a project. Thewaterfall model tackles complexity in an orderly way and it is easy to understand with asimple goal which is to complete the required activities. Besides this model is easy totrack the progress of the project using a timeline or gantt chart where the completion ofeach phase is used as a milestone.

    For this project methodology the waterfall model has five phases which areplanning phase as the first phase where all project planning were done. It is followed byanalysis phase which in this phase all exploration and analysis about the project titlewere done. After analysis phase completed then the design phase begin. The forth phaseis implementation where the project will be develop. The last phase is installation. Oncethe project reached the installation phase it is consider as completed. Figure 2 2indicates the waterfall model for project methodology.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    14/27

    PL NNING

    v

    IMPLEMENT TION

    INST LL TION

    igure 2 2: Waterfall Model or Project Methodology

    The first phase to start the project is planning phase. In this phase, a plan tocomplete the project after detailed exploration about concept and system allocation. Inthis phase, mostly about identifylng project background, problem statement, projectscope and objectives, project significant, and also determine project requirement in orde rto com plete the project. Besides, to ensure all activities complete exactly on time, G anttchart also created in this phase.

    After planning phase is completed, it is follow by analysis phase which is toidentifylng issues regarding on the pro ject title. Besides, all information abou t the topicalso gathered and analyze in this phase. n other hand, project s software and hardw arerequirement w as determined in this phase.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    15/27

    Design is the third phase n project waterfall model. In this phase, project focuson design process. This process include of user interface design for both system inmobile phone and the computer, output and input data of the system and projectarchitecture.

    After all design works completed. The next phase is implementation phase. Inimplementation phase, project running based on design and architecture. The hardwareand software that determined are installed and tested. The implementation of the systemwas done using Java programming language and Java J2ME for mobile phone.

    The final phase is installation phase. When all previous phase were donesuccessfully, the system will install and run in computer and mobile phone. The systemwill tested and if success, the project is completed.

    2 4 Project Requirements

    Requirement of the project can be divided into two categories, which aresoftware requirement and hardware requirement. These two requirements play animportant role in developing or completing the project. The types of requirements andthe details are as list at below.

    2 4 1 Software Requirements

    There are a few kinds of software tools to be used for the project. The softwareor tools use to develop the application are NetBeans I E version 5.5 and Sun JavaWireless Toolkit 2.5 for CLDC. For the Java Development Kits JDK) and Java RuntimeEnvironment JRE), developer used JDK version Update 2 and JRE version Update2. To supports J2ME development, NetBeans Mobility Pack 5.5 was installed for

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    16/27

    NetBeans 5.5. The other software are Windows XP Professional Service Pack 2,Microsoft Office Project, Microsoft Office Visio, Microsoft Office Word. All thesesoftware used for project s documentation.

    The J K used to develop Java application for virtual lamp application incomputer system. The Sun Java Wireless Toolkit will be used to develop MIDletapplication, which is the virtual lamp application, running and install inside the mobilephone.

    Besides that, Windows XP Professional Service Pack 2 is the operating systemfor the computer which will connect with mobile phone via Bluetooth. Microsoft OfficeProject is used to create the project milestone and Gantt chart that will be used to showthe progress of the project. Microsoft Office Visio used to create the network diagram,system layout, flow chart and data flow diagram for the project documentation.

    Microsoft Office Word is the word processing software that important to createproject documentation. All project progress and report will be create using MicrosoftWord and will save in .doc file type.

    2 4 2 ardware Requirements

    Systems are able to run and perform in a perfect condition if it meets therequirements. The basic requirement required to run the system are like a unit of desktopcomputer which is where virtual lamp application will placed. The other requirement isUSB Bluetooth adapter, which the main hardware to connecting computer and mobilephone via Bluetooth. Mobile phone is the third hardware that required in developing thisproject. However this mobile phone must have Bluetooth capability to making sure itcan connecting with computer.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    17/27

    2 5 Project Schedule nd Milestones

    Gantt chart is a popular type of bar chart that illustrates a project schedule. Ganttcharts illustrate the start and finish dates of the terminal elements and summary elementsof a project. Terminal elements and summary elements comprise the work breakdownstructure of the project. Gantt charts can be used to show current schedule status. AGantt chart provide a standard format for displaying project schedule information bylisting project activities and their corresponding start and finish dates in a calendarformat. Project milestones are events that signify the accomplishment or completion ofmajor deliverables during a advancement of knowledge in a field such as interfacedevelopment.

    The project Gantt chart is attached in the report attachment. Please refer to theattachment.

    2 6 Conclusion

    In the chapter of literature review and project methodology, it took more workson gathering lots of information, facts, related journal and articles in order to find theright approach to manage problems, requirements and preferences of this project. Bydoing that, we can understand the concept of Bluetooth and it s operation.

    Waterfall methodology model are chosen to provide a mechanism for mappingfrom real world problems to abstractions do that it can be developed effectively.

    Project requirements for the project are specified as a scope for project to beimplemented successfully. It is to ensure the project can be developed without meetingany problem that can cause by incompatible hardware and software.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    18/27

    good project planning demonstrates that suitable consideration has been givento management and execution needs for the project. It is important to ensure that aproject is completed on time because deletion of a project can bring about otherinterfacing problem to cost time and so on.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    19/27

    CH PTER

    N LYSIS

    3 1 Introduction

    n order to study to examine something or to learn what it is made up ofanalysis phase is needed. The analysis is about understanding the design environment.This consists of identifylng the questions and issues to be addressed identifylng itstrength and weakness gathering and understanding requirements and characteristics.There are few approaches or techniques to gather requirements for the project likeasking people that have knowledge about Bluetooth technology and Bluetooth remotecontroller to get books related with the project articles and journals regarding Bluetoothremote controller. Explanation mostly talking about makes comparison between theexisting system and the new technology. It is including analyzing in details about theproblem of the existence system and trying to find the solution for it. Once theinformation gathered it will be organized and presented in certain form. The analysisalso consists of identifying software and hardware requirements.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    20/27

    3 2 Problem Analysis

    Problem analysis will investigate and identify the existence system situation.This section will give some brief and general idea what are the pro and con about thecurrent system. In this section also will present the data flow diagram or activity diagramto show how the current system runs.

    3 2 1 The Scenario Situation of Current SystemThis sub-chapter elaborates the scenario and situation of the existing Bluetooth

    system. It consists of Bluetooth technology scenario Bluetooth security issues andBluetooth remote controller situation.

    3 2 1 1 Bluetooth Technology Scenario

    When looking around most of keyboard printer mouse monitor and scanner areconnected to the computer by cables. Cables have become the bane of many offices andlamp applications. Bluetooth essentially aims to fix the problem. It is a cable-replacement technology.

    Introduced initially by Ericsson before being developed by a myriad of othercompanies Bluetooth is a standard for a small cheap radio chip to be plugged intocomputers printers mobile phones and other handheld. Bluetooth chip is designed toreplace cables by taking the information normally carried by the cable and transmittingit at a special frequency to a receiver Bluetooth chip which will then give theinformation received to the computer or mobile phone.

    Nowadays electronic devices like cell phones come equipped with Bluetooth.Whereas Bluetooth technology has certain obvious advantages like low power

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    21/27

    consumption and reliable connection but it suffers some inherent problems includinglow area of operation, limit of 7 slave devices per master device. 802.1 technology onthe other hand, has a wider area of operation and therefore very usefil as Access pointsand higher bandwidth in the order of 1 Mbps in 802.1 1b. But 802.1 1 has a higherpower consumption than Bluetooth. Cellular networks have a much wider coverage ingeographical area than 802.1 1. Complementing Bluetooth with 802.1 1 and cellularnetwork technology like GPRS would solve the shortcomings of these threetechnologies.

    Lots of ideas are constantly emerging for innovating Bluetooth technology. Someideas are practical and feasible. For example, Bluetooth chips in freight containers toidentify cargo when a lony drives into a storage depot, or a headset that communicateswith a mobile phone in your pocket, or even in the other room. Some ideas are not sofeasible, such as refrigerator communicating with your Bluetooth-enabled computer,informing it that foods supply is low, and to inform the retailer over the internet.

    3 2 1 2 luetooth Security

    The Bluetooth specification includes security features at the link level. Itsupports authentication unidirectional or mutual) and encryption. These features arebased on a secret link key that is shared by a pair of devices. To generate this key apairing procedure is used when the two devices communicate for the first time.

    The link level functions are defined in the Bluetooth Baseband and the LinkManager Protocol Specifications. The Bluetooth profiles describe how to use theBluetooth protocols in an interoperable way. Concerning security this is done in theGeneric Access Profile. This profile specifies three security modes for a device:

    1 Security mode 1 non-secure): A device will not initiate any securityprocedure.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    22/27

    11 Security mode 2 (service-level enforced security): A device does not

    initiate security procedures before channel establishment at L CAPlevel. This mode allows different and flexible access policies forapplications, especially running applications with different securityrequirements in parallel.

    iii. Security modes 3 (link level enforced security): A device initiatessecurity procedures before the link set-up at the LMP level iscompleted.

    For services the requirement for authorization, authentication and encryption areset independently (although some restrictions apply). The access requirements allowdefining three security levels:

    1 Services that require authorization and authentication. Automaticaccess is only granted to trusted devices. Other devices need a manualauthorization.

    11 Services that require authentication only. Authorization is notnecessary.

    in Services open to all devices; authentication is not required, no accessapproval required before service access is granted.

    The Bluetooth Security architecture has the following limitations:

    1 Support for legacy applications: In all scenarios, the legacy application willnot make calls to the security manager. Instead a Bluetooth-aware adapterapplication is required to make security-related calls to the Bluetooth securitymanager on behalf of the legacy application.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    23/27

    2 Only a device is authenticated and not its user. If there is a need forauthentication of the user, other means application level security features willbe necessary.

    3 There is no mechanism defined to preset authorization per service. However,a more flexible security policy can be implemented with this architecture,without a need to change the Bluetooth protocol stack. Of course,modifications of the security manager and the registration processes wouldbe necessary.

    4. The approach only allows access control at connection set-up. The accesscheck can be asymmetric, but once a connection is established, data flow is inprinciple bidirectional. It is not possible within the scope of this architectureto enforce unidirectional traffic.

    5 The security architecture is built upon the Bluetooth baseband securityprocedures that address the BT link security and mutual device authenticationat each end of the link. To address the end-to-end security issue, the existenceof a higher-level end-to-end security solution which may utilize theBluetooth security architecture presented for accessing devices and servicesdirectly present at the two ends of a Bluetooth link.

    Figure 3.1 below indicates the architecture of Bluetooth security. This figure mayhelp us to understand how Bluetooth works for its security.

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    24/27

    User Interface

    MgmtEntlty

    ~ R F C O ~or other rnultlplexlng m ~ ~ ~ m B m B B ~ecudvkprotocol ServlceManager Databas7 7J

    L2CAP

    HCIIL lnkMa~ager Llnk Controller

    Figure 3 1: Bluetooth Security Architecture

    3 2 1 3 Bluetooth Remote Controller Situation

    Bluetooth Remote C ontrol is a true universal remote control. It allows the u ser tomodify the current behavior as well as add support for new applications. User can addsupport by writing Java or VB scripts, defining key maps and file actions. With keymaps the user can very easy and fast define application actions and link them to anybuttons on the mobile phone. Figure 3.2 shows the architecture of Bluetooth remotecontroller.

    Application Remote Conkof)Transport Layer TCP)P Backbone

    Primary faster>a

    Local Bluetooth Scattan et(Bluetooth Enabled Environment) ,

    Figure 3 2: The Architecture of Bluetooth Remote Control

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    25/27

    3 2 2 Data Flow Diagram or Activity Diagram For Current System Operation

    START7No device found)

    Searching For -Bluetooth Devices

    Display Founded:: .devices

    ConnectionEstablished

    Yes{ZFFigure 3 3: Data Flow Diagram For Bluetooth Current System

    Figure above shows the data flow diagram for Bluetooth current system. Whenuser starts the system it will searches for Bluetooth devices in its range of coverage. Ifthere is no device found the system will end the system. But if the system found anydevice in its range it will prompt to make a connection to the device. User needs tovalidate the connection. If the user does not want to make a connection the system willfind another devices. If the connection accepts the connection is establish and system

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    26/27

    operations was done after this session. When user selects to terminate the connectionand the system, he will be asked once again to termination for confirmation. Once useraccept the termination, the Bluetooth connection will be disconnected. If not, it will stillconnected.

    3 2 3 Visual of Current System Flow

    Below is the figure which indicates the visual of current Bluetooth system flow.The main devices to make a Bluetooth connection are Bluetooth USB adapter whichused for any USB devices or user also can use Bluetooth P card for notebookcomputers.

    While the Bluetooth is connected, it will find the Bluetooth devices in its rangeof coverage. The example of Bluetooth devices are Bluetooth access point, Bluetoothhandheld, Bluetooth printer, Bluetooth cell phone and Bluetooth notebook.

    lurtoothandheld5ynrSmn redam

    'lIh0 l rr PI

    Figure 3 4: Diagram To Visualize Bluetooth System Flow

  • 5/28/2018 Bluetooth Remote Controller Using JAVA

    27/27

    3 3 Requirement nalysis

    Requirement analysis section is divided into data requirement, functionalrequirement, software requirement and hardware requirement. All these requirementsimportant to ensure the progress of the project will run smoothly.

    3 3 1 Data Requirement

    Data requirements for this project are more for controlling purpose. Whenapplication starts, the mobile phone will send radio signal to computer throughBluetooth USB adapter. The computer then will accept the Bluetooth connection and themobile phone will received the status of the lamp, whether it is on or off. During thissession, data that required are the status of the devices whether it is on or off and thedata from mobile phone to switch the device on or off.

    3 3 2 Functional Requirement

    There are three objects in this system which is user, Bluetooth remote controller(mobile phone) and virtual lamp application system (computer). The activity of thesystem starts when user opens the virtual lamp application at mobile phone. Once thesoftware was open, the Bluetooth remote controller search for Bluetooth device. Oncethe connection approved, user can control the virtual lamp application. Remotecontroller will send Bluetooth signal to the computer. Once the computer receives thesignal, it will send virtual lamp application status. User will see the devices in the virtuallamp application status, whether it is in the on or off mode. Then, user can control thedevices mode via the remote control. Remote control once again send signal (changingof device mode) to the computer, then the computer will change the device mode basedon remote controller s signal.