<?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 serial example and thingy52-mesh-provisioning-demo</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35556/mesh-serial-example-and-thingy52-mesh-provisioning-demo</link><description>Hi Nordic experts: 
 I use a device with thingy52-provision-demo firmware(from git-playground), and another device with serial-example to provision the thingy-provision-demo device. 
 
 But I get wrong message at &amp;quot;application keys&amp;quot; step in the infocenter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Jun 2018 03:15:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35556/mesh-serial-example-and-thingy52-mesh-provisioning-demo" /><item><title>RE: mesh serial example and thingy52-mesh-provisioning-demo</title><link>https://devzone.nordicsemi.com/thread/136825?ContentTypeID=1</link><pubDate>Wed, 20 Jun 2018 03:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b31ef47-5073-4c27-9b49-a244a11da2c2</guid><dc:creator>jowei</dc:creator><description>&lt;p&gt;Hi Rick:&lt;/p&gt;
&lt;p&gt;Using &amp;quot;mt.ModelID(0x1000)&amp;quot;&amp;nbsp; instead of &amp;quot;mt.ModelID(0x1000, 0x51)&amp;quot; works!&lt;/p&gt;
&lt;p&gt;PyACI looks like a good tool, I will keep on trying other steps, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh serial example and thingy52-mesh-provisioning-demo</title><link>https://devzone.nordicsemi.com/thread/136824?ContentTypeID=1</link><pubDate>Wed, 20 Jun 2018 02:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:744a8181-69f3-430f-bd6d-6e6c5f8ce5eb</guid><dc:creator>Jui-Chou (Rick) Chung</dc:creator><description>&lt;p&gt;Hello Joseph,&lt;/p&gt;
&lt;p&gt;In our light switch example, we use SimpleOnOFF model which is &amp;quot;vendor specific&amp;quot; model, not a Bluetooth SIG defined model.&lt;/p&gt;
&lt;p&gt;So we need to add a &amp;quot;company ID&amp;quot; to indicate that we are using &amp;quot;Nordic specific model&amp;quot;.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s why we call:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;In  [12]: cc.model_app_bind(db.nodes[0].unicast_address, 0, mt.ModelId(0, 0x59))
2018-03-09 14:53:13,714 - INFO - COM1: Success
2018-03-09 14:53:13,733 - INFO - COM1.ConfigurationClient: Model app bind status: AccessStatus.SUCCESS
2018-03-09 14:53:13,751 - INFO - COM1.ConfigurationClient: Appkey bind 0 to model 00590000 at 0010&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Which &amp;quot;0x59&amp;quot; is the company ID of NordicSemi, and &amp;quot;0&amp;quot; is the model ID for the SimpleOnOff model&lt;/p&gt;
&lt;p&gt;But for &amp;quot;GenericOnOff&amp;quot; model, it is a Bluetooth SIG defined model, so we don&amp;#39;t need to mention its company ID.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let us back to the serial interface API &amp;quot;mt.ModelId()&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;In [14]: mt.ModelId?
Init signature: mt.ModelId(model_id, company_id=None) 
Docstring:      &amp;lt;no docstring&amp;gt; 
File:           c:\nrf_workspace\mesh_workspace\nrf5_sdk_for_mesh_v2.0.0_src\scripts\interactive_pyaci\mesh\types.py 
Type:           type &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The default setting for the company_id in mt.ModelId is &amp;quot;None&amp;quot;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So to bind an AppKey for a &amp;quot;GenericOnOff&amp;quot; server model, we don&amp;#39;t need to fill anything in &amp;quot;company_id&amp;quot;.&lt;/p&gt;
&lt;p&gt;The following command will work:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;cc.model_app_bind(db.nodes[0].unicast_address, 0, mt.ModelId(0x1000))&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hope the upon information can do help :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>