<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Configurations of Zigbee</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88857/configurations-of-zigbee</link><description>Hi, I am working the Zigbee in nrf connect SDK 1.9.1 I am running light_bulb, switch and coordinator examples 
 I want to change the panid , Short id, via proj.conf 
 how to set the panid from proj.conf</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 13 Jun 2022 12:58:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88857/configurations-of-zigbee" /><item><title>RE: Configurations of Zigbee</title><link>https://test-devzone.nordicsemi.com/thread/372157?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 12:58:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a5876b2-aa7e-4778-afce-70150659c23b</guid><dc:creator>user107683</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]I want to change the panid , Short id, via proj.conf[/quote]
&lt;p&gt;When you say short id, do you mean the short address/network address?&lt;/p&gt;
[quote user=""]how to set the panid from proj.conf[/quote]
&lt;p&gt;You can set the PAN ID with the function&amp;nbsp;&lt;span&gt;ZB_PIBCACHE_PAN_ID(); from the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.thread_zigbee.v1.0.0%2Fgroup__nwk__api.html"&gt;NWK functions API&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This function must be called before the stack starts, i.e before zigbee_enabled() is called in main. If you desire to set this in proj.conf you must create a Kconfig file (or use the existing one if there is one) and add the Kconfig option&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;source &amp;quot;Kconfig.zephyr&amp;quot;

config ZIGBEE_PAN_ID
    hex &amp;quot;Zigbee PAN ID&amp;quot;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Then define CONFIG_ZIGBEE_PAN_ID=0xyour-pan-id (i.e the ID you want in hexavalue) and set the PAN ID as&amp;nbsp;ZB_PIBCACHE_PAN_ID() =&amp;nbsp;CONFIG_ZIGBEE_PAN_ID; in your application&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Let me know if this helps,&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>