logo资料库

S120_SoftDevice_Specification_2.1(S120_SoftDevice_Specification_2.1).pdf

第1页 / 共63页
第2页 / 共63页
第3页 / 共63页
第4页 / 共63页
第5页 / 共63页
第6页 / 共63页
第7页 / 共63页
第8页 / 共63页
资料共63页,剩余部分请下载后查看
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
3.3 Limitations on procedure concurrency
4 SoC library
5 SoftDevice Manager
6 Flash memory API
7 Radio Notification
8 Concurrent Multiprotocol Timeslot API
8.1 Request types
8.2 Request priorities
8.3 Timeslot length
8.4 Scheduling
8.5 Performance considerations
8.6 Multiprotocol timeslot API
8.6.1 API calls
8.6.2 Timeslot events
8.6.3 Timeslot signals
8.6.4 Signal handler return actions
8.6.5 Ending a timeslot in time
8.6.6 The signal handler runs at LowerStack priority
8.7 Timeslot usage examples
8.7.1 Complete session example
8.7.2 Blocked timeslot example
8.7.3 Canceled timeslot example
8.7.4 Timeslot extension example
9 Master Boot Record and Bootloader
9.1 Master Boot Record
9.2 Bootloader
9.3 Master Boot Record (MBR) and SoftDevice reset behavior
9.4 Master Boot Record (MBR) and SoftDevice initialization
10 SoC resource requirements
10.1 Memory resource map and usage
10.2 Hardware blocks and interrupt vectors
10.3 Application signals - software interrupts
10.4 Programmable Peripheral Interconnect (PPI)
10.5 SVC number ranges
10.6 External requirements
11 Multi-link Central role scheduling
11.1 Connection timing
11.2 Scanner timing
11.3 Initiator timing
11.4 Suggested intervals and windows
12 Processor availability and interrupt latency
12.1 Interrupt latency due to SoC framework
12.2 Processor availability
12.3 BLE central performance
12.3.1 Scanning interrupt latency
12.3.2 Initiating interrupt latency
12.3.3 Connection Event interrupt latency
12.3.4 Connection event CPU availability
12.4 Performance with Flash memory API
13 BLE data throughput
14 BLE power profiles
14.1 Connection 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
S120 nRF51 Bluetooth® low energy combined Central and Peripheral SoftDevice SoftDevice Specification v2.1 Applications • A4WP wireless charging • Sports & Fitness devices • Sports watches • Bike computers Key Features • Bluetooth® 4.1 compliant low energy single-mode protocol stack, initializable at runtime as either Central or Peripheral • Central and Observer roles - up to 8 simultaneous connections • Peripheral role with a concurrent Broadcaster • Link layer • L2CAP, ATT, and SM protocols • GATT and GAP APIs • GATT Client and Server • Security Manager including MITM and OOB pairing • Complementary nRF51 SDK including Bluetooth profiles and 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 the Bluetooth stack using concurrent multiprotocol timeslot API • Alternate protocol stack running in application stack 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.
S120 nRF51 SoftDevice Specification v2.1 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
S120 nRF51 SoftDevice Specification v2.1 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 January 2015 2.1 Updated content: • Section 12.3.2 “Initiating interrupt latency” on page 47 • Section 12.3.3 “Connection Event interrupt latency” on page 48 • Section 12.3.4 “Connection event CPU availability” on page 49 December 2014 2.0 Added content: • Chapter 8 “Concurrent Multiprotocol Timeslot API” on page 20 • Section 15.1 “MBR distribution and revision scheme” on page 53 • Chapter Appendix A “SoftDevice architecture” on page 54 Updated content: • Front page • Chapter 1 “Introduction” on page 5 • Section 2.2 “Multiprotocol support” on page 6 • Chapter 3 “Bluetooth low energy protocol stack” on page 7 • Chapter 7 “Radio Notification” on page 16 • Chapter 9 “Master Boot Record and Bootloader” on page 30 • Chapter 10 “SoC resource requirements” on page 33 • Chapter 11 “Multi-link Central role scheduling” on page 38 • Chapter 12 “Processor availability and interrupt latency” on page 44 • Chapter 13 “BLE data throughput” on page 50 July 2014 1.1 Updated content: • Chapter 6 “Flash memory API” on page 15 Page 3
S120 nRF51 SoftDevice Specification v2.1 Date May 2014 Version Description 1.0 First production release. Added content: • Section 3.1 “Profile and service support” on page 8 • Chapter 7 “Flash memory API” on page 16 • Chapter 8 “Radio Notification” on page 18 • Chapter 9 “Master Boot Record and Bootloader” on page 30 • Chapter 14 “BLE power profiles” on page 51 Updated content: • Front page • Section 1.1 “Documentation” on page 5 • Section 3.1 “Profile and service support” on page 8 • Section 3.2 “Bluetooth low energy features” on page 9 • Section 3.3 “Limitations on procedure concurrency” on page 12 • Chapter 4 “SoC library” on page 13 • Section 10.2 “Hardware blocks and interrupt vectors” on page 34 • Chapter 10.4 “Programmable Peripheral Interconnect (PPI)” on page 36 • Chapter 11 “Multi-link Central role scheduling” on page 38 • Section 12.2 “Processor availability” on page 45 • Section 12.3.3 “Connection Event interrupt latency” on page 48 • Chapter 13 “BLE data throughput” on page 50 November 2013 0.5 Preliminary release. Page 4
S120 nRF51 SoftDevice Specification v2.1 Introduction 1 The S120 SoftDevice is a Bluetooth® low energy (BLE) combined Central and Peripheral protocol stack solution. That is, the SoftDevice can be initialized to run either as a Central protocol stack or as a Peripheral protocol stack. When initialized as a Central, it supports up to eight simultaneous Central role connections and an Observer. When initialized as a Peripheral, is supports a Peripheral connection and a concurrent Broadcaster. The SoftDevice 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 S120 SoftDevice memory and resource requirements. It also describes the performance and BLE features of the SoftDevice when configured as a Central. For BLE features and functionality when configured as a Peripheral, see the S110 SoftDevice Specification. 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 53 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
S120 nRF51 SoftDevice Specification v2.1 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 standard C language set of 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 8 “Concurrent Multiprotocol Timeslot API” on page 20. Page 6
S120 nRF51 SoftDevice Specification v2.1 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 (Central and Observer or 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 nRF51xxx 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
S120 nRF51 SoftDevice Specification v2.1 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 Continuous Glucose Meter Time HID Battery Device Information Heart Rate Device Information Link Loss Immediate Alert TX Power Blood pressure Health Thermometer Glucose 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 Continuous Glucose Bond Management Current Time Next DST change Reference Time Update 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
分享到:
收藏