CH9. HOST CONTROLLER INTERFACE AND COMMANDS CH10. LOGICAL LINK AND ADAPTATION PROTOCOL(L2CAP) RTLAB YuJin Park.

Slides:



Advertisements
Similar presentations
OSI Model OSI MODEL.
Advertisements

EEC-484/584 Computer Networks Lecture 12 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Sattam Al-Sahli – Emad Al-Hemyari –
Lecture 2 Protocol Layers CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
EEC-484/584 Computer Networks Lecture 12 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 12 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Mohamed Mokdad Ecole d’Ingénieurs de Bienne
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Semester Copyright USM EEE442 Computer Networks Introduction: Protocols En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK)
EE 4272Spring, 2003 Protocols & Architecture A Protocol Architecture is the layered structure of hardware & software that supports the exchange of data.
1 CCNA 2 v3.1 Module 8. 2 TCP/IP Suite Error and Control Messages CCNA 2 Module 8.
Network Architectures Week 3 – OSI and The Internet.
® The Bluetooth Architecture APIs, L2CAP, Link Management, Baseband, and the Radio.
2011 Embedded Systems Software Training Center BluRapport SDK.
BLUETOOTH. Introduction Bluetooth technology discussed here aims at so-called ad- hoc piconets, which are local area networks with a very limited coverage.
Distributed systems – Part 2  Bluetooth – 2 nd set of slides Anila Mjeda.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
Presentation on Osi & TCP/IP MODEL
Page 19/13/2015 Chapter 8 Some conditions that must be met for host to host communication over an internetwork: a default gateway must be properly configured.
Bluetooth: Introduction
3. Bluetooth usage models 4. L2CAP process 5. Example 6. Terminology
SpaceWire-RT Steve Parkes, Albert Ferrer-Florit
I-D: draft-rahman-mipshop-mih-transport-01.txt Transport of Media Independent Handover Messages Over IP 67 th IETF Annual Meeting MIPSHOP Working Group.
DIUF, Seminar in Telecommunications, M. Hayoz The Bluetooth TM wireless technology A brief overview.
Bluetooth Techniques ECE 591. Overview  Universal short-range wireless capability  Uses 2.4-GHz band  Available globally for unlicensed users  Devices.
Layer Architecture Layer architecture simplifies the network design. It is easy to debug network applications in a layered architecture network. The network.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
Data and Computer Communications Chapter 11 – Asynchronous Transfer Mode.
1 RFC Transmission of IPv6 Packets over IEEE Networks Speaker: Li-Wen Chen Date:
3.2 Software Fundamentals. A protocol is a formal description of digital message formats and the rules for exchanging those messages in or between computing.
Lectured By: Vivek Dimri Asst Professor CSE Deptt. SET.
Cisco 2 - Routers Perrine. J Page 112/19/2015 Chapter 8 TCP/IP Error Message Some of the conditions that must be met in order for host to host communication.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Protocols and Architecture Slide 1 Use of Standard Protocols.
Data Link Layer and Ethernet COM211 Communications and Networks CDA College Theodoros Christophides
Bluetooth In 1994, the L. M. Ericsson company became interested in connecting its mobile phones to other devices without cables. A SIG (Special Interest.
Mapping Salutation to Bluetooth 4 Overview 4 Bluetooth Summary 4 Salutation Architecture Summary 4 Mapping Bluetooth SDP to Salutation APIs 4 Mapping Bluetooth.
Doc.: IEEE / Submission Sept 2003Sept 03 Tom Siep, TMS ConsultingSlide 1 Project: IEEE P Working Group for Wireless Personal Area.
OSI ARCHITECTURE IN OSI, ACTUAL INFORMATION IS OVERHEADED BY PROTOCOL LAYERS IF ALL SEVEN LAYERS ARE OVERHEADED, THEN AS LITTLE AS 15% OF THE TRANSMITTED.
Bluetooth.
Week #8 OBJECTIVES Chapter #5. CHAPTER 5 Making Networks Work Two Networking Models –OSI OPEN SYSTEMS INTERCONNECTION PROPOSED BY ISO –INTERNATIONAL STANDARDS.
Development of a Bluetooth based web camera module.
BTstack Youngho Oh. Table of contents  BTstack features  BTstack Architecture  Host Controller Interface(HCI)  Bluetooth Stack  BLE event task 
KyungPook National University CSOS Hye Youn Kang.
3. END-TO-END PROTOCOLS (PART 1) Rocky K. C. Chang Department of Computing The Hong Kong Polytechnic University 22 March
Attribute Protocol(ATT)
Computer Engineering and Networks, College of Engineering, Majmaah University Protocols OSI reference MODEL TCp /ip model Mohammed Saleem Bhat
BTSTACK RTLAB YuJin Park. Bluetooth Protocol Stack Protocol Stack Applications TCS Binary RFCOMM Service Discovery Protocol (SDP) Logical Link Control.
OSI Model OSI MODEL. Communication Architecture Strategy for connecting host computers and other communicating equipment. Defines necessary elements for.
OSI Model OSI MODEL.
Tutorial on Bluetooth Low Energy(BLE)
Bluetooth 4.0: Low Energy.
SSN College of Engineering
Network Architecture Layered Architectures Network Protocols
Bluetooth Low Energy Overview.
Lab 7 – CSMA/CD (Data Link Layer Layer)
Channel Control Interim substates for adding new slaves
5. End-to-end protocols (part 1)
Lecturer, Department of Computer Application
Understand the OSI Model Part 2
DEPARTMENT OF COMPUTER SCIENCE
A Wireless LAN technologies IEEE
Rivier College CS575: Advanced LANs Chapter 6: Logical Link Control
Chapter 3: Open Systems Interconnection (OSI) Model
UNIT I – FRAME RELAY AND ISDN
BLUETOOTH Personal Area Networking [ PAN ] over Bluetooth
Layering & protocol stacks Johan Lukkien
OSI Model OSI MODEL.
Chapter 2. Protocols and Architecture
Presentation transcript:

CH9. HOST CONTROLLER INTERFACE AND COMMANDS CH10. LOGICAL LINK AND ADAPTATION PROTOCOL(L2CAP) RTLAB YuJin Park

CH9. HOST CONTROLLER INTERFACE AND COMMANDS

Host Controller Interface and Commands Standard method of communication between the upper and lower layers LE reuses the specification of the HCI layer for BR/EDR and extends it. HCI Packet Types(LE) HCI Command Packets HCI Event Packet(LE Meta Event = 0x3E) HCI ACL Data Packet GATT Based Profiles Generic Access Profile Generic Attribute Profile(GATT) Attribute Protocol(ATT) Security Manager (SM) Link Layer Physical Layer L2CAP Host Controller Interface (HCI) Upper Layer Lower Layer Event Code Parameter Total Length Event Parameter 0 Event Parameter 1 Event Parameter … Event Code (0x3E) Parameter Total Length Sub Event Code Sub Event Parameter 0 Event Parameter … Format of BR/EDR Event Packet Types Format of LE Meta Event Packet Types

HCI Commands and Events LE Command : HCI_LE prefix. HCI Commands and Events Device Setup Controller Flow control Host flow control Controller Information Remote Configuration Device Discovery Connection Setup Connection State Physical Links Link Information Authentication and Encryption Testing

Device Setup & Flow control Device Setup HCI_Reset : reset the controller(physical layer) and Link layer. Controller Flow Control HCI_Read_Buffer_Size, HCI_LE_Read_Buffer_Size Number_Of_Completed_Packets_Event Host Flow Control Host_Buffer_Size_Command Host_Number_Of_Completed_Packets_Command Data_Buffer_Overflow_Event White_List HCI_LE_Read_White_List_Size HCI_LE_Clear_White_List HCI_LE_Add_Device_To_White_List HCI_LE_Remove_Deivce_From_White_List HostController Initialize count of buffers to Number of buffers If count > 0 Decrement count by number of packets sent to the controller Increment count by number of packets reported as processed by the controller Packets Transmitted on LE-U logical link HCI LE Read Buffer Size HCI Read Buffer Size LE ACL Buffer Size, Number of LE Buffers HCI ACL Data Packet Number of Completed Packet Event Separate Buffers Shared Buffers

Controller & Remote Information Controller Information HCI_Read_Local_Version_Information HCI_Read_Local_Supported_Command HCI_Read_Support_Features_Command HCI_LE_Read_Support_Features_Command HCI_LE_Read_Supported_States Remote Information HCI_LE_Read_Remote_Used_Features(Encryption Only) LE_Read_Remote_Used_Feature_Complete

Controller configuration Controller Configuration Commands HCI_LE_Set_Advertise_Enable HCI_LE_Set_Advertising_Data HCI_LE_Set_Advertising_Parameters HCI_LE_Set_Random_Address HCI_LE_Set_Scan_Response_Data HCI_Read_LE_Host_Support HCI_Write_LE_Host_Support

Device Discovery and Connection Device Discovery HCI_LE_Set_Scan_Enable HCI_LE_Set_Scan_Parameters HCI_LE_Advertising_Report_Event Connection Setup HCI_LE_Create_Connection LE_Connection_Complete_Event HCI_Disconnet Disconnetion_Complete_Event Connection State HCI_LE_Connection_Update LE_Connection_Update_Complete_Event

Physical Link & Link Information Physical Link HCI_LE_Set_Host_Chnnel_Classification(Channel map) Link Information HCI_Read_Transmit_Power_Level HCI_Read_RSSI HCI_LE_Read_Advertising_Channel_Tx_Power HCI_LE_Read_Channel_Map

Authentication and Encryption HCI_LE_Encrypt HCI_LE_Long_Term_Key_Requested_Event HCI_LE_Long_Term_Key_Request_Reply HCI_LE_Long_Term_Key_Request_Negative_Reply HCI_LE_Rand HCI_LE_start_Encryption Ecryption_Change_Event Encryption_Key_Refresh_Complete_Event

Testing HCI_LE_Receiver_Test HCI_LE_Transmitter_Test HCI_LE_Test_End

Usage of White Lists HCI_LE_Set_Advertising_Parameters HCI_LE_Set_Scan_Parameters HCI_LE_Create_Connction

Practical Sequence Diagrams Typical sequence for passive scanning HostController Set Scan Parameters HCI_LE_Set_Scan_ Parameters = passive scanning ADV_IND HostController Enable_Scanning LE_Set_Scan_Enable Link Layer State : Scanning Set Advertising Parameters HCI_LE_Set_Advertising_ Parameters = Connectable_Undirected Set Advertising Data HCI_LE_Set_Advertising_ Data Enable Advertising HCI_LE_Set_Advertise_En able = 1 LL State : Advertising ADV_IND Advertising Report LE_Advertising_Repor t_Event ADV_IND Typical sequence for active scanning HostController Set Scan Parameters HCI_LE_Set_Scan_ Parameters = active scanning ADV_IND HostController Enable_Scanning LE_Set_Scan_Enable Link Layer State : Scanning Set Advertising Parameters HCI_LE_Set_Advertising_ Parameters = Connectable_Undirected Set Advertising Data HCI_LE_Set_Advertising_ Data Enable Advertising HCI_LE_Set_Advertise_En able = 1 LL State : Advertising SCAN_REQ Advertising Report LE_Advertising_Repor t_Event SCAN_RSP

CH10. LOGICAL LINK AND ADAPTATION PROTOCOL(L2CAP)

Logical Link control and Adaptation Protocol Interface between the higher Layer protocols and the lower layers(Link/Physical Layer) LE reuses the L2CAP functionality of BR/EDR GATT Based Profiles Generic Access Profile Generic Attribute Profile(GATT) Attribute Protocol(ATT) Security Manager (SM) Link Layer Physical Layer L2CAP Host Controller Interface (HCI) Upper Layer Lower Layer

PDU and SDU Protocol Data Unit Service Data Unit Maximum Transmission Unit(MTU) Maximum size of SDU LE minimum MTU : 23 octets Attribute Protocol L2CAP SDU L2CAP PDU Maximum size depends on MTU

Basic Assumptions The Packet delivered in the correct sequence. Only one LE-U logical link exists between the two devices. The controllers provide a degree of reliability by including error detection, and retransmission mechanisms. The controller provide flow control mechanisms for data going over the air as well as data going over the HCI transport layer

L2CAP Features Fixed Channel Identifiers Attribute Protocol (CID : 0x0004) LE L2CAP Signaling Channel (CID : 0x0005) Security Manager Protocol (CID : 0x0006) Fragmentation and Deflagmentation of data Multiplexing and Demultiplexing of various channels over a shared logical link(LE-U)

Data Packets & L2CAP Parameters MTU : 23 octets Flush Timeout : 0xFFFF (Infinite) Quality of Service : Best Effort Mode : Basic mode Length (2 octets) Channel ID (2 octets) Information Payload LE L2CAP Data Packet Format

L2CAP Signaling Command Reject (code : 0x01) Connection Parameter Update Request (code : 0x12) Interval Min Interval Max Slave Latency Timeout Multiplier (Connection Supervision Timeout = Timeout Multipler * 10 ms) Connection Parameter Update Response (code : 0x13)

HCI Connection Sequence

L2CAP Connection Sequence(Classic)

END.