This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc2640R2F error: 0x3E: Connection Failed To Be Established

Other Parts Discussed in Thread: LAUNCHXL-CC2640R2

LAUNCHXL-CC2640R2  MultiRole Project (主)连接一个从机设备(一个产品,从机非开发板),可以小概率的连接成功,频繁的先是connected,然后立刻断开连接。错误代码0x3E: conmection Failed to Be Established. 但是使用手机连接这个从机设备是没有问题的。请帮忙分析下问题的原因。
下面是pack sniffer 抓取的包:

手机-->connect-->从机设备 成功抓取到的连接过程:

Cc2640r2开发板-->connect-->从机设备 成功时抓取到的过程:

Cc2640r2 开发板-->connect-->从机设备 失败抓取到的过程
现象: 建立连接后立即断开(error code 0x3E)

从包交互看从机没有应答,主机一直的重发。

对比发现在 connect_req 数据包中,winsize 的值不一样,这个有关系吗?

  • A "Failed to Establish" (0x3E) error occurs if the master is unable to receive a packet from the slave within the first 6 connection events after sending a connection request. This could be caused a number of reasons. Here are a few possibilities:

    1、The RF performance on one or both devices is not good, so the slave either never receives the connection request, or the master never receives any packets from the slave during the first 6 connection events. The RF Performance could be bad due to a failed CRC, collision or maybe the devices are just out of range.
    2、There could be a timing issue in either device. If the link layer clock on either device is not running at 32.768kHz (within the tolerance set using the HCI_Ext_SetSCACmd function; default is +/-50ppm) then the timing will be off and the slave might not be listening at the correct time to receive the master's packets.
    3、If the slave device is advertising with the whitelist filter policy set to GAP_FILTER_POLICY_WHITE_CONor GAP_FILTER_POLICY_WHITE then the slave will ignore the connection from the master and continue advertising normally, and the master will get the 0x3E error since it does not receive any packets from the slave during the first 6 connection events.
  • Thanks, It really help me to find solution to solve this problem. I will check it all in my project.
  • Hi, Viki,

    I have try to set the sca value, it has some effects. and I wan to adjust the parameter "WINSIZE". I try to modify the LL_WINDOW_SIZE (default 2), but it does not work. Can you tell me how to modify it ?