<?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>Scanning in codded phy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44785/scanning-in-codded-phy</link><description>Dear nordic, 
 when i try to scan in coded phy some times works but after few minutes it fails to scan(that is not capture beacons). some times it fails from starting(that is from restart) it fails to find coded phy. 
 it&amp;#39;s totally confusing some times</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Mar 2019 13:46:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44785/scanning-in-codded-phy" /><item><title>RE: Scanning in codded phy</title><link>https://devzone.nordicsemi.com/thread/176217?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 13:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea59b301-603a-4d33-89f1-019fe98f845f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could it be that scanning is not started in your BLE_GAP_ADV_REPORT handler? Excerpt&amp;nbsp;from the API documentation (&lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-1/group_ble_gap_functions#gabbd87dea8f218d2a7e12c40cfbc6a7d2"&gt;link&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;em&gt;A call to this function will require the application to keep the memory pointed by p_adv_report_buffer alive until the buffer is released. The buffer is released when the scanner is stopped or when this function is called with another buffer&lt;/em&gt;.The&lt;em&gt; scanner will automatically stop in the following cases:&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-1/group_ble_gap_functions#ga0e92b62656057a13747a2ef1e71fd128"&gt;sd_ble_gap_scan_stop&lt;/a&gt;&amp;nbsp;is called.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-1/group_ble_gap_functions#gacca0e56084c7b3ed832b1bfa3911b7fe"&gt;sd_ble_gap_connect&lt;/a&gt;&amp;nbsp;is called.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;A&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-1/group_ble_gap_enumerations#ggada486dd3c0cce897b23a887bed284fefa57e5d1061d9b3d1500fb3556a3fb8847"&gt;BLE_GAP_EVT_TIMEOUT&lt;/a&gt;&amp;nbsp;with &lt;/em&gt;source&lt;em&gt; set to&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-1/group_ble_gap_timeout_sources#ga21e47e99c7d0a1fa0ed70c7c4c5b5228"&gt;BLE_GAP_TIMEOUT_SRC_SCAN&lt;/a&gt;&amp;nbsp;is received.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;When a&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-1/group_ble_gap_enumerations#ggada486dd3c0cce897b23a887bed284fefa41ba498a9fda3e1cd345f4454a582bd9"&gt;BLE_GAP_EVT_ADV_REPORT&lt;/a&gt;&amp;nbsp;event is received and&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-1/structble__gap__adv__report__type__t#a9c75def4d2cba76b50d25210c0c30e30"&gt;ble_gap_adv_report_type_t::status&lt;/a&gt;&amp;nbsp;is not set to&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-1/group_ble_gap_adv_data_status#ga181c51cd6fedafe2430e400744be8a0c"&gt;BLE_GAP_ADV_DATA_STATUS_INCOMPLETE_MORE_DATA&lt;/a&gt;. In this &lt;/em&gt;case&lt;em&gt; scanning is only paused to let the application access received data. The application must call this function to continue scanning, or call&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-1/group_ble_gap_functions#ga0e92b62656057a13747a2ef1e71fd128"&gt;sd_ble_gap_scan_stop&lt;/a&gt;&amp;nbsp;to stop scanning.&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;If a&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-1/group_ble_gap_enumerations#ggada486dd3c0cce897b23a887bed284fefa41ba498a9fda3e1cd345f4454a582bd9"&gt;BLE_GAP_EVT_ADV_REPORT&lt;/a&gt;&amp;nbsp;event is received with&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-1/structble__gap__adv__report__type__t#a9c75def4d2cba76b50d25210c0c30e30"&gt;ble_gap_adv_report_type_t::status&lt;/a&gt;&amp;nbsp;set to&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-1/group_ble_gap_adv_data_status#ga181c51cd6fedafe2430e400744be8a0c"&gt;BLE_GAP_ADV_DATA_STATUS_INCOMPLETE_MORE_DATA&lt;/a&gt;, the scanner will continue scanning, and the application will receive more reports from this advertising event. The following reports will include the old and &lt;/em&gt;new&lt;em&gt; received data.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>