Chinaunix首页 | 论坛 | 博客
  • 博客访问: 305550
  • 博文数量: 43
  • 博客积分: 2071
  • 博客等级: 大尉
  • 技术积分: 488
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-25 17:48
文章分类

全部博文(43)

文章存档

2014年(5)

2013年(4)

2011年(9)

2010年(8)

2009年(17)

我的朋友

分类: 系统运维

2011-07-14 17:33:36

the below is the hci dump log
test environment:
the phone supports 2.1v+EDR, the headset is Motorola HT820 headset, which supports 1.2v.

1. the below log is about "Bluetooth is enabled"
2011-07-14 16:33:37.226745 < HCI Command: Write Class of Device (0x03|0x0024) plen 3
2011-07-14 16:33:37.240264 > HCI Event: Command Complete (0x0e) plen 4
2011-07-14 16:33:37.273406 < HCI Command: Write Extended Inquiry Response (0x03|0x0052) plen 241
2011-07-14 16:33:37.291748 > HCI Event: Command Complete (0x0e) plen 4
2011-07-14 16:33:38.244628 < HCI Command: Write Class of Device (0x03|0x0024) plen 3
2011-07-14 16:33:38.257080 > HCI Event: Command Complete (0x0e) plen 4
2011-07-14 16:33:38.289581 < HCI Command: Write Extended Inquiry Response (0x03|0x0052) plen 241
2011-07-14 16:33:38.306121 > HCI Event: Command Complete (0x0e) plen 4

2. The below log is about "do scanning operation from Bluetooth settings UI"
2011-07-14 16:33:49.749725 < HCI Command: Periodic Inquiry Mode (0x01|0x0003) plen 9
2011-07-14 16:33:49.767272 > HCI Event: Command Complete (0x0e) plen 4
2011-07-14 16:33:50.466430 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:50.997375 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:51.309173 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:51.448577 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:51.478881 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:51.539794 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:51.821166 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:52.121795 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:52.162506 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:54.924774 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:55.274383 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:55.545989 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:55.936981 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:56.527587 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:56.568023 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:56.918762 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:57.250061 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:57.692382 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:58.562896 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:58.623138 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:58.673736 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:58.793914 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:59.064697 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:59.235229 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:33:59.777679 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:34:00.010803 > HCI Event: Inquiry Result with RSSI (0x22) plen 15
2011-07-14 16:34:00.066528 > HCI Event: Inquiry Complete (0x01) plen 1
2011-07-14 16:34:00.073913 < HCI Command: Exit Periodic Inquiry Mode (0x01|0x0004) plen 0
2011-07-14 16:34:00.077331 > HCI Event: Command Complete (0x0e) plen 4

