<?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>How to set retransmissions to &amp;quot;0&amp;quot; in the generic level client model?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42979/how-to-set-retransmissions-to-0-in-the-generic-level-client-model</link><description>Hello, 
 I&amp;#39;m implementing the Generic Level Client Model, with Mesh SDK 3.1.0. When I use the generic_level_client_delta_set() function, the level model is set to retransmit messages once, so the message is always sent twice. 
 
 How can I set retransmissions</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Jan 2019 12:46:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42979/how-to-set-retransmissions-to-0-in-the-generic-level-client-model" /><item><title>RE: How to set retransmissions to "0" in the generic level client model?</title><link>https://devzone.nordicsemi.com/thread/168872?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 12:46:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32f9fc48-cca1-455a-9ca4-b7817aba4a33</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Thanks for feedback and for sharing the solution.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set retransmissions to "0" in the generic level client model?</title><link>https://devzone.nordicsemi.com/thread/168716?ContentTypeID=1</link><pubDate>Wed, 30 Jan 2019 13:41:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7784eae3-e981-44c9-9174-598478c799aa</guid><dc:creator>david_owtschinnikow</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The error is in the definition of &amp;quot;config_publication_params_t&amp;quot;, specifically in the order of the definitions of the retransmit_count and the retransmit_interval fields.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Original definition:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;typedef struct __attribute((packed))&lt;br /&gt;{&lt;br /&gt; uint16_t appkey_index : 12; /**&amp;lt; Application key index. */&lt;br /&gt; uint16_t credential_flag : 1; /**&amp;lt; Friendship credentials flag. */&lt;br /&gt; uint16_t rfu : 3; /**&amp;lt; Reserved for future use, set to 0. */&lt;br /&gt; uint8_t publish_ttl; /**&amp;lt; TTL for outgoing messages. */&lt;br /&gt; uint8_t publish_period; /**&amp;lt; Period for periodic publishing. */&lt;br /&gt; &lt;strong&gt;uint8_t retransmit_count : 3; /**&amp;lt; Number of retransmissions of each message. */&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; uint8_t retransmit_interval : 5; /**&amp;lt; Number of 50 ms steps between each retransmission. */&lt;/strong&gt;&lt;br /&gt; config_model_id_t model_id; /**&amp;lt; Model identifier. */&lt;br /&gt;} config_publication_params_t;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;New definition:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;typedef struct __attribute((packed))&lt;br /&gt;{&lt;br /&gt; uint16_t appkey_index : 12; /**&amp;lt; Application key index. */&lt;br /&gt; uint16_t credential_flag : 1; /**&amp;lt; Friendship credentials flag. */&lt;br /&gt; uint16_t rfu : 3; /**&amp;lt; Reserved for future use, set to 0. */&lt;br /&gt; uint8_t publish_ttl; /**&amp;lt; TTL for outgoing messages. */&lt;br /&gt; uint8_t publish_period; /**&amp;lt; Period for periodic publishing. */&lt;br /&gt; &lt;strong&gt;uint8_t retransmit_interval : 5; /**&amp;lt; Number of 50 ms steps between each retransmission. */&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; uint8_t retransmit_count : 3; /**&amp;lt; Number of retransmissions of each message. */&lt;/strong&gt;&lt;br /&gt; config_model_id_t model_id; /**&amp;lt; Model identifier. */&lt;br /&gt;} config_publication_params_t;&lt;/p&gt;
&lt;p&gt;This way it works fine.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set retransmissions to "0" in the generic level client model?</title><link>https://devzone.nordicsemi.com/thread/168689?ContentTypeID=1</link><pubDate>Wed, 30 Jan 2019 12:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3832693f-ea18-4bce-8493-0a73afff358f</guid><dc:creator>david_owtschinnikow</dc:creator><description>&lt;p&gt;Hi again,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Still, I think there&amp;#39;s a bug in the android app&amp;nbsp;or in the light switch example, because the retransmission fields in the app do not match the model&amp;#39;s retransmission parameters. For example,&amp;nbsp;when I change the &amp;quot;interval steps&amp;quot; in the app, the &amp;quot;retransmit count&amp;quot; parameter changes in the node&amp;#39;s model. So, to set &amp;quot;retransmit count&amp;quot; to 0, I have to send an &amp;quot;interval steps&amp;quot; = 0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;d appreciate your comments, thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set retransmissions to "0" in the generic level client model?</title><link>https://devzone.nordicsemi.com/thread/168673?ContentTypeID=1</link><pubDate>Wed, 30 Jan 2019 11:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47eb7902-4c8a-4d40-a1e5-e273a6aa6808</guid><dc:creator>david_owtschinnikow</dc:creator><description>&lt;p&gt;Hi Joakim,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I realized&amp;nbsp;this configuration is done in the &amp;quot;Publication Settings&amp;quot; tab (in the nrf Mesh app). By default, the retransmission count is 1; I changed it to 0.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sorry for the inconvenience, and thanks for the help!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set retransmissions to "0" in the generic level client model?</title><link>https://devzone.nordicsemi.com/thread/168386?ContentTypeID=1</link><pubDate>Tue, 29 Jan 2019 07:57:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7feb52d-1b3f-4631-b110-dd5bdea1456e</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi. &lt;/p&gt;
&lt;p&gt;Maybe you can take a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42113/bluetooth-mesh-serial-interface-how-to-specify-the-serial-device-s-publication-retransmission-count-for-arbitrary-mesh-packets/163919#163919"&gt;this case,&lt;/a&gt; and Bjørn&amp;#39;s answer.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Best regards. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>