<?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 CLI default configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69196/zigbee-cli-default-configuration</link><description>Hello, 
 I am developing a Zigbee coordinator with the nRF52840 DK and with the nRF52_SDK_for_Thread_and_Zigbee_v_4.1.0. I flashed the CLI example and everything works fine with it. I created a workspace folder where I copied the CLI example as a base</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Dec 2020 08:49:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69196/zigbee-cli-default-configuration" /><item><title>RE: Zigbee CLI default configuration</title><link>https://devzone.nordicsemi.com/thread/284703?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 08:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02919e4a-81aa-4222-9104-274a5a513cbf</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Damien,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry, I misunderstood.&lt;/p&gt;
&lt;p&gt;I asked a colleague about this, in case you decide to try some more. According to them you&amp;#39;ll have to define a nRF log submodule. You can check out&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__log__instance.html"&gt;these macros for logging on instance level&lt;/a&gt;, and then use&amp;nbsp;NRF_LOG_INST_INFO for logging.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee CLI default configuration</title><link>https://devzone.nordicsemi.com/thread/284449?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 09:09:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d84f9315-2b58-4ac3-92ad-2980f2c23d3c</guid><dc:creator>DaKa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think this is what I am looking for since it is a function from ZBOSS, and I am looking for the general configuration in the SDK, that enables/disables a module to log on client side of the CLI (through UART). The link you sent is about zigbee reports and is not about the configuration I am looking for.&lt;br /&gt;&lt;br /&gt;I lost quite a lot of time so far on this, but couldn&amp;#39;t find a solution. I will drop this configuration and simply send the log enable command from the client side instead.&lt;/p&gt;
&lt;p&gt;Thanks for your help so far.&lt;/p&gt;
&lt;p&gt;BR&lt;br /&gt;Damien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee CLI default configuration</title><link>https://devzone.nordicsemi.com/thread/284080?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 13:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12dd6d4d-0333-470b-9b98-69af7595a025</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Damien,&lt;/p&gt;
&lt;p&gt;Someone did something similar a few years back. Could you try implementing it as described in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48175/how-to-configure-attribute-changes-notifications-on-binding-zigbee/191146#191146"&gt;this comment&lt;/a&gt;&amp;nbsp;by Andreas? The function&amp;nbsp;zb_zcl_put_default_reporting_info() is no longer a part of the library, but you should be able to use&amp;nbsp;zb_zcl_put_reporting_info() instead.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please let me know if this works for you or not.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee CLI default configuration</title><link>https://devzone.nordicsemi.com/thread/284041?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 12:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa2189f2-8601-414b-91ba-395f2ed32058</guid><dc:creator>DaKa</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;br /&gt;About the logging, I checked and played around with the NRF_LOG_XXX macros, but I still need to enable modules from the client side in order to see the logs in the terminal. That is:&lt;br /&gt;- The CLI agent example is running on the nRF52840 DK &lt;br /&gt;- I connect to the serial port using minicom as a CLI client (on my computer)&lt;br /&gt;- I can use the CLI commands in minicom as expected (bdb role, bdb start, zdo, etc...)&lt;br /&gt;- BUT, In order to see the logs in minicom, I need to use the command &amp;quot;&amp;gt; log enable info app&amp;quot; to see logs using NRF_LOG_INFO(...), and the command &amp;quot;&amp;gt; log enable info zigbee.report&amp;quot;&amp;nbsp; to see logs using the NRF_LOG_INST_INFO(...) function.&lt;/p&gt;
&lt;p&gt;So, what I want is to be able to configure default enable/disable when the application is started, so that I don&amp;#39;t need to use the &amp;quot;log enable ...&amp;quot; command on the client side.&lt;br /&gt;&lt;br /&gt;On the client side, before I enable any module log, I get this output:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;gt; log status
module_name                              | current | built-in
----------------------------------------------------------
CLOCK                                    | none    | none
GPIOTE                                   | none    | none
PRS                                      | none    | none
RNG                                      | none    | none
TIMER                                    | none    | none
UART                                     | none    | none
UARTE                                    | none    | none
USBD                                     | none    | none
app                                      | none    | info
app_button                               | none    | none
app_timer                                | none    | none
app_timer.m_bsp_alert_tmr                | none    | none
app_timer.m_bsp_button_tmr               | none    | none
app_timer.m_bsp_leds_tmr                 | none    | none
app_timer.m_cli_uart_transport_timer     | none    | none
app_timer.m_detection_delay_timer_id     | none    | none
app_timer.m_timer_0                      | none    | none
app_usbd                                 | none    | none
app_usbd_core                            | none    | none
atfifo.m_req_fifo                        | none    | none
balloc.log_mempool                       | none    | none
balloc.m_cli_cdc_acm_cmd_hist_memobj     | none    | none
balloc.m_cli_uart_cmd_hist_memobj        | none    | none
cdc_acm                                  | none    | none
cli_uart                                 | none    | none
clock                                    | none    | none
nrf_fstorage                             | none    | info
pwr_mgmt                                 | none    | none
queue.m_cli_cdc_acm_log_backend_queue    | none    | none
queue.m_cli_uart_log_backend_queue       | none    | none
queue.m_rand_pool                        | none    | none
queue.m_rx_queue                         | none    | none
rng                                      | none    | none
sortlist                                 | none    | none
zboss                                    | none    | info
zigbee.cli                               | none    | info
zigbee.eprxzcl                           | none    | info
zigbee.ping                              | none    | info
zigbee.report                            | none    | info
&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Damien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee CLI default configuration</title><link>https://devzone.nordicsemi.com/thread/283843?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 14:15:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:609143cc-ae9f-4327-986d-12ea107b52ed</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Damien,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;For logging you can check out&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__log.html?cp=7_5_0_6_11_30_26#gaf551b1c06b1f34851813e73f00331edc"&gt;NRF_LOG_INST_INFO&lt;/a&gt;, which is the macro used for logging the reports in the CLI example. You can see how this is done in that example by looking at the function print_attr_update() in zigbee_cli_cmd_attr_report.c, line 294. This macro itself is defined in nrf_log.h, which is the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__log.html"&gt;nrf_log module interface&lt;/a&gt;. In order to use this logging module, you must have logging enabled. You can find the configurations for this in sdk_config.h by searching for &amp;quot;nRF_Log&amp;quot;.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;If you want to set any default configurations for the Zigbee device, I would recommend taking a look at some of the other examples in the SDK, such as the light control example, as these things are configured by default in some of those examples.&lt;br /&gt;The role is set when you initialize the Zigbee stack with ZB_INIT(), which is called in main(). In the case where you want your device to be a coordinator you should use ZB_INIT(&amp;quot;zc&amp;quot;). Please note that this function should be called before the stack is started with either zboss_start() or zboss_start_no_autostart(). An example of how this is done can be found on line&amp;nbsp;&lt;span&gt;265 in light_coordinator.c.&lt;/span&gt; You should also include the following in your project, which can be found on lines 73-75 in light_coordinator.c:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#ifndef ZB_COORDINATOR_ROLE
#error Define ZB_COORDINATOR_ROLE to compile coordinator source code.
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>