3. the below log is about "try to connect to Motorola HT820 headset from Bluetooth settings UI"
2011-07-14 16:34:16.638122 < HCI Command: Create Connection (0x01|0x0005) plen 13
2011-07-14 16:34:16.654876 > HCI Event: Command Status (0x0f) plen 4
2011-07-14 16:34:16.968444 > HCI Event: PIN Code Request (0x16) plen 6
2011-07-14 16:34:16.977783 < HCI Command: PIN Code Request Reply (0x01|0x000d) plen 23
2011-07-14 16:34:16.981079 > HCI Event: Command Complete (0x0e) plen 10
2011-07-14 16:34:17.155609 > HCI Event: Link Key Notification (0x18) plen 23
2011-07-14 16:34:17.295471 > HCI Event: Connect Complete (0x03) plen 11
2011-07-14 16:34:17.295532 < HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
2011-07-14 16:34:17.304138 > HCI Event: Command Status (0x0f) plen 4
2011-07-14 16:34:17.305206 > HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
2011-07-14 16:34:17.324707 < HCI Command: Remote Name Request (0x01|0x0019) plen 10
2011-07-14 16:34:17.328277 > HCI Event: Command Status (0x0f) plen 4
2011-07-14 16:34:17.358093 > HCI Event: Max Slots Change (0x1b) plen 3
2011-07-14 16:34:17.386444 > HCI Event: Read Remote Supported Features (0x0b) plen 11
2011-07-14 16:34:17.390472 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:17.413848 > HCI Event: Remote Name Req Complete (0x07) plen 255
2011-07-14 16:34:17.430053 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:17.466674 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:17.492828 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:17.494079 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:17.522857 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:17.564819 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:17.582916 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:17.612945 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:17.662109 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:17.681549 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:17.707183 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:17.747924 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:18.052825 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:18.760589 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:18.872955 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:18.874084 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:18.896606 < HCI Command: Authentication Requested (0x01|0x0011) plen 2
2011-07-14 16:34:18.897644 > HCI Event: Command Status (0x0f) plen 4
2011-07-14 16:34:18.898315 > HCI Event: Link Key Request (0x17) plen 6
2011-07-14 16:34:18.899780 < HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
2011-07-14 16:34:18.906616 > HCI Event: Command Complete (0x0e) plen 10
2011-07-14 16:34:18.966979 > HCI Event: Auth Complete (0x06) plen 3
2011-07-14 16:34:18.967040 < HCI Command: Set Connection Encryption (0x01|0x0013) plen 3
2011-07-14 16:34:18.968078 > HCI Event: Command Status (0x0f) plen 4
2011-07-14 16:34:18.968444 > HCI Event: Encrypt Change (0x08) plen 4
2011-07-14 16:34:18.991851 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:19.275451 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:19.638336 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:19.643768 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:19.662963 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:19.790496 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:20.016601 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:20.292816 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:20.394592 > HCI Event: Encrypt Change (0x08) plen 4
2011-07-14 16:34:20.568267 > HCI Event: Role Change (0x12) plen 8
2011-07-14 16:34:20.598815 > HCI Event: Max Slots Change (0x1b) plen 3
2011-07-14 16:34:20.670562 > HCI Event: Encrypt Change (0x08) plen 4
2011-07-14 16:34:20.827880 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:20.829284 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:20.832885 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:20.872894 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:21.165985 > HCI Event: Link Supervision Timeout Change (0x38) plen 4
2011-07-14 16:34:21.166473 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:21.167755 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:21.231628 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:21.232788 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:21.466583 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:21.616577 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:21.667846 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:21.798736 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:21.934753 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:21.936126 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:22.097473 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:22.100433 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:22.289947 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:22.419494 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:22.422790 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:22.480224 > HCI Event: Link Supervision Timeout Change (0x38) plen 4
2011-07-14 16:34:22.665069 > HCI Event: Link Supervision Timeout Change (0x38) plen 4
2011-07-14 16:34:27.548858 > HCI Event: Mode Change (0x14) plen 6

4. Connection is ok at this point. The below log is about "will start a MT call"
2011-07-14 16:34:57.001983 < HCI Command: Exit Sniff Mode (0x02|0x0004) plen 2
2011-07-14 16:34:57.012542 > HCI Event: Command Status (0x0f) plen 4
2011-07-14 16:34:57.113098 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:34:57.116241 > HCI Event: Max Slots Change (0x1b) plen 3
2011-07-14 16:34:57.148590 > HCI Event: Mode Change (0x14) plen 6
2011-07-14 16:34:57.148986 > HCI Event: Max Slots Change (0x1b) plen 3
2011-07-14 16:35:00.026611 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:35:03.029113 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:35:06.030425 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:35:09.026214 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:35:12.060058 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:35:15.027160 > HCI Event: Number of Completed Packets (0x13) plen 5

5. Ring tong at this point. The below log is about "accept the MT call"
2011-07-14 16:35:18.027038 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:35:19.155120 < HCI Command: Setup Synchronous Connection (0x01|0x0028) plen 17
2011-07-14 16:35:19.158294 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:35:19.158660 > HCI Event: Command Status (0x0f) plen 4
2011-07-14 16:35:19.210784 > HCI Event: Max Slots Change (0x1b) plen 3
2011-07-14 16:35:19.228118 > HCI Event: Max Slots Change (0x1b) plen 3
2011-07-14 16:35:19.260986 > HCI Event: Synchronous Connect Complete (0x2c) plen 17
2011-07-14 16:35:24.169158 > HCI Event: Mode Change (0x14) plen 6

