Lessons Learned from Implementing a Wi-Fi and BT Stack

Similar documents
Implementing A Bluetooth Stack on UEFI

Computer Networks II Advanced Features (T )

PreBoot Provisioning Solutions with UEFI

[A SHORT REPORT ON BLUETOOTH TECHNOLOGY]

Guide to Wireless Communications, 3 rd Edition. Objectives

Chapter 10: Wireless LAN & VLANs

Introduction to Wireless Networking ECE 401WN Spring 2009

UNIT 5 P.M.Arun Kumar, Assistant Professor, Department of IT, Sri Krishna College of Engineering and Technology, Coimbatore.

Bluetooth: Short-range Wireless Communication

Wireless Terms. Uses a Chipping Sequence to Provide Reliable Higher Speed Data Communications Than FHSS

Embedded Systems. 8. Communication

Bluetooth. Bluetooth Radio

Learn How to Configure EnGenius Wi-Fi Products for Popular Applications

NDSU Wireless. Bruce Curtis David Dahl Valerie Nordsletten

Guide to Networking Essentials, 6 th Edition. Chapter 7: Network Hardware in Depth

Bluetooth. Quote of the Day. "I don't have to be careful, I've got a gun. -Homer Simpson. Stephen Carter March 19, 2002

Ethernet. Lecture 6. Outline. Ethernet - Physical Properties. Ethernet - Physical Properties. Ethernet

CS4/MSc Computer Networking. Lecture 13: Personal Area Networks Bluetooth

Seminar: Mobile Systems. Krzysztof Dabkowski Supervisor: Fabio Hecht

Extending or Interconnecting LANS. Physical LAN segment. Virtual LAN. Forwarding Algorithm 11/9/15. segments. VLAN2, Port3. VLAN1, Port1.

Amarjeet Singh. February 7, 2012

Lecture 6. Reminder: Homework 2, Programming Project 2 due on Thursday. Questions? Tuesday, September 13 CS 475 Networks - Lecture 6 1

Topic 2b Wireless MAC. Chapter 7. Wireless and Mobile Networks. Computer Networking: A Top Down Approach

Wireless and Mobile Networks 7-2

Inside Bluetooth. Host. Bluetooth. Module. Application RFCOMM SDP. Transport Interface. Transport Bus. Host Controller Interface

Chapter 3 Wireless Configuration

e-pg Pathshala Quadrant 1 e-text

Bluetooth SIG Liaison Report May 2009

Wireless Module bgn, Bluetooth & FM WYSBMVGX8 & WBSBMVGX8-1 Overview. March 18, 2013 Version 1.0

UEFI What is it? Spring 2017 UEFI Seminar and Plugfest March 27-31, 2017 Presented by Dong Wei (ARM) presented by. Updated

Wireless technology Principles of Security

Wireless Networks. CSE 3461: Introduction to Computer Networking Reading: , Kurose and Ross

Bluetooth. 3.3 Latest Technology in Wireless Network. What is BLUETOOTH: Bluetooth 2/17/2016

Wireless Networking. Chapter The McGraw-Hill Companies, Inc. All rights reserved

Lecture Objectives. Lecture and Bluetooth technology. Agenda. IEEE b. Characteristics. Center Frequencies

CHAPTER 3 BLUETOOTH AND IEEE

Implementing Advanced USB Interrupt Transfers

Guide to Networking Essentials, 6 th Edition. Chapter 7: Network Hardware in Depth

UEFI ARM Update. UEFI PlugFest March 18-22, 2013 Andrew N. Sloss (ARM, Inc.) presented by

Exam Questions CWSP-205

UEFI Forum Update. UEFI Spring Plugfest March 29-31, 2016 Presented by Dong Wei (The UEFI Forum)

Getting Your Multifunction Back On Your Network After A Router Or Network Change

A+ Certification Guide. Chapter 16 (Part B) Networking

Lecture 23 Overview. Last Lecture. This Lecture. Next Lecture ADSL, ATM. Wireless Technologies (1) Source: chapters 6.2, 15

Configuring the Wireless Parameters (CPE and WBS)

Wireless Router at Home

CSC 4900 Computer Networks: Wireless Networks

Wireless Sensor Networks

Bluetooth Demystified

Wireless MAXg Technology

Wireless Module bgn & Bluetooth WYSBCVGXA & WBSBCVGXA-1 Overview. August 19, 2013 Version 2.0

Application Example (Standalone EAP)

ECE 435 Network Engineering Lecture 8

