<?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>Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23922/thread-border-router-v0-10-0-ncp-problem</link><description>Dear experts, 
 I&amp;#39;ve been playing around with Thread since nRF5 SDK for Thread v0.8.0, cloud_coap_client.
I use your Border Router example with NCP example running on nRF52840_Preview_DevKit and a RaspberryPi B. 
 Since I&amp;#39;ve changed to SDK Thread v0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Sep 2017 08:31:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23922/thread-border-router-v0-10-0-ncp-problem" /><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94164?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2017 08:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e3d762b-1a53-4f5c-8f0c-e330601a7e99</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Reto&lt;/p&gt;
&lt;p&gt;Functionally the two are the same, but --chiperase can only be used in combination with the --program command. -e can be used independently.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94163?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 16:18:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf3b5f66-2c03-4385-ae02-a4550728be15</guid><dc:creator>Reto</dc:creator><description>&lt;p&gt;Hi Piotr.&lt;/p&gt;
&lt;p&gt;Thanks for your update. It runs now. What I did:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;I changed to USB-powered operation of the nRF52840 PDK&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I performed &amp;quot;nrfjprog -f -NRF52 -e&amp;quot;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I changed to 1.8V power&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I run my custom code which is based on your CoAP cloud example (via Eclipse)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Everything is ok now. Don&amp;#39;t know why.
I tried a &amp;quot;--chiperase&amp;quot; earlier, it didn&amp;#39;t work. What is the difference between &amp;quot;--chiperase&amp;quot; and &amp;quot;-e&amp;quot;?
Thank you,
Reto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94179?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 07:59:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9366c88d-9f3b-45e9-893e-29bc024e9db4</guid><dc:creator>Piotr Szkotak</dc:creator><description>&lt;p&gt;Hi Reto,
Thank you for the detailed explanation.
I see that you are trying some non default configuration - that way may be harder to isolate the issue.
Personally I would start from powering all kits from the debug USB port and set them to be Full Thread Devices. You are right about the usage of the persistent storage, thread network configuration is kept there. There are two ways of cleaning it: &amp;quot;nrfjprog --chiperase&amp;quot; followed by flashing a hex file or without reflashing &amp;quot;factoryreset&amp;quot; CLI command. I would use it on all nodes before further tests, especially on this particular node that does not work at all now.&lt;/p&gt;
&lt;p&gt;When it comes to the Extended MAC set to 0 it seems that it is shown for the node that is executing the command as you said. It seems like a minor display bug as the &amp;quot;extaddr&amp;quot; command shows the correct MAC.&lt;/p&gt;
&lt;p&gt;I would also make sure that the nRF5x-Command-Line-Tools are in the newest version.&lt;/p&gt;
&lt;p&gt;To sum up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Always perform chiperase before flashing a new firmware.&lt;/li&gt;
&lt;li&gt;Try to power from the USB instead of 1.8V&lt;/li&gt;
&lt;li&gt;Update nrfjprog.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The next possible steps are using a Thread sniffer or tcpdump on the NCP tunnel interface to see if the DNS request gets there and if it is, if the response is sent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94173?ContentTypeID=1</link><pubDate>Sat, 12 Aug 2017 15:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66749336-52a9-4799-8150-aabb3641ada0</guid><dc:creator>Reto</dc:creator><description>&lt;p&gt;Sorry for posting so much, but I am confused. I tested it with 3 modules: all of them show &amp;quot;Extended MAC&amp;quot; address = 0000000000 when I execute the CLI on them.
Then I tested all 3 modules with Eclipse and my code: &lt;strong&gt;1 runs&lt;/strong&gt; and I can upload data to the cloud, &lt;strong&gt;2 of them doesn&amp;#39;t run&lt;/strong&gt; (&lt;strong&gt;they cannot resolve hostname&lt;/strong&gt;).&lt;/p&gt;
&lt;p&gt;Is it possible that the MAC address of two modules are somehow on a &amp;quot;blacklist&amp;quot; in the Thread Border Router?&lt;/p&gt;
&lt;p&gt;Thank you!
Reto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94171?ContentTypeID=1</link><pubDate>Sat, 12 Aug 2017 14:53:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14a7bf80-2516-47d1-9279-4b4f843a9099</guid><dc:creator>Reto</dc:creator><description>&lt;p&gt;My module which shows the problem, has an MAC address of 0000? See here:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;gt; router table
| ID | RLOC16 | Next Hop | Path Cost | LQI In | LQI Out | Age | Extended MAC                                              |
+----+--------+----------+-----------+--------+---------+-----+-----------------                                         -+
| 12 | 0x3000 |       42 |         1 |      3 |       3 |  21 | some MAC address                                          |
| 13 | 0x3400 |       13 |         0 |      0 |       0 |  87 | 0000000000000000                                          |
| 26 | 0x6800 |       42 |         1 |      3 |       3 |   5 | some MAC address                                          |
| 42 | 0xa800 |       12 |         1 |      3 |       3 |   4 | some MAC address                                          |

