SCO payload types payload 30 HV 1 audio















- Slides: 15
SCO payload types payload (30) HV 1 audio (10) HV 2 audio (20) HV 3 DV FEC (20) FEC (10) audio (30) audio (10) header (1) payload (0 -9) 2/3 FEC CRC (2) (bytes) Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ MC SS 05 7. 1
ACL Payload types payload (0 -343) header (1/2) DM 1 header (1) DH 1 header (1) DM 3 header (2) DH 3 header (2) DM 5 header (2) DH 5 header (2) AUX 1 header (1) payload (0 -339) payload (0 -17) 2/3 FEC payload (0 -27) payload (0 -121) CRC (2) (bytes) CRC (2) 2/3 FEC CRC (2) payload (0 -183) CRC (2) payload (0 -224) 2/3 FEC payload (0 -339) CRC (2) payload (0 -29) Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ MC SS 05 7. 2
Baseband data rates ACL 1 slot 3 slot 5 slot SCO Type Payload User Header Payload [byte] FEC CRC Symmetric Asymmetric max. Rate [kbit/s] Forward Reverse DM 1 1 0 -17 2/3 yes 108. 8 DH 1 1 0 -27 no yes 172. 8 DM 3 2 0 -121 2/3 yes 258. 1 387. 2 54. 4 DH 3 2 0 -183 no yes 390. 4 585. 6 86. 4 DM 5 2 0 -224 2/3 yes 286. 7 477. 8 36. 3 DH 5 2 0 -339 no yes 433. 9 723. 2 57. 6 AUX 1 1 0 -29 no no 185. 6 HV 1 na 10 1/3 no 64. 0 HV 2 na 20 2/3 no 64. 0 HV 3 na 30 no no 64. 0 DV 1 D 10+(0 -9) D 2/3 D yes D 64. 0+57. 6 D Data Medium/High rate, High-quality Voice, Data and Voice Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ MC SS 05 7. 3
Baseband link types Polling-based TDD packet transmission q 625µs slots, master polls slaves SCO (Synchronous Connection Oriented) – Voice q Periodic single slot packet assignment, 64 kbit/s full-duplex, point-to-point ACL (Asynchronous Connection. Less) – Data q MASTER SLAVE 1 SLAVE 2 Variable packet size (1, 3, 5 slots), asymmetric bandwidth, point-to-multipoint SCO f 0 ACL f 4 SCO f 6 f 1 ACL f 8 f 7 SCO f 12 f 9 ACL f 14 f 13 ACL f 20 f 19 f 17 f 5 Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ SCO f 18 MC SS 05 f 21 7. 4
Robustness Slow frequency hopping with hopping patterns determined by a master Protection from interference on certain frequencies q Separation from other piconets (FH-CDMA) q Retransmission q Error in payload (not header!) ACL only, very fast Forward Error Correction q MASTER SLAVE 1 NAK SCO and ACL A C B C D F ACK H E SLAVE 2 Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ G MC SS 05 G 7. 5
Baseband states of a Bluetooth device unconnected standby detach inquiry transmit AMA park PMA page connected AMA hold AMA Standby: do nothing Inquire: search for other devices Page: connect to a specific device Connected: participate in a piconet sniff AMA connecting active low power Park: release AMA, get PMA Sniff: listen periodically, not each slot Hold: stop ACL, SCO still possible, possibly participate in another piconet Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ MC SS 05 7. 6
Example: Power consumption/CSR Blue. Core 2 Typical Average Current Consumption (1) VDD=1. 8 V Temperature = 20°C Mode SCO connection HV 3 (1 s interval Sniff Mode) (Slave) 26. 0 m. A SCO connection HV 3 (1 s interval Sniff Mode) (Master) 26. 0 m. A SCO connection HV 1 (Slave) 53. 0 m. A SCO connection HV 1 (Master) 53. 0 m. A ACL data transfer 115. 2 kbps UART (Master) 15. 5 m. A ACL data transfer 720 kbps USB (Slave) 53. 0 m. A ACL data transfer 720 kbps USB (Master) 53. 0 m. A ACL connection, Sniff Mode 40 ms interval, 38. 4 kbps UART 4. 0 m. A ACL connection, Sniff Mode 1. 28 s interval, 38. 4 kbps UART 0. 5 m. A Parked Slave, 1. 28 s beacon interval, 38. 4 kbps UART 0. 6 m. A Standby Mode (Connected to host, no RF activity) 47. 0 µA Deep Sleep Mode(2) 20. 0 µA Notes: (1) Current consumption is the sum of both BC 212015 A and the flash. (2) Current consumption is for the BC 212015 A device only. (More: www. csr. com ) Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ MC SS 05 7. 7
Example: Bluetooth/USB adapter (2002: 50€) Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ MC SS 05 7. 8
L 2 CAP - Logical Link Control and Adaptation Protocol Simple data link protocol on top of baseband Connection oriented, connectionless, and signalling channels Protocol multiplexing q RFCOMM, SDP, telephony control Segmentation & reassembly q Up to 64 kbyte user data, 16 bit CRC used from baseband Qo. S flow specification per channel q Follows RFC 1363, specifies delay, jitter, bursts, bandwidth Group abstraction q Create/close group, add/remove member Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ MC SS 05 7. 9
L 2 CAP logical channels Master Slave L 2 CAP 2 d 1 1 d d 1 baseband signalling L 2 CAP 1 baseband ACL baseband connectionless Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ connection-oriented MC SS 05 7. 10 d d 2
L 2 CAP packet formats Connectionless PDU 2 2 length CID=2 2 0 -65533 PSM payload Connection-oriented PDU 2 2 length bytes 0 -65535 CID bytes payload Signalling command PDU 2 2 length CID=1 bytes One or more commands 1 1 2 0 code ID length data Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ MC SS 05 7. 11
Security User input (initialization) PIN (1 -16 byte) Pairing PIN (1 -16 byte) E 2 Authentication key generation (possibly permanent storage) E 2 link key (128 bit) Authentication link key (128 bit) E 3 Encryption key generation (temporary storage) E 3 encryption key (128 bit) Encryption encryption key (128 bit) Keystream generator payload key Ciphering payload key Cipher data Data Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ MC SS 05 7. 12
SDP – Service Discovery Protocol Inquiry/response protocol for discovering services q q q Searching for and browsing services in radio proximity Adapted to the highly dynamic environment Can be complemented by others like SLP, Jini, Salutation, … Defines discovery only, not the usage of services Caching of discovered services Gradual discovery Service record format Information about services provided by attributes q Attributes are composed of an 16 bit ID (name) and a value q values may be derived from 128 bit Universally Unique Identifiers (UUID) q Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ MC SS 05 7. 13
Additional protocols to support legacy protocols/apps. RFCOMM Emulation of a serial port (supports a large base of legacy applications) q Allows multiple ports over a single physical channel q Telephony Control Protocol Specification (TCS) Call control (setup, release) q Group management q OBEX q Exchange of objects, Ir. DA replacement WAP q Interacting with applications on cellular phones Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ MC SS 05 7. 14
Profiles Represent default solutions for a certain usage model Vertical slice through the protocol stack q Basis for interoperability Applications Protocols q Generic Access Profile Service Discovery Application Profile Cordless Telephony Profile Intercom Profile Serial Port Profile Additional Profiles Headset Profile Advanced Audio Distribution Dial-up Networking Profile PAN Fax Profile Audio Video Remote Control LAN Access Profile Basic Printing Generic Object Exchange Profile Basic Imaging Object Push Profile Extended Service Discovery File Transfer Profile Generic Audio Video Distribution Synchronization Profile Hands Free Hardcopy Cable Replacement Prof. Dr. -Ing. Jochen Schiller, http: //www. jochenschiller. de/ MC SS 05 7. 15 Profiles