Hi,
SDK:simplelink_cc23xx_sdk_6_40_00_21_eng
Board:LP-EM-CC2340R5
I imported basic_ble project as peripheral from simplelink_cc23xx_sdk_6_40_00_21_eng, the uart output looks fine.
But when I connect to the board by my mobile, the DevInfoService and SimpleProfile do not work.
It only shows Advertisement data:

I add Display_printf to check the Data_start() returned SUCCESS(0x00).
void App_StackInitDoneHandler(gapDeviceInitDoneEvent_t *deviceInitDoneData)
{
bStatus_t status = SUCCESS;
// Open Display.
openDisplay();
// Print the device address
Display_printf(dispHandle, dispIndex, 0,
"#%5d BLE Device Address %s",
dispIndex,
BLEAppUtil_convertBdAddr2Str(deviceInitDoneData->devAddr)); dispIndex++;
#if defined( HOST_CONFIG ) && ( HOST_CONFIG & ( PERIPHERAL_CFG ) )
// Any device that accepts the establishment of a link using
// any of the connection establishment procedures referred to
// as being in the Peripheral role.
// A device operating in the Peripheral role will be in the
// Slave role in the Link Layer Connection state.
status = Peripheral_start();
// TODO: Call Error Handler
#endif
#if defined( HOST_CONFIG ) && ( HOST_CONFIG & ( BROADCASTER_CFG ) )
// A device operating in the Broadcaster role is a device that
// sends advertising events or periodic advertising events
status = Broadcaster_start();
// TODO: Call Error Handler
#endif
#if defined( HOST_CONFIG ) && ( HOST_CONFIG & ( CENTRAL_CFG ) )
// A device that supports the Central role initiates the establishment
// of an active physical link. A device operating in the Central role will
// be in the Master role in the Link Layer Connection state.
// A device operating in the Central role is referred to as a Central.
status = Central_start();
// TODO: Call Error Handler
#endif
#if defined( HOST_CONFIG ) && ( HOST_CONFIG & ( OBSERVER_CFG ) )
// A device operating in the Observer role is a device that
// receives advertising events or periodic advertising events
status = Observer_start();
// TODO: Call Error Handler
#endif
#if defined( HOST_CONFIG ) && ( HOST_CONFIG & ( PERIPHERAL_CFG | CENTRAL_CFG ) )
status = Pairing_start();
Display_printf(dispHandle, dispIndex, 0,
"#%5d Pairing_start status %d",
dispIndex,
status); dispIndex++;
// TODO: Call Error Handler
#ifndef OAD_CFG
status = Data_start();
// TODO: Call Error Handler
Display_printf(dispHandle, dispIndex, 0,
"#%5d Data_start status %d",
dispIndex,
status); dispIndex++;
#endif
#endif
#if defined( HOST_CONFIG ) && ( HOST_CONFIG & ( PERIPHERAL_CFG | CENTRAL_CFG )) && defined(OAD_CFG)
status = BLEAppUtil_oadStartService(&App_OADGrantPermissionCallback);
// TODO: Call Error Handler
#endif
}
| # 0 BLE Device Address 0x806FB01E350D # 1 Peripheral_start: Register Handlers # 2 Peripheral_start: Init Adv Set 1 # 3 Peripheral_start: Start Adv Set 1 # 4 Pairing_start: Register Handlers # 5 Pairing_start status 0 # 6 Data_start: Register Handlers # 7 Data_start: Add Services # 8 Data_start status 0 # 9 ADV_START_AFTER_ENABLE: Peripheral role, advhandle: 0 |
Is there something I need to set?
Thanks



