Giter Club home page Giter Club logo

Comments (12)

technyon avatar technyon commented on September 22, 2024 1

Hi,

Yes the arduino core can cause such issues. It's the code from Espressif that everything else is built upon, including drivers for wifi, bluetooth, TCP/IP stack. If anything is broken in there, it can cause any issue. We did test it before release 8.24, but couldn't observe the issue, only now with longer testing we could see it.

from nuki_hub.

technyon avatar technyon commented on September 22, 2024

Can you confirm this is related to 8.24 by going back to 8.23 and logging the connection state?

Updating the arduino core for esp32 could make wifi less reliable, although I don't think so, updates usually improved stability. Also there's nothing regarding wifi in the changelog:

https://github.com/espressif/arduino-esp32/releases/tag/2.0.9

from nuki_hub.

bcutter avatar bcutter commented on September 22, 2024

I downgraded to 8.23 now (only the affected ESP) and will report back in a few days.

from nuki_hub.

bcutter avatar bcutter commented on September 22, 2024

Short update:

SL 3 Pro with Nuki Hub 8.24:
grafik

grafik

SL 3 with Nuki Hub 8.23:
grafik
(no recent incidents, last one 3 days ago)

grafik


So looking at MQTT connection entites and Nuki Hub only I tend to say "things got worse from 8.23 to 8.24". Comparing the uptime sensors it looks like it's more a general (WiFi?) connection/stability thing.

from nuki_hub.

alexdelprete avatar alexdelprete commented on September 22, 2024

I have no issues regarding MQTT connection, I'm using EMQX.

image
image

from nuki_hub.

alexdelprete avatar alexdelprete commented on September 22, 2024

@mcutter what broker are you using? can you produce serial debug logs so we can see exactly what happens when NH does the MQTT connect?

from nuki_hub.

technyon avatar technyon commented on September 22, 2024

Also please post the system information page, best case of both ESPs so we can compare.

from nuki_hub.

bcutter avatar bcutter commented on September 22, 2024
  1. I use the default addon in Home Assistant as MQTT broker (Mosquitto).
  2. Logs sounds like hard work as the logging possibilities are quite limited, for usable (long-term) logs I'd probably first do a deep-dive into it. The web only shows limited number of log entries.
  3. System information pages
  • SL 3 Pro with NH 8.24
System Information

NUKI Hub version: 8.24
run: true
deviceId: XXXXXXXXXX
deviceIdOp: XXXXXXXXXX
mqttbroker: xxx.xxx.xxx.xxx
mqttport: 1883
mqttuser: ***
mqttpass: ***
mqttlog: false
lockena: true
mqttpath: nuki_door_a
openerena: false
mqttoppath: 
maxkpad: 4
opmaxkpad: 
mqttca: 
mqttcrt: 
mqttkey: 
hassdiscovery: homeassistant
dhcpena: true
ipaddr: xxx.xxx.xxx.xxx
ipsub: 255.255.255.0
ipgtw: xxx.xxx.xxx.xxx
dnssrv: xxx.xxx.xxx.xxx
nwhw: 1
rssipb: -1
hostname: ESP-Nuki-Hub-Door-A
nettmout: -1
restdisc: true
rstbcn: 60
lockStInterval: 3600
configInterval: 3600
batInterval: 7200
kpInterval: 1800
kpEnabled: true
accLvl: 
regAsApp: false
nrRetry: 5
rtryDelay: 100
crdusr: ***
crdpass: ***
pubauth: true
pubdbg: false
prdtimeout: 60
hasmac: false
macb0: 
macb1: 
macb2: 
MQTT connected: Yes
Lock firmware version: 3.6.9
Lock hardware version: 5.11
Lock paired: Yes
Lock PIN set: Yes
Lock has door sensor: No
Lock has keypad: Yes
Network device: Built-in Wifi
Uptime: 1456 minutes
Heap: 84840
Stack watermarks: nw: 6104, nuki: 312, pd: 248
Restart reason FW: RestartOnDisconnectWatchdog
Restart reason ESP: ESP_RST_SW: Software reset via esp_restart.
  • SL 3 with NH 8.23
System Information

NUKI Hub version: 8.23
run: true
deviceId: YYYYYYYYYY
deviceIdOp: YYYYYYYYYY
mqttbroker: xxx.xxx.xxx.xxx
mqttport: 1883
mqttuser: ***
mqttpass: ***
mqttlog: false
lockena: true
mqttpath: nuki_door_b
openerena: false
mqttoppath: 
maxkpad: 
opmaxkpad: 
mqttca: 
mqttcrt: 
mqttkey: 
hassdiscovery: homeassistant
dhcpena: true
ipaddr: xxx.xxx.xxx.xxx
ipsub: 255.255.255.0
ipgtw: xxx.xxx.xxx.xxx
dnssrv: xxx.xxx.xxx.xxx
nwhw: 1
rssipb: -1
hostname: ESP-Nuki-Hub-Door-B
nettmout: -1
restdisc: true
rstbcn: 60
lockStInterval: 3600
configInterval: 3600
batInterval: 7200
kpInterval: 1800
kpEnabled: false
accLvl: 
regAsApp: false
nrRetry: 5
rtryDelay: 100
crdusr: ***
crdpass: ***
pubauth: true
pubdbg: false
prdtimeout: 60
hasmac: true
macb0: -XX
macb1: YY
macb2: ZZZ
MQTT connected: Yes
Lock firmware version: 3.6.9
Lock hardware version: 4.10
Lock paired: Yes
Lock PIN set: Yes
Lock has door sensor: No
Lock has keypad: No
Network device: Built-in Wifi
Uptime: 232 minutes
Heap: 90124
Stack watermarks: nw: 6104, nuki: 600, pd: 248
Restart reason FW: RestartOnDisconnectWatchdog
Restart reason ESP: ESP_RST_SW: Software reset via esp_restart.

The last MQTT connection issue for door B has been many days ago meanwhile running 8.23.
I updated NH once again to 8.24 on that ESP now, let's see if things change.

from nuki_hub.

mundschenk-at avatar mundschenk-at commented on September 22, 2024

screen -L /dev/<your-usb-tty> 115200 and then send us screenlog.0 (ESP32 connected via USB to the computer of course, UNIXish OS).

from nuki_hub.

technyon avatar technyon commented on September 22, 2024

I agree that getting serial logs would help to get some insight into what's going on. They would especially tell if the MQTT connection is really interrupted.

from nuki_hub.

technyon avatar technyon commented on September 22, 2024

You could the binary from this issue, maybe it's related:

#196

from nuki_hub.

bcutter avatar bcutter commented on September 22, 2024

Updated to 8.25 now, will monitor it for a few days. With 8.24 it seems like the ESP itself had more MQTT/connection issues when connected to a certain WiFi AP while others were working better/fine. That behaviour is/was definitely new and did not exist in the past.

Not sure if that makes sense (can Arduino Core cause such WiFi and in the end MQTT connection issues?), just a pre-summary form my current point of view.

from nuki_hub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.