<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>connecting nrf52840dk to nrf52840dongle uart examples</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/87972/connecting-nrf52840dk-to-nrf52840dongle-uart-examples</link><description>Greetings All, 
 I am trying to connect an nrf52840dk board to an nrf52840dongle for wireless serial communication. 
 I flashed the nrf52840dk with the central_uart sample and the nrf52840dongle with the peripheral_uart sample. 
 I&amp;#39;m using version 1.9</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 23 May 2022 13:27:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87972/connecting-nrf52840dk-to-nrf52840dongle-uart-examples" /><item><title>RE: connecting nrf52840dk to nrf52840dongle uart examples</title><link>https://test-devzone.nordicsemi.com/thread/369056?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 13:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5689281-545c-4358-8a59-b374b3718def</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Jim Ellyson"]So the bluetooth connection is good now. I need to work on figuring out the serial comm errors. Timing? Buffers?[/quote]
&lt;p&gt;It looks like the log buffer is filling up faster than it can be emptied or it is simply too small. If that is the case, you can increase &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_LOG_STRDUP_BUF_COUNT"&gt;CONFIG_LOG_STRDUP_BUF_COUNT&lt;/a&gt;.&lt;/p&gt;
[quote user="Jim Ellyson"]I&amp;#39;m not sure if I did something offensive to the bootloaders in the older dongles, or if they&amp;#39;re just old.&lt;br /&gt;Is it possible to obtain a&amp;nbsp;bootloader image from nordic to reflash the bootloader on the old dongles?[/quote]
&lt;p&gt;There are some minor differences between different dongle versions, but fundamentally they should all be compatible. This one has the latest revision IC with improved APPROTECT, but it is programmed with the same bootloader hex file as the older dongles in production. You can find a link to download the production hex file in the&amp;nbsp;&lt;a href="https://test-devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;nRF52840 dongle programming tutorial&lt;/a&gt; (search for&amp;nbsp;pca10059_bootloader.zip). Note that there are some pitfalls when using a debugger with the dongle, as explained in that tutorial&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connecting nrf52840dk to nrf52840dongle uart examples</title><link>https://test-devzone.nordicsemi.com/thread/368890?ContentTypeID=1</link><pubDate>Sat, 21 May 2022 16:10:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b782d9fd-2485-4883-9fff-8989604e4847</guid><dc:creator>user116179</dc:creator><description>&lt;p&gt;Greetings Einar,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;If I flash the DK as peripheral and Dongle as central, and debug peripheral.&lt;br /&gt;without the dongle being powered, I get the following output with no errors.&lt;/p&gt;
&lt;p&gt;[00:00:02.314,147] &amp;lt;inf&amp;gt; fs_nvs: 8 Sectors of 4096 bytes&lt;br /&gt;[00:00:02.314,147] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, fd0&lt;br /&gt;[00:00:02.314,147] &amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 1c&lt;br /&gt;[00:00:02.314,392] &amp;lt;inf&amp;gt; sdc_hci_driver: SoftDevice Controller build revision: &lt;br /&gt; 0e e7 c5 66 67 18 3c ac b3 d2 cc 81 a3 dc f1 c0 |...fg.&amp;lt;. ........&lt;br /&gt; c0 36 02 22 |.6.&amp;quot; &lt;br /&gt;[00:00:02.321,807] &amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()&lt;br /&gt;[00:00:02.321,838] &amp;lt;inf&amp;gt; peripheral_uart: Bluetooth initialized&lt;/p&gt;
&lt;p&gt;When I fire up central on the dongle, I get the following output without error. &lt;br /&gt;Hooray!&lt;/p&gt;
&lt;p&gt;[00:00:02.314,147] &amp;lt;inf&amp;gt; fs_nvs: 8 Sectors of 4096 bytes&lt;br /&gt;[00:00:02.314,147] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, fd0&lt;br /&gt;[00:00:02.314,147] &amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 1c&lt;br /&gt;[00:00:02.314,392] &amp;lt;inf&amp;gt; sdc_hci_driver: SoftDevice Controller build revision: &lt;br /&gt; 0e e7 c5 66 67 18 3c ac b3 d2 cc 81 a3 dc f1 c0 |...fg.&amp;lt;. ........&lt;br /&gt; c0 36 02 22 |.6.&amp;quot; &lt;br /&gt;[00:00:02.321,807] &amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()&lt;br /&gt;[00:00:02.321,838] &amp;lt;inf&amp;gt; peripheral_uart: Bluetooth initialized&lt;br /&gt;[00:00:43.059,356] &amp;lt;inf&amp;gt; peripheral_uart: Connected FE:DB:32:64:13:31 (random)&lt;/p&gt;
&lt;p&gt;If I start sending serial data, I get the following output.&lt;/p&gt;
&lt;p&gt;[00:00:02.912,780] &amp;lt;inf&amp;gt; fs_nvs: 8 Sectors of 4096 bytes&lt;br /&gt;[00:00:02.912,780] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, fd0&lt;br /&gt;[00:00:02.912,780] &amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 1c&lt;br /&gt;[00:00:02.913,024] &amp;lt;inf&amp;gt; sdc_hci_driver: SoftDevice Controller build revision: &lt;br /&gt; 0e e7 c5 66 67 18 3c ac b3 d2 cc 81 a3 dc f1 c0 |...fg.&amp;lt;. ........&lt;br /&gt; c0 36 02 22 |.6.&amp;quot; &lt;br /&gt;[00:00:02.920,379] &amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()&lt;br /&gt;[00:00:02.920,440] &amp;lt;inf&amp;gt; peripheral_uart: Bluetooth initialized&lt;br /&gt;[00:00:03.253,753] &amp;lt;inf&amp;gt; peripheral_uart: Connected DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:14.654,235] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:14.754,394] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:14.854,278] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:14.954,345] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:15.054,290] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:15.154,327] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:15.254,241] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:15.354,309] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:15.454,315] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: &amp;lt;log_strdup alloc failed&amp;gt;&lt;br /&gt;[00:00:15.554,229] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: &amp;lt;log_strdup alloc failed&amp;gt;&lt;br /&gt;[00:00:15.654,205] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: &amp;lt;log_strdup alloc failed&amp;gt;&lt;br /&gt;[00:00:15.754,211] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:15.854,217] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:15.954,193] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:16.054,290] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:16.154,174] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:16.254,180] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:16.354,187] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:16.454,284] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:16.554,229] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: &amp;lt;log_strdup alloc failed&amp;gt;&lt;br /&gt;[00:00:16.654,144] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: &amp;lt;log_strdup alloc failed&amp;gt;&lt;br /&gt;[00:00:16.754,150] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: &amp;lt;log_strdup alloc failed&amp;gt;&lt;br /&gt;[00:00:16.854,156] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:16.954,254] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:17.054,138] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:17.154,113] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:17.254,119] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:17.354,187] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:17.454,101] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:17.554,138] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: DF:FE:3E:E2:44:AE (random)&lt;br /&gt;[00:00:17.654,174] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: &amp;lt;log_strdup alloc failed&amp;gt;&lt;br /&gt;[00:00:17.754,089] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: &amp;lt;log_strdup alloc failed&amp;gt;&lt;br /&gt;[00:00:17.854,064] &amp;lt;inf&amp;gt; peripheral_uart: Received data from: &amp;lt;log_strdup alloc failed&amp;gt;&lt;br /&gt;Ad Infinitum... Sad face.&lt;/p&gt;
&lt;p&gt;So the bluetooth connection is good now. I need to work on figuring out the serial comm errors. Timing? Buffers?&lt;/p&gt;
&lt;p&gt;I got a new dongle and programmed as peripheral, with the DK as central and I get no connection error in debug.&lt;br /&gt;Hooray!&lt;br /&gt;The new dongle date code is 2.1.0 /2021.51.&lt;/p&gt;
&lt;p&gt;The dongles I was having the error with, have date codes 1.2.0 /2020.19&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if I did something offensive to the bootloaders in the older dongles, or if they&amp;#39;re just old.&lt;br /&gt;Is it possible to obtain a&amp;nbsp;bootloader image from nordic to reflash the bootloader on the old dongles?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connecting nrf52840dk to nrf52840dongle uart examples</title><link>https://test-devzone.nordicsemi.com/thread/368669?ContentTypeID=1</link><pubDate>Thu, 19 May 2022 14:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad8163c2-380f-4eff-862e-3ae2c410f3ce</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see, there is another issue then.&amp;nbsp;If I test with unmodified examples from 1.9.1 with a DK as central and dongle as peripheral, I get this log, as expected:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [00:00:00.011,566] &amp;lt;inf&amp;gt; fs_nvs: 8 Sectors of 4096 bytes
00&amp;gt; [00:00:00.011,596] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, fe8
00&amp;gt; [00:00:00.011,596] &amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 0
00&amp;gt; [00:00:00.011,749] &amp;lt;inf&amp;gt; sdc_hci_driver: SoftDevice Controller build revision: 
00&amp;gt;                                          0e e7 c5 66 67 18 3c ac  b3 d2 cc 81 a3 dc f1 c0 |...fg.&amp;lt;. ........
00&amp;gt;                                          c0 36 02 22                                      |.6.&amp;quot;             
00&amp;gt; [00:00:00.016,784] &amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()
00&amp;gt; [00:00:00.016,784] &amp;lt;inf&amp;gt; central_uart: Bluetooth initialized
00&amp;gt; [00:00:00.018,890] &amp;lt;inf&amp;gt; central_uart: Scan module initialized
00&amp;gt; [00:00:00.018,920] &amp;lt;inf&amp;gt; central_uart: NUS Client module initialized
00&amp;gt; [00:00:00.029,571] &amp;lt;inf&amp;gt; central_uart: Scanning successfully started
00&amp;gt; [00:00:15.718,414] &amp;lt;inf&amp;gt; central_uart: Filters matched. Address: C6:A3:38:69:C3:45 (random) connectable: 0
00&amp;gt; [00:00:16.038,696] &amp;lt;inf&amp;gt; central_uart: Connected: C6:A3:38:69:C3:45 (random)
00&amp;gt; [00:00:16.139,862] &amp;lt;inf&amp;gt; central_uart: MTU exchange done
00&amp;gt; [00:00:17.647,277] &amp;lt;inf&amp;gt; central_uart: Pairing completed: C6:A3:38:69:C3:45 (random), bonded: 1
00&amp;gt; [00:00:17.647,552] &amp;lt;inf&amp;gt; central_uart: Security changed: C6:A3:38:69:C3:45 (random) level 2
00&amp;gt; [00:00:18.339,721] &amp;lt;inf&amp;gt; central_uart: Service discovery completed&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You get error 9, which is&amp;nbsp;BT_SECURITY_ERR_UNSPECIFIED. I do not immediately have any other theories. Do you by any chance have two DKs, so that you can easily get logs from the peripheral side and debug that as well? Or try with the peripheral on the DK and central on the dongle and share the log from the peripheral?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connecting nrf52840dk to nrf52840dongle uart examples</title><link>https://test-devzone.nordicsemi.com/thread/368467?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 18:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3dcd93d-9fbb-4184-97fb-a7984d65037a</guid><dc:creator>user116179</dc:creator><description>&lt;p&gt;Greetings Einar,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if this is a bonding issue.&lt;/p&gt;
&lt;p&gt;I added&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE"&gt;CONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE&lt;/a&gt;&lt;span&gt;=y&amp;nbsp;as the last line under the &amp;quot;ENABLE BONDING&amp;quot; group in the prj.conf file in both central_uart and peripheral_uart samples, Reloaded thru Segger for Nordic V5.60 with clean build directory box checked, recompiled and re-flashed both binaries to their respective boards. I still get the exact same output in the debug terminal.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any alternative theories?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&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: connecting nrf52840dk to nrf52840dongle uart examples</title><link>https://test-devzone.nordicsemi.com/thread/368459?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 17:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aefda3cc-bdfc-4c6c-a825-85324b21921e</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To do it programatically you need to call&amp;nbsp;bt_unpair(). But if the issue here is just something that happened when testing, for instance&amp;nbsp; because you flashed both peers with the respective firmware and then reased and re-flashed one of them, a simple fix would be to erase and reprogram both devices. If you do, erasing will also remove any bonding data and they can pair again.&lt;/p&gt;
&lt;p&gt;Edit: If this is indeed the issue, you can also change the configuration to allow repairing by adding &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE"&gt;CONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE&lt;/a&gt;=y to your prj.conf.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connecting nrf52840dk to nrf52840dongle uart examples</title><link>https://test-devzone.nordicsemi.com/thread/368447?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 15:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1daa72e8-14d6-41c6-9dc3-e2be3adc0211</guid><dc:creator>user116179</dc:creator><description>&lt;p&gt;Greetings Einar,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;Pardon my ignorance, but how does one go about deleting a bond?&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connecting nrf52840dk to nrf52840dongle uart examples</title><link>https://test-devzone.nordicsemi.com/thread/368401?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 14:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90624dfd-f7c2-4e58-bb14-bff67f1363ac</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like the devices bonded before, but you deleted the bonding information (perhaps did a full flash erase?) one one of the devices? If so, the fix is to delete the bond on the other device as well so that they can pair.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>