BLE 0x3e HCI_ERROR_CODE_CONN_FAILED_TO_ESTABLISH

简介: BLE 0x3e HCI_ERROR_CODE_CONN_FAILED_TO_ESTABLISH
Master> SCAN_REQ:扫描请求
Master> CONNECT_REQ:连接请求
 
接下来Master(ATM)和Slave(按摩仪)连接交互 LL Control PDU主要用于建立连接后的一些参数设置
0x08  LL_FEATURE_REQ 请求交换 Feature 的交互 5次
0x09 LL_FEATURE_RSP  请求交换 Feature 的交互
0x0C  LL_VERSION_IND 交互 Version
0x00  LL_CONNECTION_UPDATE_IND 更新链接参数
 
connect_req其实是在告诉advertiser,手机将在Transmit Window期间发送第一个同步包(P1)给你,
请在这段时间里把你的射频接收窗口打开。设备B收到P1后,T_IFS时间后将给手机回复数据包P2(ACK包)。
一旦手机收到数据包P2,连接即可认为建立成功。
 
遇到“建立失败”(0x3E)错误:
-------------------------------------------------------------
如果主服务器在发送连接请求后的前6个连接事件中无法接收从服务器发来的数据包,则会发生“建立失败”
(0x3E)错误。 这可能是由许多原因造成的。 以下是几种可能性:  
 
在一个或两个设备上的射频性能不是很好,所以在前6个连接事件中,从机从来没有收到连接请求,或者主机
从来没有收到从机发来的任何数据包。 由于CRC失败、碰撞或设备超出范围,射频性能可能会很差。  
这两种设备都可能存在时间问题。 如果任一设备上的链路层时钟没有运行在32.768kHz(在使用HCI_Ext_SetSCACmd函数设置的公差范围内; 默认值是+/-50ppm),那么定时将关闭,从服务器可能没有在
正确的时间监听主服务器的数据包。  
如果从设备在发布时将白名单过滤策略设置为GAP_FILTER_POLICY_WHITE_CONor GAP_FILTER_POLICY_WHITE,
那么从设备将忽略来自主设备的连接,并继续正常发布。 master将得到0x3E错误,因为它在前6个连接事件
期间没有从slave接收任何数据包。  
 
-------------------------------------------------------------
参考:
https://blog.csdn.net/zhoutaopower/article/details/95938674
https://blog.csdn.net/loosen17/article/details/98629421


相关文章
|
3月前
|
算法 JavaScript
Error: error:0308010C:digital envelope routines::unsupported
# 报错 (node:16863) [DEP_WEBPACK_CONFIGURATION_OPTIMIZATION_NO_EMIT_ON_ERRORS] DeprecationWarning: optimization.noEmitOnErrors is deprecated in favor of optimization.emitOnErrors (Use `node --trace-deprecation ...` to show where the warning was created) (node:16863) [DEP_WEBPACK_COMPILATION_OPTIMIZE_C
|
7月前
|
Web App开发 前端开发
【前端异常】Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
【前端异常】Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
465 0
|
3天前
|
JavaScript 算法 Windows
95% emitting CompressionPlugin ERROR Error: error:0308010C:digital envelope routines::unsupported
95% emitting CompressionPlugin ERROR Error: error:0308010C:digital envelope routines::unsupported
|
17天前
|
算法 JavaScript
解决Error: error:0308010C:digital envelope routines::unsupported最快速方案
解决Error: error:0308010C:digital envelope routines::unsupported最快速方案
26 0
|
5月前
|
iOS开发 MacOS
mac AnyConnect 连接报错 Posture Assessment Failed: Hostscan Initialize error.
mac AnyConnect 连接报错 Posture Assessment Failed: Hostscan Initialize error.
mac AnyConnect 连接报错 Posture Assessment Failed: Hostscan Initialize error.
|
11月前
|
关系型数据库 MySQL 数据库连接
一文全解决 数据库连接报错Communications link failure,create connection SQLException
一文全解决 数据库连接报错Communications link failure,create connection SQLException
2141 0
|
Linux
七个办法只有一个有效:200 PORT command successful. Consider using PASV.425 Failed to establish connection.
七个办法只有一个有效:200 PORT command successful. Consider using PASV.425 Failed to establish connection.
421 0
七个办法只有一个有效:200 PORT command successful. Consider using PASV.425 Failed to establish connection.
飞思卡尔codewarrior下载出现USBD connection error:Failed to connect to targe(Reason :Target reset pin time out)
飞思卡尔codewarrior下载出现USBD connection error:Failed to connect to targe(Reason :Target reset pin time out)
飞思卡尔codewarrior下载出现USBD connection error:Failed to connect to targe(Reason :Target reset pin time out)
|
应用服务中间件 nginx
[error] 17755#0: *58522 readv() failed (104: Connection reset by peer) while reading upstream
[error] 17755#0: *58522 readv() failed (104: Connection reset by peer) while reading upstream
4908 0