<?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>Sometimes receiving the packages I am sending over ESB</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59333/sometimes-receiving-the-packages-i-am-sending-over-esb</link><description>I am using ESB to send package from a nrf52832 (primary transmitter) to a nrf42840 (primary receiver). I use nrf5 SDK v15.3 on both of them. I send a ping message (12 bytes) every 10ms from the primary transmitter using tmsi_esb_ptx_send command. however</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Mar 2020 12:34:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59333/sometimes-receiving-the-packages-i-am-sending-over-esb" /><item><title>RE: Sometimes receiving the packages I am sending over ESB</title><link>https://devzone.nordicsemi.com/thread/241362?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 12:34:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb4de380-7f1c-4353-9459-a3b21046071e</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Have you checked that the RX payload is identical to the TX payload that was last transmitted?&lt;/p&gt;
&lt;p&gt;Which base addresses and addr prefix&amp;nbsp; are you using? Would it be possible for you to share the project? Then I could run it here on a nRF52 DK and see if I can reproduce the behavior?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sometimes receiving the packages I am sending over ESB</title><link>https://devzone.nordicsemi.com/thread/241337?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 10:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53ca6f04-58cb-4fd6-8b07-48c2c4e6ec6e</guid><dc:creator>martijnschouten</dc:creator><description>&lt;p&gt;yes, my I initialise the esb primary transmitter using the following function:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ret_code_t tmsi_esb_ptx_init(void (*esb_ptx_rx_received)(nrf_esb_payload_t *rx_payload), void (* esb_ptx_tx_succes)(), void (* esb_ptx_tx_failed)()){
    tmsi_esb_ptx_rx_received = esb_ptx_rx_received;
    tmsi_esb_ptx_tx_succes = esb_ptx_tx_succes;
    tmsi_esb_ptx_tx_failed = esb_ptx_tx_failed;

    NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;
    NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;

    while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);

    uint32_t err_code;

    
    nrf_esb_config.protocol                 = NRF_ESB_PROTOCOL_ESB_DPL;
    nrf_esb_config.retransmit_delay         = 600;
    nrf_esb_config.bitrate                  = NRF_ESB_BITRATE_2MBPS;
    nrf_esb_config.event_handler            = nrf_esb_event_handler;
    nrf_esb_config.mode                     = NRF_ESB_MODE_PTX;
    nrf_esb_config.selective_auto_ack       = false;
    nrf_esb_config.payload_length           = 252;
    nrf_esb_config.retransmit_count         = ESB_RETRANSMITS;
    
    tmsi_esb_set_tx_power(ESB_TX_POWER,0);

    err_code = nrf_esb_init(&amp;amp;nrf_esb_config);
    VERIFY_SUCCESS(err_code);

    err_code = nrf_esb_set_base_address_0(base_addr_0);
    VERIFY_SUCCESS(err_code);

    err_code = nrf_esb_set_base_address_1(base_addr_1);
    VERIFY_SUCCESS(err_code);

    err_code = tmsi_esb_set_rf_channel(ESB_RF_CHANNEL);
    VERIFY_SUCCESS(err_code);

    err_code = nrf_esb_set_prefixes(addr_prefix, NRF_ESB_PIPE_COUNT);
    VERIFY_SUCCESS(err_code);
    
    return err_code;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sometimes receiving the packages I am sending over ESB</title><link>https://devzone.nordicsemi.com/thread/241318?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 10:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8646bd03-5a63-4a5a-9637-e79222cc108c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok, could you post your esb configuration, i.e. the esb_init function?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t esb_init( void )
{
    uint32_t err_code;
    uint8_t base_addr_0[4] = {0xE7, 0xE7, 0xE7, 0xE7};
    uint8_t base_addr_1[4] = {0xC2, 0xC2, 0xC2, 0xC2};
    uint8_t addr_prefix[8] = {0xE7, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8 };

#ifndef NRF_ESB_LEGACY
    nrf_esb_config_t nrf_esb_config         = NRF_ESB_DEFAULT_CONFIG;
#else // NRF_ESB_LEGACY
    nrf_esb_config_t nrf_esb_config         = NRF_ESB_LEGACY_CONFIG;
#endif // NRF_ESB_LEGACY
    nrf_esb_config.retransmit_count         = 6;
    nrf_esb_config.selective_auto_ack       = false;
    nrf_esb_config.protocol                 = NRF_ESB_PROTOCOL_ESB_DPL;
    nrf_esb_config.bitrate                  = NRF_ESB_BITRATE_2MBPS;
    nrf_esb_config.event_handler            = nrf_esb_event_handler;
    nrf_esb_config.mode                     = NRF_ESB_MODE_PTX;

    err_code = nrf_esb_init(&amp;amp;nrf_esb_config);
    VERIFY_SUCCESS(err_code);

    err_code = nrf_esb_set_base_address_0(base_addr_0);
    VERIFY_SUCCESS(err_code);

    err_code = nrf_esb_set_base_address_1(base_addr_1);
    VERIFY_SUCCESS(err_code);

    err_code = nrf_esb_set_prefixes(addr_prefix, 8);
    VERIFY_SUCCESS(err_code);

    tx_payload.length  = 3;
    tx_payload.pipe    = 0;
    tx_payload.data[0] = 0x00;

    return NRF_SUCCESS;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sometimes receiving the packages I am sending over ESB</title><link>https://devzone.nordicsemi.com/thread/240952?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 18:15:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78b384bc-76f6-4869-bac1-f8ef6f2370f1</guid><dc:creator>martijnschouten</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;Yes, that is correct.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Martijn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sometimes receiving the packages I am sending over ESB</title><link>https://devzone.nordicsemi.com/thread/240875?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 12:58:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88c457bd-c08f-4447-ba91-94d5ef051ca8</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Martijn,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So if I understand correctly, you get a&amp;nbsp;NRF_ESB_EVENT_RX_RECEIVED after sending 180 ping messages eventhough the receiving device is not powered?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>