<?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>mesh sequence number reaches FFFFFF</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81119/mesh-sequence-number-reaches-ffffff</link><description>hi Support team, 
 Customer tested mesh SDK4.2, and now had one question: 
 their product is end node, and once button pressed, MCU is waked up and send the message to server.which looks like ----reset and button press. 
 after a long time, find out the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Oct 2021 14:14:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81119/mesh-sequence-number-reaches-ffffff" /><item><title>RE: mesh sequence number reaches FFFFFF</title><link>https://devzone.nordicsemi.com/thread/336527?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 14:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bfcb185-a147-401d-831e-922e283f06ec</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Just remember that with smaller value of&amp;nbsp;&lt;span&gt;NETWORK_SEQNUM_FLASH_BLOCK_SIZE will result in a reduced lifetime for the flash. As mentioned this value shouldn&amp;#39;t be much bigger than a value that you expect to be used up as one approaches the next reset.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sequence number reaches FFFFFF</title><link>https://devzone.nordicsemi.com/thread/336386?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 09:21:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:750a99c1-663a-4eb7-9d2d-491f14f298c0</guid><dc:creator>William.wei</dc:creator><description>&lt;p&gt;sorry Mttrinh,&lt;/p&gt;
&lt;p&gt;i tested it and changed&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;change&amp;nbsp;&lt;span&gt;NETWORK_SEQNUM_FLASH_BLOCK_SIZE&amp;nbsp; to 20,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;and&amp;nbsp; &amp;nbsp; &amp;nbsp; NETWORK_SEQNUM_FLASH_BLOCK_THRESHOLD to 10,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;each time device goes to system off, and wake up, sequence number will be updated. so it will not reach FFFFFF in her lifetime.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;William.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sequence number reaches FFFFFF</title><link>https://devzone.nordicsemi.com/thread/336385?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 09:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e46403c-0571-45eb-8c79-c9609391e02d</guid><dc:creator>Mttrinh</dc:creator><description>[quote user="William.wei"]Currently, customer product would go to system off mode to save power after sending the message, which takes about 300ms（button press, wake cpu, sending message, system off）, for suggestion 2,3 i think it is impossible to finish this mission.[/quote]
&lt;p&gt;From this it seems like the customer want to use the LPN feature instead. We do have an example &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_examples_lpn_README.html?cp=8_2_3_9" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;. Also, have a look at&amp;nbsp;&lt;a title="Low Power node feature" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_modules_lpn_concept.html?cp=8_2_2_4_2"&gt;Low Power node feature&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a title="Integrating Low Power node feature" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_modules_lpn_integrating.html?cp=8_2_2_4_2_0"&gt;Integrating Low Power node feature&lt;/a&gt;.&lt;/p&gt;
[quote user="William.wei"]by the way, just want to confirm, that mesh parameter storage is using fds, right[/quote]
&lt;p&gt;No, Mesh uses their own &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_modules_flash_manager.html?cp=8_2_2_4_1" rel="noopener noreferrer" target="_blank"&gt;Flash Manager&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sequence number reaches FFFFFF</title><link>https://devzone.nordicsemi.com/thread/336359?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 08:39:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bfd0312-7b4c-4286-a770-a32cd78a6cec</guid><dc:creator>Mttrinh</dc:creator><description>[quote user="William.wei"]or i should change&amp;nbsp;&lt;span&gt;NETWORK_SEQNUM_FLASH_BLOCK_SIZE&amp;nbsp; to 3, since the message will be sent by three times as default, anyway, product goes to system off mode, and will reset next time.&lt;/span&gt;[/quote]
&lt;p&gt;NETWORK_SEQNUM_FLASH_BLOCK_SIZE defines the number of sequence numbers between every write to flash. In case of power failure, the device will resume transmissions with the first sequence number in the next block. A larger block size means that the device can do fewer resets between every IV Update, while a smaller will result in a reduced lifetime for the flash hardware. This depends on how often your device resets. They could for example try to decrease this value to&amp;nbsp;&lt;span&gt;512.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The test mode is defined in the specification only for the purpose of executing the qualification tests, it is not defined meant to be used for usual use cases.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sequence number reaches FFFFFF</title><link>https://devzone.nordicsemi.com/thread/336273?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 15:20:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1340647-ce5b-40b8-8ab7-ff0bb00a57cb</guid><dc:creator>William.wei</dc:creator><description>&lt;p&gt;Thanks Mttrinh，&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Currently, customer product would go to system off mode to save power after sending the message, which takes about 300ms（button press, wake cpu, sending message, system off）, for suggestion 2,3 i think it is impossible to finish this mission.&lt;/p&gt;
&lt;p&gt;for suggestion 1,i think it is useless.&lt;/p&gt;
&lt;p&gt;for suggestions 4, any risks of this action? for me this would be the best solution for this product. i think this will also increase the flash usage, that would more than 100000 times flash erase, correct?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;or i should change&amp;nbsp;&lt;span&gt;NETWORK_SEQNUM_FLASH_BLOCK_SIZE&amp;nbsp; to 20,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;and&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NETWORK_SEQNUM_FLASH_BLOCK_THRESHOLD to 10,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;,anyway, product goes to system off mode, and will reset next time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;by the way, just want to confirm, that mesh parameter storage is using fds, right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;William.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sequence number reaches FFFFFF</title><link>https://devzone.nordicsemi.com/thread/336243?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 13:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea7764c7-f770-4131-859c-a4d899eecb08</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the issue above they are seeing a sequence number exhaustion.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You&amp;nbsp;can try one or more of the following:&lt;/p&gt;
&lt;p&gt;Decrease&amp;nbsp;&lt;span&gt;NETWORK_SEQNUM_FLASH_BLOCK_SIZE (this will increase the use of flash, but low or no effect if it is frequent resets. This shouldn&amp;#39;t be much bigger than a value that you expect to be used up as one approaches the next reset)&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Decrease&amp;nbsp;IV_UPDATE_TIMEOUT_PERIODIC_SAVE_MINUTES(This will increase the use of flash.It should be lower than expected uptime between resets).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Decrease&amp;nbsp;NETWORK_MIN_IV_RECOVERY_INTERVAL_MINUTES&amp;nbsp;(You won&amp;#39;t be able to qualify as this will break the specification).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Turn on test mode so you can do IV Update whenever (You won&amp;#39;t be able to qualify as this will break the specification).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also, take a look at this &lt;a href="https://devzone.nordicsemi.com/support-private/support/242849" rel="noopener noreferrer" target="_blank"&gt;thread&lt;/a&gt;&amp;nbsp;for more info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>