Example: stock market

CC26x0 SimpleLink™ Bluetooth low energy Software Stack 2.2

CC26x0 SimpleLink Bluetooth low 's GuideLiteratureNumber:SWRU393 EOctober2010 RevisedMarch20182 SWRU393E October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018, Bluetoothlow (RadioCore).. (SystemCore).. the for October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018, (RAM).. RAMand FlashBoundaryUsingthe main().. the Bluetoothlow (GAP).. (GATT).. ReceiveAdditionalGATTE ventsin the LE Controland AdaptationLayerProtocol(L2 CAP).. (MTU).. October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018, (CoC) Commandsand and HCI Vendor-SpecificCommandsin the HCI Commandsand the ActiveBluetoothlow Breakpointsand BIOSfor Stateof ICallHeapManager( ).

CC26x0 SimpleLink™ Bluetooth® low energy Software Stack 2.2.x Developer's Guide Literature Number: SWRU393E October 2010–Revised March 2018

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of CC26x0 SimpleLink™ Bluetooth low energy Software Stack 2.2

1 CC26x0 SimpleLink Bluetooth low 's GuideLiteratureNumber:SWRU393 EOctober2010 RevisedMarch20182 SWRU393E October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018, Bluetoothlow (RadioCore).. (SystemCore).. the for October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018, (RAM).. RAMand FlashBoundaryUsingthe main().. the Bluetoothlow (GAP).. (GATT).. ReceiveAdditionalGATTE ventsin the LE Controland AdaptationLayerProtocol(L2 CAP).. (MTU).. October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018, (CoC) Commandsand and HCI Vendor-SpecificCommandsin the HCI Commandsand the ActiveBluetoothlow Breakpointsand BIOSfor Stateof ICallHeapManager( ).

2 October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018, ROVto the Assertsin the CustomBluetoothlow ,Semaphores,and Cadence(CSC) Cadence(RSC) October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018, Bluetoothlow (pfnStateChange).. (eventCB)..198 DGATTand CorrespondingATT (passcodeCB).. October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018, (pairStateCB).. October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018,TexasInstrumentsIncorporatedList of FiguresList of ().. ().. and Set October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018,TexasInstrumentsIncorporatedList of GAPBondMgrand the DataExchangeBetweena Masterand SlaveDeviceUsinga L2 CAPC onnection-OrientedChannelin LE SystemStackin IAR October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018,TexasInstrumentsIncorporatedList of TablesList of October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018,TexasInstrumentsIncorporatedSimpleL ink,CodeComposerStudio,SmartRFare trademarksof.

3 Cortexare registeredtrademarksof a trademarkof a registeredtrademarkof is a registeredtrademarkof a trademarkof a trademarkof is a registeredtrademarkof Intel is a registeredtrademarkof a registeredtrademarkof a registeredtrademarkof October2010 RevisedMarch2018 ReferencesReferto the BLE-Stackreleasenotesfor the specificTI-RTOS componentversionassociatedwith Bluetoothlow energyVendor-SpecificHCI ,C:\ti\simplelink\ble_sdk_2_02_xx_xxxxx\ CC26x0 TechnicalReferenceManual, (SWCU117) EnergyPowerConsumptionApplicationReport, (SWRA478) ,C:\TI\tirtos_cc13xx_cc26xx_x_xx_xx_xx\d ocs\ ,C:\TI\tirtos_cc13xx_cc26xx_x_xx_xx_xx\d ocs\ 'sGuide, C:\TI\tirtos_cc13xx_cc26xx_x_xx_xx_xx\do cs\ 'sGuide, C:\ti\tirtos_cc13xx_cc26xx_x_xx_xx_xx\pr oducts\bios_<asinstalled>\docs\ CC26xx,C:\TI\tirtos_cc13xx_cc26xx_x_xx_x x_xx\docs\ SYS/BIOSAPI Guide, C:\TI\tirtos_cc13xx_cc26xx_x_xx_xx_xx\pr oducts\bios_<asinstalled>\docs\ , C:\ti\tirtos_cc13xx_cc26xx_x_xx_xx_xx\pr oducts\cc26xxware_<asinstalled>\doc\ , Reference,C:\TI\tirtos_cc13xx_cc26xx_x_x x_xx_xx\products\tidrivers_cc13xx_cc26xx _<asinstalled>\docs\doxygen\html\ Guide, C:\ti\simplelink\ble_sdk_2_02_xx_xxxxx\s ap_<asinstalled>\docs\CC2640 SimpleNetworkProcesserAPI 'sGuide, downloadfromthe BluetoothSpecialInterestGroup(SIG) the BluetoothSystem,CoveredCorePackage, (02-Dec-2014), ServiceSpecifications, Bluetoothlow energyWiki, energyStackDownload, October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018, E2E SupportForum, DesignsReferenceLibrary, SimpleLinkGitHubCodeExamples.

