obscure problem with sendtohtttp (and thingspeak)

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
baumi67
Normal user
Posts: 2
Joined: 23 Dec 2019, 20:40

Re: obscure problem with sendtohtttp (and thingspeak)

#51 Post by baumi67 » 23 Dec 2019, 20:49

MarcelM wrote:
20 Dec 2019, 14:16
after flashing, I enabled the MQTTT Domoticz controller and sets the new settings:
Will Retain: false
Clean Session true

And of course I changed code in the Rules from:

SendToHTTP api.thingspeak.com,80,/update?api_key=XXXX&field1=[DHT22#Temp]&field2=[DHT22#Hum]&field3=[Light#Lux]&field4=[PIR#State]

to
Publish channels/931292/publish/XXX,field1=[DHT22#Temp]&field2=[DHT22#Hum]&field3=[Light#Lux]&field4=[PIR#State]&status=MQTTPUBLISH
Can you showme how you set it up exactly?

User avatar
dynamicdave
Normal user
Posts: 222
Joined: 30 Jan 2017, 20:25
Location: Hampshire, UK

Re: obscure problem with sendtohtttp (and thingspeak)

#52 Post by dynamicdave » 24 Dec 2019, 08:21

This is what I use in my weather station, and it works fine.

Please note the quote marks that surround the various parameters.

SendToHTTP,api.thingspeak.com,80,'/update?api_key=<insert your API key here>&field1=[ds18b20#temperature]'

User avatar
ThomasB
Normal user
Posts: 703
Joined: 17 Jun 2018, 20:41
Location: USA

Re: obscure problem with sendtohtttp (and thingspeak)

#53 Post by ThomasB » 25 Dec 2019, 03:58

It seems I'm the only user that is experiencing the boot loop issue with PR2825. So more troubleshooting as summarized below.

I bit the bullet and performed Tools=>FactoryReset while running ESP_Easy_mega-20191208_test_ESP8266_4M1M. AP Mode was used to setup the WiFi credentials and fixed IP.

But before restoring any of the devices, rules, and controllers, I performed OTA flash with the PR2825 bin. As before, the boot loop appeared (see log below). So at least I know the problem is not caused by a plugin or controller.

The serial log error message is different than what I reported earlier. Previously the boot error was a Fatal exception 9(LoadStoreAlignmentCause), but now it is stated as exception(9). See log snippet below:

Code: Select all

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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
vbc204a9b
~ld
�U71 : Info  : 

INIT : Booting version:  (ESP82xx Core 2_6_2, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support)
72 : Info  : INIT : Free RAM:30480
73 : Info  : INIT : Warm boot #53 Last Task: Background Task - Restart Reason: Exception
75 : Info  : FS   : Mounting...
99 : Info  : FS   : Mount successful, used 75802 bytes of 957314
554 : Info  : CRC  : program checksum       ...OK
565 : Info  : CRC  : SecuritySettings CRC   ...OK
566 : Info  : CRC  : binary has changed since last save of Settings
672 : Info  : INIT : Free RAM:27264
673 : Info  : INIT : I2C
674 : Info  : INIT : SPI not enabled
940 : Info  : INFO : Plugins: 79 [Normal] [Testing] (ESP82xx Core 2_6_2, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support)
1044 : Info  : WIFI : Set WiFi to STA
1078 : Info  : WIFI  : Start network scan
1079 : Info  : WIFI : Connecting SSIDNAME attempt #0
Exception (9):
epc1=0x40292c00 epc2=0x00000000 epc3=0x00000000 excvaddr=0x3fff1a2e depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3fff2e20 end: 3fff30a0 offset: 01a0
3fff2fc0:  00000005 3fff66a4 3fff0eac 3fff16dc
3fff2fd0:  3fff16bc 3fff169c 00000020 40101873  
3fff2fe0:  3fff16bc 3fff66a4 00000002 40235735
3fff2ff0:  40293620 00000000 40293620 00000000  
3fff3000:  40293620 00000000 40293620 00000000
3fff3010:  3fff16bc 3fff169c 3fff0c50 4024f27c  
3fff3020:  3fff6600 0028002f 80ff1a24 402862e0
3fff3030:  2e310029 3ffe8724 00000002 3fff1f64
3fff3040:  3fff0ea9 3ffe8724 3fff1a24 402704e0  
3fff3050:  3fff5b00 004a004f 8029005d 40291e64
3fff3060:  3fff5bac 0072007f 00efeffe feefeffe  
3fff3070:  feefeffe feefeffe feefeffe 3fff30e8
3fff3080:  3fffdad0 00000000 3fff30a8 402874fc  
3fff3090:  feefeffe feefeffe 3ffe875c 401007d9
<<<stack<<<
Some of you are just starting your Christmas morning (it's still xmas eve at my location). I hope Santa is good to you and that you have a Merry Christmas / Happy Holidays!

- Thomas

TD-er
Core team member
Posts: 2884
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: obscure problem with sendtohtttp (and thingspeak)

#54 Post by TD-er » 25 Dec 2019, 14:35

Hmm it is the "test" build, which may be using a bit more resources compared to other builds.
Can you also test a "normal" build, just to see if that one also boot loops?

User avatar
ThomasB
Normal user
Posts: 703
Joined: 17 Jun 2018, 20:41
Location: USA

Re: obscure problem with sendtohtttp (and thingspeak)

#55 Post by ThomasB » 26 Dec 2019, 00:49

Can you also test a "normal" build, just to see if that one also boot loops?
I already tried ESP_Easy_mega-20191208-19-PR_2825_normal_ESP8266_4M1M (per my earlier post) with zero joy. But per your request I tried again, but this time I sanitized the flash with the blank_4MB.bin. Then loaded ESP_Easy_mega-20191208-19-PR_2825_normal_ESP8266_4M1M. API mode booted OK, but the boot loop re-appeared after WiFi configuration (STA Mode).

But finally good news; After several iterations (erase/load/config, rinse and repeat), I have the golden answer. The PR_2825 will boot loop if Fixed IP is used. All my ESPEasy devices are setup with fixed IP's and I suspect those reporting success are using DHCP.

After finding that Fixed IP is involved, I reverted back to the older working version (ESP_Easy_mega-20191208_test_ESP8266_4M1M_VCC). Restored all my original settings and rules (but changed to DHCP). OTA successfully flashes with PR2825, so it is confirmed that fixed IP is involved with the boot loop problem.

But I've run out of time. So I have to postpone testing the thingspeak MQTT fix. It's Christmas day and I'm off to spend time with my family.

Merry Christmas!

- Thomas

TD-er
Core team member
Posts: 2884
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: obscure problem with sendtohtttp (and thingspeak)

#56 Post by TD-er » 26 Dec 2019, 01:29

OK, so I did break the static IP in a recent build.
Good to know.

User avatar
ThomasB
Normal user
Posts: 703
Joined: 17 Jun 2018, 20:41
Location: USA

Re: obscure problem with sendtohtttp (and thingspeak)

#57 Post by ThomasB » 26 Dec 2019, 02:16

OK, so I did break the static IP in a recent build.
Ahhhg. I just visited the github issue tracker and see that boot loop due to fixed/static IP was reported over a week ago. https://github.com/letscontrolit/ESPEasy/issues/2821

Wish I'd known that, could have prevented this new patch of gray hair.

- Thomas

TD-er
Core team member
Posts: 2884
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: obscure problem with sendtohtttp (and thingspeak)

#58 Post by TD-er » 27 Dec 2019, 21:21

ThomasB wrote:
26 Dec 2019, 02:16
OK, so I did break the static IP in a recent build.
Ahhhg. I just visited the github issue tracker and see that boot loop due to fixed/static IP was reported over a week ago. https://github.com/letscontrolit/ESPEasy/issues/2821

Wish I'd known that, could have prevented this new patch of gray hair.

- Thomas
Well, at least you didn't pull it out, out of frustration.

User avatar
ThomasB
Normal user
Posts: 703
Joined: 17 Jun 2018, 20:41
Location: USA

Re: obscure problem with sendtohtttp (and thingspeak)

#59 Post by ThomasB » 28 Dec 2019, 00:52

Well, at least you didn't pull it out, out of frustration.
I've been resisting the temptation to do that.

I abandoned further testing on PR2825. It locks up every few hours (requires a manual reboot). Rather than pull out my new gray hairs, I've reverted to an earlier release.

BTW, yesterday I reinstalled ESP_Easy_mega-20191130-2-PR_2789_test_ESP8266_4M_VCC. Unfortunately it reboots too often. I'm now running ESP_Easy_mega-20191123_test_ESP8266_4M_VCC to see if it was the reasonably stable bin I had before messing with PR2825. Fingers are crossed.
Edit 12/29/2019: Nextion rules are broken in ESP_Easy_mega-20191123_test_ESP8266_4M_VCC. So I'm back to ESP_Easy_mega-20191130-2-PR_2789_test_ESP8266_4M_VCC.

So long story short, I won't be able to provide additional feedback on the PR2825 MQTT patch.

- Thomas

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests