Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
Pictor LallemandP

Pictor Lallemand

@Pictor Lallemand
About
Posts
21
Topics
0
Shares
0
Groups
0
Followers
1
Following
2

Posts

Recent Best Controversial

  • Multi Button Relay Sketch
    Pictor LallemandP Pictor Lallemand

    hello,

    I made this code it save state in EEPROM after reboot it load previous state saved .
    I share you my sketch is made for 4 relays an 4 momentary button.

    // Enable debug prints to serial monitor
    #define MY_DEBUG
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    
    // Enabled repeater feature for this node
    #define MY_REPEATER_FEATURE
    
    #include <SPI.h>
    #include <MySensors.h>
    #include <Bounce2.h>
    
    #define RELAY_PIN0  5  // Arduino Digital I/O pin number for relay 
    #define RELAY_PIN1  6
    #define RELAY_PIN2  7
    #define RELAY_PIN3  8
    #define BUTTON_PIN0  A0  // Arduino Digital I/O pin number for button 
    #define BUTTON_PIN1  A1  // Arduino Digital I/O pin number for button 
    #define BUTTON_PIN2  A2  // Arduino Digital I/O pin number for button 
    #define BUTTON_PIN3  A3  // Arduino Digital I/O pin number for button 
    
    #define CHILD0_ID 50   // Id of the sensor child
    #define CHILD1_ID 51   // Id of the sensor child
    #define CHILD2_ID 52   // Id of the sensor child
    #define CHILD3_ID 53   // Id of the sensor child
    
    #define RELAY_ON 1
    #define RELAY_OFF 0
    
    Bounce debouncerA = Bounce();
    Bounce debouncerB = Bounce();
    Bounce debouncerC = Bounce();
    Bounce debouncerD = Bounce();
    
    int oldValueA = 0;
    int oldValueB = 0;
    int oldValueC = 0;
    int oldValueD = 0;
    
    bool stateA;
    bool stateB;
    bool stateC;
    bool stateD;
    
    MyMessage msgA(CHILD0_ID, V_LIGHT);
    MyMessage msgB(CHILD1_ID, V_LIGHT);
    MyMessage msgC(CHILD2_ID, V_LIGHT);
    MyMessage msgD(CHILD3_ID, V_LIGHT);
    
    void setup()
    {
      // Setup the button
      pinMode(BUTTON_PIN0, INPUT_PULLUP);
      pinMode(BUTTON_PIN1, INPUT_PULLUP);
      pinMode(BUTTON_PIN2, INPUT_PULLUP);
      pinMode(BUTTON_PIN3, INPUT_PULLUP);
    
      // After setting up the button, setup debouncer
      debouncerA.attach(BUTTON_PIN0);
      debouncerA.interval(5);
      debouncerB.attach(BUTTON_PIN1);
      debouncerB.interval(5);
      debouncerC.attach(BUTTON_PIN2);
      debouncerC.interval(5);
      debouncerD.attach(BUTTON_PIN3);
      debouncerD.interval(5);
    
      // Make sure relays are off when starting up
      digitalWrite(RELAY_PIN0, RELAY_OFF);
      digitalWrite(RELAY_PIN1, RELAY_OFF);
      digitalWrite(RELAY_PIN2, RELAY_OFF);
      digitalWrite(RELAY_PIN3, RELAY_OFF);
      // Then set relay pins in output mode
      pinMode(RELAY_PIN0, OUTPUT);
      pinMode(RELAY_PIN1, OUTPUT);
      pinMode(RELAY_PIN2, OUTPUT);
      pinMode(RELAY_PIN3, OUTPUT);
    
    
    
      // Set relay to last known state (using eeprom storage)
      stateA = loadState(CHILD0_ID);
      digitalWrite(RELAY_PIN0, stateA ? RELAY_ON : RELAY_OFF);
    
      stateB = loadState(CHILD1_ID);
      digitalWrite(RELAY_PIN1, stateB ? RELAY_ON : RELAY_OFF);
    
      stateC = loadState(CHILD2_ID);
      digitalWrite(RELAY_PIN2, stateC ? RELAY_ON : RELAY_OFF);
    
      stateD = loadState(CHILD3_ID);
      digitalWrite(RELAY_PIN3, stateD ? RELAY_ON : RELAY_OFF);
    }
    
    void presentation()  {
      // Send the sketch version information to the gateway and Controller
      sendSketchInfo("4 Relay & button", "1.0");
    
      // Register all sensors to gw (they will be created as child devices)
      present(CHILD0_ID, S_LIGHT);
      present(CHILD1_ID, S_LIGHT);
      present(CHILD2_ID, S_LIGHT);
      present(CHILD3_ID, S_LIGHT);
    }
    
    /*
       Example on how to asynchronously check for new messages from gw
    */
    void loop()
    {
      debouncerA.update();
      // Get the update value
      int valueA = debouncerA.read();
      if (valueA != oldValueA && valueA == 0) {
        send(msgA.set(stateA ? false : true), true); // Send new state and request ack back
      }
      oldValueA = valueA;
    
      debouncerB.update();
      // Get the update value
      int valueB = debouncerB.read();
      if (valueB != oldValueB && valueB == 0) {
        send(msgB.set(stateB ? false : true), true); // Send new state and request ack back
      }
      oldValueB = valueB;
    
      debouncerC.update();
      // Get the update value
      int valueC = debouncerC.read();
      if (valueC != oldValueC && valueC == 0) {
        send(msgC.set(stateC ? false : true), true); // Send new state and request ack back
      }
      oldValueC = valueC;
    
      debouncerD.update();
      // Get the update value
      int valueD = debouncerD.read();
      if (valueD != oldValueD && valueD == 0) {
        send(msgD.set(stateD ? false : true), true); // Send new state and request ack back
      }
      oldValueD = valueD;
    }
    
    void receive(const MyMessage &message) {
      // We only expect one type of message from controller. But we better check anyway.
      if (message.type == V_LIGHT) {
        
        switch (message.sensor) {
          case CHILD0_ID:
            stateA = message.getBool();
            digitalWrite(RELAY_PIN0, stateA ? RELAY_ON : RELAY_OFF);
            saveState(CHILD0_ID, stateA);
            break;
            
          case CHILD1_ID:
            stateB = message.getBool();
            digitalWrite(RELAY_PIN1, stateB ? RELAY_ON : RELAY_OFF);
            saveState(CHILD1_ID, stateB);
            break;
    
          case CHILD2_ID:
            stateC = message.getBool();
            digitalWrite(RELAY_PIN2, stateC ? RELAY_ON : RELAY_OFF);
            saveState(CHILD2_ID, stateC);
            break;
            
          case CHILD3_ID:
            stateD = message.getBool();
            digitalWrite(RELAY_PIN3, stateD ? RELAY_ON : RELAY_OFF);
            saveState(CHILD3_ID, stateD);
            break;
        }
        // Write some debug info
        Serial.print("Incoming change for sensor:");
        Serial.print(message.sensor);
        Serial.print(", New status: ");
        Serial.println(message.getBool());
      }
    }
    
    Development

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    @tekka

    yes my radio module operates on 3.3V ams1117 I use the regulator to reduce the voltage 3.3V

    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    after having followed your two board this is what I get the node code

    debug

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=101)
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=101)
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=101)
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:READ 0-0-101 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSP:MSG:READ 0-0-101 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:CHKID:OK (ID=101)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=1,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=2,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=3,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=4,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=5,st=fail:0
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=101)
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=101)
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:READ 0-0-101 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-101 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=255,pt=0,l=3,sg=0:255
    TSP:MSG:BC
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSM:FPAR:OK
    TSM:ID
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=1,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=2,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=3,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=4,st=fail:0
    TSM:CHKID:OK (ID=101)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=fail:1
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=6,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=7,st=fail:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=8,st=fail:0
    TSP:MSG:READ 0-0-101 s=255,c=3,t=25,pt=1,l=1,sg=0:1
    TSP:MSG:PONG RECV (hops=1)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=9,st=fail:0
    TSP:CHKUPL:OK
    TSM:UPL:OK
    TSM:READY
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=10,st=fail:0100
    !TSP:MSG:SEND 101-101-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=11,st=fail:2.0.0
    !TSP:MSG:SEND 101-101-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=12,st=fail:0
    !TSM:UPL FAIL, SNP
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    Request registration...
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 101-101-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    Init complete, id=101, parent=255, distance=255, registration=1
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    
    

    the code of node

    #define MY_DEBUG 
    #define MY_RADIO_NRF24
    #define MY_NODE_ID 101
    #define MY_RF24_PA_LEVEL RF24_PA_LOW
    #define MY_RF24_DATARATE RF24_1MBPS
    #define MY_RF24_CHANNEL 37
    
    #include <MySensors.h>
    
    MyMessage msgGeneral(0, V_VAR1);
    uint32_t counter = 0, lastSend = 0;
    uint8_t rebootCounter = 5;
    
    void presentation() {
      sendSketchInfo("TestNode", "1.0");
      present(0, S_ARDUINO_NODE, "Counter");
    }
    
    void loop() {
       if (millis() - lastSend > 500) {
          msgGeneral.setDestination(GATEWAY_ADDRESS);
          send(msgGeneral.set(counter), true);
          counter = 0;
          lastSend = millis();
          if(!rebootCounter--) {
            hwReboot();
          }
       }
       counter++;
    }
    
    

    the gateway code

      /**
     * 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
     * The ArduinoGateway prints data received from sensors on the serial link. 
     * The gateway accepts input on seral which will be sent out on radio network.
     *
     * The GW code is designed for Arduino Nano 328p / 16MHz
     *
     * Wire connections (OPTIONAL):
     * - Inclusion button should be connected between digital pin 3 and GND  
     * - RX/TX/ERR leds need to be connected between +5V (anode) and digital pin 6/5/4 with resistor 270-330R in a series
     *
     * LEDs (OPTIONAL):
     * - To use the feature, uncomment MY_LEDS_BLINKING_FEATURE in MyConfig.h
     * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
     * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
     * - ERR (red) - fast blink on error during transmission error or recieve crc error 
     * 
     */
    
    // Enable debug prints to serial monitor
    #define MY_DEBUG 
    
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    
    // Set LOW transmit power level as default, if you have an amplified NRF-module and
    // power your radio separately with a good regulator you can turn up PA level. 
    #define MY_RF24_PA_LEVEL RF24_PA_LOW
    #define MY_RF24_DATARATE RF24_1MBPS
    #define MY_RF24_CHANNEL 37
    // Enable serial gateway
    #define MY_GATEWAY_SERIAL
    
    // Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
    #if F_CPU == 8000000L
    #define MY_BAUD_RATE 38400
    #endif
    
    // Flash leds on rx/tx/err
    #define MY_LEDS_BLINKING_FEATURE
    // Set blinking period
    #define MY_DEFAULT_LED_BLINK_PERIOD 300
    
    // Inverses the behavior of leds
    //#define MY_WITH_LEDS_BLINKING_INVERSE
    
    // Enable inclusion mode
    #define MY_INCLUSION_MODE_FEATURE
    // Enable Inclusion mode button on gateway
    #define MY_INCLUSION_BUTTON_FEATURE
    
    // Inverses behavior of inclusion button (if using external pullup)
    //#define MY_INCLUSION_BUTTON_EXTERNAL_PULLUP
    
    // 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  3 
    
    // Uncomment to override default HW configurations
    //#define MY_DEFAULT_ERR_LED_PIN 4  // Error led pin
    //#define MY_DEFAULT_RX_LED_PIN  6  // Receive led pin
    //#define MY_DEFAULT_TX_LED_PIN  5  // the PCB, on board LED
    
    #include <SPI.h>
    #include <MySensors.h>  
    
    void setup() { 
      // Setup locally attached sensors
    }
    
    void presentation() {
     // Present locally attached sensors 
    }
    
    void loop() { 
      // Send locally attached sensor data here 
    }
    
    
    
    
    
    

    the debug gateway

    0;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
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.0.0
    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:MSG:READ 101-101-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=101)
    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-101-101 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=fail:0
    0;255;3;0;9;TSP:MSG:READ 101-101-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=101)
    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-101-101 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=fail:0
    0;255;3;0;9;TSP:SANCHK:OK
    
    
    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    @tekka I already used the command 1Mbit

    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    @tekka

    debug gw

    **********
    C:\Users\victor\Documents\Arduino\sketch_aug14b\sketch_aug14b.ino
    2.0.0
    1703
    4728
    175
    16000000
    **********
    
    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    @tekka my debug output

    **********
    C:\Users\victor\Documents\Arduino\sketch_aug14c\sketch_aug14c.ino
    2.0.0
    1703
    5001
    164
    16000000
    **********
    
    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    @tekka

    my node

    2_1471165756602_IMG_3949.JPG

    1_1471165756602_IMG_3948.JPG

    my gateway
    0_1471165756600_IMG_3947.JPG

    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    @tekka

    I weld son tips on antenna here debug

    node

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    !TSP:FPAR:ACTIVE (msg not send)
    TSM:FPAR:OK
    TSM:ID
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=ok:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=ok:0
    TSP:MSG:READ 0-0-255 s=255,c=3,t=20,pt=0,l=1,sg=0:0
    TSP:MSG:BC
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=ok:0
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
    TSP:MSG:READ 0-0-100 s=255,c=3,t=25,pt=1,l=1,sg=0:1
    TSP:MSG:PONG RECV (hops=1)
    TSP:CHKUPL:OK
    TSM:UPL:OK
    TSM:READY
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
    TSP:MSG:SEND 100-100-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=ok:2.0.0
    TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=ok:0
    TSP:MSG:READ 0-0-100 s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    TSP:MSG:READ 0-0-100 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=11,pt=0,l=8,sg=0,ft=0,st=fail:TestNode
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=1,st=fail:1.0
    !TSP:MSG:SEND 100-100-0-0 s=0,c=0,t=17,pt=0,l=7,sg=0,ft=2,st=fail:Counter
    Request registration...
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=3,st=fail:2
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=4,st=fail:2
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=5,st=fail:2
    !TSM:UPL FAIL, SNP
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    Init complete, id=100, parent=255, distance=255, registration=1
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSP:SEND:TNR
    !TSP:SEND:TNR
    

    gateway debug from MYSController

    8	13/08/2016 18:33:12	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			required
    10	13/08/2016 18:33:20	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    11	13/08/2016 18:33:22	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    12	13/08/2016 18:33:27	TX	100	100		BC	INTERNAL	C_INTERNAL	I_FIND_PARENT	STRING	0	NO		
    14	13/08/2016 18:33:27	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			(sender=100)
    17	13/08/2016 18:33:27	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_FIND_PARENT_RESPONSE	BYTE	1	NO	ok	0
    18	13/08/2016 18:33:27	TX	100	100		BC	INTERNAL	C_INTERNAL	I_FIND_PARENT	STRING	0	NO		
    20	13/08/2016 18:33:27	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			(sender=100)
    23	13/08/2016 18:33:28	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_FIND_PARENT_RESPONSE	BYTE	1	NO	ok	0
    24	13/08/2016 18:33:46	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    25	13/08/2016 18:34:01	TX	100	100		BC	INTERNAL	C_INTERNAL	I_FIND_PARENT	STRING	0	NO		
    27	13/08/2016 18:34:01	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			(sender=100)
    30	13/08/2016 18:34:01	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_FIND_PARENT_RESPONSE	BYTE	1	NO	ok	0
    31	13/08/2016 18:34:01	TX	100	100		BC	INTERNAL	C_INTERNAL	I_FIND_PARENT	STRING	0	NO		
    33	13/08/2016 18:34:01	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			(sender=100)
    36	13/08/2016 18:34:02	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_FIND_PARENT_RESPONSE	BYTE	1	NO	ok	0
    37	13/08/2016 18:34:08	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    38	13/08/2016 18:34:08	TX	100	100		BC	INTERNAL	C_INTERNAL	I_FIND_PARENT	STRING	0	NO		
    40	13/08/2016 18:34:08	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			(sender=100)
    43	13/08/2016 18:34:09	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_FIND_PARENT_RESPONSE	BYTE	1	NO	ok	0
    44	13/08/2016 18:34:09	TX	100	100		BC	INTERNAL	C_INTERNAL	I_FIND_PARENT	STRING	0	NO		
    46	13/08/2016 18:34:09	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			(sender=100)
    49	13/08/2016 18:34:09	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_FIND_PARENT_RESPONSE	BYTE	1	NO	ok	0
    50	13/08/2016 18:34:09	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    51	13/08/2016 18:34:10	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    52	13/08/2016 18:34:10	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    53	13/08/2016 18:34:11	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    54	13/08/2016 18:34:11	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    55	13/08/2016 18:34:11	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    56	13/08/2016 18:34:11	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    57	13/08/2016 18:34:11	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    58	13/08/2016 18:34:12	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    59	13/08/2016 18:34:12	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    60	13/08/2016 18:34:12	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    62	13/08/2016 18:34:12	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    63	13/08/2016 18:34:13	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    64	13/08/2016 18:34:13	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    65	13/08/2016 18:34:14	TX	100	100		0	INTERNAL	C_INTERNAL	I_DISCOVER_RESPONSE	BYTE	1	NO		0
    67	13/08/2016 18:34:15	TX	100	100		0	INTERNAL	C_INTERNAL	I_DISCOVER_RESPONSE	BYTE	1	NO		0
    69	13/08/2016 18:34:15	TX	100	100		0	INTERNAL	C_INTERNAL	I_DISCOVER_RESPONSE	BYTE	1	NO		0
    71	13/08/2016 18:34:16	TX	100	100		0	INTERNAL	C_INTERNAL	NA (24)	BYTE	1	NO		1
    72	13/08/2016 18:34:16	TX	-1	-1		-1	-1	NA (-1)	N/A	NA (-1)	-1			hops=1)
    73	13/08/2016 18:34:16	TX	0	0	100	100	INTERNAL	C_INTERNAL	NA (25)	BYTE	1	NO	ok	1
    74	13/08/2016 18:34:16	TX	100	100		0	INTERNAL	C_INTERNAL	I_SIGNING_PRESENTATION	CUSTOM	2	NO		0100
    75	13/08/2016 18:34:16	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_SIGNING_PRESENTATION	CUSTOM	2	NO	ok	0100
    76	13/08/2016 18:34:16	TX	100	100		0	INTERNAL	C_PRESENTATION	S_ARDUINO_NODE	STRING	5	NO		2.0.0
    78	13/08/2016 18:34:16	TX	100	100		0	INTERNAL	C_INTERNAL	I_CONFIG	BYTE	1	NO		0
    81	13/08/2016 18:34:16	TX	0	0	100	100	INTERNAL	C_INTERNAL	I_CONFIG	STRING	1	NO	ok	M
    84	13/08/2016 18:36:27	TX	0	0	255	BC	INTERNAL	C_INTERNAL	I_DISCOVER	STRING	1	NO	bc	0
    
    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    @tekka My HW is arduino pro mini 5v + ams1117 3,3V for radio module and NRF24L01 for radio

    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    @tekka What is the HW?

    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    @tekka it is always the same worries I added capacitors 330uF no wifi point naarby

    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    @tekka I just try not conclusive

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    

    an idea ?

    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    @tekka in parallel

    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    i add 2 capacitors of 22uf in serie the gateway is powered by my laptop
    the node is powered by my laptop for use serial debug

    debug node

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    

    gw debug

    0;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
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.0.0
    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:MSG:READ 100-100-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=100)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 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 100-100-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=100)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 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 100-100-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=100)
    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-100-100 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 100-100-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=100)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:SANCHK:OK
    

    Thank you for your support

    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    i add 22uF capacitor to node and GW

    debug gw

    0;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
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.0.0
    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:MSG:READ 100-100-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=100)
    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-100-100 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 100-100-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=100)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 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 100-100-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=100)
    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-100-100 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 100-100-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=100)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:SANCHK:OK
    

    debug node

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=100)
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=100)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    

    I'm really frustrated that it does not work correctly yet I applied literally your sugestions

    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    the gateway and the remote sensors are 100 cm I use these nRF24L01 I'm beginner with mysensors. I'm really frustrated that it does not work properly malgrer all my efforts to get it working properly alt text

    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    the gateway log

    0;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.1.15
    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;Eth: connect
    0;255;3;0;9;Eth: 0;0;3;0;2;
    0;255;3;0;9;Eth: 0;0;3;0;2;Get Version
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:MSG:READ 123-123-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=123)
    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-123-123 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 123-123-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=123)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:MSG:READ 123-123-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=123)
    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-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:MSG:READ 123-123-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=123)
    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-123-123 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 123-123-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=123)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:MSG:READ 123-123-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=123)
    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-123-123 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 123-123-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=123)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:SANCHK:OK
    
    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    it didnt change anything here is the log for sensors

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=123)
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=123)
    TSM:FPAR
    TSP:MSG:SEND 123-123-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-123 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSP:MSG:READ 0-0-123 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=123)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    !TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1
    TSP:CHKUPL:FAIL (hops=255)
    !TSM:UPL:FAIL
    TSM:FPAR
    
    
    

    the sketch use

    /**
     * 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.
     *
     *******************************
     *
     * REVISION HISTORY
     * Version 1.0 - Henrik Ekblad
     * 
     * DESCRIPTION
     * Example sketch showing how to control physical relays. 
     * This example will remember relay state after power failure.
     * http://www.mysensors.org/build/relay
     */ 
    
    // Enable debug prints to serial monitor
    #define MY_DEBUG 
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    
    // Enable repeater functionality for this node
    #define MY_REPEATER_FEATURE
    
    #include <SPI.h>
    #include <MySensors.h>
    
    #define RELAY_1  8  // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
    #define NUMBER_OF_RELAYS 1 // Total number of attached relays
    #define RELAY_ON 1  // GPIO value to write to turn on attached relay
    #define RELAY_OFF 0 // GPIO value to write to turn off attached relay
    
    
    void before() { 
      for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) {
        // Then set relay pins in output mode
        pinMode(pin, OUTPUT);   
        // Set relay to last known state (using eeprom storage) 
        digitalWrite(pin, loadState(sensor)?RELAY_ON:RELAY_OFF);
      }
    }
    
    void setup() {
      
    }
    
    void presentation()  
    {   
      // Send the sketch version information to the gateway and Controller
      sendSketchInfo("Relay", "1.0");
    
      for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) {
        // Register all sensors to gw (they will be created as child devices)
        present(sensor, S_LIGHT);
      }
    }
    
    
    void loop() 
    {
      
    }
    
    void receive(const MyMessage &message) {
      // We only expect one type of message from controller. But we better check anyway.
      if (message.type==V_LIGHT) {
         // Change relay state
         digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);
         // Store state in eeprom
         saveState(message.sensor, message.getBool());
         // Write some debug info
         Serial.print("Incoming change for sensor:");
         Serial.print(message.sensor);
         Serial.print(", New status: ");
         Serial.println(message.getBool());
       } 
    }
    

    and that of the gateway

    0;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.1.15
    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;Eth: connect
    0;255;3;0;9;Eth: 0;0;3;0;2;
    0;255;3;0;9;Eth: 0;0;3;0;2;Get Version
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;TSP:SANCHK:OK
    

    the sketch use

    /**
     * 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.
     *
     *******************************
     *
     * REVISION HISTORY
     * Version 1.0 - Henrik EKblad
     * Contribution by a-lurker and Anticimex,
     * Contribution by Norbert Truchsess <norbert.truchsess@t-online.de>
     * Contribution by Tomas Hozza <thozza@gmail.com>
     *
     *
     * DESCRIPTION
     * The EthernetGateway sends data received from sensors to the ethernet link.
     * The gateway also accepts input on ethernet interface, which is then sent out to the radio network.
     *
     * The GW code is designed for Arduino 328p / 16MHz.  ATmega168 does not have enough memory to run this program.
     *
     * LED purposes:
     * - To use the feature, uncomment WITH_LEDS_BLINKING in MyConfig.h
     * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
     * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
     * - ERR (red) - fast blink on error during transmission error or recieve crc error
     *
     * See http://www.mysensors.org/build/ethernet_gateway for wiring instructions.
     *
     */
    
    // Enable debug prints to serial monitor
    #define MY_DEBUG 
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    
    // When ENC28J60 is connected we have to move CE/CSN pins for NRF radio
    #define MY_RF24_CE_PIN 5
    #define MY_RF24_CS_PIN 6
    
    // Enable gateway ethernet module type 
    #define MY_GATEWAY_ENC28J60
    
    // Gateway IP address
    #define MY_IP_ADDRESS 192,168,1,15  
    
    // The port to keep open on node server mode / or port to contact in client mode
    #define MY_PORT 5003   
    
    // 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, 254   
     
    // The MAC address can be anything you want but should be unique on your network.
    // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use.
    // Note that most of the Ardunio examples use  "DEAD BEEF FEED" for the MAC address.
    #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
    
    // Flash leds on rx/tx/err
    #define MY_LEDS_BLINKING_FEATURE
    // Set blinking period
    #define MY_DEFAULT_LED_BLINK_PERIOD 300
    
    // 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  3 
    
    #define MY_DEFAULT_ERR_LED_PIN 7  // Error led pin
    #define MY_DEFAULT_RX_LED_PIN  8  // Receive led pin
    #define MY_DEFAULT_TX_LED_PIN  9  // the PCB, on board LED
    
    #include <SPI.h>
    #include <UIPEthernet.h>
    #include <MySensors.h>
    
    
    void setup()
    {
    }
    
    void loop() {
    }```
    
      i add a capacitor 220U
    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    in the examples of the API (MySensors 2.0.0) I can not find ENC28J60 Gateway

    send me please you the code in this gateway thank you

    Troubleshooting

  • [Solved]UPL:Fail
    Pictor LallemandP Pictor Lallemand

    or find the code for my GW I use an Arduino pro mini card for a ENC28J60 network and nRF24L01 for radio. because I can not find it in the examples mysensors

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular