LoPy-nano-gatewy-wan-private: Difference between revisions

From UNamur InfoSec
Jump to navigation Jump to search
Line 25: Line 25:




Setup LoPy as a Single channel nano gateway
Setup LoPy as a Single channel nano gateway: (Reference [https://forum.pycom.io/topic/810/new-firmware-release-1-6-7-b1-lorawan-nano-gateway-with-ttn-example Pycom Forum] [https://github.com/pycom/pycom-libraries/tree/master/examples/lorawan-nano-gateway Github Code]
 
*Update LoPy firmware to 1.6.7.b1
*Download the code
*Edit the config.py file to set the IP address and Port of our LoRa server
  SERVER = '192.168.137.1'
  PORT = 1700
*Copy the code to the 'flash' folder in LoPy:
  Via FTP:
  Follow this reference to connect to LoPy via FTP [https://docs.pycom.io/pycom_esp32/pycom_esp32/toolsandfeatures.html?highlight=ftp#pycom-filesystem pycom]


== LoPY Nano-gateway and Lora-server experiments ==
== LoPY Nano-gateway and Lora-server experiments ==

Revision as of 11:15, 10 March 2017

LoPy Nano-gateway and private lora-server installation

In this page we are going to:

  • Install open source private LoRa server (by Orne Brocaar)
  • Setup LoPy as single channel nano gateway
  • Send data from LoPy node

Install private LoRa server:

1. We are going to use the Ansible playbook to setup all the LoRa server dependencies.

Install Ansible (Reference: Ansible Installation
*sudo apt-get install software-properties-common
*sudo apt-add-repository ppa:ansible/ansible
*sudo apt-get update
*sudo apt-get install ansible

2. Clone the Ansible Playbook

Install git
*sudo apt-get install git
*sudo git clone https://github.com/brocaar/loraserver-setup
*cd loraserver-setup

// todo: continue


Setup LoPy as a Single channel nano gateway: (Reference Pycom Forum Github Code

  • Update LoPy firmware to 1.6.7.b1
  • Download the code
  • Edit the config.py file to set the IP address and Port of our LoRa server
 SERVER = '192.168.137.1'
 PORT = 1700
  • Copy the code to the 'flash' folder in LoPy:
 Via FTP:
 Follow this reference to connect to LoPy via FTP pycom

LoPY Nano-gateway and Lora-server experiments