JN5169: How to get the extended address of the current device? (aExtendedAddress)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JN5169: How to get the extended address of the current device? (aExtendedAddress)

Jump to solution
326 Views
AlbertoGallegos
Contributor I

How can I obtain the device's current extended address from the MAC?

I know you can use ZPS_u64AplZdoGetIeeeAddr(); if you are using the zigbee stack. I do not need the zigbee stack. I just want to obtain the extended address from the mac (a.k.a the aExtendedAddress constant).

Please assume I am using an example such as JN-AN-1174.

Any help would be much appreciated.

Regards,

Al.

0 Kudos
1 Solution
309 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @AlbertoGallegos,

Hope you are doing well.

Please, consider that JN5189/88T is preferred for any new Zigbee design.

Perhaps you can refer to this Community Post:

There is an API that could be used to read back the MAC address.

Regards,
Eduardo.

View solution in original post

0 Kudos
4 Replies
269 Views
AlbertoGallegos
Contributor I

Hi @EduardoZamora,

For the moment I do not have access to anything other than JN5169.
Furthermore, I could not access the link you provided, (it says that I have no access privileges to that link).

But perhaps you meant this link:

https://community.nxp.com/t5/Wireless-Connectivity/JN516x-MAC-Address/m-p/619433/highlight/true

I tried the solution described, by accessing to the MCU memory directly.
This is my code:

```

uint8_t extMac[8];

memset(extMac,0, 8);
memcpy(extMac, (uint8 *)(0x01001580), 8);
DBG_vPrintf(TRUE,"--> The ext address %x:%x:%x:%x:%x:%x:%x:%x\n",
   extMac[0],extMac[1],extMac[2],extMac[3],extMac[4],extMac[5],extMac[6],extMac[7]);

```
However, the returned hex numbers are not the extended address of the device (I compared it to the ext address displayed in the bootloader when I flash the device).
Any ideas of what could I be doing wrong?
Any help is much appreciated even though JN5169 is not supported anymore.

Regards,

Al.

0 Kudos
236 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

My apologies, could you please refer to the following Community thread?

how to read JN5169 userdata? - NXP Community

Regards,
Eduardo.

0 Kudos
310 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @AlbertoGallegos,

Hope you are doing well.

Please, consider that JN5189/88T is preferred for any new Zigbee design.

Perhaps you can refer to this Community Post:

There is an API that could be used to read back the MAC address.

Regards,
Eduardo.

0 Kudos
166 Views
AlbertoGallegos
Contributor I

@EduardoZamora  Thank you for your help, you saved me after a lot of frustration looking online.
This API and the added headers did the trick.
I wonder why this is not part of the SDK and why these things are not part of the JN5169 documentation which could you use a real update.   I know I know,  "JN5189 is preferable for newer designs" but still, the statement holds... JN5189 documentation is not any better, there is not even an example that shows how to access the MAC primitives (i.e. not using zigbee or thread).

My experience with this forum is positive with real help offered, but please update your examples and documentation which are minimalistic and short-sighted.

0 Kudos