5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace

Hi ,

I have compiled in Heart rat relay into my app; can scan and connect to simulator and garmin HR straps; but fail to connect to polar.
My debug log shows...



So security is encryption, no auth and I get an "unspecified" error.

I have done a BLE wireshark trace; but cannot see anything in the trace to indicate the issue.

Would be grateful if someon could look and give me a clue to whats going wrong.

Here is wireshark trace....

polarHrmActiveScanConnectFail.pcapng

Regards,

Owain

Parents Reply Children
  • Hi again Owain, 


    Thanks for the update. Now we can narrow the issue down. 
    I would suggest to set

    CONFIG_BT_AUTO_PHY_UPDATE=n

    CONFIG_BT_USER_PHY_UPDATE=y

    Then you can control when you want to request 2Mbps (if you plan to use it) in your application by calling bt_conn_le_phy_update() to switch PHY. 
    I would suggest to call the function after the link is encrypted.

    This way we can avoid the corner case where the PHY request is not responded before the encryption request. 

  • Hi Hung,

    I can now confirm this was the issue. In this case with Security L2 and the PHY negotiation the Polar H10 did not work. Turning off our central starting the PHY negotiation worked.

    Turning off L2 and leaving PHY neotiation on worked also.

    This does look as if it is an isssue of the Polar H10; which I believe is there latest version. SW 5.0.0, FW 3.1.1 as reported in device information service.

    Many thanks for all your support. Without your help and knowledge we would not have been able to work our way around this Polar device bug.

    Kind Regards,
    Owain

Related