<?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>NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99460/nrf-node-sensor-server-loses-provisioning-automatically</link><description>I&amp;#39;m using NCS V2.2.0 with the UBLOX module (nrf52832). I changed the example of the sensor server. UBLOX module&amp;#39;s power turns off, then turns back on extetrnally(through a separate IC) for my application. The module was automatically unprovisioned after</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jun 2023 07:26:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99460/nrf-node-sensor-server-loses-provisioning-automatically" /><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/429465?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 07:26:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:369c056d-1492-4b0e-98d5-4ea53d2f98b1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Have you tried setting a breakpoint inside bt_le_start_scan(), to see where it hangs?&lt;/p&gt;
&lt;p&gt;Is there some way for me to reproduce what you are seeing?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/429340?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 13:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19165b95-91ea-4369-a784-945970b91554</guid><dc:creator>AdityaN</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/99460/nrf-node-sensor-server-loses-provisioning-automatically/429183"]What sleep mode is this? What API do you use?[/quote]
&lt;p&gt;I am using&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;pm_device_action_run(cons, PM_DEVICE_ACTION_SUSPEND);&lt;/pre&gt;&amp;nbsp;to put device in suspended mode.&lt;/p&gt;
&lt;p&gt;bt_le_scan_start() returns a 0 first time and the device doesn&amp;#39;t print anything second time. Advertising is successful because it returns a 0.&lt;/p&gt;
&lt;p&gt;printing and Logging stops when i call bt_le_start_scan() function second time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/429183?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 07:37:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:943ee57f-4db8-406a-89fe-36bbe96244bc</guid><dc:creator>Edvin</dc:creator><description>[quote user="AdityaN"]Then the device goes into the normal sleep mode.[/quote]
&lt;p&gt;What sleep mode is this? What API do you use?&lt;/p&gt;
&lt;p&gt;Do you see any logging? Try printing the return value of bt_le_scan_start() regardless of it&amp;#39;s value.&lt;/p&gt;
&lt;p&gt;Also, do you advertise? What does that return?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/429117?ContentTypeID=1</link><pubDate>Sun, 04 Jun 2023 14:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:627b224e-725d-4296-a870-fec0b739071b</guid><dc:creator>AdityaN</dc:creator><description>&lt;p&gt;Hey Edvin,&lt;/p&gt;
&lt;p&gt;I am facing an issue in combining the advertiser and observer sample. I am able to advertise from one node and receive on other node.&lt;/p&gt;
&lt;p&gt;But when i add the observer to advertiser, the program stops working(I have added debug statements, these statements are not getting printed.....hence i think the program stops working until i press reset). &lt;/p&gt;
&lt;p&gt;After publishing, I start the observer( bt_le_scan_start()) and then i stop scanning(bt_le_scan_stop()) after few mili-seconds. Then the device goes into the normal sleep mode. When the device wakes up and starts this loop again, the program stops working(after publishing, while re-starting scanner)&lt;/p&gt;
&lt;p&gt;I am not sure what the issue is, as i am not getting any error message from scan start or stop.&lt;/p&gt;
&lt;p&gt;Do let me know if you need anything else.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Sincerely&lt;/p&gt;
&lt;p&gt;Aditya Nerpagar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/428168?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 12:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ab09d98-6691-4d19-be40-28ea213edc40</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;That looks more correct. It looks like you still have an offset.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For current measurement purposes, try to disable the UART (typically used for logging). Add CONFIG_SERIAL=n in your prj.conf.&lt;/p&gt;
&lt;p&gt;This is what I see with a 50ms advertising interval:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1685451235523v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/427918?ContentTypeID=1</link><pubDate>Sat, 27 May 2023 14:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14d0062d-417a-42ec-a0f7-cde8978d43dd</guid><dc:creator>AdityaN</dc:creator><description>&lt;p&gt;Hey, i checked it with a DK, Power consumption is very low, i can see 996uA current, I&amp;#39;ve set publish interval to be 50msecs. &lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/WhatsApp-Image-2023_2D00_05_2D00_27-at-7.51.27-PM.jpeg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/427524?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 12:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ae7f9fb-bff7-4fea-b8f9-f9d52119f0ab</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;In that case, it is difficult to say what power consumption that is drawn by the nRF. You would need to run it on a separate device (perhaps a DK), and compare the current consumption with your two approaches.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/427435?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 08:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a62b919-f4d6-412d-8e5f-451b817ccab8</guid><dc:creator>AdityaN</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;The nRF52832 has 2 components attached to it, one is the temperature sensor and other is the power cutting ic(also some capacitors and resistors and one led). This is my complete circuit.&lt;/p&gt;
&lt;p&gt;I am using ADC read for temperature and battery reading. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sincerely&lt;/p&gt;
&lt;p&gt;Aditya Nerpagar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/427379?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 06:17:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a372e95-0c2e-4831-a09c-e767f05589a3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What exactly are you measuring the current on? Is it only the nRF52832, or do you power other external components as well, either directly from the nRF, or from the circuit that you are measuring on? I would expect an advertising application to look a bit different. It should have a lower base current.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/427266?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 13:45:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93612c43-c0a3-4152-b022-46824dd7ef19</guid><dc:creator>AdityaN</dc:creator><description>&lt;p&gt;Hey, i took one more reading,&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0827.image.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3554.image-_2800_1_2900_.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5773.image-_2800_2_2900_.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3630.image-_2800_3_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/426773?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 07:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e413dc1-6d9f-4397-a3d3-64ac1a4a7493</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can you see what the measurement looks like if you exclude the first large spike? Please zoom in on the x axis so that it is cut out. I would just like to see what the graph looks like without the 300mA spike.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/426561?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 12:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:113885d7-a747-4726-832f-a0c56f3cf86f</guid><dc:creator>AdityaN</dc:creator><description>&lt;p&gt;Hey, Thanks for your suggestion. currently i am using k_msleep() between starting advertising and stopping it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As you know in my project, i am following the same flow as below.&lt;/p&gt;
[quote userid="121262" url="~/f/nordic-q-a/99460/nrf-node-sensor-server-loses-provisioning-automatically/424931"]&lt;p&gt;The node wakes up, takes an ADC reading of temperature and battery value, stores it in the NVS. Then depending on the following conditions, the node will publish the reading. Below are the conditions for publishing data:&lt;/p&gt;
&lt;p&gt;1. If it hasn&amp;#39;t published for 5 minutes.&lt;/p&gt;
&lt;p&gt;2. if there is significant change in the temperature or battery reading.&lt;/p&gt;
&lt;p&gt;Else the node doesn&amp;#39;t publish and the power is cut off just after ADC reading.&lt;/p&gt;[/quote]
&lt;p&gt;This same flow was implemented on ble mesh before, It took around 182ms and consumed 7mA&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/WhatsApp-Image-2023_2D00_05_2D00_22-at-5.41.19-PM.jpeg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now, that this same flow is implemented on ble protocol, It takes 573ms and consumes 8.2mA&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7870.Screenshot-_2800_31_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From what you said, BLE was supposed to consume less current and time. Can you help in reducing this time and current.&lt;/p&gt;
&lt;p&gt;Let me know if you need anything else.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Aditya Nerpagar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/426426?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 06:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82219c54-10f9-4d73-94eb-44673e2c7ba5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;No, there is not an API for this. Just to get an understanding on how advertising and scanning works, I suggest you take a look at &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/bluetooth-smart-and-the-nordics-softdevices-part-1"&gt;this blog post&lt;/a&gt;. Particularly this figure is relevant for your use case:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1684737164714v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now, regarding counting advertising packets.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that the figure above is slightly simplified. Every advertising interval there is a 0-10ms random delay added, so keep that in mind.&lt;/p&gt;
&lt;p&gt;What you can do is to calculate how long you have to advertise with the advertising interval that you are using in order to achieve the desired amount of advertising packets,&amp;nbsp; and then you can stop advertising after this amount of time. You can either do so using the built-in .ble_adv_fast_timeout (in most of our samples you will see this being set using a definition called&amp;nbsp;APP_ADV_DURATION, set to 180 seconds). After this the device will stop advertising, and depending on your application, go to system off (turn off), from the&amp;nbsp;BLE_ADV_EVT_IDLE event in your advertising handler.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another option is to use an app_timer to set a timeout, where you can stop the advertisements in your app_timer timeout callback.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;A third option, which is probably a bit more work, but a bit more accurate. If you are only advertising, you can use something called radio notifications. This will let you know whenever the softdevice intends to use the radio. So if you are only advertising you would know that all of these events are advertising events, and you can count them, and stop advertising after the desired amount is reached. Whether this is worth it compared to using a timer is up to you. I would go with the timer, as it doesn&amp;#39;t sound like it is a dealbreaker if you send one extra, or one too few advertisements from time to time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/426390?ContentTypeID=1</link><pubDate>Sat, 20 May 2023 12:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40421ccf-6648-4f3e-9154-81593e25a17b</guid><dc:creator>AdityaN</dc:creator><description>&lt;p&gt;Hey Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for your suggestion, i am now able to send and receive data from BLE device without having to connect.&lt;/p&gt;
&lt;p&gt;I wanted to know if there is a way to count number of advertisment packet sent from a device. Is there a function that will let me know number packets advertised?&lt;/p&gt;
&lt;p&gt;Aditya Nerpagar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/426195?ContentTypeID=1</link><pubDate>Fri, 19 May 2023 08:05:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2db639f-ac83-4761-8dfa-7119a5aeeb95</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If it is not too late, I would recommend that you don&amp;#39;t use the eddystone protocol, as this is deprecated. It is an overly complicated beacon format that didn&amp;#39;t catch on. I would rather suggest that you just use a normal beacon sample as a starting point, and then, in your scanner&amp;#39;s application you will have access to the entire advertising packet in raw format. Depending on how you added the sensor data, you should be able to extract it in a similar fashion.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To set up a beacon, you can either use the beacon example, or you can take pretty much any of the ble_perpiheral examples, such as the ble_app_uart, and just remove the services that are initialized, and make the advertisements non-connectable, and modify what data you put into your advertisement.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/426016?ContentTypeID=1</link><pubDate>Wed, 17 May 2023 02:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f88e530-0841-4b24-959a-15babdb53f28</guid><dc:creator>AdityaN</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;I am able to scan the advertised packets, And i am using name to filter devices, but i am not able to get the actual data. What function should i use to extract data. I am using EDDYSTONE URL type data(I am not sure how to use EDDYSTONE-TLM).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is all the data i am getting from packet, but what should i do to get actual URL sent.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;bt_addr_le_to_str(info-&amp;gt;addr, le_addr, sizeof(le_addr));
	printk(&amp;quot;[DEVICE]: %s, AD evt type %u, Tx Pwr: %i, RSSI %i &amp;quot;
	       &amp;quot;Data status: %u, AD data len: %u Name: %s &amp;quot;
	       &amp;quot;C:%u S:%u D:%u SR:%u E:%u Pri PHY: %s, Sec PHY: %s, &amp;quot;
	       &amp;quot;Interval: 0x%04x (%u ms), SID: %u\n&amp;quot;,
	       le_addr, info-&amp;gt;adv_type, info-&amp;gt;tx_power, info-&amp;gt;rssi,
	       data_status, data_len, name,
	       (info-&amp;gt;adv_props &amp;amp; BT_GAP_ADV_PROP_CONNECTABLE) != 0,
	       (info-&amp;gt;adv_props &amp;amp; BT_GAP_ADV_PROP_SCANNABLE) != 0,
	       (info-&amp;gt;adv_props &amp;amp; BT_GAP_ADV_PROP_DIRECTED) != 0,
	       (info-&amp;gt;adv_props &amp;amp; BT_GAP_ADV_PROP_SCAN_RESPONSE) != 0,
	       (info-&amp;gt;adv_props &amp;amp; BT_GAP_ADV_PROP_EXT_ADV) != 0,
	       phy2str(info-&amp;gt;primary_phy), phy2str(info-&amp;gt;secondary_phy),
	       info-&amp;gt;interval, info-&amp;gt;interval * 5 / 4, info-&amp;gt;sid);}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/426004?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 23:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbc60b25-8ad2-4989-86c2-98b6d7ca12f0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In NCS, you can look at the NCS\zephyr\samples\bluetooth\central&lt;/p&gt;
