<?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 consecutive 7 notification on ble characteristic issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59341/sending-consecutive-7-notification-on-ble-characteristic-issue</link><description>Hi, 
 I want to send multiple packets on a notify characteristic using ble_blanky app as baseline but only first 4 consecutive notifications are received on android side. 
 I send 7 notification one after the other and only first 4 are received on other</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Oct 2020 05:50:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59341/sending-consecutive-7-notification-on-ble-characteristic-issue" /><item><title>RE: Sending consecutive 7 notification on ble characteristic issue</title><link>https://devzone.nordicsemi.com/thread/277509?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 05:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b218f4c3-f369-498b-b58b-23e1c677623f</guid><dc:creator>VboZ</dc:creator><description>&lt;p&gt;I have the same problem.&amp;nbsp;It looks like a limitation on the mobile phone,&amp;nbsp;Whether I use nRF Connect on iOS or Android.&amp;nbsp;The same situation is that the limit of continuous notification is 4.&amp;nbsp;If you want to receive the fifth notification, you must add a delay more than 200ms between the fourth and fifth notifications sent on the peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending consecutive 7 notification on ble characteristic issue</title><link>https://devzone.nordicsemi.com/thread/249483?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 12:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85ecd8f2-5bb9-422f-a9e3-40054ecf5d92</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m very sorry for the late reply. Are you still having problems with this?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending consecutive 7 notification on ble characteristic issue</title><link>https://devzone.nordicsemi.com/thread/241647?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 16:18:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5a82c32-cb6b-410d-8939-1e0c1fafcebb</guid><dc:creator>adnan arshad</dc:creator><description>&lt;p&gt;Yes i am using nRF Connect on mobile side.&lt;/p&gt;
