<?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>Unable to scan all ble devices which is advertising the data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75877/unable-to-scan-all-ble-devices-which-is-advertising-the-data</link><description>Hello, I want to scan all ble devices present near by nrf52-dk and process the data in my application. I am unable to find the scanning ble device code in nrf52 sdk. I am absolutely new in nrf development. Please give some idea.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jun 2021 10:30:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75877/unable-to-scan-all-ble-devices-which-is-advertising-the-data" /><item><title>RE: Unable to scan all ble devices which is advertising the data</title><link>https://devzone.nordicsemi.com/thread/313882?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 10:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5602a379-7451-482d-8449-98857c239496</guid><dc:creator>Rohan Sharma</dc:creator><description>&lt;p&gt;In main.c, i have found the function scan_start(). This function is being called and right after the scan_start(), i expect the scan data(UUID, data, rssi, tx_value).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to scan all ble devices which is advertising the data</title><link>https://devzone.nordicsemi.com/thread/313874?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 10:05:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3d91c34-6c8d-46fb-bfb8-e1096d931b38</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Did you call&amp;nbsp;&lt;span&gt;sd_ble_gap_rssi_start()?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to scan all ble devices which is advertising the data</title><link>https://devzone.nordicsemi.com/thread/313775?ContentTypeID=1</link><pubDate>Sat, 05 Jun 2021 15:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15bcad8a-2c63-4c4c-97cb-c4f1d82fc5f4</guid><dc:creator>Rohan Sharma</dc:creator><description>&lt;p&gt;Thanks for reply. Just, I have tried. I have initialized &amp;quot;ble_gap_evt_adv_report_t &lt;span&gt;ble_gap_evt_adv_report_temp_var&lt;/span&gt;&amp;quot; in main.c and printing the rssi value in &amp;quot;ble_evt_handler&amp;quot; function by &amp;quot;NRF_LOG_INFO(&amp;quot;%d&amp;quot;,&lt;span&gt;ble_gap_evt_adv_report_temp_var.rssi&lt;/span&gt;)&amp;quot;. Output is 0 . Can you please help me in detail what exactly, i have to do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to scan all ble devices which is advertising the data</title><link>https://devzone.nordicsemi.com/thread/313193?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 16:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b7733ce-da0a-47d2-972a-9c8b4e545df3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;A good starting point would be a BLE central example, for instance the ble_app_blinky_c in the nRF5 SDK.&lt;/p&gt;
&lt;p&gt;What you are looking for is handling of the&amp;nbsp;BLE_GAP_EVT_ADV_REPORT event, this is typically handled by the nrf_ble_scan.c module. However you may&amp;nbsp;also&amp;nbsp;add it to your&amp;nbsp;ble_evt_handler() in main.c and extract whatever information you want.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**@brief Event structure for @ref BLE_GAP_EVT_ADV_REPORT.
 *
 * @note If @ref ble_gap_adv_report_type_t::status is set to @ref BLE_GAP_ADV_DATA_STATUS_INCOMPLETE_MORE_DATA,
 *       not all fields in the advertising report may be available.
 *
 * @note When ble_gap_adv_report_type_t::status is not set to @ref BLE_GAP_ADV_DATA_STATUS_INCOMPLETE_MORE_DATA,
 *       scanning will be paused. To continue scanning, call @ref sd_ble_gap_scan_start.
 */
typedef struct
{
  ble_gap_adv_report_type_t type;                  /**&amp;lt; Advertising report type. See @ref ble_gap_adv_report_type_t. */
  ble_gap_addr_t            peer_addr;             /**&amp;lt; Bluetooth address of the peer device. If the peer_addr is resolved:
                                                        @ref ble_gap_addr_t::addr_id_peer is set to 1 and the address is the
                                                        peer&amp;#39;s identity address. */
  ble_gap_addr_t            direct_addr;           /**&amp;lt; Contains the target address of the advertising event if
                                                        @ref ble_gap_adv_report_type_t::directed is set to 1. If the
                                                        SoftDevice was able to resolve the address,
                                                        @ref ble_gap_addr_t::addr_id_peer is set to 1 and the direct_addr
                                                        contains the local identity address. If the target address of the
                                                        advertising event is @ref BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE,
                                                        and the SoftDevice was unable to resolve it, the application may try
                                                        to resolve this address to find out if the advertising event was
                                                        directed to us. */
  uint8_t                   primary_phy;           /**&amp;lt; Indicates the PHY on which the primary advertising packet was received.
                                                        See @ref BLE_GAP_PHYS. */
  uint8_t                   secondary_phy;         /**&amp;lt; Indicates the PHY on which the secondary advertising packet was received.
                                                        See @ref BLE_GAP_PHYS. This field is set to @ref BLE_GAP_PHY_NOT_SET if no packets
                                                        were received on a secondary advertising channel. */
  int8_t                    tx_power;              /**&amp;lt; TX Power reported by the advertiser in the last packet header received.
                                                        This field is set to @ref BLE_GAP_POWER_LEVEL_INVALID if the
                                                        last received packet did not contain the Tx Power field.
                                                        @note TX Power is only included in extended advertising packets. */
  int8_t                    rssi;                  /**&amp;lt; Received Signal Strength Indication in dBm of the last packet received.
                                                        @note ERRATA-153 and ERRATA-225 require the rssi sample to be compensated based on a temperature measurement. */
  uint8_t                   ch_index;              /**&amp;lt; Channel Index on which the last advertising packet is received (0-39). */
  uint8_t                   set_id;                /**&amp;lt; Set ID of the received advertising data. Set ID is not present
                                                        if set to @ref BLE_GAP_ADV_REPORT_SET_ID_NOT_AVAILABLE. */
  uint16_t                  data_id:12;            /**&amp;lt; The advertising data ID of the received advertising data. Data ID
                                                        is not present if @ref ble_gap_evt_adv_report_t::set_id is set to
                                                        @ref BLE_GAP_ADV_REPORT_SET_ID_NOT_AVAILABLE. */
  ble_data_t                data;                  /**&amp;lt; Received advertising or scan response data. If
                                                        @ref ble_gap_adv_report_type_t::status is not set to
                                                        @ref BLE_GAP_ADV_DATA_STATUS_INCOMPLETE_MORE_DATA, the data buffer provided
                                                        in @ref sd_ble_gap_scan_start is now released. */
  ble_gap_aux_pointer_t     aux_pointer;           /**&amp;lt; The offset and PHY of the next advertising packet in this extended advertising
                                                        event. @note This field is only set if @ref ble_gap_adv_report_type_t::status
                                                        is set to @ref BLE_GAP_ADV_DATA_STATUS_INCOMPLETE_MORE_DATA. */
} ble_gap_evt_adv_report_t;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>