<?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>include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36229/include-mesh-serial-device-into-the-light-switch-mesh</link><description>Hello, I want to include Mesh Serial Example into the Mesh Light Switch example. 
 The aim is to allow the serial device to listen to the mesh messages. 
 What is the best way to do this ? Do i need to write a new Model ? 
 My idea was just to extend</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Aug 2018 14:13:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36229/include-mesh-serial-device-into-the-light-switch-mesh" /><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/143245?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 14:13:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61da7972-ee89-465d-91a5-45128873199f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Correct, you still need to build the list of the neighbors of a node. I don&amp;#39;t think there is a way to build network topology with just the heartbeat.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will be on vacation for 3 weeks. One of my coworker will continue assisting you on the other case.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/143159?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 08:45:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d538ae82-62c1-4454-8872-4fa3cb7a6511</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;you mean I should just&amp;nbsp; replace beacons by the heartbeat messages but I will steel need to create a neighbor list in each node and send it to the pc-client right ? Because if the the number of hops = InitTTL - RxTTL +1&amp;nbsp; is the same it does not mean that they are neighbors if every node just send hertbeat messages and I try to decide it in the &amp;quot;edge-node&amp;quot; (host pc client) which node is neighbor of which nother nodes.&lt;/p&gt;
&lt;p&gt;Implementation question:&lt;/p&gt;
&lt;p&gt;as I understand I need to send two configuration messages if I want transmit and receive heartbeat at each node&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Config Heartbeat Publication Set&amp;nbsp; 0x80 0x39&lt;/p&gt;
&lt;p&gt;Config Heartbeat Subscription Set&amp;nbsp; 0x80 0x3B&lt;/p&gt;
&lt;p&gt;I have created new Topic for the Heartbeat please join for future discussion&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37227/mesh-monitor-with-heartbeat-messages"&gt;devzone.nordicsemi.com/.../mesh-monitor-with-heartbeat-messages&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/143065?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 14:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33fe8c14-f2de-4cf3-8ef4-a904fb3632db</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I would think monitoring the heartbeat would be the best option for you. Heartbeat is configure during configuration phase. You state the heart beat original and destination address you want to subscribe and publish to. Base on the original TTL and actual TTL you can find if the heart beat is from your neighbor or not. Please have a look at the heart beat documentation in the spec.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/142966?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 08:42:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28add01c-ad16-42ae-94a5-085c5d64aba3</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;ok man I give up this idea and have a new one which I think is simpler:&lt;/p&gt;
&lt;p&gt;as you know my wish is to build a mesh monitor where i can see all the neighbors of each node&lt;/p&gt;
&lt;p&gt;to do this I modified the simple onoff server for the device. and will modify the client.py &lt;/p&gt;
&lt;p&gt;Idea:&amp;nbsp; setup a mesh which consist of several servers with advertising beacons activated and a client (client is purely on pc via serial port and interactive.py&amp;nbsp; and client.py). Each such server can send and receive advertising Beacons to see who is in the neighborhood . Each server creates a list of hes neighbors and if a client which is on pc can send a get_list message it responses with a list of hes neighbors.&lt;/p&gt;
&lt;p&gt;I described it in this topic:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37147/beacons-in-conjunction-with-a-server-in-a-mesh"&gt;devzone.nordicsemi.com/.../beacons-in-conjunction-with-a-server-in-a-mesh&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/142856?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 13:59:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70d13d5c-2b3d-456e-b446-96b40a6a2734</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying here but seems that it&amp;#39;s more complex than I expected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Doesn&amp;#39;t seem there is an easy way to combine a normal application firmware with the serial library to make it output the serial interface.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My understanding is that if you want to create a node that use serial interface, you need to declare the model, the configuration server, the provisionee on python on PC, instead of having them in the code in the firmware.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So if you want to create a simple on off server, you would need to do what &amp;#39;s similar to what we do in the tutorial with pyACI where we created the simple on off client. You would need configuration server to be declared as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure about your application, could you describe your requirements a little bit more ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/142450?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 14:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d002d0d-ed34-41b5-9764-9f24577423c5</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;ok thank you man , i need to finish this &amp;quot;mesh-monitor&amp;quot; in this month&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/142449?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 14:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cebab869-dddb-4434-b66e-aa62b6b87021</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what could be wrong here. I guess we will need to try ourselves here. I will get back to you tomorrow.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/142117?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 09:35:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:988cca51-cf18-4247-acb9-31b91b2ef996</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;I have implemented the status_handler but pasted it incorrect. There is the full code I use for the Server :&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;class SimpleOnOffServer(Model):
    SIMPLE_ON_OFF_STATUS = Opcode(0xc4, 0x59, &amp;quot;Simple OnOff Status&amp;quot;)
    SIMPLE_ON_OFF_SET = Opcode(0xc1, 0x59, &amp;quot;Simple OnOff Set&amp;quot;)
    SIMPLE_ON_OFF_GET = Opcode(0xc2, 0x59, &amp;quot;Simple OnOff Get&amp;quot;)
    SIMPLE_ON_OFF_SET_UNACKNOWLEDGED = Opcode(0xc3, 0x59, &amp;quot;Simple OnOff Set Unacknowledged&amp;quot;)
    ON_OF_STATE = 0

    def __init__(self):
        self.opcodes = [
            (self.SIMPLE_ON_OFF_SET, self.__simple_on_off_status_handler),
            (self.SIMPLE_ON_OFF_GET, self.__simple_on_off_status_handler),
            (self.SIMPLE_ON_OFF_SET_UNACKNOWLEDGED, self.__simple_on_off_status_handler)
        ]
        self.__tid = 0
        super(SimpleOnOffServer, self).__init__(self.opcodes)

    @property
    def _tid(self):
        tid = self.__tid
        self.__tid += 1
        if self.__tid &amp;gt;= 255:
            self.__tid = 0
        return tid

    def __simple_on_off_status_handler(self, opcode, message):

        if opcode == self.SIMPLE_ON_OFF_GET:
            message = bytearray()
            message += struct.pack(&amp;quot;&amp;lt;BB&amp;quot;, int(self.ON_OF_STATE), self._tid)
            self.send(self.SIMPLE_ON_OFF_STATUS, message)
        elif opcode == self.SIMPLE_ON_OFF_SET:
            self.ON_OF_STATE = message.data[0]
            message = bytearray()
            message += struct.pack(&amp;quot;&amp;lt;BB&amp;quot;, int(self.ON_OF_STATE), self._tid)
            self.send(self.SIMPLE_ON_OFF_STATUS, message)
        elif opcode == self.SIMPLE_ON_OFF_SET_UNACKNOWLEDGED:
            self.ON_OF_STATE = message.data[0]
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;this is the problem I can not see any light physical change&amp;nbsp; on my nRF52840 after I do the provisioning and try to switch it on.&lt;/p&gt;
&lt;p&gt;1) If I don&amp;#39;t do the : pe=Provisionee(devide) pe.listen() on the server+serial site and do the provisioning process like in the link i can switch the light on and off via sc.set(True) and i can even sent messages to serial port on pc but i get the error like I said above.&lt;/p&gt;
&lt;p&gt;2) And if I do the pe=Provisionee(devide) pe.listen() process on server+serial I don&amp;#39;t get any response from the server+serial after provisioning process and i can not switch the light on, to see this look on Provisioner Log I posted above.&lt;/p&gt;
&lt;p&gt;&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: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/142105?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 09:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:580fb935-864c-4326-b3c7-f46fcc3a80b3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You would need to define&amp;nbsp; the server on the python code to be able to handle the event comes to your server model implemented on the server node.&lt;/p&gt;
&lt;p&gt;This is similar to the provisionee implemented in provisioning.py and the provisionee.c implemented in the nRF52 code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But of course you can chose to implement everything on the python code instead.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your python code I don&amp;#39;t see you implemented &amp;quot;__simple_on_off_status_handler()&amp;quot; , without that how do you expect it to print out anything ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume when you sent the command from the client on the python code, you can see the light physically changed on the NRF52 server+serial node ? This is what you should already have after you follow the instruction &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.1.1/md_scripts_interactive_pyaci_doc_demo_configuration.html?cp=4_1_0_2_0_2"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/141875?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 09:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f6b80b5-23c4-45b7-acf3-b9a60ef5d4ee</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;Ok there is my first try to implement SimpleOnOffServer:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;class SimpleOnOffServer(Model):
    SIMPLE_ON_OFF_STATUS = Opcode(0xc4, 0x59, &amp;quot;Simple OnOff Status&amp;quot;)
    SIMPLE_ON_OFF_SET = Opcode(0xc1, 0x59, &amp;quot;Simple OnOff Set&amp;quot;)
    SIMPLE_ON_OFF_GET = Opcode(0xc2, 0x59, &amp;quot;Simple OnOff Get&amp;quot;)
    SIMPLE_ON_OFF_SET_UNACKNOWLEDGED = Opcode(0xc3, 0x59, &amp;quot;Simple OnOff Set Unacknowledged&amp;quot;)
    ON_OF_STATE = 0

    def __init__(self):
        self.opcodes = [
            (self.SIMPLE_ON_OFF_SET, self.__simple_on_off_status_handler),
            (self.SIMPLE_ON_OFF_GET, self.__simple_on_off_status_handler),
            (self.SIMPLE_ON_OFF_SET_UNACKNOWLEDGED, self.__simple_on_off_status_handler)
        ]
        self.__tid = 0
        super(SimpleOnOffServer, self).__init__(self.opcodes)

    @property
    def _tid(self):
        tid = self.__tid
        self.__tid += 1
        if self.__tid &amp;gt;= 255:
            self.__tid = 0
        return tid&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;1) the problem is, in access.py there is no &lt;code&gt;access_model_publish() or accecc_model_reply()&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;just the send method and I don&amp;#39;t know how to implement this, that why I use the send(opcode,message) with&lt;/p&gt;