4 October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018,TexasInstrumentsIncorporatedOvervie wChapter1 SWRU393E October2010 RevisedMarch2018 OverviewThepurposeof this documentis to givean overviewof the TI SimpleLink Bluetooth low energyCC26x0wirelessMCUsoftwaredevelopme ntkit to begincreatinga Bluetoothlow energy (BLE) Bluetoothlow not use thisdocumentas a substitutefor the moredetails,see the Specificationof the BluetoothSystemor someintroductorymaterialat the TI Bluetoothlow of the Bluetoothspecificationallowsfor two systemsof wirelesstechnology:BasicRate(BR:BR/EDRfo r BasicRate/EnhancedDataRate)and Bluetoothlow Bluetoothlow energysystemwas createdto transmitsmallpacketsof data,whileconsumingsignificantlyless TI Bluetoothlow energyprotocolstack(BLE- Stack ) of the specification: LE SecureConnections LE DataLengthextension LE stackalso supportsthe features.

5 LE L2 CAPC onnection-OrientedChannelSupport LE Link LayerTopology LE Ping SlaveFeatureExchange ConnectionParameterRequestThesefeaturesa re optionalin the specification,and can be selectivelyenabledat October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018, energyProtocolStackBasicsFigure1-1 showsthe Bluetoothlow Bluetoothlow energyProtocolStackThe Bluetoothlow energyprotocolstack(or protocolstack)consistsof the controllerand the controllerand host derivesfromthe implementationof classicBluetoothBR/EDRdevices,wherethe two sectionsare profilesand applicationssit on top of the GAPand GATT layersof the physicallayer(PHY)is a 1-Mbpsadaptivefrequency-hoppingGFSK(Gaus sianfrequency-shiftkeying)radiooperating in the (industrial,scientific,and medical) link layer(LL) controlsthe RF stateof the device,with the devicein one of five states: Standby Advertising Scanning Initiating ConnectedAdvertiserstransmitdatawithoutc onnecting,whilescannersscanfor initiatoris a devicethat respondsto an advertiserwith a requestto the advertiseracceptsthe connectionrequest,boththe advertiserand initiatorentera deviceis connected,it connectsas eithermasteror deviceinitiatingthe connectionbecomesthe masterand the deviceacceptingtherequestbecomesthe host controlinterface(HCI)layerprovidescommun icationbetweenthe host and layercan be implementedeitherthrougha softwareAPI or by a hardwareinterfacesuchas UART,SPI, or commandsand eventsare specifiedin theSpecificationof the BluetoothSystem.

6 TI's proprietarycommandsand eventsare specifiedin TI Bluetoothlow energyVendor-SpecificHCI link logicalcontroland adaptionprotocol(L2 CAP)layerprovidesdataencapsulationservic esto theupperlayers,allowingfor logicalend-to-endcommunicationof securitymanager(SM)layerdefinesthe methodsfor pairingand key distribution,and providesfunctionsfor the otherlayersof theprotocolstackto securelyconnectand exchangedatawith moreinformationon TI's implementationof the SM genericaccessprotocol(GAP)layerdirectlyi nterfaceswith the applicationand/orprofiles,to handledevicediscoveryand connection-relatedservicesfor the initiationof for moreinformationon TI'simplementationof the energyProtocolStackBasics15 SWRU393E October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018,TexasInstrumentsIncorporatedOvervie wThe attributeprotocol(ATT)layerprotocolallow sa deviceto exposecertainpiecesof dataorattributes, genericattributeprotocol(GATT)

