ESP8266 WiFi gateway port for MySensors
-
@Yveaux: I have two huzzah. but no time to play with for the moment. but your aliexpress link is very interesting. so cheap! I think I will order one to see. at this price...
Some time ago, I tried to design a very basic esp GW, based on huzzah pinout. But I didn't have time to finish it, as esp was not mysensors compatible and tbowmo is doing something great too. And I feel more secure with a usb GW...
Here : https://github.com/scalz/MySensors-HW/tree/development/MysensorsGW_huzzah
But it tempts me to improve design (not finished), and test it with your work... -
@Yveaux: I have two huzzah. but no time to play with for the moment. but your aliexpress link is very interesting. so cheap! I think I will order one to see. at this price...
Some time ago, I tried to design a very basic esp GW, based on huzzah pinout. But I didn't have time to finish it, as esp was not mysensors compatible and tbowmo is doing something great too. And I feel more secure with a usb GW...
Here : https://github.com/scalz/MySensors-HW/tree/development/MysensorsGW_huzzah
But it tempts me to improve design (not finished), and test it with your work...@scalz Could be interesting to develop a MySensors WiFi gateway board in the future, based on an ESP module.
That should certainly lower the bar for everyone.
I understand this is a chicken-and-egg situation for the port to get stable, but hopefully using a board like the NodeMcu most MySensors users can get a working prototype.A short inventory of all the ESP modules/breakouts everyone on the forum owns could help in writing a more elaborate how-to on the subject, so please post your modules (and a link to some details when available)
-
@Yveaux: yes why not. The huzzah I have, are homemade as I had some esp8266-07 (with ceramic antenna and ipex connector) in stock, and it was sold out at adafruit. their files are opensource.
https://www.adafruit.com/products/2471
http://www.electrodragon.com/product/esp8266-wifi-board-full-ios-smd/
but your aliexpress link is cheaper. I will look at the pinout if it is compatible or I will adapt and improve my old pcb project, for fun, and my learning curve :wink: -
I have up and running a mqtt gateway with esp8266 that is connected to ordinary serial gateway (with the arduino) I based it on 2 projects-
ESPHTTPD and tuanpmt mqtt for esp and all is working fine and deliver the serial gateway messages to cloud based mqtt broker and I also have the benefit of configuring everything by webpages (mqtt params ,wifi params)and use all benefits of http server like serving pictures(favicon)and jquery for all web based configuration like this,and now after I see this project I like to remove the arduino and connect the esp directly to nrf but the native sdk is c and I use eclipse.
Is it possible to pull all the relative mysensors code from this work (I see it's mainly in c++) and add it to the code in native esp mqtt (which is mainly in c)? -
I have up and running a mqtt gateway with esp8266 that is connected to ordinary serial gateway (with the arduino) I based it on 2 projects-
ESPHTTPD and tuanpmt mqtt for esp and all is working fine and deliver the serial gateway messages to cloud based mqtt broker and I also have the benefit of configuring everything by webpages (mqtt params ,wifi params)and use all benefits of http server like serving pictures(favicon)and jquery for all web based configuration like this,and now after I see this project I like to remove the arduino and connect the esp directly to nrf but the native sdk is c and I use eclipse.
Is it possible to pull all the relative mysensors code from this work (I see it's mainly in c++) and add it to the code in native esp mqtt (which is mainly in c)?@Mickey I'm afraid it's not that simple... MySensors is purely written in C++, and although this code could be rewritten in C it is a lot of work and requires decent C/C++/MySensors knowledge.
Did you consider doing it the other way around and port your work to fit in this MySensors gateway?
Could be a lot less work (depending on how much code you wrote yourself) as C code compiles (almost) without problems in the Arduino IDE. -
@Mickey I'm afraid it's not that simple... MySensors is purely written in C++, and although this code could be rewritten in C it is a lot of work and requires decent C/C++/MySensors knowledge.
Did you consider doing it the other way around and port your work to fit in this MySensors gateway?
Could be a lot less work (depending on how much code you wrote yourself) as C code compiles (almost) without problems in the Arduino IDE.@Yveaux said:
@Mickey I'm afraid it's not that simple... MySensors is purely written in C++, and although this code could be rewritten in C it is a lot of work and requires decent C/C++/MySensors knowledge.
Did you consider doing it the other way around and port your work to fit in this MySensors gateway?
Could be a lot less work (depending on how much code you wrote yourself) as C code compiles (almost) without problems in the Arduino IDE.those esp projects I mention are very extensive to just port them.(mainly the httpd) but I once saw a guy here that made the mysensors code work on the native sdk ide but only wanted to sell the binaries and wouldn't share his code.
-
i have a few esp8266mod demo bords a node mcu 9.5 a few esp-01, when i get home i will throw a gateway together :) and test all you like ..i do not mind doing alpha or beta testing if needed ..great work btw ...
also has anyone used this beta .. looks very cool aswell :) http://www.esp8266.com/viewtopic.php?f=29&t=4540
kind regards
andy -
@Yveaux said:
@Mickey I'm afraid it's not that simple... MySensors is purely written in C++, and although this code could be rewritten in C it is a lot of work and requires decent C/C++/MySensors knowledge.
Did you consider doing it the other way around and port your work to fit in this MySensors gateway?
Could be a lot less work (depending on how much code you wrote yourself) as C code compiles (almost) without problems in the Arduino IDE.those esp projects I mention are very extensive to just port them.(mainly the httpd) but I once saw a guy here that made the mysensors code work on the native sdk ide but only wanted to sell the binaries and wouldn't share his code.
@Mickey Maybe I don't really understand you application then... The web based configuration link points to a post about runnning gitlab, a local github. I dont get ít, sorry.
Running a webserver next to the gateway code shouldn't be a problem. The ESP has a lot of spare flash and the Arduino port supports a complete filesystem to read/write to it (see http://arduino.esp8266.com/versions/1.6.5-1044-g170995a/doc/reference.html, section "File system object (SPIFFS)")
What's to configure apart from SSID & password? This is just a gateway. Once online you can connect to it and stream all data to/from it using any client supporting the Ethernet gateway. -
i have a few esp8266mod demo bords a node mcu 9.5 a few esp-01, when i get home i will throw a gateway together :) and test all you like ..i do not mind doing alpha or beta testing if needed ..great work btw ...
also has anyone used this beta .. looks very cool aswell :) http://www.esp8266.com/viewtopic.php?f=29&t=4540
kind regards
andy@Andy-Pep said:
i have a few esp8266mod demo bords a node mcu 9.5 a few esp-01, when i get home i will throw a gateway together :) and test all you like ..i do not mind doing alpha or beta testing if needed ..great work btw ...
Thanks! Please join me in testing this code!
also has anyone used this beta .. looks very cool aswell :) http://www.esp8266.com/viewtopic.php?f=29&t=4540
Nice, but as I stressed in my previous post this seems like overkill for a gateway to me.
Of course we can cram a lot of extra code and functionality in the ESP. It has a lot of power and someone might even build a whole home automation suite directly in it (anybody? ;-) )
Let's get this gateway usable, stable and tested. From there you can use it as a base for other applications. -
ok i have used a esp8266mod dev board for my test hooked it up flashed the sketch and domoticz is seeing it ok and relaying my sensor data .. not a painfull process at all :) ..
will update tomorrow to see if it fails or goes fubar ..but so far so good :P) -
ok i have used a esp8266mod dev board for my test hooked it up flashed the sketch and domoticz is seeing it ok and relaying my sensor data .. not a painfull process at all :) ..
will update tomorrow to see if it fails or goes fubar ..but so far so good :P) -
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?