logo资料库

S110_SoftDevice_Specification_2.0(S110_SoftDevice_Specification_2.0).pdf

第1页 / 共59页
第2页 / 共59页
第3页 / 共59页
第4页 / 共59页
第5页 / 共59页
第6页 / 共59页
第7页 / 共59页
第8页 / 共59页
资料共59页,剩余部分请下载后查看
1 Introduction
1.1 Documentation
2 Product overview
2.1 SoftDevice
2.2 Multiprotocol support
3 Bluetooth low energy protocol stack
3.1 Profile and service support
3.2 Bluetooth low energy features
4 SoC library
5 SoftDevice Manager
6 SoftDevice information structure
7 Flash memory API
8 Radio Notification
9 Concurrent Multiprotocol Timeslot API
9.1 Request types
9.2 Request priorities
9.3 Timeslot length
9.4 Scheduling
9.5 Performance considerations
9.6 Multiprotocol timeslot API
9.6.1 API calls
9.6.2 Timeslot events
9.6.3 Timeslot signals
9.6.4 Signal handler return actions
9.6.5 Ending a timeslot in time
9.6.6 The signal handler runs at LowerStack priority
9.7 Timeslot usage examples
9.7.1 Complete session example
9.7.2 Blocked timeslot example
9.7.3 Canceled timeslot example
9.7.4 Timeslot extension example
10 Master Boot Record and Bootloader
10.1 Master Boot Record
10.2 Bootloader
10.3 Master Boot Record (MBR) and SoftDevice reset behavior
10.4 Master Boot Record (MBR) and SoftDevice initialization
11 SoC resource requirements
11.1 Attribute Table size
11.2 Memory resource map and usage
11.3 Hardware blocks and interrupt vectors
11.4 Application signals - software interrupts
11.5 Programmable Peripheral Interconnect (PPI)
11.6 SVC number ranges
11.7 External requirements
12 Processor availability and interrupt latency
12.1 Interrupt latency due to SoC framework
12.2 Processor availability
12.3 BLE peripheral performance
12.3.1 Advertising interrupt latency
12.3.2 BLE peripheral connection
12.3.3 API calls
12.3.4 CPU utilization in connection
12.4 Performance with Flash memory API and Concurrent Multiprotocol Timeslot API
13 BLE data throughput
14 BLE power profiles
14.1 Connection event
14.2 Advertising event
15 SoftDevice identification and revision scheme
15.1 MBR distribution and revision scheme
15.2 Notification of SoftDevice revision updates
Appendix A SoftDevice architecture
SoC library
SoftDevice Manager
Protocol stack
Application Program Interface (API)
Memory isolation and run-time protection
Call stack
Heap
Peripheral run-time protection
Exception (interrupt) management with a SoftDevice
Interrupt forwarding to the application
Events - SoftDevice to application
SoftDevice enable and disable
Power management
Error handling
S110 nRF51 Bluetooth® low energy Peripheral SoftDevice SoftDevice Specification v2.0 Key Features Applications • Bluetooth® 4.1 compliant low energy single-mode protocol • Computer peripherals and I/O devices stack • Link layer • L2CAP, ATT, and SM protocols • GATT, GAP, and L2CAP • Concurrent Peripheral and Broadcaster roles • GATT Client and Server • Full SMP support including MITM and OOB pairing • Mouse • Keyboard • Multi-touch trackpad • Interactive entertainment devices • Remote control • 3D glasses • Gaming controller • Complementary nRF51 SDK including Bluetooth profiles and • Personal Area Networks • Health and fitness sensor and monitor devices • Medical devices • Key fobs and wrist watches • Remote control toys • Home automation example applications • Master Boot Record for over-the-air device firmware update • Memory isolation between application and protocol stack for robustness and security • Thread-safe supervisor-call based API • Asynchronous, event-driven behavior • No RTOS dependency • Any RTOS can be used • No link-time dependencies • Standard ARM® Cortex™-M0 project configuration for application development • Support for multiprotocol operation concurrent with Bluetooth low energy connections and non-concurrently • Concurrent multiprotocol timeslot API • Alternate protocol stack running in application space Reproduction in whole or in part is prohibited without the prior written permission of the copyright holder. Copyright © 2014 Nordic Semiconductor ASA. All rights reserved.
S110 nRF51 SoftDevice Specification v2.0 Liability disclaimer Nordic Semiconductor ASA reserves the right to make changes without further notice to the product to improve reliability, function or design. Nordic Semiconductor ASA does not assume any liability arising out of the application or use of any product or circuits described herein. Life support applications Nordic Semiconductor’s products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. Nordic Semiconductor ASA customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Nordic Semiconductor ASA for any damages resulting from such improper use or sale. Contact details For your nearest distributor, please visit http://www.nordicsemi.com. Information regarding product updates, downloads, and technical support can be accessed through your My Page account on our homepage. Main office: Otto Nielsens veg 12 7052 Trondheim Norway Phone: +47 72 89 89 00 Fax: +47 72 89 89 89 Mailing address: Nordic Semiconductor P.O. Box 2336 7004 Trondheim Norway Page 2
S110 nRF51 SoftDevice Specification v2.0 Document Status Status Description v0.5 v0.7 v1.0 This specification contains target specifications for product development. This specification contains preliminary data; supplementary data may be published from Nordic Semiconductor ASA later. This specification contains final product specifications. Nordic Semiconductor ASA reserves the right to make changes at any time without notice in order to improve design and supply the best possible product. Revision History Date Version Description February 2015 2.0 Updated for S110 SoftDevice v8.0.0. Added: • Chapter 6 “SoftDevice information structure” on page 14 • Section 11.1 “Attribute Table size” on page 33 • Appendix A "SoftDevice architecture" on page 50 Updated: • Section 3.1 “Profile and service support” on page 8 • Section 3.2 “Bluetooth low energy features” on page 9 • Chapter 8 “Radio Notification” on page 16 • Section 10.2 “Bootloader” on page 30 • Section 10.3 “Master Boot Record (MBR) and SoftDevice reset behavior” on page 31 • Section 10.4 “Master Boot Record (MBR) and SoftDevice initialization” on page 32 • Section 11.2 “Memory resource map and usage” on page 34 • Section 12.3 “BLE peripheral performance” on page 41 • Chapter 13 “BLE data throughput” on page 44 • Chapter 14 “BLE power profiles” on page 45 June 2014 1.3 Updated for S110 SoftDevice v7.0.0. Added: • Chapter 11.7 “External requirements” on page 38 Updated: • Key Features on front page • Section 1.1 “Documentation” on page 5 • Section 2.2 “Multiprotocol support” on page 6 • Section 3.1 “Profile and service support” on page 8 • Section 3.2 “Bluetooth low energy features” on page 9 • Chapter 4 “SoC library” on page 12 • Chapter 5 “SoftDevice Manager” on page 13 • Chapter 7 “Flash memory API” on page 15 • Section 9.6 “Multiprotocol timeslot API” on page 22 • Section 9.1 “Master Boot Record (MBR)” on page 30 • Section 11.2 “Memory resource map and usage” on page 34 Page 3
S110 nRF51 SoftDevice Specification v2.0 Date April 2014 Version Description 1.3A Updated for S110 SoftDevice v7.0.0. alpha Added: • Chapter 9 “Concurrent Multiprotocol Timeslot API” on page 20 • Section 9.1 “Master Boot Record (MBR)” on page 30 November 2013 1.2 March 2013 1.1 February 2013 1.0 Updated: • Key Features on front page • Section 2.2 “Multiprotocol support” on page 6 • Table 3 “GAP features in the BLE stack” on page 9 • Table 9 “Proprietary features in the BLE stack” on page 11 • Table 26 “Additional latency due to SoftDevice and MBR processing” on page 39 • 12.4 “Performance with Flash memory API and Concurrent Multiprotocol Timeslot API” on page 43 Updated for S110 v6.0.0 release. Added Chapter 7 “Flash memory API” on page 15; Added Chapter 10 “Master Boot Record and Bootloader” on page 30 Updated Table 1 on page 8; Updated Table 4 on page 10; Updated Table 10 on page 12; Updated Chapter 8 “Radio Notification” on page 16; Updated Table 17 on page 19. Updated for changes made as of S110 v5.0.0; Changed Section 9.2 “Processor availability” on page 37 and Section 14 “BLE power profiles” on page 45; Changed Table 27 on page 37; Added Table 28 on page 38; Changed Table 30 on page 40; Changed Figure 16 on page 46 and Figure 17 on page 47. Changed Memory resource requirements in Table 16 on page 19; Added Section 9.3 “Application signals - software interrupts” on page 21; Updated Chapter 9 “BLE performance” on page 36 and added Section 9.3 “Data throughput” on page 40; Updated diagrams in Chapter 14 “BLE power profiles” on page 45; Added Chapter 15 “SoftDevice identification and revision scheme” on page 48; Updated Chapter 15.2 “Notification of SoftDevice revision updates” on page 49. September 2012 0.6 First release. Page 4
S110 nRF51 SoftDevice Specification v2.0 Introduction 1 The S110 SoftDevice is a Bluetooth® low energy (BLE) Peripheral protocol stack solution. It integrates a low energy controller and host, and provides a full and flexible Application Programming Interface (API) for building Bluetooth low energy System on Chip (SoC) solutions. This document contains information about the SoftDevice features and performance. Note: The SoftDevice features and performance are subject to change between revisions of this document. See Section 15.2 “Notification of SoftDevice revision updates” on page 49 for more information. This specification outlines the supported features of a production level SoftDevice. Alpha and beta versions of the SoftDevice may not support all features. To find information on any limitations or omissions, see the SoftDevice release notes, which will contain a detailed summary of the release status. Documentation 1.1 Below is a list of the core documentation for the SoftDevice. Document Description Appendix A: SoftDevice Architecture nRF51822 Product Specification (PS) nRF51822 Product Anomaly Notification (PAN) nRF51 Series Compatibility Matrix Bluetooth Core Specification Essential reading for understanding the resource usage and performance related chapters of this document. Contains a description of the hardware, modules, and electrical specifications specific to the nRF51822 chip. Contains information on anomalies related to the nRF51822 chip. Compatibility and relations between nRF51 IC revisions, SoftDevices and SoftDevice Specifications, SDKs, development kits, documentation, and QDIDs. The Bluetooth Core Specification version 4.1, Volumes 1, 3, 4, and 6 describes Bluetooth terminology which is used throughout the SoftDevice Specification. Page 5
S110 nRF51 SoftDevice Specification v2.0 Product overview 2 This section provides an overview of the SoftDevice. SoftDevice 2.1 The SoftDevice is a precompiled and linked binary software implementing a Bluetooth 4.1 low energy protocol stack for the nRF51 series of chips. See the nRF51 Series Compatibility Matrix for SoftDevice/chip compatibility information. The Application Programming Interface (API) is a set of standard C language functions and data types that give the application complete compiler and linker independence from the SoftDevice implementation. The SoftDevice enables the application programmer to develop their code as a standard ARM® Cortex™-M0 project without needing to integrate with proprietary chip-vendor software frameworks. This means that any ARM® Cortex™-M0 compatible toolchain can be used to develop Bluetooth low energy applications with the SoftDevice. Application – Profiles and Services nRF API | Protocol API (SV Calls) nRF SoftDevice Protocol Stack App-Specific peripheral drivers SoC Library SoftDevice Manager CMSIS nRF51 HW Figure 1 System on Chip application with the SoftDevice The SoftDevice can be programmed onto compatible nRF51 Series chips during both development and production. Multiprotocol support 2.2 The SoftDevice supports both non-concurrent and fully concurrent multiprotocol implementations. For non-concurrent operation, a proprietary 2.4 GHz protocol can be implemented in the application program area and can access all hardware resources when the SoftDevice is disabled. For concurrent multiprotocol operation, with a proprietary protocol running concurrently with the SoftDevice protocol(s), see Chapter 9 “Concurrent Multiprotocol Timeslot API” on page 20. Page 6
S110 nRF51 SoftDevice Specification v2.0 Bluetooth low energy protocol stack 3 The Bluetooth 4.1 compliant low energy Host and Controller embedded in the SoftDevice are fully qualified with multi-role support (Peripheral and Broadcaster). The API is defined above the Generic Attribute Protocol (GATT), Generic Access Profile (GAP), and Logical Link Control and Adaptation Protocol (L2CAP). The SoftDevice allows applications to implement standard Bluetooth low energy profiles as well as proprietary use case implementations. The nRF51 Software Development Kit (SDK) complements the BLE protocol stack with Service and Profile implementations. Single-mode System on Chip (SoC) applications are enabled by the full BLE protocol stack and nRF51 series integrated circuit (IC). Application Profiles and Services nRF51 SoC SoftDevice Host Generic Attribute Profile (GATT) Generic Access Profile (GAP) Attribute Protocol (ATT) Security Manager (SM) Logical Link Control and Adaptation Layer Protocol (L2CAP) Link Layer (LL) Physical Layer (PHY) Controller Figure 2 SoftDevice stack architecture Page 7
S110 nRF51 SoftDevice Specification v2.0 Profile and service support 3.1 Table 1 lists the profiles and services adopted by the Bluetooth Special Interest Group at the time of publication of this document. The SoftDevice supports all of these as well as additional proprietary profiles. Adopted Profile Adopted Services HID over GATT Heart Rate Proximity Blood Pressure Health Thermometer Glucose Phone Alert Status Alert Notification Time Find Me Cycling Speed and Cadence Running Speed and Cadence Location and Navigation Cycling Power Scan Parameters Weight Scale HID Battery Device Information Heart Rate Device Information Link Loss Immediate Alert TX Power Blood Pressure Device Information Health Thermometer Device Information Glucose Device Information Phone Alert Status Alert Notification Current Time Next DST Change Reference Time Update Immediate Alert Cycling Speed and Cadence Device information Running Speed and Cadence Device Information Location and Navigation Cycling Power Scan Parameters Weight Scale Body Composition User Data Device Information Continuous Glucose Monitoring Continuous Glucose Monitoring Environmental Sensing Bond Management Device Information Environmental Sensing Table 1 Supported profiles and services Note: Examples for selected profiles and services are available in the nRF51 SDK. See the SDK documentation for details. Page 8
分享到:
收藏