<?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>the scan result is imcompleted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60528/the-scan-result-is-imcompleted</link><description>the nrf51822 is working as a peripheral advertising the data like 
 0x0201061416FFCB113C01271119359426040A6E189C000000050852545F54, 
 which contains three data typs: 
 020106 
 1416FFCB113C01271119359426040A6E189C000000 
 050852545F54 
 they can be scanned</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 May 2020 06:53:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60528/the-scan-result-is-imcompleted" /><item><title>RE: the scan result is imcompleted</title><link>https://devzone.nordicsemi.com/thread/247767?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 06:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62c10100-ba05-4050-8e22-8773e1cc571b</guid><dc:creator>Sigurd</dc:creator><description>[quote user="zhengrongfan"]But the packet seems less than 31 bytes, acutally it has only 30 bytes.[/quote]
&lt;p&gt;&amp;nbsp;A device is still allowed to split these 30 bytes into 2 packets(regular advertising packet + scan response packet). The scan response packet is only sent when requested by the scanner. Again,&amp;nbsp;&lt;span&gt;If the packet that is scanned is a scan response packet, the &amp;quot;p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;type.scan_response&amp;quot; bit field will be set to 1.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the scan result is imcompleted</title><link>https://devzone.nordicsemi.com/thread/247494?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 10:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e9074af-65bd-4909-9c66-4869bac70f67</guid><dc:creator>zhengrongfan</dc:creator><description>&lt;p&gt;But the packet seems less than 31 bytes, acutally it has only 30 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the scan result is imcompleted</title><link>https://devzone.nordicsemi.com/thread/246495?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 11:44:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a78df4c3-300d-4462-8a73-586c11ef5a03</guid><dc:creator>Sigurd</dc:creator><description>[quote user="zhengrongfan"]Why does it happen? And is there any way to make it pass all the data in one&amp;nbsp;&lt;span&gt;NRF_BLE_SCAN_EVT_NOT_FOUND?&lt;/span&gt;[/quote]
&lt;p&gt;&lt;span&gt;The advertising packet can consist of no more than 31 bytes. Because of this limit, the advertising name and/or UUID are often placed in the scan response packet. If the packet that is scanned is a scan response packet, the &amp;quot;p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;type.scan_response&amp;quot; bit field will be set to 1.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the scan result is imcompleted</title><link>https://devzone.nordicsemi.com/thread/246376?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 02:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a45b3642-22b0-4077-b476-6a4416d93f7d</guid><dc:creator>zhengrongfan</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I modify my test code and now it look likes below&lt;/p&gt;
&lt;p&gt;static void scan_evt_handler(scan_evt_t const * p_scan_evt)&lt;br /&gt;{&lt;br /&gt; ret_code_t err_code;&lt;/p&gt;
&lt;p&gt;switch(p_scan_evt-&amp;gt;scan_evt_id)&lt;br /&gt; {&lt;br /&gt; case NRF_BLE_SCAN_EVT_CONNECTING_ERROR:&lt;br /&gt; {&lt;br /&gt; err_code = p_scan_evt-&amp;gt;params.connecting_err.err_code;&lt;br /&gt; NRF_LOG_DEBUG(&amp;quot;connecting error = %d&amp;quot;, err_code);&lt;br /&gt; }&lt;br /&gt; break;&lt;br /&gt; case NRF_BLE_SCAN_EVT_NOT_FOUND:&lt;br /&gt; {&lt;br /&gt; &lt;strong&gt;uint8_t addr[] = {0x01, 0x86, 0xAD, 0xC2, 0x1F, 0xE2};&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; if(!memcmp(addr, p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;peer_addr.addr, 6))&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; {&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; NRF_LOG_DEBUG(&amp;quot;address matched&amp;quot;);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; NRF_LOG_HEXDUMP_DEBUG(p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;data.p_data, p_scan_evt-&amp;gt;params.p_not_found-&amp;gt;data.len);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; }&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;And the result shows the adv is divided into two&amp;nbsp;&lt;span&gt;NRF_BLE_SCAN_EVT_NOT_FOUND events:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: address matched&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: 02 01 06 14 16 FF CB 11|........&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: 3C 01 27 11 19 35 94 26|&amp;lt;.&amp;#39;..5.&amp;amp;&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: 04 0A 3C 17 D4 00 00 00|..&amp;lt;.....&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: address matched&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: 05 08 52 54 5F 54 |..RT_T&lt;/p&gt;
&lt;p&gt;The second one is its name.&lt;/p&gt;
&lt;p&gt;Why does it happen? And is there any way to make it pass all the data in one&amp;nbsp;&lt;span&gt;NRF_BLE_SCAN_EVT_NOT_FOUND?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the scan result is imcompleted</title><link>https://devzone.nordicsemi.com/thread/246226?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 11:11:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b6910a1-5d38-4376-9dc6-859011ebe51b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]However, it only finds the first two types, as below,[/quote]
&lt;p&gt;How does your scan-parsing code look like ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>