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.

WL1835MOD: How to log the HCI commands send from Bluetopia PM to bluetooth chip?

Part Number: WL1835MOD

Tool/software:

Hello TI,

I want to log the data stream between Bluetopia PM and the hardware. I can I do that?

I tried with this snipped in my app but do not get any output:

static int SetBluetoothDebug()
{
    char* filename = "/home/root/debuglog.dat";
    Boolean_t remote = FALSE;
    int Result = BTPM_SetDebugZoneMask(remote, 0xFFFFFFFF);
    if(Result != 0) {
        printf("BTPM_SetDebugZoneMask(%s) Failure: %d, %s.\n", remote?"Remote":"Local", Result, ERR_ConvertErrorCodeToString(Result));
        return -4;
    }
    // DEVM_BLUETOOTH_DEBUG_TYPE_ASCII_LOG_FILE DEVM_BLUETOOTH_DEBUG_TYPE_FTS_LOG_FILE
     Result = DEVM_EnableBluetoothDebug(TRUE, DEVM_BLUETOOTH_DEBUG_TYPE_ASCII_LOG_FILE, 0, strlen(filename), filename);
    if(Result != 0) {
       printf("DEVM_EnableBluetoothDebug(%s) Failure: %d, %s.\n","TRUE", Result, ERR_ConvertErrorCodeToString(Result));
       Result = -4;
    }
    return Result;
}

I added these defines before I build the Bluetopia PM:

CFLAGS += $(INCLUDES) -DDEBUG_ENABLED -DDEBUG_ZONES=31