&lt;p&gt;This example will scan, and all advertising reports will trigger the&amp;nbsp;device_found() callback in main.c. Just remove the line:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN,
				BT_LE_CONN_PARAM_DEFAULT, &amp;amp;default_conn);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And it will no longer try to connect to that device. Also remove the call to bt_le_scan_stop(), so that it doesn&amp;#39;t stop scanning.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then you can set up your own filter in this callback. Look for something that you know is present in all the advertising packs (UUID, address, or something else), and fetch the relevant sensor data from these advertising packets.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/425631?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 13:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fddd6631-cf93-4020-9fa9-cdc2f0560438</guid><dc:creator>AdityaN</dc:creator><description>&lt;p&gt;Hey, can you let know which example should i look at for scanning beacon values without connecting on nrf board. I am able to send connectionless beacons, but i am not sure how to scan for them using an nrf board.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am using beacon example to publish data&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Aditya Nerpagar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/425567?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 10:38:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf5694ac-a46c-4da5-af5f-dcc513a34680</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;That makes sense if you need information two ways (both from the RX node to the TX node, and from the TX node to the RX node.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Remember that advertising is not a guaranteed way of communication. That means that even if the receiver scans 100% of the time, it is not guaranteed that it will pick up a single packet. It can be lost due to noise. Also, please note that in the softdevice&amp;#39;s scheduler, it will either schedule an entire scan window or discard it. If you intend to also advertise on the RX node, it means that it will have to discard a scan window from time to time. Therefore, I suggest you keep the scan window/intervals small (default values), so that when a scan window is dropped, it doesn&amp;#39;t stop scanning for many seconds.&lt;/p&gt;