12/2/09. Mobile and Ubiquitous Computing. Bluetooth Networking" George Roussos! Bluetooth Overview"

AiM User Manual. Wi-Fi Configuration. Release 1.01

Getting Your Multifunction Back On Your Network After A Router Or Network Change

System Prep Applications A Powerful New Feature in UEFI 2.5

Configuring Repeater and Standby Access Points and Workgroup Bridge Mode

Family Structural Overview

UEFI Manageability and REST Services

Wednesday, May 16, 2018

How to Configure Wireless Internet Access (Wi-Fi) Advanced Settings on the Qwest Standard Modem: Actiontec GT701-WG

Grandstream Networks, Inc. GWN76xx Wi-Fi Access Points Standalone Guide

Viewing Status and Statistics

Wireless Networked Systems

Wireless LANs/data networks

Ah-Hoc, PAN, WSN,... Introduction Bluetooth ( ) Zigbee ( ) Renato Lo Cigno

Manufacturing Tools in the UEFI Secure Boot Environment

802.11a/n Long Range Wireless Outdoor CB/A P

802.11ac Wireless Access Point Model WAC104

ALL SAINTS COLLEGE OF TECHNOLOGY, BHOPAL

Wireless Personal Area Networks

Grandstream Networks, Inc. GWN76xx Wi-Fi Access Points Master/Slave Architecture Guide

Chapter 6 Wireless and Mobile Networks

Inside Bluetooth Low Energy

MOBILE COMPUTING. Jan-May,2012. ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala.

Local Area Networks NETW 901

Enabling Advanced NVMe Features Through UEFI

MULTIPLE ACCESS PROTOCOLS 2. 1

Product Specification

Wireless Technologies

Vendor: HP. Exam Code: HP2-Z32. Exam Name: Implementing HP MSM Wireless Networks. Version: Demo

Configuring the Client Adapter through Windows CE.NET

Wireless LAN, WLAN Security, and VPN

User Guide. 450Mbps/300Mbps Wireless N Access Point TL-WA901ND/TL-WA801ND REV

ICP DAS WF-2571 FAQ. FAQ Version 1.1. ICP DAS Co., Ltd

User Manual of NC-AC44APP/NC-AC21AP

Add a Wireless Network to an Existing Wired Network using a Wireless Access Point (WAP)

ENRNG3076 : Oral presentation BEng Computer and Communications Engineering

Oct 2007 Version 1.01

ARM Server s Firmware Security

Introduction to Bluetooth Wireless Technology

1.0 Basic RF Characteristics (15%) 1.1 Describe RF signal characteristics Frequency Amplitude Phase 1.1.

EnGenius Quick Start Guide

Installing Your Multifunction to Your Network for the First Time. PIXMA MX350 / PIXMA MX870 Mac OS

Wireless Sensor Networks BLUETOOTH LOW ENERGY. Flavia Martelli

Configuring Repeater and Standby Access Points and Workgroup Bridge Mode

March 21, BT22 Datasheet. Amp ed RF Technology, Co., Ltd.

Mohammad Hossein Manshaei 1393

Chapter 4 Advanced Settings and Features

Transcription:

presented by Lessons Learned from Implementing a Wi-Fi and BT Stack Spring 2017 UEFI Seminar and Plugfest March 27-31, 2017 Presented by Tony Lo(AMI) Updated 2011-06-01 UEFI Plugfest March 2017 www.uefi.org 1

Agenda Introduction UEFI Bluetooth Stack Intro Bluetooth Cases Study UEFI Wi-Fi Stack Intro Wi-Fi Cases Study Conclusions UEFI Plugfest March 2017 www.uefi.org 2

Introduction UEFI Plugfest March 2017 www.uefi.org 3

Introduction In 2014, there was a previous presentation on implementing a Bluetooth stack In UEFI version 2.5, the UEFI specification added support for both Bluetooth (BT) and Wi-Fi In developing our own BT and then aligning this implementation to the specification AMI has learned several things Device issues Specification issues Similar items were learned in developing a Wi-Fi stack and connecting it with the UEFI specification This presentation will go into detail about lessons learned while creating a stack that conforms to the specification and meets industry needs. UEFI Plugfest March 2017 www.uefi.org 4

UEFI Bluetooth Stack Introduction UEFI Plugfest March 2017 www.uefi.org 5

BT Introduction Bluetooth is a modern day technology and has many acronyms and terms that are important to understand Important Acronyms/Terms: BR/EDR /Low Energy Master/ Slave Piconet Scatternet Bluetooth Device Address Protocol Profile UEFI Plugfest March 2017 www.uefi.org 6

Bluetooth Stack Terms Important Bluetooth Stack Terms: BR EDR AMP Low Energy Master/Slave Piconet Bluetooth Device Address Protocol Profile Scatternet UEFI Plugfest March 2017 www.uefi.org 7

Bluetooth System Modes Basic Data Rate (BR) Enhanced Data Rate (EDR) Generic Alternate MAC/PHY Protocol (AMP) Low Energy Transfer Rate: 721.2 Kbps Transfer Rate: 2.1 Mbps Transfer Rate: 54Mbps Low Power Consumption UEFI Plugfest March 2017 www.uefi.org 8

Master/Slave/Piconet Master Provide the reference clock and frequency hopping pattern Only one master within one piconet Slave Sync to master s clock and frequency hopping pattern One to seven active slave devices are allowed in one piconet 255 possible parked slave devices UEFI Plugfest March 2017 www.uefi.org 9

Scatternet Multiple piconets that have common devices are called scatternet. Master device can act as slave in other piconets. Each Master owns one identical physical channel. Net (a): Piconet Single master and single slave Net (b): Piconet Single master and multiple slaves Net (c): Scatternet Multiple piconets share devices UEFI Plugfest March 2017 www.uefi.org 10

Bluetooth Device Address Each Bluetooth Device should allocate a unique 48bit Bluetooth Device Address (BD_ADDR) UEFI Plugfest March 2017 www.uefi.org 11

Protocol The Bluetooth specification defines protocols for the communication between Bluetooth function blocks within Bluetooth architecture. Such as LMP (Link Management Protocol) Control and Negotiate all the operation between two devices. SDP (Service Discovery Protocol) Determine the available services of device. UEFI Plugfest March 2017 www.uefi.org 12

Profile PROFILE // Profile describes service discovery requirements necessary for devices to connect, find available application services and connection information necessary for making application level connections. UEFI Plugfest March 2017 www.uefi.org 13

Bluetooth Stack UEFI Plugfest March 2017 www.uefi.org 14

UEFI Bluetooth Protocols EFI Bluetooth Host Controller Protocol Protocol that abstracts the Bluetooth host controller layer message transmit and receive EFI Bluetooth Bus Protocol Protocol that is used to locate EFI Bluetooth IO Protocol drivers to create and destroy child handles of the driver to communicate with other Bluetooth device by using the Bluetooth IO protocol EFI Bluetooth Configuration Protocol Protocol that abstracts configuration for Bluetooth devices UEFI Plugfest March 2017 www.uefi.org 15

Bluetooth Cases Study UEFI Plugfest March 2017 www.uefi.org 16

Bluetooth Keyboard Layout Issues What happens if this key was required for some functionality like hot key to boot specific device or enter setup? Certain types of Bluetooth Keyboards are not designed for PC. Some keys may be missing, such as DEL, Function Keys UEFI Plugfest March 2017 www.uefi.org 17

Bluetooth Controller Specific Patches The Bluetooth specification defines many areas of the host controller registers and capabilities In practice, every Bluetooth Controller does not follow all of the specification Operating Systems have the luxury of device specific drivers! This requires many vendor specific workarounds that bloats the overall Bluetooth code and slows execution of the overall stack UEFI Plugfest March 2017 www.uefi.org 18

Service Latency Polling is the default method for device events servicing Works well for devices with quick response times like HDD and network, but not as much with radio based systems Infrequent polling for radio devices may slow response times and can cause issues in responding to Bluetooth requests Frequent polling will impact other events service and boot times A good middle group needs to be found! UEFI Plugfest March 2017 www.uefi.org 19

Boot Time Impact Host controller response times is not defined in the Bluetooth Specification No response times being specified means extensive timeouts can occur based upon vendor Can impact boot time for: Host Controller Initialization Timing Device Connection Timing UEFI Plugfest March 2017 www.uefi.org 20

UEFI Wi-Fi Stack Introduction UEFI Plugfest March 2017 www.uefi.org 21

Wi-Fi Introduction Wi-Fi is a wireless technology based on IEEE 802.11 standards. Various version of IEEE 802.11 specifications are published to increase the transfer speed and quality of service. Wi-Fi Device Network can be established with/without Wi-Fi Access Point. Two Wi-Fi Devices which support Ad-Hoc mode can direct connect without Access Point. UEFI Plugfest March 2017 www.uefi.org 22

