Posted on 2 December 2015 by Raffael Tschui

LoRaWAN (Long Range WAN) is a telecommunications network allowing small devices (i.e. sensors, robots, machines, meters) to communicate over long ranges at low bitrates. The simplest form of a LoRaWAN network consists of a transceiver gateway connected to the internet and end-nodes that typically operate on battery power.

The gateway runs on mains power because it is constantly listening for arriving packets. The end-nodes however use very low power modules operating on just a few tens of milliwatt. An example end-node transceiver is the RN2483 by Microchip. The ranges achieved are incredible and go up to 15km line-of-sight. LoRa operates on the open and license-free 868 MHz range. It is OK to operate gateways and end-nodes in Switzerland as long as you stay within the duty cycle limits set by the federal communications office BAKOM.

We’ve installed the first open gateway of Lausanne and were able to send and receive data from EPFL campus and various other locations. With this single gateway we’re probably covering half of Lausanne as the gateway is situated on an eleven story high building. The map below shows the locations where we have tested transmission and reception successfully. Any device using LoRaWAN can now connect to the internet in Lausanne - for free.

The best part is that the gateway uploads all received data directly to TheThingsNetwork and Semtech servers. The Things Network is a global, crowdsourced, open, free and decentralized internet of things network and they have just successfully completed their Kickstarter crowdfunding campaign. Their goal is to produce affordable hardware, but also to provide the infrastructure necessary to host the data received by nodes and gateways. While their network is still in its early days and most software in infancy, the API’s are already useable. Currently, any node’s data is accessible through an easy to use REST API.

If you want to use our LoRaWAN gateway in Lausanne, here’s a short guide based on the Microchip RN2483 node:

  • Connect to the RN2483 via UART (8N1 57600).
  • Set your Network and Application Key to the default key (personal keys will be supported by TTN at a later date):
    • mac set appskey 2B7E151628AED2A6ABF7158809CF4F3C
    • mac set nwkskey 2B7E151628AED2A6ABF7158809CF4F3C
  • Choose an address for your device. This will identify your device on the network. Please use an address from the Octanis address space or register your own.
  • Set your devices address (choose from the (hex) range 02031200 to 020312FF): mac set devaddr [device address]
  • Perform “Activation By Personalization”: mac join abp
  • Send your data (hex string): max tx uncnf 1 beefbeef
  • See if your data arrived here: http://thethingsnetwork.org/api/v0/nodes/[REPLACE WITH DEVICE ADDRESS]/
  • Enjoy!

If you’ve configured your end-node as above, then your device will work with all TheThingsNetwork gateways all over the world (see TheThingsNetwork Website )!