<?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>S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27911/s140-nrf52840-sdk-14-2-0-ble-peripheral-uart-example-not-working</link><description>Hi, 
 I&amp;#39;m using SDK 14.2.0, and nRF52840-Preview-DK.
Followed the tutorial:
 devzone.nordicsemi.com/.../ 
I&amp;#39;ve programmed the soft device from: ..\components\softdevice\s140\hex\s140_nrf52840_5.0.0-2.alpha_softdevice.hex
I&amp;#39;ve program the application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Mar 2022 11:33:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27911/s140-nrf52840-sdk-14-2-0-ble-peripheral-uart-example-not-working" /><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/359344?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 11:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f73a03f-7af2-480e-b053-79558d9d02b9</guid><dc:creator>Jansi</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I am working on nrf52840,i am connecting the ble through uart, the above errors is showing me also. kindly share your full code. i have downloaded your hex file and flashed into the board its working good but its pairing the device. plz help me on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110143?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 12:44:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8383fa52-f928-46e4-85f5-cfcef012d254</guid><dc:creator>miki_h</dc:creator><description>&lt;p&gt;Thanks, it&amp;#39;s now working!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110142?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 12:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40169501-0ac3-4255-93c3-97c7cdeb9874</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Could you try to do the following:&lt;/p&gt;
&lt;p&gt;Inside gatt_init(),  change&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = nrf_ble_gatt_att_mtu_periph_set(&amp;amp;m_gatt, 64);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = nrf_ble_gatt_att_mtu_periph_set(&amp;amp;m_gatt, BLE_GATT_ATT_MTU_DEFAULT);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and inside sd_config.h, change&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_SDH_BLE_GATT_MAX_MTU_SIZE 247
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_SDH_BLE_GATT_MAX_MTU_SIZE 23
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110139?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 20:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d836603-6968-4377-8abb-421c819e691e</guid><dc:creator>miki_h</dc:creator><description>&lt;p&gt;Hi Sigurd, can you please explain how to make a new Segger solution for the ble_app_uart_pca10056_s132
from the solution ble_app_uart_pca10056_s140.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110138?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 14:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:125b6dd9-f2e2-4b7b-ad80-061f8b089f37</guid><dc:creator>miki_h</dc:creator><description>&lt;p&gt;commenting the gatt_init(); doesn&amp;#39;t help. now the nRF Connect app is stuck when I&amp;#39;m
trying to connect. The nRF Toolbox UART app shows the Error: (0x8): &amp;quot;GATT CONN TIMEOUT&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110137?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 13:41:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fe26f5d-4bb7-4d27-9537-255e4f4ffd69</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If we move back to SDK 14.2, and S140 5.0.0-2.alpha. You can try to comment out the &lt;code&gt;gatt_init();&lt;/code&gt; in &lt;code&gt;main()&lt;/code&gt;, and see if that improves disconnect issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110136?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 13:26:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2143aff0-950f-4fca-9edf-c7d221bde7d4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You need to append a new-line character to the text you are sending in the terminal, in order for it to be sent over BLE to the phone right away. If you are not appending the new-line character , the text is first send when you have typed 20 characters.&lt;/p&gt;
&lt;p&gt;In termite you can append the new-line character automatically after you have typed the string, by configuring termite like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5287.Capture2.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Code Snippet:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if ((data_array[index - 1] == &amp;#39;\n&amp;#39;) || (index &amp;gt;= (m_ble_nus_max_data_len)))
            {
                NRF_LOG_DEBUG(&amp;quot;Ready to send data over BLE NUS&amp;quot;);
                NRF_LOG_HEXDUMP_DEBUG(data_array, index);

                do
                {
                    uint16_t length = (uint16_t)index;
                    err_code = ble_nus_string_send(&amp;amp;m_nus, data_array, &amp;amp;length);
                    if ( (err_code != NRF_ERROR_INVALID_STATE) &amp;amp;&amp;amp; (err_code != NRF_ERROR_BUSY) )
                    {
                        APP_ERROR_CHECK(err_code);
                    }
                } while (err_code == NRF_ERROR_BUSY);

                index = 0;
            }
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110135?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 13:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:903bb9ce-4975-49ed-9d92-1875e8044bbf</guid><dc:creator>miki_h</dc:creator><description>&lt;p&gt;Update:
The nRF UART 2.0 app seems to work good, it doesn&amp;#39;t disconnect and I&amp;#39;m able to send characters both ways, but when I send characters from the PC to the smartphone its not happening constantly, I need to press the Enter key sometimes only one time and sometimes many times so that the nRF UART 2.0 app will receive the characters...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110134?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 12:25:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:116c3010-809d-49aa-ae99-f43147b191cd</guid><dc:creator>miki_h</dc:creator><description>&lt;p&gt;Hi Sigurd, I tried the unpairing but there is nothing unpairable.. So it didn&amp;#39;t help.
However, the file you&amp;#39;ve sent me seems to work but it&amp;#39;s not stable:
firstly I&amp;#39;ve received the same error when I tried to connect from the nRF Toolbox UART app
so I tried to connect from the nRF Connect app and then I saw something new, I saw a new
service called &amp;quot;Nordic UART Service&amp;quot; and inside of that the &amp;quot;RX Characteristic&amp;quot; and I able to
send some characters to the PC terminal! Anyway I returned to the nRF Toolbox UART app
again and this time it connected successfully and sent some characters to test it, and it
work for about 10 seconds and then disconnected and the DVK got stuck, I needed to turn
it off and then back on again to see the &amp;quot;Nordic_UART&amp;quot; advertising name..
So, first time I&amp;#39;ve been able to do something but it&amp;#39;s not stable enough...
Please see the following screenshots:
&lt;a href="https://postimg.org/gallery/wgk0bbhu/"&gt;postimg.org/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110133?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 11:54:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9202b0f-7791-44aa-bb83-96cbe3901fef</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If it&amp;#39;s still not working, could you test with this .hex file?
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart_5F00_pca10056_5F00_s132.hex"&gt;ble_app_uart_pca10056_s132.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110132?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 11:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f7e2168-a02e-4582-8b83-67f925b1aed2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Have you paired/bonded with the device earlier? Could you try to go into the BLE options on the phone and try to delete any pair/ bond information. Something like shown in this image:
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6076.Capture1.PNG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110141?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 13:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cc325fd-9cfc-4006-9c2e-2d3d8b3102ef</guid><dc:creator>miki_h</dc:creator><description>&lt;p&gt;Yes I&amp;#39;m able to connect with the nRF-Connect app and done the &amp;quot;Refresh Device Cache&amp;quot;. Still acts the same... it&amp;#39;s connecting in nRF Toolbox UART app and after a couple of seconds disconnects... Same thing on both smartphones and also with the nRF UART 2.0 app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110140?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 13:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd9b4edc-c975-4d4a-8b07-c822949b64b7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Are you able to connect to the DK with &lt;a href="https://www.nordicsemi.com/eng/Products/Nordic-mobile-Apps/nRF-Connect-for-mobile-previously-called-nRF-Master-Control-Panel"&gt;nRF-Connect&lt;/a&gt; ?&lt;/p&gt;
&lt;p&gt;If you are able to connect, try to go into the menu(top right corner) and click on &amp;quot;Refresh device cache&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110130?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 12:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c31d6876-8d64-4df4-94fb-091bb3194576</guid><dc:creator>miki_h</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried that now... same thing. I even tried now another smartphone Xiaomi MI 5 and I get the same error.
It seems it tries to connect but can&amp;#39;t find services, because every time I try to connect I receive
at the UART port the message &amp;quot;UART Start!&amp;quot;
You can see here what I see in the nRF Toolbox app: &lt;a href="https://postimg.org/image/s3nuiokz5/"&gt;postimg.org/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110131?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 12:15:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfee5c1a-3a50-462e-99ed-e37f4c042842</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You need to use the S140 SoftDevice for nRF52840. Try to flash the pre-compiled hex file(SoftDeivce+app) located in &lt;code&gt;sdk_folder\examples\ble_peripheral\ble_app_uart\hex&lt;/code&gt;. &lt;code&gt;ble_app_uart_pca10056_s140.hex&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The android phone is saving old service discovery data. Try to turn off the BLE on the phone, and turn on/off the phone again. If you still have the same problem, try to force a service discovery by using nRF Toolbox, choose DFU and connect. The app automatically does a service discovery when the dfu service isn&amp;#39;t found. After this, connect with the nRF Toolbox UART.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110128?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 10:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c705dd1-a276-4b9e-80e3-c803a44936d2</guid><dc:creator>miki_h</dc:creator><description>&lt;p&gt;Well I&amp;#39;ve tried the ble_app_uart_pca10040_s132 and it doesn&amp;#39;t work at all, now even LED1 is not blinking
but I can still see the Nordic_UART is advertising.
Don&amp;#39;t know what to do...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110129?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 04:38:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a82e4225-e7bc-4d06-8e27-b4f27bc02106</guid><dc:creator>miki_h</dc:creator><description>&lt;p&gt;Hi Alex,
PCA10040??? I haven&amp;#39;t thought even trying it because on the DVK I have the
PCA10056 chip...
I&amp;#39;ve tried previous versions of softdevices and previous SDK version but
still the same failure message, even another DVK which is completely new :(&lt;br /&gt;
Anyway, I will try today what you suggest&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 nRF52840, SDK 14.2.0 BLE Peripheral UART example not working</title><link>https://devzone.nordicsemi.com/thread/110127?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 00:36:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b2a5e96-89e2-43eb-89dc-dc8f96852f18</guid><dc:creator>AlexB</dc:creator><description>&lt;p&gt;I have this going fine but with the S132 softdevice version. I suggest you try the ble_app_uart_pca10040_s132 project and see if that one works for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>