This library provides interface between hardware and software, consisting of a RFM95 Chip RFM95 operating at a 915 MHz frequency and three indicator LEDs, one green that indicates Power On and two overall reds and can be configured to indicate some type of system status.
NOTE: The construction of this library was based on Lmic_PI with some adaptation to be compatible with the Larawan network of the Federal University of Santa Maria.
The Wiringpi Library provides the Raspberry Pi GPio interface
Install the git (if not installed)
$ sudo apt-get install git-core
Make the repository clone
$ git clone git: //git.drogon.net/wiringpi
Access the Wiringpi folder
$ cd wiringpi
LIB BUILD
$ ./build
Make the repository clone
$ git clone https://github.com/lucasmaziero/lmic-rpi-fox.git
Access the LMIC-RPI-FOX folder
$ CD Lmic-RPI-FOX/EXAMPLES/TTN-ABPMEND
Make the project make (remembering that any change made in the code must later be executed the "Make" command)
$ make
Running the program
$
The full mapping of wiringpi pins can be seen here
Wiringpi 0 == Reset
Wiringpi 4 == dio0
Wiringpi 5 == dio1
Wiringpi 1 == dio2 (unused)
Wiringpi 12 == MOSI
Wiringpi 13 == MISO
Wiringpi 14 == SK
Wiringpi 6 == SS
Wiringpi 2 == LED1
Wiringpi 3 == LED2
GND == GND
3.3V == +3.3V
The content is licensed under the MIT license. See license file for more information.