如何在Windows上调试蓝牙堆栈,使用哪些工具

如何解决如何在Windows上调试蓝牙堆栈,使用哪些工具

问题:如何调试Windows10蓝牙堆栈?使用什么工具?

设置:通过蓝牙连接到Windows10计算机的嵌入式Linux板

连接: Linux板正在使用蓝牙bnep服务连接到Windows10计算机,效果很好。

问题:在重新启动Linux板之前,它运行良好,然后在Linux板尝试连接Windows机器时,Windows始终拒绝连接到 bnep 服务,如果它不支持。

(这是我对Linux日志的理解,我不知道如何从Windows端获取任何日志)

问题2:为什么Windows拒绝连接?

Windows10计算机蓝牙:

Manufacturer: Cambridge Silicon Radio Ltd.     Hardware Ids: USB\VID_0A12&PID_0001&REV_8891

Driver version: 10.0.17134.1067 

使用btmon创建的Linux开发板日志: complete log wireshark version,系统日志:bluetoothd syslog


    Bluetooth monitor ver 5.48
    = New Index: 00:04:F3:0E:1C:61 (Primary,UART,hci0)              [hci0] 0.964086
     HCI Event: Command Status (0x0f) plen 4                    #2 [hci0] 6.047900
          Create Connection (0x01|0x0005) ncmd 1
            Status: Success (0x00)
    > HCI Event: Connect Complete (0x03) plen 11                #3 [hci0] 11.174878
            Status: Page Timeout (0x04)
            Handle: 3839
            Address: 00:1A:7D:DA:71:11 (OUI 00-1A-7D)
            Link type: ACL (0x01)
            Encryption: Disabled (0x00)
    @ Connect Failed: 00:1A:7D:DA:71:11 (0) status 0x04
     HCI Event: Command Status (0x0f) plen 4                   #5 [hci0] 21.943722
          Create Connection (0x01|0x0005) ncmd 1
            Status: Success (0x00)
    > HCI Event: Role Change (0x12) plen 8                      #6 [hci0] 22.302343
            Status: Success (0x00)
            Address: 00:1A:7D:DA:71:11 (OUI 00-1A-7D)
            Role: Slave (0x01)
    > HCI Event: Connect Complete (0x03) plen 11                #7 [hci0] 22.336363
            Status: Success (0x00)
            Handle: 21
            Address: 00:1A:7D:DA:71:11 (OUI 00-1A-7D)
            Link type: ACL (0x01)
            Encryption: Disabled (0x00)
     HCI Event: Command Status (0x0f) plen 4                   #9 [hci0] 22.337862
          Read Remote Supported Features (0x01|0x001b) ncmd 1
            Status: Success (0x00)
    > HCI Event: Read Remote Supported Featu.. (0x0b) plen 11  #10 [hci0] 22.352464
            Status: Success (0x00)
            Handle: 21
            Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
              3 slot packets
              5 slot packets
              Encryption
              Slot offset
              Timing accuracy
              Role switch
              Hold mode
              Sniff mode
              Park state
              Power control requests
              Channel quality driven data rate (CQDDR)
              SCO link
              HV2 packets
              HV3 packets
              u-law log synchronous data
              A-law log synchronous data
              CVSD synchronous data
              Paging parameter negotiation
              Power control
              Transparent synchronous data
              Broadcast Encryption
              Enhanced Data Rate ACL 2 Mbps mode
              Enhanced Data Rate ACL 3 Mbps mode
              Enhanced inquiry scan
              Interlaced inquiry scan
              Interlaced page scan
              RSSI with inquiry results
              Extended SCO link (EV3 packets)
              EV4 packets
              EV5 packets
              AFH capable slave
              AFH classification slave
              LE Supported (Controller)
              3-slot Enhanced Data Rate ACL packets
              5-slot Enhanced Data Rate ACL packets
              Sniff subrating
              Pause encryption
              AFH capable master
              AFH classification master
              Enhanced Data Rate eSCO 2 Mbps mode
              Enhanced Data Rate eSCO 3 Mbps mode
              3-slot Enhanced Data Rate eSCO packets
              Extended Inquiry Response
              Simultaneous LE and BR/EDR (Controller)
              Secure Simple Pairing
              Encapsulated PDU
              Non-flushable Packet Boundary Flag
              Link Supervision Timeout Changed Event
              Inquiry TX Power Level
              Enhanced Power Control
              Extended features
     HCI Event: Command Status (0x0f) plen 4                  #12 [hci0] 22.353738
          Read Remote Extended Features (0x01|0x001c) ncmd 1
            Status: Success (0x00)
    > HCI Event: Read Remote Extended Features (0x23) plen 13  #13 [hci0] 22.359895
            Status: Success (0x00)
            Handle: 21
            Page: 1/1
            Features: 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00
              Secure Simple Pairing (Host Support)
              LE Supported (Host)
              Simultaneous LE and BR/EDR (Host)
     HCI Event: Command Status (0x0f) plen 4                  #15 [hci0] 22.360591
          Remote Name Request (0x01|0x0019) ncmd 1
            Status: Success (0x00)
    > HCI Event: Remote Name Req Complete (0x07) plen 255      #16 [hci0] 22.369271
            Status: Success (0x00)
            Address: 00:1A:7D:DA:71:11 (OUI 00-1A-7D)
            Name: PC0184691
     HCI Event: Command Status (0x0f) plen 4                  #18 [hci0] 22.371420
          Authentication Requested (0x01|0x0011) ncmd 1
            Status: Success (0x00)
    > HCI Event: Link Key Request (0x17) plen 6                #19 [hci0] 22.371517
            Address: 00:1A:7D:DA:71:11 (OUI 00-1A-7D)
     HCI Event: Command Complete (0x0e) plen 10               #21 [hci0] 22.372259
          Link Key Request Reply (0x01|0x000b) ncmd 1
            Status: Success (0x00)
            Address: 00:1A:7D:DA:71:11 (OUI 00-1A-7D)
    @ Device Connected: 00:1A:7D:DA:71:11 (0) flags 0x0000
            0a 09 50 43 30 31 38 34 36 39 31                 ..PC0184691     
    > HCI Event: Auth Complete (0x06) plen 3                   #22 [hci0] 22.492450
            Status: Success (0x00)
            Handle: 21
     HCI Event: Command Status (0x0f) plen 4                  #24 [hci0] 22.493058
          Set Connection Encryption (0x01|0x0013) ncmd 1
            Status: Success (0x00)
    > HCI Event: Encryption Change (0x08) plen 4               #25 [hci0] 22.527926
            Status: Success (0x00)
            Handle: 21
            Encryption: Enabled with E0 (0x01)
     HCI Event: Number of Completed Packets (0x13) plen 5     #27 [hci0] 22.536970
            Num handles: 1
            Handle: 21
            Count: 1
    > ACL Data RX: Handle 21 flags 0x02 dlen 16                #28 [hci0] 22.537208
          L2CAP: Information Response (0x0b) ident 1 len 8
            Type: Extended features supported (0x0002)
            Result: Success (0x0000)
            Features: 0x000000b8
              Enhanced Retransmission Mode
              Streaming Mode
              FCS Option
              Fixed Channels
     HCI Event: Number of Completed Packets (0x13) plen 5     #30 [hci0] 22.543231
            Num handles: 1
            Handle: 21
            Count: 1
    > ACL Data RX: Handle 21 flags 0x02 dlen 20                #31 [hci0] 22.543692
          L2CAP: Information Response (0x0b) ident 2 len 12
            Type: Fixed channels supported (0x0003)
            Result: Success (0x0000)
            Channels: 0x00000000000000f2
              L2CAP Signaling (BR/EDR)
              Attribute Protocol
              L2CAP Signaling (LE)
              Security Manager (LE)
              Security Manager (BR/EDR)
     HCI Event: Number of Completed Packets (0x13) plen 5     #33 [hci0] 22.549461
            Num handles: 1
            Handle: 21
            Count: 1
    > ACL Data RX: Handle 21 flags 0x02 dlen 16                #34 [hci0] 22.549800
          L2CAP: Connection Response (0x03) ident 3 len 8
            Destination CID: 64
            Source CID: 64
            Result: Connection pending (0x0001)
            Status: No further information available (0x0000)
    > ACL Data RX: Handle 21 flags 0x02 dlen 16                #35 [hci0] 37.590680
          L2CAP: Connection Response (0x03) ident 3 len 8
            Destination CID: 0
            Source CID: 0
            Result: Connection refused - PSM not supported (0x0002)
            Status: No further information available (0x0000)
     HCI Event: Command Status (0x0f) plen 4                  #37 [hci0] 39.591886
          Disconnect (0x01|0x0006) ncmd 1
            Status: Success (0x00)
    > HCI Event: Disconnect Complete (0x05) plen 4             #38 [hci0] 39.782849
            Status: Success (0x00)
            Handle: 21
            Reason: Connection Terminated By Local Host (0x16)
    @ Device Disconnected: 00:1A:7D:DA:71:11 (0) reason 2

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 <select id="xxx"> SELECT di.id, di.name, di.work_type, di.updated... <where> <if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 <property name="dynamic.classpath" value="tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -> systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping("/hires") public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate<String
使用vite构建项目报错 C:\Users\ychen\work>npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-