Wi-Fi Specification and Speed 10000 The wireless networking specifications (802.11xx) have evolved to allow much faster transfer speeds over the years 1000 100 Max Speed Min Speed 10 1 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac 802.11ad 802.11-2.4 GHz 802.11a 5 GHz 802.11b 2.4 GHz 802.11g 2.4 GHz 802.11n 2.4 GHz 802.11ac 5 GHz 802.11ad 60 GHz UEFI Plugfest March 2017 www.uefi.org 23

Wi-Fi Stack Terms Important Terms: Access Point SSID (Service Set Identifier) Wireless Security UEFI Plugfest March 2017 www.uefi.org 24

Access Point 01 02 Access Point is a Wi-Fi device which accepts Wi-Fi device connection The Access Point can be a bridge to connect to another wireless network or router which connects to Internet UEFI Plugfest March 2017 www.uefi.org 25

SSID (Service Set Identifier) A sequence of 0-32 octets which is usually a human readable string for user to identify the network name easily SSID is a Service Set Identifier Commonly referred to as the Wi-Fi network name UEFI Plugfest March 2017 www.uefi.org 26

Wireless Security Wi-Fi being a broadcasted network, needs a layer of security beyond any physical security The wireless security is used to avoid authorized access of the wireless network There are several security protocols such as: WEP WPA-2 WPA Etc UEFI Plugfest March 2017 www.uefi.org 27

UEFI Wi-Fi Stack UEFI Plugfest March 2017 www.uefi.org 28

UEFI Wi-Fi Protocols EFI Wireless MAC Connection Protocol Protocol that provides management service interface of the 802.11 MAC layer. It can be used by network applications (and drivers) to establish a wireless connection with an access point (AP) EFI Wireless MAC Connection II Protocol Protocol that simplifies the wireless connection manager and moves the responsibility of scan operation, AP selection, authentication and the association flow control into wireless UNDI driver. EFI Supplicant Protocol Protocol that provides services to process authentication and data encryption/decryption for security management UEFI Plugfest March 2017 www.uefi.org 29

Wi-Fi Cases Study UEFI Plugfest March 2017 www.uefi.org 30

Encryption Protocols The current UEFI specification targets to the open Wi-Fi systems and popular encryption protocols, such as WPA2. The EAP related protocols address the need of business requirements. UEFI Plugfest March 2017 www.uefi.org 31

Wi-Fi AP Response Time Wi-Fi AP may not respond to the connection request immediately Multiple attempts to connect to this kind of Wi-Fi AP results in the longer connection times All these increases also increases POST time UEFI Plugfest March 2017 www.uefi.org 32

Wi-Fi NIC Driver For PCIe native Wi-Fi devices, information is needed from the vendor to do proper porting Some information can be gathered from specifications or open source drivers This information is not usually enough to develop a full UEFI driver Industry needs a better framework for vendors to provide something similar to an UNDI driver for UEFI UEFI Plugfest March 2017 www.uefi.org 33

Radio Signal Interference Wi-Fi and BT both operate in the 2.4 GHz range Everyone continues to collect more BT and Wi-Fi devices in their personal and work lives The more devices in the area, the more radio interference will occur OS has luxury of timeouts and reconnects This can cause increased connection times and dropped packets! UEFI Plugfest March 2017 www.uefi.org 34

Radio Signal Interference UEFI Plugfest March 2017 www.uefi.org 35

Conclusions UEFI Plugfest March 2017 www.uefi.org 36

Specification Need Summary BLUETOOTH Better define how the Bluetooth Profile driver interacts with the other UEFI Bluetooth Protocols Some samples may help developers understand the proper usage Low energy device needs are not currently addressed by UEFI 2.6 specification WI-FI Security phrase is not provided along with connect function Simplify the parameters of Scan/Connect/Disconnect functions UEFI Plugfest March 2017 www.uefi.org 37

Call to Action Review the specification and get involved in the UEFI Network Sub-Team (USNT) BT and Wi-Fi hardware vendors should get involved in defining common hardware interfaces to ensure compatibility Tool writers should get involved and write applications on top of the common hardware interfaces to create market ready solutions UEFI Plugfest March 2017 www.uefi.org 38

Thanks for attending the Spring 2017 UEFI Seminar and Plugfest For more information on the Unified EFI Forum and UEFI Specifications, visit http://www.uefi.org presented by UEFI Plugfest March 2017 www.uefi.org 39