<?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>Ble 5 send large data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101554/ble-5-send-large-data</link><description>Hello, 
 
 I am using nrf52840 and i am wondering which option will be the best for my project. I need to send about 5 - 10 kB data using bluetooth. Please, correct me if i am wrong. 
 
 Questions: 
 1) What is the maximum size of data which can i send</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jul 2023 07:01:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101554/ble-5-send-large-data" /><item><title>RE: Ble 5 send large data</title><link>https://devzone.nordicsemi.com/thread/435623?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 07:01:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4660fc7a-d6bf-4559-882a-195175160a0c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;As I suggested initially, I&amp;#39;d use the object transfer service to transmit multiple kB of data, or alternatively our &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_att_mtu.html"&gt;throughput sample&lt;/a&gt;&amp;nbsp;to transmit a lot of data at the same time. You can use the&lt;a href="https://github.com/NordicPlayground/nrf52-ble-image-transfer-demo"&gt; Image transfer demo&lt;/a&gt; we made here for reference that continuously transmits data from an nRF52 to an Android device.&lt;/p&gt;
&lt;p&gt;If the throughput doesn&amp;#39;t matter, you can use the Nordic UART service as well, but the buffer size will need to be increased to fit 5kB I believe, but this is not what the Nordic UART service is designed for.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble 5 send large data</title><link>https://devzone.nordicsemi.com/thread/435410?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 08:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a22fbe65-30e7-4563-ba16-328cc78db58d</guid><dc:creator>mte1</dc:creator><description>&lt;p&gt;Thank you, i understand. I have last question, if i choose to send 20bytes in one advertise, &lt;strong&gt;which function should i use to send for example 5kB of data&lt;/strong&gt;. Time doesn&amp;#39;t matter here, i just want to share this data between two nrf52 development kits.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;will&amp;nbsp;&lt;strong&gt;uint32_t ble_nus_data_send(ble_nus_t * p_nus, uint8_t * p_data, uint16_t * p_length, uint16_t conn_handle)&amp;nbsp;&lt;/strong&gt;be good at it? And how is this &amp;quot;queued&amp;quot; to send kilobytes? It&amp;#39;s function from &lt;strong&gt;ble_app_uart example.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble 5 send large data</title><link>https://devzone.nordicsemi.com/thread/435409?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 07:57:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56fc74f9-2419-47a0-8d89-001109cae454</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not possible to transmit 247 bytes &amp;quot;per package&amp;quot; with extended advertising, as the &amp;quot;extended&amp;quot; part of the advertisement will occur on secondary channels compared to the initial advertising event. But you can inded transmit 247 bytes over advertising if that&amp;#39;s what you want. Please keep in mind though that the transmission will not be encrypted, so any BLE 5.0 scanners will be able to pick up on these transmission. So you&amp;#39;ll get better both encryption and throughput by doing this within a connection.&lt;/p&gt;
&lt;p&gt;See&lt;a href="https://novelbits.io/bluetooth-5-advertisements/"&gt; this blog post&lt;/a&gt; on BLE 5.0 advertising for more information, alternatively check out the &lt;a href="https://www.nordicsemi.com/Support/Nordic-Developer-Academy"&gt;DevAcademy&lt;/a&gt;, that has a course on BLE fundamentals as a whole.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble 5 send large data</title><link>https://devzone.nordicsemi.com/thread/435128?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2023 07:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:710fac62-4697-4d4c-8844-3f0c5979e623</guid><dc:creator>mte1</dc:creator><description>&lt;p&gt;Thanks, i&amp;#39;ll check the blog post and go through the examples.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to change ble_app_beacon example to send 247 bytes per package?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble 5 send large data</title><link>https://devzone.nordicsemi.com/thread/434921?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 10:41:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba557dbc-30e1-47e4-8947-6400ea6b2b7f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please check out this excellent blog post over at NovelBits that explain and test the maximum throughput over BLE 5 using the nRF52840:&amp;nbsp;&lt;a href="https://novelbits.io/bluetooth-5-speed-maximum-throughput/"&gt;https://novelbits.io/bluetooth-5-speed-maximum-throughput/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Something like the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/ble_sdk_app_ots.html"&gt;object transfer service&amp;nbsp;&lt;/a&gt;is best suited for transmitting larger blobs of data over&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>