<?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>SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84817/send-less-than-20-bytes-ble-app-uart</link><description>Hello, i would like to know if this is possible to send less than 20bytes per packets, by changing the parameters like BLE_GATT_ATT_MTU_DEFAULT or the max data len. My goal would be this thank you so much in advance. Have a great day.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Feb 2022 13:52:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84817/send-less-than-20-bytes-ble-app-uart" /><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353635?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 13:52:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c87ec101-f3de-4bba-a454-0df36e49a7b3</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;Hello again i have news, i took off the case app_uart_communication_error and it is working better i can see better data BUT i still have a problem. The application has the data but they are too long to receive because byte per byte is too long so i&amp;#39;m going to make packets of 20 bytes BUT my problem is that i have to clean the buffer first, do you have ideas of how can i do that? Thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353617?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 13:00:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741f50d9-ab8d-49da-828f-afb932436ce7</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3554.main.c"&gt;devzone.nordicsemi.com/.../3554.main.c&lt;/a&gt; thank you for your help again Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353614?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 12:52:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3061f955-4b26-4b66-847f-e5b58368f01a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Very good, this is exactly what we need to continue. Now, the next question is what is around line 603 in your main.c. I assume it is an APP_ERROR_CHECK() checking the return value of a function call. Which function call is it? You can also upload the file here so that I can have a look.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353606?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 12:36:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b3797ca-cff1-4949-bed4-0a1d112ff6d1</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;I see the error what do you think?&lt;/p&gt;
&lt;p&gt;thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353605?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 12:35:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb3edaf9-24da-48a2-9038-bf0c1966a824</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.&lt;br /&gt;&amp;lt;info&amp;gt; app: Debug logging for UART over RTT started.&lt;br /&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.&lt;br /&gt;&amp;lt;info&amp;gt; app: Debug logging for UART over RTT started.&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected&lt;br /&gt;&amp;lt;info&amp;gt; app: Data len is set to 0xF4(244)&lt;br /&gt;&amp;lt;error&amp;gt; app: ERROR 1 [NRF_ERROR_SVC_HANDLER_MISSING] at C:\Users\linam_p1cpp71\Desktop\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_uart\main.c:603&lt;br /&gt;PC at: 0x0001A647&lt;br /&gt;&amp;lt;error&amp;gt; app: End of error report&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353578?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 11:38:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d99aa3c4-1ce0-42f0-af80-f5c8b230f363</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I cannot suggest anything without knowing what is wrong (to fix the issue we kneed to know what the issue is), so you must debug and let me know of your findings. If that is difficult, perhaps you can enable debug logging as is used in the SDK examples, and share the debug log. That should show if any APP_ERROR_CHECK has been hit. That may not be the case, but it is not unlikely and easy to check.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353527?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 08:15:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccff2bfb-3778-4e91-b56b-2cbce0064d7d</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;I debugged the program, my problem is that i think the time out has to be lower but when i put it lower i don&amp;#39;t have what i want the error timeout persists. I didn&amp;#39;t have the problem&amp;nbsp;with larger packets but my goal is to have packet of 1 only not to lost any info what do you think? thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353522?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 08:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5333568-1c0f-4aee-8e4c-0a2440ec2859</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;In order to solve the issue you first need to figure out what is happening. And for that, there is no way around &lt;em&gt;debugging&lt;/em&gt;. I suspect an error handler is hit, and you may find some good information in &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-error-handling-in-nrf5-projects"&gt;An introduction to error handling in nRF5 projects&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353516?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 07:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fc776c5-2068-4ab1-9e77-27690ce64f7e</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;yes but how can i solve this? Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353452?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 17:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cea9fa5-cd6f-40af-acfe-0ffe91f9422d</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote user="linamarcos"]What do you think?[/quote]
&lt;p&gt;The timeout you are referring to here is the supervision timeout? If so, yes, it could be that there is an issue (like a &amp;quot;crash&amp;quot;) on the nRF. I suggest you debug to see what happens there. It could be that an APP_ERROR_CHECK has been hit, for instance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353388?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 13:54:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04348143-0485-453d-8455-86f4a9af0049</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;i have the feeling that my app is crashing&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353383?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 13:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1203f11-de09-4f5f-81d2-c44881146fa7</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;im using sdk 17.1&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1645018963671v1.jpeg" alt=" " /&gt; and i have this i&amp;#39;m trying to send a frame of 307 bytes but the problem is when i send by packets of 20 for example i dont have all the info so i&amp;#39;m trying to do byte per byte but i get a timeout rapidly.. What do you think?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353379?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 13:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2ec81b4-b0e2-4265-b63f-b1c6ee8b7bdd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Can you elaborate? Where do you get a timeout? Please refer to code and&amp;nbsp;specify exactly where and how you see this. Also let me know which SDK version you are using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353371?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 13:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22aed246-45cf-49a9-b60d-200e31fd5b2d</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;Yes, thank you. I would like to know why can i have a timeout? im sending now byte by byte but after 12 second i have a gatt error on my app with timeout. thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353360?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 13:19:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c8b1bc5-6fb2-4288-9c45-7dcb10c4edc0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no minimal amount of payload data. If you want to send a single byte then just do it. There is no need to change the default ATT MTU or anything like that in order to do this. As you write &amp;quot;BLE APP UART&amp;quot; I assume you are using the NUS service from the nRF5 SDK. In that, you send data using&amp;nbsp;ble_nus_data_send(). And this has a length field. If you want to send a single byte, then simply specify 1 as the length (pointer to length is number 3 in the parameter list). See API doc for reference:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief   Function for sending a data to the peer.
 *
 * @details This function sends the input string as an RX characteristic notification to the
 *          peer.
 *
 * @param[in]     p_nus       Pointer to the Nordic UART Service structure.
 * @param[in]     p_data      String to be sent.
 * @param[in,out] p_length    Pointer Length of the string. Amount of sent bytes.
 * @param[in]     conn_handle Connection Handle of the destination client.
 *
 * @retval NRF_SUCCESS If the string was sent successfully. Otherwise, an error code is returned.
 */
uint32_t ble_nus_data_send(ble_nus_t * p_nus,
                           uint8_t   * p_data,
                           uint16_t  * p_length,
                           uint16_t    conn_handle);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEND LESS THAN 20 BYTES BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/353303?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 09:40:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d3185f0-3b94-41f3-afdf-26975550f9a0</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;Just to give more explanation i cant &amp;quot;control&amp;quot; the info because they are frames for examples of 246 bytes or 150 bytes and if I&amp;#39;m putting bigger packets I don&amp;#39;t have all the info because the buffer is not full so I told myself why not create packets of 1 byte to have all the info, I don&amp;#39;t see another issue if someone have ideas :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>