Version: Application Note Feature: Bluetooth Support LMU Bluetooth Chipset Application Note Boris Velev 1.
Version: Application Note Feature: Bluetooth Support 1.0 Page #: 2 of 11 1 Introduction ........................................................................................................................ 3 2 Description.......................................................................................................................... 3 3 Setup ................................................................................................................................... 4 3.
Version: Application Note Feature: Bluetooth Support 1.0 Page #: 3 of 11 1 Introduction This application note documents the use of Bluetooth chipset device based on TI MSP430F5438A microcontroller and CC2564 RF processor. The BTCS device has Bluetooth LE4.0 dual mode capabilities. The firmware is based on Stonestreet One Bluetopia protocol stack. The document uses as an example the Texas Instruments CC 2541 Sensor Tag with the purpose of reading the temperature from TI TMP006 temperature sensor.
Version: Application Note Feature: 1.0 Page #: Bluetooth Support User Serial Tx Data 4 of 11 BLE “AT cmd” Parser BT_DRV BT STREAM BTCS BT_ Sensor SPP BT STREAM BT_DRV BTCS BT_ Sensor User Serial Rx Data Figure 1 3 Setup 3.1 LMU BT LE driver streams and serial port configuration parameters setup example. Map debug stream to Aux1 port. AT$APP PARAM 3072,3,0 Bluetooth stream to AUX 2.
Version: Application Note Feature: Bluetooth Support 1.0 Page #: 5 of 11 Turn off stream for User 0: at$app param 3072,0,255 Map Debug stream to BT_port: at$app param 3072,3,8 Reset LMU : ATRESET LMU debug log will be visible on BT remote Android device console upon connection. The connection process is initiated by Android master device. 3.3 LMU Bluetooth driver configuration parameters setup. PID 2082 holds up to 8 remote device addresses 6 Bytes long.
Version: Application Note Feature: Bluetooth Support 1.0 Page #: 3.4 LMU user serial message configuration parameters setup example.
Version: Application Note Feature: Bluetooth Support 1.0 Page #: 6:PEG Serial -7:VBUS -8:GPS Rcvr 5:GPS 115200 8/N/1 9:AltMdm 1:Aux2 115200 8/N/1 10:HostApp0 -11:HostApp1 -12:HostApp2 -13:Undef. -14:BlueTooth 1:Aux2 115200 8/N/1 15:Undef. -16:Undef. -17:Undef. -18:Undef. -19:Undef. -OK AUX2 must only have one stream assigned to it, so the AltMdm stream must be moved: at$app param 3072,9,3 This command will move the AltMdm stream to the daughterboard port. at$app param 3072,9,255 will disable it.
Version: Application Note Feature: Bluetooth Support 1.0 Page #: 8 of 11 3.8 Verification of LMU configuration for BLE “connection” mode example.
Version: Application Note Feature: Bluetooth Support 1.0 Page #: 9 of 11 3 is number of advertising report data entries. 02 is the first advertisement report data length in Bytes. 01 is the first report advertisement type. 06 is the first report advertising data byte. 020A03 is the second AD report. 0501FFFF5B01 is the third AD report. The user data is in the third AD report-5B: 91% battery charge remaining, 01 :Button 1 is pressed. 4 Usage 4.1 Demonstration of LMU BT SPP mode.
Version: Application Note Feature: Bluetooth Support 1.0 Page #: 10 of 11 There is a limitation of the length of the command which has to be less than 32 BYTES. 4.2.1 Send command “Enable notifications on Temperature sensor attribute profile”. Populate the “Data” field in Figure 2 with the hexadecimal representation of ATGW,1,38,2,1 - 0x415447572C312C33382C322C31. Where ATGW is the BTCS API for characteristic “WRITE” (GATT WRITE).
Version: Application Note Feature: Bluetooth Support 4.2.5 1.0 Page #: 11 of 11 Send command “Stop” temperature conversion. Populate the data field in Figure 2 with the hexadecimal representation of ATGW,1,41,1,0 0x415447572C312C34312C312C30 4.2.6 “GPSTRAX” server report contains temperature sensor data. 10/22/2013 20:21:45 486100 0011 36.7 926 0 0 0A474154545F56414C2C312C303033372C312C34 2C43444646463430420D 4.