Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_IKS01A1 LoRaWAN-lib SX1272Lib mbed
Fork of Canada-SX1272-LoRaWAN-Bootcamp by
You are viewing an older revision! See the latest version
Homepage
LoRaWAN-SX1272-Mbed-Shield¶
Overview¶
LoRaWAN-SX1272-Mbed-Shield application demo is a LoRaWAN Class-A device example project using LoRaWAN-lib and SX1272Lib libraries that send out sensors data.
Prerequisites¶
1. NUCLEO_L152RE board.
2. SX1272-mbed-shield board.
3. X-NUCLEO-IKS01A1.
4. Grove Red LED.
5. Grove Button.
6. Grove Rotary Angle Sensor.
7. mbed online compiler.
8. Tera Term.
Hardware Configuration¶
1. Connect SX1272-mbed-shield with NUCLEO_L152RE through Arduino connector.
2. Connect Grove Red LED with DIO_D6 port on SX1272-mbed-shield.
3. Connect Grove Button with DIO_D8 port on SX1272-mbed-shield.
4. Connect Grove Rotary Angle Sensor with ANA_A1 port SX1272-mbed-shield.
Software Configuration¶
The end-device must be configured with the following parameters:
- Commissioning.h
- LORAWAN_DEVICE_EUI (8 Bytes) : Fist 3 Bytes is the Organizationally Unique Identifier (OUI) followed by 5 bytes of unique ID. If not defined by user, then the firmware automatically assigns one to the end-device.
Ex:- #define IEEE_OUI 0x00, 0x00, 0x00
- #define LORAWAN_DEVICE_EUI { IEEE_OUI, 0x00, 0x11, 0x22, 0x33, 0x45 }
- #define IEEE_OUI 0x00, 0x00, 0x00
- LORAWAN_APPLICATION_EUI (8 Bytes)
Ex:- #define LORAWAN_APPLICATION_EUI { 0x00, 0x00, 0x00, 0x00, 0x55, 0x66, 0x77, 0x88 }
- LORAWAN_APPLICATION_KEY (16 Bytes)
Ex:- #define LORAWAN_APPLICATION_KEY { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff }
- LORAWAN_DEVICE_EUI (8 Bytes) : Fist 3 Bytes is the Organizationally Unique Identifier (OUI) followed by 5 bytes of unique ID. If not defined by user, then the firmware automatically assigns one to the end-device.
Serial Terminal Display¶
- Use Tera Term to see the sending message:
- button = 0 (if not press) button = 1 (if pressed)
- rotary = 0 ~ 300
- button = 0 (if not press) button = 1 (if pressed)
