<?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>access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60144/access_model_publish-returns-nrf_error_forbidden-in-lpn-and-all-friendships-time-out</link><description>1. After some time in the field (have not been able to recreate this in the lab, it takes weeks), 
 LPN nodes will start to return NRF_ERROR_FORBIDDEN from calls to access_model_publish(). 
 The call stack appears to be: 
 
 
 2. These LPN nodes are also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Jun 2020 14:12:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60144/access_model_publish-returns-nrf_error_forbidden-in-lpn-and-all-friendships-time-out" /><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/254296?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 14:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3e94d05-6b96-4f58-856f-b5dbd00ca35e</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;Thank you for the suggestion, but as mentioned previously we:&lt;/p&gt;
&lt;p&gt;- decreased &lt;em&gt;NETWORK_SEQNUM_FLASH_BLOCK_SIZE&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;- fixed the underlying low-power resetting issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/253556?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 13:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24253b36-d524-4b88-8752-cba28384730d</guid><dc:creator>Igor</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt; What about&amp;nbsp;NETWORK_MAX_IV_UPDATE_INTERVAL_MINUTES ? Should it be changed from 144*60 to 6*60?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/249284?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 18:14:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:115843dc-ebba-4629-b84c-d5c7dba25b53</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;Thank you for the info.&lt;/p&gt;
&lt;p&gt;For now we will go with the given workaround.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/248638?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 08:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38c3d65a-cfb1-4c5b-858a-44eb4edec849</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sirio,&amp;nbsp;&lt;br /&gt;What you do can remedy the issue but won&amp;#39;t solve it.&amp;nbsp;One of our engineer suggest&amp;nbsp;a list of thing you can do to remedy as follow:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Workaround&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Updating the following parameter&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;the minimum time requirement for triggering IV update from 96 hours to 4 hours&lt;/em&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Modify IV_UPDATE_TIMEOUT_MINUTES&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;em&gt;The minimum gap between each IV update from 192 hours to 8 hours&lt;/em&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Modify IV_RECOVERY_TIMEOUT_MINUTES&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Decrease the SEQ block number NETWORK_SEQNUM_FLASH_BLOCK_SIZE from 8192 to 512&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Add fail-safe protection: If SEQ is going to reach maximum number but IV update cannot be triggered, then unprovisioned itself&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;Risk&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;It is more easy to trigger the IV update and increasing IV&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;But if we do IV update every day, the product still can run 11,767,033 years&lt;/em&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;2 ^ 32 / 365 = 11767033 years&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;em&gt;This issue has been fixed in Mesh SDK v4.0, the stack will write the “iv_update_timer” into flash every 30 mins (IV_UPDATE_TIMEOUT_PERIODIC_SAVE_MINUTES)&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This won&amp;#39;t fix the issue as the best solution in my opinion is to be able to recover the sequence number after the battery died instead of unprovisioning. I will continue to check with the team if that possible.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/248531?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 15:37:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fb7f7e6-ec4c-45c4-ae86-9a4a5aae5bff</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;Thank you very much for getting back to me.&lt;/p&gt;
&lt;p&gt;The problem seems to have been that these devices are on battery power and, as they began running low, were self-resetting when voltage would drop while turning on the radio to transmit.&lt;/p&gt;
&lt;p&gt;Then, after reset they would increment the flash block.&lt;/p&gt;
&lt;p&gt;After about 2k cycles of this they would reach the maximum sequence number.&lt;/p&gt;
&lt;p&gt;Then someone would notice they were not working and would replace their battery, but by this time they would be out of sequence numbers and no longer able to send any new messages to the network.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are debugging the power consumption (and correct power-sensing on boot) separately, but to avoid this issue have also added this line to nrf_mesh_config_app.h:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NETWORK_SEQNUM_FLASH_BLOCK_SIZE 512&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/248363?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 08:08:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b807740-cda0-464c-a2fc-8b6d4075d2b7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sirio,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry I was dragged into another project.&amp;nbsp;&lt;br /&gt;I didn&amp;#39;t know that your device reboot frequently. Could you describe the behaviour of your LPN node ? How often it reboot, what make it wake up ? What kind of sleep did you put it in ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The LPN node is not supposed to reboot, it supposed to sleep (System ON CPU Idle) not rebooting on every waking up. The reason why the sequence number jumping was that we don&amp;#39;t store the sequence number into flash after each increment instead we store the block it&amp;#39;s in. The next reboot we will jump to the next block. Rebooting will cause the sequence number jumping from block to block.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding the friend node, we don&amp;#39;t provide a friend node project in SDK v3.2 only a hex file, did you use that hex file ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/248191?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 12:58:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20fc9a98-edcf-46a2-abbe-8ea231dde22c</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;Please, I am onsite trying to fix these devices that are deployed in production.&lt;/p&gt;
&lt;p&gt;Any help you ca give urgently is much appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/248013?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 18:56:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18ea0607-c1c8-48a2-8c1b-3aa6cd94f775</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;Seems I have found the source of the error: on device reboot, &amp;#39;seqnum&amp;#39; is being set to the previously saved &amp;#39;seqnum_max_available&amp;#39; and &amp;#39;seqnum_max_available&amp;#39; makes a large jump.&lt;/p&gt;
&lt;p&gt;See log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;t:          0&amp;gt;, main.c, 1051, ----- LPN Remote -----
&amp;lt;t:      20049&amp;gt;, mesh_app_utils.c,   65, Device UUID (raw): 6F2F379A0492F34C85E49D124B747639
&amp;lt;t:      20054&amp;gt;, mesh_app_utils.c,   70, Device UUID : 9A372F6F-9204-4CF3-85E4-9D124B747639
&amp;lt;t:    8169629&amp;gt;, ble_softdevice_support.c,  104, Successfully updated connection parameters
&amp;lt;t:    8679374&amp;gt;, main.c,  771, NRF_MESH_EVT_IV_UPDATE_NOTIFICATION
&amp;lt;t:    8702932&amp;gt;, main.c,  735, NRF_MESH_EVT_DISABLED
&amp;lt;t:    8703515&amp;gt;, main.c,  859, Successfully provisioned
&amp;lt;t:    8703521&amp;gt;, main.c,  873, Node Address: 0x36F2
&amp;lt;t:    8810658&amp;gt;, ble_softdevice_support.c,  104, Successfully updated connection parameters
&amp;lt;t:    9116799&amp;gt;, net_state.c,  561, seqnum: 0; seqnum_max_available 8192; iv_index 9
&amp;lt;t:    9132528&amp;gt;, net_state.c,  561, seqnum: 1; seqnum_max_available 8192; iv_index 9
&amp;lt;t:    9203315&amp;gt;, net_state.c,  561, seqnum: 2; seqnum_max_available 8192; iv_index 9
&amp;lt;t:    9203336&amp;gt;, net_state.c,  561, seqnum: 3; seqnum_max_available 8192; iv_index 9
&amp;lt;t:    9203347&amp;gt;, net_state.c,  561, seqnum: 4; seqnum_max_available 8192; iv_index 9
&amp;lt;t:    9203357&amp;gt;, net_state.c,  561, seqnum: 5; seqnum_max_available 8192; iv_index 9
&amp;lt;t:    9203367&amp;gt;, net_state.c,  561, seqnum: 6; seqnum_max_available 8192; iv_index 9
&amp;lt;t:    9203384&amp;gt;, net_state.c,  561, seqnum: 7; seqnum_max_available 8192; iv_index 9
&amp;lt;t:    9203397&amp;gt;, net_state.c,  561, seqnum: 8; seqnum_max_available 8192; iv_index 9
&amp;lt;t:    9203411&amp;gt;, net_state.c,  561, seqnum: 9; seqnum_max_available 8192; iv_index 9
&amp;lt;t:    9462835&amp;gt;, net_state.c,  561, seqnum: 10; seqnum_max_available 8192; iv_index 9
&amp;lt;t:    9722376&amp;gt;, net_state.c,  561, seqnum: 11; seqnum_max_available 8192; iv_index 9
&amp;lt;t:    9722397&amp;gt;, config_server.c,  629, dsm_appkey_add(appkey_handle:0 appkey_index:0)
&amp;lt;t:    9722402&amp;gt;, net_state.c,  561, seqnum: 12; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   11358151&amp;gt;, config_server.c, 2451, Access  Info:
		element_index=0		model_id = 2-788		model_handle=27
&amp;lt;t:   11358159&amp;gt;, net_state.c,  561, seqnum: 13; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   11625540&amp;gt;, config_server.c, 2451, Access  Info:
		element_index=1		model_id = 1001-FFFF		model_handle=4
&amp;lt;t:   11625548&amp;gt;, net_state.c,  561, seqnum: 14; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   11885064&amp;gt;, config_server.c, 2451, Access  Info:
		element_index=2		model_id = 1311-FFFF		model_handle=10
&amp;lt;t:   11885072&amp;gt;, net_state.c,  561, seqnum: 15; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   12144588&amp;gt;, config_server.c, 2451, Access  Info:
		element_index=3		model_id = 1311-FFFF		model_handle=14
&amp;lt;t:   12144596&amp;gt;, net_state.c,  561, seqnum: 16; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   12396249&amp;gt;, config_server.c, 2451, Access  Info:
		element_index=4		model_id = 1001-FFFF		model_handle=16
&amp;lt;t:   12396257&amp;gt;, net_state.c,  561, seqnum: 17; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   12655786&amp;gt;, net_state.c,  561, seqnum: 18; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   12655804&amp;gt;, net_state.c,  561, seqnum: 19; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   12655818&amp;gt;, net_state.c,  561, seqnum: 20; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   12907446&amp;gt;, net_state.c,  561, seqnum: 21; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   12907464&amp;gt;, net_state.c,  561, seqnum: 22; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   12907477&amp;gt;, net_state.c,  561, seqnum: 23; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13166970&amp;gt;, net_state.c,  561, seqnum: 24; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13166988&amp;gt;, net_state.c,  561, seqnum: 25; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13167001&amp;gt;, net_state.c,  561, seqnum: 26; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13418630&amp;gt;, net_state.c,  561, seqnum: 27; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13418648&amp;gt;, net_state.c,  561, seqnum: 28; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13418661&amp;gt;, net_state.c,  561, seqnum: 29; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13678146&amp;gt;, net_state.c,  561, seqnum: 30; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13693877&amp;gt;, net_state.c,  561, seqnum: 31; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13709606&amp;gt;, net_state.c,  561, seqnum: 32; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13725335&amp;gt;, net_state.c,  561, seqnum: 33; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13741064&amp;gt;, net_state.c,  561, seqnum: 34; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13756793&amp;gt;, net_state.c,  561, seqnum: 35; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13772522&amp;gt;, net_state.c,  561, seqnum: 36; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13788251&amp;gt;, net_state.c,  561, seqnum: 37; seqnum_max_available 8192; iv_index 9
&amp;lt;t:   13866887&amp;gt;, net_state.c,  561, seqnum: 38; seqnum_max_available 8192; iv_index 9

