CalAmp 3030GBT Manual De Usuario

Descargar
Página de 11
 
Application Note 
Version:
 
1.0 
 
Feature
:   
Bluetooth Support  
Page #: 
8 of 11
 
 
3.8  Verification of  LMU configuration for BLE “connection” mode example.  
LMU BT driver  “DISCOVERED” state can be verified by observing the following debug log 
lines:                                                                                                                                        
 “BLE rx cmd:DISCOVERY,2,9059AF0AA9A9,0,-67,1,020105”                                                                          
LMU BT driver  “CONNECTED” state can be verified by observing the following debug log 
lines:    “BLE rx cmd:CONNECT,1,1,0,9059AF0AA9A9”   , where 1 is the connection handler 
index, 1-Low Energy mode, 0 – not paired,  9059AF0AA9A9 – remote device address.      
The line: “BLE: Connected”   indicates that the connection is achieved.                              
It is important to note that the connection handler index is returned by BTCS and is arbitrary 
number ranging from 0 to 65535. The same connection handler index must be used to send 
the user messages as explained in 4.1.  
ATCS? Command will return the connection handler index: 
SERMSG: Rcvd Msg:  
41 54 43 53 2C 31 2C 31 2C 30 2C 39 30 35 39 41 46 30 41 41 39 41 39 0D  
The above debug log line when  converted to ASCII format is: ATCS,1,1,0,9059AF0AA9A9 
where 1: connection handler index, 1: BLE mode, 0-not paired,  9059AF0AA9A9 
is the BLE remote device MAC address. 
3.9  Verification of  LMU BLE “Advert broadcast scanning” mode 
configuration  example.  
The debug log indicates when the final LMU BLE “Scanning” state is reached by:                
BLE: Scanning 
The KeyFob “Button 1 Press” event user message  looks like the following: 
SERMSG: Rcvd Msg:                                                                                                                               
44 49 53 43 4F 56 45 52 59 2C 32 2C 30 30 30 37 38 30 36 37 41 33 35 44 2C 30 2C 2D 36 36 
2C 33 2C 30 32 30 31 30 36 2D 30 32 30 41 30 33 2D 30 35 30 31 46 46 46 46 35 42 30 31 0D 
The above message when converted to ASCII format looks like the following: 
DISCOVERY,2,00078067A35D,0,-66,3,020106-020A03-0501FFFF5B01, where  
•  2 is the GAP advertising report type: LE Connectable and undirected, Connectable 
and Scannable, 3 – LE Connectable Direct Advertisement, Connectable only, 4- LE 
Scannable Indirect Advertisement, Scannable only,  5- LE Non-connectable Indirect 
Advertisement, Not connectable or scannable, 6- LE Scan Response.                   
•  00078067CD72 is the MAC address.                                                                                                  
•  0-public, 1- Random LE address type.                                                                                                                          
•  -66 is RSSI Received Signal Strength indication value of the last packet received in 
dBm.