&lt;p&gt;I have modified the ble_app_blinky example in sdk 16. on button write characteristic i send consecutive notification on a notify characteristic using the following function&lt;/p&gt;
&lt;p&gt;uint32_t ble_on_tx_frame(uint16_t conn_handle, ble_lbs_t * p_lbs, uint8_t* p_tx_data)&lt;br /&gt;{&lt;br /&gt; ble_gatts_hvx_params_t params; &lt;br /&gt; uint16_t len = 16;&lt;/p&gt;
&lt;p&gt;memset(&amp;amp;params, 0, sizeof(params));&lt;br /&gt; params.type = BLE_GATT_HVX_NOTIFICATION;&lt;br /&gt; params.handle = p_lbs-&amp;gt;notify_char_handles.value_handle;&lt;br /&gt; params.p_data = p_tx_data;&lt;br /&gt; params.p_len = &amp;amp;len;&lt;/p&gt;
&lt;p&gt;return sd_ble_gatts_hvx(conn_handle, &amp;amp;params);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;// The following function is called in button write handle event of the button characteristic&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;void GetEncrypted_text(uint8_t opcode)&lt;br /&gt; {&lt;br /&gt; uint32_t err_code;&lt;br /&gt; uint8_t tx_packet_array[16];&lt;br /&gt; if(opcode == 0x03)&lt;br /&gt; { &lt;br /&gt; (void) memset(g_tx_command,0,200);&lt;/p&gt;
&lt;p&gt;static char m_plain_text[] =&lt;br /&gt; {&lt;br /&gt; &amp;quot;Example string to demonstrate AES CBC mode with padding. This text has 85 characters.&amp;quot;&lt;br /&gt; };&lt;br /&gt; uint16_t len_out = sizeof(g_tx_command);&lt;br /&gt; uint16_t len_in = sizeof(m_plain_text);&lt;br /&gt; encrypt_cbc(&amp;amp;m_plain_text[0], len_in, &amp;amp;g_tx_command[0],len_out);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; tx_packet_array[0] = 1&amp;lt;&amp;lt;7;&lt;br /&gt; tx_packet_array[0] |= opcode;&lt;br /&gt; tx_packet_array[1] |= 0x07; // no of frames&lt;br /&gt; tx_packet_array[2] |= 0x55; // crc low&lt;br /&gt; tx_packet_array[3] |= 0xA5; // crc high&lt;/p&gt;
&lt;p&gt;//(void) memset(&amp;amp;tx_packet_array[4],1,12); // First Chunk&lt;/p&gt;
&lt;p&gt;(void) memcpy(&amp;amp;tx_packet_array[4],&amp;amp;g_tx_command,12); // First Chunk&lt;br /&gt; ble_on_tx_frame(m_conn_handle, &amp;amp;m_lbs, &amp;amp;tx_packet_array[0]);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; tx_packet_array[0] = 0xFF; // Second Chunk&lt;br /&gt; (void) memcpy(&amp;amp;tx_packet_array[1],&amp;amp;g_tx_command[12],15);&lt;br /&gt; &lt;br /&gt; err_code = ble_on_tx_frame(m_conn_handle, &amp;amp;m_lbs, &amp;amp;tx_packet_array[0]);&lt;br /&gt; nrf_delay_ms(5);&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; tx_packet_array[0] = 0xFF; // Third Chunk&lt;br /&gt; (void) memcpy(&amp;amp;tx_packet_array[1],&amp;amp;g_tx_command[27],15);&lt;br /&gt; &lt;br /&gt; ble_on_tx_frame(m_conn_handle, &amp;amp;m_lbs, &amp;amp;tx_packet_array[0]);&lt;br /&gt; nrf_delay_ms(5);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; tx_packet_array[0] = 0xFF; // Fourth Chunk&lt;br /&gt; (void) memcpy(&amp;amp;tx_packet_array[1],&amp;amp;g_tx_command[42],15);&lt;br /&gt; &lt;br /&gt; ble_on_tx_frame(m_conn_handle, &amp;amp;m_lbs, &amp;amp;tx_packet_array[0]);&lt;br /&gt; nrf_delay_ms(25);&lt;br /&gt; &lt;br /&gt; tx_packet_array[0] = 0xFF; // Fifth Chunk&lt;br /&gt; (void) memcpy(&amp;amp;tx_packet_array[1],&amp;amp;g_tx_command[57],15);&lt;br /&gt; &lt;br /&gt; ble_on_tx_frame(m_conn_handle, &amp;amp;m_lbs, &amp;amp;tx_packet_array[0]);&lt;br /&gt; nrf_delay_ms(5);&lt;br /&gt; &lt;br /&gt; tx_packet_array[0] = 0xFF; // Sixth Chunk&lt;br /&gt; (void) memcpy(&amp;amp;tx_packet_array[1],&amp;amp;g_tx_command[72],15);&lt;br /&gt; &lt;br /&gt; ble_on_tx_frame(m_conn_handle, &amp;amp;m_lbs, &amp;amp;tx_packet_array[0]);&lt;br /&gt; nrf_delay_ms(5);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; &lt;br /&gt; tx_packet_array[0] = 0xFE; // Seventh Chunk&lt;br /&gt; (void) memcpy(&amp;amp;tx_packet_array[1],&amp;amp;g_tx_command[87],9);&lt;br /&gt; &lt;br /&gt; (void) memset(&amp;amp;tx_packet_array[10],0,6);&lt;br /&gt; ble_on_tx_frame(m_conn_handle, &amp;amp;m_lbs, &amp;amp;tx_packet_array[0]); &lt;br /&gt; &lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Only first three or some time four notifications are received in nrf Connect side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending consecutive 7 notification on ble characteristic issue</title><link>https://devzone.nordicsemi.com/thread/241627?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 14:41:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dabb9a76-b509-40de-994b-8ec691d34496</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What application are you using on the android side, is it nRF Connect?&lt;/li&gt;
&lt;li&gt;Is the BLE_GATTS_EVT_HVN_TX_COMPLETE event generated when the notifications are sent?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Could you share your project?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending consecutive 7 notification on ble characteristic issue</title><link>https://devzone.nordicsemi.com/thread/241390?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 13:33:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70645133-d5cb-46cd-92e4-e84eeb23864b</guid><dc:creator>adnan arshad</dc:creator><description>&lt;p&gt;I have change in sdk_config&amp;nbsp; NRF_SDH_BLE_GAP_EVENT_LENGTH&amp;nbsp; 6 to 12 but still same results please guide can i send more than 6 consecutive ble notification on same characteristic in nordic ble.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>