Configure LoRaWAN® Parameters

This section describes how to configure the device transmission parameters for the LoRaWAN® network.

Configure Join Type and Frequency

It is necessary to configure the join type and the frequency to establish communication with LoRaWAN® gateways.

Steps:
  1. On the homepage of ToolBox, click Setting to enter the Setting page.
  2. Navigate to the LoRaWAN page The LoRaWAN page is displayed, see the following figure.

  3. From the Join Type selection box, select OTAA or ABP as needed.
    Note: OTAA is required if you connect the device to the Milesight Development Platform.
  4. Configure Join Type related parameters as needed. You can use default values unless otherwise specified.

    • If OTAA is selected, configure Application Key and Rejoin Mode as needed. For details, refer to the following table.
      Parameter Description
      Application Key
      Appkey for OTAA mode. Default: Device EUI + Device EUI. Example: 24e124123456789024e1241234567890.
      Tip: Contact sales before purchase if you need random App keys.
      Rejoin Mode Rejoin mode for OTAA mode.

      Reporting interval≤35 minutes: The device sends a specific number of LinkCheckReq MAC packets at each reporting interval or every other reporting interval to verify connectivity.

      Reporting interval > 35 minutes: The device sends a specific number of LinkCheckReq MAC packets at each reporting interval to validate connectivity. If there is no response, the device will re-join the network.

      When Rejoin Mode is enabled, enter a number in the Set the number of detection signals sent text box. The actual sending number is the configured number +1.

    • If ABP is selected, configure Network Session Key, Application Session Key and Device Address as needed. For details, refer to the following table.
      Parameter Description
      Network Session Key Nwkskey for ABP mode. Default: 5572404C696E6B4C6F52613230313823.
      Application Session Key Appskey for ABP mode. Default: 5572404C696E6B4C6F52613230313823.
      Device Address DevAddr for ABP mode. Default: 5th to 12th digits of SN.
  5. Select a frequency from the Support Frequency selection box as needed. This must be the same as the frequency configured on the gateway's web GUI.

  6. Click Write in the lower right corner, and put the NFC detection area of the phone close to the NFC antenna of device. If the configuration succeeds, the following page is displayed.

Configure Other LoRaWAN® Parameters

Steps:

  1. On the homepage of ToolBox, click Setting to enter the Setting page.
  2. Navigate to the LoRaWAN page The LoRaWAN page is displayed, see the following figure.

  3. Configure the following parameter as needed. You can use default values unless otherwise specified. For a description of the parameters, refer to the following table.

    Parameter Description
    Device EUI Unique ID of the device labelled on the device housing.
    Tip: For bulk deployments, contact sales to request the device EUI list.
    App EUI The default App EUI (join EUI) is 24E124C0002A0001.
    Application Port Port used for sending and receiving data. Default: 85.
    LoRaWAN® Version Options: V1.0.2, V1.0.3.
    Work Mode Class A or Class B is optional. During the non-heating period, it is fixed in Class A mode.
    Confirmed Mode If the device does not receive ACK packet from network server, it will resend data once.
    Join Type Refer to Configure Join Type and Supported Frequency.
    Supported Frequency Refer to Configure Join Type and Supported Frequency.
    ADR Mode Enables the network server to adjust the spreading factor, the bandwidth and the transmission power to optimize data rates, airtime and energy consumption in the network.
    Spreading Factor If ADR mode is disabled, the device sends uplink data using this spreading factor. A higher spreading factor increases transmission range but reduces data rate and increases power consumption. This parameter varies with Supported Frequency.
    Tx Power Defined by the LoRa Alliance. Specifies the strength of the radio signal transmitted by the device.
    RX2 Data Rate RX2 data rate to receive downlinks.
    RX2 Frequency RX2 frequency to receive downlinks. Unit: Hz
    Ping Slot Periodicity The period to open the ping slot to receive messages when work mode is Class B. Default: 32.
    Tip: The smaller the value, the greater the power consumption.
    Multicast Group Enable or disable multicast groups. For more details, see Configure Multicast Group.
  4. Click Write in the lower right corner, and put the NFC detection area of the phone close to the NFC antenna of device. If the configuration succeeds, the following page is displayed.

Configure Multicast Group

The device supports setting up multiple multicast groups to receive multicast commands from the network server, allowing users to control devices in bulk.

Prerequisites: The work mode of the device is Class B.

Step 1. Enable Multicast Group on the Device
  1. On the homepage of ToolBox, click Setting to enter the Setting page.
  2. On the top bar, select Network tab.

  3. In the LoRaWAN page, ensure the Application Port of each device is the same.
  4. Enable a Multicast Group, and configure the following parameter as needed. You can use default values unless otherwise specified. For a description of the parameters, refer to the following table.
    Parameter Description
    Multicast Address Unique 8-digit address to distinguish multicast groups.
    McNetSKey 32-digit key. Default values:

    - Multicast Group 1: 5572404C696E6B4C6F52613230313823
    - Multicast Group 2: 5572404C696E6B4C6F52613230313824
    - Multicast Group 3: 5572404C696E6B4C6F52613230313825
    - Multicast Group 4: 5572404C696E6B4C6F52613230313826

    McAppSKey 32-digit key. Default values:

    - Multicast Group 1: 5572404C696E6B4C6F52613230313823
    - Multicast Group 2: 5572404C696E6B4C6F52613230313824
    - Multicast Group 3: 5572404C696E6B4C6F52613230313825
    - Multicast Group 4: 5572404C696E6B4C6F52613230313826

    Multicast Ping Slot Periodicity/s

    The period to open the ping slot to receive multicast commands.

    Multicast Data Rate

    The data rate to receive multicast commands.

    Multicast Frequency

    The frequency to receive multicast commands. Unit: Hz
  5. (Optional) To enable another multicast group, follow the above step to configure the corresponding group.
  6. Click Write in the lower right corner, and put the NFC detection area of the phone close to the NFC antenna of device. If the configuration succeeds, the following page is displayed.

Step 2. Add a Multicast Group on the Network Server

The following steps use a Milesight gateway as an example. For other network servers, please refer to corresponding guides.

  1. Ensure the target devices are added to this gateway and have joined to the network.
  2. On the gateway web GUI, navigate to Network Server> Multicast Groups page.

  3. Click Add to add a multicast group.
  4. Configure the multicast group parameters to match those configured on ToolBox and select the devices that you need to control.

  5. Click Save to save this multicast group.
  6. Click Packets tab in the upper right corner.
  7. In the Send Data to Multicast Group section, select the multicast group from the Multicast Groups drop-down list and configure the downlink command parameters.
  8. Click Send. The network server broadcasts the command to all devices in this multicast group.