<?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>Group message repetition always required on application level?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36147/group-message-repetition-always-required-on-application-level</link><description>In the light-switch-proxy-client example there is every unreliable group message repeated a number of times (GROUP_MSG_REPEAT_COUNT). Is this always required to be implemented on application level or is there also an implicit group message repetition</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Jul 2018 13:36:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36147/group-message-repetition-always-required-on-application-level" /><item><title>RE: Group message repetition always required on application level?</title><link>https://devzone.nordicsemi.com/thread/139268?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 13:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8251b498-37dd-4061-af4d-3e543cad5e8d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, specifically it will be&amp;nbsp;access_model_publish call x&amp;nbsp;CORE_TX_REPEAT_ORIGINATOR_DEFAULT, i.e. its not just the group messages that will be sent in burst, but all messages sent with&amp;nbsp;access_model_publish.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group message repetition always required on application level?</title><link>https://devzone.nordicsemi.com/thread/139259?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 12:50:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8b15a17-3c30-4169-ac5d-68fbdc765882</guid><dc:creator>Armin</dc:creator><description>&lt;p&gt;Does this mean the total number of repetitions for group messages is CORE_TX_REPEAT_ORIGINATOR_DEFAULT multiplied with the number of repetitions on application level?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Group message repetition always required on application level?</title><link>https://devzone.nordicsemi.com/thread/139243?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 11:50:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a224558c-7e19-469d-8dd4-46e902023ce5</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Armin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the default number of repeated transmissions of one original mesh packet, &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/group__MESH__CONFIG__CORE__TX.html#gaf7b922dd220d2331d569d28be456d90e"&gt;CORE_TX_REPEAT_ORIGINATOR_DEFAULT&lt;/a&gt;,&amp;nbsp; is defined as 1 in&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/nrf__mesh__config__core_8h_source.html"&gt;nrf_mesh_config_core.h&lt;/a&gt;, i.e. one repeated transmission per packet. At the application level you&amp;nbsp;will implement your own functions for sending reliable and\or reliable packets for each model client/server , in the case of&amp;nbsp;simple_on_off_client_set_unreliable()&amp;nbsp; we call&amp;nbsp;access_model_publish() &lt;em&gt;repeats&lt;/em&gt;&amp;nbsp;times in a loop.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t simple_on_off_client_set_unreliable(simple_on_off_client_t * p_client, bool on_off, uint8_t repeats)
{
    simple_on_off_msg_set_unreliable_t set_unreliable;
    set_unreliable.on_off = on_off ? 1 : 0;
    set_unreliable.tid = m_tid++;

    access_message_tx_t message;
    message.opcode.opcode = SIMPLE_ON_OFF_OPCODE_SET_UNRELIABLE;
    message.opcode.company_id = SIMPLE_ON_OFF_COMPANY_ID;
    message.p_buffer = (const uint8_t*) &amp;amp;set_unreliable;
    message.length = sizeof(set_unreliable);
    message.force_segmented = false;
    message.transmic_size = NRF_MESH_TRANSMIC_SIZE_DEFAULT;

    uint32_t status = NRF_SUCCESS;
    for (uint8_t i = 0; i &amp;lt; repeats; ++i)
    {
        message.access_token = nrf_mesh_unique_token_get();
        status = access_model_publish(p_client-&amp;gt;model_handle, &amp;amp;message);
        if (status != NRF_SUCCESS)
        {
            break;
        }
    }
    return status;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;No, I am not aware of any specific reason for why the repetition number in the Mesh SDK example and the Thingy example are set to different values. It could be that the value was increased in the Thingy examples since have been shown at trade shows&amp;nbsp;where there are a lot of activity on the 2.4GHz spectrum, i.e. in order to make the demo more robust against packet collisions.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>