This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2564MODA: [CC2564] Device is not connectable and not advertising after bluetopia stack initialization

Part Number: CC2564MODA
Other Parts Discussed in Thread: MSP432E401Y, CC2564, CC2564C, MSP-EXP432E401Y, CC2564MODNEM,

Hi,

I am using MSP432E401Y with CC2564MODA Bluetooth module. At this moment I am able to communicate with the module using the bluetopia stack.

I am calling InitializeApplication() function successfully we can find on SPPDemo.c file (\Samples\SPPDemo). After initialize the Bluetooth Stack, I am able to open the SPP server using OpenServer() and I call periodically BTPS_ProcessScheduler(). But at this point, my device is not advertising neither accepts Bluetooth connections.

When running my code, this output is provided on the debug console:

OpenStack().
Bluetooth Stack ID: 1
Device Chipset: 4.1
BTPS Version  : 4.0.3.0
Project Type  : 6
FW Version    : 7.26
LOCAL BD_ADDR: CC:78:AB:7D:84:B8
Local Device Name(): MY_BTH_DEVICE
Server Opened: 1.

All mode are OK when I query for the current mode parameters using GAP_Query_Connectability_Mode(), GAP_Query_Discoverability_Mode() and GAP_Query_Pairability_Mode().

Can someone tell me what procedures should I take to detect any anomalies?

Best Regards
Nuno Dias

----------------------------------------------------------

Bellow some code snippets I am extracted from bluetopia  stack samples:

int bluetooth_init(void)

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
int bluetooth_init(void) {
DEBUG_MSG("");
int Result;
BTPS_Initialization_t BTPS_Initialization;
HCI_DriverInformation_t HCI_DriverInformation;
HCI_HCILLConfiguration_t HCILLConfig;
HCI_Driver_Reconfigure_Data_t DriverReconfigureData;
/* Configure the hardware for its intended use. */
HAL_ConfigureHardware();
/* Configure the UART Parameters nd Initialize the Bluetooth Stack. */
HCI_DRIVER_SET_COMM_INFORMATION(&HCI_DriverInformation, 1, HAL_HCI_UART_MAX_BAUD_RATE, cpHCILL_RTS_CTS);
HCI_DriverInformation.DriverInformation.COMMDriverInformation.InitializationDelay = 100;
/* Set up the application callbacks. */
BTPS_Initialization.GetTickCountCallback = getTickCountCallback;
BTPS_Initialization.MessageOutputCallback = msgOutputCallback;
/* Initialize the application. */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


int InitializeApplication(HCI_DriverInformation_t *HCI_DriverInformation, BTPS_Initialization_t *BTPS_Initialization)

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* The following function is used to initialize the application */
/* instance. This function should open the stack and prepare to */
/* execute commands based on user input. The first parameter passed */
/* to this function is the HCI Driver Information that will be used */
/* when opening the stack and the second parameter is used to pass */
/* parameters to BTPS_Init. This function returns the */
/* BluetoothStackID returned from BSC_Initialize on success or a */
/* negative error code (of the form APPLICATION_ERROR_XXX). */
int InitializeApplication(HCI_DriverInformation_t *HCI_DriverInformation, BTPS_Initialization_t *BTPS_Initialization)
{
int ret_val = APPLICATION_ERROR_UNABLE_TO_OPEN_STACK;
/* Initialize some defaults. */
SerialPortID = 0;
bthRole = BTH_ROLE_NONE;
NumberofValidResponses = 0;
/* Next, makes sure that the Driver Information passed appears to be */
/* semi-valid. */
if((HCI_DriverInformation) && (BTPS_Initialization))
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX