-
Notifications
You must be signed in to change notification settings - Fork 57
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
v2.0 MQTT Verbindungsprobleme #18
Comments
I have exact same error and I think this problem happens with newest PubSubClient version. It starts working when PubSubClient is downgraded to 2.7.0 |
Thank you @Tomakava, you are right. v2.8.0 of the PubSubClient doesn't work. Until I found the cause of the error, please stay with the old version 2.7.0 |
Ok, downgrade to 2.7.0 works. Thank you. Just another problem, i set it to "On" and after few seconds, it turns automatically "Off" without a mqtt request. Any idea? 09:06:06.896 -> MQTT_subscribe_callback, topic=MHI_Wintergarten/set/Power payload=On |
The SPI connection appears to be very fragile. You have many err_msg_invalid_checksum errors (mhi_ac_ctrl_core.loop error: -2). This is unusual, especially because the signature bytes are o.k. Did you have the problem in an earlier version (e.g. v1.4)? |
No, v1.4 works fine on all 3 Devices |
You could try to increase the CPU frequency to 160Mhz, but that's just guessed. I have no idea what the problem is. |
unfortunately no luck, even with 160 MHz frequency, same behavior. After few seconds it turns off. |
Could you comment-out all operating data in MHI-AC-Ctrl-core.h (beside the dummy) and try again? |
Yes, I'll try tonight. |
I was just able to comprehend the error, some more checks are required. But no more testing by you needed currently |
fix of issue #18 #18 (comment). The illegal (dummy) value 0xff from opdata was used for MISO_DB6. This led to the shutdown of the air conditioning system. Now replaced by 0x00
It is fixed. There was a bug (wrong value MISO_DB6=0xff) in MHI-AC-Ctrl-core.h. This led to the shutdown of the air conditioning system. Edit: To prevent misunderstandings: You must still use v2.7.0 of PubSubClient, because there is a problem in 2.8.0 (see here for the according issue) |
OK, cool. I will try the fixed version. |
Works fine, thanks for your work |
Hey, habe gerade die v2.0 ausprobiert, bei der Version habe ich aber stetige MQTT Neuverbindungen, ca. alle 0,5 Sekunden. Hier ein Auszug aus dem Arduino LOG, da stertet er das Programm scheinbar ständig neu:
19:24:12.423 -> MHI-AC-Ctrl starting
19:24:12.423 -> CPU frequency[Hz]=80000000
19:24:12.423 -> Attempting WiFi connection ....... connected to CoyoteIoT, IP address: 192.168.XX.XX
19:24:14.412 -> OTA Ready
19:24:14.412 -> Attempting MQTT connection... connected
19:24:14.457 -> status=65 topic=connected payload=1
19:24:14.457 ->
19:24:14.457 -> Exception (3):
19:24:14.457 -> epc1=0x40216db4 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40247e60 depc=0x00000000
19:24:14.457 ->
19:24:14.457 -> >>>stack>>>
19:24:14.457 ->
19:24:14.457 -> ctx: cont
19:24:14.457 -> sp: 3ffffd10 end: 3fffffc0 offset: 0190
19:24:14.457 -> 3ffffea0: 40247e6e c0247e63 3ffee9e8 4020b6a4
19:24:14.457 -> 3ffffeb0: 40247e60 40247e60 3ffee9e8 00000041
19:24:14.457 -> 3ffffec0: 40247e64 40247e60 3ffee9e8 40202630
19:24:14.457 -> 3ffffed0: 5f49484d 746e6957 61677265 6e657472
19:24:14.505 -> 3ffffee0: 6e6f632f 7463656e 00006465 4020df9d
19:24:14.505 -> 3ffffef0: 3ffe8ac7 00045454 4d002e01 4020df9d
19:24:14.505 -> 3fffff00: 3ffe8ac7 00000000 00000001 3ffeeb30
19:24:14.505 -> 3fffff10: 4020b02c 3ffee9e8 3ffe8ac5 4020b038
19:24:14.505 -> 3fffff20: 4020b02c 3ffee9e8 3ffe8ac5 4020b425
19:24:14.505 -> 3fffff30: 3ffee834 0000000a 3ffee9e8 4020b6a4
19:24:14.505 -> 3fffff40: 3ffee834 00000000 3ffee9e8 3ffeeb30
19:24:14.505 -> 3fffff50: 3ffee834 00000000 3ffee9e8 402026cc
19:24:14.505 -> 3fffff60: 00000001 3ffe86ad 3ffee8b4 40202850
19:24:14.505 -> 3fffff70: 3ffefd54 00000000 3ffee834 4020504a
19:24:14.505 -> 3fffff80: 3fffdad0 00000000 3ffee834 402021f8
19:24:14.539 -> 3fffff90: 402018c0 feefeffe 4020eb10 4020eaf8
19:24:14.539 -> 3fffffa0: feefeffe feefeffe 3ffeeaf0 4020cea8
19:24:14.539 -> 3fffffb0: feefeffe feefeffe 3ffe850c 40101135
19:24:14.539 -> <<<stack<<<
19:24:14.539 ->
19:24:14.539 -> ets Jan 8 2013,rst cause:2, boot mode:(3,6)
19:24:14.539 ->
19:24:14.539 -> load 0x4010f000, len 3456, room 16
19:24:14.572 -> tail 0
19:24:14.572 -> chksum 0x84
19:24:14.572 -> csum 0x84
19:24:14.572 -> va5432625
19:24:14.572 -> ~ld
19:24:14.654 ->
19:24:14.654 -> MHI-AC-Ctrl starting
19:24:14.654 -> CPU frequency[Hz]=80000000
19:24:14.654 -> Attempting WiFi connection ....... connected to CoyoteIoT, IP address: 192.168.XX.XX
19:24:16.633 -> OTA Ready
19:24:16.633 -> Attempting MQTT connection... connected
19:24:16.673 -> status=65 topic=connected payload=1
19:24:16.673 ->
19:24:16.673 -> Exception (3):
19:24:16.673 -> epc1=0x40216db4 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40247e60 depc=0x00000000
19:24:16.673 ->
19:24:16.673 -> >>>stack>>>
19:24:16.673 ->
19:24:16.673 -> ctx: cont
19:24:16.673 -> sp: 3ffffd10 end: 3fffffc0 offset: 0190
19:24:16.673 -> 3ffffea0: 40247e6e c0247e63 3ffee9e8 4020b6a4
19:24:16.673 -> 3ffffeb0: 40247e60 40247e60 3ffee9e8 00000041
19:24:16.673 -> 3ffffec0: 40247e64 40247e60 3ffee9e8 40202630
19:24:16.721 -> 3ffffed0: 5f49484d 746e6957 61677265 6e657472
19:24:16.721 -> 3ffffee0: 6e6f632f 7463656e 00006465 4020df9d
19:24:16.721 -> 3ffffef0: 3ffe8ac7 00045454 4d002e01 4020df9d
19:24:16.721 -> 3fffff00: 3ffe8ac7 00000000 00000001 3ffeeb30
19:24:16.721 -> 3fffff10: 4020b02c 3ffee9e8 3ffe8ac5 4020b038
19:24:16.721 -> 3fffff20: 4020b02c 3ffee9e8 3ffe8ac5 4020b425
19:24:16.721 -> 3fffff30: 3ffee834 0000000a 3ffee9e8 4020b6a4
19:24:16.721 -> 3fffff40: 3ffee834 00000000 3ffee9e8 3ffeeb30
19:24:16.721 -> 3fffff50: 3ffee834 00000000 3ffee9e8 402026cc
19:24:16.721 -> 3fffff60: 00000001 3ffe86ad 3ffee8b4 40202850
19:24:16.755 -> 3fffff70: 3ffefd54 00000000 3ffee834 4020504a
19:24:16.755 -> 3fffff80: 3fffdad0 00000000 3ffee834 402021f8
19:24:16.755 -> 3fffff90: 402018c0 feefeffe 4020eb10 4020eaf8
19:24:16.755 -> 3fffffa0: feefeffe feefeffe 3ffeeaf0 4020cea8
19:24:16.755 -> 3fffffb0: feefeffe feefeffe 3ffe850c 40101135
19:24:16.755 -> <<<stack<<<
19:24:16.805 ->
19:24:16.805 -> ets Jan 8 2013,rst cause:2, boot mode:(3,6)
19:24:16.805 ->
19:24:16.805 -> load 0x4010f000, len 3456, room 16
19:24:16.805 -> tail 0
19:24:16.805 -> chksum 0x84
19:24:16.805 -> csum 0x84
19:24:16.805 -> va5432625
19:24:16.805 -> ~ld
19:24:16.839 ->
The text was updated successfully, but these errors were encountered: