<?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>File Transfer from nRF52 to Mobile phone or Central device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69421/file-transfer-from-nrf52-to-mobile-phone-or-central-device</link><description>Hi, 
 I am doing the project in nRF2832 , where I need to collect some data from the sensor and temperature value that i need to save in the .CSV file format in SD cARD . and I need to Transfer the particular File to the Central device (Mobile phone or</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Dec 2020 17:18:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69421/file-transfer-from-nrf52-to-mobile-phone-or-central-device" /><item><title>RE: File Transfer from nRF52 to Mobile phone or Central device</title><link>https://devzone.nordicsemi.com/thread/285175?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 17:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dffe97aa-8256-472e-ac9d-e8928481abb6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You can read smaller chunks of the file using f_read. See the &lt;a href="http://irtos.sourceforge.net/FAT32_ChaN/doc/en/read.html"&gt;description of the function&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The file pointer of the file object increases in number of bytes read. After the function succeeded,&amp;nbsp;&lt;tt&gt;*ByteRead&lt;/tt&gt;&amp;nbsp;should be checked to detect the end of file. In case of&amp;nbsp;&lt;tt&gt;*ByteRead &amp;lt; ByteToRead&lt;/tt&gt;, it means the read/write pointer reached end of the file during read operation.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Transfer from nRF52 to Mobile phone or Central device</title><link>https://devzone.nordicsemi.com/thread/284879?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 18:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4047a007-559e-4c3d-85d6-f1caf32a1816</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;Hi Jorgan, Thank you &lt;/p&gt;
&lt;p&gt;I will update the size .&lt;/p&gt;
&lt;p&gt;I have a query that is it possible to transfer the .txt/.csv or any type of file from nrf52832 to mobile phone or another nrf52 device over BLE. without opening the file and read the data . it need to send the whole 100kB file or more over BLE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Transfer from nRF52 to Mobile phone or Central device</title><link>https://devzone.nordicsemi.com/thread/284734?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 10:11:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0231250b-cc96-441d-a12f-2180b6898e2e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The problem is that you have defined a 64 kB file buffer, which will be stored in RAM. 64 kB will occupy the entire RAM of the nRF52832, preventing the rest of the application to store anything in RAM.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define FILE_SIZE_MAX                   65535   
static uint8_t file_buffer[FILE_SIZE_MAX];&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You either have to reduce the size of the file buffer, or move to a chip with larger RAM (nRF52833 have 128 kB, nRF52840 have 256 kB). Do you need to read the whole file in one operation, or can you split it into multiple smaller chunks? You will anyway not be able to send the full file over BLE in one operation, if it is up to 64 kB large.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>