This repository contain the Master Thesis relised by Da Silva Andrade David in collaboration with the DIRECTION GÉNÉRALE DES SYSTÈMES D'INFORMATION (DGSI).
The goal of this project is to devellop a device that can connect to a LoRaWAN and provide sensor data that can be trusted from a specific device.
A securised interface was also devellopped to delivers the APPKEY to the new device created. The principle of creation and storage is based on the Proof of Concept devellopped by the DGSI for the project SmartCanton.
A PCB has been devellopped for this project.
The Altium layout of the board is avaiblable under the directory SmartCantonhardwareSmartCantonDevBox_V1_0.
A case for the hardware has also been designed. You can find it underSmartCantonhardwareSmartCantonDevBoxCase. It can be easily printed using a 3D printer.
The software for the CMWX1ZZABZ-078 can be found under the directory SmartCantondevSTM32CubeExpansion_LRWAN_V1.1.2. It requires to be open with the STM32 Workbench IDE.
The software for the NXP KW41Z can be found under the directory SmartCantondevMKW41z. It requires to be open with the MCUXpresso IDE.
An Application developed with Android Studio is available under the directory SmartCantondevSmartCantonManager.
A web server developed using Python 3.6 and Pycharm has been developed. It run coupled with a SQLite to store all the information about the users and the DevBox (LoRaWAN et BLE configurations).
The project can be opened with Pycharm under the directory SmartCantondevSmartCanton_AppKeyServer.
The final report of the project can be found in the root tree of the project under the name [Da_Silva_Andrade_TM_2017-2018.pdf](https://github.com/Rasnar/SmartCanton/blob/master/Da_Silva_Andrade_TM_2017-2018.pdf). It's written in French, with appendices in English. The REST API documentation, an user guide for the Android application and all the BLE services developed can be found as appendices in the PDF file.
All the documentation can be found under the SmartCantondocumentation directory.