SWRA772 august 2023 CC2564C
First establish a connection between the devices. To do this open the LightBlue app, observe a screen similar to the following:
In the SPPLEDemo terminal start the app as a server, register the SPP LE Service, and begin advertising using the Server, RegisterSPPLE, and AdvertiseLE 1 commands. Observe the following in the terminal:
OpenStack().
Bluetooth Stack ID: 1.
Device Chipset: 4.1.
BD_ADDR: 0x0017e9d3581a
Command Options: Server, Client, Help
SPP+LE>Server
Command Options General: Help, GetLocalAddress, SetBaudRate
Quit,
Command Options BR/EDR: Inquiry, DisplayInquiryList, Pair,
EndPairing, PINCodeResponse,
PassKeyResponse,
UserConfirmationResponse,
SetDiscoverabilityMode,
SetConnectabilityMode,
SetPairabilityMode,
ChangeSimplePairingParameters,
GetLocalName, SetLocalName,
GetClassOfDevice, SetClassOfDevice,
GetRemoteName, SniffMode,
ExitSniffMode, Open, Close, Read,
Write, GetConfigParams,
SetConfigParams, GetQueueParams,
SetQueueParams, Loopback,
DisplayRawModeData, AutomaticReadMode,
CBSend.
Command Options GAPLE: SetDiscoverabilityMode,
SetConnectabilityMode,
SetPairabilityMode,
ChangePairingParameters,
AdvertiseLE, StartScanning,
StopScanning, ConnectLE,
DisconnectLE, PairLE,
LEPasskeyResponse,
QueryEncryptionMode, SetPasskey,
DiscoverGAPS, GetLocalName,
SetLocalName, GetLERemoteName,
SetLocalAppearance,
GetLocalAppearance,
GetRemoteAppearance,
Command Options SPPLE: DiscoverSPPLE, RegisterSPPLE, LESend,
ConfigureSPPLE, LERead, Loopback,
DisplayRawModeData, AutomaticReadMode
SPP+LE>RegisterSPPLE
Sucessfully registered SPPLE Service.
SPP+LE>AdvertiseLE 1
GAP_LE_Advertising_Enable success.
Now that SPPLEDemo is advertising, observe the device shown in LightBlue:
Next select the SPPLEDemo device in LightBlue, after doing so, observe the following screen:
In the SPPLEDemo terminal, observe the following:
etLE_Connection_Complete with size 16.
Status: 0x00.
Role: Slave.
Address Type: Random.
BD_ADDR: 0x5cfc3252180b.
SPP+LE>
etGATT_Connection_Device_Connection with size 16:
Connection ID: 2.
Connection Type: LE.
Remote Device: 0x5cfc3252180b.
Connection MTU: 23.
The devices are now connected.