<?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>nRF51822 - Proprietary Protocol - Using micro_esb library - Need Help Improving TX Function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23281/nrf51822---proprietary-protocol---using-micro_esb-library---need-help-improving-tx-function</link><description>Hey guys,
I am currently using the proprietary protocol on the micro_esb.c library with the nRF51822. So far everything has been working great, but I am certain my transmission function could be improved. 
 Here is what I have so far: 
 void transmit_payload</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jul 2017 11:28:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23281/nrf51822---proprietary-protocol---using-micro_esb-library---need-help-improving-tx-function" /><item><title>RE: nRF51822 - Proprietary Protocol - Using micro_esb library - Need Help Improving TX Function</title><link>https://devzone.nordicsemi.com/thread/91537?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2017 11:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37b3fa2c-07f1-4594-8d9b-f1a59d0b29b9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Well, it&amp;#39;s depends on how many re-transmission you set, or if you enable re-transmission or not.
You can have a  look at the nRF51 radio spec to do calculation. It starts from RAMP-UP from TXRU to TXIDLE, then START and sending packet. Then the period to wait for ACK (if you enable ACK)&lt;/p&gt;
&lt;p&gt;It&amp;#39;s easiest that you can toggle a pin when you calling uesb_write_tx_payload, and toggle again when you receive the event.&lt;/p&gt;
&lt;p&gt;One quesiton, which tx mode are you using ? UESB_TXMODE_AUTO or UESB_TXMODE_MANUAL*?&lt;/p&gt;
&lt;p&gt;If you are using the default mode UESB_TXMODE_AUTO, why did you call uesb_start_tx() ?
Please follow the micro esb example included on Github&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 - Proprietary Protocol - Using micro_esb library - Need Help Improving TX Function</title><link>https://devzone.nordicsemi.com/thread/91538?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 19:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16f50512-ef3e-4235-9d25-537ce01d43fe</guid><dc:creator>Mahonroy</dc:creator><description>&lt;p&gt;Thanks for the response! You don&amp;#39;t happen to know the time it takes for that event UESB_INT_TX_SUCCESS_MSK to occur do you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 - Proprietary Protocol - Using micro_esb library - Need Help Improving TX Function</title><link>https://devzone.nordicsemi.com/thread/91536?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 11:11:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ec8e5e9-d7ed-4a62-a6fe-379470cf5b48</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Mahonroy,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry for late response. We are low on staff here at the moment.&lt;/p&gt;
&lt;p&gt;I would suggest you instead of putting a delay of ms, you should wait for the event callback after the TX packet is sent.
Please have a look &lt;a href="https://github.com/NordicSemiconductor/nrf51-micro-esb/blob/master/ptx/main.c"&gt;here&lt;/a&gt;, at the uesb_event_handler. The event you should wait for is UESB_INT_TX_SUCCESS_MSK.&lt;/p&gt;
&lt;p&gt;Also be noted that the micro esb is deprecated. We integrated it inside the normal ESB library in our SDK v11. We suggest you to use that library (SDK v11 and up) instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 - Proprietary Protocol - Using micro_esb library - Need Help Improving TX Function</title><link>https://devzone.nordicsemi.com/thread/91535?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2017 17:53:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c939b4d1-4e20-4767-8fcf-490be710ed07</guid><dc:creator>Mahonroy</dc:creator><description>&lt;p&gt;Hey guys, figured I would check back in on this. Can anyone offer any advice for me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>