如何编译并打开WinCE Bluetooth Stack的LOG
2012-05-10 18:03
302 查看
1
微软协议栈在哪里
以WinCE6.0为例,在文件夹/PRIVATE/WINCEOS/COMM/BLUETOOTH下。2 如何编译
编译源码从VS2005中进入命令行窗口,切换到/PRIVATE/WINCEOS/COMM/BLUETOOTH下,并执行Build –c(地球人都知道,呵呵)。
编译Dll
切换到PUBLIC/COMMON/CESYSGEN路径下(makefile就在这里,有兴趣可以看一下),运行sysgen
btd –p,等待编译结束即可。
3 如何打开协议栈的LOG
最好的调试方法,莫过于编译一个Debug Version的协议栈代码,然后通过如下注册表配置的方式打开相关的DebugZone来进行分析。
[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_AVDTP_ALL 0xf0000000 #define DEBUG_AVDTP_INIT 0x10000000 #define DEBUG_AVDTP_TRACE 0x20000000 #define DEBUG_AVDTP_PACKETS 0x40000000 #define DEBUG_AVDTP_CALLBACK 0x80000000 #define OUTPUT_MODE_DEBUG 0 #define OUTPUT_MODE_CONSOLE 1 #define OUTPUT_MODE_FILE 2 |
附带说一句,Debug Version的协议栈可以编译到Release Version的Image中调试起来更加方便。
相关文章推荐
- 如何编译WinCE Bluetooth Stack并打开的默认LOG
- 如何编译WinCE Bluetooth Stack并打开的默认LOG
- 如何编译并打开微软蓝牙协议栈的LOG
- [转的]如何打开opencore/openmax里的log及如何编译opencore时显示命令
- 如何编译并打开微软蓝牙协议栈的LOG
- 修改了WINCE自带的驱动程序后如何编译
- xcode5编译过的xib 如何在xcode4.6下打开
- xcode5编译过的xib 如何在xcode4.6下打开
- 待解决:如何打开lazarus中math.pp下FPDOC_MATH编译选项
- 编译旧C++代码时,如何处理无法打开iostream.h的错误
- xcode5编译过的xib 如何在xcode4.6下打开
- 如何编译安装cvs版本的emacs(打开gtk和xft支持)
- WinCE中如何编译生成NK.nb0
- 如何查看ld(连接器)的搜索顺序及编译时需要打开的库
- Verdi如何编译design并打开
- Turn on/turn off BlueTooth Radio mode in Windows CE(如何在wince中设置蓝牙的无线模式,以使其可被查找到)
- Visual Studio 2013 配置Boost库。 如何编译和选择,遇到无法打开文件“libboost_thread-vc120-mt-gd-1_58.lib的解决办法
- 如何在 Windows Mobile (WinCE 5.0) 中用Vc++编程查找并连接周围的蓝牙(Bluetooth)设备并实现数据通信
- Visual Studio 2013 配置Boost库。 如何编译和选择,遇到无法打开文件“libboost_thread-vc120-mt-gd-1_58.lib的解决办法
- 【tips】如何打开Ibatis的log