<?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>Logging Data over BLE UART from nRF Device to Laptop</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67667/logging-data-over-ble-uart-from-nrf-device-to-laptop</link><description>Hi, 
 I am currently using the nRF logging module to log data from a nRF52832-DK to my laptop via a serial connection. However, I would like to move over to BLE logging for the sake of convenience. I&amp;#39;ve been looking at the ble_app_uart example for a while</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Nov 2020 13:47:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67667/logging-data-over-ble-uart-from-nrf-device-to-laptop" /><item><title>RE: Logging Data over BLE UART from nRF Device to Laptop</title><link>https://devzone.nordicsemi.com/thread/279749?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 13:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e15c4e78-59c5-4d41-a4e7-ee6446b56025</guid><dc:creator>kmassa5</dc:creator><description>&lt;p&gt;I am trying to use the BLE over CLI example, so I decided to make a new ticket for it. I will close this one. Thanks Jared!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging Data over BLE UART from nRF Device to Laptop</title><link>https://devzone.nordicsemi.com/thread/279710?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 12:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:555ddf95-b427-4e8b-ba3e-024159ef090b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I saw that you made a new ticket, did you solve this already?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging Data over BLE UART from nRF Device to Laptop</title><link>https://devzone.nordicsemi.com/thread/279539?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 15:10:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d59fc42d-1b24-4742-aa6c-e087f5659d3b</guid><dc:creator>kmassa5</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;When I try to build and run ble_app_cli_pca10040_s132 on my nRF52-DK using SDK 16, I get these messages repeatedly over my serial connection:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; app_timer: RTC: initialized.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; stack_guard: Stack Guard (128 bytes): 0x2000E000-0x2000E07F (total stack size: 8192 bytes, usable stack area: 8064 bytes)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; pwr_mgmt: Init&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; task_manager: Task 0 created (name: &amp;#39;uart_cli:~$ &amp;#39;, stack: 0x20003B00-0x20003EFF).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:00:00.000,000] &amp;lt;error&amp;gt; peer_manager_pds: Could not initialize flash storage. fds_init() returned 0x860A.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:00:00.000,000] &amp;lt;error&amp;gt; peer_manager: pm_init failed because pds_init() returned NRF_ERROR_STORAGE_FULL.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:00:00.000,000] &amp;lt;error&amp;gt; app: Fatal error&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:00:00.000,000] &amp;lt;warning&amp;gt; app: System reset&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This seems to indicate something is going wrong with the example itself, so I don&amp;#39;t think I can move forward with integrating it with my project. Do you have any recommendations? Is this something that may have been fixed in the latest SDK? My original project is built on SDK 16 so I don&amp;#39;t know if I can&amp;nbsp;safely use SDK 17 example files in it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kyle&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;EDIT: I tried ble_app_cli on SDK 17.0.2 and I get the same error message in the serial terminal. It seems like storage is full upon initialization even though the board is&amp;nbsp;being newly programmed. This shouldn&amp;#39;t be happening, right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;EDIT 2: Clicking Target&amp;gt;Erase&amp;nbsp;All in SES did the trick for me! Issues with FDS carrying over from previous programs.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging Data over BLE UART from nRF Device to Laptop</title><link>https://devzone.nordicsemi.com/thread/278149?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 17:15:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7e9dcd8-8a6f-414e-9633-1ca44f9c9b88</guid><dc:creator>kmassa5</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;The data type of buffer is a string, with 2 ints and a string variable being substituted into the string using sprintf(). I will take a look at the buffer variable in debug view, thanks. I am using an iPhone with nRF Toolbox to view the messages sent by my device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for linking that example, I&amp;#39;ll take a look!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging Data over BLE UART from nRF Device to Laptop</title><link>https://devzone.nordicsemi.com/thread/277764?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 09:42:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79c2b783-c8e4-4823-85e3-420887b785db</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So I should have been a bit more precise in my previous comment. The ble_nus_data_send() doesn&amp;#39;t really convert the data to ASCII but instead threats the string as an array of bytes. What data types is buffer, and the 3 other parameters that you&amp;#39;re passing to sprintf? Also, set a breakpoint after the call to sprintf and watch the buffer variable. How does it look in debug view? Is it correctly formatted? The phone that you use might also affect how the data is printed on the other side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In addition, I just remembered that we actually have a better example for your use case. Namely using the CLI over BLE. See the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_cli.html?cp=7_1_4_2_2_29"&gt;example in the SDK&lt;/a&gt; and the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_cli.html?cp=7_1_3_10"&gt;documentation of CLI&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging Data over BLE UART from nRF Device to Laptop</title><link>https://devzone.nordicsemi.com/thread/277685?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 21:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5b1c9d1-982d-4480-a517-6517047557fe</guid><dc:creator>kmassa5</dc:creator><description>&lt;p&gt;Send function:&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1604007606263v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Init function:&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1604007669625v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging Data over BLE UART from nRF Device to Laptop</title><link>https://devzone.nordicsemi.com/thread/277608?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 13:24:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a931a1cc-0bde-45f6-95cc-8f0b73ab63f2</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should be printed as ASCII characters as in the SDK example. How does your send function and init function of the service and characteristics look like?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging Data over BLE UART from nRF Device to Laptop</title><link>https://devzone.nordicsemi.com/thread/277468?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 16:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1193cfa-d180-4cd5-ab69-37d96aa2ac3b</guid><dc:creator>kmassa5</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So now I&amp;#39;m sending information from my board to the nRF Toolbox UART Logger. However, it&amp;#39;s showing up as unicode (0x#####################). How can I translate this to human-readable information?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging Data over BLE UART from nRF Device to Laptop</title><link>https://devzone.nordicsemi.com/thread/277313?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 09:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf33836b-c1be-4e90-bef5-71fd354fed1f</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;The easiest way is probably to base your project on the NUS service as it has already implemented a way for you to transmit data between the central and the peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging Data over BLE UART from nRF Device to Laptop</title><link>https://devzone.nordicsemi.com/thread/277173?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 14:33:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:569fd4fa-fbfd-4c91-8819-d0eb1942611a</guid><dc:creator>kmassa5</dc:creator><description>&lt;p&gt;So if I wanted to send a bunch of log data all at once over BLE (data stored in FDS) to my laptop, is there a better way to do it than the method used in ble_app_uart? I would basically be calling ble_nus_data_send() for each line I wanted to send (probably up to 500 lines of data).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging Data over BLE UART from nRF Device to Laptop</title><link>https://devzone.nordicsemi.com/thread/277170?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 14:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbe389de-f4cd-4081-8173-9cce7ff9fcd0</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The ble_app_uart example uses the NUS service to transmit data over BLE. The peripheral does this by setting up a GATT service that sends notifications to the GAP central when the attribute is updated with&amp;nbsp;ble_nus_data_send().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>