<?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>Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51241/scan-only-one-nrf52832-peripheral</link><description>HI 
 I am using nrf52832 modules with SDK 11.0.0, s132. 
 I am able to advertise and scan the devices and display RSSI and peer address. 
 For my project i want to display the RSSI of the advertising nrf module , but the central device is scanning all</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Aug 2019 12:50:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51241/scan-only-one-nrf52832-peripheral" /><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/206875?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 12:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a505e5cc-2126-46ea-828f-a1b74fb0dec8</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote user="guma"]hey to be clear ,LNA is automatically controlled , as in enabled and taken care but not provided with option to configure?[/quote]
&lt;p&gt;&amp;nbsp;Yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/206779?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 08:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f86ce6bd-c7ff-4374-ba55-52097d59661e</guid><dc:creator>guma</dc:creator><description>[quote userid="7377" url="~/f/nordic-q-a/51241/scan-only-one-nrf52832-peripheral/206753"]You control the internal output power (think of it as an internal PA as we have discussed earlier). The internal LNA is automatically controlled and cannot be configured in any way.[/quote]
&lt;p&gt;hey to be clear ,LNA is automatically controlled , as in enabled and taken care but not provided with option to configure?&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/51241/scan-only-one-nrf52832-peripheral/206776"]I see. Then I suggest&amp;nbsp; you donwload the latest SDK as soon as possible. There has ben many changes and improvements, and you wil probably save time by not having to learn to different SDK&amp;#39;s.[/quote]
&lt;p&gt;Sure. :)&amp;nbsp;&lt;br /&gt;will check with latest SDK and get back if any questions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/206776?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 08:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e1cc3bd-c392-4d64-9750-e1b858f3d131</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Then I suggest you download the latest SDK as soon as possible. There have ben many changes and improvements, and you will probably save time by not having to learn to different SDKs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/206761?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 07:26:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13b2410e-652a-4c1a-97c4-bcf46cfee070</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;Thank you for the quick reply.&lt;/p&gt;
&lt;p&gt;I happen to have the SDK, just trying to get to know to be easy with new version.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/206753?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 06:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63d59a7-fa94-42ed-a784-a496936b6888</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="guma"]I mean is there an PA/LNA in the nrf52832 that needs to be enabled to get more range.[/quote]
&lt;p&gt;You control the internal output power (think of it as an internal PA as we have discussed earlier). The internal LNA is automatically controlled and cannot be configured in any way.&lt;/p&gt;
[quote user="guma"]If i have understood it correctly ,your saying there is no such feature in the module specifically for PA/LNA but can be implemented through external PA\LNA&amp;nbsp;using available GPIO&amp;nbsp;pins .?[/quote]
&lt;p&gt;Yes. If you need a external PA or LNA, that is supported and can be controlled via GPIO pins, which are asserted by the SoftDevice when the radio is in Tx or Rx mode.&lt;/p&gt;
[quote user="guma"]To understand , GPIOTE, when i need a particular pin to be triggered after a function or task is completed, say i have established a connection between central and&amp;nbsp;peripheral and i have made GPIO pin to go high to indicate that status ,is that when the GPIOTE comes into picture?[/quote]
&lt;p&gt;When using PA/LNA support in the SoftDevice, The SoftDevice will assert the a GPIO pin whenever the radio is in Tx mode, and similarly assart another pin when the radio is in Rx mode.&lt;/p&gt;
[quote user="guma"]How can i understand GPIOTE better?[/quote]
&lt;p&gt;You can start by looking at the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpiote.html?cp=3_1_0_20#concept_knz_kww_lr"&gt;GPIOTE &lt;/a&gt;chapter in the PS. Essentially it is GPIO pins with support for tasks and events are described under &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/peripheral_interface.html?cp=3_1_0_14_4#concept_jjw_45z_vr"&gt;Peripheral interface&lt;/a&gt;.&lt;/p&gt;
[quote user="guma"]The document says about the pin operations and pin conditions, which are quite understandable when read but to get know about using them is confusing.So How can i understand the usage?[/quote]
&lt;p&gt;The best way to understand things is to read documentatin and experiment wit some simple examples related to what you want to do.&lt;/p&gt;
&lt;p&gt;By the way, why are you starting development with the ancient SDK 11?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/206750?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 06:23:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b22d778-4384-4a97-aab4-28be41d8017d</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;I mean is there an PA/LNA in the nrf52832 that needs to be enabled to get more range.&lt;/p&gt;
&lt;p&gt;If i have understood it correctly ,your saying there is no such feature in the module specifically for PA/LNA but can be implemented through external PA\LNA&amp;nbsp;using available GPIO&amp;nbsp;pins .?&lt;/p&gt;
&lt;p&gt;To understand , GPIOTE, when i need a particular pin to be triggered after a function or task is completed, say i have established a connection between central and&amp;nbsp;peripheral and i have made GPIO pin to go high to indicate that status ,is that when the GPIOTE comes into picture?&lt;/p&gt;
&lt;p&gt;How can i understand GPIOTE better?&lt;/p&gt;
&lt;p&gt;The document says about the pin operations and pin conditions, which are quite understandable when read but to get know about using them is confusing.So How can i understand the usage?&lt;/p&gt;
&lt;p&gt;I found&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18559/understanding-gpiote-better"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/18559/understanding-gpiote-better&lt;/a&gt;&amp;nbsp;but did not understand.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/206646?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 13:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4242bdc-cdf4-4260-83b2-b542b26b8303</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="guma"]Regarding the TX power level, the range or distance reduces as power level is set to -4, -8 and so on right?[/quote]
&lt;p&gt;Yes, that is correct. For instance, a 6 dB decrease in power will give you half the range.&lt;/p&gt;
[quote user="guma"]At the reception end is there any feature with regards to the LNA/PA control ? or it is already enabled in the module ?How does it work in the nrf52832 module?[/quote]
&lt;p&gt;What do you mean? The receiver end does not have any similar parameter to Tx power. But if you refer to SoftDevice support for controlling an external PA and/or LNA, that is in place. You can, for instance, refer to &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/pa-lna-support-in-s132"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/206622?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 12:27:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dabe19de-4282-4668-849c-fb39104f7b66</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for explaining.&lt;/p&gt;
&lt;p&gt;Regarding the TX power level, the range or distance reduces as power level is set to -4, -8 and so on right?&lt;/p&gt;
&lt;p&gt;At the reception end is there any feature with regards to the LNA/PA control ? or it is already enabled in the module ?How does it work in the nrf52832 module?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/206032?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2019 08:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad041043-53b6-4993-96e9-92a85fac0354</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="guma"]after successful build when i load the board, the module is not advertising.[/quote]
&lt;p&gt;Most likely it does not advertise because&amp;nbsp;APP_ERROR_CHECK() has been called with an error code (something not NRF_SUCCESS). The proper approach, in this case, is to find out what the error code is. Have you tried that?&lt;/p&gt;
[quote user="guma"]I did not enable the Soft Device(not aware).How do i check for error.?[/quote]
&lt;p&gt;If you did not enable the SoftDevice, then&amp;nbsp;any call to SoftDevice API&amp;#39;s (such as&amp;nbsp;sd_ble_gap_tx_power_set()) is illegal. So if the SoftDevice really is not enabled it is expected to fail, in this case with error code is probably&amp;nbsp;NRF_ERROR_SOFTDEVICE_NOT_ENABLED. To fix this you need to make sure that you enable the SoftDevice before you call&amp;nbsp;sd_ble_gap_tx_power_set(). However, you write that you do this in&amp;nbsp;gap_params_init(), and in the SDK examples, this function is called after the SoftDevice is enabled. Therefore, I suspect the error code is something else.&lt;/p&gt;
&lt;p&gt;So, to move forward in a fast and efficient way you should find the error code returned by&amp;nbsp;sd_ble_gap_tx_power_set(), as this will probably tell us what went wrong.&lt;/p&gt;
&lt;p&gt;Update: I just checked the old SDK 11 SoftDevice API (S132 2.0.0), and it turns out that back then +3 dBm was not supported by the SoftDevice. So the error code you get is probably&amp;nbsp;NRF_ERROR_INVALID_PARAM. You have to choose between&amp;nbsp;-40, -30, -20, -16, -12, -8, -4, 0, or 4 dBm using that old SoftDevice. You need a newer SoftDevice to be able to set +3 dBm (at least S132 version 3.0.0).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/206018?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2019 07:16:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c513fcb3-0f89-40d6-9e4f-1d69265a189d</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;these are the lines i added in the gap_params_init&lt;/p&gt;
&lt;p&gt;int8_t tx_power = 3;&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_gap_tx_power_set(tx_power);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;after successful build when i load the board, the module is not advertising.&lt;/p&gt;
&lt;p&gt;But when the change the power level to 4 it advertises.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I did not enable the Soft Device(not aware).How do i check for error.?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/205884?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 12:10:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abff5389-189d-4a8f-896b-3737c4b30e04</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="guma"]I do not understand whitelisting??[/quote]
&lt;p&gt;Whitelisting is simply a method that lets the scanner (in this case) ignore advertising packets form non-whitelisted devices. You can whitelist the MAC address (or IRK if the peer is using privacy - random resolvable address - and you have exchanged the IRK when bonding).&lt;/p&gt;
&lt;p&gt;[quote user="guma"][/quote]&lt;/p&gt;
&lt;p&gt;I want to do with UUID, i couldnt get past though is_uuid_present function.&lt;/p&gt;
&lt;p&gt;the peripheral&amp;nbsp; and central configurations are kept as default. What should i change?How can i filter using uuid??&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Filtering on UUID is essentially similar to any other filtering. Instead of filtering on the Name which is part of the advertising packet, you filter on UUID instead. Note that both name and UUID are optional, so unless you know that it is part of the advertising packet you are not guaranteed to find anything. (That means that a device can support a BLE service without advertising the service UUID. So, in that case, you have to connect and do service discovery to know that the service is supported).&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;is_uuid_present function in the NUS central example in SDK 11 demonstrates how you can search for a specific UUID in the advertising data. If it doe snot find the UUID you are searching for it indicates that it is not&amp;nbsp;part of the advertising packet.&lt;/p&gt;
[quote user="guma"]The default TX power level of the module is 0dBm right??[/quote]
&lt;p&gt;Yes, the Tx power is 0 dBm unless you explicitly set it to something else.&lt;/p&gt;
[quote user="guma"]according to the documentation&amp;nbsp;&lt;span&gt;Radio transmit power in dBm (accepted values are -40, -30, -20, -16, -12, -8, -4, 0, 3, and 4 dBm), my device is nrf52832.When i have set to 3dbm im unable to advertise why?&lt;/span&gt;[/quote]
&lt;p&gt;Unable to advertise? In what way? How do you set the Tx power? It should be just to call&amp;nbsp;sd_ble_gap_tx_power_set() after enabling the SoftDevice. Do you get an error returned?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/205829?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 09:41:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da5a76b1-c62f-4106-9fcb-b34507497e03</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I was able to successfully&amp;nbsp; filter required device by name, MAC address.&lt;/p&gt;
&lt;p&gt;I do not understand whitelisting??&lt;/p&gt;
&lt;p&gt;I want to do with UUID, i couldnt get past though is_uuid_present function.&lt;/p&gt;
&lt;p&gt;the peripheral&amp;nbsp; and central configurations are kept as default. What should i change?How can i filter using uuid??&lt;/p&gt;
&lt;p&gt;The default TX power level of the module is 0dBm right??&lt;/p&gt;
&lt;p&gt;according to the documentation&amp;nbsp;&lt;span&gt;Radio transmit power in dBm (accepted values are -40, -30, -20, -16, -12, -8, -4, 0, 3, and 4 dBm), my device is nrf52832.When i have set to 3dbm im unable to advertise why?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan only one nrf52832 peripheral</title><link>https://devzone.nordicsemi.com/thread/205344?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 13:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8db841e6-b11d-485b-baf6-f3d33d2b7dea</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Uma,&lt;/p&gt;
&lt;p&gt;You have a few options in this case:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Scan with whitelisting provided that you know the MAC address or IRK (if the peripheral uses privacy). If you are not bonded with the device, you can do something similar to &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/14190/custom-whitelist-while-scanning"&gt;this&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Just filter in the handling of the&amp;nbsp;BLE_GAP_EVT_ADV_REPORT event. Then you can filter on anything you want (MAC address, name or whatever), and only print the RSSI of the device(s) you are interested in.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>