I did.
Error comes once, than for minutes no error. And now the error disappeared out of the log.
I don`t understand .
Thank you for the hint.
Posts made by jopebe
-
RE: 💬 Building an Ethernet Gateway
-
RE: 💬 Debugging Sensors and the Gateway
The MySensors Core messages (MCO) are described here = broken!?!
-
RE: 💬 Building an Ethernet Gateway
Here the log from debug:
0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
0;255;3;0;9;TSM:INIT
0;255;3;0;9;TSF:WUR:MS=0
0;255;3;0;9;TSM:INIT:TSP OK
0;255;3;0;9;TSM:INIT:GW MODE
0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
0;255;3;0;9;MCO:REG:NOT NEEDED
IP: 192.168.178.133
0;255;3;0;9;Eth: connect
0;255;3;0;9;MCO:BGN:STP
Can`t find any error.
From here only reading nodes. -
RE: 💬 Building an Ethernet Gateway
Hallo,
I`m running this ethernet-gateway with w5100 shield on uno.
In the log of iobroker I always see this message again and again:
mysensors.0 2018-01-26 11:10:58.942 error Error for "192.168.178.133": Error: read ECONNRESET
mysensors.0 2018-01-26 11:10:55.105 info Received INTERNAL message: I_GATEWAY_READY: Gateway startup complete.
mysensors.0 2018-01-26 11:10:55.103 warn ID not found. Inclusion mode OFF: {"id":"0","childId":"255","type":"presentation","ack":false,"payload":"2.1.1","subType":"S_ARDUINO_RELAY"}
mysensors.0 2018-01-26 11:10:55.094 info Connected 192.168.178.133:49153
mysensors.0 2018-01-26 11:10:54.897 error Error for "192.168.178.133": Error: read ECONNRESET
I cannot find a solution in the forum of iobroker and also nothing about it in this forum.
By the way: In the list of objects in iobroker there is always a child id 255 without any state or value.
Is it an issue ?
Perhaps of iobroker?
Any solution? -
RE: 💬 Relay
Thank You for Your quick answer.
Do I understand You correctly: I must index the BUTTOLD?
As BUTTOLD[pin) for example or how? Where? -
RE: 💬 Relay
This is a nice sketch and it is very universal for relays. Now
m looking for a similar sketch for digital inputs such as buttons i.e.. I would like to join both. The problem: I want to use a mega for reading status of a lot of digital outputs (min.20) of another ISP. It is only High or Low. Only when the level changes, I want the mega send a message to the gateway. I tried this "for" loop, but it didn
t help. There are too many informations sent to the gateway. I imagine a solution, where only a change at the pin will create an information, that is sent to the gateway.
Here my test, which didnt run:
void loop()
{for (int sensor=16, pin=BIN_1; sensor<=NUMBER_OF_BIN; sensor++, pin++)
{
int BUTT;
int BUTTOLD;
BUTT =digitalRead(pin);
if (BUTT != BUTTOLD && BUTT !=0){
MyMessage msg(sensor, V_TRIPPED);
send(msg.set(BUTT ? "1" : "0"));
}
BUTTOLD = BUTT;
wait (900);
}
}
Has anybody an idea or a hint for me? -
"interface" to my OPC-System
Hallo to all the specialists!
I have a well running Moeller-Eaton Easy Relay home automation wit an OPC DA server.
I also use IOBroker as a controler for all my MySensors-nodes.
I looked for an software interface to connect both, but I didn't find one.
Now I decided to connect them via an Arduino Mega as an ethernet-gateaway.
So I need only a lot of outputs and inputs with two states.
I found the example-sketch "Relais Actuator", which is very helpful for such a lot of identical outputs.
But I found no way to add lines for the inputs as easy as the outputs.
I added:#define BIN_1 31 // Arduino Digital I/O pin number for first switch (second on pin+1 etc) #define NUMBER_OF_BIN 28 // Total number of attached switches #define BIN_HIGH 1 // GPIO value to write to turn on attached switch #define BIN_LOW 0 // GPIO value to write to turn off attached switch
In "void before" i added
for (int sensor=16, pin=BIN_1; sensor<=NUMBER_OF_BIN; sensor++, pin++) { // Then set relay pins in output mode pinMode(pin, INPUT); digitalWrite(pin, HIGH); // Set switch to last known state (using eeprom storage) digitalWrite(pin, loadState(sensor)?1 :0); }
in void presentation I addes
for (int sensor=16, pin=BIN_1; sensor<=NUMBER_OF_BIN; sensor++, pin++) { // Register all sensors to gw (they will be created as child devices) present(sensor, S_DOOR); }
The childs appear in "objects" without any state.
I have no idea, how to send the states to the controler for further use in IOBroker.
I don`t know how to create a message-container and send the states.
If anybody could help me to finish my projekt, I were very happy!
JOPBE -
RE: 💬 Building an Ethernet Gateway
Thank You to all, who tried to help.
I think, I found the solution:
There was this line in the sketch: "const unsigned long tUpdate=60000; //update interval"
When I changed the time to 6000, it runs as when as the radio was connected.
So it was probably missing some kind of "interrupt", which usually comes from the radio , when it listens to the nodes or so? -
RE: 💬 Building an Ethernet Gateway
I do
nt know, how to send my sketch as a file. Copy and past doesn
t run.
I use an ethernet-shield and as I mentioned, when I connect and switch on the radio, everything is alrigth. -
RE: 💬 Building an Ethernet Gateway
Here thr output of the seriel monitor:
0;255;3;0;9;MCO:BGN:INIT GW,CP=R-NGA--,VER=2.1.1
IP: 192.168.178.134
0;255;3;0;9;Eth: connect
0;255;3;0;9;MCO:BGN:STP
0;255;3;0;9;MCO:REG:NOT NEEDED
0;255;3;0;9;MCO:BGN:INIT OK,TSP=NA
0;255;3;0;9;Eth: 0;101;1;0;2;1
0;255;3;0;9;Eth: 0;101;1;0;2;0
0;255;3;0;9;Eth: 0;101;1;0;2;1
0;255;3;0;9;Eth: 0;101;1;0;2;0
0;255;3;0;9;Eth: 0;101;1;0;2;1
0;255;3;0;9;Eth: 0;101;1;0;2;0
0;255;3;0;9;Eth: 0;101;1;0;2;1
0;255;3;0;9;Eth: 0;101;1;0;2;0
0;255;3;0;9;Eth: 0;101;1;0;2;0
0;255;3;0;9;Eth: 0;101;1;0;2;1
When I push the button in IoBroker-Vis, it takes often a lot of time until the LED is on; sometimes I have to push the button twice or more times; sometimes nothing happens at all.
When I define and connect the radio with the same sketch, it runs as expected. -
RE: 💬 Building an Ethernet Gateway
Thank You for Your quick respons!
Yes, i made two slashes before the define-line of the radio .
I have no debug-output because I didnt engage myself in debugging until now. I will try it this evening. During the day I
m engaged in other things. -
RE: 💬 Building an Ethernet Gateway
Sorry, but can't find any information about my problem about the gateaway.
For connecting a lot of binary switches etc. i took a mega and loaded a gateaway sketch from Mihai . Normally it runs very good, when i change the status flags from ON/Off to 1/0 (Don't know why?)
But now i had the idea, to disable the radio, because I don't need it for this mega.
Now the relais-switches do no longer work as before. They only work from time to time and rather randomly.
I want to switch and contol the switches with iOBroker, but without the radion connected and activated, it doesn't run.
Any idea? -
RE: 💬 RFID Lock Sensor
Hallo,
I like this example of RFID Lock Sensor.
But I`m not able to change it for my aim myself (just a user and beginner).
Here my imaginations:- There should be always a default after switching on, after calling seriell monitor or after power cut.
This should be "Sensor Locked" - Every change to "Sensor open" should be for only let`s say 3 seconds or another adjustable time and than fall back to Default = "Sensor Locked" . Time enough e.g. to open the door or s.e.
Is there anybody who can give me some hints how to ad this features into the given sketch?
Thank You in advance
Jopebe
- There should be always a default after switching on, after calling seriell monitor or after power cut.
-
RE: [solved] Problem with ioBroker and MySensors 2.0
@stefaanv
Hallo, have the same problem.
I cannot see my node in IO-Broker. Read all the threads in this forum and in IObroker.
Same issue with inclusion mode. Don`t know, what else I can do.
I use the original Ethernet-Gateaway-Sketch from MySensors page, the original Temp-hum-sketch from MYsensors page and installed sometimes MYsensors-adapter in IOBroker.
I use the gateway as TCP-client.
What can I do?
Here the seriell protocol:
;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
0;255;3;0;9;TSM:INIT
0;255;3;0;9;TSM:RADIO:OK
0;255;3;0;9;TSM:GW MODE
0;255;3;0;9;TSM:READY
IP: 192.168.178.56
0;255;3;0;9;No registration required
0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
0;255;3;0;9;TSP:SANCHK:OK
0;255;3;0;9;TSP:SANCHK:OK
0;255;3;0;9;TSP:SANCHK:OK
0;255;3;0;9;TSP:SANCHK:OK
0;255;3;0;9;TSP:SANCHK:OK
0;255;3;0;9;TSP:SANCHK:OK
0;255;3;0;9;TSP:SANCHK:OK
0;255;3;0;9;TSP:SANCHK:OK
0;255;3;0;9;TSP:MSG:READ 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
0;255;3;0;9;TSP:MSG:BC
0;255;3;0;9;TSP:MSG:FPAR REQ (sender=1)
0;255;3;0;9;TSP:CHKUPL:OK
0;255;3;0;9;TSP:MSG:GWL OK
0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1
0;255;3;0;9;TSP:MSG:PINGED (ID=1, hops=1)
0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=15,pt=6,l=2,sg=0:0100
0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=0,t=17,pt=0,l=5,sg=0:2.0.0
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=11,pt=0,l=22,sg=0:TemperatureAndHumidity
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.1
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=0,t=7,pt=0,l=0,sg=0:
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=26,pt=1,l=1,sg=0:2
0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=ok:1
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:20.0
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:46.7
0;255;3;0;9;TSP:SANCHK:OK
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:19.9
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:46.6
0;255;3;0;9;TSP:SANCHK:OK
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:46.5
The node was switched on all the time. There is a row of "0;255;3;0;9;TSP:SANCHK:OK".
Then I switched the node of and on again. Now came other infos and I can see the temperatur and the humidity, but not before I switchesd off and on.
Strange.
In IObroker there is nothin to be seen.
Perhaps I use the wrong (chnages wrong?) sketch. Ha sanybody a sketch for the gateaway that runs better?
Thank You in advance -
RE: Ethernet gateaway with wemos D1 (ESP8266)
Hallo,
Here I am again.
My question is still the same:
Can one use an ESP8266 instead of an arduino plus radio?
Not via wifi but exactly as when as I use an arduino with some radio.
I know, that all the experts until now wrote, as a gateaway: yes.
But you need a present WLan then.
For a rf24 you need no WLan.
Did anybody succeed in programming the ESP8266 in the way, that it behaves like an arduino with rf24 connected?
So you could save a lot of time soldering and searching mistakes. -
RE: Why don't you write mysensors library for ESP8266 similar to the nRF one ?
Thanks for the short instruction.
But Im afraid it is too short for me. Nothing else to change in the sketch? Do I realy need a ssid and a password? I
m just a beginner and found no further information.
I`m sorry: -
RE: Why don't you write mysensors library for ESP8266 similar to the nRF one ?
Oh, i
m very sorry Can
t find, give me a hint please.
By the way: Very great work all about MySensors!
Thank you. -
RE: Why don't you write mysensors library for ESP8266 similar to the nRF one ?
I
m still wondering, why there is no possibility to make nodes (only!) with ESP 8266 instead of an arduino and the wellknown radios. You must only connect the voltage and the sensor(s) and you have finished! The are very cheap and can be flashed by IDE. Other projects do consider this facts, here it gives only some experimental stuff. It is for my opinion much easyer than soldering this radios. Don
t understand! -
RE: Ethernet gateaway with wemos D1 (ESP8266)
Hallo once more,
Im sorry about my mode of expression. I
ll try it again, because there was someone else interested in this idea.
I want to connect all the nodes to an ESP8266 as radio and arduino.
At this esp I want to connect a LAN-modul e.g. W5100 for connecting my LAN.
All the ethetnet-gateaways here have an extra Radio-Modul for connecting the nodes, an arduino and a LAN-Modul.
Is there anybody who can modify one of the sketches ?
Thanks in advance.
jopebe -
RE: Ethernet gateaway with wemos D1 (ESP8266)
Exactly this is my problem.
You can make nodes with the WeMos like with the two mentioned radios.
I had the idea, why not make an ethernet-gateaway with ESP8266 instead of an arduino with nRF24L01 and all the soldering?
If not than not.
Thank you very much.
jopebe -
RE: Ethernet gateaway with wemos D1 (ESP8266)
Thank You very much.
But this is not, what I am looking for.
It should be an ETHERNET-Gateaway, which uses the radio of the WeMos D1 and the "arduino in it" for connecting an ethernet-modul.
jopbe -
Ethernet gateaway with wemos D1 (ESP8266)
Hallo,
this is my first post.
I learned a lot of facts about the project.
But I didn`t found the a sketch for this set:
An ethernet-gateaway with wemos d1 as arduino/radio in combination with an ethernet shield or modul.
The example-sketch for ethernet-gateaway gives you only a choice between _RFM69, NRF24 ore RS485.
I would like to take the D1 with ESP8266 as the receiver for the nodes.
Anybody any idea?
Thank you in advance.
jopebe