<?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>BLE disconnects when LTE publish data in Fanstel module PKBLG840F</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110925/ble-disconnects-when-lte-publish-data-in-fanstel-module-pkblg840f</link><description>Hi, 
 I am developing an application where the nrf52840dk acts as peripheral device and sends data to nrf52840 of fanstel module. The fanstel nrf52840 acts as an central device. The data is relayed via UART to fanstel nrf9160. 
 A note: I am using fanstel</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 May 2024 13:44:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110925/ble-disconnects-when-lte-publish-data-in-fanstel-module-pkblg840f" /><item><title>RE: BLE disconnects when LTE publish data in Fanstel module PKBLG840F</title><link>https://devzone.nordicsemi.com/thread/483076?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 13:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97c001e8-f536-4e63-b476-8a6be7092d37</guid><dc:creator>Surya09</dc:creator><description>&lt;p&gt;fixed it! in the config, I turned off the logging.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects when LTE publish data in Fanstel module PKBLG840F</title><link>https://devzone.nordicsemi.com/thread/482463?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 09:25:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ca736ce-1046-41f1-84a6-6eff2f43528f</guid><dc:creator>Surya09</dc:creator><description>&lt;p&gt;Hi&lt;a href="https://devzone.nordicsemi.com/members/charlie-shao"&gt;Charlie&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for reply.&lt;/p&gt;
&lt;p&gt;But, I not using nRF SDK Connect which has Zephyr support. Instead I am developing application using nrf52840_sdk.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects when LTE publish data in Fanstel module PKBLG840F</title><link>https://devzone.nordicsemi.com/thread/482461?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 09:20:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64b07bad-6c61-4271-a5a5-793383df00ff</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Siddharth,&lt;/p&gt;
&lt;p&gt;In the&amp;nbsp;uart_event_handle, you can try to use k_work_submit to fire a work to send a message through BLE instead of using&amp;nbsp;ble_nus_c_string_send since it is inside interrupt.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/connectivity_bridge/README.html"&gt;Connectivity bridge&lt;/a&gt;&amp;nbsp;application do the exact job as nRF52840&amp;nbsp;on&amp;nbsp;&lt;span&gt;BLG840F according to your description. You can also try to refer to its source codes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects when LTE publish data in Fanstel module PKBLG840F</title><link>https://devzone.nordicsemi.com/thread/482297?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 13:32:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0761bdfa-23f3-4fc1-9b59-02e930466e9b</guid><dc:creator>Surya09</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/charlie-shao"&gt;Charlie&lt;/a&gt;&amp;nbsp;sorry I meant, the uart_event_handler.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void uart_event_handle(app_uart_evt_t * p_event)
{
  
    //static uint8_t data_array[BLE_NUS_MAX_DATA_LEN];
    //static uint16_t index = 0;
    //uint32_t ret_val;

    //switch (p_event-&amp;gt;evt_type)
    //{
    //    /**@snippet [Handling data from UART] */
    //    case APP_UART_DATA_READY:
    //        UNUSED_VARIABLE(app_uart_get(&amp;amp;data_array[index]));
    //        index++;

    //        if ((data_array[index - 1] == &amp;#39;\n&amp;#39;) ||
    //            (data_array[index - 1] == &amp;#39;\r&amp;#39;) ||
    //            (index &amp;gt;= (m_ble_nus_max_data_len)))
    //        {
    //            NRF_LOG_DEBUG(&amp;quot;Ready to send data over BLE NUS&amp;quot;);
    //            NRF_LOG_HEXDUMP_DEBUG(data_array, index);

    //            do
    //            {
    //                ret_val = ble_nus_c_string_send(&amp;amp;m_ble_nus_c, data_array, index);
    //                if ( (ret_val != NRF_ERROR_INVALID_STATE) &amp;amp;&amp;amp; (ret_val != NRF_ERROR_RESOURCES) )
    //                {
    //                    APP_ERROR_CHECK(ret_val);
    //                }
    //            } while (ret_val == NRF_ERROR_RESOURCES);

    //            index = 0;
    //        }
    //        break;

    //    /**@snippet [Handling data from UART] */
    //    case APP_UART_COMMUNICATION_ERROR:
    //        NRF_LOG_ERROR(&amp;quot;Communication error occurred while handling UART.&amp;quot;);
    //        APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);
    //        break;

    //    case APP_UART_FIFO_ERROR:
    //        NRF_LOG_ERROR(&amp;quot;Error occurred in FIFO module used by UART.&amp;quot;);
    //        APP_ERROR_HANDLER(p_event-&amp;gt;data.error_code);
    //        break;

    //    default:
    //        break;
    //}
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects when LTE publish data in Fanstel module PKBLG840F</title><link>https://devzone.nordicsemi.com/thread/482293?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 13:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:336c34c6-d0a2-4305-9d90-725b71f5562f</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Siddharth,&lt;/p&gt;
&lt;p&gt;Do you mean uart_cb function in nRF9160.c cause the&amp;nbsp;issue?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I feell confuse how it would affect&amp;nbsp;&lt;span&gt;sending data from Fanstel nrf52840 to nrf52840dk, since&amp;nbsp;uart_cb&amp;nbsp;only receive data from nRF9160 serial port and send it through MQTT.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnects when LTE publish data in Fanstel module PKBLG840F</title><link>https://devzone.nordicsemi.com/thread/482196?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 08:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48bab9e2-1663-425c-9e76-ea54445459fe</guid><dc:creator>Surya09</dc:creator><description>&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;The UART callback was creating the issue. When I commented it out, it works but the downside is that I won&amp;#39;t be able to send data from Fanstel nrf52840 to nrf52840dk. So, not still sure what&amp;#39;s the issue is?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>