With this kit, you can measure temperature, humidity, luminosity and pressure. Then the values are sent wirelessly to the LoRa gateway.
You can use community The Things Network to receive the data.
What You Will Need
Download the latest BigClown Playground
Connect the Core Module to your computer.
In Playground, go to the Firmware tab, select
bcf-lora-climate-monitorand flash the firmware.
After upload, the red LED on the Core Module will turn on for 2 seconds, then it will turn off.
For configuration you can use
AT commands over USB virutal serial port. Use your serial terminal application (Hterm, putty, minicom). Communication parameters are:
- Baudrate 115200
- 8 data bits, 1 stop bit, no parity
- New line
CR+LFfor transmit and for receive
To list all possible commands use
AT$HELP. You will get:
AT$DEVEUI AT$DEVADDR AT$NWKSKEY AT$APPSKEY AT$SEND Immediately send packet AT$STATUS Show status AT$BLINK LED blink 3 times AT$LED LED on/off AT+CLAC AT$HELP This help OK
To read the parameter use:
You receive the key:
To write the parameter:
For LoRa ABP mode you need to set these keys/values:
Also for the LoRa gateway you need to get this information:
You need to configure your LoRa gateway. This step is different for your LoRa provider or The Things Network. The authentization is now only ABP.
Transmitting the data
The LoRa Climate Monitor sends a LoRa packet when:
- After power-up, when the batteries are inserted
- Every 15 minutes when the measure values are the same
- After pressing the button
- When you type
AT$SENDto the console
Reading the Data
The data are encoded in the LoRa message. You need to extract the right bits to get the values back. This is explained in the README.md file. You can also use the
decode.pypython script in the repository.
You can pass the received HEX string as a parameter for the
python3 decode.py 011b0100f5600024c313