ESP8266 WiFi gateway port for MySensors
-
to me it was very easy to hook up and get working ..well done Yveaux you have given my collection of esp's a new life :) when my phone recharges ill take a pic and upload it ..i like the way it reboots when connection is lost .. handy feature :)
well done kudos to you :)
-
@Andy-Pep Awesome! Good to hear its running without any troubles so far! :+1:
Maybe I frightened people by writing a too elaborate description how to set things up :dizzy_face: -
to me it was very easy to hook up and get working ..well done Yveaux you have given my collection of esp's a new life :) when my phone recharges ill take a pic and upload it ..i like the way it reboots when connection is lost .. handy feature :)
well done kudos to you :)
@Andy-Pep said:
i like the way it reboots when connection is lost .. handy feature
I wasn't aware of that. Most errors result in watchdog timeouts or access violations and cause a reboot. The Ethernet client has to be robust against this.
We need extensive testing to catch these kinds of errors and assure they are handled in a defined way. -
@Yveaux No you did not scare me away but I'm in loss of time to do this. I look forward to setting my esp gateway up in a week or so. :)
-
@Yveaux said:
@DrJeff said:
@Yveaux No you did not scare me away
A, damn ! Maybe next project then? :facepunch:
The problem lies mainly in the vast amount of ESP variants and how to wire them to be able to download and to connect the radio.
Sorry it was supposed to be "No you didn't scare", me auto correct!
I'm going to build this for sure!
:) -
to me it was very easy to hook up and get working ..well done Yveaux you have given my collection of esp's a new life :) when my phone recharges ill take a pic and upload it ..i like the way it reboots when connection is lost .. handy feature :)
well done kudos to you :)
@Andy-Pep said:
i like the way it reboots when connection is lost
I cannot replay this situation:
- Tried disabling my WiFI network on the router. Gateway keeps running and restores connection correctly when WiFI is enabled again. No reboot observed.
- Tried disconnecting telnet session. No reboot.
What did you do to cause a reboot?
-
Ok I will test it in few days.
Do you think is it possible to have an ESP gateway with RF24 and RF69 ? ESP have more memroy (ESP12E) -
Hi, let me ask a silly question just to confirm if I understand how this would work.
This gateway would receive Nodes data throght NRF or RF69 and then send it to controller via wifi? The way back would be, receiving controller commands/data via wifi and get to the nodes through NRF or RF69.
Is this right?
Thanks!
-
Hi, let me ask a silly question just to confirm if I understand how this would work.
This gateway would receive Nodes data throght NRF or RF69 and then send it to controller via wifi? The way back would be, receiving controller commands/data via wifi and get to the nodes through NRF or RF69.
Is this right?
Thanks!
@gonzalonal said:
Hi, let me ask a silly question just to confirm if I understand how this would work.
This gateway would receive Nodes data throght NRF or RF69 and then send it to controller via wifi? The way back would be, receiving controller commands/data via wifi and get to the nodes through NRF or RF69.
Is this right?
Thanks!
Correct!
-
Doesn't work here with stage version of ESP8266-Arduino (can't install stable version, I have checksum error). I use this module http://www.electrodragon.com/product/nodemcu-lua-amica-r2-esp8266-wifi-board/
Can't load at 9600 bauds (how can you change uplaod baud rate ?)
Crash on init and reboot :ESP8266 MySensors Gateway Connecting to Livebox-577E ...Connected! IP: 192.168.1.23 Exception (3): epc1=0x40206955 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40244cd2 depc=0x00000000 ctx: cont sp: 3ffea540 end: 3ffea780 offset: 01a0 >>>stack>>> 3ffea6e0: a8e1fcff 000000a8 3ffe9294 40206b7c 3ffea6f0: 00000001 3ffe9290 3ffe9294 402036d0 3ffea700: 00000000 00000000 3ffe91fc 40204910 3ffea710: 0000007f 3ffea7ac 40201cac 3ffe9760 3ffea720: 40202320 00000001 00000000 40201d4f 3ffea730: 1701a8c0 00ffffff 0101a8c0 3ffea7ac 3ffea740: 3ffe873d 3ffe9474 3ffe972c 4020266f 3ffea750: 3ffe8c08 1701a8c0 00000000 00000000 3ffea760: 3fffdc20 00000000 3ffea7a4 40201d1f 3ffea770: 00000000 00000000 3ffe9760 40100374 <<<stack<<< ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 1264, room 16 tail 0 chksum 0x42 csum 0x42 ~ld -
Doesn't work here with stage version of ESP8266-Arduino (can't install stable version, I have checksum error). I use this module http://www.electrodragon.com/product/nodemcu-lua-amica-r2-esp8266-wifi-board/
Can't load at 9600 bauds (how can you change uplaod baud rate ?)
Crash on init and reboot :ESP8266 MySensors Gateway Connecting to Livebox-577E ...Connected! IP: 192.168.1.23 Exception (3): epc1=0x40206955 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40244cd2 depc=0x00000000 ctx: cont sp: 3ffea540 end: 3ffea780 offset: 01a0 >>>stack>>> 3ffea6e0: a8e1fcff 000000a8 3ffe9294 40206b7c 3ffea6f0: 00000001 3ffe9290 3ffe9294 402036d0 3ffea700: 00000000 00000000 3ffe91fc 40204910 3ffea710: 0000007f 3ffea7ac 40201cac 3ffe9760 3ffea720: 40202320 00000001 00000000 40201d4f 3ffea730: 1701a8c0 00ffffff 0101a8c0 3ffea7ac 3ffea740: 3ffe873d 3ffe9474 3ffe972c 4020266f 3ffea750: 3ffe8c08 1701a8c0 00000000 00000000 3ffea760: 3fffdc20 00000000 3ffea7a4 40201d1f 3ffea770: 00000000 00000000 3ffe9760 40100374 <<<stack<<< ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 1264, room 16 tail 0 chksum 0x42 csum 0x42 ~ld@Fabien said:
Doesn't work here with stage version of ESP8266-Arduino (can't install stable version, I have checksum error).
What do you mean by stage version and checksum error exactly?
Tonight @hek merged the gateway code for ESP to master 1.5. Could you try with that version?I use this module http://www.electrodragon.com/product/nodemcu-lua-amica-r2-esp8266-wifi-board/
Seems identical to the one I ordered. Until I receive it I cannot replay your exact case. I did test & develop using separate ESP12 module, while your board has ESP12E, I guess. Can you confirm this?
Can't load at 9600 bauds (how can you change uplaod baud rate ?)
Don't bother about the download speed. I only suggest to start at low speed as it seems to download more reliably. Did download finish without errors?
Crash on init and reboot :
ESP8266 MySensors Gateway Connecting to Livebox-577E ...Connected! IP: 192.168.1.23 Exception (3): epc1=0x40206955 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40244cd2 depc=0x00000000 ctx: cont sp: 3ffea540 end: 3ffea780 offset: 01a0 >>>stack>>> 3ffea6e0: a8e1fcff 000000a8 3ffe9294 40206b7c 3ffea6f0: 00000001 3ffe9290 3ffe9294 402036d0 3ffea700: 00000000 00000000 3ffe91fc 40204910 3ffea710: 0000007f 3ffea7ac 40201cac 3ffe9760 3ffea720: 40202320 00000001 00000000 40201d4f 3ffea730: 1701a8c0 00ffffff 0101a8c0 3ffea7ac 3ffea740: 3ffe873d 3ffe9474 3ffe972c 4020266f 3ffea750: 3ffe8c08 1701a8c0 00000000 00000000 3ffea760: 3fffdc20 00000000 3ffea7a4 40201d1f 3ffea770: 00000000 00000000 3ffe9760 40100374 <<<stack<<< ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 1264, room 16 tail 0 chksum 0x42 csum 0x42 ~ldApparently you did connect to WiFi correctly and got an IP address.
Debugging this module is hard; I add serial print statements at strategic places to drill down to the cause of such access violations.
It would really help if you can get some more info on where it crashes by adding these print statements.
Otherwise you'll probably have to wait until we get to a common hardware setup. -
Doesn't work here with stage version of ESP8266-Arduino (can't install stable version, I have checksum error). I use this module http://www.electrodragon.com/product/nodemcu-lua-amica-r2-esp8266-wifi-board/
Can't load at 9600 bauds (how can you change uplaod baud rate ?)
Crash on init and reboot :ESP8266 MySensors Gateway Connecting to Livebox-577E ...Connected! IP: 192.168.1.23 Exception (3): epc1=0x40206955 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40244cd2 depc=0x00000000 ctx: cont sp: 3ffea540 end: 3ffea780 offset: 01a0 >>>stack>>> 3ffea6e0: a8e1fcff 000000a8 3ffe9294 40206b7c 3ffea6f0: 00000001 3ffe9290 3ffe9294 402036d0 3ffea700: 00000000 00000000 3ffe91fc 40204910 3ffea710: 0000007f 3ffea7ac 40201cac 3ffe9760 3ffea720: 40202320 00000001 00000000 40201d4f 3ffea730: 1701a8c0 00ffffff 0101a8c0 3ffea7ac 3ffea740: 3ffe873d 3ffe9474 3ffe972c 4020266f 3ffea750: 3ffe8c08 1701a8c0 00000000 00000000 3ffea760: 3fffdc20 00000000 3ffea7a4 40201d1f 3ffea770: 00000000 00000000 3ffe9760 40100374 <<<stack<<< ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 1264, room 16 tail 0 chksum 0x42 csum 0x42 ~ld@Fabien My bad, mea culpa :facepunch:
Have been so busy getting the stuff to compile for all different platforms that this bug sneaked in... That's why you should always verify if your code still works, after building it ;-)Anyway, see this pull request for the fix.
Once it is merged to master, could you please try again?I'm also experiencing some random disconnects, so expect a new update soon...
-
I prepared a new pull request which deals with some occasional watchdog timeouts (causing a reset) when clients connect or disconnect.
It also allows multiple clients to connect simultaneously to the ESP gateway.
Please update to this version once it's integrated in master. -
With pull #186, it works better ...
Connection ok, can see messages form sensors on the serial line.
Connecting with MYSController, got "Gateway startup complete." on the serial link but nothing on MYSController. Pinging works ...
Perhaps somme problems with ESP and Livebox ... I have this problem before with some sketch and I must made an AP on my Odroid ... I will try later.