<?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 SDK add SIG model</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28893/mesh-sdk-add-sig-model</link><description>I added a SIG general onoff model by modifying nordic mesh SDK example project &amp;#39;example/light_switch&amp;#39;, just modified model ID as below: 
 client: 
 #define SIMPLE_ON_OFF_CLIENT_MODEL_ID (0x1001)
 
 server: 
 #define SIMPLE_ON_OFF_SERVER_MODEL_ID</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Oct 2018 07:36:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28893/mesh-sdk-add-sig-model" /><item><title>RE: mesh SDK add SIG model</title><link>https://devzone.nordicsemi.com/thread/151347?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 07:36:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:357494fa-9d7f-48b3-a3d3-b8b8908bd3da</guid><dc:creator>luciom</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/rickchung1082"&gt;Jui-Chou (Rick) Chung&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;As I told you, I missed something.&lt;/p&gt;
&lt;p&gt;I was looking in the models specific paragraphs.&lt;/p&gt;
&lt;p&gt;Thank you and sorry for the obvious question. It happens.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh SDK add SIG model</title><link>https://devzone.nordicsemi.com/thread/151344?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 07:24:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef8c1957-3d20-43f6-9dc5-5213cc7b0e88</guid><dc:creator>Jui-Chou (Rick) Chung</dc:creator><description>&lt;p&gt;Hello Luciom,&lt;/p&gt;
&lt;p&gt;Please check p. 298 in the &amp;quot;Model specification 1.0&amp;quot;, there&amp;#39;s a section &amp;quot;7.1 Messages summary&amp;quot; which contains all the opcodes.&lt;/p&gt;
&lt;p&gt;Hope this is what you are looking for.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh SDK add SIG model</title><link>https://devzone.nordicsemi.com/thread/151342?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 07:19:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:045ea2d1-a404-4320-9eb3-6837eede4ab8</guid><dc:creator>luciom</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/rickchung1082"&gt;Jui-Chou (Rick) Chung&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Of course I am working on the basis of the document you mentioned, but I do not find references to opcodes.&lt;/p&gt;
&lt;p&gt;Maybe something escapes me.&lt;/p&gt;
&lt;p&gt;I asked this question that may seem obvious for this reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh SDK add SIG model</title><link>https://devzone.nordicsemi.com/thread/151315?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 02:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29e1ddc6-1f5e-43a8-acb4-20872249e2e9</guid><dc:creator>Jui-Chou (Rick) Chung</dc:creator><description>&lt;p&gt;Hello Luciom,&lt;/p&gt;
&lt;p&gt;There are three specifications related to the Bluetooth mesh, and I would like to suggest you check the &amp;quot;Model specification&amp;quot; which shows in the &lt;a href="https://www.bluetooth.com/specifications/mesh-specifications"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh SDK add SIG model</title><link>https://devzone.nordicsemi.com/thread/151284?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 15:47:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94714e12-0e27-4a18-89e9-d20bc6780a23</guid><dc:creator>luciom</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/rickchung1082"&gt;Jui-Chou (Rick) Chung&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m working with ble mesh sdk 2.2.0 and I need to add more SIG models other than the three included by nordic.&lt;/p&gt;
&lt;p&gt;The problem is that I cannot find, on the bluetooth sig docs, the list of opcodes like the on-off example you listed above.&lt;/p&gt;
&lt;p&gt;Can you please help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh SDK add SIG model</title><link>https://devzone.nordicsemi.com/thread/114354?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 10:26:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30b8bd20-c11b-47bf-ab71-845b458a9d25</guid><dc:creator>Ricky</dc:creator><description>&lt;p&gt;Yes, it is this problem. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh SDK add SIG model</title><link>https://devzone.nordicsemi.com/thread/114353?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 09:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d38452a1-5212-422f-b614-8b14a134b074</guid><dc:creator>Jui-Chou (Rick) Chung</dc:creator><description>&lt;p&gt;Hello Ricky,&lt;/p&gt;
&lt;p&gt;If you only modified the model ID and also the company ID, the server will crash when running &amp;quot;simple_on_off_server_init()&amp;quot;.&lt;/p&gt;
&lt;p&gt;Since in the &amp;quot;simple_on_off_server_init()&amp;quot;, the API &amp;quot;access_model_add()&amp;quot; is called.
Inside the &amp;quot;access_model_add()&amp;quot;, the opcode format will also be checked.&lt;/p&gt;
&lt;p&gt;Since you try to use the &amp;quot;generic on/off mode&amp;quot;, the opcode length should be two bytes.&lt;/p&gt;
&lt;p&gt;The detail can be found in Mesh specification v1.0, 3.7.3.1, page 93&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/opcode_5F00_format.jpg" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;So I would like to suggest you modified the opcode in simple_on_off_common.h like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SIMPLE_ON_OFF_OPCODE_SET = 0x8202,            /**&amp;lt; Generic OnOff Set. */
SIMPLE_ON_OFF_OPCODE_GET = 0x8201,            /**&amp;lt; Generic OnOff Get. */
SIMPLE_ON_OFF_OPCODE_SET_UNRELIABLE = 0x8203, /**&amp;lt; Generic OnOff Set Unreliable. */
SIMPLE_ON_OFF_OPCODE_STATUS = 0x8204          /**&amp;lt; Generic OnOff Status. */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And the server and client should work correctly.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Rick&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>