<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88092/5340-zephyr-failure-to-connect-to-polar-heart-rate-strap-ble-wireshark-trace</link><description>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 &amp;quot;unspecified&amp;quot; error. I have done</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Jan 2023 13:39:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88092/5340-zephyr-failure-to-connect-to-polar-heart-rate-strap-ble-wireshark-trace" /><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/405273?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 13:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f5d14d6-bf47-4254-ba69-087ec286f5ee</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;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.&lt;br /&gt;&lt;br /&gt;Turning off L2 and leaving PHY neotiation on worked also.&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;Kind Regards,&lt;br /&gt;Owain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/405269?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 13:27:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aba3de03-9663-4068-ad85-5a952e8e048b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi again Owain,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks for the update. Now we can narrow the issue down.&amp;nbsp;&lt;br /&gt;I would suggest to set&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_BT_AUTO_PHY_UPDATE=n&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_BT_USER_PHY_UPDATE=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then you can control when you want to request 2Mbps (if you plan to use it) in your application by calling&amp;nbsp;&lt;/span&gt;&lt;span&gt;bt_conn_le_phy_update() to switch PHY.&amp;nbsp;&lt;br /&gt;I would suggest to call the function after the link is encrypted. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This way we can avoid the corner case where the PHY request is not responded before the encryption request.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/405249?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 12:55:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6bfdc65-ead2-43aa-b3f3-e3f86446037b</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;You may have cracked it...&lt;br /&gt;&lt;br /&gt;CONFIG_BT_AUTO_PHY_UPDATE=n&lt;br /&gt;&lt;br /&gt;Here trace for simple project. I am now going to try in our standard company prodject.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/SimplePolarL2NoPhyNeg.pcap.pcapng"&gt;devzone.nordicsemi.com/.../SimplePolarL2NoPhyNeg.pcap.pcapng&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/405230?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 12:22:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85cf5e98-e2dc-4741-8a59-8775a68a121b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Owain,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I would need to see how you implemented it in your code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But you can try setting&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_BT_CTLR_PHY_2M=n in the controller (on the nRF53 you need to add it to the hci_rpmsg).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;I would assume you don&amp;#39;t call bt_conn_le_phy_update() in your application ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/405196?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 10:31:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b779a541-dad6-4c10-b76f-8e7f624c3d11</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;the &lt;strong&gt;Si&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/simplePolarNotL2Secure.pcap.pcapng"&gt;mplePolarNotL2Secure.pcap.pcapng&lt;/a&gt;&amp;nbsp;added above was the standard 5340 dk without the request to switch to L2 security. The Phy negotiation takes place and gets negotiated to 2M.&lt;br /&gt;&lt;br /&gt;Where can I disable the PHY negotation to get a trace with L2 requested and restricted to 1M phy?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Owain&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/405166?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 08:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fde5e36-e001-4dea-b2c3-cab2e06ace0f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Owain,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you let us know the result if 2Mbps was not requested ?&amp;nbsp;&lt;br /&gt;There could be a chance that it still support 2Mbps but the PHY request came at the wrong time and it trigger a corner case causing the problem.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;And please provide us the trace when you use central uart to connect to the HR. I would assume PHY request was not sent (?).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As far as I know the Polar H10 may actually use Nordic&amp;#39;s Softdevice on it and we did have an issue earlier with these old Softdevices that they doesn&amp;#39;t support PHY request change.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/405108?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 16:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:220613c5-fee0-4b35-9cef-0c3b3468c62d</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/simplePolarNotL2Secure.pcap.pcapng"&gt;devzone.nordicsemi.com/.../simplePolarNotL2Secure.pcap.pcapng&lt;/a&gt;I Can try that, but this Polar H10 heartstrap works if I do not request the security change to L2.&lt;br /&gt;&lt;br /&gt;This Polar Hear Strap the H10 is one of the most widely used heart monitors in the world. This and the Garmin are the devices used by 99% of athletes using a monitor.&lt;br /&gt;&lt;br /&gt;As I think I have said I have tinkered with the peripheral uart example to change uuid etc; and I have tried with a standard 5340 dk (non-secure).&lt;br /&gt;&lt;br /&gt;I get the same behaviour.&lt;br /&gt;&lt;br /&gt;Here a trace without the switch to L2; and we do see the update for the PHY update in this trace. And they do agree to use 2M phy.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/405010?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 11:47:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b7abff1-5373-47ae-9a8c-4b3cc979b3c3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi again Owain,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After checking with the team, I think we found something suspicious here.&amp;nbsp; In both of your sniffer trace the slave didn&amp;#39;t respond to the LL_PHY_REQ from the central.&amp;nbsp;&lt;br /&gt;This could be the reason the central couldn&amp;#39;t send the LL_ENC_REQ. The central can&amp;#39;t send the encryption request before the previous request has been responded.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you please try modify the central so that it doesn&amp;#39;t request 2Mbps PHY change to see if it would let the pairing complete ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You may want to call&amp;nbsp;&lt;span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;bt_conn_get_remote_info() to get the information to know about the peer&amp;#39;s BLE stack. If it&amp;#39;s very old it may doesn&amp;#39;t support PHY request change.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404861?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 16:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:366fbd5f-1734-43d0-b8ed-5fe0f5d10a3f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Owain,&amp;nbsp;&lt;br /&gt;Thanks for the update.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would assume there is some configuration with your board that chose HCI H4 ?&amp;nbsp;&lt;br /&gt;By default if you compile with nRF5340 hci_rpmsg will be selected for the netcore.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try compile for nRF5340dk_nrf5340_cpuapp ?&amp;nbsp;&lt;br /&gt;Also if you have a nRF52 board please try to do a cross check. We need to see if the issue only happens on the nRF53 or also on the nRF52. Then we can narrow down it to the dual core setting that cause the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also assume that you only try to pair with one device ? By default&amp;nbsp;CONFIG_BT_MAX_PAIRED = 1 so you can&amp;#39;t pair with 2 devices or more.&lt;br /&gt;&lt;br /&gt;I looked at the trace again and have to correct myself that it was not &amp;quot;&lt;span&gt;The nRF5 didn&amp;#39;t send the pairing confirm and then the slave disconnected. &amp;quot; but the pairing confirms were sent and pairing randoms received&amp;nbsp;but the confirm value from the POLAR was not match and it explain why the central&amp;nbsp;terminate the pairing process.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I will check internally to have the confirmation, but it&amp;#39;s strange that the POLAR works with other central but not the DUT. I assume it works fine with a phone&amp;nbsp; ?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Please also try testing the nRF5340 to pair with a nRF5 running peripheral_hr to see if the pairing would work or not. From what you described, it worked with the Garmin ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I did a quick test with your firmware and it paired fine with a nRF52 running peripheral_hr.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404828?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 14:16:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b84836a-d27c-4bcc-94c2-98f852594226</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;I have taken the uart example as you suggest; I have had to make some small changes to ensure HCI RPMSG is used rather than HCI H4.&lt;br /&gt;&lt;br /&gt;This the outpu from the test on the console;&amp;nbsp; looks that same as my own project; fails on the security change.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.2.99-ncs1 ***
[00:00:00.259,552] \033[0m&amp;lt;inf&amp;gt; fs_nvs: 2 Sectors of 4096 bytes\033[0m
[00:00:00.259,552] \033[0m&amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, ec0\033[0m
[00:00:00.259,552] \033[0m&amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 154\033[0m
[00:00:00.284,606] \033[0m&amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()\033[0m
[00:00:00.284,637] \033[0m&amp;lt;inf&amp;gt; central_hr: Bluetooth initialized\033[0m
[00:00:00.286,254] \033[1;31m&amp;lt;err&amp;gt; settings: set-value failure. key: bt/name error(-2)\033[0m
[00:00:00.287,139] \033[0m&amp;lt;inf&amp;gt; central_hr: Scan module initialized\033[0m
Starting Bluetooth Central HR example
[00:00:00.289,978] \033[0m&amp;lt;inf&amp;gt; central_hr: Scanning successfully started\033[0m
[00:00:01.612,976] \033[0m&amp;lt;inf&amp;gt; central_hr: Filters matched. Address: E0:EF:E7:CA:6A:68 (random) connectable: 1\033[0m
[00:00:02.115,417] \033[0m&amp;lt;inf&amp;gt; central_hr: Connected: E0:EF:E7:CA:6A:68 (random)\033[0m
[00:00:02.167,572] \033[0m&amp;lt;inf&amp;gt; central_hr: MTU exchange done\033[0m
[00:00:17.817,810] \033[1;33m&amp;lt;wrn&amp;gt; central_hr: Pairing failed conn: E0:EF:E7:CA:6A:68 (random), rea[00:01:05.502,258] \033[1;33m&amp;lt;wrn&amp;gt; central_hr: Pairing failed conn: E0:EF:E7:CA:6A:68 (random), reason 9\033[0m
[00:01:05.502,410] \033[1;33m&amp;lt;wrn&amp;gt; central_hr: Security failed: E0:EF:E7:CA:6A:68 (random) level 1 err 9\033[0m
[00:01:05.502,441] \033[1;31m&amp;lt;err&amp;gt; bt_gatt_dm: Discover failed, error: -128.\033[0m
[00:01:05.502,441] \033[1;31m&amp;lt;err&amp;gt; central_hr: could not start the discovery procedure, error code: -128\033[0m
[00:01:05.503,570] \033[0m&amp;lt;inf&amp;gt; central_hr: Disconnected: E0:EF:E7:CA:6A:68 (random) (reason 8)\033[0m
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This was built using ncs 2.2.0.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6305.central_5F00_uart.zip"&gt;devzone.nordicsemi.com/.../6305.central_5F00_uart.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404743?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 09:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:738e85b8-16d8-4def-b3f0-ce921d971b1f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Owain,&amp;nbsp;&lt;br /&gt;Sorry my mistake. My idea is to use central_uart because it has similar behavior as your application to require L2 when connected. But I forgot that it won&amp;#39;t connect to the polar HR because it&amp;#39;s different UUID.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;What you can do is to change the&amp;nbsp;scan_init() to filter the HRS UUID instead of the NUS UUID. The goal is to make it connect and pair to the Polar HR. You can remove any code related to NUS client.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I just want to have a very simple application that connect and pair and do nothing else. The prj.conf should be kept the same as in the sample.&amp;nbsp; If it works we can try to compare it with your application to see what cause the issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404740?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 09:01:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02ca00f5-96b1-43ed-8c98-fa37c5a7771d</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;central uart or central heart rate example?&lt;br /&gt;&lt;br /&gt;Our device is both a central and a peripheral. One can connect from a mobile to manage our device; but it can connect to peripherals.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Looking at the central heartrate example it works quite differntly to the uart example; it also does not change the security level. Note the Garmin strap works fine changing level to 2.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Owain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404736?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 08:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d316a9b-956c-4d06-9c8d-b2902bffac69</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I attached the config yesterday. Yeah all works fine with the Gamin strap; bonded ok.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404733?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 08:42:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cbb20fd-35ea-4491-9397-11d9e2cced2d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Owain,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you tried to test using the central_uart example to connect to the Polar ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404605?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 14:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff953efc-4bd5-4a2c-9ffa-c822eb4815c2</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Here more debug but with CONFIG_BT_DEBUG_SMP=y&lt;br /&gt;&lt;br /&gt;033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.016,998] \033[0m&amp;lt;inf&amp;gt; app: connected: Central: connected to F0:C9:75:7D:CB:FF (random)&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.017,059] \033[0m&amp;lt;inf&amp;gt; app: connected: security is currently 1&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.017,150] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_send_pairing_req: \033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.018,615] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_init: prnd 2ec0d9a9193c2b1b54b14f14734e4279\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.018,768] \033[0m&amp;lt;inf&amp;gt; app: connected: security set to BT_SECURITY_L2&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.020,782] \033[0m&amp;lt;inf&amp;gt; app: systemProcessThread: System got EVENT_BLE_PERIPHERAL_CONNECTED\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.517,974] \033[0m&amp;lt;dbg&amp;gt; bt_smp: bt_smp_recv: Received SMP code 0x02 len 6\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.518,035] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_pairing_rsp: \033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.518,127] \033[0m&amp;lt;dbg&amp;gt; bt_smp: legacy_pairing_rsp: \033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.518,280] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: k 00000000000000000000000000000000\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.518,371] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: r 2ec0d9a9193c2b1b54b14f14734e4279\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.518,554] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: ia 40:68:15:E7:B9:37 (random)\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.518,737] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: ra F0:C9:75:7D:CB:FF (random)\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.518,829] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: preq 0100000d100707\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.518,890] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: pres 02030001100303\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.518,981] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: p1 01010100000d10070702030001100303\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:12.519,256] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: p2 ffcb7d75c9f037b9e715684000000000\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.018,035] \033[0m&amp;lt;dbg&amp;gt; bt_smp: bt_smp_recv: Received SMP code 0x03 len 16\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.018,127] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_pairing_confirm: \033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.518,066] \033[0m&amp;lt;dbg&amp;gt; bt_smp: bt_smp_recv: Received SMP code 0x04 len 16\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.518,127] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_pairing_random: \033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.518,188] \033[0m&amp;lt;dbg&amp;gt; bt_smp: legacy_pairing_random: \033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.518,280] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: k 00000000000000000000000000000000\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.518,371] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: r d316e0f3d51aaefd4c0a38df9f5ec1cb\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.518,554] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: ia 40:68:15:E7:B9:37 (random)\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.518,737] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: ra F0:C9:75:7D:CB:FF (random)\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.518,829] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: preq 0100000d100707\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.518,890] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: pres 02030001100303\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.519,012] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: p1 01010100000d10070702030001100303\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.519,287] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_c1: p2 ffcb7d75c9f037b9e715684000000000\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.519,531] \033[0m&amp;lt;dbg&amp;gt; bt_smp: legacy_pairing_random: pcnf 2e7254e2fc169911f174a35f9f321152\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:13.519,622] \033[0m&amp;lt;dbg&amp;gt; bt_smp: legacy_pairing_random: cfm 2e7254e2fc169911f174a35f9f321152\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:28.018,096] \033[0m&amp;lt;dbg&amp;gt; bt_smp: bt_smp_disconnected: chan 0x20009bec cid 0x0006\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:28.018,188] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_pairing_complete: status 0x8\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:28.024,200] \033[0m&amp;lt;dbg&amp;gt; bt_smp: bt_smp_encrypt_change: chan 0x20009bec conn 0x20009790 handle 0 encrypt 0x00 hci status 0x1f\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:28.024,261] \033[0m&amp;lt;dbg&amp;gt; bt_smp: smp_pairing_complete: status 0x8\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:28.024,444] \033[0m&amp;lt;inf&amp;gt; app: authPairingFailed: Pairing failed: F0:C9:75:7D:CB:FF (random) reason: 9&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:28.024,719] \033[0m&amp;lt;inf&amp;gt; app: securityChanged: Security failed: F0:C9:75:7D:CB:FF (random) level 1 err 9&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:28.024,780] \033[1;31m&amp;lt;err&amp;gt; bt_gatt_dm: bt_gatt_dm_start: Discover failed, error: -128.\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:28.024,841] \033[0m&amp;lt;inf&amp;gt; app: gatt_discover: Could not start the discovery procedure, error code: -128&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:28.030,883] \033[0m&amp;lt;inf&amp;gt; app: disconnected: Peripheral disconnected (reason 0x08)&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:01:28.031,372] \033[0m&amp;lt;inf&amp;gt; app: systemProcessThread: System got EVENT_BLE_PERIPHERAL_DISCONNECTED\033[0m&lt;br /&gt;\&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404578?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 13:57:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e61f143-2738-4b22-9dc3-8b64d3091a74</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Config for the App does not have&amp;nbsp;&lt;span&gt;CONFIG_BT_SMP_SC_ONLY set; and has&amp;nbsp;CONFIG_BT_TINYCRYPT_ECC set.&lt;br /&gt;I will attach the .config. Can you anything wrong in the BLE trace or does all look good?&lt;br /&gt;&lt;br /&gt;The 37228 issue sounds pretty much like what I am getting....&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0042.config.txt"&gt;devzone.nordicsemi.com/.../0042.config.txt&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404571?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 13:31:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ef302c4-5d17-4c3c-a5f3-8d7bbdbc4d81</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Owain,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you tried to test using the central_uart example to connect to the Polar ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Do you use&amp;nbsp;&lt;span&gt;CONFIG_BT_SMP_SC_ONLY in your project configuration ?&amp;nbsp;&lt;br /&gt;This will force the pairing to only Secure Connection. It doesn&amp;#39;t seem the Polar band support&amp;nbsp;Secure Connection.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;There is some discussion here with the same error&amp;nbsp;&lt;/span&gt;&lt;code&gt;BT_SECURITY_ERR_UNSPECIFIED and related to nRF53 and legacy pairing&lt;/code&gt;&lt;span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/37228"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/37228&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you try&amp;nbsp;CONFIG_BT_TINYCRYPT_ECC=y to see if it work. Note that you may need to rebuild and reflash hci_rmsg&lt;br /&gt;&lt;br /&gt;I would suggest to double check using nRF52 which doesn&amp;#39;t seems to have this error.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404518?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 10:37:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:758bf1e7-e3a6-4587-a9e5-129c5192e024</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;I just took another trace to be sure. Yes that is the trace.&lt;br /&gt;Here the debug log ones sees for such a sequence.....&lt;br /&gt;&lt;br /&gt;033[1;32mnovaPro&amp;gt;\033[mbt central heart connect 0&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:03:24.080,566] \033[0m&amp;lt;inf&amp;gt; app: Updated MTU: TX: 23 RX: 23 bytes&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:03:24.080,932] \033[0m&amp;lt;inf&amp;gt; app: Central connected to F0:C9:75:7D:CB:FF (random)&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:03:24.080,993] \033[0m&amp;lt;inf&amp;gt; app: security is currently 1&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:03:24.082,550] \033[0m&amp;lt;inf&amp;gt; app: security set to BT_SECURITY_L2&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:03:24.086,486] \033[0m&amp;lt;inf&amp;gt; app: System got EVENT_BLE_PERIPHERAL_CONNECTED\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:03:40.088,104] \033[0m&amp;lt;inf&amp;gt; app: Pairing failed: F0:C9:75:7D:CB:FF (random) reason: 9&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:03:40.088,348] \033[0m&amp;lt;inf&amp;gt; app: Security failed: F0:C9:75:7D:CB:FF (random) level 1 err 9&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:03:40.088,409] \033[1;31m&amp;lt;err&amp;gt; bt_gatt_dm: Discover failed, error: -128.\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:03:40.088,470] \033[0m&amp;lt;inf&amp;gt; app: Could not start the discovery procedure, error code: -128&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:03:40.094,299] \033[0m&amp;lt;inf&amp;gt; app: Peripheral disconnected (reason 0x08)&lt;br /&gt;\033[0m&lt;br /&gt;\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J\033[1;32mnovaPro&amp;gt;\033[m\033[8D\033[J[00:03:40.105,041] \033[0m&amp;lt;inf&amp;gt; app: System got EVENT_BLE_PERIPHERAL_DISCONNECTED\033[0m&lt;br /&gt;\0&lt;br /&gt;&lt;br /&gt;What we see here is in the connected() callback; where I check the security level before sayng I wish to set the L2.&lt;br /&gt;&lt;br /&gt;Then 16 seconds later we see the securityChanged() callback with the level 1 error 9; followed by we drop into try and do the gatt_disover().&lt;br /&gt;&lt;br /&gt;Looking into the bluetooth trace (I am not that familiar with these low level BLE protocols); packet 2568 at time 23.20s the slave sends the master a &amp;quot;SMP receved pairing random&amp;quot;; after which we just see empty PDU&amp;#39;s tll approx 41s when the connection is dropped and the heartstrap starts advertising again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So what is Noridic BT stack doing in those 16 seconds where the connencton is up; but t has not reported the success or failure; till the end of the 16 seconds where the error is reported?&lt;br /&gt;&lt;br /&gt;I will try and get a better trace.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404390?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 15:32:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30f37e47-cadc-459f-8bda-635e2612a924</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Owain,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes I can see the new trace now.&amp;nbsp;&lt;br /&gt;The new trace shows the exact same situation compared to the last one you sent&amp;nbsp;back in May last year. The nRF5 didn&amp;#39;t send the pairing confirm and then the slave disconnected.&amp;nbsp;&lt;br /&gt;I don&amp;#39;t know why the central worked that way.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I suggested earlier, have you tried to use the central_hr example we have in the SDK to see if it work ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Your central code, does it work with other HR strap ? Did it do bonding with other strap ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would need to see how you configure the central , to see if there is any issue with security configuration.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404327?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 13:21:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce7d4969-78c2-47ad-b74c-1dc23d262c33</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;is this one OK?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404280?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 10:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c075070b-d34d-450e-befc-b2da1a708ff9</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/novaToPolar.pcap.pcapng"&gt;devzone.nordicsemi.com/.../novaToPolar.pcap.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404252?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 09:52:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b14a8ea1-b073-4e67-9798-41846e9d2350</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Owain,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Could you please re-upload the sniffer trace ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404185?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 18:06:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33c8810c-c735-4738-8306-e14b13f95a0e</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;My code is pretty much the Nordic example.&lt;br /&gt;&lt;br /&gt;In the connected callback; if I just do the gatt_discover(); all is is good; my Polar H10 works fine; but if I set the security to L2; I get an error flagged in the security_changed callback for level 0 and error 9.&lt;br /&gt;&lt;br /&gt;The same code works fine for a Garmin heartstrap setting security to L2.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We have just been using Garmin straps since I last posted the issue; but now I would like to tackle and get the Polar working.&lt;br /&gt;&lt;br /&gt;See attached a wireshark BLE trace of the attempted connection from my 5340 to the Polar; setting security to L2.&lt;br /&gt;&lt;br /&gt;Can you see anything in this trace to indicate why the connection would be dropped and the heartstrap starts advertising again?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/404184?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 18:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfb5d2b6-2d62-4d9b-a841-807083402745</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;My code is pretty much the Nordic example.&lt;br /&gt;&lt;br /&gt;In the connected callback; if I just do the gatt_discover(); all is is good; my Polar H10 works fine; but if I set the security to L2; I get an error flagged in the security_changed callback for level 0 and error 9.&lt;br /&gt;&lt;br /&gt;The same code works fine for a Garmin heartstrap setting security to L2.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We have just been using Garmin straps since I last posted the issue; but now I would like to tackle and get the Polar working.&lt;br /&gt;&lt;br /&gt;See attached a wireshark BLE trace of the attempted connection from my 5340 to the Polar; setting security to L2.&lt;br /&gt;&lt;br /&gt;Can you see anything in this trace to indicate why the connection would be dropped and the heartstrap starts advertising again?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 5340, Zephyr failure to connect to Polar Heart rate strap; ble wireshark trace</title><link>https://devzone.nordicsemi.com/thread/369023?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 12:39:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd6e593a-0500-44a2-9ab3-b9e92d73cb1b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hei Owain,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;You are right, the error is from the&amp;nbsp;bt_security_err and it&amp;#39;s&amp;nbsp;BT_SECURITY_ERR_UNSPECIFIED not&amp;nbsp;&lt;span&gt;BT_SMP_ERR_REPEATED_ATTEMPTS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m not so sure why the central didn&amp;#39;t send&amp;nbsp;LL_ENC_REQ (0x03) after receiving pairing Random from the peripheral. It&amp;#39;s most likely the confirm value didn&amp;#39;t match with the random value generated.&amp;nbsp;&lt;br /&gt;You can have a look at this message sequence chart from Bluetooth Spec v5.2 here:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/892x908/__key/communityserver-discussions-components-files/4/pastedimage1653308943471v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My suggestion is to try testing the Polar strap with one of our central HR sample to see if it works. Please try to capture a sniffer trace with that.&lt;br /&gt; Also, I don&amp;#39;t know if removing the battery on the strap would make it clear the bond information or not. But if you can use other device to make a new bond/update bond then it should work with the nRF53.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t think the order where&amp;nbsp; you do feature/phy request would affect the pairing process. However, you can control when the central starts the pairing process by choosing when to call&amp;nbsp;&lt;/span&gt;bt_conn_set_security()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>