260 likes | 455 Views
ACS SEMINAR. Mobile Applications with J2ME and JSR 82 Student: Borja Gomez Zarceño Mentor: Dr. Stephan Rupp Institute of Communication Networks and Computer Engineering University of Stuttgart. Agenda. Bluetooth J2ME APIS. What is Bluetooth. Cable replacement technology. Features.
E N D
ACS SEMINAR Mobile Applications with J2ME and JSR 82 Student: Borja Gomez Zarceño Mentor: Dr. Stephan Rupp Institute of Communication Networks and Computer Engineering University of Stuttgart ACS SEMINAR
Agenda Bluetooth J2ME APIS ACS SEMINAR
What is Bluetooth • Cable replacement technology ACS SEMINAR
Features • Wireless and Automatic • Cheap • Single Standard on the ISM band • Handles Data and Voice • Omnidirectional signals • Frequency Hopping ACS SEMINAR
Bluetooth Applications • File transfer • Ad-hoc Networking • Device Synchronization • Peripheral connectivity • Car Kits • Mobile Payments ACS SEMINAR
Network Topology ACS SEMINAR
Bluetooth Protocol Stack ACS SEMINAR
Bluetooth Profiles • Different Vendors • A device must conform to a profile • GAP • SDAP • SPP ACS SEMINAR
Agenda Bluetooth J2ME APIS ACS SEMINAR
J2ME • Java joins Bluetooth technology • Compact and Portable Platform • Developer Needs for Embedded Devices • Heterogeneous devices ACS SEMINAR
J2ME configurations • J2ME under two configurations • CDC • CLDC • CLDC: • Provides a virtual machine KVM • A set of APIs and Libraries • CLASSES • METHODS ACS SEMINAR
CLDC • Provides run time environment • Targets resource constrained devices • 512 KB of memory • Limited power supply • Limited connectivity to Networks • Simple User interface ACS SEMINAR
MIDP 2.0 • Mobile interface Device Profile • Extends and Addresses CLDC • Abstracts into Java Classes ACS SEMINAR
Agenda Bluetooth J2ME APIS ACS SEMINAR
JSR 82 • Provide API for targeted Bluetooth-Enabled devices • Hides Stack • Classes • Methods ACS SEMINAR
Organization and Packages(I) • CLDC and GCF • Javax.microedition.io • Java.io • Java.lang • Java.util • MIDP2.0 • Javax.microedition.io.lcdui • Javax.microedition.media • Javax.microedition.midlet • JSR82 • Javax.Bluetooth • Javax.Obex ACS SEMINAR
JSR 82 Underlying Requirements • Minimum Profiles • GAP, SDAP and SPP • Support of three communication layers • SDP • RFCOMM • L2CAP • Bluetooth Control Center ACS SEMINAR
Using the API ACS SEMINAR
MIDlet Anatomy ACS SEMINAR
Device Management • Local Device • getAddress() • getDiscoveryAgent() • SetDiscoverable() • Remote Device • RemoteDevice getRemoteDevice (javax.microedition.io.Connection) ACS SEMINAR
Discovery ACS SEMINAR
Service registration • To be performed by a server: • Create describing record • Add it to SDDB • Manage the Database by updating ACS SEMINAR
COMMUNICATION(I) • SPP is an interface to RFCOMM: • Stream-based interface • 2 devices: One session at a time • Up to 60 logical channels emulated • Up to 30 RFCOMM services ACS SEMINAR
COMMUNICATION (II) • CLIENT • Initiate discovery • Get the URL • Open a connection • Sending and receiving data • SERVER • Build up a URL and place is SDDB • Accepting connections from the client • Sending and Receiving data ACS SEMINAR
CONCLUSIONS JSR 82 • Easy to develope WL application • Making use of Java • Standard Way • Benefit from the Bluetooth Market ACS SEMINAR
THAT WAS ALL!! THANK U VERY MUCH!! ACS SEMINAR