Hi
I tried to test Bluetooth SPPLE on demo QCLI. The problem is that although I could set up the connection between two devices (1 is QCA4020, the other is QCA4024), i could not carry out some SPPLE test commands (such as SendDataCommand,etc.)
These are command lines I did on 2 devices:
--------------------------------------------------------------------------------------------------------
1. DEVICE 1:
BLE> InitializeBluetooth
BLE: OpenStack().
BLE: Bluetooth Stack ID: 1.
BLE: Device Chipset: 5.0.
BLE: Number ACL Buffers: 16, ACL Buffer Size: 81
BLE: HCI Event Registration Successful.
BLE: ACL Data Callback Registration Successful.
BLE: BD_ADDR: 0x00001D123456
BLE: Connection Tx Power: 4.
BLE: Initialized 6LoWPAN layer for BLE.
BLE> spple
BLE\SPPLE> RegisterSPPLE
BLE\SPPLE: Successfully registered SPPLE Service, ServiceID = 5.
BLE\SPPLE> up
BLE> advertisele 1
BLE: Advertising Channel Tx Power: 4.
BLE: The 128-bit SPPLE Service UUID CANNOT fit in the scan response data.
BLE: GAP_LE_Advertising_Enable success, Advertising Interval Range: 100 - 20.
BLE\SPPLE> ConfigureSPPLE
BLE\SPPLE: No SPPLE Service discovered on device.
BLE\SPPLE> senddatacommand 32
BLE\SPPLE: SPPLE has not been configured
2. DEVICE 2
BLE> InitializeBluetooth
BLE: OpenStack().
BLE: Bluetooth Stack ID: 1.
BLE: Device Chipset: 5.0.
BLE: Number ACL Buffers: 16, ACL Buffer Size: 81
BLE: HCI Event Registration Successful.
BLE: ACL Data Callback Registration Successful.
BLE: BD_ADDR: 0x200200F0FD8C
BLE: Connection Tx Power: 4.
BLE: Initialized 6LoWPAN layer for BLE.
BLE> connectle 0 00001D123456 0
BLE: Connection Request successful.
BLE: Scan Parameters: Window 50, Interval 100.
BLE: Connection Parameters: Interval Range 50 - 200, Slave Latency 0.
BLE: Using White List: No.
BLE>
BLE>
BLE> displayremotedevices
BLE>
BLE: etLE_Connection_Complete with size 24.
BLE: Status: 0x00.
BLE: Role: Master.
BLE: Address Type: QAPI_BLE_LAT_PUBLIC_E.
BLE: BD_ADDR: 0x00001D123456.
BLE: Connection Interval: 50.
BLE: Slave Latency: 0.
BLE\SPPLE> senddatacommand 32
BLE\SPPLE: SPPLE has not been configured
BLE\SPPLE> configurespple
BLE\SPPLE: No SPPLE Service discovered on device.
----------------------------------------------------------------------------------------------
I wonder if SPPLE demo between two devices works OK or not.
and If it works, please let me know how to set up, etc.
Thanks
Son Le
Hi Son Le,
> BLE SPPLE RegisterSPPLE
> BLE AdvertiseLE 1
> BLE ConnectLE 0 <BLE_DEV1_ADDR> 0
> BLE DiscoverServices
> BLE SPPLE ConfigureSPPLE
BLE: BD_ADDR: 0x00001D123456
BLE: Initialized 6LoWPAN layer for BLE.
BLE\SPPLE: Successfully registered SPPLE Service, ServiceID = 9.
BLE: Advertising Channel Tx Power: 4.
BLE\SPPLE: Send Complete, Sent 32.
Device 2:
BLE: BD_ADDR: 0x9401007F0300
BLE: Initialized 6LoWPAN layer for BLE.
BLE: Connection Request successful.
BLE: Valid SPPLE Service Found.
BLE\SPPLE: SPPLE Service found on remote device
BLE\SPPLE: Read: 32 bytes.
BLE\SPPLE: Read: Data: 0x7E 0x21
Regards,
Raja Pedada