HOST CONTROLLER INTERFACE FUNCTIONAL SPECIFICATION

HCI提供了一套到CONTROLLER命令接口。

HCI Command packet:

HCI ACL Data packet:

HCI Event packet:

开启controller:

2018/10/31 18:18:51.148812    Command    0x0c03    Ctrl/BB    Reset            1                        0    4                                

2018/10/31 18:18:51.250503    Event    0x0c03    Ctrl/BB    Reset    Command Complete        2    Success                    4    7     00:00:00.101691                            
2018/10/31 18:18:51.259978    Command    0x1001    Info Params    Read_Local_Version_Information            9                        0    4     00:00:00.000424                            
2018/10/31 18:18:51.261640    Event    0x1001    Info Params    Read_Local_Version_Information    Command Complete        10    Success                    12    15     00:00:00.001662                            
2018/10/31 18:18:51.262334    Command    0x1009    Info Params    Read_BD_ADDR            11                        0    4     00:00:00.000694                            
2018/10/31 18:18:51.263533    Event    0x1009    Info Params    Read_BD_ADDR    Command Complete        12    Success                    10    13     00:00:00.001199                            
2018/10/31 18:18:51.263975    Command    0x1002    Info Params    Read_Local_Supported_Commands            13                        0    4     00:00:00.000442                            
2018/10/31 18:18:51.265283    Event    0x1002    Info Params    Read_Local_Supported_Commands    Command Complete        14    Success                    68    71     00:00:00.001308                            
2018/10/31 18:18:51.265771    Command    0x1004    Info Params    Read_Local_Extended_Features            15                        1    5     00:00:00.000488                            
2018/10/31 18:18:51.266852    Event    0x1004    Info Params    Read_Local_Extended_Features    Command Complete        16    Success                    14    17     00:00:00.001081                            

执行扫描:
2018/10/31 18:18:51.534369    Command    0x0401    Lnk Ctrl    Inquiry            115                        5    9     00:00:00.000533                            
2018/10/31 18:18:51.535724    Event    0x0401    Lnk Ctrl    Inquiry    Command Status        116    Success                    4    7     00:00:00.001355                            
2018/10/31 18:18:58.199870    Event                Extended Inquiry Result    AKG Y45BT    352                        255    258     00:00:00.044914                            
2018/10/31 18:18:59.982824    Command    0x0402    Lnk Ctrl    Inquiry_Cancel            387                        0    4     00:00:00.353391                            
2018/10/31 18:18:59.990980    Event    0x0402    Lnk Ctrl    Inquiry_Cancel    Command Complete        388    Success                    4    7     00:00:00.008156
 与指定设备建立连接:                           
2018/10/31 18:19:00.731793    Command    0x0405    Lnk Ctrl    Create_Connection            413                        13    17     00:00:00.001177                            
2018/10/31 18:19:00.733552    Event    0x0405    Lnk Ctrl    Create_Connection    Command Status        416    Success                    4    7     00:00:00.000749                            
2018/10/31 18:19:02.047884    Event                Connection Complete        424    Success    0x0003                11    14     00:00:00.001009                            

2018/10/31 18:19:02.054456    Command    0x0c37    Ctrl/BB    Write_Link_Supervision_Timeout            432        0x0003                4    8     00:00:00.000299                            
2018/10/31 18:19:02.056290    Event    0x0c37    Ctrl/BB    Write_Link_Supervision_Timeout    Command Complete        433    Success    0x0003                6    9     00:00:00.001834                            
2018/10/31 18:19:02.068608    Command    0x041d    Lnk Ctrl    Read_Remote_Version_Information            436        0x0003                2    6     00:00:00.001124                            
2018/10/31 18:19:02.072970    Event    0x041d    Lnk Ctrl    Read_Remote_Version_Information    Command Status        441    Success                    4    7     00:00:00.000700                            
2018/10/31 18:19:02.073880    Event                Read Remote Version Information Complete        442    Success    0x0003                8    11     00:00:00.000910         

认证:                   

2018/10/31 18:19:02.118596    Command    0x0411    Lnk Ctrl    Authentication_Requested            458        0x0003                2    6     00:00:00.004665                            
2018/10/31 18:19:02.120124    Event    0x0411    Lnk Ctrl    Authentication_Requested    Command Status        459    Success                    4    7     00:00:00.001528                            
2018/10/31 18:19:02.120995    Event                Link Key Request        460                        6    9     00:00:00.000871                            
2018/10/31 18:19:02.121419    Command    0x040c    Lnk Ctrl    Link_Key_Request_Negative_Reply            461                        6    10     00:00:00.000424                            
2018/10/31 18:19:02.122533    Event    0x040c    Lnk Ctrl    Link_Key_Request_Negative_Reply    Command Complete        462    Success                    10    13     00:00:00.001114                            
2018/10/31 18:19:02.123320    Event                IO Capability Request        463                        6    9     00:00:00.000787                            
2018/10/31 18:19:02.124443    Command    0x042b    Lnk Ctrl    IO_Capability_Response            464                        9    13     00:00:00.001123                            
2018/10/31 18:19:02.125589    Event    0x042b    Lnk Ctrl    IO_Capability_Response    Command Complete        465    Success                    10    13     00:00:00.001146                            
2018/10/31 18:19:03.043714    Event                IO Capability Response        466                        9    12     00:00:00.918125                            
2018/10/31 18:19:04.122974    Event                User Confirmation Request        467                        10    13     00:00:01.079260                            
2018/10/31 18:19:04.131826    Command    0x042c    Lnk Ctrl    User_Confirmation_Request_Reply            471                        6    10     00:00:00.004675                            
2018/10/31 18:19:04.134180    Event    0x042c    Lnk Ctrl    User_Confirmation_Request_Reply    Command Complete        472    Success                    10    13     00:00:00.002354                            
2018/10/31 18:19:05.062631    Event                Simple Pairing Complete        473    Success                    7    10     00:00:00.928451                            
2018/10/31 18:19:05.112927    Event                Link Key Notification        474                        23    26     00:00:00.050296                            
2018/10/31 18:19:05.114567    Event                Authentication Complete        475    Success    0x0003                3    6     00:00:00.001640      

建立eSCO链接:                     

2018/10/31 18:19:35.622483    Command    0x043d    Lnk Ctrl    Enhanced_Setup_Synchronous_Connection            905        0x0003                59    63     00:00:00.000355                            
2018/10/31 18:19:35.623460    Event    0x043d    Lnk Ctrl    Enhanced_Setup_Synchronous_Connection    Command Status        906    Success                    4    7     00:00:00.000977                            
2018/10/31 18:19:35.680832    Event                Synchronous Connection Complete        912        0x0004                17    20     00:00:00.026681                            
2018/10/31 18:19:54.626868    Event                Disconnection Complete        952    Success    0x0004                4    7     00:00:00.001401                  

断开连接:         

2018/10/31 18:24:33.276709    Command    0x0406    Lnk Ctrl    Disconnect            2,445        0x0001                3    7     00:00:00.000255                            
2018/10/31 18:24:33.280097    Event    0x0406    Lnk Ctrl    Disconnect    Command Status        2,446    Success                    4    7     00:00:00.003388                            
2018/10/31 18:24:33.293331    Event                Disconnection Complete        2,452    Success    0x0001                4    7     00:00:00.001138                            

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值