OK i found the problem i just needed to clear the eeprom and it works i remembered that i had this problem before with binary switch sample
Mitja Blazinsek
@Mitja Blazinsek
Best posts made by Mitja Blazinsek
-
RE: Sensebender Micro
-
RE: Simple binary switch example, trying to add second switch
thank you very much boots33 and mfalkvidd finaly wor also learn a lot on this example, its time now to try with relays i will add 2 relays that i can triger with switch or controler
my working code for switch:
/** The MySensors Arduino library handles the wireless radio link and protocol between your home built sensors/actuators and HA controller of choice. The sensors forms a self healing radio network with optional repeaters. Each repeater and gateway builds a routing tables in EEPROM which keeps track of the network topology allowing messages to be routed to nodes. Created by Henrik Ekblad <henrik.ekblad@mysensors.org> Copyright (C) 2013-2015 Sensnology AB Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors Documentation: http://www.mysensors.org Support Forum: http://forum.mysensors.org This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. ******************************* DESCRIPTION Simple binary switch example updated for 2 switches Connect button or door/window reed switch between digitial I/O pin 3 (BUTTON_PIN below) and GND. http://www.mysensors.org/build/binary */ // Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 #include <SPI.h> #include <MySensors.h> #include <Bounce2.h> #define CHILD_ID_ST1 3 #define CHILD_ID_ST2 4 #define ST1_PIN 3 // Arduino Digital I/O pin for button/reed switch #define ST2_PIN 4 Bounce debouncer1 = Bounce(); Bounce debouncer2 = Bounce(); int oldValue = -1; int oldValue1 = -1; // Change to V_LIGHT if you use S_LIGHT in presentation below MyMessage msgst1(CHILD_ID_ST1, V_TRIPPED); MyMessage msgst2(CHILD_ID_ST2, V_TRIPPED); void setup() { // Setup the button1 pinMode(ST1_PIN, INPUT); debouncer1.attach(ST1_PIN); debouncer1.interval(5); digitalWrite(ST1_PIN, HIGH); // Setup the button2 pinMode(ST2_PIN, INPUT); debouncer2.attach(ST2_PIN); debouncer2.interval(5); digitalWrite(ST2_PIN, HIGH); } void presentation() { // Register binary input sensor to gw (they will be created as child devices) // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. // If S_LIGHT is used, remember to update variable type you send in. See "msg" above. present(CHILD_ID_ST1, S_DOOR); present(CHILD_ID_ST2, S_DOOR); } // Check if digital input has changed and send in new value void loop() { debouncer1.update(); // Get the update value int value = debouncer1.read(); if (value != oldValue) { // Send in the new value send(msgst1.set(value == HIGH ? 1 : 0)); oldValue = value; } debouncer2.update(); // Get the update value int value1 = debouncer2.read(); if (value1 != oldValue1) { // Send in the new value send(msgst2.set(value1 == HIGH ? 1 : 0)); oldValue1 = value1; } }
-
RE: Sensebender Micro
SOLVED!!!!! it make me crazy but finally i found on forum
@dallienl said in Building an Ethernet Gateway:Had lots of issues getting this to work. The issue seems to be with the ethernet part, as I only have an ethernet board attached I removed the lines for the radio and the pin redirection. Still the code kept restarting all the time or just not being able to connect the controller.
AVR version of the Arduino 1.8.0 kit needs to be downgraded. I had 1.6.16 and downgraded to 1.6.11.
Open Arduino. Tools > Board: xxxxx > Boards manager... > Click "Arduino AVR Boards" > Select Version > 1.6.11
Recompile and you are good.
so i had to downgraded AVR version of the Arduino 1.8.0 kit and thats it i knew its smothing in arduino IDE
-
RE: 💬 Relay
OK it's probaly because ia have mini with 168 chip i have to buys 328 again wait 1month to arive from china
Latest posts made by Mitja Blazinsek
-
RE: Sensebender Micro
SOLVED!!!!! it make me crazy but finally i found on forum
@dallienl said in Building an Ethernet Gateway:Had lots of issues getting this to work. The issue seems to be with the ethernet part, as I only have an ethernet board attached I removed the lines for the radio and the pin redirection. Still the code kept restarting all the time or just not being able to connect the controller.
AVR version of the Arduino 1.8.0 kit needs to be downgraded. I had 1.6.16 and downgraded to 1.6.11.
Open Arduino. Tools > Board: xxxxx > Boards manager... > Click "Arduino AVR Boards" > Select Version > 1.6.11
Recompile and you are good.
so i had to downgraded AVR version of the Arduino 1.8.0 kit and thats it i knew its smothing in arduino IDE
-
RE: Sensebender Micro
Feb 01, 2018 06:11:30 PM Notice Node mysensors 0 Received Internal [Log message] !TSF:MSG:SEND,0-0-56-56,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 Feb 01, 2018 06:11:29 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:GWL OK Feb 01, 2018 06:11:29 PM Notice Node mysensors 0 Received Internal [Log message] TSF:CKU:OK,FCTRL Feb 01, 2018 06:11:29 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:FPAR REQ,ID=56 Feb 01, 2018 06:11:29 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:BC Feb 01, 2018 06:11:29 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:READ,56-56-255,s=255,c=3,t=7,pt=0,l=0,sg=0: Feb 01, 2018 06:11:28 PM Notice Node mysensors 0 Received Internal [Log message] !TSF:MSG:SEND,0-0-56-56,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 Feb 01, 2018 06:11:27 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:GWL OK Feb 01, 2018 06:11:27 PM Notice Node mysensors 0 Received Internal [Log message] TSF:CKU:OK,FCTRL Feb 01, 2018 06:11:27 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:FPAR REQ,ID=56 Feb 01, 2018 06:11:27 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:BC Feb 01, 2018 06:11:27 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:READ,56-56-255,s=255,c=3,t=7,pt=0,l=0,sg=0: Feb 01, 2018 06:11:26 PM Notice Node mysensors 0 Received Internal [Log message] !TSF:MSG:SEND,0-0-56-56,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 Feb 01, 2018 06:11:25 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:GWL OK Feb 01, 2018 06:11:25 PM Notice Node mysensors 0 Received Internal [Log message] TSF:CKU:OK,FCTRL Feb 01, 2018 06:11:25 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:FPAR REQ,ID=56 Feb 01, 2018 06:11:25 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:BC Feb 01, 2018 06:11:25 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:READ,56-56-255,s=255,c=3,t=7,pt=0,l=0,sg=0: Feb 01, 2018 06:11:24 PM Notice Node mysensors 0 Received Internal [Log message] !TSF:MSG:SEND,0-0-56-56,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 Feb 01, 2018 06:11:23 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:GWL OK Feb 01, 2018 06:11:23 PM Notice Node mysensors 0 Received Internal [Log message] TSF:CKU:OK Feb 01, 2018 06:11:23 PM Notice Node mysensors 0 Received Internal [Log message] TSF:PNG:SEND,TO=0 Feb 01, 2018 06:11:23 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:FPAR REQ,ID=56 Feb 01, 2018 06:11:23 PM Notice Node mysensors 0 Received Internal [Log message] TSF:MSG:BC```
-
RE: Sensebender Micro
16 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.2.0 25 TSM:INIT 26 TSF:WUR:MS=0 33 TSM:INIT:TSP OK 35 TSF:SID:OK,ID=56 37 TSM:FPAR 73 TSF:MSG:SEND,56-56-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 2081 !TSM:FPAR:NO REPLY 2083 TSM:FPAR 2119 TSF:MSG:SEND,56-56-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 4127 !TSM:FPAR:NO REPLY 4129 TSM:FPAR 4165 TSF:MSG:SEND,56-56-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 6173 !TSM:FPAR:NO REPLY 6175 TSM:FPAR 6211 TSF:MSG:SEND,56-56-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 8219 !TSM:FPAR:FAIL 8220 TSM:FAIL:CNT=1 8222 TSM:FAIL:DIS 8224 TSF:TDI:TSL 18226 TSM:FAIL:RE-INIT```
-
RE: Sensebender Micro
ok my gw now work sorry i forget to connect radio vcc but everything else not working every sensor i try triple check wiring bothing
-
RE: Sensebender Micro
look like everything that i programmed not working about half years ago when i start with my sensors everything that i try work bu when i have time to play with mysensors again nothing worked make me crazy i have full box of sensors and boards but nothing cant get to work only sensbender gw and sensbender micro that i didn't touch i think that must be something with arduino ide
-
RE: Sensebender Micro
now even sensbender micro that it work on sensbender gw don't work on my gw it work only if i connect sensbender gw
-
RE: Sensebender Micro
i try new serial gw on nano but same problem i delete all nodes and when i turn on some sensors my controller find it only one node without name. My only working sensor (one of the woking sensebender out the box) display 2 nodes one without name and node with sensebender micro name what for is that first node ID 0
screen shot how it display every sensor:
-
RE: Sensebender Micro
i just try this and its same
is it possible that is anythig with gw i'm using official sensebender gw -
RE: Sensebender Micro
reinstal arduino, libary, clear eprom nothing gonna lose my mind i think i'm gonna throw everything in trash