SWRU581 March   2021 CC2564C , CC2564MODA , CC2564MODN , WL1831

 

  1.   Trademarks
  2. Introduction
  3. Bluetopia
  4. Bluetopia Platform Manager (BluetopiaPM)
  5. Hardware Requirements
  6. Software Requirements
  7. Stack Supported Features
  8. TI BluetopiaPM Stack Linux Architecture
  9. Installing Bluetopia Platform Manager
  10. BluetopiaPM Architecture
    1. 9.1 Installation Directory Structure
    2. 9.2 BluetopiaPM Structure
  11. 10The BluetopiaPM Server – Pairing Mode
  12. 11Platform Integration
    1. 11.1 Build BluetopiaPM
      1. 11.1.1 Modification of the PM Build Environment
  13. 12Adding BluetopiaPM to the SD Card
    1. 12.1 Sample Applications
    2. 12.2 Gstreamer Plugin
    3. 12.3 VNET Plugin
      1. 12.3.1 Voice Over BLE Python Script
    4. 12.4 Init-scripts
    5. 12.5 Bluetooth Hardware Configuration Script
  14. 13Terminal Connection
  15. 14Running a Sample Application
  16. 15BluetopiaPM Samples
  17.   A C256X EVM Modifications for COM8 Connector
  18.   B Bluetopia Build Log for Reference
  19.   C Sample Run
  20.   D Using the CC256x Service Pack With Linux (TI-BT-4-2-STACK-LINUX-ADDON)

Sample Run

am335x-evm login: root                                                                                                            
root@am335x-evm:~#                                                                                                                
root@am335x-evm:~# ls -l ~/tibt/config                                                                                            
-rw-r--r--    1 root     root            62 Nov 13 03:38 /home/root/tibt/config                                                  
root@am335x-evm:~# cat ~/tibt/config                                                                                              
nshutdown_gpio=3                                                                                                                  
tty=/dev/ttyS1                                                                                                                    
flow_cntrl=1                                                                                                                      
baud_rate=115200                                                                                                                  
root@am335x-evm:~#                                                                                                                
root@am335x-evm:~# cd BluetopiaPM                                                                                                
root@am335x-evm:~/BluetopiaPM#                                                                                                    
root@am335x-evm:~/BluetopiaPM#                                                                                                    
root@am335x-evm:~/BluetopiaPM# ./SS1BTPM &                                                                                        
[1] 867                                                                                                                          
root@am335x-evm:~/BluetopiaPM# ./LinuxDEVM                                                                                        
                                                                                                                                 
******************************************************************                                                                
* Command Options: 1) Initialize                                 *                                                                
*                  2) Cleanup                                    *                                                                
*                  3) QueryDebugZoneMask                         *                                                                
*                  4) SetDebugZoneMask                           *                                                                
*                  5) SetDebugZoneMaskPID                        *                                                                
*                  6) ShutdownService                            *                                                                
*                  7) RegisterEventCallback,                     *                                                                
*                  8) UnRegisterEventCallback,                   *                                                                
*                  9) QueryDevicePower                           *                                                                
*                  10)SetDevicePower                             *                                                                
*                  11)QueryLocalDeviceProperties                 *                                                                
*                  12)SetLocalDeviceName                         *                                                                
*                  13)SetLocalClassOfDevice                      *                                                                
*                  14)SetDiscoverable                            *                                                                
*                  15)SetConnectable                             *                                                                
*                  16)SetPairable                                *                                                                
*                  17)StartDeviceDiscovery                       *                                                                
*                  18)StopDeviceDiscovery                        *                                                                
*                  19)QueryRemoteDeviceList                      *                                                                
*                  20)QueryRemoteDeviceProperties                *                                                                
*                  21)AddRemoteDevice                            *                                                                
*                  22)DeleteRemoteDevice                         *                                                                
*                  23)UpdateRemoteDeviceAppData                  *                                                                
*                  24)DeleteRemoteDevices                        *                                                                
*                  25)PairWithRemoteDevice                       *                                                                
*                  26)CancelPairWithRemoteDevice                 *                                                                
*                  27)UnPairRemoteDevice                         *                                                                
*                  28)QueryRemoteDeviceServices                  *                                                                
*                  29)QueryRemoteDeviceServiceSupported          *                                                                
*                  30)QueryRemoteDevicesForService               *                                                                
*                  31)QueryRemoteDeviceServiceClasses            *                                                                
*                  32)AuthenticateRemoteDevice                   *                                                                
*                  33)EncryptRemoteDevice                        *                                                                
*                  34)ConnectWithRemoteDevice                    *                                                                
*                  35)DisconnectRemoteDevice                     *                                                                
*                  36)SetRemoteDeviceLinkSniff                   *                                                                
*                  37)SetRemoteDeviceLinkActive                  *                                                                
*                  38)CreateSDPRecord                            *                                                                
*                  39)DeleteSDPRecord                            *                                                                
*                  40)AddSDPAttribute                            *                                                                
*                  41)DeleteSDPAttribute                         *                                                                
*                  42)EnableBluetoothDebug                       *                                                                
*                  43)RegisterAuthentication                     *                                                                
*                  44)UnRegisterAuthentication                   *                                                                
*                  45)PINCodeResponse                            *                                                                
*                  46)PassKeyResponse                            *                                                                
*                  47)UserConfirmationResponse                   *                                                                
*                  48)ChangeSimplePairingParameters              *                                                                
*                  49)EnableFeature                              *                                                                
*                  50)DisableFeature                             *                                                                
*                  51)QueryActiveFeatures                        *                                                                
*                  52)SendRawHCICommand                          *                                                                
*                  53)SendHCIVSCommand (Example)                 *                                                                
*                  Help, Quit.                                   *                                                                
******************************************************************                                                                
DEVM>1 1                                                                                                                          
                                                                                                                                 
BTPM_Initialize() Success: 0.                                                                                                    
DEVM_RegisterEventCallback() Success: 5.                                                                                          
DEVM>10 1                                                                                                                        
                                                                                                                                 
echo 3 > /sys/class/gpio/export                                                                                                  
echo out > /sys/class/gpio/gpio3/direction                                                                                        
echo 0 > /sys/class/gpio/gpio3/value                                                                                              
echo 1 > /sys/class/gpio/gpio3/value                                                                                              
echo 0 > /sys/class/gpio/gpio3/value                                                                                              
echo 1 > /sys/class/gpio/gpio3/value                                                                                              
[  127.268181] NET: Registered protocol family 15                                                                                
[  127.409250] Initializing XFRM netlink socket                                                                                  
BT COMM PORT (/dev/ttyS1): 1                                                                                                      
Status: Executing BTS Script /lib/firmware/TIInit_11.8.32.bts.                                                                    
Status: BTS Script successfully executed.                                                                                        
DEVM_PowerOnDevice() Success: 0.                                                                                                  
DEVM>                                                                                                                            
Device Powered On.                                                                                                                
DEVM>44                                                                                                                          
                                                                                                                                 
DEVM_UnRegisterAuthentication() Success.                                                                                          
DEVM>StartDeviceDiscovery                                                                                                        
                                                                                                                                 
Usage: StartDeviceDiscovery [Duration].                                                                                          
Function Error.                                                                                                                  
DEVM>StartDeviceDiscovery 100                                                                                                    
                                                                                                                                 
Attempting to Start Discovery (100 Seconds).                                                                                      
                                                                                                                                 
Local Device Properties Changed.                                                                                                  
DEVM>                                                                                                                            
Device Discovery Started.                                                                                                        
DEVM>DEVM_StartDeviceDiscovery() Success: 0.                                                                                      
DEVM>                                                                                                                            
Remote Device Found.                                                                                                              
BD_ADDR:       34F39ACA601A                                                                                                      
COD:           0x0C012A                                                                                                          
Device Name:   LTA0868345B                                                                                                        
Device Flags:  0x80000601                                                                                                        
         NAME_KNOWN                                                                                                              
         EIR_DATA_KNOWN                                                                                                          
RSSI:          -48                                                                                                                
Trans. Power:  7                                                                                                                  
Friendly Name:                                                                                                                    
App. Info:   : 00000000                                                                                                          
Paired State : FALSE                                                                                                              
Connect State: FALSE                                                                                                              
Encrypt State: FALSE                                                                                                              
Sniff State  : FALSE                                                                                                              
Serv. Known  : FALSE                                                                                                              
DEVM>                                                                                                                            
Remote Device Found.                                                                                                              
BD_ADDR:       4CEB426EE54B                                                                                                      
COD:           0x0C012A                                                                                                          
Device Name:   RAJANI-PC                                                                                                          
Device Flags:  0x80000601                                                                                                        
         NAME_KNOWN                                                                                                              
         EIR_DATA_KNOWN                                                                                                          
RSSI:          -80                                                                                                                
Trans. Power:  4                                                                                                                  
Friendly Name:                                                                                                                    
App. Info:   : 00000000                                                                                                          
Paired State : FALSE                                                                                                              
Connect State: FALSE                                                                                                              
Encrypt State: FALSE                                                                                                              
Sniff State  : FALSE                                                                                                              
Serv. Known  : FALSE