Thanks, I had not seen this page.
Added a 10uF to the gateway and 4.7 uF to the node and everything works now !
Thanks, I had not seen this page.
Added a 10uF to the gateway and 4.7 uF to the node and everything works now !
@mfalkvidd Alright.
Thanks for your quick analysis, I’ll put it on a different node to start then if I find the time, i’ll Try to add it to the gateway.
Thanks, I had not seen this page.
Added a 10uF to the gateway and 4.7 uF to the node and everything works now !
@mfalkvidd Thanks, it stopped the sleeping error.
Now I receive
172651 TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
172711 TSF:MSG:BC
172730 TSF:MSG:FPAR REQ,ID=2
172760 TSF:PNG:SEND,TO=0
172786 TSF:CKU:OK
172805 TSF:MSG:GWL OK
173660 !TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
174664 TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
174723 TSF:MSG:BC
174742 TSF:MSG:FPAR REQ,ID=2
174772 TSF:CKU:OK,FCTRL
174797 TSF:MSG:GWL OK
175596 !TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
175672 GWT:RFC:C=0,MSG=0;255;3;0;2;
176676 TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
176735 TSF:MSG:BC
176754 TSF:MSG:FPAR REQ,ID=2
176784 TSF:CKU:OK,FCTRL
176809 TSF:MSG:GWL OK
177572 !TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
178687 TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
178747 TSF:MSG:BC
178766 TSF:MSG:FPAR REQ,ID=2
178796 TSF:CKU:OK,FCTRL
178821 TSF:MSG:GWL OK
179548 !TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
185317 GWT:RFC:C=0,MSG=0;255;3;0;2;
but the node is still not recognized although it seems to ping now...
NB : same log from the nod with the
41 ?TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
2050 !TSM:FPAR:NO REPLY
2052 TSM:FPAR
2056 ?TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
4063 !TSM:FPAR:NO REPLY
4065 TSM:FPAR
Indeed I've added a
#ifdef MY_DEBUG
Serial.print("T: ");
Serial.println(t);
Serial.print("H: ");
Serial.println(h);
#endif
// Sleep for a while to save energy
sleep(5*60000);
because I have a DHT22 attached. What would be the interval then ?
Thanks!
I've added the gateway part when adding a node :
44945 TSF:MSG:FPAR REQ,ID=2
44974 TSF:PNG:SEND,TO=0
44999 TSF:CKU:OK
45017 TSF:MSG:GWL OK
46082 !TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
46881 TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
46940 TSF:MSG:BC
46957 TSF:MSG:FPAR REQ,ID=2
46987 TSF:CKU:OK,FCTRL
47011 TSF:MSG:GWL OK
48022 !TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
50905 TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
50963 TSF:MSG:BC
50981 TSF:MSG:FPAR REQ,ID=2
51010 TSF:CKU:OK,FCTRL
51034 TSF:MSG:GWL OK
51972 !TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
54361 GWT:RFC:C=0,MSG=0;255;3;0;2;
62928 TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
62986 TSF:MSG:BC
63004 TSF:MSG:FPAR REQ,ID=2
63033 TSF:PNG:SEND,TO=0
63058 TSF:CKU:OK
63076 TSF:MSG:GWL OK
63768 !TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
64495 GWT:RFC:C=0,MSG=0;255;3;0;2;
64940 TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
64999 TSF:MSG:BC
65017 TSF:MSG:FPAR REQ,ID=2
65046 TSF:CKU:OK,FCTRL
65070 TSF:MSG:GWL OK
65708 !TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
66953 TSF:MSG:READ,2-2-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
67012 TSF:MSG:BC
67030 TSF:MSG:FPAR REQ,ID=2
67059 TSF:CKU:OK,FCTRL
67083 TSF:MSG:GWL OK
67686 !TSF:MSG:SEND,0-0-2-2,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
Hello !
I have a small problem with a new gateway in ESP8266 over wifi.
My gateway won't connect to the nodes :
Node code:
16 MCO:BGN:INIT NODE,CP=RNNNA---,FQ=16,REL=255,VER=2.3.2
26 TSM:INIT
28 TSF:WUR:MS=0
34 TSM:INIT:TSP OK
36 TSF:SID:OK,ID=2
37 TSM:FPAR
41 ?TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
2050 !TSM:FPAR:NO REPLY
2052 TSM:FPAR
2056 ?TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
4063 !TSM:FPAR:NO REPLY
4065 TSM:FPAR
4069 ?TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
6076 !TSM:FPAR:NO REPLY
6078 TSM:FPAR
6082 ?TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
8089 !TSM:FPAR:FAIL
8090 TSM:FAIL:CNT=1
8092 TSM:FAIL:DIS
8094 TSF:TDI:TSL
Gateway code :
134 TSF:LRT:OK
150 TSM:INIT
164 TSF:WUR:MS=0
187 TSM:INIT:TSP OK
410 TSM:INIT:GW MODE
432 TSM:READY:ID=0,PAR=0,DIS=0
464 MCO:REG:NOT NEEDED
ip:192.168.1.100,mask:255.255.255.0,gw:192.168.1.1
1576 GWT:TIN:CONNECTING...
2604 GWT:TIN:CONNECTING...
scandone
3633 GWT:TIN:CONNECTING...
3661 GWT:TIN:IP: 192.168.1.100
3694 MCO:BGN:STP
3712 MCO:BGN:INIT OK,TSP=1
3740 TSM:READY:NWD REQ
3767 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
T: 20.10
H: 55.50
6118 MCO:SLP:MS=60000,SMS=0,I1=255,M1=255,I2=255,M2=255
6197 !MCO:SLP:REP
pm open,type:2 0
The weird part is that both transports are well initialized.
Have you had troubles with ESP8266 and NRF24L01 ?
Thanks
Hi @BearWithBeard,
Thanks for your answer.
I've added / modified the capacitors and also added a measurement for the battery voltage.
I'm converting it to PCB in EasyEDA now, but It doesn't want to rotate the elements (NRF24 for example). Have you had similar problems ?
Edit : Screenshot
The NRF24 is rotated (hyphen lines) but none of the pins or even the module really rotates...
Hello,
I would like to have the simplest PCB possible to just transmit humidity and temperature (objective : round PCB radius 25 mm in a wooden "box").
For now, I have added only these components in the schematic:
I believe it can work this way. But will it be stable in your opinion ?
Thanks !
@mfalkvidd Alright.
Thanks for your quick analysis, I’ll put it on a different node to start then if I find the time, i’ll Try to add it to the gateway.
Hello and thanks for your reply,
I don’t have a documentation but I downloaded it here : http://charleslabs.fr/fr/project-Contrôle+de+prises+DiO+avec+Arduino.
But I think I could use RCSwitch instead.
Hello,
I'm running a few nodes with a serial gateway with Hats.io but I would like to add a 433 MHz transmitter directly on the gateway to control a few devices (ON / OFF with DiO codes), but I can't find a way to add it in the loop (via serial listening) without blocking the other messages coming from NRF24L01 nodes.
Do you have an idea ?
#define MY_DEBUG
#define MY_GATEWAY_SERIAL
#define MY_INCLUSION_MODE_FEATURE
#define MY_INCLUSION_MODE_DURATION 60
#define MY_DEFAULT_LED_BLINK_PERIOD 300
#define MY_RADIO_NRF24
#define MY_RF24_PA_LEVEL (RF24_PA_MAX)
#define CHILD_ID_HUM 0
#define CHILD_ID_TEMP 1
#define CHILD_ID_STATE_RAD_SALON 4
#include <SPI.h>
#include <MySensors.h>
#include <DiOremote.h>
const unsigned long OFF_CODE = 1278825104;
const unsigned long ON_CODE = 1278825088;
const int TX_PIN = 2;
DiOremote myRemote = DiOremote(TX_PIN);
#include <Custom_SHT.h>
Custom_SHT SHT;
static bool metric = true;
uint32_t period = 1 * 60000L;
static const uint64_t UPDATE_INTERVAL = 60000;
String incomingByte;
void presentation()
{
// Send the sketch info to the gateway
sendSketchInfo("TemperatureAndHumidity", "1.0");
// Present sensors as children to gateway
present(CHILD_ID_HUM, S_HUM, "Humidity");
present(CHILD_ID_TEMP, S_TEMP, "Temperature");
//present(CHILD_ID_STATE_RAD_SALON, S_CUSTOM);
metric = getControllerConfig().isMetric;
}
void setup()
{
}
void loop()
{
// Read temperature & humidity from sensor.
unsigned long start = millis();
SHT.begin();
float humidity = SHT.GetHumidity();
float temperature = SHT.GetTemperature();
static MyMessage msgHum( CHILD_ID_HUM, V_HUM );
static MyMessage msgTem(CHILD_ID_TEMP, V_TEMP);
send(msgTem.set(temperature, 2));
send(msgHum.set(humidity, 2));
for( uint32_t tStart = millis(); (millis()-tStart) < period; ){
if (Serial.available() > 0) {
// read the incoming byte:
String Incoming = Serial.readString();
if (Incoming = "0") {
// say what you got:
Serial.print("I received: ");
Serial.println(incomingByte);
myRemote.send(OFF_CODE);
}
if (Incoming = "1") {
// say what you got:
Serial.print("I received: ");
Serial.println(incomingByte);
myRemote.send(ON_CODE);
}
}
}
// Sleep until next update to save energy (deactivated for now)
//sleep(UPDATE_INTERVAL);
}
Thanks,