Go into the apps folder and have a look at the hello-world example.
Compile the code and generate the Flocklab XML config file:
cd apps/hello-worldmakemake flocklab_xml
Open the file flocklab-dpp.xml and go through the settings. By default, the following services are used:
GPIO actuation (only used to select the MCU from which we will get the serial output, default: CC430)
Submit the XML file on the Flocklab page to schedule a test. Alternatively, use the shell tool and submit your test directly from the command line:
flocklab -c flocklab-dpp.xml
Note that Flocklab will automatically set the node ID to the observer ID. The ID can be accessed in the code via the global variable node_id.
For more information about our DPP platform, visit our DPP Wiki.
DPP: Glossy and LWB
Follow the instructions in the 'Hello World' example above. The 'Glossy' and 'LWB' code are in the respective folders in apps.
Note that you can pass additional arguments when generating the flocklab-dpp.xml file, for example:
The DPP2 LoRa platform features an STM32L433CC MCU and the Semtech SX1262 LoRa radio. More information about the platform is available in our DPP Wiki.
To run a simple 'Blink LED' application on the platform, follow these steps:
After successful compilation, you should be able to find the file STM32L433_BlinkLED.elf in the folder Debug. Encode it to base 64 and insert it into the Flocklab XML configuration file. You can use the embed_image.sh script for this: