Documente Academic
Documente Profesional
Documente Cultură
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Learn
Basics of Bluetooth Wireless technology About possibilities of Bluetooth and areas of application Practical knowledge about Bluetooth networking Developer opportunities for Bluetooth wireless technology
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Agenda
Overview Bluetooth networking details Profiles APIs and developers tools Q&A
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Agenda
Overview Bluetooth networking details Profiles APIs and developers tools Q&A
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Fundamental characteristics
Open and royalty free specification Global usage free of charge Capability to handle voice and data Low power and suitable for portable devices
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Higher level specs and profiles are released independently from the core V1.0b and 1.1
Basic architecture, radio spec, basic protocols
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Use Cases
Cable replacement Phone headsets Audio streaming (stereo headsets) Portable keyboards In-car (Advanced hands free) Content exchange: pictures, videos, sound, applications Wireless printing Personal Information Management (PIM) data synchronization More than just a cable replacement: Personal Area Networking
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Location-based services
Advertising in shopping malls, tourist guides, providing content at hot-spots Example:
Nokia Local Marketing Solution (www.nokia.com/localmarketing)
Social applications
Finding friends, exchanging flyers, personal page on a phone Examples:
Nokia Sensor (download at www.nokia.com/sensor) 6th sense (www.sixsense.com)
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Enterprise
Access to email and calendar, synchronization Example:
Nokia Local Business Connectivity Solution (www.nokia.com/localconnectivity)
Identification
Storing e-tickets in a phone, payments, etc
10
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Agenda
Overview Bluetooth networking details Profiles APIs and developers tools Q&A
11
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Bluetooth Protocols
Application layer
WAP application
IrDA application
Telephony applications
Presentation layer Session layer Transport layer Network layer HCI Data link layer SDP
TCP IP
UDP
OBEX
AT com
PPP
RFCOMM
Physical layer
12
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
RFCOMM
Stream-based, reliable
13
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Inquiry
Service discovery
Connection
Communication
14
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Inquiry
A
D C
Service Discovery
Service discovery
A
D C
16
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
ServiceRecordHandle
ServiceClassIDList
ServiceRecordHandle
ServiceClassIDList
17
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
18
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Page
A
D C
slave
D C
slave
slave
Page
slave
B D C
master slave
21
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
slave
D C
master slave
22
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Switch
master
A
slave
slave
D C
master slave
23
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
slave
D C
slave slave
24
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Connection Issues
In real life connecting is not easy
Bluetooth state have to be considered
Running inquiry Running service discovery Active connections Device role in connection Point-to-multipoint connections support
25
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Basic Rule
Form piconets, avoid scatternets
One master 1 to 7 active slaves
Why
Very often scatternets are not supported Slower data transfer rate
26
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
BCD
A
Page
28
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Master-Slave Switch
Not always supported
Sometimes it is possible to check support using APIs
Rely on master-slave switch only if you know what you are doing
Knowledge about the devices and its capabilities E.g. underlying platforms may have mechanism for master-slave roles configuration automatically (if master=false)
29
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Bluetooth Security
Authentication = proving that the other device is the one it claims to be
Ad hoc nature, no third party authorities Authentication depends on a shared secret (PIN code) First authentication involves PIN codes (aka pairing, bonding)
Encryption
Based on link key created during authentication Key maximum size is 128 bit
Additional: Authorization
Permission to access a service
30
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Agenda
Overview Bluetooth networking details Profiles APIs and developers tools Q&A
31
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Telephony applications
Presentation layer Session layer Transport layer Network layer HCI Data link layer SDP
TCP IP
UDP
OBEX
AT com
PPP
RFCOMM
Physical layer
33
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Baseband
Application Profiles
Dial-Up Networking Profile (DUNP) Fax Profile (FAX) Hands-Free Profile (HFP)
DT GW
34
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Baseband
Application Profiles
Object Push Profile (OPP) File Transfer Profile (FTP) Synchronization Profile (Sync) Basic Imaging Profile (BIP) Basic Printing Profile (BPP)
Sender Push client Printer
pull
Push server
35
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
(Applications/ Higher layers) TCP UDP IP BNEP SDP LMP L2CAP Baseband
PAN U
PAN U PAN U GN
36
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
L2CAP
SNK
SNK
Baseband
SRC
SNK TG CT CT
TG
37
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
HID
Host
38
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Service discovery
Service Discovery Application Profile (SDAP)
Cordless telephony
Cordless Telephony Profile (CTP) Intercom Profile (IP)
39
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Agenda
Overview Bluetooth networking details Profiles APIs and developers tools Q&A
40
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Mobile
Symbian OS (www.symbian.com/developer/techlib/sdl.html) Nokia Series 60, Series 80 (forum.nokia.com -> Technologies -> Bluetooth) Palm Inc SDK and HDK Windows Mobile and Windows CE
41
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
42
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
43
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Communication:
L2CAP, Serial Port Profile (RFCOMM)
Device management:
local and remote device
javax.obex
Generic Object Exchange Profile (GOEP) Optional Supported on upcoming devices
N90, N91, N70, 6280, 6265, 6265i, 6111, 6270
44
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Inquiry
public void inquiryCompleted(int discType) { // optional: ask user to select devices out of list myServiceDiscovery(); }
45
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
46
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
A B C D
A
public void myConnect() {
Connection c = Connector.open(btspp://0102030406:5); }
47
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
48
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Development suites
Nokia Developer's Suite 3.0 for J2ME Nokia Developer's Suite for Symbian OS
49
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
50
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
51
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Interesting collaboration
Bluetooth and Ultra Wide Band (UWB) UWB
Short-range about 10m Using wide bandwidth (3.1GHz 10GHz) High-speed data (up to 480Mbs)
52
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Summary
We learned..
Basics of Bluetooth Wireless technology Practical tips for Bluetooth networking About Bluetooth APIs and development tools
53
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
References 1/2
Bluetooth SIG website: www.bluetooth.org Yuan, Michael, Juntao; Sharp, KevinDeveloping Scalable Series 40 Applications, Nokia Mobile Developer Series, Addison-Wesley, 2005 Kumar, C Bala; Kline, Paul J.; Thompson, Timothy J.Bluetooth Application Programming with the Java APIs, Morgan Kaufman, 2004 Hopkins, Bruce; Antony, RanjithBluetooth for Java, Apress, 2003 Miller, Brent A.; Bisdikian, Chatschik Bluetooth Revealed, Prentice Hall, 2000 Baraev, Ilya Java APIs for Bluetooth Wireless Technology, Lappeenranta : Lappeenrannan teknillinen korkeakoulu, 2002 Baraev, Ilya; Mittal Nitin: - Mobile Bluetooth Networking With JSR 82: Practical recommendations and advanced practices, JavaOne: TS-3234(USA, 2005)
54
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
References 2/2
Java Community Process website (www.jcp.org) Java APIs for Bluetooth Wireless technology (JSR-82) www.jcp.org/en/jsr/detail?id=82 Bluetooth support on Symbian platforms: www.symbian.com/technology/product_descriptions.html Symbian Developers Library: www.symbian.com/developer/techlib/sdl.html Forum Nokia: forum.nokia.com
55
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
Q&A
56
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB
57
2005 Nokia
Bluetooth.ppt / 2005-07-22 / IB