<?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>What is the init Sequence Number for second, third .... device?(NRF Mesh Android)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41986/what-is-the-init-sequence-number-for-second-third-device-nrf-mesh-android</link><description>In NRF Mesh Android, when we set the init value for sequence number (SequenceNumber.java), it will check the sequence value stored in SharedPreferences and return 0 if SharedPreferences is null, otherwise, it will return the value stored in the SharedPreferences</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Jan 2019 10:03:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41986/what-is-the-init-sequence-number-for-second-third-device-nrf-mesh-android" /><item><title>RE: What is the init Sequence Number for second, third .... device?(NRF Mesh Android)</title><link>https://devzone.nordicsemi.com/thread/163689?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 10:03:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca87e488-d5c9-46c3-8c4b-6aae5d2bcf49</guid><dc:creator>Roshan Rajaratnam</dc:creator><description>&lt;p&gt;@HaiDang To answer your question, yes it starts at 0 and the sequence number is bound to the address and is not dependent of the node you send to. For example we send a message to node1 with sequece number 1 and when sending a message to node2 it should have the sequence number 2 because its bound to the address of the node that is sending the message. According to the bluetooth mesh specification section 3.8.3 sequence number its a 24-bit value and once it reaches the maximum value of 0xFFFFFF it should update the IV Index using the IV Update procedure. This is not something that is implemented in the library so far. So basically when the Sequence number reaches the maximum value and if the iv index is not updated you will not be able to control the devices in the network anymore.&lt;/p&gt;
&lt;p&gt;Also I recommend using the latest version from the dev branch on &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library/tree/dev"&gt;github&lt;/a&gt;&amp;nbsp;repo of the Android Mesh Library as there have been important improvements/changes made that deprecates the usage of SharedPreferences etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this answers your question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>