Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP-Adresse wird nicht Aktualisiert #602

Closed
1 task
Juergen2453 opened this issue Jan 19, 2023 · 3 comments
Closed
1 task

IP-Adresse wird nicht Aktualisiert #602

Juergen2453 opened this issue Jan 19, 2023 · 3 comments
Assignees
Labels
bug Something isn't working fixed dev fixed

Comments

@Juergen2453
Copy link

Juergen2453 commented Jan 19, 2023

Platform

ESP8266

Model name

No response

nRF24L01+ Module

nRF24L01+ plus

Antenna

circuit board

Power Stabilization

~100uF Elko

Connection diagram

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

Note: [*] GND Pin 1 has a square mark on the nRF24L01+ module

Connection picture

  • I will attach/upload an Image of my wiring

Version

0.5.73

Github Hash

3d3e3dc

Build & Flash Method

ESP Tools (flash)

Desktop

Windows

Setup

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

Debug Serial Log output

No response

Error description

Die IP-Adresse wird beim Starten der DTU an den MQTT-Server übertragen.
Wenn das WLAN unterbrochen wird und der DHCP-Server nach Wiederaufbau des WLANs eine andere IP-Adresse der DTU vergibt so wird die nicht an den MQTT-Server übertragen. Somit gibt es zwei IP für das selbe Gerät.
Lösung: Wenn die WLAN-Verbindung neu aufgebaut wird, die IP-Adresse an den MQTT-Server übermitteln.

@Juergen2453 Juergen2453 added the bug Something isn't working label Jan 19, 2023
@beegee3
Copy link
Contributor

beegee3 commented Jan 19, 2023

Hinweis: die IP-Adresse wird in pubMqtt.h onConnect in if(mExeOnce) {...} zusammen mit 'version' und 'device' übertragen. Man könnte auf mExeOnce ganz verzichten (wird nur an dieser Stelle benutzt) und alle drei Infos beim Reconnect immer übertragen. Oder spricht etwas dagegen, weil sie 'retained' sind?

@Juergen2453
Copy link
Author

Juergen2453 commented Jan 19, 2023

Genau beim Reconnect immer übertragen. Retained kann ja bleiben

@lumapu
Copy link
Owner

lumapu commented Jan 19, 2023

@beegee3 @Juergen2453
werde ich in der nächsten Version implementieren

lumapu added a commit that referenced this issue Jan 19, 2023
improved `isAvailable`, checkes all record structs, inverter becomes available more early because version is check first
fix tickers were not set if NTP is not available
disabled annoying `FlashStringHelper` it gives randomly Expeptions during development, feels more stable since then
moved erase button to the bottom in settings, not nice but more functional
split `tx_count` to `tx_cnt` and `retransmits` in `system.html`
fix mqtt retransmit IP address #602
added debug infos for `scheduler` (web -> `/debug` as trigger prints list of tickers to serial console)
@stefan123t stefan123t added the fixed dev fixed label Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed dev fixed
Projects
None yet
Development

No branches or pull requests

4 participants