<?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>iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66809/ios-mesh-app-discarding-packets-due-to-sequence-number</link><description>Hi, 
 We have built an iOS app with the iOS nRF Mesh Library ( https://github.com/NordicSemiconductor/IOS-nRF-Mesh-Library ) that collects data from all the sensors in the mesh network through a proxy node connected to an iPad. 
 We have a problem with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Nov 2020 16:01:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66809/ios-mesh-app-discarding-packets-due-to-sequence-number" /><item><title>RE: iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/thread/280960?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 16:01:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2063751-fc66-49a4-8355-33bb64aeed51</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;You don&amp;#39;t need to modify the library. The queue can be given as a parameter in Manager&amp;#39;s initializer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/thread/279797?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 16:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8404ca3d-630c-4b6b-860a-f468e5c42f6f</guid><dc:creator>ftjandra</dc:creator><description>&lt;p&gt;So it looks like all I need to do is change that line to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//queue: DispatchQueue = DispatchQueue.global(qos: .background),
queue: DispatchQueue = DispatchQueue(label: &amp;quot;serial&amp;quot;),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/thread/279791?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 15:43:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bffdc59d-3d22-4a9f-9f3d-6e9925bc1061</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;&lt;a href="https://www.avanderlee.com/swift/concurrent-serial-dispatchqueue/"&gt;www.avanderlee.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/thread/279789?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 15:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39f738ac-8b04-4bdd-8631-39ca1c5c45cb</guid><dc:creator>ftjandra</dc:creator><description>&lt;p&gt;For some reason I thought that DispatchQueues were serial by default. How would I modify this to make it a serial queue?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/thread/279788?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 15:32:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c50659d-b6d3-4c3e-8680-46f41a81bdc5</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/IOS-nRF-Mesh-Library/blob/0861ceba2cb13fa0e60960cd3a818efb5b852803/nRFMeshProvision/Classes/MeshNetworkManager.swift#L174"&gt;https://github.com/NordicSemiconductor/IOS-nRF-Mesh-Library/blob/0861ceba2cb13fa0e60960cd3a818efb5b852803/nRFMeshProvision/Classes/MeshNetworkManager.swift#L174&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s still concurrent queue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/thread/279787?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 15:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95683432-f066-49a4-96d9-7934d3ac47d2</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;If it indeed uses serial queue, that wasn&amp;#39;t intended. I&amp;#39;ll look into it.. when I&amp;#39;m back from my leave in mid January.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/thread/279786?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 15:27:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0da196af-a27c-4894-9eb0-e79107da7a7f</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;This part hasn&amp;#39;t changed. You may safely change to serial queue and should see no side effects. All delays are negletable.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Btw, was it difficult for you to migrate? Do you consider 3.0-beta1 API better, in spite of new features?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/thread/279783?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 15:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c816bd06-0c7e-43f6-91fd-53d1566afcc2</guid><dc:creator>ftjandra</dc:creator><description>&lt;p&gt;Ok, we finally migrated to 3.0-beta1 and the problem is still there. It looks like 3.0-beta1 is already using serial DispatchQueues for the MeshNetworkManager, correct?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/thread/273897?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 04:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc2f659b-f67e-4839-b800-aeb536560fba</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;There should be no drawbacks, at least I didn&amp;#39;t observe any. It&amp;#39;s Dispatch Queue, so should be stable and reliable.&lt;/p&gt;
&lt;p&gt;Yes, 3.0 requires some API changes, but they aren&amp;#39;t that big. Check out the latest PRs, where is all described. However, only migrating to 3.0 doesn&amp;#39;t guarantee that this weird issue you have will be solved. Nevertheless, I recommend as it&amp;#39;s better.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/thread/273893?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 01:56:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d68d30e-54b6-4ef5-89e4-3fc3415c7b32</guid><dc:creator>ftjandra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We are using 2.2.3. We just tried to use 3.0-beta1, but the app wont build and looks like a lot of things have changed and we will need to do quite a bit of rework. Is there a changelog of the changes?&lt;/p&gt;
&lt;p&gt;What is the drawback of using a serial processing queue? Delays? Drops if the queue gets full?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/thread/273869?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 19:57:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea5d2d9d-53d3-41e3-bde9-2885f51888e2</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What version of the library are you using?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what&amp;#39;s going on, how that numbers can get like that. It is either something with threading or how it get compiled. What else is wrong on the logs is that those messages are segmented and have the same seqZero, so reassemblyInProgress should be true and you should never get log message Discarding... for those messages.&lt;/p&gt;
&lt;p&gt;My recommendations:&lt;/p&gt;
&lt;p&gt;- upgrade lib to 3.0-beta1. This method has been improved in that version and perhaps works better when 2 messages are received very in short interval and processed in 2 threads.&lt;/p&gt;
&lt;p&gt;- or initialize MeshNetworkManager with serial processing queue. By default the global one is used which is concurrent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS mesh app discarding packets due to sequence number</title><link>https://devzone.nordicsemi.com/thread/273752?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 12:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:816cef7e-b651-4105-95c1-91f788611190</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To me it looks like the sequence number is correctly received by the network layer, but that something is wrong in the lower transport layer. I do not however see what, and have reached out to our mobile apps team. I expect to get some feedback within a week.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>