##
# device rebooted
##

&amp;lt;t:          0&amp;gt;, main.c, 1051, ----- LPN Remote -----
&amp;lt;t:      15363&amp;gt;, mesh_app_utils.c,   65, Device UUID (raw): 6F2F379A0492F34C85E49D124B747639
&amp;lt;t:      15368&amp;gt;, mesh_app_utils.c,   70, Device UUID : 9A372F6F-9204-4CF3-85E4-9D124B747639
&amp;lt;t:   15748373&amp;gt;, net_state.c,  561, seqnum: 8192; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   15752238&amp;gt;, main.c,  672, Friendship: received offer from 0x6AB6
&amp;lt;t:   15752253&amp;gt;, net_state.c,  561, seqnum: 8193; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   15755604&amp;gt;, main.c,  693, Friendship: established with 0x6AB6
&amp;lt;t:   15755612&amp;gt;, net_state.c,  561, seqnum: 8194; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   16086715&amp;gt;, net_state.c,  561, seqnum: 8195; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   16090182&amp;gt;, net_state.c,  561, seqnum: 8196; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   16421262&amp;gt;, net_state.c,  561, seqnum: 8197; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   16424729&amp;gt;, net_state.c,  561, seqnum: 8198; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   16428195&amp;gt;, net_state.c,  561, seqnum: 8199; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   16759275&amp;gt;, net_state.c,  561, seqnum: 8200; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   16762741&amp;gt;, net_state.c,  561, seqnum: 8201; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   16766207&amp;gt;, net_state.c,  561, seqnum: 8202; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   16769673&amp;gt;, net_state.c,  561, seqnum: 8203; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   16773139&amp;gt;, net_state.c,  561, seqnum: 8204; seqnum_max_available 16384; iv_index 9
&amp;lt;t:   16776605&amp;gt;, net_state.c,  561, seqnum: 8205; seqnum_max_available 16384; iv_index 9
&amp;lt;t:       2855&amp;gt;, main.c,  718, Friendship: terminated with 0x6AB6.
	Reason: NRF_MESH_EVT_FRIENDSHIP_TERMINATED_REASON_NO_REPLY