&lt;p&gt;This also means that you need to keep advertising for a little while to increase the possibility for the RX node to pick up the beacon.&lt;/p&gt;
&lt;p&gt;You can experiment a bit with the advertising and scanning settings.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Keep in mind that it is also a possibility for the RX node to actually connect to the devices if you need bi-directional communication. I am not saying that it is better. You need to experiment. The advantage of this approach is that the TX nodes only need to transmit, not scan. Scanning is a power hungry operation. Transmitting only uses the radio in short bursts.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For some actual numbers, you can play around with the &lt;a href="https://devzone.nordicsemi.com/power/w/opp/2/online-power-profiler-for-bluetooth-le"&gt;Online Power Profiler&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/425443?ContentTypeID=1</link><pubDate>Sat, 13 May 2023 15:21:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3038d6d4-5079-4c5e-855a-30573546a5dd</guid><dc:creator>AdityaN</dc:creator><description>&lt;p&gt;Hey, Thanks for your help, I really appreciate it.&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve decided to move ahead with the BLE advertising (beacon) solution.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The transmitter node will beacon the sensor data and the receiver node will beacon some config data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So the flow of project will be as follows,&lt;/p&gt;
&lt;p&gt;Tx node: after waking up, will read the config beacon and then advertise the sensor data and finally the power will be cut off as before.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Rx node: this will always stay on, and will continuously advertise the config data and read the sensor data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let me know what you think of it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/425024?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 07:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf0b36d-4ab3-45a6-9099-a3e889556857</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;If you only have 8 nodes, why don&amp;#39;t you just use A: normal BLE advertising (beacon), or&amp;nbsp;B: advertise -&amp;gt; connect -&amp;gt; send data -&amp;gt; disconnect.&lt;/p&gt;
&lt;p&gt;Either should work. Which one is better, current consumption wise, depends on the amount of data that you are transmitting every time.&lt;/p&gt;
&lt;p&gt;I really think you should consider this. I don&amp;#39;t know what current consumption you are currently looking at with your external IC + Mesh setup. But I would expect both of the options A and B above would consume less than what you are currently seeing, even without an external IC cutting the power. As long as the nRF goes to sleep with only a timer running, it&amp;#39;s current consumption is neglible compared to a few seconds in Mesh mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Advertisings and BLE connections are also using a lot less current than Bluetooth Mesh.&lt;/p&gt;
&lt;p&gt;And please understand that we do in no way recommend taking out normal Bluetooth Mesh nodes like you do. Even if you would solve this issue, you will probably run into other issues eventually. I am not certain how long it would be (how much flash is used to update the sequence number block), but let us say you could do 100 reboots before it would require a cleanup of the flash (deleting old data marked as dirty). I don&amp;#39;t know if this number (100) is feasible, but let us work with that for now. Then it means one read write cycle every 50 minutes. The flash is only rated for 10 000 erase write cycles. Total expected lifetime of flash** 500 000 minutes = about a year.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, if it takes 1000 reboots for a flash cleanup, then it will last 10 years.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;**We are not saying that the flash will start failing after 10 000 cycles, but we guarantee that it will work for 10 000 cycles. You will likely see a lot more under normal conditions (temperature, humidity).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then comes the issue about the IV updates. A node needs to pick up the IV updates to stay in the network. This happens at most every 192 hours = 8 days. So every 8 days, the device needs to stay powered on a little longer to receive these updates. A child node would get it from it&amp;#39;s parent on wakeup, but not a full node that just disappears. This IV update is a bit complex. But the rule of thumb is that every 8 days you should make your nodes stay awake for a little longer than usual, to make sure it picks up the IV update before the process is complete (4 days).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But again, I really think you should look into just using BLE connections or beacons (only advertising), and your current receiver can scan for these packets instead of hosting an openthread network.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/424931?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 15:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de570db7-a981-4282-b3db-4b59ed940a90</guid><dc:creator>AdityaN</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;Thanks for sharing this with me, now i know what the problem is. But it is crucial for me to cut off the power of this node. I am using a 3V battery, 1000mAH and I want to make it last for around 10 years.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me explain the architecture of this particular transmitter node.&lt;/p&gt;
&lt;p&gt;The node wakes up, takes an ADC reading of temperature and battery value, stores it in the NVS. Then depending on the following conditions, the node will publish the reading. Below are the conditions for publishing data:&lt;/p&gt;
&lt;p&gt;1. If it hasn&amp;#39;t published for 5 minutes.&lt;/p&gt;
&lt;p&gt;2. if there is significant change in the temperature or battery reading.&lt;/p&gt;
&lt;p&gt;Else the node doesn&amp;#39;t publish and the power is cut off just after ADC reading.&lt;/p&gt;
&lt;p&gt;We can have only one friend node(which will be the receiver), but since there can be around 8 transmitters, the memory might be an issue on it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you recommend a solution for this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/424882?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 13:23:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76c4948f-8c9b-4465-a5f2-81b02fb63488</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I needed to discuss the consequences of this with a colleague, and we concluded that it is a very bad idea to have normal Mesh nodes where you just cut the power regularly. There are several reasons for this, but our main theory is that what you are seeing is the following:&lt;/p&gt;
&lt;p&gt;All mesh nodes have a&amp;nbsp;sequence number (used by the mesh messages) that is strictly incrementing (to prevent replay attacks). These are stored in chunks in RAM, but after a reboot, it needs to discard the rest of the&amp;nbsp;sequence numbers in that chunk. By default I think this number is 8192. This means that every 30 seconds, you will &amp;quot;waste&amp;quot; 8191 sequence numbers. In itself it is not a problem, but if you run out of these numbers, you need to wait for the Mesh networks next IV update. This happens roughly every week (192 hours).&lt;/p&gt;
&lt;p&gt;So basically, you are running out of messages that you can use.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is one of the reasons we don&amp;#39;t recommend just turning off the mesh nodes when you don&amp;#39;t want to use them.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think we need to go back to the drawing board. You can consider friend nodes (low power nodes) in Mesh. This allows you to turn off the radio, which consumes most of the power. Compared to running a full Mesh node, it is basically powered off when it is sleeping. (at least negligible compared to having the radio in active TX/RX).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This requires you to have some full nodes that can act as friend nodes for the low power nodes. It needs to hold messages for the nodes it is parent for, so it is not unlimited nodes per friend node. But it is restricted by the amount of traffic in the network.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could your use case be solved by using normal advertisement and a normal scanner? How much data are you sending every 30 seconds?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/424568?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 13:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4de9f818-3ad4-4b2c-8251-b299721440f2</guid><dc:creator>AdityaN</dc:creator><description>&lt;p&gt;Hey Edvin, Sorry for late reply&lt;/p&gt;
&lt;p&gt;The IC is supposed to turn the device on after every 30 secs. The power is cut off when BLE mesh model is done publishing data(using a GPIO to indicate that publishing is done).&amp;nbsp; The device got unprovisioned after a few hours(about 5 hours).&lt;/p&gt;
&lt;p&gt;The device was in the cycle of publishing and sleeping of 30 seconds for around 5 hours.&lt;/p&gt;
&lt;p&gt;Unfortunately, i am unable to get logs from device, as when we power the module from debugger, the power doesn&amp;#39;t get cut off. The power cuts off only when module is powered through a battery. And that&amp;#39;s why is it becoming difficult to debug this problem. Can you recommend me a way to get logs from the module?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF node (sensor server) loses provisioning automatically</title><link>https://devzone.nordicsemi.com/thread/424313?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 13:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63e32a30-fa3f-4786-90ad-a53e91a1e71f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;For how long does the separate IC turn your device off? And how often?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When the device is unprovisioned, does the log from the nRF say anything when the application starts up again?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>