how to read JN5169 userdata?

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read JN5169 userdata?

309 Views
Contributor II

Hello,

According to JN-UG-3099, we can write MAC address, AES key and userdata in an OTP area of the JN5169.

3 x 128 bits words are reserved for user data. That is said, now how the application firmware can read these words?

Best regards

Benoit

Labels (2)
8 Replies

22 Views
Contributor I

yeah have been facing this issue since last couple of days....I hope i get an appropriate solution here myccpay

0 Kudos

22 Views
NXP TechSupport
NXP TechSupport

Hi, 

These are attached in the zip and should be copied into the Componenets\HardwareAPI\Include Folder of your SDK.

Reads back the MAC address. Passing TRUE in bReadCustomerMACID causes the customer MAC address to be read, otherwise, the default MAC address is read.

PUBLIC bool_t bAHI_ReadMACID(

           bool_t   bReadCustomerMACID,

           uint64  *pu64CustomerMACId);‍‍‍‍‍

Reads back the security key.

PUBLIC bool_t bAHI_ReadUserData(

           uint8    u8UserFieldIndex,

           uint32   au32userData[4]);‍‍‍‍‍

Reads back user data.

PUBLIC bool_t bAHI_ReadUserData(

           uint8    u8UserFieldIndex,

           uint32   au32userData[4]);‍‍‍‍‍

Hope it helps.

Regards,

Mario

0 Kudos

22 Views
Contributor II

Hi Mario,

Thank you, yes I think it will help me.

Best regards

<https://www.otodo.com/>

33 avenue du Maine

75015 Paris

www.otodo.com<http://www.otodo.com/>;

Benoit Roué

Lead Developer Embedded Software

benoit.roue@otodo.com<mailto:benoit.roue@otodo.com>

06.64.52.10.20

<https://www.facebook.com/OtodoOfficiel/>[Twitter icon]<https://twitter.com/OtodoOfficiel>[Linkedin icon]<https://www.linkedin.com/company/otodo/?lipi=urn%3Ali%3Apage%3Ad_flagship3_company_admin%3BJ1FpXoKeRwWGYatbYhzdaQ%3D%3D>[Youtube icon]<https://www.youtube.com/channel/UCHC7TXW-IldDkKhoZ8MAfMA?view_as=subscriber>

De : mario_castaneda <admin@community.nxp.com>

Envoyé : mardi 28 mai 2019 22:20

À : benoit roue <benoit.roue@otodo.com>

Objet : Re: - Re: how to read JN5169 userdata?

NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Re: how to read JN5169 userdata?

reply from Mario Ignacio Castaneda Lopez<https://community.nxp.com/people/mario_castaneda?et=watches.email.thread> in Wireless Connectivity - View the full discussion<https://community.nxp.com/message/1157392?commentID=1157392&et=watches.email.thread#comment-1157392>

22 Views
NXP TechSupport
NXP TechSupport

Hi Benoit,

Please look at the next community post.

https://community.nxp.com/thread/488670

Regards,

Mario

0 Kudos

22 Views
Contributor II

Hi Mario,

Thank you for your fast reply. In the mentioned community post, they only talk about the MAC address.

However, my question is about the 3 words of userdata, here is how to write it in the chip:

Once these date are written, how read them from the application firmware?

Best regards

<https://www.otodo.com/>

33 avenue du Maine

75015 Paris

www.otodo.com<http://www.otodo.com/>;

Benoit Roué

Lead Developer Embedded Software

benoit.roue@otodo.com<mailto:benoit.roue@otodo.com>

06.64.52.10.20

<https://www.facebook.com/OtodoOfficiel/>[Twitter icon]<https://twitter.com/OtodoOfficiel>[Linkedin icon]<https://www.linkedin.com/company/otodo/?lipi=urn%3Ali%3Apage%3Ad_flagship3_company_admin%3BJ1FpXoKeRwWGYatbYhzdaQ%3D%3D>[Youtube icon]<https://www.youtube.com/channel/UCHC7TXW-IldDkKhoZ8MAfMA?view_as=subscriber>

De : mario_castaneda <admin@community.nxp.com>

Envoyé : vendredi 17 mai 2019 02:16

À : benoit roue <benoit.roue@otodo.com>

Objet : Re: - Re: how to read JN5169 userdata?

NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Re: how to read JN5169 userdata?

reply from Mario Ignacio Castaneda Lopez<https://community.nxp.com/people/mario_castaneda?et=watches.email.thread> in Wireless Connectivity - View the full discussion<https://community.nxp.com/message/1152774?commentID=1152774&et=watches.email.thread#comment-1152774>

0 Kudos

22 Views
NXP TechSupport
NXP TechSupport

Hi Benoit,

File zps_apl_aib.h

typedef struct
{
    uint32 u32OutgoingFrameCounter;
    uint16 u16ExtAddrLkup;
    uint8  au8LinkKey[ZPS_SEC_KEY_LENGTH];
} ZPS_tsAplApsKeyDescriptorEntry;

ZigBee 3.0 Stack User Guide

ZPS_psGetActiveKey

Regards,

Mario

0 Kudos

22 Views
Contributor II

Hi Mario,

Since this function is doing a search by using a IEEE address, it doesn't tell me how to use it for reading raw data from the userdata.

Is there a particular way to write the userdata first?

Best regards

0 Kudos

22 Views
NXP TechSupport
NXP TechSupport

Hi Benoit,

You can find your own address in the next struct  MAC_ExtAddr_s; mac_sap_CombineMac.h.

Please look at the https://www.nxp.com/docs/en/user-guide/JN-RM-2013.pdf

typedef tuAES_Block AESSW_Block_u;

Regards,

Mario

0 Kudos