LMIC transmit example for NAmote-72 with GPS

Dependencies:   lib_gps lib_mpl3115a2 lmic_MOTE_L152RC mbed

Deprecated and replaced with

Import programLoRaWAN-NAMote72-Application-Demo

Demonstration of Class-A LoRaWAN device using NAMote-72

LoRaWAN Network Configuration (in Config.h)

For Over the Air (OTA) activation of an End-Device, it must be configured with the following parameters:

  1. DEVEUI (8 Bytes) : Fist 3 Bytes is the Organizationally Unique Identifier (OUI) followed by 5 bytes of unique ID.
  2. APPEUI (8 Bytes)
  3. APPKey (or DEVKEY) (16 Bytes) The parameters can be entered as shown in the figure below /media/uploads/ubhat/nwkconfig.png

LoRaWAN Transmission Configuration (in Config.h)

  • Inter-Frame Delay : One can change the delay between each frame transmission using MS_DELAY_NEXT_TX It is advisable that MS_DELAY_NEXT_TX is greater than or equal to 3sec. /media/uploads/ubhat/txtiming.png
  • Payload Length : The lenght of the payload (in bytes) to be transmitted can be configured using PAYLOAD_LENGTH /media/uploads/ubhat/payload.png
  • Data Rate : The data rate can be configured as per LoRaWAN specification using the paramter FIXED_DR /media/uploads/ubhat/datarate.png
  • Channel Configuration : In the case where the End-Device is transmitting over frequencies corresponding to a block of 8 channels, the block can be specified using CHNL_HYBRID. The value 0 corresponds to Block A, 1 corresponds to Block B and so on. /media/uploads/ubhat/hybrid.png When the End-Device transmits over more than 50 channels, CHNL_HYBRID needs to be commented out /media/uploads/ubhat/frequencyhopping.png
  • Transmit Power : The power of the data to be transmitted can be configured using the parameter FIXED_TX_POWER. The maximum transmit power allowed is as per FCC regulation, depending upon the mode of transmission. /media/uploads/ubhat/txpower.png

Serial Terminal Display

By using a serial port connection using applications such as teraterm or putty, one can view the status of the End-Device. Once the End-Device Joins the network, transmission parameters such as payload data, transmit power, battery level etc. are displayed on the terminal.

/media/uploads/ubhat/teraterm.png

Default Application Payload

This application defaults to sending uplink data to logical port 5. The application payload consists of: /media/uploads/jknapp_smtc/payload.png

Sample Application Payload Calculation for Longitude/Latitude

Payload => 00 19 F6 352BBA A94C20 FFFF

Temperature Calculation

19H => 2510

Temp = 25/2 = 12.5 oC

Battery Level

FFH => 100 %

F6H => 96.5 %

Longitude Calculation

longitude = A94C20H => 1109507210

longitudinal coordinate = -360 + (longitude10 x 180/(223))

longitudinal coordinate = -121.93

Latitude Calculation

latitude = 352BBAH = 348460210

latitude coordinate = (latitude10 x 90/(223-1))

latitude coordinate = 37.39

History

Restructure Main.cpp & config.h default tip

2016-03-02, by ubhat [Wed, 02 Mar 2016 08:11:33 +0000] rev 8

Restructure Main.cpp & config.h


use released mbed library

2016-01-15, by dudmuck [Fri, 15 Jan 2016 18:24:10 +0000] rev 7

use released mbed library


prevent lost TX packet when OP_TXRXPEND is set. Testing reversed appeui & deveui.

2015-10-21, by dudmuck [Wed, 21 Oct 2015 01:09:19 +0000] rev 6

prevent lost TX packet when OP_TXRXPEND is set. Testing reversed appeui & deveui.


CHNL_HYBRID defined with value 0 to 7

2015-09-21, by dudmuck [Mon, 21 Sep 2015 18:04:06 +0000] rev 5

CHNL_HYBRID defined with value 0 to 7


shorted TX delay to 400ms

2015-07-18, by dudmuck [Sat, 18 Jul 2015 00:21:10 +0000] rev 4

shorted TX delay to 400ms


enable HSI for ADC from deep sleep, add TX limit for low battery

2015-07-17, by dudmuck [Fri, 17 Jul 2015 21:11:02 +0000] rev 3

enable HSI for ADC from deep sleep, add TX limit for low battery


support V3 mote board

2015-07-02, by dudmuck [Thu, 02 Jul 2015 01:03:13 +0000] rev 2

support V3 mote board


using latest mbed-src

2015-06-18, by dudmuck [Thu, 18 Jun 2015 23:23:55 +0000] rev 1

using latest mbed-src


LMIC transmit demo for NA-mote72 with GPS

2015-06-04, by dudmuck [Thu, 04 Jun 2015 21:48:47 +0000] rev 0

LMIC transmit demo for NA-mote72 with GPS