Quantcast
Channel: MultiTech Developer Resources » All Posts
Viewing all articles
Browse latest Browse all 7111

Name and passphrase to AppEUI and NetworkKey

$
0
0

In the Conduit web interface there is the option to give network credentials either as Name and Passphrase or EUI and Key.

I have two devices, one expects Name and Passphrase, the other EUI and Key.
I have setup the conduit up for Name and Passphrase but now want the other device to also connect.

Is it possible to generate a valid EUI and Key from Name and Passphrase?

The AT command guide says that:

AT+NK: Configured network key/passphrase (App Key in LoraMac) ## AT+NK=0,hex AT+NK=1,passphrase
(Net key = cmac(passphrase)) (16 bytes)

However, to calculate CMAC a key is needed, should this be the Name?

Is the correct calculation, CMAC(Name, Passphrase), where Name is 0×00 padded ASCII?

Thanks.


Viewing all articles
Browse latest Browse all 7111