6. the below log is about "terminate the call from the phone"
2011-07-14 16:35:41.777801 < HCI Command: Exit Sniff Mode (0x02|0x0004) plen 2
2011-07-14 16:35:41.785064 > HCI Event: Command Status (0x0f) plen 4
2011-07-14 16:35:41.785125 < HCI Command: Disconnect (0x01|0x0006) plen 3
2011-07-14 16:35:41.789794 > HCI Event: Command Status (0x0f) plen 4
2011-07-14 16:35:41.992706 > HCI Event: Mode Change (0x14) plen 6
2011-07-14 16:35:42.006652 > HCI Event: Disconn Complete (0x05) plen 4
2011-07-14 16:35:42.037231 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:35:42.037719 > HCI Event: Max Slots Change (0x1b) plen 3
2011-07-14 16:35:47.044433 > HCI Event: Mode Change (0x14) plen 6

7. the below log is about "will start to play music from phone"
2011-07-14 16:36:13.289611 < HCI Command: Exit Sniff Mode (0x02|0x0004) plen 2
2011-07-14 16:36:13.299896 > HCI Event: Command Status (0x0f) plen 4
2011-07-14 16:36:13.362548 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.370880 > HCI Event: Max Slots Change (0x1b) plen 3
2011-07-14 16:36:13.388061 > HCI Event: Mode Change (0x14) plen 6
2011-07-14 16:36:13.390686 > HCI Event: Max Slots Change (0x1b) plen 3
2011-07-14 16:36:13.598998 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.626403 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.670165 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.697631 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.727691 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.752655 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.780120 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.825988 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.854156 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.884796 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.935089 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.962615 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:13.990112 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.037628 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.062622 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.090118 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.117614 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.145111 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.173004 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.200073 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.245117 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.271423 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.303527 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.353851 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.381469 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.408630 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.436370 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.487670 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.515106 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:14.559936 > HCI Event: Number of Completed Packets (0x13) plen 5
..................
..................
2011-07-14 16:36:28.812347 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:28.838867 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:28.857452 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:28.904693 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:28.922210 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:28.949707 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:28.977203 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:28.978210 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:34.023193 > HCI Event: Mode Change (0x14) plen 6

8. music has been stopped at this point. The below log is about "will disconnect to HT820 headset"
2011-07-14 16:36:58.826904 < HCI Command: Exit Sniff Mode (0x02|0x0004) plen 2
2011-07-14 16:36:58.841857 > HCI Event: Command Status (0x0f) plen 4
2011-07-14 16:36:58.865356 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:58.873199 > HCI Event: Max Slots Change (0x1b) plen 3
2011-07-14 16:36:58.890502 > HCI Event: Mode Change (0x14) plen 6
2011-07-14 16:36:58.892272 > HCI Event: Max Slots Change (0x1b) plen 3
2011-07-14 16:36:59.190856 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:59.209136 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:59.210967 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:59.331603 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:59.501617 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:36:59.572448 > HCI Event: Link Supervision Timeout Change (0x38) plen 4
2011-07-14 16:36:59.764770 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:37:00.145538 > HCI Event: Number of Completed Packets (0x13) plen 5
2011-07-14 16:37:00.509460 > HCI Event: Disconn Complete (0x05) plen 4
2011-07-14 16:37:00.517791 < HCI Command: Delete Stored Link Key (0x03|0x0012) plen 7
2011-07-14 16:37:00.546508 > HCI Event: Command Complete (0x0e) plen 6

9. the attached file is the original hci dump log, by which we can analysis the command and event sequences for different cases.

文件:hcidump-log.rar
大小:9KB
下载:下载

阅读(3620) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~