mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-04 20:55:55 +02:00
0.8.57
* merge PR: MI-MQTT and last retransmit #1363 * fixed DTU-ID, now built from the unique part of the MAC * fix lang in `/system` #1346
This commit is contained in:
parent
c68c3a365f
commit
358344ad6d
7 changed files with 20 additions and 15 deletions
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
## 0.8.57 - 2024-01-15
|
## 0.8.57 - 2024-01-15
|
||||||
* merge PR: fix immediate clearing of display after sunset #1364
|
* merge PR: fix immediate clearing of display after sunset #1364
|
||||||
|
* merge PR: MI-MQTT and last retransmit #1363
|
||||||
|
* fixed DTU-ID, now built from the unique part of the MAC
|
||||||
|
* fix lang in `/system` #1346
|
||||||
|
|
||||||
## 0.8.56 - 2024-01-15
|
## 0.8.56 - 2024-01-15
|
||||||
* potential fix of update problems and random reboots #1359 #1354
|
* potential fix of update problems and random reboots #1359 #1354
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include "hmInverter.h"
|
#include "hmInverter.h"
|
||||||
#include "../utils/dbg.h"
|
#include "../utils/dbg.h"
|
||||||
|
|
||||||
// needs a '+1' because the comparison does not send if attempts is equal 0
|
|
||||||
#define DEFAULT_ATTEMPS 5
|
#define DEFAULT_ATTEMPS 5
|
||||||
#define MORE_ATTEMPS_ALARMDATA 15
|
#define MORE_ATTEMPS_ALARMDATA 15
|
||||||
#define MORE_ATTEMPS_GRIDONPROFILEPARA 15
|
#define MORE_ATTEMPS_GRIDONPROFILEPARA 15
|
||||||
|
|
|
@ -144,14 +144,14 @@ class Communication : public CommQueue<> {
|
||||||
} else {
|
} else {
|
||||||
if(IV_MI == q->iv->ivGen)
|
if(IV_MI == q->iv->ivGen)
|
||||||
q->iv->mIvTxCnt++;
|
q->iv->mIvTxCnt++;
|
||||||
if(mFirstTry){
|
if(mFirstTry) {
|
||||||
mFirstTry = false;
|
mFirstTry = false;
|
||||||
mState = States::START;
|
|
||||||
setAttempt();
|
setAttempt();
|
||||||
mHeu.evalTxChQuality(q->iv, false, 0, 0);
|
mHeu.evalTxChQuality(q->iv, false, 0, 0);
|
||||||
//q->iv->radioStatistics.rxFailNoAnser++;
|
//q->iv->radioStatistics.rxFailNoAnser++;
|
||||||
q->iv->radioStatistics.retransmits++;
|
q->iv->radioStatistics.retransmits++;
|
||||||
mWaitTime.stopTimeMonitor();
|
mWaitTime.stopTimeMonitor();
|
||||||
|
mState = States::START;
|
||||||
|
|
||||||
/*if(*mSerialDebug) {
|
/*if(*mSerialDebug) {
|
||||||
DPRINT_IVID(DBG_INFO, q->iv->id);
|
DPRINT_IVID(DBG_INFO, q->iv->id);
|
||||||
|
|
|
@ -103,16 +103,19 @@ class Radio {
|
||||||
void generateDtuSn(void) {
|
void generateDtuSn(void) {
|
||||||
uint32_t chipID = 0;
|
uint32_t chipID = 0;
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
uint64_t MAC = ESP.getEfuseMac();
|
chipID = (ESP.getEfuseMac() & 0xffffffff);
|
||||||
chipID = ((MAC >> 8) & 0xFF0000) | ((MAC >> 24) & 0xFF00) | ((MAC >> 40) & 0xFF);
|
|
||||||
#else
|
#else
|
||||||
chipID = ESP.getChipId();
|
chipID = ESP.getChipId();
|
||||||
#endif
|
#endif
|
||||||
mDtuSn = 0x80000000; // the first digit is an 8 for DTU production year 2022, the rest is filled with the ESP chipID in decimal
|
|
||||||
for(int i = 0; i < 7; i++) {
|
uint8_t t;
|
||||||
mDtuSn |= (chipID % 10) << (i * 4);
|
for(int i = 0; i < (7 << 2); i += 4) {
|
||||||
chipID /= 10;
|
t = (chipID >> i) & 0x0f;
|
||||||
|
if(t > 0x09)
|
||||||
|
t -= 6;
|
||||||
|
mDtuSn |= (t << i);
|
||||||
}
|
}
|
||||||
|
mDtuSn |= 0x80000000; // the first digit is an 8 for DTU production year 2022, the rest is filled with the ESP chipID in decimal
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t mDtuSn;
|
uint32_t mDtuSn;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="des">{#SELECT_FILE} (*.bin)</legend>
|
<legend class="des">{#SELECT_FILE} (*.bin)</legend>
|
||||||
<p>{#INSTALLED_VERSION}: <span id="version" style="background-color: var(--input-bg); padding: 7px;"></span></p>
|
<p>{#INSTALLED_VERSION}:<br/><span id="version" style="background-color: var(--input-bg); padding: 7px; display: block; margin: 3px;"></span></p>
|
||||||
<form id="form" method="POST" action="/update" enctype="multipart/form-data" accept-charset="utf-8">
|
<form id="form" method="POST" action="/update" enctype="multipart/form-data" accept-charset="utf-8">
|
||||||
<input type="file" name="update">
|
<input type="file" name="update">
|
||||||
<input type="button" class="btn my-4" value="{#BTN_UPDATE}" onclick="hide()">
|
<input type="button" class="btn my-4" value="{#BTN_UPDATE}" onclick="hide()">
|
||||||
|
|
|
@ -73,15 +73,15 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef LANG_DE
|
#ifdef LANG_DE
|
||||||
#define FACTORY_RESET "Ahoy Factory Reset"
|
|
||||||
#else /*LANG_EN*/
|
|
||||||
#define FACTORY_RESET "Ahoy auf Werkseinstellungen zurücksetzen"
|
#define FACTORY_RESET "Ahoy auf Werkseinstellungen zurücksetzen"
|
||||||
|
#else /*LANG_EN*/
|
||||||
|
#define FACTORY_RESET "Ahoy Factory Reset"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef LANG_DE
|
#ifdef LANG_DE
|
||||||
#define BTN_REBOOT "Reboot"
|
|
||||||
#else /*LANG_EN*/
|
|
||||||
#define BTN_REBOOT "Ahoy neustarten"
|
#define BTN_REBOOT "Ahoy neustarten"
|
||||||
|
#else /*LANG_EN*/
|
||||||
|
#define BTN_REBOOT "Reboot"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /*__LANG_H__*/
|
#endif /*__LANG_H__*/
|
||||||
|
|
|
@ -781,7 +781,7 @@
|
||||||
{
|
{
|
||||||
"token": "IRQ_WORKING",
|
"token": "IRQ_WORKING",
|
||||||
"en": "Interrupt Pin working",
|
"en": "Interrupt Pin working",
|
||||||
"de": "Interrupt Pin funktoniert"
|
"de": "Interrupt Pin funktioniert"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"token": "NRF24_DATA_RATE",
|
"token": "NRF24_DATA_RATE",
|
||||||
|
|
Loading…
Add table
Reference in a new issue