Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/machv/twr-lora-soil-sensor
Firmware for HARDWARIO Lora Soil sensor
https://github.com/machv/twr-lora-soil-sensor
Last synced: 27 days ago
JSON representation
Firmware for HARDWARIO Lora Soil sensor
- Host: GitHub
- URL: https://github.com/machv/twr-lora-soil-sensor
- Owner: machv
- License: mit
- Created: 2020-07-31T21:24:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-09T09:48:28.000Z (over 2 years ago)
- Last Synced: 2024-11-07T23:41:11.590Z (3 months ago)
- Language: C
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Firmware for HARDWARIO Lora Soil Sensor
## Description
Soil sensor monitoring using Lora. In addition to measuring soil and temperature, it also reports status of magnetic reed sensor, which can be attached to P9 (e. g. to monitor if door to the greenhouse is open).
Values are sent every 15 minutes over LoRaWAN. Values are the arithmetic mean of the measured values since the last send.
Measure interval is 5m, the battery is measured during transmission.
## Buffer
big endian| Byte | Name | Type | Multiple | Unit | Note
| ------: | ----------- | ------ | -------- | ------ | ---------
| 0 | HEADER | uint8 | | |
| 1 | BATTERY | uint8 | 10 | V |
| 2 | DOOR STATUS | bool | | | State of the reed sensor (true = closed, false = open)
| 3 - 4 | TEMPERATURE | int16 | 10 | °C | Temperature on the Core module
| 5 - 6 | TEMPERATURE | int16 | 10 | °C | Temperature in the Soil Sensor module
| 7 - 8 | SOIL RAW | uint16 | | | Raw measurement of the Soil Sensor module### Header
* 0 - boot
* 1 - update
* 2 - button click
* 3 - button hold
* 4 - door opened
* 5 - door closed## AT
```sh
picocom -b 115200 --omap crcrlf --echo /dev/ttyUSB0
```