Browse Source

0.6.3

* fix WiFi reconnect not working #851
* updated issue templates #822
pull/846/head^2
lumapu 2 years ago
parent
commit
6e0ab50c1d
  1. 42
      .github/ISSUE_TEMPLATE/report-ahoy.md
  2. 132
      .github/ISSUE_TEMPLATE/report.yaml
  3. 4
      src/CHANGES.md
  4. 6
      src/wifi/ahoywifi.cpp

42
.github/ISSUE_TEMPLATE/report-ahoy.md

@ -22,58 +22,22 @@ Retailer URL: ______
### Antenna:
* [ ] circuit board
* [ ] external antenna
* [ ] external antenna (SMA)
### Power Stabilization:
* [ ] 100uF Electrolytic Capacitor
connected between +3.3V and GND (Pin 1 & 2) of the NRF Module
* [ ] Voltage stabilizing motherboard
### Connection diagram:
* [ ] Image of the your wiring attached
### Connection diagram I used:
| nRF24L01+ Pin | ESP8266 GPIO |
| ------------- | -------------- |
| Pin 1 GND [*] | GND |
| Pin 2 +3.3V | +3.3V |
| Pin 3 CE | GPIO2 CE D4 |
| Pin 4 CSN | GPIO15 CS D8 |
| Pin 5 SCK | GPIO14 SCLK D5 |
| Pin 6 MOSI | GPIO13 MOSI D7 |
| Pin 7 MISO | GPIO12 MISO D6 |
| Pin 8 IRQ | GPIO0 IRQ D3 |
| nRF24L01+ Pin | ESP32 GPIO |
| ------------- | --------------- |
| Pin 1 GND [*] | GND |
| Pin 2 +3.3V | +3.3V |
| Pin 3 CE | GPIO4 CE D4 |
| Pin 4 CSN | GPIO5 CS D5 |
| Pin 5 SCK | GPIO18 SCLK D18 |
| Pin 6 MOSI | GPIO23 MOSI D23 |
| Pin 7 MISO | GPIO19 MISO D19 |
| Pin 8 IRQ | GPIO0 IRQ D0 |
Note: [*] GND Pin 1 has a square mark on the nRF24L01+ module
## Software
* [ ] AhoyDTU
* [ ] OpenDTU
### Version / Git SHA:
Version: _._.__
Github Hash: _______
### Build & Flash Method:
* [ ] AhoyDTU Webinstaller
* [ ] VSCode - Platform IO
* [ ] Arduino
* [ ] ESP Tools
* [ ] Platform IO
### Desktop OS:
* [ ] Linux
* [ ] Windows
* [ ] Mac OS
### Debugging:
* [ ] USB Serial Log (attached)

132
.github/ISSUE_TEMPLATE/report.yaml

