Download Print this page
Laird Sentrius RG1 Series Configuration Manual

Laird Sentrius RG1 Series Configuration Manual

Senet_nodered setup
Hide thumbs Also See for Sentrius RG1 Series:

Advertisement

Quick Links

A
Version 1.2

Advertisement

loading
Need help?

Need help?

Do you have a question about the Sentrius RG1 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Laird Sentrius RG1 Series

  • Page 1 Version 1.2...
  • Page 2 Seokwoon Yoon Chris Boorman according to the new firmware v5.4 Updated Figure 1 to include wireless 14 Jan 2020 Dave Drogowski Sue White protocols Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 3 Troubleshooting Tips for Sentrius Gateway Connections ..................26 11.2 Troubleshooting Tips for Senet Connections ......................26 11.3 Troubleshooting Tips for node_RED (MQTT Broker Links) Connections ..............26 Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 4 To do this, complete the steps described in the Factory Reset section of the RG1xx User Guide. You can access this guide on the RG1xx product page from the Documentation tab. Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 5 Attach the two shorter antennas to the 2.4/5.5 GHz (Wi-Fi) ports. Attach the third and longer antenna to the 868 MHz/900 MHz (LoRa) port. Figure 3: Antenna configuration Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 6 Once the gateway is finished updating the firmware, follow the on-screen instructions to reboot the device. This requires a login using your updated profile credentials. Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 7 Create New Account in the lower right of the window to start the process as shown in Figure 7. If you already have an account, click Login and skip to step four. Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 8 Log in to Senet after the email is verified. (Figure 8) Figure 8: Senet login page The dashboard appears as the home page once logged in. Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 9 (Figure Figure 9: Senet gateway configuration page Follow the prompts. When Select Device Type appears, choose Laird Sentrius (Figure 10). Figure 10: Semtech Packet Forwarder On the next page, register your gateway as shown in Figure 11. For serial number, enter 0x followed by Ethernet MAC...
  • Page 10 + button on Devices & Gateways in Dashboard. Select Register Device. (Figure 13) Figure 13: Device registration Enter Device EUI from the RS191 label. Choose Laird for Device Type. Check the box for Supports Senet Packets. Then, click Register New Device. Note: The Sensor Dev EUI can be found on the bottom of the sensor.
  • Page 11 Click the gear icon for LoRa Radio Settings and Info. (Figure 15) Figure 15: LoRa setting in Sentrius app Update AppEUI and AppKey to the values obtained from Senet. Set Channel Mask to sub-band 1. Choose Packet Format to Laird, along with a desired Packet Type. (Figure 16) Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 ©...
  • Page 12 AppKey is a write only value, while DevEUI and AppEUI are read/write values. For that reason, AppKey does not appear here but it can be written. Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 13 Figure 17: AWS Support Plan Click Services > EC2. Note that it may take up to 24 hours to fully activate the AWS account. Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 14 AWS can now create a key to securely connect the AWS instance via SSH. In the pop-up window, select Create a new key pair and provide a name for key pair. Download Key Pair and Launch Instances. Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 15 Test for connecting to the MQTT broker. Type: mosquitto_sub -h localhost -u <USERNAME> -P <PASSWORD> -t '#' -d -v Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 16 Click the hamburger menu at the upper right corner of the device widget, and then click the gear icon. (Figure 24) Figure 24: RS1xx activated on Senet Click Notification Target tab and choose MQTT in Forward To. (Figure Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 17 Broker Port: 8883 for SSL support and 1883 without SSL Public Topic: application/senet/node/<Client ID>/rx Subscribe Topic: application/senet/node/<Client ID>/tx User name/password: credential for MQTT broker Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 18 USER file location ensures that the correct privileges are assigned to these files; otherwise there may be issues during the install of node-RED packages. Download the JSON files off the website – https://connectivity.lairdtech.com/wireless-modules/lorawan-solutions/sentrius-rs1xx- lora-enabled-sensors Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 19 This brings up the PowerShell Window option. Depending on the Windows version, a Command Prompt or a PowerShell Window will appear. (Figure 28). Figure 28: Opening PowerShell Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 20 For every device you want to add to the list, replace: “<enter a device id here>” with a device ID. The file must be named rs1xx-demo-config.json. The following is an example of a valid config file content: Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 21 To close node-RED, press CTRL-C. Figure 33: node-red-sentrius-rs1xx-demo.jso http://localhost:1880 Open a Chrome web browser to the address: . This launches the node-RED Integrated Development Environment (IDE). (Figure Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 22 To modify the nodes, follow these steps: Click the hamburger menu ( ) in the top right corner, click Configure Nodes. (Figure 35) Figure 35: Configuring nodes Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 23 Once the MQTT client configuration is set and a MQTT connection is established, the communication links display a connected status. Note that all the MQTT nodes on the flow share the same MQTT connection under-the-hood. Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 24 MQTT connection to the Senet server. To pick a different device in the drop-down menu, click the Device ID. Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 25 Figure 39: Device ID Drop-Down Menu Note: Please contact a Laird sales representative if you need help setting up your application to work with the Senet servers and the customizable node-RED user interface. Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved...
  • Page 26 For using TLS, Port 8883 MQTT ▪ The MQTT broker connection can be debugged independently using tool such as the Mosquito Client (https://mosquitto.org/) or MQTT.fx (http://mqttfx.jensd.de/) Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...
  • Page 27 When active, debug node 1 shows all device data sent from the Senet server for the Application ID (set in the Configuration Node). Debug node 2 displays data. Americas: +1-800-492-2320 https://www.lairdconnect.com/iot-devices/iot-sensors Europe: +44-1628-858-940 © Copyright 2019 Laird. All Rights Reserved Hong Kong: +852 2923 0610...