<?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>Creating and sending messages to group in mesh using Serial Example (nRF Mesh v5.0.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77733/creating-and-sending-messages-to-group-in-mesh-using-serial-example-nrf-mesh-v5-0-0</link><description>Hardware: 
 
 Raspberry Pi Zero W 
 nRF52840 DK running Serial Example and connected to RPi via USB 
 Custom nRF52840 board acting as a Vendor Model Server x 2 
 
 Software: 
 
 nRF SDK for Mesh v5.0.0 
 
 I realise there are multiple tickets with the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Sep 2021 08:18:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77733/creating-and-sending-messages-to-group-in-mesh-using-serial-example-nrf-mesh-v5-0-0" /><item><title>RE: Creating and sending messages to group in mesh using Serial Example (nRF Mesh v5.0.0)</title><link>https://devzone.nordicsemi.com/thread/328118?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 08:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dfe44a3-0146-4c5c-a07e-599422037a20</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Please create a new ticket where you describe your issue in detail, as this isn&amp;#39;t really related to the initial ticket. Here on DevZone we strive to keep each ticket to its original subject so it&amp;#39;s easier to search for what you&amp;#39;re looking for in the future.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating and sending messages to group in mesh using Serial Example (nRF Mesh v5.0.0)</title><link>https://devzone.nordicsemi.com/thread/327754?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 10:50:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21b4fda8-fb91-409d-ae19-167c8242339a</guid><dc:creator>Arif@Lynxemi</dc:creator><description>&lt;p&gt;Thanks this solved that particular issue for me. I also needed help from this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40826/pyaci-serial-configuration-and-model-subscription"&gt;ticket&lt;/a&gt;&amp;nbsp;to get publishing to pyaci working, in particular:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="python"&gt;[1]: device.send(cmd.AddrSubscriptionAdd(db.groups[0].address))
2021-09-02 09:56:21,114 - INFO - ttyACM0: AddrSubscriptionAdd: {&amp;#39;address_handle&amp;#39;: 2}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;helped to enable the pyaci client subscribe to messages from that group. In addition:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="python"&gt;if event._opcode == Event.MESH_MESSAGE_RECEIVED_UNICAST or event._opcode == Event.MESH_MESSAGE_RECEIVED_SUBSCRIPTION:&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;helped to direct the subscribed messages to the event handler. Now all the nodes publish to that address and send messages happily. Special thanks to timvan and AdamWaterman in that ticket.&lt;/p&gt;
&lt;p&gt;I have another problem now. When I do:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="python"&gt;[3]: gc.publish_set(0, db.groups[0].address)
[4]: gc.set(True)
2021-09-02 11:37:24,488 - ERROR - ttyACM0: PacketSend: ERROR_REJECTED&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;My intention is to send the set message to all nodes that correspond to that group address however, I am getting this rejected message. Is this wrong in some way?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating and sending messages to group in mesh using Serial Example (nRF Mesh v5.0.0)</title><link>https://devzone.nordicsemi.com/thread/326959?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 10:37:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e096088-ca1e-482d-a7c9-e918213b9107</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;We took a closer look at this on our end, and it seems like you&amp;#39;ve stumbled upon a bug in our types.py file in the SDK. In line 296, the &lt;strong&gt;MAX = 3780000&lt;/strong&gt; should actually be &lt;strong&gt;MAX = 37800000&lt;/strong&gt;. The biggest possible step value (max_steps, that is 0x3F) times the largest possible multiplier (10 * 60 * 1000). If you either add a 0 to the MAX value on your end or if you set &lt;strong&gt;MAX = 0x3F * 10 * 60 * 1000&lt;/strong&gt; that should fix this error message for you.&lt;/p&gt;
&lt;p&gt;Thank you for reporting this so we were able to find it. It&amp;#39;s now been reported internally and we&amp;#39;ll be looking to fix it in a future release.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating and sending messages to group in mesh using Serial Example (nRF Mesh v5.0.0)</title><link>https://devzone.nordicsemi.com/thread/326458?ContentTypeID=1</link><pubDate>Wed, 25 Aug 2021 07:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a71743-487d-4316-a342-269968329e43</guid><dc:creator>Arif@Lynxemi</dc:creator><description>&lt;p&gt;When I called&amp;nbsp;&lt;pre class="ui-code" data-mode="python"&gt;cc.model_publication_set(db.nodes[2].unicast_address, mt.ModelId(0xc000, company_id=0x0493), mt.Publish(db.groups[0].address, index=0, ttl=4))&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;PublishPeriod should be set to a default zero value. It should be automatically handled and stored by the Configuration Server on the server side, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating and sending messages to group in mesh using Serial Example (nRF Mesh v5.0.0)</title><link>https://devzone.nordicsemi.com/thread/326330?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 10:43:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39db4cb8-2d82-499c-bd59-1675d6d2c30b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Yes, there seems to be one 0 too many in your PublishPeriod.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating and sending messages to group in mesh using Serial Example (nRF Mesh v5.0.0)</title><link>https://devzone.nordicsemi.com/thread/326290?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 07:40:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b12ac25c-e6c7-45c9-bff4-d772e9698145</guid><dc:creator>Arif@Lynxemi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When I try to set the publication of my server device to one of the predefined groups in example_database.json, I get this error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="python"&gt;In [37]: cc.model_publication_set(db.nodes[2].unicast_address, mt.ModelId(0xc000, company_id=0x0493), mt.Publish(db.groups[0].address, index=0, ttl=4))

2021-08-24 08:26:59,748 - INFO - ttyACM0: PacketSend: {&amp;#39;token&amp;#39;: 22}
In [38]: 2021-08-24 08:26:59,909 - INFO - ttyACM0: {event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 22}}
2021-08-24 08:27:00,630 - INFO - ttyACM0.ConfigurationClient: Model publication status: AccessStatus.SUCCESS
2021-08-24 08:27:00,721 - INFO - ttyACM0.ConfigurationClient: Publication status for model 0493c000 at element 18 to {&amp;#39;address&amp;#39;: c001, &amp;#39;index&amp;#39;: 0, &amp;#39;ttl&amp;#39;: 4, &amp;#39;period&amp;#39;: 0, &amp;#39;retransmit&amp;#39;: {redentials&amp;#39;: &amp;lt;FriendshipCredentials.DISABLED: 0&amp;gt;}

In [38]: cc.model_publication_get(db.nodes[2].unicast_address, mt.ModelId(0xc000, company_id=0x0493))

2021-08-24 08:27:07,614 - INFO - ttyACM0: PacketSend: {&amp;#39;token&amp;#39;: 23}
2021-08-24 08:27:07,640 - INFO - ttyACM0: {event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 23}}
In [39]: cc.model_publication_get(db.nodes[2].unicast_address, mt.ModelId(0xc000, company_id=0x0493))

2021-08-24 08:27:15,815 - INFO - ttyACM0: PacketSend: {&amp;#39;token&amp;#39;: 24}
2021-08-24 08:27:15,834 - INFO - ttyACM0: {event: MeshTxComplete, data: {&amp;#39;token&amp;#39;: 24}}
In [40]: 2021-08-24 08:27:16,623 - INFO - ttyACM0.ConfigurationClient: Model publication status: AccessStatus.SUCCESS
2021-08-24 08:27:16,630 - ERROR - ttyACM0: Exception in pkt handler &amp;lt;bound method Access.__event_handler of &amp;lt;mesh.access.Access object at 0xb5219390&amp;gt;&amp;gt;
2021-08-24 08:27:16,641 - ERROR - ttyACM0: traceback: Traceback (most recent call last):
  File &amp;quot;/home/user/nrf5_sdk_for_mesh/scripts/interactive_pyaci/aci/aci_uart.py&amp;quot;, line 89, in process_packet
    fun(packet)
  File &amp;quot;/home/user/nrf5_sdk_for_mesh/scripts/interactive_pyaci/mesh/access.py&amp;quot;, line 218, in __event_handler
    handler(opcode, message)
  File &amp;quot;/home/user/nrf5_sdk_for_mesh/scripts/interactive_pyaci/models/config.py&amp;quot;, line 582, in __model_publication_status_handler
    publish = mt.Publish.unpack(message.data[3:10])
  File &amp;quot;/home/user/nrf5_sdk_for_mesh/scripts/interactive_pyaci/mesh/types.py&amp;quot;, line 413, in unpack
    return cls(address, index, ttl, PublishPeriod.unpack(period),
  File &amp;quot;/home/user/nrf5_sdk_for_mesh/scripts/interactive_pyaci/mesh/types.py&amp;quot;, line 323, in unpack
    return cls(step_count * cls.resolution_multiplier(step_resolution))
  File &amp;quot;/home/user/nrf5_sdk_for_mesh/scripts/interactive_pyaci/mesh/types.py&amp;quot;, line 91, in __new__
    cls.__name__, value, cls.MIN, cls.MAX))
ValueError: Invalid PublishPeriod: 31800000 not in range [0, 3780000]
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is something wrong with the publishPeriod value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating and sending messages to group in mesh using Serial Example (nRF Mesh v5.0.0)</title><link>https://devzone.nordicsemi.com/thread/321506?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 08:44:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6146a747-509b-4277-a777-cf7c072d458d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;The PyACI seems to have a group definition where they are predefined in a .JSON file. You can edit the .json file to add groups, but it doesn&amp;#39;t seem like there is an API in PyACI to add groups during runtime, so the group must be pre-defined. Then you can follow the&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_scripts_interactive_pyaci_doc_demo_configuration.html"&gt; Publishing and subscribing section of the PyACI documentation&lt;/a&gt; to make devices subscribe to it.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1627029793069v1.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating and sending messages to group in mesh using Serial Example (nRF Mesh v5.0.0)</title><link>https://devzone.nordicsemi.com/thread/321306?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 10:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0cb2c46-816a-450e-b970-a9d70770eb0b</guid><dc:creator>Arif@Lynxemi</dc:creator><description>&lt;p&gt;Thanks for confirming my train of thought Simon.&lt;/p&gt;
&lt;p&gt;However I am not sure what the specific commands to complete are in interactive_pyaci. Can you point me to any documentation that can help me with my specific scenario or help me find the commands that will?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating and sending messages to group in mesh using Serial Example (nRF Mesh v5.0.0)</title><link>https://devzone.nordicsemi.com/thread/321231?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 06:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:497fbfdc-898f-46f5-b20a-1803ffa934ca</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Due to the summer vacation period we are currently understaffed, so delayed replies must be expected. I am sorry about any inconvenience this might cause.&lt;/p&gt;
&lt;p&gt;Indeed, you should start out by creating the group you&amp;#39;d like to do by creating a group address that all the intended server devices subscribe to. Then you can send messages to this group address handle from a client that all subscribed nodes will receive.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>