<?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>Not working modified multilink central by merged uart code in sdk 15.0.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35112/not-working-modified-multilink-central-by-merged-uart-code-in-sdk-15-0</link><description>Hi, 
 I have already working code in nordic sdk 13.1 with eclipse. But we are move to latest sdk v 15.0 for example of central and peripheral. Now every thing i have modified related to sensor and data sending using nus_c is working fine. 
 But in central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Jun 2018 13:24:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35112/not-working-modified-multilink-central-by-merged-uart-code-in-sdk-15-0" /><item><title>RE: Not working modified multilink central by merged uart code in sdk 15.0.</title><link>https://devzone.nordicsemi.com/thread/135371?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 13:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a24db097-0edc-4d05-83b7-bde8ac865093</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have fixed this issue self by changing only build configuration setting Debug to Release in SES. Now everything is working fine. When i compare both example with SES setting then i found this but not understand why this not work when i select debug.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your help and great support...!!!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not working modified multilink central by merged uart code in sdk 15.0.</title><link>https://devzone.nordicsemi.com/thread/135363?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 12:32:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a8de06f-95ff-4829-94b1-a7cb9a5129a4</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;From what I understand, it seems what is happening is that after the first AT response you get on the multilink central example from the WiFi module, the WiFi module then sends the O character. Even if you have sent OK, it seems the second response you get overwrites the A in AT with the O, leaving you with OT. Then, the third response overwrites the T with K, leaving you with OK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not sure this will help, but I would try this code snippet instead of:&amp;nbsp;data[dataCounter++] = ch;&lt;/p&gt;
&lt;p&gt;data[dataCounter+1] = ch;&lt;/p&gt;
&lt;p&gt;dataCounter++;&lt;/p&gt;
&lt;p&gt;I am guessing you have already logged the dataCounter variables in:&amp;nbsp;NRF_LOG_INFO(&amp;quot;else r call: %d&amp;quot;, dataCounter);&lt;/p&gt;
&lt;p&gt;Is there any suspicious behavior there?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not working modified multilink central by merged uart code in sdk 15.0.</title><link>https://devzone.nordicsemi.com/thread/135094?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 09:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33436ebd-4bb6-419b-a5e4-16bed827bd4e</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;I have modified &lt;span&gt;uart_event_handle() function for just solving this error, please see the attached updated uart_event_handle(). This same function i tested in my multilink central example and in sdk 15.0 ble peripheral ---&amp;gt; ble_app_uart example replaced existing&amp;nbsp;uart_event_handle() by this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;void uart_event_handle(app_uart_evt_t * p_event)
{
    static uint8_t ch;
    uint32_t err_code;
    switch (p_event-&amp;gt;evt_type)
    	{
          case APP_UART_DATA_READY:
        	  err_code = app_uart_get(&amp;amp;ch);
        	  if (err_code == NRF_SUCCESS)
        	  {
                    if(ch ==&amp;#39;\n&amp;#39;) {
                            data[dataCounter++] = &amp;#39;\0&amp;#39;;
                            NRF_LOG_INFO(&amp;quot;RESP: %s&amp;quot;,(uint32_t)data);
                            dataCounter = 0;
                    }else 
                      if(ch !=&amp;#39;\r&amp;#39;)
                      {
                        data[dataCounter++] = ch;
//                        NRF_LOG_INFO(&amp;quot;else r call: %d&amp;quot;, dataCounter);
                      }

        	  }else if(err_code == NRF_ERROR_NOT_FOUND)
        	  {
        		  break;
        	  }

           break;
            case APP_UART_TX_EMPTY:
//            sendToWiFi();
                break;
             case APP_UART_COMMUNICATION_ERROR:
             NRF_LOG_INFO(&amp;quot;APP_UART_COMMUNICATION_ERROR&amp;quot;);
             break;
        default:
            break;
    	}
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;see the following log result both of in SES:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt="Multilink central error log" src="https://devzone.nordicsemi.com/resized-image/__size/400x240/__key/communityserver-discussions-components-files/4/multilink-error-log.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Working log image in ble_app_uart:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart-working-well-log.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The same uart_event function i have run in two examples. In my multilink central why it get overwritten first char as see like OT but this is not getting in other example. I want to do same like this in other example when i sent AT it should be return OK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have debugging more time my multilink link example but until not find issue &lt;strong&gt;why it so getting&lt;/strong&gt;&amp;nbsp;&amp;quot;&lt;strong&gt;OT&amp;quot;&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Once this issue solve then my whole wifi code is working as sendTowifi(). Temporary&amp;nbsp;i comment this function due this issue is not depent on that.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In central device i don&amp;#39;t want to send to ble app using&amp;nbsp;ble_nus_c_string_send(&amp;amp;m_ble_nus_c, data_array, index) function so i have remove this function.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Once&amp;nbsp;&amp;nbsp;APP_UART_TX_EMPTY event come means that now uart buffer is empty then we have send next data. Because more data not able to send in one buffer so we are sending sequentially.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have compare both example but not get any difference for uart communication. Still stuck in finding this issue why wifi AT command response repeated in multilink. Please help me..!!&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks..!!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not working modified multilink central by merged uart code in sdk 15.0.</title><link>https://devzone.nordicsemi.com/thread/135073?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 07:45:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a089421a-ab11-4e00-9bd8-827103d4ac66</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I have taken a look at your uart_event_handle() code &amp;amp; it looks ok to me. In general, I would make sure that the line indentation &amp;amp; spacing is a bit more organized to make it easier to understand the code. This might have occurred when you copied &amp;amp; pasted your code into devzone. I have compared your code with the sdk 15 ble_app_uart_c uart_event_handle() code &amp;amp; I noticed that instead of the&amp;nbsp;ble_nus_c_string_send(&amp;amp;m_ble_nus_c, data_array, index) function, you are calling a sendToWifi() function.&lt;/p&gt;
&lt;p&gt;Where is this sendToWifi() function defined?&lt;/p&gt;
&lt;p&gt;Does it do the same as&amp;nbsp;ble_nus_c_string_send() inside ble_nus_c.c of the ble_app_uart_c example?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, why do you call the sendToWifi() function when you have an&amp;nbsp;APP_UART_TX_EMPTY event?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not working modified multilink central by merged uart code in sdk 15.0.</title><link>https://devzone.nordicsemi.com/thread/134891?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 10:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79db6ef0-a400-4cdf-b192-352f0d9993b7</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;I read migration guide as per you suggested me. My multilink central and ble peripheral is working fine and able communicate each of them with uart central service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But problem only in central device for communicate external wifi module via UART. i checked this same uart event handle logic is working in ble_app_uart same sdk 15.0. But why it is not working in central with uart.&lt;/p&gt;
&lt;p&gt;Have you check my above uart_event_handle code is it fine. Because when i put this same in sdk 15.0 ble_app_uart it is working fine. all logs of AT command is not repeated and not overwritten first character.&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not working modified multilink central by merged uart code in sdk 15.0.</title><link>https://devzone.nordicsemi.com/thread/134876?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 09:25:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8a5c7db-1847-40e5-a5ec-13ff8e764aec</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Have you tried to follow the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/migration.html?cp=4_0_0_1_9"&gt;migration guide in the infocenter&lt;/a&gt;? &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/migration.html?cp=4_0_3_1_7"&gt;This migration guide&lt;/a&gt; could also be helpful. I would start there &amp;amp; make sure you have followed all the correct steps first. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29790/multiperipheral-uart-example"&gt;This devzone case&lt;/a&gt; might also be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>