<?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>Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a &amp;#39;successful&amp;#39; connection param update.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update</link><description>Hello, 
 We are currently in the process of developing a custom board containing the nrf5340, which will act as a central for HR devices and a peripheral for data transfers. During the development of the HR side we came across an issue in our custom board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 May 2025 10:27:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update" /><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/536389?ContentTypeID=1</link><pubDate>Wed, 21 May 2025 10:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:258d302c-7847-4cf8-9786-742636f61cb9</guid><dc:creator>Relitech-Jeroen</dc:creator><description>&lt;p&gt;We have found the cause of the problem, and verified a fix. The issue indeed came from our crystal being incorrectly specified to the load capacitance, as our 32k crystal expected 4pF but the nordic chip could only go down to 6pf internal capacitance.&lt;/p&gt;
&lt;p&gt;To validate this, I have desoldered the 32k crystal from a defect DK board we had lying around, and replaced our own with it. After doing this and using the default crystal settings in the board configuration, the device was able to keep a connection alive after a connection parameter update request was called.&lt;/p&gt;
&lt;p&gt;Why or how flashing a DK with a heart rate peripheral firmware meant that our device was able to accept longer connection intervals, is a mystery to me. Why our device was unable to synthesize the 32kHz clock is also a dubious issue, but not an important one.&lt;/p&gt;
&lt;p&gt;Thank you for your time and help &lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/536318?ContentTypeID=1</link><pubDate>Wed, 21 May 2025 06:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b3f79ba-7b26-4e62-8501-af0a4a7be492</guid><dc:creator>Edvin</dc:creator><description>[quote user="Relitech-Jeroen"]GPPI one_to_one example[/quote]
&lt;p&gt;Which sample is this? And is it testing the HFCLK or the LFCLK?&lt;/p&gt;
[quote user="Relitech-Jeroen"]but doing this gives us a high and low time of 990ms instead of 1000ms, so either our clock has a 1% inaccuracy, or more likely we are using the sample incorrectly[/quote]
&lt;p&gt;Do you see the same on the nRF5340DK?&lt;/p&gt;
[quote user="Relitech-Jeroen"]&lt;p&gt;What would be the specifics of such a ticket? Assuming Problem Type = Hardware, Development Stage = Development, Product = nRF5340, Distributor = None?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I suspect you need to select a distributor to be allowed to create a private ticket, but you can test without. The rest is fine.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/536164?ContentTypeID=1</link><pubDate>Tue, 20 May 2025 10:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:036b102f-dee2-4667-b337-ea1d8f8083aa</guid><dc:creator>Relitech-Jeroen</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;We are currently running the GPPI one_to_one example to see how accurate our timer is. Would this sample provide us with that information? We are using an oscilloscope on a test pin (not an LED because our LED was routed to the other bank GPIO1), but doing this gives us a high and low time of 990ms instead of 1000ms, so either our clock has a 1% inaccuracy, or more likely we are using the sample incorrectly.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/536096"](such as capacitors around the XTALs)[/quote]
&lt;p&gt;We have dutifully followed the recommendations of the nordic datasheet specifying configuration 3 and are using the internal load capacitors for both the high frequency and low frequency clock. Calculating the required load capacitors based on our trace and pad capacitance, plus the capacitance required by the crystal, we came to a value of 7pF for our 32kHz and 14pF (2x7) for our 32MHz clock. We have selected these as well in the config files.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;CONFIG_SOC_HFXO_CAP_INT_VALUE_X2=14&lt;br /&gt;CONFIG_SOC_LFXO_CAP_INT_7PF=y&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Varying these values does not change the outcome, the board still fails after a connection interval change.&lt;/p&gt;
&lt;p&gt;I will be looking more into debugging the timing values.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/536096"]And if you haven&amp;#39;t already, can you please create a ticket (you might want that to be a private ticket) where you upload your schematics and PCB layout files, and request a HW review,[/quote]
&lt;p&gt;What would be the specifics of such a ticket? Assuming Problem Type = Hardware, Development Stage = Development, Product = nRF5340, Distributor = None?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jeroen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/536096?ContentTypeID=1</link><pubDate>Tue, 20 May 2025 07:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef6e13cf-c636-4e61-afce-739b842cb700</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Indeed, this is worth looking into.&lt;/p&gt;
&lt;p&gt;And if you haven&amp;#39;t already, can you please create a ticket (you might want that to be a private ticket) where you upload your schematics and PCB layout files, and request a HW review, to check that things (such as capacitors around the XTALs) have proper values.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/536046?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 19:13:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31aaff63-7183-45e9-8ff2-28eb01530106</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Have you checked the HFXO frequency?&lt;/p&gt;
&lt;p&gt;We had another thread here some time (weeks?) ago where improperly sized loading capacitors caused HFXO frequency to shift outside acceptable range.&lt;/p&gt;
&lt;p&gt;I recommend using GPIOTE and a timer/RTC peripherial in order to check both crystal frequencies.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/536033?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 14:35:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e10ea01-630b-44c3-b6b9-0c9e8f79c4c0</guid><dc:creator>Relitech-Jeroen</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/536013"]What Nordic DK is the peripheral in this case?[/quote]
&lt;p&gt;We are using the nRF52840-DK, I tried to build the example for an nRF5340DK but got a dts linker error out of the box, so switched over to the other DK as we have both lying around.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/536013"]On your central device, what is the LFLCK accuracy?[/quote]
&lt;p&gt;The low frequency clock accuracy should be 20ppm, according to the datasheet. We are using the&amp;nbsp;ECS-.327-CDX-1082.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/536013"]Can you try setting this in prj.conf:&lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y[/quote]
&lt;p&gt;The above setting did not change the behaviour of our central.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/536013"]&lt;p&gt;If that doesn&amp;#39;t make a difference, can you also try adding:&lt;/p&gt;
&lt;p&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y&lt;/p&gt;[/quote]
&lt;p&gt;This has caused our central device to be completely unable to keep a connection alive for more than 1 empty PDU. Which I find strange when looking at the description of the config, as it should just synthesize a LFCLK from the HFCLK, which could indicate an issue with the HFCLK?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jeroen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/536013?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 13:43:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b285404-8174-4ffa-877d-6f390c1546c8</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;It baffles me as well. Particularly the part where you say that it is able to keep the connection, but the sniffer is not picking it up.&amp;nbsp;&lt;/p&gt;
[quote user="Relitech-Jeroen"]For testing we are using a watch and a heart rate band, the watch has a preferred connection interval of 330ms and the band 500ms. Setting these intervals in the zephyr example causes no issues. The connection interval is updated by our central and kept alive just fine. The bluetooth sniffer however stops receiving after the event instant for the connection param update has passed (so the connection interval specifies instant 211, and as soon as event 211 occurs, the sniffer stops receiving, while our RTT is still logging a valid connection).[/quote]
&lt;p&gt;What Nordic DK is the peripheral in this case?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On your central device, what is the LFLCK accuracy?&lt;/p&gt;
&lt;p&gt;Can you try setting this in prj.conf:&lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t make a difference, can you also try adding:&lt;/p&gt;
&lt;p&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y&lt;/p&gt;
&lt;p&gt;And let me know if any of those changes anything?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/535916?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 07:28:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4763aee0-ea30-4055-afaa-2ad2de9cedc7</guid><dc:creator>Relitech-Jeroen</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/535797"]That is correct. It is always the central sending the first packet in a connection, to which the peripheral replies.[/quote]
&lt;p&gt;So to summarize, the central is responsible for keeping the connection alive, it stops trying to do this and then receives a timeout. Why would it stop trying to connect to the peripheral? Or is this a bug from the wireshark sniffer?&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/535797"]Does this happen on one specific device, or multiple custom boards? Do you have multiple custom boards to test on? Just to see if this is an issue that follows one specific chip, or if it follows the HW+SW.[/quote]
&lt;p&gt;We have different custom boards of the same hardware design, but from a different batch and a different revision. They always fail at keeping the connection alive after updating the connection parameters past a certain threshold. When using a Nordic DK board as a peripheral, the connection interval becomes unstable at around 600ms. Meanwhile the 3rd party watch and 3rd party heart rate band both fail at their respective intervals of 332.5ms and 500ms, while the Nordic DK board as peripheral still works at these intervals.&lt;/p&gt;
&lt;p&gt;Any further advice?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jeroen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/535803?ContentTypeID=1</link><pubDate>Fri, 16 May 2025 13:30:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5d5c558-0537-4f80-90d7-e30a26272f38</guid><dc:creator>Jan Willem (RT)</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m replying on behalf of my colleague, as he&amp;#39;s not in today.&lt;/p&gt;
&lt;p&gt;Yes, we&amp;#39;ve tried the same software with different custom boards, and these give the same behaviour.&lt;/p&gt;
&lt;p&gt;We also tested with responding different connection parameters, which sometimes does change the behaviour that the connection remains &amp;quot;more stable&amp;quot;, as in, the timeout is deferred to a later moment. This would suggest that our board has problems with keeping an accurate reference clock. However, to verify this, we tried logging information at regular intervals on our custom board which did not reveal any significant drift or wander of the clock.&lt;/p&gt;
&lt;p&gt;As mentioned before, the strange thing is that the BLE sniffer does not report any traffic being sent after the connection parameters are changed on our custom board, the RTT logs on both the central and HR peripheral do still show ongoing communication. Until a timeout event is triggered, and the connection is dropped. This event is also logged by the BLE sniffer.&lt;/p&gt;
&lt;p&gt;It is really baffling what is happening here, and we&amp;#39;re not sure what options we have to investigate this further.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan Willem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/535797?ContentTypeID=1</link><pubDate>Fri, 16 May 2025 13:12:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e1c6d88-fe88-41cb-96fc-da9f7a06bdf8</guid><dc:creator>Edvin</dc:creator><description>[quote user="Relitech-Jeroen"]Our central meanwhile also disconnects because of a timeout, which is odd because what I can see from the wireshark it was our central who was responsible for keeping the connection alive.[/quote]
&lt;p&gt;That is correct. It is always the central sending the first packet in a connection, to which the peripheral replies.&lt;/p&gt;
&lt;p&gt;Does this happen on one specific device, or multiple custom boards? Do you have multiple custom boards to test on? Just to see if this is an issue that follows one specific chip, or if it follows the HW+SW.&lt;/p&gt;
&lt;p&gt;It is strange. Setting the initial connection parameters to match the peripherals preferred parameters working just fine suggests that there is no timing issue. So the device is perfectly capable of maintaining a connection with these parameters. It is interesting that the sniffer falls out, though.&amp;nbsp;&lt;/p&gt;
[quote user="Relitech-Jeroen"]RTT is still logging a valid connection[/quote]
&lt;p&gt;Is that both on the central and the peripheral, or just the central?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/535519?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 10:27:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2a8c95c-c75a-4f8f-a888-5eb7f4b3fc01</guid><dc:creator>Relitech-Jeroen</dc:creator><description>&lt;p&gt;I have been testing a bit more and found some strange results.&lt;/p&gt;
&lt;p&gt;For testing we are using a watch and a heart rate band, the watch has a preferred connection interval of 330ms and the band 500ms. Setting these intervals in the zephyr example causes no issues. The connection interval is updated by our central and kept alive just fine. The bluetooth sniffer however stops receiving after the event instant for the connection param update has passed (so the connection interval specifies instant 211, and as soon as event 211 occurs, the sniffer stops receiving, while our RTT is still logging a valid connection).&lt;/p&gt;
&lt;p&gt;When we disable the zephyr example and instead connect the band or the watch, the problem returns. The problem is still not visible on our DK board, which can connect with both the band and the watch.&lt;/p&gt;
&lt;p&gt;Setting the connection interval back to 800 (1000ms) the zephyr example will also get timed out after a connection parameter update request.&lt;/p&gt;
&lt;p&gt;@Edvin do you have any further advice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/535485?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 08:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66429f2b-d6e9-4103-b853-3c94b3d658b7</guid><dc:creator>Relitech-Jeroen</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
[quote userid="145488" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/535476"]I will program a HR gatt server into another nordic dev board and get back to you with a log from that.[/quote]
&lt;p&gt;I have programmed a nRF52840DK with the zephyr Perihperal HR example and changed the preferred connection interval to be 800/800, which gives me the following log:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Connected&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Stop blinking LED.&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[00:02:26.076,751] &amp;lt;inf&amp;gt; hrs: HRS notifications enabled&lt;/code&gt;&lt;br /&gt;&lt;code&gt;HRS notification status changed: enabled&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[00:02:34.578,125] &amp;lt;wrn&amp;gt; bt_conn: conn 0x200021a0: not connected&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[00:02:34.578,277] &amp;lt;inf&amp;gt; hrs: HRS notifications disabled&lt;/code&gt;&lt;br /&gt;&lt;code&gt;HRS notification status changed: disabled&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Disconnected, reason 0x08 &lt;/code&gt;&lt;br /&gt;&lt;code&gt;[00:02:34.578,399] &amp;lt;wrn&amp;gt; bt_conn: conn 0x200021a0: not connected&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Starting Legacy Advertising (connectable and scannable)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Start blinking LED...&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Reason number 0x08 is a timeout, as expected.&lt;/p&gt;
&lt;p&gt;What is interesting however, is that the example originally wanted to talk at an &lt;strong&gt;&lt;/strong&gt;interval of 24/40 and our module accepted and used it just fine, so I will experiment with the connection interval for a bit to see when the parameter update is no longer propagated correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/535476?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 08:14:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d96d140-9132-4f57-b24e-92bec13cbf1f</guid><dc:creator>Relitech-Jeroen</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;Thank you for your reply!&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/535466"]Let me see if I got this right. You are the central in the connection that we are investigating now, and the issue occurs only on your custom board, but you are not able to see the behavior on a DK, right?[/quote]
&lt;p&gt;Your problem description is correct.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/535466"]Are you the developer of the peripheral device as well? Is that another nRF device? If so, according to the log, what is the disconnect reason from the peripheral? And what is the disconnect reason for the central?[/quote]
&lt;p&gt;We are currently not in control of the peripheral, but from looking at the wireshark data we can see that our Central pretty much stops communicating on its own. The peripheral therefore receives a communication timeout and starts advertising itself again. Our central meanwhile also disconnects because of a timeout, which is odd because what I can see from the wireshark it was our central who was responsible for keeping the connection alive. I will program a HR gatt server into another nordic dev board and get back to you with a log from that.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/535466"]Is this issue consistent, or does it happen occationally?[/quote]
&lt;p&gt;It is a systemic issue, in that we always see the problem occur. Our device has never once successfully kept the communication alive after a connection param update request.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/535466"]Can you show me the code where you accept it?[/quote]
&lt;p&gt;We do not manually accept the param change request in our current firmware, relying on the back-end to do so as it has been doing that in the sample code in the DK. When we added a decline I temporarily overwrote the param_change_req callback and made it return false regardless of the input.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/535466"]If it happens all the time, can you please upload a sniffer trace of the issue noe happening on the DK?[/quote]
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bluetooth_5F00_sniffer_5F00_nrf_5F00_connect_5F00_with_5F00_instinct2.pcapng"&gt;devzone.nordicsemi.com/.../bluetooth_5F00_sniffer_5F00_nrf_5F00_connect_5F00_with_5F00_instinct2.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above file is a sniffer trace from a nordic module connected to nRF Connect Desktop connecting with my watch, which successfully updated the connection parameters at package number 551. If you want to see it working with our firmware on a DK, I can get a sniffer trace of that as well if required, but it looks the same.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/121384/custom-board-nrf5340-configured-as-central-peripheral-hr-combo-disconnects-from-hr-devices-after-a-successful-connection-param-update/535466"]Can you specify what DK elements that was removed?[/quote]
&lt;p&gt;In all files we removed references to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Led 2 and led 3&lt;/li&gt;
&lt;li&gt;All buttons&lt;/li&gt;
&lt;li&gt;Arduino references&lt;/li&gt;
&lt;li&gt;I2C&lt;/li&gt;
&lt;li&gt;Quad SPI&lt;/li&gt;
&lt;li&gt;GPIO forwarder&lt;/li&gt;
&lt;li&gt;USB&lt;/li&gt;
&lt;li&gt;Aliases for mcuboot button and led&lt;/li&gt;
&lt;li&gt;Configs related to serial, console and UART_CONSOLE as we do not have a uart console (we use RTT)&lt;/li&gt;
&lt;li&gt;Any references to I2C, qspi, uart1 and spi in pintctrl&lt;/li&gt;
&lt;li&gt;Changed pins of the UART to match ours (tx at gpio0, 21 and rx at gpio0, 19)&lt;/li&gt;
&lt;li&gt;Under the &amp;#39;chosen&amp;#39; node, removed anything linked to the uart0 alias&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In the common file we added nfct-pins-as-gpios under the &amp;amp;uicr node alias.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Jeroen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/535466?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 07:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3568aa97-c42b-4345-b82e-c42a4614b791</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for the detailed description!&lt;/p&gt;
&lt;p&gt;Let me see if I got this right. You are the central in the connection that we are investigating now, and the issue occurs only on your custom board, but you are not able to see the behavior on a DK, right?&lt;/p&gt;
&lt;p&gt;Are you the developer of the peripheral device as well? Is that another nRF device? If so, according to the log, what is the disconnect reason from the peripheral? And what is the disconnect reason for the central?&lt;/p&gt;
&lt;p&gt;Is this issue consistent, or does it happen occationally?&lt;/p&gt;
[quote user=""]What does work is that we can use the le_param_update_req callback to simply decline the connection parameter update request[/quote]
&lt;p&gt;Can you show me the code where you accept it?&lt;/p&gt;
&lt;p&gt;If it sometimes works without the disconnection, can you please upload a sniffer trace of that scenario as well? If it happens all the time, can you please upload a sniffer trace of the issue noe happening on the DK?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]We created two build configurations, one for our DK and one for our own hardware (the dts of which is solely based on that of the DK with DK elements removed).[/quote]
&lt;p&gt;Can you specify what DK elements that was removed?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/535462?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 07:22:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:726a8e2a-d621-47f6-aad9-c4701ff29bdd</guid><dc:creator>Jan Willem (RT)</dc:creator><description>&lt;p&gt;We&amp;#39;ve conducted some more tests and still see the same behaviour, unfortunately. What is even stranger is the fact that the &lt;strong&gt;same&lt;/strong&gt; build artifacts (= hex files for CPU and NET) yield different behaviour on our hardware with respect to the nRF5340DK hardware.&lt;/p&gt;
&lt;p&gt;This &lt;em&gt;might&lt;/em&gt; suggest we&amp;#39;re looking at a hardware related issue, but there is no significant difference in components (all are as per recommendation from the suggested circuit configuration).&lt;/p&gt;
&lt;p&gt;Does anybody have any pointer in which we can continue our investigation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board nrf5340 configured as central peripheral HR combo disconnects from HR devices after a 'successful' connection param update.</title><link>https://devzone.nordicsemi.com/thread/534917?ContentTypeID=1</link><pubDate>Mon, 12 May 2025 13:37:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0ac9b3d-84cb-4cd4-aa61-653ee289387a</guid><dc:creator>Relitech-Jeroen</dc:creator><description>&lt;p&gt;I have added a capture file where the problem is encapsulated.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/custom_5F00_board_5F00_connection_5F00_param_5F00_update_5F00_failed_5F00_2.pcapng"&gt;devzone.nordicsemi.com/.../custom_5F00_board_5F00_connection_5F00_param_5F00_update_5F00_failed_5F00_2.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The central receives a param_change request in packet number 332, packet number 336 is the control opcode stating that the parameters are to be accepted. This has the instant value of 211, so at event 211 we expect the change to be applied.&lt;/p&gt;
&lt;p&gt;If we select packet 346 we can see that this is the last connection interval that was sent by the central which the peripheral replied to was indeed event 211. The central afterwards never sends any new connections on the new connection interval, so the peripheral gives up after 4000 milliseconds (which is the expected timeout parameter) and starts advertising itself again.&lt;/p&gt;
&lt;p&gt;Since wireshark is filtered on the peripheral, I cannot see if the central is attempting to connect to a malformed destination. If there is a way for me to see more than just advertising packets in the nRF Sniffer I could check if the central is communicating anything else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>