##
# device rebooted
##

&amp;lt;t:          0&amp;gt;, main.c, 1051, ----- LPN Remote -----
&amp;lt;t:       9310&amp;gt;, mesh_app_utils.c,   65, Device UUID (raw): 6F2F379A0492F34C85E49D124B747639
&amp;lt;t:       9314&amp;gt;, mesh_app_utils.c,   70, Device UUID : 9A372F6F-9204-4CF3-85E4-9D124B747639
&amp;lt;t:     104547&amp;gt;, net_state.c,  561, seqnum: 16384; seqnum_max_available 24576; iv_index 9
&amp;lt;t:     104561&amp;gt;, client.c,  243, Sending msg: ONOFF SET 1
&amp;lt;t:     104566&amp;gt;, net_state.c,  561, seqnum: 16385; seqnum_max_available 24576; iv_index 9
&amp;lt;t:     104580&amp;gt;, net_state.c,  561, seqnum: 16386; seqnum_max_available 24576; iv_index 9
&amp;lt;t:     104593&amp;gt;, net_state.c,  561, seqnum: 16387; seqnum_max_available 24576; iv_index 9
&amp;lt;t:     107882&amp;gt;, net_state.c,  561, seqnum: 16388; seqnum_max_available 24576; iv_index 9
&amp;lt;t:     110055&amp;gt;, main.c,  672, Friendship: received offer from 0x6B68
&amp;lt;t:     110069&amp;gt;, net_state.c,  561, seqnum: 16389; seqnum_max_available 24576; iv_index 9
&amp;lt;t:     111158&amp;gt;, net_state.c,  561, seqnum: 16390; seqnum_max_available 24576; iv_index 9
&amp;lt;t:     113417&amp;gt;, main.c,  555, Fstate: fast-polling every 10 sec
&amp;lt;t:     113420&amp;gt;, main.c,  693, Friendship: established with 0x6B68
&amp;lt;t:     114436&amp;gt;, net_state.c,  561, seqnum: 16391; seqnum_max_available 24576; iv_index 9
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/247997?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 17:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afd9959d-8d99-48e2-b430-8a951e5c5e5b</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;I added a print to get the IV index, I&amp;#39;m seeing (on a different device with the same error):&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;t:     153301&amp;gt;, net_state.c,  592, seqnum: 16777216; seqnum_max_available 16777216; iv_index 8
&amp;lt;t:     153306&amp;gt;, main.c,  456, initiate friendship
&amp;lt;t:     153309&amp;gt;, client.c,  243, Sending msg: ONOFF SET 0
&amp;lt;t:     153314&amp;gt;, net_state.c,  592, seqnum: 16777216; seqnum_max_available 16777216; iv_index 8
&amp;lt;t:     153319&amp;gt;, client.c,  221, NRF_ERROR_FORBIDDEN
&amp;lt;t:     189352&amp;gt;, net_state.c,  592, seqnum: 16777216; seqnum_max_available 16777216; iv_index 8
&amp;lt;t:     225403&amp;gt;, net_state.c,  592, seqnum: 16777216; seqnum_max_available 16777216; iv_index 8
&amp;lt;t:     261454&amp;gt;, net_state.c,  592, seqnum: 16777216; seqnum_max_available 16777216; iv_index 8
&amp;lt;t:     297505&amp;gt;, net_state.c,  592, seqnum: 16777216; seqnum_max_available 16777216; iv_index 8
&amp;lt;t:     333556&amp;gt;, net_state.c,  592, seqnum: 16777216; seqnum_max_available 16777216; iv_index 8
&amp;lt;t:     369606&amp;gt;, main.c,  710, Friendship: request timed out&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The network is currently on IV 9&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/247990?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 16:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9686bd17-daf3-4d0d-9cd8-a5f59853b378</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;Yes, looks like 16777216 is NETWORK_SEQNUM_MAX+1.&lt;/p&gt;
&lt;p&gt;These LPN nodes are part of a large network with about 1600 nodes.&lt;/p&gt;
&lt;p&gt;All friends are running Mesh SDK v3.2.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/247973?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 15:31:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cd35848-c1ee-4972-a3cd-241a1dad03b6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Seems that the sequence number reached the maximum without IV index update.&amp;nbsp;&lt;br /&gt;Could you give information about the friend node you use ? Which firmware on it ? Is it Nordic&amp;#39;s device ? Which SDK ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/247950?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 14:59:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb8ab05e-3521-4079-b5fe-b804a9f77e56</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;I got access to one of the devices on site.&lt;/p&gt;
&lt;p&gt;This is what we&amp;#39;re seeing with that debug print:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;t:     140704&amp;gt;, net_state.c,  592, m_net_state.seqnum: 16777216; seqnum_max_available 16777216
&amp;lt;t:     140709&amp;gt;, main.c,  456, initiate friendship
&amp;lt;t:     140713&amp;gt;, client.c,  243, Sending msg: ONOFF SET 0
&amp;lt;t:     140717&amp;gt;, net_state.c,  592, m_net_state.seqnum: 16777216; seqnum_max_available 16777216
&amp;lt;t:     140723&amp;gt;, client.c,  221, NRF_ERROR_FORBIDDEN
&amp;lt;t:     176755&amp;gt;, net_state.c,  592, m_net_state.seqnum: 16777216; seqnum_max_available 16777216
&amp;lt;t:     212807&amp;gt;, net_state.c,  592, m_net_state.seqnum: 16777216; seqnum_max_available 16777216
&amp;lt;t:     248859&amp;gt;, net_state.c,  592, m_net_state.seqnum: 16777216; seqnum_max_available 16777216
&amp;lt;t:     284911&amp;gt;, net_state.c,  592, m_net_state.seqnum: 16777216; seqnum_max_available 16777216
&amp;lt;t:     320963&amp;gt;, net_state.c,  592, m_net_state.seqnum: 16777216; seqnum_max_available 16777216
&amp;lt;t:     357014&amp;gt;, main.c,  710, Friendship: request timed out&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This seems to be&lt;/p&gt;
&lt;p&gt;1x seqnum error trying to send ONOFF SET 0&lt;/p&gt;
&lt;p&gt;5x seqnum errors trying to establish friendship&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/247331?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 12:11:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f57e0a8b-5613-465c-ac85-b71a59b93b79</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;Next time I have physical access to the site I will be able to push a --sectorerase and get you that debug print.&lt;/p&gt;
&lt;p&gt;No success reproducing in the lab - have you been able to track down on your side how this could be happening?&lt;/p&gt;
&lt;p&gt;The devices are already on v3.2.0 so if we can find a fix for v3.2.0 then we would be able to --sectorerase the devices instead of re-flashing and re-provisioning and re-programming.&lt;/p&gt;
&lt;p&gt;For reference, these are the full details of the build:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Configuring CMake for nRF5 SDK for Bluetooth Mesh 3.2.0
-- SDK: nRF5_SDK_15.3.0_59ac345
-- Platform: nrf52832_xxAA
-- Arch: cortex-m4f
-- SoftDevice: s132_6.1.1
-- Board: pca10040
-- The C compiler identification is GNU 8.3.1&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/247243?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 08:46:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a70334ad-fad5-4aa8-859a-b53b55d4674d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sirio,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We would need to get the log from the defected product to see what exact the issue was. Could you try printing out the sequence number as suggested earlier ?&amp;nbsp;&lt;br /&gt;Have you managed to reproduce the issue in the lab ? Maybe you need to push it to send data quicker.&amp;nbsp;&lt;br /&gt;According to the migration guide &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.1.0/md_MIGRATION_GUIDE.html?cp=7_2_1_4"&gt;here&lt;/a&gt;, even moving from v3.1 to v3.2 you would need to do reprovisioning. So maybe it&amp;#39;s better to find the solution to fix it on v3.1&amp;nbsp;&lt;br /&gt;Could you give more information about the friend node you used ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/247170?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 19:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a01c382-9802-4663-a174-82d7c2eae273</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;Hello :)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, looks like moving this app to SDK v4.1.0 is going to entail flashing, re-provisioning and re-configuring several *hundred* devices already deployed in the field.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If a fix can be found with v3.2.0 then the devices can be flashed with --sectorerase and maintain their provisioning data and config.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please advise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/246611?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 22:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9222d05-a0d3-4e61-bab4-7bcb37fcd0b8</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;FYI moving to SDK v4.1.0 is proving challenging; see this issue that came up as a result: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60668/sdk-for-meshv-v4-1-0-access_model_publish-triggers-an-assert-on-bearer_event_in_correct_irq_priority-but-same-code-is-in-prod-on-sdk-for-meshv-v3-2-0"&gt;devzone.nordicsemi.com/.../sdk-for-meshv-v4-1-0-access_model_publish-triggers-an-assert-on-bearer_event_in_correct_irq_priority-but-same-code-is-in-prod-on-sdk-for-meshv-v3-2-0&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/245846?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 13:13:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74f44bdb-f2de-43ac-9a70-5e8e1ce71c89</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We will investigate moving to SDK v4.10.&lt;/p&gt;
&lt;p&gt;In the meantime, the relevant defines for LPN are:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define MESH_FEATURE_LPN_ENABLED 1

