20100705154639!MSP430BT5190_CC2560_Developers_Guide

Please download to get full document.

View again

of 141
7 views
PDF
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Document Description
gfdfgdf
Document Share
Documents Related
Document Tags
Document Transcript
   MindTree Limited 17-June-2010 Page 1 of 141 MSP430BT5190+CC2560 EtherMind Bluetooth SDK Developer's Guide MSP430BT5190+CC2560 EtherMind Bluetooth SDK Developer's Guide 17 June 2010 MindTree Limited, Global Village Campus, RVCE Post, Bangalore - 560 059 www.mindtree.com    MindTree Limited 17-June-2010 Page 2 of 141 MSP430BT5190+CC2560 EtherMind Bluetooth SDK Developer's Guide Table of Contents   ABSTRACT....................................................................................................................7   Revision History.............................................................................................................8   Introduction.................................................................................................................9   Requirements...............................................................................................................11   Hardware.................................................................................................................11   Software..................................................................................................................14   Software Architecture....................................................................................................14   Software tasks...........................................................................................................15   Semaphores...........................................................................................................16   Flow Diagrams........................................................................................................17   Considerations to be taken while customizing the application..................................................19   Creating additional tasks............................................................................................19   Creating additional semaphores...................................................................................19   Handling ISRs..........................................................................................................19   Memory Management...................................................................................................20   Directory Structure.....................................................................................................21   Building Bluetooth SDK Components for MSP430.....................................................................22   Installation of Bluetooth SDK Components............................................................................23   EtherMind Stack API & Profile Libraries for MSP430 with IAR.................................................23   Configuring EtherMind Stack API Library...............................................................................24   Setup for the Temperature Application................................................................................36   Navigating the menu on the LCD........................................................................................40   Examples of Menu Navigation.........................................................................................40   BLUETOOTH MENU...................................................................................................40   SETTINGS MENU.......................................................................................................41   INFO MENU............................................................................................................41   LCD status indications....................................................................................................41     MindTree Limited 17-June-2010 Page 3 of 141 MSP430BT5190+CC2560 EtherMind Bluetooth SDK Developer's Guide LED status indications.....................................................................................................42   LCD backlight control.....................................................................................................42   Low power mode configurations........................................................................................42   LPM implementation in sample SPP application...................................................................43   LPM and Bluetooth stack considerations............................................................................44   Maximum output power configurations for CC2560 Bluetooth Controller........................................44   sdk_set_max_output_power () .....................................................................................44   Flight Mode for CC2560 Bluetooth controller.........................................................................44   eHCILL mode...............................................................................................................44   Sniff mode..................................................................................................................47   Sequence chart for Sniff Mechanism:................................................................................47   APIs........................................................................................................................47   APIs for controlling the SPP application...............................................................................49   General Stack APIs......................................................................................................49   EtherMind Stack Initialization......................................................................................49   Switching Bluetooth On.............................................................................................50   Switching Bluetooth Off.............................................................................................51   SPP APIs..................................................................................................................52   BT_spp_init () .........................................................................................................52   BT_spp_start () .......................................................................................................53   BT_spp_connect () ...................................................................................................53   BT_spp_disconnect () ................................................................................................54   BT_spp_send() ........................................................................................................54   BT_spp_stop() .........................................................................................................55   Application Callback....................................................................................................55   Callback Prototype...................................................................................................56   Possible Events Received (Possible Values for parameter SPP_EVENTS)....................................56   Interpretation of parameters of application callback..........................................................56     MindTree Limited 17-June-2010 Page 4 of 141 MSP430BT5190+CC2560 EtherMind Bluetooth SDK Developer's Guide SPP Handle...............................................................................................................57   SPP Scenarios – Message Sequence Chart (MSC)....................................................................58   Initialization..........................................................................................................59   SPP Connection Establishment.....................................................................................60   SPP Connection Release.............................................................................................62   SPP Shutdown with active connection............................................................................63   SDP APIs..................................................................................................................63   BT_sdp_open..........................................................................................................64   BT_sdp_close..........................................................................................................64   BT_sdp_servicesearchattributerequest...........................................................................65   SDP Structures/Data Types............................................................................................66   SDP Handle............................................................................................................66   SDP Callback.............................................................................................................67   SDP Response Callback..............................................................................................67   SDP Utility APIs..........................................................................................................69   BT_sdp_get_channel_number......................................................................................70   SDP_SET_HANDLE.....................................................................................................70   GAP APIs..................................................................................................................71   1) Device Setup APIs.................................................................................................74   BT_hci_reset..........................................................................................................74   2) Controller Information APIs.....................................................................................74   BT_hci_read_local_version_information..........................................................................74   BT_hci_get_local_bd_addr..........................................................................................75   3) Controller Configuration APIs...................................................................................76   BT_hci_change_local_name........................................................................................76   BT_hci_write_class_of_device.....................................................................................76   BT_hci_read_current_iac_lap......................................................................................77   BT_hci_write_current_iac_lap.....................................................................................78  
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks