<?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>nRF51 radio packet configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50313/nrf51-radio-packet-configuration</link><description>Hi there, 
 
 About radio packet config, would someone please help? 
 
 1. Meaning of the LENGTH filed in packet structure. Is it size of payload or of the whole packet? 
 2. How can a receiver determine the packet/payload size if the LENGTH field was</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jul 2019 05:43:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50313/nrf51-radio-packet-configuration" /><item><title>RE: nRF51 radio packet configuration</title><link>https://devzone.nordicsemi.com/thread/201104?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 05:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3947b1f8-2ebd-422a-8b5d-4ab563a15c78</guid><dc:creator>vinccc</dc:creator><description>&lt;p&gt;Thank you, Einar!&amp;nbsp;&amp;nbsp;You are right. I had successfully transmitted and received variable length messages, with&amp;nbsp;static length set to zero. But I guess at least one of&amp;nbsp;payload length and static length has to be set for the radio to figure out packet boundary then raise the PAYLOAD and END events, since CPU has no way to trigger them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 radio packet configuration</title><link>https://devzone.nordicsemi.com/thread/200970?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 12:51:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68a3f03c-d479-4806-b080-a38dc411a7e7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1. Meaning of the LENGTH filed in packet structure. Is it size of payload or of the whole packet?[/quote]
&lt;p&gt;The length field represents the payload length.&lt;/p&gt;
[quote user=""]2. How can&amp;nbsp;a receiver determine the packet/payload size if the LENGTH field was omitted?&amp;nbsp;[/quote]
&lt;p&gt;This is all up to your protocol. For instance, it could be that you use a protocol with another way of determining length, or fixed-length packets.&lt;/p&gt;
[quote user=""]3. What is a &amp;quot;Static Length&amp;quot;, e.g. as in PCNF1.STATLEN? How does it relate to packet/payload size?[/quote]
&lt;p&gt;&amp;nbsp;The static length field defines the length of the static payload. This is an additional payload that is transmitted immediately after the payload. It is normally not used, so you can probably just set the static length to 0 and forget about it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>