(ignore a few libraries, as for some reason COMMON_PAL is included)
I require the lorawan library which is included in the framework-mbed/features/
I just don’ t seem to be able to include this builtin library in PIO
(I have tried modifying quite a few files and ended up with varying errors or it simplify continues not to be included…)
Could somebody shed some light as to how I should be including a builtin library? (The other libraries in that folder I seem to be able to include with no problem…)
I’ve done this (integrating the lorwan feature of mbed-os) at least two times and it was always a compound of multiple hacks on top of hacks. I’ll try to do it more cleanly and open a github repo with a reference firmware. I’ll check back when it’s done.
Do you intend to connect this to The Things Network (TTN)? Because then you need some more hacks (wrong SF on the second receive window, frequency channel plans, …)
BTW you do need mbedtls with a modded config file (a special macro activates the inclusion of a custom config file) to activate MBEDTLS_CMAC. WIthout AES-128-CMAC the stack can’t compute any crypto (the message integraticy check, MIC).
The firmware was tested on an STM32 Nucleo L152RE board with a RFM95 (chinese SX1276 clone), but the firmware code is also switchable to an SX1272 radio and a different board.
Connection to TTN in the european EU868 band works flawlessly (after modifying some settings in the lorawan library, e.g. RX2 window being correctly on SF9 instead of SF12). The LoRa link was established from indoors to an outdoor gateway over a distance of 1.36 kilometers / 0.84 miles.