1. Trang chủ
  2. » Công Nghệ Thông Tin

hướng dẫn lập trình Bluetooth 2001

62 150 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 62
Dung lượng 2,84 MB

Nội dung

Dominique Chomienne & Michel Eftimakis NewLogic Bluetooth is a trademark owned by the Bluetooth SIG, and licenced to NewLogic Page Tutorial Agenda • Bluetooth Marketing view • Bluetooth network topology • Bluetooth protocol • RF • Baseband • LC, LM • HCI • L2CAP • Higher layers • Bluetooth implementation • Bluetooth “live” demo !!! Tutorial Page Marketing View Marketing slides ahead Tutorial Page The Last Ten Meters Page Systems Landline Cable Replacement Data/Voice Access Points Personal Ad-hoc Networks Page Target products Intelligent Intelligent Devices Devices • PCs • Cellular Phones • PDAs Data Data Peripherals Peripherals • Mice • Keyboards • Joysticks • Cameras • Digital Pens • Printers • LAN access points Audio Audio Peripherals Peripherals • Headsets • Speakers • Stereo Receiver Embedded Embedded Applications Applications • Cars: Power lock controls • Grocery store updates • Closed Systems • Industrial systems • MIDI musical instruments Page Usage Models • • • • • • • • • • • Computer to Computer File Transfer Dialup Networking Synchronization in Phone Ultimate Headset Computer Speakerphone Cordless Computer Instant Postcard Hidden Computing Conference Table … Page Characteristics • Unlicensed 2.4GHz radio band • ISM (industrial, scientific,medical) band - Available worldwide • Also used by Microwave ovens, 802.11, HomeRF… • Gross data rate of Mbit/s • Basic 10m range extended to 100m with amplifiers • TDMA - TDD - Frequency hopping • Mixed voice / data paths • Encryption • Low power • Low cost • Extremely small • Ubiquitous radio link Page Market Projections 6000 5000 4000 3000 2000 1000 2001E 2002E Total Bluetooth Chipsets (in millions) Average Price Per Chipset (in millions of $) Bluetooth Chip Market Revenue (in millions of $) 2003E 2004E 2005E 2006E 2001E 2002E 2003E 2004E 2005E 2006E 48,1 207,7 492,1 921,1 1477 2216 8,50 5,10 4,08 3,26 2,68 2,28 409 1059 2008 3006 3953 5042 Source: Merrill Lynch Page Who is Bluetooth? • Harald Blaatand “Bluetooth” II • King of Denmark 940-981 • Son of Gorm the Old (King of Denmark) and Thyra Danebod (daughter of King Ethelred of England) • This is one of two Runic stones erected in his capital city of Jelling (central Jutland) • This is the front of the stone depicting the chivalry of Harald • Harald controlled Denmark and Norway • Harald thinks mobile PCs and cellular phones should seamlessly communicate Page 10 L2CAP - • L2CAP Packet Format Length DCID Payload (16 bits) (16 bits) (0-65535 bytes) • Length • Specifies the length of the payload in bytes • Destination Channel ID (DCID) • Identifies the channel to which the packet will be delivered • Payload • Data received from and sent to the network layer • Maximum transmission unit (MTU) limits payload sizes Page 47 L2CAP - • L2CAP Channel Establishment LinkManager ManagerConnection Connection Link L2CAP_CONNECTION_REQUEST L2CAP_CONNECTION_REQUEST L2CAP_CONFIGURATION_REQUEST L2CAP_CONFIGURATION_REQUEST L2CAP_CONFIGURATION CONFIGURATION_RESPONSE _RESPONSE L2CAP_ Device Device BB Device Device AA L2CAP_CONNECTION_RESPONSE L2CAP_CONNECTION_RESPONSE L2CAP_CONFIGURATION_REQUEST L2CAP_CONFIGURATION_REQUEST L2CAP_CONFIGURATION CONFIGURATION_RESPONSE _RESPONSE L2CAP_ Traffic Traffic Page 48 L2CAP - • Segmentation and Reassembly (SAR) • Use logical channel information from Baseband • LCH=10 implies start of an L2CAP packet • LCH=01 implies continuation of L2CAP packet L2CAP packet L2CAP Header L2CAP Payload Baseband packet Access Code (72) Header (54) Payload Header Payload Page 49 L2CAP - • SAR Example Source Destination Datagram Datagram L2CAP Packet L2CAP Packet f1 DH5 f2 DH1 f3 DH5 f4 DH1 f1 DH5 f2 DH1 DH5 DH1 Page 50 SDP - Service Discovery Protocol Data Audio Co ntr ol Applications TCS SDP RFCOMM L2CAP Link Manager Baseband RF LMP LMP Page 51 SDP - • Protocol Architecture • Connectionless - Client/Server • SDP defines How services are represented in the DB • Server database describes all the services available on a device (Service records) • SDP defines How to access to the server DB information Page 52 SDP - • SDP Client/Server Model • Transaction identifier used to label each SDP transaction Client Application SDP Client Server Application SDPRequest Request SDP SDPResponse Response SDP SDP Server • Protocol Data Unit Format PDU id (1 bytes) Transaction Id (1 bytes) Parameter Length (2 bytes) Parameter 1-N (Parameter Length bytes) Page 53 SDP - • Service Discovery • Searching for Services • What are the Services provided by the remote device ? • • • • IrDA-like printer Headset AudioGateway … • Browsing for Services • What are the Service Attributes ? • e.g. : ( L2CAP, PSM=RFCOMM ), ( RFCOMM, CN=1 ), ( PostscriptStream) • Accessing to the Services (not in the scope of SDP) Page 54 Applications - CTP Voice Data APPLICATIONS HP TCP/IP SPP OBEX PPP Data TCS SDP RFCOMM Data Co l rt o n L2CAP Audio Link Manager Baseband RF Page 55 Applications - • • • • • CTP HP SPP PPP OBEX : Cordless Telephony Profile : Headset Profile : Serial Port Profile : Point To Point Protocol : Object Exchange Protocol Page 56 Implementation Tutorial Page 57 Implementation choices • Trade-offs (Flexibility, cost, performance, size, power consumption) Bluetooth module Proc BB Bluetooth single chip RF BB Proc Application ASIC Application ASIC ROM/ Flash RF Bluetooth IP + Bluetooth RF Application ASIC ROM/ Flash BB RF ROM/ Flash Bluetooth IP + RF IP Application ASIC RF BB ROM/ Flash Page 58 Integration example • BOOST integrated approach • Bluetooth radio • Bluetooth baseband core • Bluetooth software stack Radio Core Processor Software ROM / Flash RAM ASIC / ASSP Application Logic Page 59 Live Demo Tutorial Page 60 References Tutorial Page 61 References • http://www.bluetooth.com - Bluetooth specifications online • http://www.newlogic.com • Books: • Bluetooth: Connect without Cables - Jennifer Bray & Charles Sturman • Bluetooth Revealed: The Insider's Guide to an Open Specification for Global Wireless Communications - Brent A. Miller,Chatschik Bisdikian Page 62 [...]... master • Frequency hopping scheme • Access code • Timing synchronization • Master determines the bit rate allocated to each slave • Slaves do not synchronize to the master • Calculate offsets to master’s Bluetooth clock • Monitor timing drift Page 13 Piconet - 3 • Only one master • Dynamically selected • Roles can be switched • Up to 7 active slaves • Active piconet • Up to 255 parked slaves • Can be reactivated... 2 • Maximum output power: • Minimum output power: • Class 3 • Maximum output power: • RSSI-based power control Page 22 Baseband - 1 • TDMA – Time division multiple access • TDD – Time division duplex Bluetooth frame Packet f(2k) master f(2k+1) f(2k+2) t slave t 625 µs Page 23 Baseband - 2 • Multi-slot Packets 625 µs f(k) f(k) f(k) f(k+1) f(k+2) f(k+3) f(k+4) f(k+5) f(k+3) f(k+4) f(k+5) f(k+5) Page... - (15,10) shortened Hamming code • ARQ (Automatic Repeat Request) • Unnumbered • CRC (Cyclic Redundancy Check) • HEC (Header Error Check) • Payload CRC • Encryption • Whitening Page 28 Baseband - 7 • Bluetooth native clock • 3.2 kHz (312.5 µs period) - 25 ppm • 28-bit free running counter (~ 1 day period) • Never resynchronized • Estimated clock for paging slave 1 • Piconet clock • Native clock of . Eftimakis NewLogic NewLogicNewLogic NewLogic Bluetooth is a trademark owned by the Bluetooth SIG, and licenced to NewLogic Page 2 Tutorial Agenda • Bluetooth Marketing view • Bluetooth network topology • Bluetooth protocol •. Ubiquitous radio link Page 9 Market Projections 2001E 2002E 2003E 2004E 2005E 2006E 0 1000 2000 3000 4000 5000 6000 2001E 2002E 2003E 2004E 2005E 2006E Total Bluetooth Chipsets (in millions) 48,1 207,7. 5,10 4,08 3,26 2,68 2,28 Bluetooth Chip Market Revenue (in millions of $) 409 1059 2008 3006 3953 5042 Source: Merrill Lynch Page 10 Who is Bluetooth? • Harald Blaatand Bluetooth II • King of

Ngày đăng: 14/09/2015, 10:30

TỪ KHÓA LIÊN QUAN

w