<?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>Need help to understand how to use FATFS with BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57077/need-help-to-understand-how-to-use-fatfs-with-ble</link><description>Hello, 
 I have a problem statement in which I have to generate a file for data that is received from UART communication and want to send it to the mobile application whenever the application connects to the device through BLE. 
 So can anybody tell me</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Jan 2020 09:18:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57077/need-help-to-understand-how-to-use-fatfs-with-ble" /><item><title>RE: Need help to understand how to use FATFS with BLE</title><link>https://devzone.nordicsemi.com/thread/231565?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 09:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1a6f13d-87f5-4d6b-bcd7-d01e3dd70a88</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I have a problem statement in which I have to generate a file for data that is received from UART communication and want to send it to the mobile application whenever the application connects to the device through BLE.&amp;nbsp;[/quote]
&lt;p&gt;There is a FATFS example in the SDK (if you need it), but this is not related to BLE. There is no file transfer profile for BLE, so you will have to make your own implementation for that. But perhaps the focus on FATFS and &amp;quot;file&amp;quot; is necessary? Is it just that you want to transfer some data (which happens to be a file in a file system on the PC side)?&lt;/p&gt;
[quote user=""]So can anybody tell me which BLE service should I use?[/quote]
&lt;p&gt;If we can ignore the file concept, perhaps you can use the nordic UART service? It is a simple service that can easily be used to transfer any data. Note that you will have to make an implementation for this service on the PC side, but that is the case no matter which service you go for. Alternatively, make your own custom service.&lt;/p&gt;
[quote user=""]What are the file formats are there that are supported?[/quote]
&lt;p&gt;None our of the box. This is something you have to implement yourself.&lt;/p&gt;
[quote user=""]How to use encryption similar to DFU OTA example code uses?&amp;nbsp;[/quote]
&lt;p&gt;The Nordic DFU bootloader does not use encryption, but it uses signed update images (where the bootloader does signature verification). If you just want encrypted communication, then you can just use pairing/bonding. If you want encryption of the data on the application layer then you have to implement that yourself, but you can use the functionality provided by &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_crypto.html"&gt;nrf_crypto&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>