Done
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94172?ContentTypeID=1</link><pubDate>Sat, 12 Aug 2017 13:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3ce5cff-973e-4060-bf5c-1fc19ba0d801</guid><dc:creator>Reto</dc:creator><description>&lt;p&gt;One more thing: what does work is the command here, which I ran on my CLI Thread node: &amp;quot;dns resolve coap.thethings.io fd00:0064:0123:4567::1&amp;quot;. This means that it should be possible resolving the DNS, but somehow this function here is not able to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;error = otDnsClientQuery(p_instance, &amp;amp;query, dns_response_handler, NULL);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94170?ContentTypeID=1</link><pubDate>Sat, 12 Aug 2017 09:55:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a414c0b-2e66-403f-ad60-5219b00ee1c5</guid><dc:creator>Reto</dc:creator><description>&lt;p&gt;Does this make sense to you? I mean: if error is e.g. OT_ERROR_RESPONSE_TIMEOUT, the m_app.state is still changing to APP_STATE_RUNNING. But host name could not be resolved...&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void dns_response_handler(void * p_context, const char * p_hostname, otIp6Address * p_address,
                                 uint32_t ttl, otError error)
{
    (void)p_context;

    if (m_app.state != APP_STATE_HOSTNAME_RESOLVING)
    {
        return;
    }

    m_app.state = APP_STATE_RUNNING;

    if (error != OT_ERROR_NONE)
    {
        NRF_LOG_INFO(&amp;quot;DNS response error %d.\r\n&amp;quot;, error);
        return;
    }

    // Check if its hostname of interest.
    if (p_hostname == m_cloud_hostname &amp;amp;&amp;amp; ttl &amp;gt; 0)
    {
        m_app.cloud_address = *p_address;
        m_app.state         = APP_STATE_RUNNING;
    }
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94169?ContentTypeID=1</link><pubDate>Sat, 12 Aug 2017 09:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:260bcd38-7d4c-4290-ba9b-e8aac5cf6e13</guid><dc:creator>Reto</dc:creator><description>&lt;p&gt;What I see is that I get this error OT_ERROR_RESPONSE_TIMEOUT when I execute the following function (I see the error OT_ERROR_RESPONSE_TIMEOUT when the function dns_response_handler is called):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;otError otDnsClientQuery(otInstance *aInstance, const otDnsQuery *aQuery, otDnsResponseHandler aHandler, void *aContext);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94168?ContentTypeID=1</link><pubDate>Sat, 12 Aug 2017 08:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6917b2a-7415-4840-8c14-4b30e0a8ecd3</guid><dc:creator>Reto</dc:creator><description>&lt;p&gt;My boards config:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;V0.9.1 (monitor)&lt;/li&gt;
&lt;li&gt;V0.9.1, V0.9.0 --&amp;gt; trieb both (NCP)&lt;/li&gt;
&lt;li&gt;V0.9.0 (COAP clients)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I use ETHERNET, not Wi-Fi on the Raspberry Pi 3 Model B Rev 1.2.&lt;/p&gt;
&lt;p&gt;Problem still persists...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94167?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 15:12:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f315655-6406-4dca-a0c7-48e475f0b797</guid><dc:creator>Reto</dc:creator><description>&lt;p&gt;Note: I have to add that I changed the device type of my COAP client example to SLEEPY END DEVICE and back to normal device (router). But it doesn&amp;#39;t work with either configuration (SED or router).
I don&amp;#39;t know if this may is a problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94166?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 15:08:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:574bea08-1b2c-4e8a-a55c-7eca81f82d0f</guid><dc:creator>Reto</dc:creator><description>&lt;p&gt;Is there something written into the non-volatile memory of the Thread nodes around or in the Border Router? I mean, it looks to me like if there is a problem with the routing of the packets from my Thread node to the internet?&lt;/p&gt;
&lt;p&gt;Reason to believe this: as I started using a brand new development board, things worked well. But after flashing the 2nd time my FW onto this new board, things stopped working again. Same issue with the:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;hostname_resolve(m_app.p_ot_instance, m_cloud_hostname);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Thank you very MUCH!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94177?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 14:43:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b37f73d-29bf-41d5-b049-7405e9ab6bf2</guid><dc:creator>Reto</dc:creator><description>&lt;p&gt;Hi Piotr,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Yes. The Thread network goes down every time I start the 2nd COAP client&lt;/li&gt;
&lt;li&gt;I use RaspberryPi v0.10.0 with NCP 0.10.0 (as you told me I should).&lt;/li&gt;
&lt;li&gt;I think the hostname_resolve is executed every time, because I debug it (Eclipse)&lt;/li&gt;
&lt;li&gt;The order: I cannot tell if the order is the reason. At the moment, I am not able to connect a particular board, even if it is the only COAP client.&lt;/li&gt;
&lt;li&gt;I have the Topology Monitor running all the time (CLI client loaded on a development board).&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I run the nRF in the 1.8V mode. Meaning: the switch VEXT--nRF is set to ON and I supply the 1.8V from an external supply. Does maybe the order of power-up (1st nRF 1.8V, then debugging-circuit 5V) make a difference? I observed that it didn&amp;#39;t work, and as soon as I connected the USB cable the hostname_resolve() was succesfull.
Very strange...&lt;/p&gt;
&lt;p&gt;Thank you so much for your support!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94176?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 12:41:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27507ee4-b52a-408a-a118-b98af8261b56</guid><dc:creator>Piotr Szkotak</dc:creator><description>&lt;p&gt;Another possible way is debugging the second Cloud COAP Client. You can always start the J-Link RTT Viewer and check logs. Additional ones can be added with the NRF_LOG_INFO() macro. Setting breakpoints would also do. I would focus on the dns_response_handler and hostname_resolve function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94175?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 12:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14f52e04-7abd-4706-bfca-bdf210bbb5d7</guid><dc:creator>Piotr Szkotak</dc:creator><description>&lt;p&gt;Hi Reto,
Thank you for the message.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Is the issue shows up every time you power on the second Cloud COAP Client?&lt;/li&gt;
&lt;li&gt;What happens when you use RaspberryPi v0.9.0 image? Is it present as well?&lt;/li&gt;
&lt;li&gt;Why do you think this is the hostname_resolve function is executed all the time?&lt;/li&gt;
&lt;li&gt;What happens if you power on Cloud COAP Clients in a different order?&lt;/li&gt;
&lt;li&gt;Do you have any Thread sniffer available?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;With my limited information about your setup I have recreated it on my desk and see no issues after powering the second Cloud COAP Client. Therefore I can see two ways of getting us further towards solving this issue. First is detailed information about the setup:
A) Board revision(like v0.8.0/v0.9.0), firmware version for each board(what release has been .hex/.img taken from)
B) Steps to reproduce (order in which you power on devices, commands applied and so on)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94174?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 10:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7faa0750-41b1-4f42-8f2c-5079988e5699</guid><dc:creator>Reto</dc:creator><description>&lt;p&gt;Hi Piotr
I tracked it down a little more in detail. The problem starts when I start the 2nd of two Cloud COAP Clients. Then the border router and all the other Thread nodes start fading away from my Thread Monitoring tool. I think the problem is, that my 2nd Cloud COAP Client executes the function:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;hostname_resolve(m_app.p_ot_instance, m_cloud_hostname);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;all the time. The 2nd node just don&amp;#39;t get the hostname resolved. This seems to break down the whole Thread network.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do you have any idea on this?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thank you,
Reto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94165?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 07:31:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fea35f45-eda2-4202-a757-978c6ef40883</guid><dc:creator>Piotr Szkotak</dc:creator><description>&lt;p&gt;Thank you for update. I don&amp;#39;t think that running Cloud COAP example could break anything. Please let me know when you will have more information. If the issue is still there it needs to be sorted out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94178?ContentTypeID=1</link><pubDate>Sat, 05 Aug 2017 07:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1faec78-7c7b-4ebf-b838-3273d56b1785</guid><dc:creator>Reto</dc:creator><description>&lt;p&gt;Thank you Piotr for your answer and your effort.
I tried it several times and it still didn&amp;#39;t work for me. Maybe because I have also a Cloud COAP Client example running on the same network?
Anyway, I cannot change my NCP to 0.10.0 now, as I am running an long-time test and it works great with 0.9.0. and I don&amp;#39;t want to stop it right now. I will give it a try as soon as I&amp;#39;ve set up my 2nd border router.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread Border Router v0.10.0: NCP problem</title><link>https://devzone.nordicsemi.com/thread/94162?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2017 09:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb180fa1-7859-456e-9e09-f86f93391355</guid><dc:creator>Piotr Szkotak</dc:creator><description>&lt;p&gt;Hi Reto,
Thank you for your interest in the Thread Border Router.
I have tested TTM v0.8.0-1.alpha with SDK and BR v0.10.0 - it seems to work fine.
I see all nodes in the TTM and it is possible to connect CLI to the NCP and ping global addresses.&lt;/p&gt;
&lt;p&gt;Could you reflash both kits with the v0.10.0 and the --chiperase flag passed to the nrfjprog during flashing (nrfjprog -f NRF52 --chiperase --program _build/nrf52840_xxaa.hex
--reset)?&lt;/p&gt;
&lt;p&gt;In case the issue is still present please elaborate a bit more on it and attach logs if you think they would help to track the issue. Exact steps to reproduce would be a great hint as well.&lt;/p&gt;
&lt;p&gt;I see that the image has been generated with a correct commit, there is also a binary difference
between the 0.9.0 and 0.10.0 img files. I wouldn&amp;#39;t look for the issue there.&lt;/p&gt;
&lt;p&gt;Kind Regards,
Piotr Szkotak&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>