<?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>Storing characteristic data after on_disconnect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7457/storing-characteristic-data-after-on_disconnect</link><description>I am trying to persist characteristic data written by the central side after on_disconnect . I can see the data written inside the evt_write-&amp;gt;data ptr and I copy it to store once the central disconnects. 
 This is on nrf51-dk sd 7.0.0 and sdk 6.1.0.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 14 Jun 2015 06:33:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7457/storing-characteristic-data-after-on_disconnect" /><item><title>RE: Storing characteristic data after on_disconnect</title><link>https://devzone.nordicsemi.com/thread/26562?ContentTypeID=1</link><pubDate>Sun, 14 Jun 2015 06:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdac7526-503f-4d52-88ce-9b67d5a656a7</guid><dc:creator>kerem</dc:creator><description>&lt;p&gt;I see see some uart related stuff in your example yet it works over reboot. After using a 64 byte block my code started to work too, it just does not load the block right away but after a reconnect, i can see the correct value is loaded. Maybe you just need to wait a few milliseconds for the operation. Im still not 100% confident with this but ill do a bit more experimenting when i got the time. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing characteristic data after on_disconnect</title><link>https://devzone.nordicsemi.com/thread/26555?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2015 06:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6ff59c9-1dbb-4d42-a532-2143e13c07ed</guid><dc:creator>michaeld</dc:creator><description>&lt;p&gt;If you could post you&amp;#39;re code I can compare it with my code maybe I spot a difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing characteristic data after on_disconnect</title><link>https://devzone.nordicsemi.com/thread/26561?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2015 05:58:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59a27dff-baa0-4263-aa98-95b160af2f03</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;Here is example project based on ble_app_hrs example for pca10001 from SDK v6.1.0, tested with SD v7.3.0.  I added to this project custom service with two characteristics. Second characteristic with read and write permissions allows you to read and write 1 byte value that will be stored in pstorage. The characteristic value located in pstorage will be assigned to this characteristic after reset.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_hrs_5F00_pstorage.zip"&gt;ble_app_hrs_pstorage.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing characteristic data after on_disconnect</title><link>https://devzone.nordicsemi.com/thread/26559?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2015 17:26:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:891b9685-50fd-4564-90dd-5833502eb44b</guid><dc:creator>kerem</dc:creator><description>&lt;p&gt;Please see my edit, it did not work either. Can it be something wrong with my setup? Where else would you check if youre content with the code, i did no modifications to the linked example project. The chip is nrf51422 QFAC, im using nrf51-dk with sd 7.0.0 and sdk 6.1.0 on keil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing characteristic data after on_disconnect</title><link>https://devzone.nordicsemi.com/thread/26560?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2015 13:52:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:951e3522-f066-4d89-b98e-67294cbbd2c0</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi kerem&lt;/p&gt;
&lt;p&gt;Your SDK and SD combination should work fine. What hardware are you using by the way? Please read the chip markings on your nRF51 chip and report. Have you seen &lt;a href="https://devzone.nordicsemi.com/question/15271/how-can-i-write-10kb-of-data-to-internal-flash/?answer=17300#post-id-17300"&gt;this example&lt;/a&gt;? It should work fine with SDK 6.1.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing characteristic data after on_disconnect</title><link>https://devzone.nordicsemi.com/thread/26558?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2015 02:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:000ef62d-2733-4bdc-ba78-c2f99b3c7771</guid><dc:creator>kerem</dc:creator><description>&lt;p&gt;Is it possible that pstorage is unstable on nrfdk-51 with sdk 6.1.0 and sd 7/7.1? I tried exactly as you did, made sure all store operation waits for clear callback and even load waits for callback. All called from main, outside BLE callbacks and i made sure the data im copying around is correct. What else i can try? I received all callbacks btw for clear, store and load. It&amp;#39;s just like nothing is being stored or loaded.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing characteristic data after on_disconnect</title><link>https://devzone.nordicsemi.com/thread/26557?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2015 14:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b58d5e5-a95d-45e1-b8f2-cd2bb30721cb</guid><dc:creator>kerem</dc:creator><description>&lt;p&gt;I was just about to try that, thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing characteristic data after on_disconnect</title><link>https://devzone.nordicsemi.com/thread/26556?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2015 14:03:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7d33035-3de1-485e-b2c4-b79758cb0dbc</guid><dc:creator>michaeld</dc:creator><description>&lt;p&gt;As you see in my post the problem for me was that you can never execute a pstorage action on a BLE event. So try adding a if statement in your main loop and checking the disconnect from there to execute your pstorage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>