<?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 PDF files through BLE_APP_UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34308/sending-pdf-files-through-ble_app_uart</link><description>Hi, 
 
 I am using ble_app_uart service in my application. I am trying to send files using teraterm tool. If I am sending .txt or .doc files there is no disconnection in the devices. But if I am sending PDF or PPT file there is a disconnection between</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 May 2018 08:57:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34308/sending-pdf-files-through-ble_app_uart" /><item><title>RE: Sending PDF files through BLE_APP_UART</title><link>https://devzone.nordicsemi.com/thread/132204?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 08:57:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82ac90ff-c9a3-4e18-ac4f-eb4a80cbc6b9</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Use our macro for setting the minimum and maximum connection interval. As of now you are assigning the value 7.5 to an uint16_t which makes no sense.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should set:&lt;br /&gt;#define MIN_CONN_INTERVAL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MSEC_TO_UNITS(20, UNIT_1_25_MS)&lt;/p&gt;
&lt;p&gt;#define MAX_CONN_INTERVAL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MSEC_TO_UNITS(75, UNIT_1_25_MS)&lt;/p&gt;
&lt;p&gt;Use these settings before you start to optimize you latency.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will also recommend using UARTE with flow control. Then you&amp;#39;ll get an event when the UART transmission is complete, instead of checking every receive byte for a newline.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending PDF files through BLE_APP_UART</title><link>https://devzone.nordicsemi.com/thread/131928?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 16:04:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b4de0df-53d3-4260-82a6-b9ca1d00c84e</guid><dc:creator>Mani</dc:creator><description>&lt;p&gt;Find the code in the attached file&lt;/p&gt;
&lt;p&gt;.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/44716.main.c"&gt;devzone.nordicsemi.com/.../44716.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending PDF files through BLE_APP_UART</title><link>https://devzone.nordicsemi.com/thread/131812?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 08:46:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e59fea5-ce9d-41c2-ba95-91cf9b7989f7</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Hey Manigandan,&lt;/p&gt;
&lt;p&gt;I need some detail on your implementation and more importantly some debugging information(source code, logs, error info, sniffer logs, etc).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think the two symptoms, disconnections and data corruptions, might be unrelated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The BLE_APP_UART example is sends ASCII strings over BLE and it is completely agnostic to it&amp;#39;s string content with one exception. From&amp;nbsp;&lt;a title="Handling data received over UART" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/ble_sdk_app_nus_eval.html?cp=4_0_1_4_2_2_22_0_3#uart_data_handling"&gt;Handling data received over UART&lt;/a&gt;:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;The implementation of the example requires the newline character to be &amp;#39;\n&amp;#39;. Some terminals use different characters to trigger a newline, for example &amp;#39;\r&amp;#39;. Therefore, you might need to configure your terminal to interpret only &amp;#39;\n&amp;#39; as a newline.&amp;quot;&lt;/p&gt;
&lt;p&gt;The reason why the doc and txt files have less corruption might be because they use less special characters or &amp;#39;\r&amp;#39; as newlines, or something in that direction.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>