Skip to content
Raspberry Pi port LoRaMAC in C / LoRaWAN in C
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc First commit of lmic port to RaspberryPi. Dec 29, 2015
examples Added makefiles Dec 29, 2015
lmic Added nano seconds part of system time to hal_ticks() calculation Jan 6, 2016 Updated Jan 5, 2016


Raspberry Pi port LoRaMAC in C / LoRaWAN in C

This is a port of IBM's LMIC 1.5 to the Raspberry Pi using the wiringPi library for GPIO/SPI. It is adapted for TTN (

It has been tested with an HopeRF RFM95W chip, but should also work with a SX1272 or SX1276.

Some of the changes were taken from or inspired by the arduino-lmic-v1.5 port of tftelkamp (

The connections of the pins are defined in the main programs in the examples directory. Standard connections are: WiringPi 6 == nss

not connected == rxtx: not used for RFM95

WiringPi 0 == reset (needed for RFM92/RFM95)

WiringPi 7,4,5 == dio0, dio1, dio2

WiringPi 12 == MOSI

WiringPi 13 == MISO

WiringPi 14 == SCK


3.3V == +3.3V

The only examples currently implemented are hello (which does nothing) and thethingsnetwork-send-v1 which sends test strings to the TTN network (if a gateway is in reach). Do not forget to put your own device number in thethingsnetwork-send-v1.cpp!!

You can’t perform that action at this time.