<?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>How to get short PAN Id of coordinator?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82021/how-to-get-short-pan-id-of-coordinator</link><description>Hello Nordic support, 
 I am using nRF5 SDK for a Zigbee coordinator application. In zboss_api.h, I see that there are functions for setting short pan id (zb_set_pan_id()), long address (zb_set_long_address()) and extended pan id (zb_set_extended_pan_id</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Nov 2021 10:15:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82021/how-to-get-short-pan-id-of-coordinator" /><item><title>RE: How to get short PAN Id of coordinator?</title><link>https://devzone.nordicsemi.com/thread/340500?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 10:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:065ab3c4-9f92-4484-a5a7-d4dca5c969e7</guid><dc:creator>anusha_14</dc:creator><description>&lt;p&gt;Thanks, Marte for this suggestion. This worked for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get short PAN Id of coordinator?</title><link>https://devzone.nordicsemi.com/thread/340498?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 10:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b421a6a7-7b6e-40af-b749-5a878215edc1</guid><dc:creator>anusha_14</dc:creator><description>&lt;p&gt;Thanks, Garo for this suggestion. This worked for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get short PAN Id of coordinator?</title><link>https://devzone.nordicsemi.com/thread/340465?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 08:12:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5d3e1a4-4d3f-4c41-b278-8220120899d6</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Using&amp;nbsp;ZB_PIBCACHE_PAN_ID() as&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/garo"&gt;Garo Demergian&lt;/a&gt; does&amp;nbsp;is the correct way to get the Pan ID of a device.&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: How to get short PAN Id of coordinator?</title><link>https://devzone.nordicsemi.com/thread/340408?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 16:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61f42961-9ec5-42c9-aba0-edab8c2e34ff</guid><dc:creator>Garo Demergian</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am not a Nordic support, and I am not sure if my method is 100% correct but I have been using&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;ZB_PIBCACHE_PAN_ID&lt;/span&gt;&lt;span&gt;()&amp;nbsp;&lt;/span&gt;from zboss_api_nwk.h&lt;/div&gt;
&lt;div&gt;it returns an unsigned short in hex.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;printf&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;PAN ID: 0x&lt;/span&gt;&lt;span&gt;%04hx&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;ZB_PIBCACHE_PAN_ID&lt;/span&gt;&lt;span&gt;());&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;in my case this prints&amp;nbsp; PAN ID: 0xd270&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I hope this was helpful&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;//Garo&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>