Author: Gonzalo Aguilar Delgado firstname.lastname@example.org
The objective of this project is to create a LoRaWAN similar infrastructure that supports geo positioning off-the shelve. And some other services that will be defined in the future, like SAM AV2 encryption/decryption.
You will need to create the proper configuration file for each arduino module. We provide the Adafruit Feather clone lora32u4 II. But is easy to create new ones by looking at the Arduino IDE hardware settings.
Only compile an upload supported at the momment.
Compile it with the following commands.
meson --cross-file arduino_lora32u4II_cross.txt build-lora32u4 \ -Darduino_upload_config=avrdude.conf cd build-lora32u4 ninja
The result can be uploaded with the following command, but check settings first to see if right port is used:
This command will rebuild the binary before uploading if it is out of date.
> meson --cross-file arduino_lora32u4II_cross_mini.txt build-lora32u4-mini -Darduino_upload_config=/home/gaguilar/Proyectos/arduino/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf -Darduino_upload_port=/dev/ttyACM0 -Dlorawan_device_address=0x26011FF0
This project hardcodes Adafruit Feather 32u4 II clone. If you have a different model, change the compiler specifications and flags in the cross file. There does not seem to be a way to easily get these programmatically so you have to copy them by hand from Arduino IDE invocations to a cross file.
The code also assumes a Linux environment and that your Arduino is in
the serial port
/dev/ttyACM1. If your setup is different, change the