Datacake Docs
  • Welcome
  • Get Started
  • Changelog
  • Best practices
    • Best practices: Getting started
    • Best practices: Resolution (Timeframe)
    • Best practices: Dashboards
    • Best practices: Reports
    • Best practices: Grouping Devices
  • Datacake LNS
    • Getting Started
    • Gateways
      • Milesight LoRaWAN Gateway - UG6x
      • RAKwireless WisGate Edge Light 2
    • Devices
    • Add Devices without Gateway
  • Device
    • Product
    • Configuration
    • Claiming
    • Historical Data
    • Database
      • Configuration Fields
      • Fields
        • Manual input
        • Field Roles
        • Formulas
        • Mapping Fields
      • Data retention & Datapoints
      • Examples
        • Mapping 4-20mA Signals
        • Converting Units
  • Dashboards
    • Global Dashboards
      • Setting Homepage
    • Device Dashboards
    • Multi-Device Dashboards
    • Widgets
      • Value Widget
      • Chart Widget
      • Image Map
      • Map Widget
      • Text Widget
      • SOS Widget
      • Boolean Widget
      • iFrame Widget
      • Downlink Widget
      • Set Value Widget
      • Measurement List Widget
      • Heatmap Widget
      • Table Widget
      • Image Widget
  • Portal
    • Multi-Tenancy (Workspaces)
    • Reports
      • Energy Report
    • Administrators
    • Members
      • API Users
    • Security & Privacy
    • Billing
      • Support Packages
      • VAT Exemption / Tax ID
      • SMS Credits
      • Access Invoices
      • Unused time and Remaining time in Invoices (Prorations)
      • Codes
    • White Label
    • Rules
      • Legacy Rule Engine
        • Sending notifications via Telegram
      • New Rule Engine
        • Rule Engine Table Overview
        • Copy/Paste and Template Functionality
        • Advanced Rule Engine E-Mail and Webhook Templates
        • Time Restrictions
    • Zones
  • Cake Red
    • Get Started
    • Overview
  • LoRaWAN
    • Get Started
      • CSV Import
      • Custom LoRaWAN Device
    • Configuring LNS
      • The Things Stack (TTN / TTI) Automated Setup
      • The Things Stack (TTN / TTI) Manual Setup
      • Loriot
      • Kerlink Wanesy
      • Helium
      • ChirpStack
      • Tektelic
      • Actility ThingPark
      • Senet
      • Milesight Gateway
      • KPN
    • Downlinks (LoRaWAN)
      • Set Time Frame
    • Securing Webhooks
    • Payload Decoders
      • Location and GPS
      • Access Gateway Metadata
      • Access Measurements
      • Global Variables
    • Using Cayenne LPP
    • Converting Payload
  • Generic API Devices
    • HTTP Downlinks
  • Integrations
    • MQTT
    • Particle
      • Get Started
      • Adding Integrations
      • Decoding Payloads
      • Calling Functions
      • Templates
        • Particle Tracker One
    • Incoming Webhooks
    • Outgoing Webhooks
      • Securing Outgoing Webhooks in Datacake
    • Golioth
    • Blues Wireless Notecard
    • Sigfox
    • Swarm Asset Tracker
    • Grandcentrix Modbus Cloud Connect
    • YuDash LYNX IoT Gateway
    • Dragino NB-IoT
      • Changing NB-IoT Bands
    • Hardwario CHESTER
    • 1NCE OS
  • API
    • Exporting Data
    • Record Measurements via API
    • Node RED to Datacake
    • Generate Access Token
    • Internal MQTT
      • Get Started
      • MQTT Documentation
      • MQTT over WebSocket
      • Example Code
    • GraphQL API
      • Using GraphQL
      • Device Creation
      • Tutorials
        • Read Group via Tags
  • Guides
    • Python
    • Send Slack Notifications
    • Forward Data to Cake Red
    • Multiple Data Feeds
    • Automated Dynamic Downlinks
    • Ingesting JSON Data into Datacake API Devices
    • Working with Default HTTP Decoder on API Devices and Code Examples
    • Accessing Measurements in Decoders
    • Connecting Datacake to Notion Using Zapier
    • How to set up and use location on non-GPS devices
    • How to integrate with AWS IoT Core
    • How to Schedule Mass-Downlinks (Multicast) using Datacake Rule Engine
    • How to Map Sensor Values to Ranges or Booleans, Strings using Mapping Fields
    • Understanding Internal vs. External MQTT Brokers on Datacake
    • Sending UDP Messages between 1NCE OS and Datacake
    • Concepts of LoRaWAN Payload Decoders on Datacake
    • How to check if a value stays above or below limits for given time
Powered by GitBook
On this page
  • Introduction
  • Getting started
  • Requirements
  • Add a new gateway
  • Configuring Gateway Information
  • Retrieving the Gateway EUI
  • Configuring Milesight LoRaWAN Gateway
  • Verify connectivity

Was this helpful?

  1. Datacake LNS
  2. Gateways

Milesight LoRaWAN Gateway - UG6x

Last updated 1 month ago

Was this helpful?

Introduction

In this tutorial, we'll be guiding you through the process of adding the Milesight LoRaWAN Gateway UG6x Series to Datacake's LoRa Network Server (LNS). This step-by-step guide is designed to ensure a smooth setup process, allowing you to leverage the full capabilities of your LoRaWAN devices within the Datacake platform. Whether you're setting up a new workspace or looking to expand your current IoT network, this documentation will provide you with all the necessary instructions to successfully integrate your gateway with Datacake LNS. In this tutorial we are using .

Getting started

Requirements

  1. Make sure to have an account and a workspace at datacake.

  2. Wire everything up.

  3. Have every information of the Gateway next to you.

Add a new gateway

To commence the addition of your Milesight LoRaWAN Gateway, click on the "Gateway" section located on the sidebar of your workspace.

This action will lead you to the gateways view, which, initially, will not list any gateways. Datacake provides comprehensive documentation for adding gateways, accessible via a designated button.

Additionally, you'll find a blue "Add Gateway" button positioned in the top right corner—click this to proceed.

Configuring Gateway Information

Upon clicking "Add Gateway," a model will appear, prompting you to enter specific details about your gateway.

These details include the Gateway Name, Gateway UI (Unique Identifier), and the operating Frequency. Here's how to approach each requirement:

  • Gateway Name: Assign a name to your gateway, such as "My Milesight Gateway," to easily identify it within your workspace.

  • Gateway EUI: This unique identifier is essential for integrating your gateway with the network. In the following section, we will cover how to retrieve the Gateway EUI from your Milesight device.

  • Frequency: The frequency selection must match your gateway's operational frequency. This is typically determined by your geographic location (e.g., Europe operates on the 868 MHz frequency band).

Retrieving the Gateway EUI

The Gateway EUI is a critical component for the integration process. This unique identifier can be found on your gateway's management platform. To access this, you'll need to switch to the management platform of your Milesight LoRaWAN Gateway UG65.

Configuration of your Milesight LoRaWAN Gateway UG65

Note: If you are using this gateway at your company's network you might want to talk to your IT department.

Copying the Gateway UI

The EUI, typically starting with "24," resembles a MAC address and includes an additional character for identification. To proceed, click on the copy button next to the EUI and return to your Datacake gateway configuration page to paste the identifier.

Enter Gateway EUI on Datacake

Copy and paste the Gateway EUI into Datacake's modal.

Setting the Frequency

After inputting the Gateway UI, the final step in the model is to select the appropriate frequency for your gateway. This frequency must align with the operational frequency of your Milesight Gateway, which is indicated on the device's management platform. For instance, if your gateway is located in Germany, you would select the European frequency band (868 MHz).

Finalizing Gateway Addition

With the gateway name, UI, and frequency correctly entered, you can finalize the addition of your Milesight Gateway to Datacake by clicking on the "Create Gateway" button. This action not only adds your gateway to the platform but also presents you with additional configuration information, such as the protocol, gateway server address, port number, and frequency summary.

Please don't close this modal yet, we do need to copy a few of those settings and information on the next steps.

Configuring Milesight LoRaWAN Gateway

Integrating your Milesight gateway with Datacake LNS requires a series of precise configurations within the gateway's configuration panel.

  1. Log into the Mileshight Gateway management platform like you did to get the EUI.

  2. Navigate to "Packet Forwarder" and scoll down to "Multi-Destination".

  3. Add a new destination by clicking "+".

  4. Make sure to enable the new destination, chose type "Semtech" and address to "custom". After you selected "custom" you are allowed to type in an address. Please select your Datacake LNS from the gateway information from Datacake. Make also sure that you have the same ports as in the gateway information from Datacake. Save afterwards.

  5. Optional: Disable the default destination by clicking on the edit button (pencil) and removing the tick at "Enable". Save afterwards.

Verify connectivity

Once your gateway reboots, verify that it has successfully connected to Datacake LNS. You can do this by checking the gateway's status on the Datacake platform, ensuring it appears online and is actively communicating data.

Your LoRaWAN gateway needs to be connected to the internet. You can plug the gateway into your home or company's network or using WiFi instead. You can find the tutorials from Milesight here:

When connected to a network you can access the management platform / Web GUI of the gateway. You can find the tutorial from Milesight here:

https://support.milesight-iot.com/support/solutions/articles/73000514278-how-to-connect-milesight-gateway-to-the-internet
https://support.milesight-iot.com/support/solutions/articles/73000514071-how-to-login-web-gui-of-milesight-gateway
Milesight LoRaWAN Gateway UG65