7 Layeris a serviceframeworkthat definesthe sub-proceduresfor occurbetweentwo devicesin a Bluetoothlowenergyconnectionare applicationand/orprofileswill directlyuse for moreinformationon TI's implementationof the ATT and October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018,TexasInstrumentsIncorporatedTI Bluetoothlow energySoftwareDevelopmentPlatformChapter 2 SWRU393E October2010 RevisedMarch2018TI Bluetoothlow energySoftwareDevelopmentPlatformThe TI royalty-freeBluetoothlow energysoftwaredevelopmentkit (SDK)is a completesoftwareplatformfor developingsingle-modeBluetoothlow is basedon the SimpleLinkCC2640,completeSystem-on-Chip( SoC)Bluetoothlow CC2640combinesa transceiver,128-KBin-systemprogrammablem emory,20 KBof SRAM,and a full deviceis centeredon an ARM Cortex -M3 seriesprocessorthat handlesthe applicationlayerand Bluetoothlow energyprotocolstackand an autonomousradiocorecenteredon an ARMC ortex -M0processorthat handlesall the low-levelradiocontroland processingassociatedwiththephysicallayer and partsof the link sensorcontrollerblockprovidesadditionalf lexibilitybyallowingautonomousdataacquis itionandcontrolindependentof the Cortex-M3processor,furtherextendingthe low-powercapabilitiesof the showsthe moreinformationon the CC2640,see the CC26xxTechnicalReferenceManual(TRM).

8 NOTE:This kit supportsdevelopmentof Bluetoothlow energyapplicationson the followingSimpleLinkCC26x0wirelessMCUs:CC 2640and multi-standardCC2650wirelessMCUsupportsB luetoothlow energyas well as otherwirelessprotocols,suchasZigBee and CC2640supportsBluetoothlow codegeneratedfromthe binarycompatibleand exchangeablewith boththe CC2650and CC2640wirelessMCUsin the document,CC2640and CC2650may be SoftwareArchitectureOverview17 SWRU393E October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018,TexasInstrumentsIncorporatedTI Bluetoothlow energySoftwareDevelopmentPlatformFigure2 -1. SoftwareArchitectureOverviewThis sectionaimsto introducethe differentcoreswithinthe CC2640,how they interact,and the firmwarethat runson informationpresentedhereshouldbe consideredas an detaileddescriptionsof the hardwaredescribedhere,referto the chapter23 of theCC26x0 TechnicalReferenceManual(TRM)(SWCU117).

9 (RadioCore)The CortexM0 (CM0)corewithinthe CC2640is responsiblefor bothinterfacingto the radiohardware,and translatingcomplexinstructionsfromthe CortexM3 (CM3)coreinto bits that are sent overthe airusingthe the Bluetoothlow energyprotocol,the CM0implementsthe PHYlayerof the ,the CM0is able to operateautonomously,whichfreesup the CM3for higher-levelprotocoland CM3communicateswith the CM0througha hardwareinterfacecalledthe RF doorbell,whichisdocumentedin theCC26x0 TechnicalReferenceManual(TRM)(SWCU117). The radiocorefirmwareis not intendedto be usedor modifiedby the applicationdeveloper. CC2640 Host Controller Application GAP Role/Security Profiles GATT Profiles Hardwareand October2010 RevisedMarch2018 SubmitDocumentationFeedbackCopyright 2010 2018,TexasInstrumentsIncorporatedTI Bluetoothlow (SystemCore)The systemcore(CM3)is designedto run the Bluetoothlow energyprotocolstackfromthe link layerupto the link layerinterfacesto the radiocorethrougha softwaremodulecalledthe RFdriver,whichsits abovethe RF RF driverrunson the CM3and acts as an interfaceto theradioon the CC2640,and also managesthe powerdomainsof the radiohardwareand the RF drivercan be foundwithinthe RF driveris theTI Bluetoothlow energyprotocolstack,whichis implementedin applicationdevelopershouldinterfacewith the stackthrougha set of APIs(ICall)

10 To implementan enduse rest of this documentintendsto documentapplicationdevelopmenton the CC2640usingthe Bluetoothlow ApplicationConfigurationsFigure2-2 showsthe platformthat supportstwo differentprotocolstackand applicationconfigurations. Singledevice:The controller,host,profiles,and applicationare all implementedon the CC2640as atrue configurationis the simplestand mostcommonwhenusingthe configurationis usedby mostof TI's configurationis the mostcost-effectivetechniqueand providesthe lowest-powerperformance. Simplenetworkprocessor:The SimpleNetworkProcessor(SNP)implementsthe controllerand hostlayersof the ,the SNPexposesan interfacefor schedulingcommunicationbetweenthe stackand an acceleratesdual MCUdesignsbecausethe applicationprocessor(AP)is only responsiblefor managingcustomprofilesand ,suchas security,is implementedon the SNPcurrentlysupportsthe peripheraland the SNPis carriedout throughthe SNPAPI.


Related search queries