RFM69HW serial output no data
-
My gateway receives this:
0;0;3;0;9;read: 1-1-0 s=1,c=3,t=16,pt=0,l=0,sg=0:while it should receive?
0;0;3;0;9;read: 1-1-0 s=1,c=3,t=16,pt=0,l=0,sg=0:1My sketch:
#include <SPI.h> #include <MySensor.h> #include <MyTransportRFM69.h> #include <MySigningAtsha204Soft.h> #define NODE_ID 1 #define PIN_G 4 #define PIN_O 5 #define PIN_R 6 int sentG = 1; int sentO = 1; int sentR = 1; //Construct MySensors library MyHwATMega328 hw; MyMessage groen(1, V_TRIPPED); MyMessage oranje(2, V_TRIPPED); MyMessage rood(3, V_TRIPPED); MyTransportRFM69 transport; MySensor gw(transport, hw); /**************************************************************************************/ /* Initialization */ /**************************************************************************************/ void setup() { pinMode(PIN_G, INPUT); digitalWrite(PIN_G, HIGH); pinMode(PIN_O, INPUT); digitalWrite(PIN_O, HIGH); pinMode(PIN_R, INPUT); digitalWrite(PIN_R, HIGH); gw.begin(NULL, NODE_ID, false); } /**************************************************************************************/ /* Main loop */ /**************************************************************************************/ void loop(){ // GROENE KNOP int valueG = digitalRead(PIN_G); if (valueG != sentG) { Serial.println("GROEN"); gw.send(groen.set(1)); sentG = valueG; } // ORANJE KNOP int valueO = digitalRead(PIN_O); if (valueO != sentO) { Serial.println("ORANJE"); gw.send(oranje.set(1)); sentO = valueO; } // RODE KNOP int valueR = digitalRead(PIN_R); if (valueR != sentR) { Serial.println("ROOD"); gw.send(rood.set(1)); sentR = valueR; } } -
My gateway receives this:
0;0;3;0;9;read: 1-1-0 s=1,c=3,t=16,pt=0,l=0,sg=0:while it should receive?
0;0;3;0;9;read: 1-1-0 s=1,c=3,t=16,pt=0,l=0,sg=0:1My sketch:
#include <SPI.h> #include <MySensor.h> #include <MyTransportRFM69.h> #include <MySigningAtsha204Soft.h> #define NODE_ID 1 #define PIN_G 4 #define PIN_O 5 #define PIN_R 6 int sentG = 1; int sentO = 1; int sentR = 1; //Construct MySensors library MyHwATMega328 hw; MyMessage groen(1, V_TRIPPED); MyMessage oranje(2, V_TRIPPED); MyMessage rood(3, V_TRIPPED); MyTransportRFM69 transport; MySensor gw(transport, hw); /**************************************************************************************/ /* Initialization */ /**************************************************************************************/ void setup() { pinMode(PIN_G, INPUT); digitalWrite(PIN_G, HIGH); pinMode(PIN_O, INPUT); digitalWrite(PIN_O, HIGH); pinMode(PIN_R, INPUT); digitalWrite(PIN_R, HIGH); gw.begin(NULL, NODE_ID, false); } /**************************************************************************************/ /* Main loop */ /**************************************************************************************/ void loop(){ // GROENE KNOP int valueG = digitalRead(PIN_G); if (valueG != sentG) { Serial.println("GROEN"); gw.send(groen.set(1)); sentG = valueG; } // ORANJE KNOP int valueO = digitalRead(PIN_O); if (valueO != sentO) { Serial.println("ORANJE"); gw.send(oranje.set(1)); sentO = valueO; } // RODE KNOP int valueR = digitalRead(PIN_R); if (valueR != sentR) { Serial.println("ROOD"); gw.send(rood.set(1)); sentR = valueR; } }The serial output you've received is an internal message about signing nonce.
You don't present the sensors in setup, which is why you don't see any more output, about sensors tripping.
See:
http://www.mysensors.org/download/sensor_api_15and
http://www.mysensors.org/download/serial_api_15and
http://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help/3
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login