diff --git a/README.md b/README.md index 5eac9e1..9b5b212 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,8 @@ Meanwhile, refer to [BresserWeatherSensorTTN - README.md](https://github.com/mat ## Remote Configuration Commands / Status Requests via LoRaWAN +### Using Raw Data + | Command | Port | Downlink | Uplink | | ----------------------------- | ---------- | ------------------------------------------------------------------------- | -------------- | | CMD_GET_DATETIME | 0x86 (134) | 0x00 | unixtime[31:24]
unixtime[23:16]
unixtime[15:8]
unixtime[7:0]
rtc_source[7:0] | @@ -120,6 +122,26 @@ Meanwhile, refer to [BresserWeatherSensorTTN - README.md](https://github.com/mat | CMD_GET_BLE_ADDR | 0xC8 (200) | 0x00 | ble_addr0[47:40]
ble_addr0[39:32]
ble_addr0[31:24]
ble_addr0[23:15]
ble_addr0[16:8]
ble_addr0[7:0]
... | | CMD_SET_BLE_ADDR | 0xC9 (201) | ble_addr0[47:40]
ble_addr0[39:32]
ble_addr0[31:24]
ble_addr0[23:15]
ble_addr0[16:8]
ble_addr0[7:0]
... | n.a. | +### Using the Javascript Uplink/Downlink Formatters + +| Command | Downlink | Uplink | +| ----------------------------- | ------------------------------------------------------------------------- | -------------- | +| CMD_GET_DATETIME | {"cmd": "CMD_GET_DATETIME"} | unixtime[31:24]
unixtime[23:16]
unixtime[15:8]
unixtime[7:0]
rtc_source[7:0] | +| CMD_SET_DATETIME | unixtime[31:24]
unixtime[23:16]
unixtime[15:8]
unixtime[7:0] | n.a. | +| CMD_SET_SLEEP_INTERVAL | sleep_interval[15:8]
sleep_interval[7:0] | n.a. | +| CMD_SET_SLEEP_INTERVAL_LONG | sleep_interval_long[15:8]
sleep_interval_long[7:0] | n.a. | +| CMD_GET_LW_CONFIG | {"cmd": "CMD_GET_LW_CONFIG"} | sleep_interval[15:8]
sleep_interval[7:0]
sleep_interval_long[15:8]
sleep_interval_long[7:0] | +| CMD_GET_WS_TIMEOUT | {"cmd": "CMD_GET_WS_TIMEOUT"} | ws_timeout[7:0] | +| CMD_SET_WS_TIMEOUT | ws_timeout[7:0] | n.a. | +| CMD_RESET_RAINGAUGE | flags[7:0] | n.a. | +| CMD_GET_SENSORS_INC | {"cmd": "CMD_GET_SENSORS_INC"} | sensors_inc0[31:24]
sensors_inc0[23:15]
sensors_inc0[16:8]
sensors_inc0[7:0]
... | +| CMD_SET_SENSORS_INC | sensors_inc0[31:24]
sensors_inc0[23:15]
sensors_inc0[16:8]
sensors_inc0[7:0]
... | n.a. | +| CMD_GET_SENSORS_EXC | {"cmd": "CMD_GET_SENSORS_EXC"} | sensors_exc0[31:24]
sensors_exc0[23:15]
sensors_exc0[16:8]
sensors_exc0[7:0]
... | +| CMD_SET_SENSORS_EXC | sensors_exc0[31:24]
sensors_exc0[23:15]
sensors_exc0[16:8]
sensors_exc0[7:0]
... | n.a. | +| CMD_GET_BLE_ADDR | {"cmd": "CMD_GET_BLE_ADDR"} | ble_addr0[47:40]
ble_addr0[39:32]
ble_addr0[31:24]
ble_addr0[23:15]
ble_addr0[16:8]
ble_addr0[7:0]
... | +| CMD_SET_BLE_ADDR | ble_addr0[47:40]
ble_addr0[39:32]
ble_addr0[31:24]
ble_addr0[23:15]
ble_addr0[16:8]
ble_addr0[7:0]
... | n.a. | + + | Parameter | Description | | --------------------- | --------------------------------------------------------------------------- | | | Weather sensor receive timeout in seconds; 0...255 |