工具与软件:
您好、TI:
我想记录 Bluetopia PM 和硬件之间的数据流。 我可以这么做吗?
我在我的应用中尝试了这种缺口,但没有得到任何输出:
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; }
在构建 Bluetopia PM 之前、我添加了以下定义:
CFLAGS += $(INCLUDES) -DDEBUG_ENABLED -DDEBUG_ZONES=31