From 3175172f5a76791e1ef47897ebf81df4784ac46b Mon Sep 17 00:00:00 2001
From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com>
Date: Sun, 21 Apr 2024 13:20:14 +0200
Subject: [PATCH] Update README.md
---
README.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/README.md b/README.md
index dfd801a..f4b728a 100644
--- a/README.md
+++ b/README.md
@@ -97,3 +97,57 @@ Pin config: RST->0 , IRQ->5 , NSS->6 , GPIO->11
**Documentation will be updated soon!**
Meanwhile, refer to [BresserWeatherSensorTTN - README.md](https://github.com/matthias-bs/BresserWeatherSensorTTN/blob/main/README.md)
+
+## Remote Configuration Commands / Status Requests via LoRaWAN
+
+| Command | Port | Downlink | Uplink |
+| ----------------------------- | ---- | ------------------------------------------------------------------------- | -------------- |
+| CMD_GET_DATETIME | 0x86 | 0x00 | unixtime[31:24]
unixtime[23:16]
unixtime[15:8]
unixtime[7:0]
rtc_source[7:0] |
+| CMD_SET_DATETIME | 0x88 | unixtime[31:24]
unixtime[23:16]
unixtime[15:8]
unixtime[7:0] | n.a. |
+| CMD_SET_SLEEP_INTERVAL | 0xA8 | interval[15:8]
interval[7:0] | n.a. |
+| CMD_SET_SLEEP_INTERVAL_LONG | 0xA9 | interval[15:8]
interval[7:0] | n.a. |
+| CMD_GET_LW_CONFIG | 0xB1 | 0x00 | sleep_interval[15:8]
sleep_interval[7:0]
sleep_interval_long[15:8]
sleep_interval_long[7:0] |
+| CMD_GET_WS_TIMEOUT | 0xC0 | 0x00 | ws_timeout[7:0] |
+| CMD_SET_WS_TIMEOUT | 0xC1 | ws_timeout[7:0] | n.a. |
+| CMD_RESET_RAINGAUGE | 0xC3 | flags[7:0] | n.a. |
+| CMD_GET_SENSORS_INC | 0xC4 | 0x00 | sensors_inc0[31:24]
sensors_inc0[23:15]
sensors_inc0[16:8]
sensors_inc0[7:0]
... |
+
+| CMD_SET_SENSORS_EXC | 0xC6 | 0x00 | sensors_inc0[31:24]
sensors_inc0[23:15]
sensors_inc[16:8]
sensors_inc[7:0]
... |
+
+| CMD_GET_CONFIG | 0xB1 | | | | | | | |
+| response: | | 3 | seconds | ws_timeout[ 7: 0] | sleep_interval[15: 8] | sleep_interval[ 7: 0] | sleep_interval_long[15: 8] | sleep_interval_long[ 7: 0] |
+| CMD_GET_DATETIME | 0x86 | | | | | |
+| response: | | 2 | epoch | unixtime[31:24] | unixtime[23:16] | unixtime[15:8] | unixtime[7:0] |
+| CMD_SET_DATETIME | 0x88 | |epoch | unixtime[31:24] | unixtime[23:16] | unixtime[15:8] | unixtime[7:0] |
+
+
Command | +Port | +Downlink | +Uplink | +
---|---|---|---|
CMD_GET_DATETIME | +0x86 | +0x00 | ++ |
L3 Name B | +|||
L2 Name B | +L3 Name C | +||
L3 Name D | +