re
Always in order to understand the mysensors system
We can create a mysensors network in nrf24, rfm69, rfm95 and soon in nrf5x
Is it possible to create a mysensors network on another communication protocol? like bluetooth, wifi, 5ghz or other?
re
Always in order to understand the mysensors system
We can create a mysensors network in nrf24, rfm69, rfm95 and soon in nrf5x
Is it possible to create a mysensors network on another communication protocol? like bluetooth, wifi, 5ghz or other?
Hi @mfalkvidd
Thank you for your feedback
As I have just received part of the material, I have been searching the web for some days to have a lot of info to use mysensors.
And by rereading the site + other characterist of the nrf24 + forum. I had a start of my answers.
So thanks to you for confirming what I thought.
Now I will be able to build my mysensors environment
I am also waiting for the protocol nrf5x, he looks very promising
thank you very much
cordially
Hello everyone,
I am doing a complete overhaul of my home automation with the use of jeedom. For the moment, I have a basic telemechanical system that manages a floor and the rest in manual.
So Jeedom's discovery and all his possibilities. First, waouw, incredible all the capabilities of this software (the only limit is the imagination). Then, on the way to change.
You have to know, at the base, informed user of windows and not programmer.
So installing jeedom on ubuntu 18.4 with some disappointment but nothing serious (the open source community is so ... I have no word to say how cool and great you are). Yes, new in linux and in the end, I love (I think even spend all linux except a computer under W10 for the current use.) Then learning Jeedom and I discovered the plugin mysensors. So, I created the whole basic programming of jeedom (1 week non stop) then not have any case integrate the different modules (like node mysensor, blea, etc.) and of course the purchase of equipment (1 PI3 B + 1 PI3 B; 1 PI zero w, 2 PI zero, 1 orange PI zero, a dozen nodemcu esp8266, 6 NRF24L01, etc).
Sorry, presentation a bit long.
So here, I get a nodemcu and the arduino kit for test. Nickel. I discover that I can use the local nodemcu without jeedom and with him.
First attempt to integrate the gateway (without nrf24l01 since not yet received), Jeedom seems to recognize but nothing more. So I add the code for 3 digital output. Re nickel, jeedom recognizes the gateway and in addition I have a node with the 3 digital outputs ... More case wait for the rest of the parts for a true integration and in the meantime, I forum and test of other possibility of plugins (of which jeeduino, easyesp, blea). very disappointed with easyesp. More or less drinkable for jeeduino. Blea, no problem.
In any case, mysensors remains by far my favorite considering the almost unlimited capacity ... With more question on the setting up (from which the subject creates).
Here's what puzzles me:
From what I understand, the radio nrf24l01 uses the frequency of 2.4 ghz (so between 2400 and 2500 mhz depending on the channel used). Which is very good since with a wifi gateway (with a nodemcu esp8266) that uses the local wifi, the gateway creates an independent wifi network on another channel via the radio nrf24l01.
For the gateway and repeaters ... ok ... just a cabling issue:
Do we have to use the GPIOs as indicated on the mysensors site (from D5 to D8) ???
Because I noticed that on the nodemcu I bought, there are gpios mosi, miso, cs and csk on the other side
As for the sensors, I noticed that he put each time the radio nrf241l01 for a simple node.
Is it necessary each time to put a radio nrf24 ???
Since at the base, nodemcu esp8266 knows already communicated on the frequency of 2.4 ghz. So no need for nrf24 for a simple node (which saves 5 gpio for something else), unless it serves as a gateway of course
Any other question will come later ... but for me these are the main question of the moment
I hope I have not been too long
coordialement
with the successful map version 2.4.1, compilation and upload
I open the console serie, nothing is displayed. So I check on my router ...
Nickel connection is established
I will search the forum to try to have the serial console and to combine the gateway with other sensor, etc.
And later, try to code ... there is really a way to do a lot of home automation with this little chip
Thanks again
thank you very much for the information
I look, I try and I keep you informed
ps: I noticed that the line of code
#include <ESP8266WiFi.h> // dans cette ligne esp8266wifi est en rouge
#include <MySensors.h> // dans cette ligne MySensors apparait en noir
As if he did not find the library
Sorry, auto translator.
with this code:
#define MY_GATEWAY_ESP8266
#define MY_WIFI_SSID "reseau_raptor_2"
#define MY_WIFI_PASSWORD "12345678"
#define MY_GATEWAY_ESP8266
** I have a compilation error: **
In file included from C:\Users\Nico_raptor\Documents\Arduino\libraries\MySensors/MySensors.h:420:0,
from C:\Users\Nico_raptor\Documents\Arduino\GatewayESP8266\GatewayESP8266.ino:118:
C:\Users\Nico_raptor\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:57:53: error: declaration of C function 'void ets_update_cpu_frequency(int)' conflicts with
extern "C" void ets_update_cpu_frequency(int freqmhz);
^
In file included from C:\Users\Nico_raptor\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0,
from C:\Users\Nico_raptor\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256,
from C:\Users\NICO_R~1\AppData\Local\Temp\arduino_build_50513\sketch\GatewayESP8266.ino.cpp:1:
C:\Users\Nico_raptor\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/include/ets_sys.h:218:6: error: previous declaration 'void ets_update_cpu_frequency(uint32_t)' here
void ets_update_cpu_frequency(uint32_t ticks_per_us);
^
Utilisation de la bibliothèque ESP8266WiFi version 1.0 dans le dossier: C:\Users\Nico_raptor\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266WiFi
Utilisation de la bibliothèque MySensors version 2.3.0 dans le dossier: C:\Users\Nico_raptor\Documents\Arduino\libraries\MySensors
Utilisation de la bibliothèque EEPROM version 1.0 dans le dossier: C:\Users\Nico_raptor\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\EEPROM
exit status 1
Erreur de compilation pour la carte NodeMCU 1.0 (ESP-12E Module)
Hello,
I am trying to make a mysensor gateway with a NodeMcu esp8266 ch340g v3.
But when I compile the code:
// Enable debug prints to serial monitor
#define MY_DEBUG
// Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h
#define MY_BAUD_RATE 115200 // 9600
// Enables and select radio type (if attached)
//#define MY_RADIO_NRF24
//#define MY_RADIO_RFM69
//#define MY_RADIO_RFM95
#define MY_GATEWAY_ESP8266
#define MY_WIFI_SSID monreseau
#define MY_WIFI_PASSWORD 12345678
// Enable UDP communication
//#define MY_USE_UDP // If using UDP you need to set MY_CONTROLLER_IP_ADDRESS below
// Set the hostname for the WiFi Client. This is the hostname
// it will pass to the DHCP server if not static.
//#define MY_HOSTNAME "sensor-gateway"
// Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
//#define MY_IP_ADDRESS 192,168,178,87
// If using static ip you can define Gateway and Subnet address as well
//#define MY_IP_GATEWAY_ADDRESS 192,168,178,1
//#define MY_IP_SUBNET_ADDRESS 255,255,255,0
// The port to keep open on node server mode
#define MY_PORT 5003
// How many clients should be able to connect to this gateway (default 1)
#define MY_GATEWAY_MAX_CLIENTS 2
// Controller ip address. Enables client mode (default is "server" mode).
// Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere.
//#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68
// Enable inclusion mode
//#define MY_INCLUSION_MODE_FEATURE
// Enable Inclusion mode button on gateway
//#define MY_INCLUSION_BUTTON_FEATURE
// Set inclusion mode duration (in seconds)
//#define MY_INCLUSION_MODE_DURATION 60
// Digital pin used for inclusion mode button
//#define MY_INCLUSION_MODE_BUTTON_PIN D1
// Set blinking period
//#define MY_DEFAULT_LED_BLINK_PERIOD 300
// Flash leds on rx/tx/err
// Led pins used if blinking feature is enabled above
//#define MY_DEFAULT_ERR_LED_PIN 16 // Error led pin
//#define MY_DEFAULT_RX_LED_PIN 16 // Receive led pin
//#define MY_DEFAULT_TX_LED_PIN 16 // the PCB, on board LED
#if defined(MY_USE_UDP)
#include <WiFiUdp.h>
#endif
#include <ESP8266WiFi.h>
#include <MySensors.h>
void setup()
{
// Setup locally attached sensors
}
void presentation()
{
// Present locally attached sensors here
}
void loop()
{
// Send locally attached sensors data here
}
[/code]
Here is the error I have when I compile:
Arduino : 1.8.5 (Windows 10), Carte : "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
GatewayESP8266:67: error: 'monreseau' was not declared in this scope
#define MY_WIFI_SSID monreseau
^
C:\Users\Nico_raptor\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:163:19: note: in expansion of macro 'MY_WIFI_SSID'
(void)WiFi.begin(MY_WIFI_SSID, MY_WIFI_PASSWORD, 0, MY_WIFI_BSSID);
In file included from C:\Users\Nico_raptor\Documents\Arduino\libraries\MySensors/MySensors.h:420:0,
from C:\Users\Nico_raptor\Documents\Arduino\GatewayESP8266\GatewayESP8266.ino:118:
C:\Users\Nico_raptor\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: At global scope:
C:\Users\Nico_raptor\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:57:53: error: declaration of C function 'void ets_update_cpu_frequency(int)' conflicts with
extern "C" void ets_update_cpu_frequency(int freqmhz);
^
In file included from C:\Users\Nico_raptor\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0,
from C:\Users\Nico_raptor\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256,
from C:\Users\NICO_R~1\AppData\Local\Temp\arduino_build_50513\sketch\GatewayESP8266.ino.cpp:1:
C:\Users\Nico_raptor\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/include/ets_sys.h:218:6: error: previous declaration 'void ets_update_cpu_frequency(uint32_t)' here
void ets_update_cpu_frequency(uint32_t ticks_per_us);
^
Utilisation de la bibliothèque ESP8266WiFi version 1.0 dans le dossier: C:\Users\Nico_raptor\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266WiFi
Utilisation de la bibliothèque MySensors version 2.3.0 dans le dossier: C:\Users\Nico_raptor\Documents\Arduino\libraries\MySensors
Utilisation de la bibliothèque EEPROM version 1.0 dans le dossier: C:\Users\Nico_raptor\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\EEPROM
exit status 1
'monreseau' was not declared in this scope
And when I do not include the Mysensor library
#if defined(MY_USE_UDP)
#include <WiFiUdp.h>
#endif
#include <ESP8266WiFi.h>
//#include <MySensors.h>
Successful compilition
Ps: I tried this code:
http://henrysbench.capnfatz.com/henrys-bench/arduino-projects-tips-and-more/arduino-esp8266-lolin-nodemcu-getting-started/
and it works very well
Would there be a problem with the MySensors.h library ???
PS: I am new in andruino