&lt;pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:&amp;#39;Courier New&amp;#39;;font-size:9,0pt;"&gt;opcode=SIMPLE_ON_OFF_STATUS&lt;/pre&gt;
&lt;p&gt;2) At the moment i still does not work and I am not sure that I have implemented the OnOff Server correct and &lt;span class="gt-baf-word-clickable"&gt;whether&lt;/span&gt; I use this Server in correct context&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;Provisioner Log:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;C:\Users\AEH4Lab\nRF\mesh_2.1.1\scripts\interactive_pyaci&amp;gt;python interactive_pyaci.py -d COM10 --no-logfile&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; To control your device, use d[x], where x is the device index.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Devices are indexed based on the order of the COM ports specified by the -d option.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The first device, d[0], can also be accessed using device.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type d[x]. and hit tab to see the available methods.&lt;br /&gt;&lt;br /&gt;add packet recipient&lt;br /&gt;&amp;lt;bound method Access.__event_handler of &amp;lt;mesh.access.Access object at 0x03AC6830&amp;gt;&amp;gt;&lt;br /&gt;add packet recipient&lt;br /&gt;&amp;lt;bound method Interactive.__event_handler of &amp;lt;__main__.Interactive object at 0x03AC6750&amp;gt;&amp;gt;&lt;br /&gt;Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)]&lt;br /&gt;Type &amp;#39;copyright&amp;#39;, &amp;#39;credits&amp;#39; or &amp;#39;license&amp;#39; for more information&lt;br /&gt;IPython 6.4.0 -- An enhanced Interactive Python. Type &amp;#39;?&amp;#39; for help.&lt;br /&gt;&lt;br /&gt;In [1]: 2018-07-30 12:55:37,932 - ERROR - COM10: Invalid packet: bytearray(b&amp;#39;\x00&amp;#39;)&lt;br /&gt;2018-07-30 12:55:38,497 - INFO - COM10: Device rebooted.&lt;br /&gt;In [1]: db = MeshDB(&amp;quot;database/example_database.json&amp;quot;)&lt;br /&gt;&lt;br /&gt;In [2]: p = Provisioner(device, db)&lt;br /&gt;add packet recipient&lt;br /&gt;&amp;lt;bound method Provisioner.__event_handler of &amp;lt;mesh.provisioning.Provisioner object at 0x041FDF50&amp;gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;In [3]: 2018-07-30 12:59:11,213 - INFO - COM10: Success&lt;br /&gt;2018-07-30 12:59:11,214 - INFO - COM10: Success&lt;br /&gt;2018-07-30 12:59:11,217 - INFO - COM10: SubnetAdd: {&amp;#39;subnet_handle&amp;#39;: 0}&lt;br /&gt;2018-07-30 12:59:11,219 - INFO - COM10: AppkeyAdd: {&amp;#39;appkey_handle&amp;#39;: 0}&lt;br /&gt;2018-07-30 12:59:11,222 - INFO - COM10: AppkeyAdd: {&amp;#39;appkey_handle&amp;#39;: 1}&lt;br /&gt;In [3]: p.scan_start()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In [4]: 2018-07-30 12:59:17,618 - INFO - COM10: Received UUID 0059ffff00000000c4e0725be36e2477 with RSSI: -35 dB&lt;br /&gt;In [4]: p.scan_stop()&lt;br /&gt;&lt;br /&gt;2018-07-30 12:59:23,919 - INFO - COM10: Success&lt;br /&gt;In [5]: p.provision(name=&amp;quot;Light bulb&amp;quot;)&lt;br /&gt;&lt;br /&gt;In [2018-07-30 12:59:29,999 - INFO - COM10: Provision: {'context': 0}6&lt;br /&gt;]:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2018-07-30 12:59:30,013 - INFO - COM10: Link established&lt;br /&gt;2018-07-30 12:59:30,067 - INFO - COM10: Received capabilities&lt;br /&gt;2018-07-30 12:59:30,070 - INFO - COM10: Number of elements: 1&lt;br /&gt;2018-07-30 12:59:30,075 - INFO - COM10: OobUse: {&amp;#39;context&amp;#39;: 0}&lt;br /&gt;2018-07-30 12:59:30,298 - INFO - COM10: ECDH request received&lt;br /&gt;2018-07-30 12:59:30,308 - INFO - COM10: EcdhSecret: {&amp;#39;context&amp;#39;: 0}&lt;br /&gt;2018-07-30 12:59:30,636 - INFO - COM10: Provisioning complete&lt;br /&gt;2018-07-30 12:59:30,638 - INFO - COM10:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Address(es): 0x10-0x10&lt;br /&gt;2018-07-30 12:59:30,640 - INFO - COM10:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Device key: ddf8ee131ea34be4575fa67694f52ca7&lt;br /&gt;2018-07-30 12:59:30,643 - INFO - COM10:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Network key: 18eed9c2a56add85049ffc3c59ad0e12&lt;br /&gt;2018-07-30 12:59:30,645 - INFO - COM10: Adding device key to subnet 0&lt;br /&gt;2018-07-30 12:59:30,647 - INFO - COM10: Adding publication address of root element&lt;br /&gt;2018-07-30 12:59:30,659 - INFO - COM10: DevkeyAdd: {&amp;#39;devkey_handle&amp;#39;: 8}&lt;br /&gt;2018-07-30 12:59:30,662 - INFO - COM10: AddrPublicationAdd: {&amp;#39;address_handle&amp;#39;: 0}&lt;br /&gt;2018-07-30 12:59:30,731 - INFO - COM10: Provisioning link closed&lt;br /&gt;In [6]: cc = ConfigurationClient(db)&lt;br /&gt;&lt;br /&gt;In [7]: device.model_add(cc)&lt;br /&gt;&lt;br /&gt;In [8]: cc.publish_set(8, 0)&lt;br /&gt;&lt;br /&gt;In [9]: cc.composition_data_get()&lt;br /&gt;&lt;br /&gt;2018-07-30 13:00:08,871 - INFO - COM10: SuccessI&lt;br /&gt;In [10]: cc.appkey_add(0)&lt;br /&gt;&lt;br /&gt;2018-07-30 13:01:14,059 - INFO - COM10: Success&lt;br /&gt;In [11]: cc.model_app_bind(db.nodes[0].unicast_address, 0, mt.ModelId(0, 0x59))&lt;br /&gt;&lt;br /&gt;2018-07-30 13:01:22,205 - INFO - COM10: Success&lt;br /&gt;In [12]: sc = SimpleOnOffClient()&lt;br /&gt;&lt;br /&gt;In [13]: device.model_add(sc)&lt;br /&gt;&lt;br /&gt;In [14]: sc.publish_set(0, 0)&lt;br /&gt;&lt;br /&gt;In [15]: sc.set(True)&lt;br /&gt;&lt;br /&gt;2018-07-30 13:01:51,189 - INFO - COM10: Success&lt;br /&gt;In [16]:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As you can see there is no response from the server after Provisioning Process&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;Provisionee Log:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In [2]: send(cmd.Echo(&amp;quot;Test&amp;quot;))&lt;/p&gt;
&lt;p&gt;In [3]: 2018-07-30 12:57:11,885 - INFO - COM11: {event: DeviceEchoRsp, data: {&amp;#39;data&amp;#39;: bytearray(b&amp;#39;Test&amp;#39;)}}&lt;br /&gt;pe=Provisionee(device)&lt;br /&gt;add packet recipient&lt;br /&gt;&amp;lt;bound method Provisionee.__event_handler of &amp;lt;mesh.provisioning.Provisionee object at 0x03CE0070&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;In [4]: 2018-07-30 12:57:29,531 - INFO - COM11: Success&lt;br /&gt;2018-07-30 12:57:29,536 - INFO - COM11: Success&lt;br /&gt;ss=SimpleOnOffServer()&lt;/p&gt;
&lt;p&gt;In [5]: device.model_add(ss)&lt;/p&gt;
&lt;p&gt;In [6]: ss.publish_set(0,0)&lt;/p&gt;
&lt;p&gt;In [7]: pe.listen()&lt;/p&gt;
&lt;p&gt;In [8]: 2018-07-30 12:58:40,869 - INFO - COM11: Success&lt;br /&gt;2018-07-30 12:59:30,002 - INFO - COM11: Link established&lt;br /&gt;2018-07-30 12:59:30,644 - INFO - COM11: Provisioning complete&lt;br /&gt;2018-07-30 12:59:30,644 - INFO - COM11: Address(es): 0x10-0x10&lt;br /&gt;2018-07-30 12:59:30,644 - INFO - COM11: Device key: ddf8ee131ea34be4575fa67694f52ca7&lt;br /&gt;2018-07-30 12:59:30,645 - INFO - COM11: Network key: 18eed9c2a56add85049ffc3c59ad0e12&lt;br /&gt;2018-07-30 12:59:30,645 - INFO - COM11: Adding network key (subnet)&lt;br /&gt;2018-07-30 12:59:30,645 - INFO - COM11: Adding device key to subnet 0&lt;br /&gt;2018-07-30 12:59:30,646 - INFO - COM11: Setting the local unicast address range&lt;br /&gt;2018-07-30 12:59:30,653 - INFO - COM11: SubnetAdd: {&amp;#39;subnet_handle&amp;#39;: 0}&lt;br /&gt;2018-07-30 12:59:30,655 - INFO - COM11: DevkeyAdd: {&amp;#39;devkey_handle&amp;#39;: 1}&lt;br /&gt;2018-07-30 12:59:30,657 - INFO - COM11: Success&lt;br /&gt;2018-07-30 12:59:30,664 - INFO - COM11: Provisioning link closed&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/141815?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 06:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92c3ec4b-7fbc-4294-91d6-4e6f489497c7</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;Ok, ill try to implement the SimpleOnOffServer. Can you say me why do I need this ? I dont see the full puzzle&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/141740?ContentTypeID=1</link><pubDate>Fri, 27 Jul 2018 15:23:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5987386b-b8e9-4ff5-ab09-eee48762e102</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you post the full log of Provisioner and provisionee ? I assume you should have separate python windows to control them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Make sure you declare the simple on of server on the provisionee as well (This I believe has not been implemented in our python code, you need to implement one).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/141639?ContentTypeID=1</link><pubDate>Fri, 27 Jul 2018 08:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a31304b6-20ff-4466-bcf2-1a2c59681252</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;What I did is fallow: i ues the pure serial device as Provisioner on COM10 and use the Server Device with serial enable on COM11 as Provisionee, start the Provisionee(device) and start to listen.&lt;/p&gt;
&lt;p&gt;the provisioning process works but after that i get no response from the device and I can not control anything.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In [1]: db = MeshDB(&amp;quot;database/example_database.json&amp;quot;)&lt;br /&gt;&lt;br /&gt;In [2]: p = Provisioner(d[0], db)&lt;br /&gt;add packet recipient&lt;br /&gt;&amp;lt;bound method Provisioner.__event_handler of &amp;lt;mesh.provisioning.Provisioner object at 0x04&lt;br /&gt;&lt;br /&gt;In [3]: 2018-07-27 10:36:15,036 - INFO - COM10: Success&lt;br /&gt;2018-07-27 10:36:15,038 - INFO - COM10: Success&lt;br /&gt;2018-07-27 10:36:15,042 - INFO - COM10: SubnetAdd: {&amp;#39;subnet_handle&amp;#39;: 0}&lt;br /&gt;2018-07-27 10:36:15,046 - INFO - COM10: AppkeyAdd: {&amp;#39;appkey_handle&amp;#39;: 0}&lt;br /&gt;2018-07-27 10:36:15,050 - INFO - COM10: AppkeyAdd: {&amp;#39;appkey_handle&amp;#39;: 1}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In [4]: pe=Provisionee(d[1])&lt;br /&gt;add packet recipient&lt;br /&gt;&amp;lt;bound method Provisionee.__event_handler of &amp;lt;mesh.provisioning.Provisionee object at 0x04&lt;br /&gt;&lt;br /&gt;2018-07-27 10:36:50,910 - INFO - COM11: Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2018-07-27 10:36:50,920 - INFO - CO&lt;br /&gt;In [5]: pe.listen()&lt;br /&gt;&lt;br /&gt;2018-07-27 10:37:04,388 - INFO - COM11: SuccessIn&lt;br /&gt;In [6]: p.scan_start()&lt;br /&gt;&lt;br /&gt;2018-07-27 10:37:12,056 - INFO - COM10: SuccessIn&lt;br /&gt;&amp;nbsp;[7]:&amp;nbsp;&amp;nbsp; 2018-07-27 10:37:13,242 - INFO - COM10: Received UUID 0059ffff00000000c4e0725be36e&lt;br /&gt;In [7]: p.scan_stop()&lt;br /&gt;&lt;br /&gt;I2018-07-27 10:37:32,578 - INFO - COM10: Successn&lt;br /&gt;In [8]: p.provision(name=&amp;quot;Light bulb&amp;quot;)&lt;br /&gt;&lt;br /&gt;In [2018-07-27 10:37:40,290 - INFO - COM10: Provision: {'context': 0}9&lt;br /&gt;]:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2018-07-27 10:37:40,303 - INFO - COM11: Link established&lt;br /&gt;2018-07-27 10:37:40,318 - INFO - COM10: Link established&lt;br /&gt;2018-07-27 10:37:40,372 - INFO - COM10: Received capabilities&lt;br /&gt;2018-07-27 10:37:40,374 - INFO - COM10: Number of elements: 1&lt;br /&gt;2018-07-27 10:37:40,378 - INFO - COM10: OobUse: {&amp;#39;context&amp;#39;: 0}&lt;br /&gt;2018-07-27 10:37:40,571 - INFO - COM10: ECDH request received&lt;br /&gt;2018-07-27 10:37:40,581 - INFO - COM10: EcdhSecret: {&amp;#39;context&amp;#39;: 0}&lt;br /&gt;2018-07-27 10:37:40,959 - INFO - COM10: Provisioning complete&lt;br /&gt;2018-07-27 10:37:40,962 - INFO - COM10:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Address(es): 0x10-0x10&lt;br /&gt;2018-07-27 10:37:40,964 - INFO - COM10:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Device key: c58ef2bd05d6876e372d719eac1972&lt;br /&gt;2018-07-27 10:37:40,967 - INFO - COM10:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Network key: 18eed9c2a56add85049ffc3c59ad0&lt;br /&gt;2018-07-27 10:37:40,969 - INFO - COM10: Adding device key to subnet 0&lt;br /&gt;2018-07-27 10:37:40,972 - INFO - COM10: Adding publication address of root element&lt;br /&gt;2018-07-27 10:37:40,984 - INFO - COM10: DevkeyAdd: {&amp;#39;devkey_handle&amp;#39;: 8}&lt;br /&gt;2018-07-27 10:37:40,989 - INFO - COM10: AddrPublicationAdd: {&amp;#39;address_handle&amp;#39;: 0}&lt;br /&gt;2018-07-27 10:37:40,992 - INFO - COM11: Provisioning complete&lt;br /&gt;2018-07-27 10:37:40,993 - INFO - COM11:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Address(es): 0x10-0x10&lt;br /&gt;2018-07-27 10:37:40,994 - INFO - COM11:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Device key: c58ef2bd05d6876e372d719eac1972&lt;br /&gt;2018-07-27 10:37:40,995 - INFO - COM11:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Network key: 18eed9c2a56add85049ffc3c59ad0&lt;br /&gt;2018-07-27 10:37:40,996 - INFO - COM11: Adding network key (subnet)&lt;br /&gt;2018-07-27 10:37:40,997 - INFO - COM11: Adding device key to subnet 0&lt;br /&gt;2018-07-27 10:37:40,998 - INFO - COM11: Setting the local unicast address range&lt;br /&gt;2018-07-27 10:37:41,003 - INFO - COM11: SubnetAdd: {&amp;#39;subnet_handle&amp;#39;: 0}&lt;br /&gt;2018-07-27 10:37:41,005 - INFO - COM11: Provisioning link closed&lt;br /&gt;2018-07-27 10:37:41,007 - INFO - COM11: DevkeyAdd: {&amp;#39;devkey_handle&amp;#39;: 1}&lt;br /&gt;2018-07-27 10:37:41,008 - INFO - COM11: Success&lt;br /&gt;2018-07-27 10:37:41,079 - INFO - COM10: Provisioning link closed&lt;br /&gt;In [9]: cc = ConfigurationClient(db)&lt;br /&gt;&lt;br /&gt;In [10]: d[0].model_add(cc)&lt;br /&gt;&lt;br /&gt;In [11]: cc.publish_set(8, 0)&lt;br /&gt;&lt;br /&gt;In [12]: cc.composition_data_get()&lt;br /&gt;&lt;br /&gt;2018-07-27 10:38:38,336 - INFO - COM10: SuccessIn&lt;br /&gt;In [13]: cc.appkey_add(0)&lt;br /&gt;&lt;br /&gt;In 2018-07-27 10:38:52,380 - INFO - COM10: Success[&lt;br /&gt;In [14]: cc.model_app_bind(db.nodes[0].unicast_address, 0, mt.ModelId(0, 0x59))&lt;br /&gt;&lt;br /&gt;2018-07-27 10:39:03,965 - INFO - COM10: Success&lt;br /&gt;In [15]: sc = SimpleOnOffClient()&lt;br /&gt;&lt;br /&gt;In [16]: d[0].model_add(sc)&lt;br /&gt;&lt;br /&gt;In [17]: sc.publish_set(0, 0)&lt;br /&gt;&lt;br /&gt;In [18]: sc.set(True)&lt;br /&gt;&lt;br /&gt;2018-07-27 10:39:44,809 - INFO - COM10: SuccessI&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/141570?ContentTypeID=1</link><pubDate>Thu, 26 Jul 2018 16:42:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:336c2b9b-259a-45a5-a9eb-465a92920817</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;This customer has almost the same set up like your and with the fix it worked for him. Could you have a look &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36415/setup-mesh-server-over-serial-api"&gt;here&lt;/a&gt;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that you need to start the provisionee() in python on the PC when you do provisioning of the node, so that the python app can update the address of the node.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/141520?ContentTypeID=1</link><pubDate>Thu, 26 Jul 2018 12:29:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32466f80-8733-426f-bba8-99cda5794d84</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;Hey, no did not work&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2018-07-26 14:18:50,659 - ERROR - COM11: Exception in pkt handler &amp;lt;bound method Access.__event_handler of &amp;lt;mesh.access.Access object at 0x03AC64F0&amp;gt;&amp;gt;&lt;br /&gt;2018-07-26 14:18:50,661 - ERROR - COM11: traceback: Traceback (most recent call last):&lt;br /&gt;&amp;nbsp; File &amp;quot;C:\Users\Lab\nRF\mesh_2.1.1\scripts\interactive_pyaci\aci\aci_uart.py&amp;quot;, line 94, in process_packet&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fun(packet)&lt;br /&gt;&amp;nbsp; File &amp;quot;C:\Users\Lab\nRF\mesh_2.1.1\scripts\interactive_pyaci\mesh\access.py&amp;quot;, line 209, in __event_handler&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assert(element_index &amp;lt; len(self.elements) and element_index &amp;gt;= 0)&lt;br /&gt;AssertionError&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box" lang="en"&gt;&lt;span class=""&gt;I want to point this out to you&lt;/span&gt;&lt;/span&gt;: I use two pyACI instances one instance i run with the pure serial device to provide the provisioning process for server with serial feature enable and client. After the provisioning i use another instance of pyACI and connect to the another port to the server with serial feature enable and try to get messages send to this server.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But this fixed partly another problem I had: to communicate from Several Clients to one Server&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36824/interactive-mesh-provisioning-and-configuration-provisioning-several-clients-problem"&gt;devzone.nordicsemi.com/.../interactive-mesh-provisioning-and-configuration-provisioning-several-clients-problem&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/141505?ContentTypeID=1</link><pubDate>Thu, 26 Jul 2018 11:45:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78a1358a-abac-43e8-b69f-1bc2b8443e12</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It&amp;#39;s just an update. We found a bug in the python code that we didn&amp;#39;t update the element addresses database.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can just add this code:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i, e in enumerate(self.iaci.access.elements):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.address = event._data["address"] + i&lt;/p&gt;
&lt;p&gt;At the end of&amp;nbsp;Provisionee() in provisioning.py right before &amp;quot;else:&amp;quot;&lt;br /&gt;This will update the iaci database of the address.&lt;/p&gt;
&lt;p&gt;Please let us know if this workaround works.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/141177?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 14:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b06b8a4f-f353-4fb6-a82c-fa526ab449bc</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;after provisioning of the light switch server+serial_enable and light switch client with the pyACI script,&lt;/p&gt;
&lt;p&gt;I connect to the server serial and can see this if I press the button on the client site:&lt;/p&gt;
&lt;p&gt;{event: MeshMessageReceivedUnicast, data: {&amp;#39;src&amp;#39;: 18, &amp;#39;dst&amp;#39;: 16, &amp;#39;appkey_handle&amp;#39;: 0, &amp;#39;subnet_handle&amp;#39;: 0, &amp;#39;ttl&amp;#39;: 1, &amp;#39;adv_addr_type&amp;#39;: 1, &amp;#39;adv_addr&amp;#39;: bytearray(b&amp;#39;\x16\xfc\xb4\xb0\xd7\xea&amp;#39;), &amp;#39;rssi&amp;#39;: -30, &amp;#39;actual_length&amp;#39;: 5, &amp;#39;data&amp;#39;: bytearray(b&amp;#39;\xc1\x00Y\x00\x13&amp;#39;)}}&lt;/p&gt;
&lt;p&gt;the problem is in this code line. &lt;/p&gt;
&lt;pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:&amp;#39;Courier New&amp;#39;;font-size:9,0pt;"&gt;element_index = event._data[&lt;span style="color: #6a8759;"&gt;"dst"&lt;/span&gt;] - &lt;span style="color:#94558d;"&gt;self&lt;/span&gt;.elements[&lt;span style="color: #6897bb;"&gt;0&lt;/span&gt;].address&lt;/pre&gt;
&lt;pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:&amp;#39;Courier New&amp;#39;;font-size:9,0pt;"&gt;&lt;span style="color:#cc7832;"&gt;assert&lt;/span&gt;(element_index &amp;lt; &lt;span style="color:#8888c6;"&gt;len&lt;/span&gt;(&lt;span style="color:#94558d;"&gt;self&lt;/span&gt;.elements) &lt;span style="color:#cc7832;"&gt;and &lt;/span&gt;element_index &amp;gt;= &lt;span style="color:#6897bb;"&gt;0&lt;/span&gt;)&lt;/pre&gt;
&lt;p&gt;the element_index=15 in this case but the number of the elements is 1 in this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/140707?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 14:36:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3be6d0dc-c616-4ade-9bab-da07bb93b8f0</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;ok, I&amp;nbsp; build a mesh: Server with Serial feature and Client.&amp;nbsp; To build the mesh I used additional serial device and provisioned the server and the client with help of Interactive mesh provisioning and configuration python script.&lt;/p&gt;
&lt;p&gt;I modified the Light Switch Server:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;ERROR_CHECK(nrf_mesh_serial_init(NULL));&amp;nbsp; in the mesh_init(void)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; ERROR_CHECK(nrf_mesh_serial_enable()); in the start(void)&lt;/p&gt;
&lt;p&gt;and in the &amp;nbsp;on_off_server_set_cb (...) I added&lt;/p&gt;
&lt;p&gt;&amp;nbsp;uint32_t result;&lt;br /&gt;&amp;nbsp; char data[]=&amp;quot;Message Received\n&amp;quot;;&lt;br /&gt;&amp;nbsp; result=nrf_mesh_serial_tx (data, sizeof(data));&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It works almost. I can receive the Message from the Client to the server and send it to the Host-PC but i get Error in the aci_uart.py and access.py&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;2018-07-20 08:52:27,063 - INFO - COM11: {event: Application, data: {&amp;#39;data&amp;#39;: bytearray(b&amp;#39;Message Received\n\x00&amp;#39;)}}&lt;br /&gt;2018-07-20 08:52:27,070 - ERROR - COM11: Exception in pkt handler &amp;lt;bound method Access.__event_handler of &amp;lt;mesh.access.Access object at 0x038BB910&amp;gt;&amp;gt;&lt;br /&gt;2018-07-20 08:52:27,096 - ERROR - COM11: traceback: Traceback (most recent call last):&lt;br /&gt; File &amp;quot;C:\Users\XYZ\nRF\mesh_2.1.1\scripts\interactive_pyaci\aci\aci_uart.py&amp;quot;, line 88, in process_packet&lt;br /&gt; fun(packet)&lt;br /&gt; File &amp;quot;C:\Users\XYZ\nRF\mesh_2.1.1\scripts\interactive_pyaci\mesh\access.py&amp;quot;, line 209, in __event_handler&lt;br /&gt; assert(element_index &amp;lt; len(self.elements) and element_index &amp;gt;= 0)&lt;br /&gt;AssertionError&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any ideas what I&amp;#39;m doing wrong ?&lt;/p&gt;
&lt;p&gt;I think the constellation Server with Serial feature and Client + Serial Device to provide the keys is not the best solution. It must work also with Server, Client and purely Serial device. Because if I look on the log of the purely Serial device, I see that the serial device gets the mesh messages if I push the button on the client site and send message to the server but at the moment i don&amp;#39;t know how to receive this messages on the Host-PC that why i use again the &amp;quot;Serial-Feature&amp;quot; by the Server.&lt;/p&gt;
&lt;p&gt;Debug Logs from purely Serial Device by pushing the Button on the Client:&lt;/p&gt;
&lt;p&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 9565047&amp;gt;, net_packet.c,&amp;nbsp; 230, Unencrypted data: : 00106EFCBFA313F56D5395D0&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 9565698&amp;gt;, net_packet.c,&amp;nbsp; 230, Unencrypted data: : 00126E5813DD6B10E872BC&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 9580083&amp;gt;, net_packet.c,&amp;nbsp; 230, Unencrypted data: : 00106EDEF1B21FBEFF5E9EA2&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 9580991&amp;gt;, net_packet.c,&amp;nbsp; 230, Unencrypted data: : 00126E3740A10ED65F70BE&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 9598512&amp;gt;, net_packet.c,&amp;nbsp; 230, Unencrypted data: : 00106ECA6E96D67C0170C3B4&lt;br /&gt;&amp;lt;t:&amp;nbsp;&amp;nbsp;&amp;nbsp; 9599003&amp;gt;, net_packet.c,&amp;nbsp; 230, Unencrypted data: : 00126E4FEAF4A021018537&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/140497?ContentTypeID=1</link><pubDate>Wed, 18 Jul 2018 09:49:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d5952f9-144f-444e-8fc0-f4f56af8067b</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;An Example would be great !&lt;/p&gt;
&lt;p&gt;1)I was confused&amp;nbsp; and wanted to hard code the dev,net,app keys without provisioning but it is not more necessary.&lt;/p&gt;
&lt;p&gt;Now&amp;nbsp; I can run the serial example on Windows and it works fine till now.&amp;nbsp; Think the problem is in the Linux Mint 18 and how the OS manages the connection. If your are interested in I can try to give you some more information about it.&lt;/p&gt;
&lt;p&gt;2 and 3) not important anymore&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now I try to understand the , Interactive mesh provisioning and configuration with PyACI on Windows.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v2.0.1%2Fmd_examples_README.html"&gt;http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v2.0.1%2Fmd_examples_README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Concerning this I have some questions:&lt;/p&gt;
&lt;p&gt;0) I do not understand the exactly functionality of the serial device in this example.&lt;/p&gt;
&lt;p&gt;Do we use the serial node just to send command and receive events or do you load some models onto the serial device in the process ?&lt;/p&gt;
&lt;p&gt;provisioning:&lt;br /&gt;Next, we create a Provisioner object: p = Provisioner(device, db)&lt;/p&gt;
&lt;p&gt;1) the Device there is the serial device right ? where do we create the provisioning object ?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;DevkeyAdd: {&amp;#39;devkey_handle&amp;#39;: 8}&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) why is the handle=8 ? what do we have in the previous 7 handles ?&lt;/p&gt;
&lt;p&gt;configuration:&lt;br /&gt;&lt;br /&gt;device.model_add(cc)&lt;/p&gt;
&lt;p&gt;3) I do not understand the magic change, previously the device was the serial device or is it not so ?&lt;br /&gt;&lt;br /&gt;4) How I can turn on the relay mode ?&lt;/p&gt;
&lt;p&gt;5) now i have the server,client and the serial device in the mesh , how can i receive the mesh messages with serial device and send it to the hos pc ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&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: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/140384?ContentTypeID=1</link><pubDate>Tue, 17 Jul 2018 12:05:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03565564-23c0-491c-9e47-5c3c1fe5b82c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A serial node should work like a normal node and vice versa. We don&amp;#39;t know what kind of issue you have. We need more debug information. We can try to create an example for you but due to reduced staff in the summer, we can&amp;#39;t do it right now.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. What do you mean by keys ? It&amp;#39;s the network key, app key or device key ? What is &amp;quot;by hand&amp;quot; ? You mean like hardcoded in the application , not by a provisioner ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. I guess it&amp;#39;s the best to test between 2 serials nodes, one works a provisioner and one as a normal node. But you need to make the PyACI works first.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. Bjørn Kvale is on vacation for 1 week. But which hardware did you use ? Was it a nRF52 DK ? Could you verify you can communicate with UART to PC without problem ? (test with UART example in SDK v15)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/140233?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 14:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76033da1-f576-4ad9-a61c-c72be73367ac</guid><dc:creator>smart_life</dc:creator><description>&lt;p&gt;I want to run the client model on the serial node or rather I want to integrate the seril communication abilities&amp;nbsp; into the client model of the mesh&amp;nbsp; light switch example. For that :&lt;br /&gt;in mesh_init(void) I added : nrf_mesh_serial_init(NULL);&amp;nbsp; &amp;nbsp;&lt;br /&gt;in the start() I added : nrf_mesh_serial_enable();&lt;br /&gt;&lt;br /&gt;And I added all necessery files for serial communication from the mesh into the Light Switch Client Model to activate the serial communication, but&amp;nbsp; if I try to send some messages&amp;nbsp; from Server to Client the application does not work proper and after some &amp;quot;button messages&amp;quot; it seems that the Client Model application crashes.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;My aim is to build a mesh with several servers and client and one node with the serial communication abilities. All nodes should have all the necessary keys. And in the end i want to receive with this serial node all the mesh messages and send them to the host pc&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;the problem is:&lt;br /&gt;&lt;br /&gt;1) i dont know how add the same keys to all devices by the &amp;quot;hand&amp;quot;&lt;br /&gt;&lt;br /&gt;2) i dont know how to receive the mesh messages with the serial node or rather i dont know how to implement the receive funktion in serial node (is it implemented allready ?)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;3) I can not use interactive.py script to send comands to the serial device, I can just receive events from serial device. Because of this unsolved problem : &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35851/mesh-serial-example-problem-timeout-waiting-for-event"&gt;devzone.nordicsemi.com/.../mesh-serial-example-problem-timeout-waiting-for-event&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s why i tried to use the Light-Switch Example and to activate the Serial Communication by the Client. Because in this example I have one provisioner and all nodes get the keys.&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: include Mesh Serial device into the Light Switch Mesh</title><link>https://devzone.nordicsemi.com/thread/140220?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 13:33:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73c35c74-f06e-4adc-8bf9-f56358ef6f8a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you want to let the light switch model runs autonomously on the serial node or you want to let the model run on the peer device (e.g PC) and the serial still act a just connectivity chip ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to let the model run on the peer device, we already do that in &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/md_scripts_interactive_pyaci_doc_demo_configuration.html?cp=4_1_0_2_0_2"&gt;this guide, &lt;/a&gt;look for &amp;quot;blinking LEDs&amp;quot;&lt;/p&gt;
&lt;p&gt;But you can add a model in the serial code as well, shouldn&amp;#39;t have any problem.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>