<?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>Problems with Custom model in Mesh App</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39833/problems-with-custom-model-in-mesh-app</link><description>Hello, 
 i am currently trying to add my own model to the Mesh Android App. It should just be a simple sensor model. 
 It already works to have an own Window, where I can send a custom get Command. On the microcontroller side the get command is also received</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Nov 2019 12:59:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39833/problems-with-custom-model-in-mesh-app" /><item><title>RE: Problems with Custom model in Mesh App</title><link>https://devzone.nordicsemi.com/thread/222622?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 12:59:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5863054-eecb-4f1a-a8a2-5d02544c99d6</guid><dc:creator>kc89rst</dc:creator><description>&lt;p&gt;Hello, what is the status regarding this bug, &amp;#39;cos it looks it is not fixed in the current version of the SKD (3.2.0)? Can you provide the patch for fixing this in the SDK, or we have to struggle with ugly hacks?&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: Problems with Custom model in Mesh App</title><link>https://devzone.nordicsemi.com/thread/220546?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 11:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:258ba889-ed3b-473a-96be-0929ba55ff16</guid><dc:creator>Oleh</dc:creator><description>&lt;p&gt;Hello Roshan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;we experience the same with the sdk 3.2.0... was is fixed or postponed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Custom model in Mesh App</title><link>https://devzone.nordicsemi.com/thread/154685?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 13:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb1c6b7c-f1ae-4977-b070-062ff46bc201</guid><dc:creator>Roshan Rajaratnam</dc:creator><description>&lt;p&gt;Well the sequence of the messages may not always be in the correct order when it comes to segmented messages, that&amp;#39;s something the library handles as the messages may be relayed via different nodes. The order is never guaranteed but this is handled in the lower transport layer of the network. Once or if all messages are received successfully it will be reassembled in the correct order and sent to the upper transport layer and the access layer.&lt;/p&gt;
&lt;p&gt;A new ticket would be much appreciated to for a newer question&lt;/p&gt;
&lt;p&gt;And don&amp;#39;t forget to accept the answer if it helps ;)&lt;/p&gt;
&lt;p&gt;Roshan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Custom model in Mesh App</title><link>https://devzone.nordicsemi.com/thread/154661?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 11:14:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40810ad0-06a9-4124-8493-21f42d18d381</guid><dc:creator>julian.demicoli</dc:creator><description>&lt;p&gt;Hi, thank you very much. This could be the reason why the messages arrive in the wrong sequence.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I used a fake Sigmodel opcode to decrease the implementation time just for evaluation of how the app works.&lt;/p&gt;
&lt;p&gt;I have one more question. Is the android app also suitable for receiving messages, which have been published by the microcontroller? For example if I want to connect to a sensor which publishes a signal if the sensor values go to dangerous values. (Or should I open a new ticket for it?)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Julian Demicoli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Custom model in Mesh App</title><link>https://devzone.nordicsemi.com/thread/154659?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 11:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5bb80eb-f589-49ba-b18f-93a487d778f9</guid><dc:creator>Roshan Rajaratnam</dc:creator><description>&lt;p&gt;Hi there is a bug in the mesh sdk causing the vendor model opcodes to be parsed in the wrong endianness. So all messages sent and received will have in big endian instead of little endian. This bug is fixed internally and probably be out in the next mesh release. The Mesh App is using the correct endianness hence its breaking for you. What you may do is to swap your opcode around in the fw and it will work for you. Also if i&amp;#39;m not mistaken, your opcode seems to be wrong according to the spec. All vendor models must have a 3-octet opcode according to page 93 on the mesh profile spec, so the 2 most significant bits are 0b11.&lt;/p&gt;
&lt;p&gt;Anyways like i mentioned this is due to the endianness bug in the mesh sdk as of now. Hope this helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with Custom model in Mesh App</title><link>https://devzone.nordicsemi.com/thread/154654?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 10:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbfd747f-9824-41e6-bf6a-e7c262e3a725</guid><dc:creator>julian.demicoli</dc:creator><description>&lt;p&gt;I actually found the problem. I was wrong on that the access message length. The problem is, that there is a bug in the app itself.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1540550273922v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In this function (located in MeshParserUtils.java) the opCode is returned as a short. Afterwards it is used as a int, so I am having a negative number even if it&amp;#39;s the same in hex in further processing of the opCode.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>