Seeed Sensecap LoRaWAN User Manual

Seeed Sensecap LoRaWAN User Manual

Lorawan gateway and wireless sensor / how to work with 3rd-party standard lorawan gateway or ttn server

Advertisement

Quick Links

User Guide (Tech Document)
LoRaWAN Gateway and Wireless Sensor
User Guide
How to Work with 3
-party Standard LoRaWAN Gateway or TTN Server
rd
Version: V1.2
1 / 49
© 2008-2019 Seeed Technology Co., Ltd. All rights reserved.
www.seeed.cc

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Sensecap LoRaWAN and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Seeed Sensecap LoRaWAN

  • Page 1 User Guide (Tech Document) LoRaWAN Gateway and Wireless Sensor User Guide How to Work with 3 -party Standard LoRaWAN Gateway or TTN Server Version: V1.2 1 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 2: Table Of Contents

    Gateway Installation ......................... 42 6.2.1 Gateway Installation Methods ..................42 6.2.2 Installation Precautions ....................44 6.2.3 Installing Fiberglass LoRa Antenna ................45 6.2.4 Installing Ground Cable ....................46 2 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 3 Installing Sensor Node ......................47 6.3.1 Installing the Sensor Node Bracket ................47 6.3.2 Installing Sensor Nodes ....................48 6.3.3 Dos and Don’ts in Installing Sensor Probes ..............49 3 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 4: Product Introduction

    SenseCAP includes several versions, such as LoRaWAN, LoRaPP, etc. SenseCAP LoRaWAN version products include LoRaWAN Gateways and Sensor Nodes. Based on the LoRaWAN protocol, it can realize one-to-many, long-distance networking and bilateral communication.
  • Page 5 User Guide (Tech Document) LoRaWAN Gateway: LoRaWAN Sensor Node: 5 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 6: Add Gateway To User's Ttn Server

    User Guide (Tech Document) 2 Add Gateway to User’s TTN Server The SenseCAP LoRaWAN Gateway supports connecting to the user's own The Things Network account and server. Learn more about TTN: https://www.thethingsnetwork.org/docs/ 6 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved.
  • Page 7: Gateway Network Configuration

    (1) Connecting to Ethernet Cable Unscrew to open the protection cap, plug the Ethernet cable through the cap and then into the Ethernet port. Screw to fasten this part. 7 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 8: Connecting To Power Cable

    Unscrew to take off the power cap, plug in the extension cord and screw to fasten it onto the gateway. The other end of the extension cord is connected to the power adapter. 8 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 9: The Function Of The Red Led

    Make sure all antennas are correctly installed before powering on the gateway. Please note the device should be POWERED OFF when installing the antenna, or the antenna circuits might be damaged. 2.1.4 The Function of the Red LED 9 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 10: Setting The Gateway Service Address

    (1) Check the IP of "sensecap" in the background of the router. (2) Enter IP in the browser: IP:8000 If the IP is 192.168.1.1, enter 192.168.1.1:8000 (3) User: sensecap Password: sensecap!!! (4) LoRa→Use Seeed’s Server→Off Button 10 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 11 Refer to the table or website: https://www.thethingsnetwork.org/docs/gateways/packet-forwarder/semtech- udp.html#router-addresses Router address Region router.eu.thethings.network EU 433 and EU 863-870 router.us.thethings.network US 902-928 router.cn.thethings.network China 470-510 and 779-787 router.as.thethings.network Southeast Asia 923 MHz 11 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 12 Australia 915-928 MHz as923.thethings.meshed.com.au Australia (Southeast Asia 923MHz frequency plan) ttn.opennetworkinfrastructure.org Switzerland (EU 433 and EU 863-870) ② Uplink / Downlink Port (default): 1700 (6) APPLY. 12 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 13: Gateway Registration On Ttn

    ① Gateway EUI: View the labels on the gateway. Select ‘I’m using the legacy packet forwarder’. ② Frequency Plan: View the labels on the gateway. ③ Router: Select the router that is right for you. 13 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 14 User Guide (Tech Document) ④ Register. Gateway Status displays connected, indicating successful registration. 14 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 15: Add Sensor Node To User's Ttn Server

    (1) DeviceEUI and DeviceCode is on the SenseCAP product label. (2) SenseCAP sensor device’s AppEUI and AppKey have been flash into the device by Seeed. Use HTTP API to retrieve App EUI and App Key. You can use browser to issue an HTTP GET request.
  • Page 16: Add Application And Appeui

    (1) TTN console → Application → Add application ① Application ID: Enter a unique name. ② Description: Enter a description. ③ Handler registration: Select the same handler as the gateway router. ④ Add application. 16 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 17 User Guide (Tech Document) ① Application → Application EUIS → Manage EUIs. ② →Add EUI. ③ Enter the node’s AppEui that you got in the 3.1 step. ④ →Add EUI. 17 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 18: Sensor Node Registration On Ttn

    ② Device EUI: Enter the node’s Device EUI that you got in the 3.1 step. ③ App Key: Enter the node’s App Key that you got in the previous step. ④ App EUI: Select the node’s App EUI. ⑤ Register. 18 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 19: Connect The Node To Ttn

    Controller by turning it clockwise. Please note that the labels on both parts should be aligned as shown in the image below, otherwise the two parts will not be attached to function properly and data will not be uploaded. 19 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 20: Sensor Node Working Status

    You can refer to the LED indicator for the Sensor Node for its working status. Please see the status explanations in the image below: 3.4.3 Checking Sensor Node Connection to the TTN (1) On the Device Overview page, Status turns green. 20 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 21 User Guide (Tech Document) (2) On the Data page, data package is uploaded. For the format of the payload, refer to the Decoding section. 21 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 22: Connect To The Standard Lorawan Gateway

    904.1 - SF7BW125 to SF10BW125 904.3 - SF7BW125 to SF10BW125 US915 904.5 - SF7BW125 to SF10BW125 904.7 - SF7BW125 to SF10BW125 904.9 - SF7BW125 to SF10BW125 905.1 - SF7BW125 to SF10BW125 22 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 23 924.5 - SF7BW500 to SF12BW500 925.1 - SF7BW500 to SF12BW500 925.7 - SF7BW500 to SF12BW500 926.3 - SF7BW500 to SF12BW500 926.9 - SF7BW500 to SF12BW500 927.5 - SF7BW500 to SF12BW500 23 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 24: A Standard Lorawan Gateway Configuration Example

    Find radio settings or frequency settings in the background of the gateway. radio 0 enable√ Radio_0 frequency: 904300000 Radio_0 for tx√ Radio_0 tx min frequency: 923000000 Radio_0 tx max frequency: 928000000 radio 1 enable√ Radio_1 frequency: 905000000 24 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 25: Channel Settings

    User Guide (Tech Document) 4.2.2 Channel Settings Please refer to the items in the following image for channel settings. 25 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 26: Power On

    4) Loosen the Sensor Probe by turning the cap counterclockwise. Use the white cap opener to make this process easier. The image below uses TH Sensor as an example and applies to all other SenseCAP sensors. 26 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 27: Sensor Node Working Status

    4.2.4 Sensor Node Working Status You can refer to the LED indicator for the Sensor Node for its working status. Please see the status explanations in the image below: 27 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 28: Checking Data Upload

    4.2.5 Checking Data Upload On the log page in the background of the gateway, you can view the data that the gateway has received from the Sensor Node. 28 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 29: Modify Node's Eui, Key, And Duty

    (1) Use the USB to TTL wire (Please leave power port, aka 3V3 unconnected): TX---RX RX---TX GND---GND (2) Install the Serial Tool. Download via: https://github.com/Seeed-Solution/SenseCAP-Node- Configuration-Tool/releases/tag/v1.0.2 Windows: SenseCAP-Node-Configuration-Tool-1.x.x.exe Mac: SenseCAP-Node-Configuration-Tool-1.0.2-mac.zip 29 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 30 Press “SET” button on the Sensor Controller, meanwhile flip the switch to “ON”, and you will see “SenseCAP”. (4) ①Device EUI (16 bit) ②App EUI (16 bit) ③App Key (32 bit) ④Data Interval (Sensor collection cycle) 30 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 31 User Guide (Tech Document) (5) For example: modify the Device EUI ① Write the new Device EUI. ② Click “WRITE” 31 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 32 # [d] Set the Device EUI # [a] Set the App EUI # [k] Set the App Key # [u] Upgrade the firmware # [h] Return to console center 32 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 33: Decoding

    When the Sensor Probe is connected to the Sensor Node Controller correctly, the device can upload data. 33 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 34: Packet Parsing

    4 bytes for content, is the sensor value with CRC The frame content is sent in little-endian byte order Example 1: Air Temperature & Humidity Sensor measurement packet: 010110B068000001021088F400008CFF Divide the data into 3 sections 34 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 35 Divide the data into 3 sections 010410E08D0500 01 is the channel number. (little-endian byte order) 0410 is 0x1004 , which is the measurement ID for CO2. E08D0500 is actually 0x00058DE0, whose equivalent 35 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 36 User Guide (Tech Document) decimal value is 364000. Divide it by 1000, and you’ll get the actual measurement value for CO2 as 364ppm. 9802 The CRC verification part. 36 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 37: Exception

    Divide the data into 3 sections Battery 00070064000500 Temperature 01011058660000 01 is the channel number. (little-endian byte order) 0110 is 0x1001 , which is the measurement ID for air temperature. 37 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 38 70F80000 is actually 0x0000F870, whose equivalent decimal value is 63600. Divide it by 1000, and you’ll get the actual measurement value for air humidity as 63.6%RH. 443E The CRC verification part. 38 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 39: Device Installation

    In this chapter, we will introduce the gateway and sensor nodes, their respective installation processes, as well as the dos and don’ts. Before installing, please check the part list to ensure nothing is missing. 39 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 40: Part List

    Power Extension Cable (5M) Ferrules / Aluminum piece 2 / 2 M5 Self-drilling Screw Antenna Lightning Protector (*Optional) LoRa Fiberglass Omni Antenna (*Optional) LoRa Antenna Brackets (*Optional) 40 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 41: Sensor Node Part List

    Quantity GND Copper Wire (2.5mm Pliers M4x12 Grounding Screw Waterproof Self-adhesive Tape (to protect antenna connection part) M6 Self-drilling Screw (to install the gateway on the wall) 41 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 42: Gateway Installation

    3 meters above the ground. If there are tall buildings around, the gateway should be kept away from the building or mounted on top of the tall building. 42 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 43 Firstly, use M5 self-drilling screws (included) to fasten the 4 brackets onto the enclosure of the gateway (refer to the image below for directions). And then fasten the gateway onto the wall with screws. 43 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 44: Installation Precautions

    Take a rubber tape at the length of 10cm ~ 15cm, pull it to twice of that length wind the tape clockwise to the connected part of the antenna. 44 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 45: Installing Fiberglass Lora Antenna

    There are two kinds of LoRa antennas: the normal LoRa antenna (included in the package), and the fiberglass LoRa antenna (to be purchased separately). We will introduce how to install the fiberglass LoRa antenna. Fasten the lightening arrester onto the antenna port. 45 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 46: Installing Ground Cable

    3) Once the two cables are connected, connect the other end of the long cable to the ground. Depending on your actual installation environment, you can connect it to the ground directly or connect it to the copper ground bars. 46 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 47: Installing Sensor Node

    70mm in diameter). Please refer to the following image for bracket directions. 2) To install on the wall or other surfaces, you can use self-drilling screws to fasten the bracket onto the surface. 47 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 48: Installing Sensor Nodes

    3) Place two self-drilling screws on the bracket to increase firmness and help prevent theft. Note:Do not insert the Sensor Node into the bracket from the top, or it will not fasten the onto the bracket securely. 48 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...
  • Page 49: Dos And Don'ts In Installing Sensor Probes

    The end without the cables should point downward to prevent rain or dust from getting into the probe. Also, the device should be in a place with good ventilation. 49 / 49 © 2008-2019 Seeed Technology Co., Ltd. All rights reserved. www.seeed.cc...

Table of Contents