<?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>For what all application can BLE OTS be used in nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107372/for-what-all-application-can-ble-ots-be-used-in-nrf52840</link><description>Hi, 
 Was looking for a service to transfer bulk stored data from peripheral(nRF52840 device) to central(mobile) at faster rate and without packet loss. Came across ble_ots example in SDK17.1.0 which uses L2CAP CoC channel for bulk data transfer. Example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jan 2024 06:06:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107372/for-what-all-application-can-ble-ots-be-used-in-nrf52840" /><item><title>RE: For what all application can BLE OTS be used in nRF52840</title><link>https://devzone.nordicsemi.com/thread/464503?ContentTypeID=1</link><pubDate>Wed, 17 Jan 2024 06:06:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:266c8f2f-6cd7-462c-ae45-6c37833fee70</guid><dc:creator>SG1</dc:creator><description>&lt;p&gt;Thankyou Edvin for the reply.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: For what all application can BLE OTS be used in nRF52840</title><link>https://devzone.nordicsemi.com/thread/464354?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 10:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ebc7e47-966e-4e4d-ae00-91c49d136e22</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;A1) Technically, yes.&lt;/p&gt;
&lt;p&gt;A2) It needs to be handled in the application layer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A3) To be honest, I have not tested this sample, but it should be a simple matter to count the amount of sent/received bytes per second (add an app_timer and count how many bytes you receive per second).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Technically, you may see a slight increase, but I think this is negligible, compared to using GATT. However, I am not sure how this needs to be implemented on the mobile/central side of the application. It may vary from phone to phone whether this is possible or not. So in short, I would recommend that you use GATT, which is commonly used, and you know that it works on all phones.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;All this being said, OTS is not standardized on BLE. So this example is just a suggestion on how to do it. Regardless of whether you are using GATT or not, you would still need to implement the logic in the application of the central/mobile. I believe L2CAP was better than BLE in terms of speed when BLE was new, but since then there have been a lot of features added to BLE, which makes L2CAP redundant. So I would recommend that you just use a BLE service, such as the NUS to transfer the data. You would need to split up the object in chunks, and reassemble them on the other side, (which you would also have to do in the ble_app_ots application). With the &amp;quot;new&amp;quot; features in BLE, such as increased MTU, High speed BLE (2MBPS physical radio), longer connection event length, and so on, you can get close to the theoretical maximum of 1.3MBPS of payload throughput.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you are interested, you can test the attached application, which will show the throughput between two DKs (or one peripheral running on a DK and the central being a mobile phone). Note that I only tested the pca10056-&amp;gt;ses projects.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you connect using a mobile phone as a central, using e.g. the nRF Connect app, remember to enable notifications before starting to transmit data.&lt;/p&gt;
&lt;p&gt;On the peripheral and central device, press button 4 to start transmitting data, and monitor the throughput in the RTT log.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>