User's Manual

WISE-1510 User Manual 38
Appendix I: Node Setup Parameters
In the sample application, there is a function node_set_config() as below:
This function is used to configure all parameters of nodes. Let’s go through them
briefly.
1. Device EUI (DevEUI) is read from eFuse, and set without any change.
2. Two application dependent parameters, application EUI (AppEUI) and application
key (APPKey), are set respectively (line 218 and 219).
3. Device address (DevAddr) is derived from DevEUI by extracting the last 8 bytes
(line 220), and set (line 221). It’s up to users to define the format as long as it
matches with gateway’s setting.
4. Two session keys: network session key (NwkSKey) and application session key
(AppSKey) are set (line 222 and 223).
5. So far, all required parameters for node activation are set properly. Then, you can
decide to activate the node by either ABP (Activation By Provisioning) or OTAA
(Over-The-Air Activation). Here, we set it to ABP (line 224). Please be noted that,
only three of the above parameters are used for ABP, including DevAddr,
NwkSKey and AppSKey. If you’d like to use OTAA, then change the input
parameter of nodeApiSetDevActMode() from 2 to 1. The other three parameters
are used for OTAA, including DevEUI, AppEUI, and APPKey are set.
6. Select nodes to work with LoRaWAN or Harmony Link by setting the device