如何编译并打开微软蓝牙协议栈的LOG
2011-05-19 21:12
381 查看
1. 如何编译并打开微软蓝牙协议栈的LOG
1.1 微软协议栈在哪里
以WinCE6.0为例,在文件夹/PRIVATE/WINCEOS/COMM/BLUETOOTH下。2.2 如何编译
编译源码从VS2005中进入命令行窗口,切换到/PRIVATE/WINCEOS/COMM/BLUETOOTH下,并执行Build –c(地球人都知道,呵呵)。
编译Dll
切换到PUBLIC/COMMON/CESYSGEN路径下(makefile就在这里,有兴趣可以看一下),运行sysgen btd –p,等待编译结束即可。
2.3 如何打开协议栈的LOG
最好的调试方法,莫过于编译一个Debug Version的协议栈代码,然后通过如下注册表配置的方式打开相关的Debug Zone来进行分析。[HKEY_LOCAL_MACHINE/Software/Microsoft/Bluetooth/Debug] "Mask"=dword:3 // file&uart "Console"=dword:7fffffff // open all debug zone |
#define DEBUG_ERROR 0x00000001 #define DEBUG_WARN 0x00000002 #define DEBUG_OUTPUT 0x00000004 #define DEBUG_VERBOSE 0x00000008 #define DEBUG_SHELL_ALL 0x00000030 #define DEBUG_SHELL_INIT 0x00000010 #define DEBUG_SHELL_TRACE 0x00000020 #define DEBUG_HCI_TRANSPORT_ALL 0x000000c0 #define DEBUG_HCI_DUMP 0x00000040 #define DEBUG_HCI_TRANSPORT 0x00000080 #define DEBUG_HCI_ALL 0x00000f00 #define DEBUG_HCI_INIT 0x00000100 #define DEBUG_HCI_TRACE 0x00000200 #define DEBUG_HCI_PACKETS 0x00000400 #define DEBUG_HCI_CALLBACK 0x00000800 #define DEBUG_L2CAP_ALL 0x000f0000 #define DEBUG_L2CAP_INIT 0x00010000 #define DEBUG_L2CAP_TRACE 0x00020000 #define DEBUG_L2CAP_PACKETS 0x00040000 #define DEBUG_L2CAP_CALLBACK 0x00080000 #define DEBUG_RFCOMM_ALL 0x00f00000 #define DEBUG_RFCOMM_INIT 0x00100000 #define DEBUG_RFCOMM_TRACE 0x00200000 #define DEBUG_RFCOMM_PACKETS 0x00400000 #define DEBUG_RFCOMM_CALLBACK 0x00800000 #define DEBUG_SDP_ALL 0x0f000000 #define DEBUG_SDP_INIT 0x01000000 #define DEBUG_SDP_TRACE 0x02000000 #define DEBUG_SDP_PACKETS 0x04000000 #define DEBUG_SDP_CALLBACK 0x08000000 #define DEBUG_TDI_ALL 0x00f00000 #define DEBUG_TDI_INIT 0x00100000 #define DEBUG_TDI_TRACE 0x00200000 #define DEBUG_TDI_PACKETS 0x00400000 #define DEBUG_TDI_CALLBACK 0x00800000 #define DEBUG_PAN_ALL 0x0000f000 #define DEBUG_PAN_INIT 0x00001000 #define DEBUG_PAN_TRACE 0x00002000 #define DEBUG_PAN_PACKETS 0x00004000 #define DEBUG_PAN_CALLBACK 0x00008000 #define DEBUG_***DTP_ALL 0xf0000000 #define DEBUG_***DTP_INIT 0x10000000 #define DEBUG_***DTP_TRACE 0x20000000 #define DEBUG_***DTP_PACKETS 0x40000000 #define DEBUG_***DTP_CALLBACK 0x80000000 #define OUTPUT_MODE_DEBUG 0 #define OUTPUT_MODE_CONSOLE 1 #define OUTPUT_MODE_FILE 2 |
附带说一句,Debug Version的协议栈可以编译到Release Version的Image中调试起来更加方便。
相关文章推荐
- 如何编译并打开微软蓝牙协议栈的LOG
- 如何编译并打开WinCE Bluetooth Stack的LOG
- 如何编译WinCE Bluetooth Stack并打开的默认LOG
- 如何编译WinCE Bluetooth Stack并打开的默认LOG
- [转的]如何打开opencore/openmax里的log及如何编译opencore时显示命令
- 如何在Android user 版本下打开UART log?
- 如何正确打开华为手机的 USB 调试和 完整 log 功能?
- Visual Studio 2013 配置Boost库。 如何编译和选择,遇到无法打开文件“libboost_thread-vc120-mt-gd-1_58.lib的解决办法
- 新手,Visual Studio 2015 配置Boost库,如何编译和选择,遇到无法打开文件“libboost_thread-vc140-mt-gd-1_63.lib“的解决办法
- 如何编译安装cvs版本的emacs(打开gtk和xft支持)
- 如何查看ld(连接器)的搜索顺序及编译时需要打开的库
- 【tips】如何打开Ibatis的log
- 编译运行symbian程序(如何打开一个symbian工程)
- java封装的jad1.5.8g反编译工具(java如何打开一个选择框)
- 微软的Office 教学示例文件如何在打开时自动打开教学帮助文件
- Visual Studio 2013 配置Boost库。 如何编译和选择,遇到无法打开文件“libboost_thread-vc120-mt-gd-1_58.lib的解决办法
- xcode5编译过的xib 如何在xcode4.6下打开
- Verdi如何编译design并打开
- 新手,Visual Studio 2013 配置Boost库。 如何编译和选择,遇到无法打开文件“libboost_thread-vc120-mt-gd-1_58.lib的解决办法