absalom-muc / MHI-AC-Ctrl

Reads and writes data (e.g. power, mode, fan status etc.) from/to a Mitsubishi Heavy Industries (MHI) air conditioner (AC) via SPI controlled by MQTT
MIT License
269 stars 61 forks source link

MQTT connection loop #50

Closed L4RGER closed 3 years ago

L4RGER commented 3 years ago

Hi, my mqtt connection is continually resetting. I've found this comment referencing the SCK and MOSI pins. the 'new' pins referenced in the comment are not whats in the latest release -2.03 - MHI-AC-Ctrl-core.h

after flashing the serial monitor shows a loop of the below.

ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3584, room 16 
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld

MHI-AC-Ctrl starting
CPU frequency[Hz]=80000000
Attempting WiFi connection .......... connected to xxxxxxxx, IP address: xxx.xxx.x.xx
OTA Ready
Attempting MQTT connection... connected
status=65 topic=connected payload=1

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Exception (3):
epc1=0x40216d34 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40247f94 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffd20 end: 3fffffc0 offset: 0190
3ffffeb0:  40247fa2 40247ff0 3ffffe90 3ffffec0  
3ffffec0:  40247f94 00000000 00000002 3ffee890  
3ffffed0:  00000041 40247f98 40247f94 40202814  
3ffffee0:  2d49484d 432d4341 2f6c7274 6e6e6f63  
3ffffef0:  65746365 00000064 00000000 00000000  
3fffff00:  00000000 00000000 00000000 00000000  
3fffff10:  00000000 00000000 00000000 00000000  
3fffff20:  00000000 00000000 00000000 00000000  
3fffff30:  00000000 00000000 00000000 00000000  
3fffff40:  00000000 00000000 3ffee748 4020b654  
3fffff50:  3ffee594 00000000 3ffee748 402028ac  
3fffff60:  00000001 3ffe86c0 3ffee614 40202a84  
3fffff70:  3ffef43c 00000000 3ffee594 4020502e  
3fffff80:  3fffdad0 00000000 3ffee594 40202459  
3fffff90:  40201a9c feefeffe 4020ea8c 4020ea74  
3fffffa0:  feefeffe feefeffe 3ffee850 4020cdc4  
3fffffb0:  feefeffe feefeffe 3ffe8510 40101129  
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

and below is the log from MQTT broker in Home Assistant. this is a small extract, if just keeps going over and over

1605573472: New connection from 192.168.0.18 on port 1883.
1605573472: Client MHI-AC-Ctrl already connected, closing old connection.
1605573472: New client connected from 192.168.0.18 as MHI-AC-Ctrl (p2, c1, k15, u'mqtt').
1605573477: New connection from 192.168.0.18 on port 1883.
1605573477: Client MHI-AC-Ctrl already connected, closing old connection.
1605573477: New client connected from 192.168.0.18 as MHI-AC-Ctrl (p2, c1, k15, u'mqtt').
L4RGER commented 3 years ago

just found this previous issue will try and work through it now