<?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>ncp host simple gateway connection problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90972/ncp-host-simple-gateway-connection-problem</link><description>Hi 
 I&amp;#39;ve recently been working on the ncp host example provided by nordic. after downloading the standalone version from the site, I tried programming the 2 nRF 52840 dk boards of mine with the provided USB-communication firmware in the downloaded file</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Oct 2022 14:47:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90972/ncp-host-simple-gateway-connection-problem" /><item><title>RE: ncp host simple gateway connection problem</title><link>https://devzone.nordicsemi.com/thread/389672?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 14:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a5057ab-a3b5-4989-a9dd-446834c470d8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Seems like something went wrong in your SDK install. I would recommend checking out v.2.1.0, and use the latest Toolchain Manager to install it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncp host simple gateway connection problem</title><link>https://devzone.nordicsemi.com/thread/382368?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 05:28:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aa88528-7e1e-47f7-aa76-e52b99a20432</guid><dc:creator>Farbod</dc:creator><description>&lt;p&gt;hi dear sigurd,&lt;/p&gt;
&lt;p&gt;for some clarifications I followed these steps:&lt;/p&gt;
&lt;p&gt;1. I created a ncp application in vscode (nRF connect SDK v. 2.0.0)&lt;/p&gt;
&lt;p&gt;2. I created a build configuration&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. in the process of building the configuration for my nRF 52840 dk I got&amp;nbsp; this error:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In file included from low_level/zbncp_mem.c:47:&lt;/span&gt;&lt;br /&gt;&lt;span&gt;low_level/zbncp_debug.h:73:3: error: static assertion failed: &amp;quot;Static assertion failed&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;73 | &amp;nbsp; _Static_assert((cond), &amp;quot;Static assertion failed&amp;quot;);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; ^~~~~~~~~~~~~~&lt;/span&gt;&lt;br /&gt;&lt;span&gt;low_level/zbncp_mem.c:49:1: note: in expansion of macro &amp;lsquo;ZBNCP_DBG_STATIC_ASSERT&amp;rsquo;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;49 | ZBNCP_DBG_STATIC_ASSERT(&lt;/span&gt;&lt;span&gt;sizeof(void*) &amp;lt;= sizeof(zbncp_uintptr_t))&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; | ^~~~~~~~~~~~~~~~~~~~~~~&lt;/span&gt;&lt;br /&gt;&lt;span&gt;make[1]: *** [../../src/Options:138: low_level/zbncp_mem.o] Error 1&lt;/span&gt;&lt;br /&gt;&lt;span&gt;make[1]: Leaving directory &amp;#39;/root/nrf/src/ncp&amp;#39;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;make: *** [Makefile:69: bldall] Error 2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. I tried to add the path in the compiler settings as well as the Cmake file but there was no use do it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I gave up building the ncp application in&amp;nbsp; VSCode soon after I found the standalone ncphost zip files in the nordic site at the link I provided in this ticket.( as of now I call this standalone ncp host file as &amp;quot;X&amp;quot;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5. I extracted X&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;6. in X/ncp_fw directory there exist some binary firmware for supported boards. I used the nrf52840dk one with USB CDC ACM connection&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;7. I programmed both of my nRF52840dk boards with the mentioned firmware by the use of this command:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;nrfjprog &amp;ndash;program ncp_fw/&amp;lt;firmware.usb&amp;gt; &amp;ndash;chiperase &amp;ndash;reset&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;8. here I build the ZBOSS libraries and sample applications by the use of make command&lt;/p&gt;
&lt;p&gt;9.I used the built simple_gw application on one of the boards by this command:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;NCP_SLAVE_PTY=/dev/ttyACM0 ./application/simple_gw/simple_gw&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;10. I used the built bulb application on the other board by this command:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;NCP_SLAVE_PTY=/dev/ttyACM1 ./application/light_sample/dimmable_light/bulb&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;11. after that the terminals get blocked which means the applications are running. two log files are generated which I save them as a text file and uploaded them here next to this ticket : &amp;quot;bulb.txt&amp;quot; for bulb and &amp;quot;simple_gw.txt&amp;quot; for simple_gw&lt;/p&gt;
&lt;p&gt;12. at the first glance it seems ok and the applications are running but the thing is neither of the LEDs on neither of the boards even turns on for even a single time let alone blinking etc.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;here is some of my questions:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; in both of the log files, after initialization process, there exist some TX, RX status. what are these two refer to. is TX my computer and RX the boards? or is the TX simple_gw board and RX the bulb board?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. next to these TX, RX status there is time out part with a really large number ( it seems an overflow occurred ) is that normal?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3. then there is a &amp;quot;ACK size&amp;quot; part which is set to zero. is that normal??&lt;/p&gt;
&lt;p&gt;4. why didn&amp;#39;t any of the LEDs blink?&lt;/p&gt;
&lt;p&gt;5. when I turn the bulb board off and then on with the physical switch on the board, nothing printed in the simple_gw log file. should something get printed here? the bulb log file prints error indicating the board gets disconnected, though.&lt;/p&gt;
&lt;p&gt;6.&amp;nbsp;&lt;span&gt;&amp;nbsp;when I turn the simple_gw board off and then on with the physical switch on the board, nothing printed in the bulb log file. should something get printed here? the simple_gw log file prints error indicating the board gets disconnected, though.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;7. I added a single line of code to the simple_gw application code:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;zb_uint32_t firmw = ncp_host_get_firmware_version();&lt;br /&gt; printf(&amp;quot;%u \n&amp;quot;, firmw);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and then it prints 0. could a firmware version really be 0?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;my observation is that there is a connection problem;&amp;nbsp; Either the connection between my computer and the board or the connection between the two boards can&amp;#39;t be established well. other possibility&amp;nbsp;is that either of the firmware or the application source files have problem which seems rather strange.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;d be happy if you guide me through the parts I did wrong.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;farbod&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncp host simple gateway connection problem</title><link>https://devzone.nordicsemi.com/thread/382241?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 11:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdaaba5f-b9a0-4633-9eb8-219fcd077fe9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]furthermore, I&amp;#39;d like to know what things I should expect as an output of this demonstration.[/quote]
&lt;p&gt;Here is the documentation you can follow when testing this:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/zigbee/ncp/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/zigbee/ncp/README.html&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&amp;quot;&lt;span&gt;The gateway then starts discovering the On/Off cluster. When it is found, the simple gateway configures bindings and reporting for the device. It then starts sending On/Off toggle commands with a 15-second interval that toggle the&amp;nbsp;&lt;/span&gt;&lt;strong&gt;LED 4&lt;/strong&gt;&lt;span&gt;&amp;nbsp;on the light bulb on and off.&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncp host simple gateway connection problem</title><link>https://devzone.nordicsemi.com/thread/381843?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 17:48:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e27b198d-e5e0-4a27-b587-56ea768e5225</guid><dc:creator>Farbod</dc:creator><description>&lt;p&gt;I am using nrf connect sdk version 2.0.0&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The thing is I couldn&amp;#39;t build the ncp sample so I downloaded its standalone pre built binary firmware from the nordic site. For the host side I built the simple gw sample available in that downlaoded standalone file so it seems rather irrelevant to the sdk and its version&lt;/p&gt;
&lt;p&gt;I Also provided the link with which I downloaded that standalone file&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncp host simple gateway connection problem</title><link>https://devzone.nordicsemi.com/thread/381828?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 15:46:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57be17b5-6535-412a-ade7-70753d5fddbc</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""] I built a bulb application as a ZR on one board and a simple_gw application as ZC on the other.[/quote]
&lt;p&gt;What SDK and SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>