<?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>Sending data from a FRAM by SPI and immediately sending them by BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83574/sending-data-from-a-fram-by-spi-and-immediately-sending-them-by-ble</link><description>Hi everyone, 
 I am trying to create a system to collect data from different sensors and store them in a FRAM. Then by using SPI, I want to transfer the data to the nRF52832 development kit and immediately send them by BLE. And, finally after transmitting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jan 2022 12:13:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83574/sending-data-from-a-fram-by-spi-and-immediately-sending-them-by-ble" /><item><title>RE: Sending data from a FRAM by SPI and immediately sending them by BLE</title><link>https://devzone.nordicsemi.com/thread/347756?ContentTypeID=1</link><pubDate>Fri, 14 Jan 2022 12:13:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdf5fa39-4140-430a-a127-40087e9365c5</guid><dc:creator>Reza papi</dc:creator><description>&lt;p&gt;That&amp;#39;s great. So, I will go ahead and modify the code for that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data from a FRAM by SPI and immediately sending them by BLE</title><link>https://devzone.nordicsemi.com/thread/347755?ContentTypeID=1</link><pubDate>Fri, 14 Jan 2022 12:11:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1a8fcda-58b6-4667-869c-b036837ecc47</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Reza,&amp;nbsp;&lt;br /&gt;If configured correctly the nRF52 should only consume 2-3uA when it&amp;#39;s in idle mode.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data from a FRAM by SPI and immediately sending them by BLE</title><link>https://devzone.nordicsemi.com/thread/347753?ContentTypeID=1</link><pubDate>Fri, 14 Jan 2022 11:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc975d31-4c6e-4611-86eb-8632a4aa3a95</guid><dc:creator>Reza papi</dc:creator><description>&lt;p&gt;Thank you so much for all these information.&lt;/p&gt;
&lt;p&gt;Yes, the FRAM and nRF are communicate with SPI. I need to achieve 80uA in average current level, so my plan is to transmit every 1 or 2 minutes. is it possible to achieve this low current with idle state? do you have any suggestion for that?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data from a FRAM by SPI and immediately sending them by BLE</title><link>https://devzone.nordicsemi.com/thread/347701?ContentTypeID=1</link><pubDate>Fri, 14 Jan 2022 08:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf7e4d27-d6ee-4a7d-9d5e-1da1372889b6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Reza,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. I assume you communicate your FRAM from the nRF chip via SPI ? In that case you need to copy the data from FRAM to an array and supply the array to the BLE (NUS) communication&lt;/p&gt;
&lt;p&gt;2. I don&amp;#39;t see any problem sending 5kB of data. You can achieve 6-700kbps with BLE.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;&lt;span&gt;idle_state_handle() is good for low power consumption.&amp;nbsp;Note that it doesn&amp;#39;t put the chip to OFF mode, it put the CPU and other unnecessary peripheral to sleep mode. This way you still can keep the connection when consume very little power.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. When there is an interrupt, it will wake the CPU up and you are ready to transfer data. It&amp;#39;s the same case with the ble_app_uart example.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data from a FRAM by SPI and immediately sending them by BLE</title><link>https://devzone.nordicsemi.com/thread/347677?ContentTypeID=1</link><pubDate>Fri, 14 Jan 2022 05:10:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:621efcad-836e-427c-95b1-8a0ee1a536a0</guid><dc:creator>Reza papi</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Actually, I used SPI communication example to connect an accelerometer to nRF device and there is no problem with that. I have some questions which I will be appreciated if you answer:&lt;/p&gt;
&lt;p&gt;1- should I create an array and first transfer the FRAM data to it and then send this array to the NUS communication or there is no need for that?&lt;/p&gt;
&lt;p&gt;2- I will collect the data in the FRAM for 2 minutes, so it could be around 5 Kb of data. is it possible to transfer them with NUS? I see that each time we can send only 244 bytes of data.&lt;/p&gt;
&lt;p&gt;3- is idle_state_handle(); function is good to put the radio in off mode? I want to put the nRF device in completely off mode to save power. I read some articles that&amp;nbsp;idle_state_handle(); doesn&amp;#39;t put the Nrf in off mode. What do you suggest for that?&lt;/p&gt;
&lt;p&gt;4- suppose that nRF device is in off mode and the FRAM is ready to transfer the data to nRF, how can I wake up the nRF device?&lt;/p&gt;
&lt;p&gt;Sorry for all these questions.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data from a FRAM by SPI and immediately sending them by BLE</title><link>https://devzone.nordicsemi.com/thread/347532?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 09:09:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5e3627f-c286-4a00-a46c-9c48b22cdb41</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Reza,&amp;nbsp;&lt;br /&gt;You would need to study the SPI example to collect data. When the data is ready you then send it via BLE the same way as we did in the ble_app_uart example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data from a FRAM by SPI and immediately sending them by BLE</title><link>https://devzone.nordicsemi.com/thread/347452?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 16:46:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6d6020a-b4e6-47cb-8323-cd7681a87156</guid><dc:creator>Reza papi</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;thank you for your reply. I am using SDK 17.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data from a FRAM by SPI and immediately sending them by BLE</title><link>https://devzone.nordicsemi.com/thread/347450?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 16:42:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33b62e96-e435-465b-a6d3-408258f15ec7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Reza,&amp;nbsp;&lt;br /&gt;I don&amp;#39;t see any problem doing what you plan to do.&amp;nbsp;&lt;br /&gt;My suggestion is to follow what we have in the spi example and then combine it with the uart-ble example. Of course you don&amp;#39;t mix the uart communication with spi communication but only follow the way we get data from uart and send it over to BLE.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please let us know which SDK you are using.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>