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