<?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>M_Coms: packet lost on Smart Remote</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47840/m_coms-packet-lost-on-smart-remote</link><description>Hi all, 
 
 I am working on the Smart remote and when &amp;quot;spamming&amp;quot; a lot of key simultaneously, I sometimes get a warning &amp;quot;m_coms : packet lost&amp;quot; and then a disconnection. 
 And then even when coming back into a normal use of the remote, I reconnect and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 May 2019 11:50:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47840/m_coms-packet-lost-on-smart-remote" /><item><title>RE: M_Coms: packet lost on Smart Remote</title><link>https://devzone.nordicsemi.com/thread/189615?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 11:50:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:122f1df7-6fb8-4663-a54b-027bcabc2fb6</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi sguitton01,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the queues are initialized in m_coms.c (serach for&amp;nbsp;NRF_QUEUE_DEF) and their size is determined by the&amp;nbsp;CONFIG_AUDIO_FRAME_POOL_SIZE. This define is used for all the queues, i.e. keys, audio and AATV for some reason.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;typedef struct
{
    m_coms_data_desc_t *p_current_data_desc;     /**&amp;lt; Descriptor of the data that is currently transmitted. */
    const nrf_queue_t  *p_backlog;               /**&amp;lt; Transmission queue. */
} m_coms_channel_t;

#if CONFIG_AUDIO_ENABLED &amp;amp;&amp;amp; CONFIG_AUDIO_HID_ENABLED
static m_coms_channel_t m_coms_audio_hid_channel;  /**&amp;lt; Audio channel (HID service) */

/**@brief Backlog queue for audio channel. */
NRF_QUEUE_DEF(m_coms_data_desc_t *,
              m_coms_audio_hid_channel_backlog,
              (CONFIG_AUDIO_FRAME_POOL_SIZE - 1),
              NRF_QUEUE_MODE_NO_OVERFLOW);
#endif /* CONFIG_AUDIO_ENABLED &amp;amp;&amp;amp; CONFIG_AUDIO_HID_ENABLED */

#if CONFIG_AUDIO_ENABLED &amp;amp;&amp;amp; CONFIG_AUDIO_ATVV_ENABLED
static m_coms_channel_t m_coms_audio_atvv_channel; /**&amp;lt; Audio channel (ATVV service) */

/**@brief Backlog queue for audio channel. */
NRF_QUEUE_DEF(m_coms_data_desc_t *,
              m_coms_audio_atvv_channel_backlog,
              (CONFIG_AUDIO_FRAME_POOL_SIZE - 1),
              NRF_QUEUE_MODE_NO_OVERFLOW);
#endif /* CONFIG_AUDIO_ENABLED &amp;amp;&amp;amp; CONFIG_AUDIO_ATVV_ENABLED */

static m_coms_channel_t m_coms_keys_channel;       /**&amp;lt; Keys channel. */

/**@brief Backlog queue for keys channel. */
NRF_QUEUE_DEF(m_coms_data_desc_t *,
              m_coms_keys_channel_backlog,
              (CONFIG_AUDIO_FRAME_POOL_SIZE - 1),
              NRF_QUEUE_MODE_NO_OVERFLOW);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So try to increase the&amp;nbsp;CONFIG_AUDIO_FRAME_POOL_SIZE in teh&amp;nbsp;sr3_config_nrf52832_pca63519\pca20023\custom.h file and see if that resolves the issue.&amp;nbsp;&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>