<?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>custom write ack payload.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60022/custom-write-ack-payload</link><description>My end goal for development is something like the following. 
 
 Master sends 0x00 slave sends back 13 bytes of data. Master sends 0x01 slave sends back one byte of data. Master sends 0x02, 0x03, 0x04 slave calls a function with parm (3,4) 
 
 My plan</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 May 2020 13:49:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60022/custom-write-ack-payload" /><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/248214?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 13:49:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b95490f9-f500-4a8d-8dad-64684795cd9c</guid><dc:creator>ulao</dc:creator><description>&lt;blockquote class="quote"&gt;
&lt;div class="quote-content"&gt;Does the 0x0a tell the receiver not to ack back?&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;Do you mean W_TX_PAYLOAD_NOACK? I am a bit uncertain what you&amp;#39;re asking?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry I meant 0x0b, yes. and EN_DYN_ACK is set on both sides.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; It seems what is going on here the set payload function in this library is buffering, not writing. I can set the payload with this &lt;code class="bbc_code" style="height:auto;"&gt;writeAckPayload( 1, buf, len ) &lt;/code&gt;command.&amp;nbsp; for example.&lt;/p&gt;
&lt;pre style="margin:0;padding:0;"&gt;&lt;code class="bbc_code" style="height:auto;"&gt;writeAckPayload&lt;/code&gt;(1,size)&lt;/pre&gt;
&lt;pre style="margin:0;padding:0;"&gt;&lt;code class="bbc_code" style="height:auto;"&gt;writeAckPayload&lt;/code&gt;(2,size)&lt;/pre&gt;
&lt;pre style="margin:0;padding:0;"&gt;&lt;code class="bbc_code" style="height:auto;"&gt;writeAckPayload&lt;/code&gt;(3,size)&lt;/pre&gt;
&lt;p&gt;makes it so that ack back will first send a 1, then the next ack back a 2 then 3. I was expecting it to overight and not buffer. So I just flush the tx first and it works. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Looks like I&amp;#39;m good, thx for all the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/247948?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 14:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bebc4b8a-aa8b-44ce-b8a1-ae51b7ec2146</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[quote user="ulao"][/quote]&lt;/p&gt;
&lt;p&gt;Issue is the first 1 or 2 commands always work but the other never seem to work. Ill get anywhere from status showing 0x2e to a 0x3e or just sending back 0x0a all the time. If I loop it, ill get 1 out of 10 back correctly and the others just time out showing 0x2e to a 0x3e .&lt;/p&gt;
&lt;p&gt;So how does this 0xa0 work?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;W_TX_PAYLOAD will use auto-acking to reflect what the status of your transfer is. How long of a delay is it between the initial send and the &amp;quot;fetch&amp;quot; command? Is there a delay at all?&lt;/p&gt;
&lt;p&gt;W_TX_PAYLOAD_NOACK will tell a device not to use ACKing&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These settings assume that you have EN_DYN_ACK field in the FEATURE register set on both sides.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ulao"]Does the 0x0a tell the receiver not to ack back?[/quote]
&lt;p&gt;Do you mean W_TX_PAYLOAD_NOACK? I am a bit uncertain what you&amp;#39;re asking?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ulao"]Disable it where? I can not imagine it tells the receiver somehow its disabled? Will the receiver still try to send back the payload ? If the &lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.929px;top:772.324px;"&gt;Disables &lt;/span&gt;&lt;span style="font-family:monospace;font-size:15.949px;left:707.329px;top:776.754px;"&gt;AUTOACK&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:774.488px;top:772.324px;"&gt; on&amp;nbsp; is for the TX&amp;#39;s information, I do not see how that is helpful. Maybe its just pointless for me to use in my design. &lt;/span&gt;I only expect ack when sending 0xff.[/quote]
&lt;p&gt;The &amp;quot;NO_ACK&amp;quot; bit sets if the packet is to be ACKed or not. Please see the on-air format in the datasheet, chapter 7.3.&lt;/p&gt;
&lt;p&gt;Again, this assumes that this feature is enabled in the register &amp;quot;FEATURE&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are expecting your application to send an ACK payload (PRX piggybacking data with the ACK payload), I would recommend that you just use W_TX_PAYLOAD first, then start optimizing with NOACK/ACK commands when you have it working.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/247660?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 23:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26b94d1b-8da1-49ca-a1cf-a9d057bc9282</guid><dc:creator>ulao</dc:creator><description>&lt;p&gt;I did receive my new devies but still have the same issues.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to removed the ardiuno from this set up as its my only unknown but I need to understand the ack payload better.&lt;/p&gt;
&lt;p&gt;to send data I use a two step 0xb0,id followed by a 0xa0,data. When sending 0xff I expect to get back a 0x0a, sending a 1 I want back a 4, and then 2 giving me back a 5. For example:&lt;/p&gt;
&lt;p&gt;0xB0,0xFF// Should not ack back, just sets my ID for return. &lt;br /&gt;0xA0,0xFF//This is my fetch Ack back. Should get 0x0a&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;0xB0,0x01// Should not ack back, just sets my ID for return. &lt;br /&gt;0xA0,0xFF//This is my fetch Ack back. Should get 0x04&lt;/p&gt;
&lt;p&gt;Issue is the first 1 or 2 commands always work but the other never seem to work. Ill get anywhere from status showing 0x2e to a 0x3e or just sending back 0x0a all the time. If I loop it, ill get 1 out of 10 back correctly and the others just time out showing 0x2e to a 0x3e .&lt;/p&gt;
&lt;p&gt;So how does this 0xa0 work?&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:monospace;font-size:15.949px;left:127.016px;top:334.025px;"&gt;W_TX_PAYLOAD&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:295.922px;top:329.594px;"&gt;1010 0000&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:393.58px;top:329.594px;"&gt;1 to 32&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:393.635px;top:349.002px;"&gt;LSByte first&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.929px;top:329.594px;"&gt;Write TX-payload: 1 &amp;ndash; 32 bytes. A write operation &lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.929px;top:348.81px;"&gt;always starts at byte 0 used in TX payload&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:monospace;font-size:15.949px;left:127.016px;top:776.754px;"&gt;W_TX_PAYLOAD_NO&lt;/span&gt;&lt;span style="font-family:monospace;font-size:15.949px;left:127.016px;top:800.294px;"&gt;ACK&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:12.7784px;left:155.839px;top:792.32px;"&gt;a&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:296.498px;top:772.324px;"&gt;1011 0000&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:393.602px;top:772.324px;"&gt;1 to 32&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:393.634px;top:791.731px;"&gt;LSByte first&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.929px;top:772.324px;"&gt;Used in TX mode. Disables &lt;/span&gt;&lt;span style="font-family:monospace;font-size:15.949px;left:707.329px;top:776.754px;"&gt;AUTOACK&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:774.488px;top:772.324px;"&gt; on this &lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.926px;top:791.635px;"&gt;specific packet&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.926px;top:791.635px;"&gt;Does the 0x0a tell the receiver not to ack back? If so how does that even work, if it acks immediately after read? What does &amp;quot;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.929px;top:772.324px;"&gt;Disables &lt;/span&gt;&lt;span style="font-family:monospace;font-size:15.949px;left:707.329px;top:776.754px;"&gt;AUTOACK&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:774.488px;top:772.324px;"&gt; on this &lt;/span&gt;specific packet&amp;quot; mean? Disable it where? I can not imagine it tells the receiver somehow its disabled? Will the receiver still try to send back the payload ? If the &lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.929px;top:772.324px;"&gt;Disables &lt;/span&gt;&lt;span style="font-family:monospace;font-size:15.949px;left:707.329px;top:776.754px;"&gt;AUTOACK&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:774.488px;top:772.324px;"&gt; on&amp;nbsp; is for the TX&amp;#39;s information, I do not see how that is helpful. Maybe its just pointless for me to use in my design. &lt;/span&gt;I only expect ack when sending 0xff. &lt;br /&gt;&lt;br /&gt;The way the arduino is set up, is it waits for data ready in a loop.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.926px;top:791.635px;"&gt;Once it sees the data, it reads it, then if 0xff, it does nothing further and the auto ack should be preformed then waits for the next read. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.926px;top:791.635px;"&gt;if not 0xff it must be a set. so it loads the payload for ack and then waits for the next read. Guessing it is acking back anyways as there is no way&amp;nbsp; to tell it not to. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.926px;top:791.635px;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.926px;top:791.635px;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.926px;top:791.635px;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.926px;top:791.635px;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:sans-serif;font-size:15.9761px;left:508.926px;top:791.635px;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/246747?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 10:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a6bd3b3-0ea9-4fa5-b7f7-a604d831eb79</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;0x3X = MAX_RT and TX_DS set. Is this tested with the module that has the fake IC? If yes, then wait till you get a module that has a genuine nRF mounted.&lt;/p&gt;
[quote user="ulao"]Also wanted to ask when using ack payload with dynamic payload, how so I know the size of the data? &amp;quot;&lt;span style="font-family:sans-serif;font-size:16.6282px;left:529.701px;top:303.047px;"&gt; Payload is deleted from &lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:16.6282px;left:529.701px;top:323.048px;"&gt;FIFO after it is read.&lt;/span&gt;&amp;quot; concerned I&amp;#39;m not reading it all.[/quote]
&lt;p&gt;&amp;nbsp;Use &amp;quot;R_RX_PL_WID&amp;quot; to read the size of the payload at the top of the FIFO.&lt;/p&gt;
&lt;p&gt;Yes, when its read out, its automatically pop&amp;#39;ed from the FIFO. If you do not read out the payloads, and get into a scenario where the FIFO is full, the transmission will stop working. Check the FIFO_STATUS register, field RX_EMPTY, when reading out the payload. If this 0, keep reading out payloads.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/246647?ContentTypeID=1</link><pubDate>Sun, 26 Apr 2020 15:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b55bb042-93ab-4118-a881-ef17440acaa9</guid><dc:creator>ulao</dc:creator><description>&lt;p&gt;I did end up ordering the spark fun last week, I hope that solves most of the issue. &lt;/p&gt;
&lt;p&gt;sorry &amp;quot;Does that mean after I send an ack payload it goes to e3 because it never received an ack back?&amp;quot; was a type o, I meant 0x3e...&lt;/p&gt;
&lt;p&gt;Also wanted to ask when using ack payload with dynamic payload, how so I know the size of the data? &amp;quot;&lt;span style="font-family:sans-serif;font-size:16.6282px;left:529.701px;top:303.047px;"&gt; Payload is deleted from &lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:16.6282px;left:529.701px;top:323.048px;"&gt;FIFO after it is read.&lt;/span&gt;&amp;quot; concerned I&amp;#39;m not reading it all. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/246420?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 08:45:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90b5f2b3-334a-4503-8bd9-edde548130b1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="ulao"]Does that mean after I send an ack payload it goes to e3 because it never received an ack back?[/quote]
&lt;p&gt;&amp;nbsp;0xEx is RX_DR + TX_DS (and a reserved upper bit which should always be written 0 to). That means you received data, and the former TX was successful.&lt;/p&gt;
[quote user="ulao"]I ask because 3e implies both DS and max_rt ? How can data be received if receiver is not responding?[/quote]
&lt;p&gt;My guess is that the library you&amp;#39;re using is not clearing the interrupt source, as that register is accumulating.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;PS: here&amp;#39;s some inexpensive modules from our distributor Xuntong:&amp;nbsp;&lt;a href="https://www.alibaba.com/product-detail/low-energy-wireless-2-4G-module_62107872546.html?spm=a2700.galleryofferlist.0.0.61637206ZFkTfA&amp;amp;fullFirstScreen=true"&gt;https://www.alibaba.com/product-detail/low-energy-wireless-2-4G-module_62107872546.html?spm=a2700.galleryofferlist.0.0.61637206ZFkTfA&amp;amp;fullFirstScreen=true&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/246360?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 21:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44d325e6-8765-463e-8130-83766a8443e8</guid><dc:creator>ulao</dc:creator><description>&lt;p&gt;&amp;quot;If it goes from 0x2x to 0x3x,&amp;nbsp; It means that it the 4th bit is set, which is MAX_RT, ie: your receiver isn&amp;#39;t responding.&amp;quot;&lt;/p&gt;
&lt;p&gt;Does that mean after I send an ack payload it goes to e3 because it never received an ack back?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I ask because 3e implies both DS and max_rt ? How can data be received if receiver is not responding?&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span style="font-family:sans-serif;font-size:12.6994px;left:403.246px;top:372.658px;"&gt; this bit is set high only when ACK is &lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:12.6994px;left:403.246px;top:387.933px;"&gt;received&lt;/span&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;so 3e means, data received, max tries detected. Data in rx empty - That&amp;#39;s confusing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/246046?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 12:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08e8f260-1ff6-4661-b2ec-6a7723f7eecc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, mouser is one of the online dealers that distributes our devices.&lt;/p&gt;
&lt;p&gt;You can plot in your region/country here, to see which alternatives are available in terms of distributors in your area:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/About-us/FindDistributor"&gt;https://www.nordicsemi.com/About-us/FindDistributor&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for a genuine module, try for instance sparkfun. Or if you have soldering tools, take it off the current module and solder on a genuine one.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/245854?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 13:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd9490e2-8ad0-4fa0-9b32-be850a52ab3b</guid><dc:creator>ulao</dc:creator><description>&lt;p&gt;I assume this chip woudl be correct?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.mouser.com/ProductDetail/Nordic-Semiconductor/nRF24L01P-R7?qs=sGAEpiMZZMt%252Bz66QWnul0XZ9nqKlGruUftDXegJpUTg%3D"&gt;www.mouser.com/.../nRF24L01P-R7&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not able to find a dev board that matches what I have.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/245717?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 07:15:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f421906-7c17-485c-8b3e-2108af788ede</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1808AH is unfortunately a known fake revision, which can explain the strange behavior you&amp;#39;re seeing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/245633?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 16:05:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3c563b3-b2b3-4060-b73c-cb05ea4f780a</guid><dc:creator>ulao</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1587398744846v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/245632?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 16:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c0097a9-11a2-4742-859e-73fb9c8fdb64</guid><dc:creator>ulao</dc:creator><description>&lt;p&gt;&lt;span class="mceItem mceNonEditable mceInsertMediaItem mceInsertMediaItem mceInsertMediaItemImage" style="color:transparent;height:240px;width:320px;" id="pastedimage1587398718392v1"&gt;...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/245550?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 13:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f94f6ee-dd61-4fed-9fa1-32f61e93b798</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ulao"]Do I need to clear bits or flush because I write the new payload?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;It sounds like your firmware isn&amp;#39;t clearing the events (TX_DS, RX_DR, MAX_RT). I do not know details about the library you&amp;#39;re using or how it works in the deep, unfortunately. Its quite normal that libraries, even arduino, clears these when needed.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ulao"]when I send the same data this happens, so I think the counter int is not resetting on same data sends. This is a know issue on this chip (china clone) ill buy elsewhere. -a suspicion only-[/quote]
&lt;p&gt;&amp;nbsp;Could you share the chip markings of your device (take a picture of it for instance) so I can check it with known clone?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ulao"]What woudl it mean when my status registers goes from 2e to 3e?&lt;br /&gt;to get my payload I just send NOP commands and read the status register. Normally it goes to a 0x60 around 300 us. But there are times it goes to 0x3e and my data is not ready. I&amp;#39;m not sure what is doing this. I make sure to first clear my ints before sending with[/quote]
&lt;p&gt;If it goes from 0x2x to 0x3x,&amp;nbsp; It means that it the 4th bit is set, which is MAX_RT, ie: your receiver isn&amp;#39;t responding.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/245353?ContentTypeID=1</link><pubDate>Sat, 18 Apr 2020 20:57:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8cde0c4-ba9f-4d25-b9a0-f1e580d1a9c1</guid><dc:creator>ulao</dc:creator><description>&lt;p&gt;I guess I was more so interest in if setting will affect speed in practices. Just trying to make sure&amp;nbsp; my data is sent fast as possible.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also , few more questions.&lt;/p&gt;
&lt;p&gt;1)&lt;br /&gt;For some reason my receiver does not always ack back my payload.&amp;nbsp; I use 0x0b to set my data and then 0x0f to retrieve it.&lt;/p&gt;
&lt;p&gt;0x0b 0xff - tells me receiver&amp;nbsp; to start.&amp;nbsp; Sets payload to 0xa0 &lt;br /&gt;0c0a 0xff - retrieve&amp;nbsp; - I Get back 0xa0&lt;/p&gt;
&lt;p&gt;0x0b 0xa1 - tells me receiver&amp;nbsp; to prepare a 0xa1 packet .&amp;nbsp; &lt;br /&gt;0c0a 0xff - retrieve&amp;nbsp; - I Get back 0xa0 &amp;lt;--- strange?&lt;/p&gt;
&lt;p&gt;0x0b 0xa2 - tells me receiver&amp;nbsp; to prepare a 0xa2 packet .&amp;nbsp; &lt;br /&gt;0c0a 0xff - retrieve&amp;nbsp; - I Get back 0xa0 &amp;lt;--- strange?&lt;br /&gt;&lt;br /&gt;Do I need to clear bits or flush because I write the new payload?&amp;nbsp; This is an arduino so I&amp;#39;m not sure what it is doing behind the scenes. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;[EDIT - further investigation suggest its my chip]&lt;br /&gt;when I send the same data this happens, so I think the counter int is not resetting on same data sends. This is a know issue on this chip (china clone) ill buy elsewhere. -a suspicion only- &lt;br /&gt;[EDIT ]&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;What woudl it mean when my status registers goes from 2e to 3e?&lt;br /&gt;to get my payload I just send NOP commands and read the status register. Normally it goes to a 0x60 around 300 us. But there are times it goes to 0x3e and my data is not ready. I&amp;#39;m not sure what is doing this. I make sure to first clear my ints before sending with&lt;/p&gt;
&lt;p&gt;Enable();&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;sendCommand(0x27);sendCommand(0x7F);&lt;br /&gt;Disable();&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;pulse();&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1587316274874v1.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/244864?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 07:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98f30705-229f-4bdb-a847-42eba11ac4ba</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ulao"]Are there any other tips for speed here? [/quote]
&lt;p&gt;&amp;nbsp;What speed are you currently seeing?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ulao"]my rf at 18db.&amp;nbsp; I&amp;#39;m getting about 300us for the reply. I&amp;#39;m only 1 inch a way from the receiver. [/quote]
&lt;p&gt;You can saturate the receiver by using a PA and a range of 1 inch. Place them a meter apart.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ulao"]I played with the pulse, where 3us does work, its not always working... So 10us it is then[/quote]
&lt;p&gt;&amp;nbsp;Don&amp;#39;t optimize on the CE pin toggling. Keep this within spec.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/244813?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 19:21:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:609389a4-23ad-4617-8ce2-6fe6c916e644</guid><dc:creator>ulao</dc:creator><description>&lt;p&gt;Are there any other tips for speed here? my address is e7e7e7e7e7, my speed is 2MBPS and my rf at 18db.&amp;nbsp; I&amp;#39;m getting about 300us for the reply. I&amp;#39;m only 1 inch a way from the receiver. I set my SPI to max for my device and my nrf crc is 8 bit and I played with the pulse, where 3us does work, its not always working... So 10us it is then. Every us is going to count here so I want to make sure I think of everything before I move to the next step.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/244706?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 12:02:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da4f3000-4f1d-4ad3-8f13-409024c42189</guid><dc:creator>ulao</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/60022/custom-write-ack-payload/244592"]Do you have the exact same configuration on both the PRX and PTX device?[/quote]
&lt;p&gt;It turned out to by the dynpd, I didnt know that was required. it was set to 3 on the slave and default on the master. Setting both to 3 fixed it. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;TNX!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/244592?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 06:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c0862f6-f80e-4c29-8ec4-f6f7bd9626f3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ulao"]Also noticed since I have been working with this my master needs to have tx and rx both set to the same address. (0x30 and 0x2a)[/quote]
&lt;p&gt;This is to get the hardware feature of auto-acking working. The transmitter will send on the TX_ADDR, then switch over to RX mode and wait for an incoming ACK on RX_ADDR_P0.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On the PTX (primary transmitter), you need to set the TX_ADDR equal to RX_ADDR_P0 to get auto-acking working.&lt;/p&gt;
&lt;p&gt;On the PRX (primary receiver), this is not required.&lt;/p&gt;
[quote user="ulao"]But as soon as I enable ackpayload or dynamicpayload I can no longer receive. [/quote]
&lt;p&gt;Do you have the exact same configuration on both the PRX and PTX device?&lt;/p&gt;
&lt;p&gt;If you only enable it on one side, it will stop working.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="ulao"]RX_ADDR_P0-1&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0x0101010101 [/quote]
&lt;p&gt;&amp;nbsp;Its very little change in bit pattern here. Its better if you test with the default &amp;quot;0xe7e7e7e7&amp;quot; address instead.&lt;/p&gt;
&lt;p&gt;The rule of thumb is to avoid starting with 0x00, 0xFF, 0x55, 0xAA, as these bit patterns have longer bit-wise &amp;#39;0&amp;#39; or &amp;#39;1&amp;#39; sequences, and 0x55/0xAA looks like a continuation of a preamble-sequence.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/244520?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 15:53:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:826d4ba0-61ea-4f3e-84f7-38fd7589a91d</guid><dc:creator>ulao</dc:creator><description>&lt;p&gt;Sounds straight forward. But as soon as I enable ackpayload or dynamicpayload I can no longer receive. Also noticed since I have been working with this my master needs to have tx and rx both set to the same address. (0x30 and 0x2a) IF not it will not send. I never understood that. &lt;br /&gt;&lt;br /&gt;master short code&lt;/p&gt;
&lt;p&gt;0x20,0x0A&lt;br /&gt;0x25,2&lt;br /&gt;0x26.0x0E&lt;br /&gt;0x23,3&lt;br /&gt;0x3D,6&lt;br /&gt;0x22,0x3f&lt;br /&gt;0x30,1,1,1,1,1&lt;br /&gt;0x2a,1,1,1,1,1&lt;br /&gt;pulse&lt;br /&gt;&lt;br /&gt;0xa0, 0xff send payload ready flag&lt;br /&gt;0xa0, 3 test code&lt;br /&gt;pulse&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;receiver &lt;br /&gt;This is an Arduino so I do not know what it is really doing but here is the output.&lt;/p&gt;
&lt;p&gt;STATUS&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0&lt;br /&gt;RX_ADDR_P0-1&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0x0101010101 0c2c2c2c2c2&lt;br /&gt;RX_ADDR_P2-5&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0xc3 0xc4 0xc5 0xc6&lt;br /&gt;TX_ADDR&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0x0101010101&lt;br /&gt;RX_PW_P0-6&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0x01 0x01 0x00 0x00 0x00 0x00&lt;br /&gt;EN_AA&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0x3f&lt;br /&gt;EN_RXADDR&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0x03&lt;br /&gt;RF_CH&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0x02&lt;br /&gt;RF_SETUP&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0x0f&lt;br /&gt;CONFIG&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0x0b&lt;br /&gt;DYNPD/FEATURE&amp;nbsp;&amp;nbsp; &amp;nbsp; = 0x03 0x06 &lt;strong&gt;&amp;lt;--- with this set I never receive data. with 0,0 I do.&lt;/strong&gt;&lt;br /&gt;Data Rate&amp;nbsp;&amp;nbsp; &amp;nbsp; = 2MBPS&lt;br /&gt;Model&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; = nRF24L01+&lt;br /&gt;CRC Length&amp;nbsp;&amp;nbsp; &amp;nbsp; = 8 bits&lt;br /&gt;PA Power&amp;nbsp;&amp;nbsp; &amp;nbsp; = PA_MAX&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom write ack payload.</title><link>https://devzone.nordicsemi.com/thread/244410?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 11:35:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c2d6e6f-f134-42d3-85de-35f4f4889a84</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user=""]My plan is to send the data with disabling auto ack from the master and then going in to receive mode, and having the slave return the data by going in to&amp;nbsp; transmit mode. Though I was wondering if any of that can be automated with a custom ack?[/quote]
&lt;p&gt;&amp;nbsp;As you mention, you can do this with using auto ACK, and ACK payload.&lt;/p&gt;
&lt;p&gt;To ensure that you receive the data, it is recommended that you send a &amp;quot;prepare ACK payload&amp;quot; command first to allow the host to upload it to the FIFO, then a dummy payload to fetch the actual ACK payload.&lt;/p&gt;
[quote user=""]If that sort of thing is possible, is there a small example or write up on that? Can a &amp;quot;preloaded message&amp;quot; be dynamic?[/quote]
&lt;p&gt;&amp;nbsp;What do you mean by &amp;quot;dynamic&amp;quot;? You can upload a ACK payload on a specific pipe, and on the next received payload on that specific pipe, the ACK will then be sent with your ACK payload.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>