<?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>Zigbee Sleepy End Device Immediately Sleeps after Joining Network</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45519/zigbee-sleepy-end-device-immediately-sleeps-after-joining-network</link><description>Hello, 
 In my current zigbee project I have a sensor end device which should sleep when possible. I am handling the ZB_COMMON_SIGNAL_CAN_SLEEP event and have added zb_set_rx_on_when_idle(ZB_FALSE) to main. I am not sure if it makes any difference but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Apr 2019 12:53:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45519/zigbee-sleepy-end-device-immediately-sleeps-after-joining-network" /><item><title>RE: Zigbee Sleepy End Device Immediately Sleeps after Joining Network</title><link>https://devzone.nordicsemi.com/thread/179770?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2019 12:53:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b2d2485-1c0e-4cac-a480-683b0c2265bc</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;It turns out that I had apparently not copied everything needed from the Thread and Zigbee SDK into the VisualGDB folder structure. I originally only copied the folders that were obviously added by the Thread and Zigbee SDK but clearly missed some files that had been changed from the standard SDK. Everything is now functioning as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Sleepy End Device Immediately Sleeps after Joining Network</title><link>https://devzone.nordicsemi.com/thread/179546?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 14:33:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:006cbab5-0bb3-4feb-93c0-c4d667ab49bb</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Great, let me know if you need any more follow-up from our side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Sleepy End Device Immediately Sleeps after Joining Network</title><link>https://devzone.nordicsemi.com/thread/179374?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 03:13:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:766a5e42-bbff-4fde-890e-e565e8d4eb83</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;I have done quite a bit more digging on this problem this weekend and think I am getting close to a solution. I modified the makefile included with the light switch example and was able to produce a properly functioning firmware using my project source files from VisualGDB. Unfortunately I haven&amp;rsquo;t gotten VIsualGDB&amp;nbsp;itself to produce a properly functioning firmware but feel comfortable saying that this is a tooling problem. As such, I have a case open with their support to hopefully find a solution.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Sleepy End Device Immediately Sleeps after Joining Network</title><link>https://devzone.nordicsemi.com/thread/179323?ContentTypeID=1</link><pubDate>Sat, 30 Mar 2019 03:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe45978f-6cdd-4b73-8e76-9c092afba075</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;I had not taken the time to test out the light_switch example but have now taken the time to. The good news is that the light_switch example works as expected (using SES). One of the first things I noticed between my firmware and the light_switch example is how when in &amp;quot;sleepy mode&amp;quot;, the &amp;quot;CAN_SLEEP...&amp;quot; event is fired in between each &amp;quot;Failed to join network&amp;quot; event, unlike my firmware.&lt;/p&gt;
&lt;p&gt;After a lot more digging I thinking that the issue lies somewhere in my toolchain and the compiled output. I have been using C++ and VisualGDB (Visual Studio addin, GCC 7.2.0) in this project and have made sure any of the zboss code has been guarded however I am still not seeing the correct behavior. Generally using VisualGDB and C++ has not been an issue but its obviously producing something that isn&amp;#39;t quite right.&lt;/p&gt;
&lt;p&gt;To test further I created a C project in VisualGDB and copied the light_switch example code in. Compiling this project also results in the odd behavior I was experiencing previously.&lt;/p&gt;
&lt;p&gt;Seeing as I am using an unsupported IDE I do not necessarily expect support on that front but is there anything else I can look at? Under the hood VisualGDB is using GCC so I would expect that this issue could be a configuration problem.&lt;/p&gt;
&lt;p&gt;Possibly relevant info below:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Preprocessor Definitions:
DEBUG=1;XENON;CONFIG_GPIO_AS_PINRESET;ENABLE_FEM;FLOAT_ABI_HARD;NRF52840_XXAA;ZB_ED_ROLE=1;ZB_TRACE_LEVEL=0;ZB_TRACE_MASK=0;

(XENON is a custom board definition for the Particle.io Xenon dev board)

Command Line:
-std=gnu++1z -fno-rtti &amp;quot;VisualGDB\Debug\PCH&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/zboss/include/ha&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/zboss/include/osif&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/zboss/include/zcl&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/zboss/include&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/zboss/include/zll&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/zboss/osif&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/zboss/zb_error&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/nRF-IEEE-802.15.4-radio-driver/src&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/nRF-IEEE-802.15.4-radio-driver/src/mac_features&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/nRF-IEEE-802.15.4-radio-driver/src/fem&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/nRF-IEEE-802.15.4-radio-driver/src/raal/single_phy&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/nRF-IEEE-802.15.4-radio-driver/src/raal/simulator&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/nRF-IEEE-802.15.4-radio-driver/src/raal&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/components/libraries/pwm&amp;quot; -I&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/integration/nrfx/legacy&amp;quot; -I&amp;quot;../../../../multi_sensor&amp;quot; -I&amp;quot;../../../Libraries/Bosch/BME280/BME280&amp;quot; -ggdb -O0 -fdata-sections -D&amp;quot;DEBUG=1&amp;quot; -D&amp;quot;XENON&amp;quot; -D&amp;quot;CONFIG_GPIO_AS_PINRESET&amp;quot; -D&amp;quot;ENABLE_FEM&amp;quot; -D&amp;quot;FLOAT_ABI_HARD&amp;quot; -D&amp;quot;NRF52840_XXAA&amp;quot; -D&amp;quot;ZB_ED_ROLE=1&amp;quot; -D&amp;quot;ZB_TRACE_LEVEL=0&amp;quot; -D&amp;quot;ZB_TRACE_MASK=0&amp;quot; -fno-exceptions -ffunction-sections -std=gnu99 &amp;quot;VisualGDB\Debug\&amp;quot; 

Linker Command Line:
-o &amp;quot;H:\Development\VisualGDB\Projects\ZigBeeTemperatureSensor\VisualGDB\Debug\ZigBeeTemperatureSensor&amp;quot; -Wl,-gc-sections -L&amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/zboss/lib/gcc&amp;quot; -T&amp;quot;nRF52840_XXAA_zigbee_nosoftdev.lds&amp;quot; &amp;quot;../../../../Tools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x/15.2/15.2/nRF5x/external/zboss/lib/gcc/nrf_radio_driver.a&amp;quot; -l&amp;quot;zboss.ed&amp;quot; 
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Sleepy End Device Immediately Sleeps after Joining Network</title><link>https://devzone.nordicsemi.com/thread/179181?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 10:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0131ab6b-020c-45e7-82d1-aa7a4f8ba185</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you test the original light_control example in the SDK to see if the Sleepy End Device functionality is working as expected there? You can put the light_switch example in sleepy device mode by holding button 3 (BSP_BUTTON_2) when resetting/powering the board.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>