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
LOSTL

LOST

@LOST
About
Posts
8
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [Solved] MySensors node not working, Trouble finding parent node
    LOSTL LOST

    @CurlyWurly
    OK, thanks!

    Troubleshooting

  • [Solved] MySensors node not working, Trouble finding parent node
    LOSTL LOST

    @CurlyWurly
    How did you power your Uno's separately?

    Troubleshooting

  • 💬 Mysensors 2.0 ethernet gateway (W5100) build.
    LOSTL LOST

    Looking good!

    How do you power this? From the USB or a separate powersource?

    OpenHardware.io diy ethernet build gateway

  • Connecting first node to new gateway - what am I missing?
    LOSTL LOST

    Ok, @tekka. Thanks.

    Troubleshooting

  • Connecting first node to new gateway - what am I missing?
    LOSTL LOST

    Off Topic:
    As I said, I'm no expert at all, not even experienced in MySensors..but in https://www.mysensors.org/about/network it says: Each node is assigned a unique sensorId or address that is used for sending and receiving point-to-point messages. You can assign a static sensorId or let the controller automatically assign one to the sensor. AUTO-mode configures the sensor to request a sensorId from the controller and is the default option for all the examples that we provide. The sensor stores the assigned sensorId in its non-volatile memory to ensure the correct sensorId persists across power transitions.

    Troubleshooting

  • Connecting first node to new gateway - what am I missing?
    LOSTL LOST

    @JonnyDev13
    Do you have a controller connected to the MQTT server? My thought is (not being an expert at all) that your node does not get an ID from a controller, and set it locally to 255...

    If you don't have a controller that hands out id's to nodes, set the node_id in the node sketch.

    Troubleshooting

  • Simple Serial Gateway and sensor does not work...
    LOSTL LOST

    It looks like it's similar to this: https://forum.mysensors.org/topic/4296/unable-to-get-simple-gateway-button-sensor-to-work-together

    I'm gonna try the debug for the NRF if it reveals any more...

    Troubleshooting

  • Simple Serial Gateway and sensor does not work...
    LOSTL LOST

    Hi,

    I've downloaded the latest release of MySensors (2.0.0) and uploaded the GatewaySerial sketch (unmodified) to a NANO [1] with a NRF24L01+ [2] with the extra antenna like in the tutorial video [3]

    I've also uploaded a sketch to a Mini Pro 5v with a DHT22

    /*
     * TEST SKETCH
     */
    
    // Enable debug prints
    #define MY_DEBUG
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    
    // SET NODE ID
    #define MY_NODE_ID 10
    
    #include <SPI.h>
    #include <MySensors.h>  
    #include <DHT.h>  
    
    #define CHILD_ID_TEMP 11
    #define CHILD_ID_HUM 12
    #define HUMIDITY_SENSOR_DIGITAL_PIN 3
    unsigned long SLEEP_TIME = 5*1000; // Sleep time between reads (in milliseconds)
    
    DHT dht;
    float lastTemp = -100;
    float lastHum = -100;
    boolean metric = true; 
    
    MyMessage msgHum(CHILD_ID_HUM, V_HUM);
    MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
    
    void presentation() {
      // Send the sketch version information to the gateway and Controller
      sendSketchInfo("TestSketch 1.0");
    
      // Register all sensors to gateway (they will be created as child devices)
      present(CHILD_ID_HUM, S_HUM);
      present(CHILD_ID_TEMP, S_TEMP);
      
    }
    
    void setup() {
      // put your setup code here, to run once:
      Serial.begin(115200);
      Serial.println("Setting up..");
      dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN);
      Serial.flush();
    }
    
    void loop() {
      // put your main code here, to run repeatedly:
     delay(dht.getMinimumSamplingPeriod());
    
      float temperature = dht.getTemperature();
      if (isnan(temperature)) {
          Serial.println("Failed reading temperature from DHT");
      } else if (temperature != lastTemp) {
        lastTemp = temperature;
        if (!metric) {
          temperature = dht.toFahrenheit(temperature);
        }
        send(msgTemp.set(temperature, 1));
        Serial.print("T: ");Serial.println(temperature);
      }
      
      float humidity = dht.getHumidity();
      if (isnan(humidity)) {
          Serial.println("Failed reading humidity from DHT");
      } else if (humidity != lastHum) {
          lastHum = humidity;
          send(msgHum.set(humidity, 1));
          Serial.print("H: ");Serial.println(humidity);
      }
      sleep(SLEEP_TIME);
    }
    

    This is the output 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
    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: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
    
    

    This is the output of the sensor:

    TSM:PDT
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=10)
    TSM:FPAR
    TSP:MSG:SEND 10-10-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 10-10-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 10-10-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 10-10-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=10)
    TSM:FPAR
    TSP:MSG:SEND 10-10-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 10-10-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 10-10-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 10-10-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    

    I'm guessing they are not communicating with each-other? And I'm a little lost here and don't know where to continue troubleshooting.. I've replaced the SerialGateway with another radio and nano and both have the same issue.
    I've also tried several other mini's and radios, but no difference.

    Using Arduino 1.6.9 and capacitors on the radios...

    Any suggestions what to do next?

    [1]Nano
    [2]NRF24L01+
    [3]Video

    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