CHATADDICT A Bluetooth based chat application for mobile devices - PowerPoint PPT Presentation

1 / 22
About This Presentation
Title:

CHATADDICT A Bluetooth based chat application for mobile devices

Description:

... (ITU) 1. INTRODUCTION. CHAT-ADDICT A Bluetooth based chat application for mobile devices. JAVA ON MOBILE DEVICES. Presented by: Venkateshwar Rao Namilakonda ... – PowerPoint PPT presentation

Number of Views:2099
Avg rating:5.0/5.0
Slides: 23
Provided by: beb4
Category:

less

Transcript and Presenter's Notes

Title: CHATADDICT A Bluetooth based chat application for mobile devices


1
INTRODUCTION
  • CHAT-ADDICT A Bluetooth based chat
    application for mobile devices
  • JAVA ON MOBILE DEVICES
  • Presented by
  • Venkateshwar Rao Namilakonda

2
INTRODUCTION
  • Introduction and Bluetooth Achitecture
  • Communication
  • Testing and future enhancement

3
Bluetooth Achitecture
  • Overview Of Bluetooth Technology
  • Bluetooth-wireless connectivity options for
    mobile devices characterized by short range and
    low-power consumption, ad hoc networking.
  • Bluetooth-enabled devices are organized in groups
    called piconets .
  • A piconet consists of a master and up to seven
    active slaves.
  • A master and a single slave use point-to-point
    communication if there are multiple slaves,
    point-to-multipoint communication is used.

4
Bluetooth Achitecture
  • Overview Of BluetoothTechnology
  • The Bluetooth Protocol Stack-high-level view of
    the architecture

5
Bluetooth Achitecture
  • Overview Of Bluetooth Technology
  • The Bluetooth Protocol Stack-high-level view of
    the architecture
  • The radio layer physical wireless connection.
  • The baseband layer responsible for controlling
    and sending data packets over the radio link.
  • The Link Manager Protocol (LMP) uses the links
    set up by the baseband to establish connections
    and manage piconets.
  • The Host Controller Interface (HCI) the dividing
    line between software and hardware.
  • The Logical Link Control and Adaptation Protocol
    (L2CAP) receives application data and adapts it
    to the Bluetooth format.

6
Bluetooth Achitecture
  • Overview Of Bluetooth Technology
  • Network Establishment Scheme
  • A device not connected to the piconet is in
    standby mode.
  • Inquire the device automatically initiates an
    inquiry to find an access point. All nearby
    access points respond with their addresses, and
    the device picks one.
  • Page synchronizes the device with the access
    point.
  • Establish a link The Link Manager Protocol
    establishes a link with the access point.
  • Discover services The LMP uses the Service
    Discovery Protocol (SDP) to find out what
    services are available from the access point.
    Here we assume that the email service is
    available.
  • Create an L2CAP Channel The LMP uses information
    obtained from the Service Discovery Protocol
    (SDP) to create an L2CAP channel to the access
    point.

7
Bluetooth Achitecture
  • Overview Of Bluetooth Technology
  • Network Establishment Scheme
  • Create an RFCOMM channel Depending on the needs
    of the application, an RFCOMM channel is created
    over the L2CAP channel.
  • Authenticate requires input from the user. If
    the access point requires authentication, it will
    send an authentication request, and the user will
    be prompted to enter a PIN to access the service.
  • Log in If the device use the Point-to-Point
    Protocol (PPP) over RFCOMM, a serial port is
    emulated.
  • Send and receive data The email client and the
    access point now use standard network protocols
    like TCP/IP to send and receive data.

8
Bluetooth Achitecture
  • Overview of Our Application
  • Midlet-based chat application using server and
    client
  • BluetoothServer start the device discovery
    process
  • it searches and discover any existing bluetooth
    enabled device in the same piconet within the
    Bluetooth effective range.
  • service discovery process then starts to obtain a
    reference (URL) to suitable services.

9
Bluetooth Achitecture
  • Key Steps Forming the Bluetooth Application
    Design
  • Device discovery
  • DiscoveryAgent class and DiscoveryListener
    interface provide the necessary discovery
    services.
  • DiscoveryAgent startInquiry method.
  • Places the device in question into an inquiry
    mode.
  • The application specifies an event listener that
    will respond to inquiry-related events.
  • DiscoveryListener.deviceDiscovered is called each
    time an inquiry finds a device.

10
Bluetooth Achitecture
  • Service Discovery
  • After discovery of at least one remote device,
    device can begin to search for available
    services.
  • Communication
  • Server constructs an URL placedin the service
    record.
  • Initiates a service discovery, retrieves
  • the service record, construct a connection
    URL using the service record,
  • Opens a connection to the server as well as send
    and receive data to and from the server.

11
Chat Application
  • Assumptions
  • Design and working
  • Functionality and features

12
Assumptions
  • No interference with other wireless signals
  • There is only one server at any time
  • Server will be active before the client tries to
    establish the connection

13
Application Design and analysis
Description of Main Classes
midlet
send
send
midlet
14
Design and Working
  • Establishing Communication
  • Device discovery
  • DiscoveryAgent.startInquiry
  • DiscoveryListener.deviceDiscovered
  • DiscoveryListener.inquiryCompleted
  • DiscoveryAgent.retriveDevices
  • Service discovery
  • Service registration
  • Communication
  • Midletclass
  • startApp()
  • pauseApp()
  • destroyApp()

15
Design and Working
  • High level user interface
  • List
  • Form
  • TextField
  • Alert

16
Functionaility and features
  • Functionality
  • Startchat() this is the first action performed
    after the BTclient establish the connection with
    BTserver
  • Exit this is a default button provided by the
    series 60 nokia SDK which close our application
  • Send this button sends the message from client
    to server or vice versa

17
Functionality and Features
  • Features
  • Storage capacity for storing chatnames as well as
    messages
  • Two-way communication between client-server
  • Identification of user at both ends
  • User friendly interface
  • Exception handling for illegal operations

18
Software Test and Perspective
  • Functionality of software testing
  • Errors
  • Techniques involved

19
Functionality of software testing
  • Errors
  • Syntax error
  • Type error
  • Semantic error
  • Techniques
  • Functional testing
  • Structural testing

20
Functionality of software testing
  • Storage Test

21
Test Results
  • Test Successfully performed on storage() class

22
Conclusion
  • Knowledge acquired
  • Bluetooth technology
  • Implementing Bluetooth technology on mobile
    devices
  • Testing
  • Future enhancements
  • N-client chat
  • Dictionary enabled chat interface
  • Detail study of various profiles offered in
    Bluetooth technology and their relevance with the
    project
  • As an opensource project development
Write a Comment
User Comments (0)
About PowerShow.com