<?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>PyACI : auto determination of node number</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64553/pyaci-auto-determination-of-node-number</link><description>Hi, 
 
 I am new to BLE Mesh development using Nordic. 
 I am trying to write a python script for mesh provisioning an configuration using Serial Interface. 
 when I am launching the command: 
 cc.model_app_bind(db.nodes[0].unicast_address, 0, mt.ModelId</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Aug 2020 14:12:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64553/pyaci-auto-determination-of-node-number" /><item><title>RE: PyACI : auto determination of node number</title><link>https://devzone.nordicsemi.com/thread/263867?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 14:12:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e79fffd-990c-4bcc-a714-50ff2ef47668</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;As you can find at line 30 you have the address 0x11. This meant there was another node provisioned before the node you posted.&amp;nbsp;&lt;br /&gt;Then when you do&amp;nbsp;cc.model_app_bind(db.nodes[0].unicast_address, 0, mt.ModelId(0x1000)) it will try to bind the application key to the model on the db.nodes[0].unicast_address address. This address is most likely 0x10, not 0x11. And if there is model 0x1000 on this element (0x10) then you will receive invalid address.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please either use &lt;span&gt;db.nodes[1].unicast_address (or use the actual address that matches your node in this case 0x11) or&amp;nbsp;&lt;/span&gt;check the&amp;nbsp;example_database.json and remove the provisioned node (you can use the backup file). Then try again.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PyACI : auto determination of node number</title><link>https://devzone.nordicsemi.com/thread/263676?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 17:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79985c67-2010-4451-9951-582ba560ec4e</guid><dc:creator>Zolu</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;In [1]: db = MeshDB(&amp;quot;database/example_database.json&amp;quot;)

In [2]: db.provisioners
Out[2]: [{&amp;#39;name&amp;#39;: &amp;#39;BT Mesh Provisioner&amp;#39;, &amp;#39;UUID&amp;#39;: _UUID(b&amp;#39;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&amp;#39;), &amp;#39;allocated_unicast_range&amp;#39;: [{&amp;#39;low_address&amp;#39;: 0010, &amp;#39;high_address&amp;#39;: 7fff}], &amp;#39;allocated_group_range&amp;#39;: [{&amp;#39;low_address&amp;#39;: c000, &amp;#39;high_address&amp;#39;: feff}]}]

In [3]: p = Provisioner(device, db)

In [4]: 2020-08-07 22:29:32,153 - INFO - ttyACM1: Success
2020-08-07 22:29:32,155 - INFO - ttyACM1: Success
2020-08-07 22:29:32,159 - INFO - ttyACM1: SubnetAdd: {&amp;#39;subnet_handle&amp;#39;: 0}
2020-08-07 22:29:32,163 - INFO - ttyACM1: AppkeyAdd: {&amp;#39;appkey_handle&amp;#39;: 0}
2020-08-07 22:29:32,167 - INFO - ttyACM1: AppkeyAdd: {&amp;#39;appkey_handle&amp;#39;: 1}
In [4]: p.scan_start()

In [5]: 2020-08-07 22:29:46,855 - INFO - ttyACM1: Success
2020-08-07 22:29:47,497 - INFO - ttyACM1: Received UUID 2eb87ff2f7fa436aa978749c7dad1ce0 with RSSI: -29 dB
In [5]: p.scan_stop()

In [6]: 2020-08-07 22:30:07,734 - INFO - ttyACM1: Success
In [6]: p.provision(name=&amp;quot;Lights&amp;quot;)

In [7]: 2020-08-07 22:30:17,295 - INFO - ttyACM1: Provision: {&amp;#39;context&amp;#39;: 0}
2020-08-07 22:30:17,349 - INFO - ttyACM1: Link established
2020-08-07 22:30:17,429 - INFO - ttyACM1: Received capabilities
2020-08-07 22:30:17,429 - INFO - ttyACM1: Number of elements: 1
2020-08-07 22:30:17,432 - INFO - ttyACM1: OobUse: {&amp;#39;context&amp;#39;: 0}
2020-08-07 22:30:17,675 - INFO - ttyACM1: ECDH request received
2020-08-07 22:30:17,683 - INFO - ttyACM1: EcdhSecret: {&amp;#39;context&amp;#39;: 0}
2020-08-07 22:30:18,117 - INFO - ttyACM1: Provisioning complete
2020-08-07 22:30:18,117 - INFO - ttyACM1: Address(es): 0x11-0x11
2020-08-07 22:30:18,118 - INFO - ttyACM1: Device key: 0344426c6880433d387644128d4b1897
2020-08-07 22:30:18,118 - INFO - ttyACM1: Network key: 18eed9c2a56add85049ffc3c59ad0e12
2020-08-07 22:30:18,118 - INFO - ttyACM1: Adding device key to subnet 0
2020-08-07 22:30:18,119 - INFO - ttyACM1: Adding publication address of root element
2020-08-07 22:30:18,125 - INFO - ttyACM1: DevkeyAdd: {&amp;#39;devkey_handle&amp;#39;: 8}
2020-08-07 22:30:18,127 - INFO - ttyACM1: AddrPublicationAdd: {&amp;#39;address_handle&amp;#39;: 0}
2020-08-07 22:30:18,277 - INFO - ttyACM1: Provisioning link closed
In [7]: cc = ConfigurationClient(db)

In [8]: device.model_add(cc)

In [9]: cc.publish_set(8, 0)

In [10]: cc.composition_data_get()

In [11]: 2020-08-07 22:31:31,879 - INFO - ttyACM1: PacketSend: {&amp;#39;token&amp;#39;: 1}
2020-08-07 22:31:31,899 - INFO - ttyACM1: {event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 1}}
2020-08-07 22:31:31,980 - INFO - ttyACM1.ConfigurationClient: Received composition data (page 0x00): {
&amp;quot;cid&amp;quot;: &amp;quot;0059&amp;quot;,
&amp;quot;pid&amp;quot;: &amp;quot;0000&amp;quot;,
&amp;quot;vid&amp;quot;: &amp;quot;0000&amp;quot;,
&amp;quot;crpl&amp;quot;: 40,
&amp;quot;features&amp;quot;: {
&amp;quot;relay&amp;quot;: 0,
&amp;quot;proxy&amp;quot;: 0,
&amp;quot;friend&amp;quot;: 0,
&amp;quot;low_power&amp;quot;: 2
},
&amp;quot;elements&amp;quot;: [
{
&amp;quot;index&amp;quot;: 0,
&amp;quot;location&amp;quot;: &amp;quot;0000&amp;quot;,
&amp;quot;models&amp;quot;: [
{
&amp;quot;modelId&amp;quot;: &amp;quot;0000&amp;quot;
},
{
&amp;quot;modelId&amp;quot;: &amp;quot;0002&amp;quot;
},
{
&amp;quot;modelId&amp;quot;: &amp;quot;1000&amp;quot;
}
]
}
]
}
In [11]: cc.appkey_add(0)

In [12]: 2020-08-07 22:31:46,182 - INFO - ttyACM1: PacketSend: {&amp;#39;token&amp;#39;: 2}
2020-08-07 22:31:46,251 - INFO - ttyACM1: {event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 2}}
2020-08-07 22:31:46,275 - INFO - ttyACM1.ConfigurationClient: Appkey status: AccessStatus.SUCCESS
2020-08-07 22:31:46,279 - INFO - ttyACM1.ConfigurationClient: Appkey add 0 succeded for subnet 0 at node 0011
In [12]: cc.model_app_bind(db.nodes[0].unicast_address, 0, mt.ModelId(0x1000))

In [13]: 2020-08-07 22:32:16,030 - INFO - ttyACM1: PacketSend: {&amp;#39;token&amp;#39;: 3}
2020-08-07 22:32:16,060 - INFO - ttyACM1: {event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 3}}
2020-08-07 22:32:16,087 - INFO - ttyACM1.ConfigurationClient: Model app bind status: AccessStatus.INVALID_ADDRESS&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PyACI : auto determination of node number</title><link>https://devzone.nordicsemi.com/thread/263666?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 15:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc2c569e-09b3-4365-affe-71589901e2c9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please, I want to see also the response from PyACI when you type those commands. Please copy everything. Something like this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/846x201/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-826cdace5fd8409c8f4fe7c261931525/pastedimage1596813816958v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PyACI : auto determination of node number</title><link>https://devzone.nordicsemi.com/thread/263663?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 15:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:579524a4-1b7a-4c16-a31d-ded31f984678</guid><dc:creator>Zolu</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;python interactive_pyaci.py -d /dev/ttyACM0
db = MeshDB(&amp;quot;database/example_database.json&amp;quot;)
db.provisioners
p = Provisioner(device, db)
p.scan_start()
p.scan_stop()
p.provision(name=&amp;quot;Light_Bulb&amp;quot;)
cc = ConfigurationClient(db)
device.model_add(cc)
cc.publish_set(8, 0) 
cc.composition_data_get()
cc.appkey_add(0)
cc.model_app_bind(db.nodes[0].unicast_address, 0, mt.ModelId(0x1000))
gc = GenericOnOffClient()
device.model_add(gc)
gc.publish_set(0, 0)
gc.set(True)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PyACI : auto determination of node number</title><link>https://devzone.nordicsemi.com/thread/263648?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 14:09:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88c1c7c8-2e3c-43a7-b49e-2aa770512aff</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Can you just post the whole thing before and after you type&amp;nbsp;&lt;strong&gt;cc.model_app_bind ?&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PyACI : auto determination of node number</title><link>https://devzone.nordicsemi.com/thread/263629?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 13:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b7db64c-ef33-41f1-bd98-369030b87393</guid><dc:creator>Zolu</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;First time when I am trying with a node it&amp;#39;s getting an unicast address which is getting stored in example_database.json file. On reflashing the same nrf52 DK and running the script a different unicast address is assigned to the node.&lt;/p&gt;
&lt;p&gt;So first time on launching the command:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;cc.model_app_bind(db.nodes[0].unicast_address,0,mt.ModelId(0x1000))&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;it works fine.Next time if I reflash the same board and launch the same command it gives an error:&lt;/p&gt;
&lt;pre class="western"&gt;&lt;strong&gt;Model app bind status: AccessStatus.INVALID_ADDRESS&lt;/strong&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PyACI : auto determination of node number</title><link>https://devzone.nordicsemi.com/thread/263490?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 16:29:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df902458-976f-4179-a842-0a91c0bdab8f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you post the script log where you type the commands in PyACI ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PyACI : auto determination of node number</title><link>https://devzone.nordicsemi.com/thread/263434?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 12:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:928a2181-77c3-41b0-bf75-7784be3aec34</guid><dc:creator>Zolu</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have followed the instructions.&lt;/p&gt;
&lt;p&gt;Sharing the log.&lt;pre class="ui-code" data-mode="text"&gt;[{&amp;#39;name&amp;#39;: &amp;#39;BT Mesh Provisioner&amp;#39;, &amp;#39;UUID&amp;#39;: _UUID(b&amp;#39;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&amp;#39;), &amp;#39;allocated_unicast_range&amp;#39;: [{&amp;#39;low_address&amp;#39;: 0010, &amp;#39;high_address&amp;#39;: 7fff}], &amp;#39;allocated_group_range&amp;#39;: [{&amp;#39;low_address&amp;#39;: c000, &amp;#39;high_address&amp;#39;: feff}]}]
RX: 04810200fe
parsed_packet {event: DeviceStarted, data: {&amp;#39;operating_mode&amp;#39;: 2, &amp;#39;hw_error&amp;#39;: 0, &amp;#39;data_credit_available&amp;#39;: 254}}
Device rebooted.
TX: 61697fcb8c4071fc2c55d748dba1d44e28639bf9034428dde111549951d9d6b596f25e4300c6cac7ca8cffc71019888c5655136afbe6f1385ba3c0da57599b7ad7ab065fb70b44ee97f8bddff027e1d94b2a2f199fe295c512a54e74e9332f561609
TX: 059f01000100
RX: 03846900
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 105, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
Success
TX: 1392000018eed9c2a56add85049ffc3c59ad0e12
RX: 03849f00
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 159, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
Success
TX: 1597000000004f68ad85d9f48ac8589df665b6b49b8a
RX: 058492000000
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 146, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
SubnetAdd: {&amp;#39;subnet_handle&amp;#39;: 0}
TX: 1597010000002aa2a6ded5a0798ceab5787ca3ae39fc
RX: 058497000000
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 151, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
AppkeyAdd: {&amp;#39;appkey_handle&amp;#39;: 0}
TX: 0161
RX: 058497000100
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 151, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
AppkeyAdd: {&amp;#39;appkey_handle&amp;#39;: 1}
RX: 03846100
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 97, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
Success
RX: 1ac02eb87ff2f7fa436aa978749c7dad1ce0ca0001e978749c7ded
parsed_packet {event: ProvUnprovisionedReceived, data: {&amp;#39;uuid&amp;#39;: &amp;#39;2eb87ff2f7fa436aa978749c7dad1ce0&amp;#39;, &amp;#39;rssi&amp;#39;: -54, &amp;#39;gatt_supported&amp;#39;: 0, &amp;#39;adv_addr_type&amp;#39;: 1, &amp;#39;adv_addr&amp;#39;: &amp;#39;e978749c7ded&amp;#39;}}
Received UUID 2eb87ff2f7fa436aa978749c7dad1ce0 with RSSI: -54 dB
RX: 1ac02eb87ff2f7fa436aa978749c7dad1ce0ca0001e978749c7ded
parsed_packet {event: ProvUnprovisionedReceived, data: {&amp;#39;uuid&amp;#39;: &amp;#39;2eb87ff2f7fa436aa978749c7dad1ce0&amp;#39;, &amp;#39;rssi&amp;#39;: -54, &amp;#39;gatt_supported&amp;#39;: 0, &amp;#39;adv_addr_type&amp;#39;: 1, &amp;#39;adv_addr&amp;#39;: &amp;#39;e978749c7ded&amp;#39;}}
RX: 1ac02eb87ff2f7fa436aa978749c7dad1ce0cd0001e978749c7ded
parsed_packet {event: ProvUnprovisionedReceived, data: {&amp;#39;uuid&amp;#39;: &amp;#39;2eb87ff2f7fa436aa978749c7dad1ce0&amp;#39;, &amp;#39;rssi&amp;#39;: -51, &amp;#39;gatt_supported&amp;#39;: 0, &amp;#39;adv_addr_type&amp;#39;: 1, &amp;#39;adv_addr&amp;#39;: &amp;#39;e978749c7ded&amp;#39;}}
RX: 1ac02eb87ff2f7fa436aa978749c7dad1ce0c30001e978749c7ded
parsed_packet {event: ProvUnprovisionedReceived, data: {&amp;#39;uuid&amp;#39;: &amp;#39;2eb87ff2f7fa436aa978749c7dad1ce0&amp;#39;, &amp;#39;rssi&amp;#39;: -61, &amp;#39;gatt_supported&amp;#39;: 0, &amp;#39;adv_addr_type&amp;#39;: 1, &amp;#39;adv_addr&amp;#39;: &amp;#39;e978749c7ded&amp;#39;}}
RX: 1ac02eb87ff2f7fa436aa978749c7dad1ce0c40001e978749c7ded
parsed_packet {event: ProvUnprovisionedReceived, data: {&amp;#39;uuid&amp;#39;: &amp;#39;2eb87ff2f7fa436aa978749c7dad1ce0&amp;#39;, &amp;#39;rssi&amp;#39;: -60, &amp;#39;gatt_supported&amp;#39;: 0, &amp;#39;adv_addr_type&amp;#39;: 1, &amp;#39;adv_addr&amp;#39;: &amp;#39;e978749c7ded&amp;#39;}}
TX: 0162
TX: 2d63002eb87ff2f7fa436aa978749c7dad1ce018eed9c2a56add85049ffc3c59ad0e120000000000001700000000
RX: 03846200
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 98, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
Success
RX: 0484630000
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 99, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
Provision: {&amp;#39;context&amp;#39;: 0}
RX: 02c100
parsed_packet {event: ProvLinkEstablished, data: {&amp;#39;context_id&amp;#39;: 0}}
Link established
RX: 0bc300010001000000000000
parsed_packet {event: ProvCapsReceived, data: {&amp;#39;context_id&amp;#39;: 0, &amp;#39;num_elements&amp;#39;: 1, &amp;#39;public_key_type&amp;#39;: 0, &amp;#39;static_oob_types&amp;#39;: 1, &amp;#39;output_oob_size&amp;#39;: 0, &amp;#39;output_oob_actions&amp;#39;: 0, &amp;#39;input_oob_size&amp;#39;: 0, &amp;#39;input_oob_actions&amp;#39;: 0}}
Received capabilities
Number of elements: 1
TX: 056600000000
RX: 0484660000
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 102, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
OobUse: {&amp;#39;context&amp;#39;: 0}
RX: 62c700e9609b24f99abf6de016abc0d944c05eb2af8e087c8119d9ee164cadc5891f9c0247dcd9244a1681375893868bd25b617285efdd4f089d13b9fe4371cc8011a87fcb8c4071fc2c55d748dba1d44e28639bf9034428dde111549951d9d6b596f2
parsed_packet {event: ProvEcdhRequest, data: {&amp;#39;context_id&amp;#39;: 0, &amp;#39;peer_public&amp;#39;: &amp;#39;e9609b24f99abf6de016abc0d944c05eb2af8e087c8119d9ee164cadc5891f9c0247dcd9244a1681375893868bd25b617285efdd4f089d13b9fe4371cc8011a8&amp;#39;, &amp;#39;node_private&amp;#39;: &amp;#39;7fcb8c4071fc2c55d748dba1d44e28639bf9034428dde111549951d9d6b596f2&amp;#39;}}
ECDH request received
TX: 226800b69e7419cdad09316a5a2533dac355e227fff83a334f49324a640d775838c6ba
RX: 0484680000
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 104, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
EcdhSecret: {&amp;#39;context&amp;#39;: 0}
RX: 2cc50000000000000017000000adc55eff8f93a1acce9bf4914a85072f18eed9c2a56add85049ffc3c59ad0e12
parsed_packet {event: ProvComplete, data: {&amp;#39;context_id&amp;#39;: 0, &amp;#39;iv_index&amp;#39;: 0, &amp;#39;net_key_index&amp;#39;: 0, &amp;#39;address&amp;#39;: 23, &amp;#39;iv_update_flag&amp;#39;: 0, &amp;#39;key_refresh_flag&amp;#39;: 0, &amp;#39;device_key&amp;#39;: &amp;#39;adc55eff8f93a1acce9bf4914a85072f&amp;#39;, &amp;#39;net_key&amp;#39;: &amp;#39;18eed9c2a56add85049ffc3c59ad0e12&amp;#39;}}
Provisioning complete
        Address(es): 0x17-0x17
        Device key: adc55eff8f93a1acce9bf4914a85072f
        Network key: 18eed9c2a56add85049ffc3c59ad0e12
Adding device key to subnet 0
Adding publication address of root element
TX: 159c17000000adc55eff8f93a1acce9bf4914a85072f
TX: 03a41700
RX: 05849c000800
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 156, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;}}
DevkeyAdd: {&amp;#39;devkey_handle&amp;#39;: 8}
RX: 0584a4000000
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 164, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
AddrPublicationAdd: {&amp;#39;address_handle&amp;#39;: 0}
RX: 03c20000
parsed_packet {event: ProvLinkClosed, data: {&amp;#39;context_id&amp;#39;: 0, &amp;#39;close_reason&amp;#39;: 0}}
Provisioning link closed
Sending opcode: 8008, data: 00
TX: 0eab08000100000008000000800800
RX: 0784ab0001000000
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 171, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
PacketSend: {&amp;#39;token&amp;#39;: 1}
RX: 05d201000000
parsed_packet {event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 1}}
{event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 1}}
RX: 2ad017000100080000000401e978749c7dedbf160002005900000000002800070000000300000002000010
parsed_packet {event: MeshMessageReceivedUnicast, data: {&amp;#39;src&amp;#39;: 23, &amp;#39;dst&amp;#39;: 1, &amp;#39;appkey_handle&amp;#39;: 8, &amp;#39;subnet_handle&amp;#39;: 0, &amp;#39;ttl&amp;#39;: 4, &amp;#39;adv_addr_type&amp;#39;: 1, &amp;#39;adv_addr&amp;#39;: &amp;#39;e978749c7ded&amp;#39;, &amp;#39;rssi&amp;#39;: -65, &amp;#39;actual_length&amp;#39;: 22, &amp;#39;data&amp;#39;: &amp;#39;Y(&amp;#39;}}
Received composition data (page 0x00): {
  &amp;quot;cid&amp;quot;: &amp;quot;0059&amp;quot;,
  &amp;quot;pid&amp;quot;: &amp;quot;0000&amp;quot;,
  &amp;quot;vid&amp;quot;: &amp;quot;0000&amp;quot;,
  &amp;quot;crpl&amp;quot;: 40,
  &amp;quot;features&amp;quot;: {
    &amp;quot;relay&amp;quot;: 0,
    &amp;quot;proxy&amp;quot;: 0,
    &amp;quot;friend&amp;quot;: 0,
    &amp;quot;low_power&amp;quot;: 2
  },
  &amp;quot;elements&amp;quot;: [
    {
      &amp;quot;index&amp;quot;: 0,
      &amp;quot;location&amp;quot;: &amp;quot;0000&amp;quot;,
      &amp;quot;models&amp;quot;: [
        {
          &amp;quot;modelId&amp;quot;: &amp;quot;0000&amp;quot;
        },
        {
          &amp;quot;modelId&amp;quot;: &amp;quot;0002&amp;quot;
        },
        {
          &amp;quot;modelId&amp;quot;: &amp;quot;1000&amp;quot;
        }
      ]
    }
  ]
}
Sending opcode: 00, data: 0000004f68ad85d9f48ac8589df665b6b49b8a
TX: 1fab08000100000008000000000000004f68ad85d9f48ac8589df665b6b49b8a
RX: 0784ab0002000000
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 171, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
PacketSend: {&amp;#39;token&amp;#39;: 2}
RX: 05d202000000
parsed_packet {event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 2}}
{event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 2}}
RX: 1ad017000100080000000401e978749c7dedbe0600800300000000
parsed_packet {event: MeshMessageReceivedUnicast, data: {&amp;#39;src&amp;#39;: 23, &amp;#39;dst&amp;#39;: 1, &amp;#39;appkey_handle&amp;#39;: 8, &amp;#39;subnet_handle&amp;#39;: 0, &amp;#39;ttl&amp;#39;: 4, &amp;#39;adv_addr_type&amp;#39;: 1, &amp;#39;adv_addr&amp;#39;: &amp;#39;e978749c7ded&amp;#39;, &amp;#39;rssi&amp;#39;: -66, &amp;#39;actual_length&amp;#39;: 6, &amp;#39;data&amp;#39;: &amp;#39;800300000000&amp;#39;}}
Appkey status: AccessStatus.SUCCESS
Appkey add 0 succeded for subnet 0 at node 0017
Sending opcode: 803d, data: 100000000010
TX: 13ab08000100000008000000803d100000000010
RX: 0784ab0003000000
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 171, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
PacketSend: {&amp;#39;token&amp;#39;: 3}
RX: 05d203000000
parsed_packet {event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 3}}
{event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 3}}
RX: 1dd017000100080000000401e978749c7dedc20900803e01100000000010
parsed_packet {event: MeshMessageReceivedUnicast, data: {&amp;#39;src&amp;#39;: 23, &amp;#39;dst&amp;#39;: 1, &amp;#39;appkey_handle&amp;#39;: 8, &amp;#39;subnet_handle&amp;#39;: 0, &amp;#39;ttl&amp;#39;: 4, &amp;#39;adv_addr_type&amp;#39;: 1, &amp;#39;adv_addr&amp;#39;: &amp;#39;e978749c7ded&amp;#39;, &amp;#39;rssi&amp;#39;: -62, &amp;#39;actual_length&amp;#39;: 9, &amp;#39;data&amp;#39;: &amp;#39;803e01100000000010&amp;#39;}}
Model app bind status: AccessStatus.INVALID_ADDRESS
Sending opcode: 8202, data: 0100
TX: 0fab0000010000000800000082020100
RX: 0784ab0004000000
parsed_packet {event: CmdRsp, data: {&amp;#39;opcode&amp;#39;: 171, &amp;#39;status&amp;#39;: 0, &amp;#39;data&amp;#39;: &amp;#39;&amp;#39;}}
PacketSend: {&amp;#39;token&amp;#39;: 4}
RX: 05d204000000
parsed_packet {event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 4}}
{event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 4}}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PyACI : auto determination of node number</title><link>https://devzone.nordicsemi.com/thread/263415?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 11:41:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ee6a62d-3404-4e50-ad1a-54b40aaac2ab</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;HI Zolu,&amp;nbsp;&lt;br /&gt;Could you post the full log ?&amp;nbsp;&lt;br /&gt;Have you followed the instruction here :&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.2.0/md_scripts_interactive_pyaci_doc_demo_configuration.html?cp=7_2_2_4_8_1_2"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.2.0/md_scripts_interactive_pyaci_doc_demo_configuration.html?cp=7_2_2_4_8_1_2&lt;/a&gt;&amp;nbsp;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;db.node[0].unicast_address is stored in the db .jason file when you call&amp;nbsp;&lt;span&gt;db = MeshDB(&amp;quot;database/example_database.json&amp;quot;) for example.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>