#define POLL_TIMEOUT_MS (MIN_TO_MS(24)) /**&amp;lt; Upper limit for two subsequent Friend Polls */

#define RECEIVE_DELAY_MS (100) /**&amp;lt; Time between LPN sending and listening for a response */

#define FRIEND_REQUEST_TIMEOUT_MS \
    (MESH_LPN_FRIEND_REQUEST_TIMEOUT_MAX_MS) /**&amp;lt; Max time to scan for incoming Friend Offers */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On the friend nodes, app_config.h looks like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/* all other parameters are left to SDK default */
#define MESH_FEATURE_FRIEND_ENABLED 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Next time I have one these devices on hand (they are installed on-site) I will push an update with the suggested debug print of `seqnum`.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/245828?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 11:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cc96837-c269-4019-a0f4-052f206a6054</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sirio,&lt;/p&gt;
&lt;p&gt;We had some issues with the sequence number and the IV update (related to the timer to trigger IV Update to avoid the sequence number to overrun)&lt;br /&gt;&amp;nbsp;They are resolved in our newer SDK (from v4.0). So our suggestion is to migrate to the new SDK to make sure the issue is solved.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If it&amp;#39;s not possible to move to SDK v4.x, we may need to debug and find the root cause on your device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to print a log of the sequence number (&lt;span&gt;m_net_state.&lt;/span&gt;&lt;span&gt;seqnum&lt;/span&gt;&lt;span&gt;&amp;nbsp;)&amp;nbsp;&lt;/span&gt;at this location:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/nRF5-SDK-for-Mesh/blob/08c60f6d8766bdb83bb108ec3fbd24d758689235/mesh/core/src/net_state.c#L584"&gt;https://github.com/NordicSemiconductor/nRF5-SDK-for-Mesh/blob/08c60f6d8766bdb83bb108ec3fbd24d758689235/mesh/core/src/net_state.c#L584&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We also need to check the friend nodes if they was operating normally when the issue occurs. How many friend nodes were around the defected LPN node ? Can these friend nodes establish connection with a normal node when the issue happens ?&amp;nbsp;&lt;br /&gt;Which Friend node firmware was running ? Please provide more information about the friendship configuration (&lt;span&gt;POLL_TIMEOUT_MS,&amp;nbsp;FRIEND_REQUEST_TIMEOUT_MS, etc)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/245238?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 12:45:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bab9c32d-5670-4b2c-81cb-137a2270f170</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;Thank you for looking into this :)&lt;/p&gt;
&lt;p&gt;I believe we are sleeping, not turning off - the main loop looks like:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    for (;;)
    {
        sd_app_evt_wait();
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;General operation:&lt;/p&gt;
&lt;p&gt;- woken from sleep by a GPIOTE event on a button press&lt;/p&gt;
&lt;p&gt;- check friendship status, if not in friendship then initiate new friendship&lt;/p&gt;
&lt;p&gt;- send UNACK messages from various client models&lt;/p&gt;
&lt;p&gt;- hit sd_app_evt_wait() and go back to sleep (about 3.5&amp;micro;a power consumption)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: access_model_publish() returns NRF_ERROR_FORBIDDEN in LPN and all friendships time out</title><link>https://devzone.nordicsemi.com/thread/245015?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 13:33:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d504ebc1-44a7-474b-b055-5cfe87a96094</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sirio,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have forwarded the issue to our mesh team and is waiting for their feedback.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you give some more information about how the LPN node work ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;When it enters sleep mode, would it go to System Off mode or it would enter System ON Idle (only sleep no reset) ?&amp;nbsp;&lt;br /&gt;NRF_ERROR_FORBIDDEN from&amp;nbsp;&lt;span&gt;access_model_publish() telling that it could be an issue with the sequence number.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>