@ -1,18 +1,20 @@
name: "AhoyDTU bug"
description: "File a bug report"
title: "[ESP8266/ESP32/RaspberryPi] Problem Description / Beschreibung"
title: "[Bug]"
labels: ["bug", "needs-triage"]
assignees:
- stefan123t
- lumapu
body:
- type: markdown
attributes:
value: |
Bitte die Posting Guide lines lesen, Vorlage kopieren und ausfüllen und in Eurem Support Forum Eintrag posten.
Wir lesen auch gerne Deutsch, bitte fülle die u.a. Fragen aus damit wir Dir bestmöglich helfen können Danke!
Bitte unser FAQ als Hilfestellung prüfen: https://ahoydtu.de/faq
Please read, copy & fill in the template from our Posting Guide lines into your Support Forum post.
We do enjoy the english language, but we need a couple of things to best support you in your goal, please fill in all / most of the details given below. Thanks!
Check our FAQ: https://ahoydtu.de/faq
- type: markdown
attributes:
value: "## Hardware"
@ -35,11 +37,21 @@ body:
placeholder:
validations:
required: false
- type: dropdown
id: assembly-type
attributes:
label: Assembly
description:
options:
- I did the assebly by myself
- the DTU was already assembled
validations:
required: true
- type: dropdown
id: nrf24l01-module
attributes:
label: nRF24L01+ Module
description: |
description: |
What type of nRF24L01+ chip is on your nRF24L01+ module ?
* you verified this is a **nRF24L01+ plus** model capable of the required 256kBit/s mode ?
* **square dot** indicates original Nordic Semicon chip ?
@ -69,43 +81,11 @@ body:
* special **voltage stabilizing board**
* **nothing** (yet)
options:
- ~100uF Elko
- Elko (~100uF)
- board
- nothing
validations:
required: true
- type: textarea
id: connection-diagram
attributes:
label: Connection diagram
description: Tell us which connection diagram you used?
value: |
## Connection diagram I used:
| nRF24L01+ Pin | ESP8266 GPIO |
| ------------- | -------------- |
| Pin 1 GND [*] | GND |
| Pin 2 +3.3V | +3.3V |
| Pin 3 CE | GPIO2 CE D4 |
| Pin 4 CSN | GPIO15 CS D8 |
| Pin 5 SCK | GPIO14 SCLK D5 |
| Pin 6 MOSI | GPIO13 MOSI D7 |
| Pin 7 MISO | GPIO12 MISO D6 |
| Pin 8 IRQ | GPIO0 IRQ D3 |
| nRF24L01+ Pin | ESP32 GPIO |
| ------------- | --------------- |
| Pin 1 GND [*] | GND |
| Pin 2 +3.3V | +3.3V |
| Pin 3 CE | GPIO4 CE D4 |
| Pin 4 CSN | GPIO5 CS D5 |
| Pin 5 SCK | GPIO18 SCLK D18 |
| Pin 6 MOSI | GPIO23 MOSI D23 |
| Pin 7 MISO | GPIO19 MISO D19 |
| Pin 8 IRQ | GPIO0 IRQ D0 |
Note: [*] GND Pin 1 has a square mark on the nRF24L01+ module
validations:
required: true
- type: checkboxes
id: connection-picture
attributes:
@ -123,7 +103,7 @@ body:
attributes:
label: Version
description: What version of our software are you running ?
placeholder: 0.5.17
placeholder: 0.6.0
validations:
required: true
- type: input
@ -131,7 +111,7 @@ body:
attributes:
label: Github Hash
description: Which GitHub hash has the build of our software ?
placeholder: 5402e9b
placeholder: 0000000
validations:
required: true
- type: dropdown
@ -140,19 +120,11 @@ body:
label: Build & Flash Method
description: What software do you use to flash / build & flash our firmware images ?
options:
- AhoyDTU Webinstaller
- VSCode - Platform IO (build & flash)
- ESP Tools (flash)
- Platform IO (build & flash)
validations:
required: true
- type: dropdown
id: desktop-os
attributes:
label: Desktop
description: Which operating system are you using on your desktop to build & flash ?
options:
- Linux
- Mac OS
- Windows
- Arduino IDE
- was already installed
validations:
required: true
- type: textarea
@ -160,49 +132,12 @@ body:
attributes:
label: Setup
description: |
Which settings are configured under http://ahoy-dtu/setup ?
Document any relevant setup values correctly.
Copy and paste the Inverter Section if you have multiple Inverters.
value: |
### Device Host Name
- Device Name: AHOY-DTU
### WiFi
- SSID: YOUR_WIFI_SSID *don't paste here*
- Password: YOUR_WIFI_PWD *don't paste here*
### Inverter
#### Inverter 0
- Address: 1141752123456
- Name: HM-600
- Active Power Limit: 65535
- Active Power Limit Control Type: no powerlimit
- Max Module Power (Wp): 375, 375
- Module Name: link, rech
### General
- Interval [s]: 30
- Max retries per Payload: 5
### NTP Server
- NTP Server / IP: pool.ntp.org
- NTP Port: 123
### MQTT
- Broker / Server IP:
- Port: 1883
- Username (optional):
- Password (optional):
- Topic: inverter
### System Config
#### Pinout (Wemos)
- CS: D8 (GPIO15)
- CE: D4 (GPIO2)
- IRQ: D3 (GPIO0)
#### Radio (NRF24L01+)
- Amplifier Power Level: LOW
#### Serial Console
- print inverter data: [x]
- Serial Debug: [x]
- Interval [s]: 5
- Reboot device after successful save: [x]
- SAVE
Which settings were modified to which values? Check this page on your DTU: http://ahoy-dtu/setup
Do not post private data here (SSID / passwords / serial numbers)!
placeholder: |
Some examples:
- MqTT: only broker was added
- Inverter: set intervall to 5 seconds ..
validations:
required: true
- type: textarea
@ -219,12 +154,9 @@ body:
attributes:
label: Error description
description: Please describe what you expected and what happened instead.
value: |
1) Go to http://ahoy-dtu/setup
2) configure above settings
3) Reboot
4) I did this
5) I expected that
6) and something completely differen happened
placeholder: |
1) I went to https://ahoy-dtu.de/web_install and installed latest release
2) I did some configurations, especially ...
...
validations:
required: true

4
src/CHANGES.md

@ -2,7 +2,9 @@
## 0.6.3 - 2023-04-04
* fix login, password length was not checked #852
* merge PR #854 optimize browser caching, thx @tastendruecker123
* merge PR #854 optimize browser caching, thx @tastendruecker123 #828
* fix WiFi reconnect not working #851
* updated issue templates #822
## 0.6.2 - 2023-04-04
* fix login from multiple clients #819

6
src/wifi/ahoywifi.cpp

@ -25,6 +25,7 @@ void ahoywifi::setup(settings_t *config, uint32_t *utcTimestamp, appWifiCb cb) {
mStaConn = DISCONNECTED;
mCnt = 0;
mScanActive = false;
mScanCnt = 0;
#if defined(ESP8266)
wifiConnectHandler = WiFi.onStationModeConnected(std::bind(&ahoywifi::onConnect, this, std::placeholders::_1));
@ -109,7 +110,7 @@ void ahoywifi::tickWifiLoop() {
DBGPRINTLN(F(" seconds"));
if(mScanActive) {
getBSSIDs();
if(!mScanActive) // scan completed
if((!mScanActive) && (!mBSSIDList.empty())) // scan completed
if ((mCnt % timeout) < timeout - 2)
mCnt = timeout - 2;
}
@ -297,8 +298,7 @@ void ahoywifi::getAvailNetworks(JsonObject obj) {
void ahoywifi::getBSSIDs() {
int n = WiFi.scanComplete();
if (n < 0) {
mScanCnt++;
if (mScanCnt < 20)
if (++mScanCnt < 20)
return;
}
if(n > 0) {

Loading…
Cancel
Save