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
S

Steven987

@Steven987
About
Posts
6
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Raspberry Gateway freezes/hangs up
    S Steven987

    Hello,
    I have a Raspberry Pi (3B+) MQTT running here and one Arduino Pro mini node both with RFM69HW.
    it was running for 4 days quite well and then i got no mqqt messages anymore.

    So i restarted the Gateway and it worked again but only for a few hours and then it hangs up.
    In the log file isnt anything usefull just an old timestamp with the last received message.
    The node is sending all the time and getting NO REPLY messages in the debug.

    43 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2052 !TSM:FPAR:NO REPLY
    2054 TSM:FPAR
    2060 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4069 !TSM:FPAR:NO REPLY
    4071 TSM:FPAR
    4077 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6086 !TSM:FPAR:NO REPLY
    6088 TSM:FPAR
    6094 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    8105 !TSM:FPAR:FAIL
    8108 TSM:FAIL:CNT=1
    8110 TSM:FAIL:DIS
    8112 TSF:TDI:TSL
    

    i have tested the development branch for the gateway but same results.
    Hope someone can help me.

    Troubleshooting

  • Perfect battery Setup
    S Steven987

    @mfalkvidd Im aiming for the LSD (Low Self Discharge) Nimhs like eneloop pro wich have still 85% after 1 year so 15% over a year.
    Use case is a weather station readouts every 5-10 minutes. Current consumption i will measure later.
    Sensors are SHT31, BMP280, Rain Gauge and Anemometer.

    SHT31 2,15V - 5,5V
    BMP280 1,71V - 3,6V
    RFM69 2,4V - 3,6V

    Hardware

  • Perfect battery Setup
    S Steven987

    Looking for a good batter setup wanted to use nimh batteries but i cant go as low as 2,7V cause of the 8MHz 328P and as high as 3,9 limiting from the RFM69.
    so 3 nimh AA would be to high when fully loaded (1,5 x 3 = 4,5V) and 2 nimhs are to low for the arduino when disscharged (1 x 2 = 2V).
    What is a good setup?

    Hardware

  • TX Power increase after every transmission
    S Steven987

    Here with verbose
    https://pastebin.com/x8aaC429

    Looks like ATC is enabled but i heavent defined it anywhere?
    ATC on raspberry Gateway isnt working if i have read this correct
    https://forum.mysensors.org/topic/9796/rfm69-atc-not-working

    Troubleshooting

  • TX Power increase after every transmission
    S Steven987

    Debug from the Node the number inbetween is from RFM69_getTxPowerLevel();
    https://pastebin.com/ndqnrVqb

    And here from Gateway
    https://pastebin.com/kLS7EiKy

    Troubleshooting

  • TX Power increase after every transmission
    S Steven987

    Hello,
    My current Test Setup is:
    Arduino with RFM69HW and for now an SHT31 and BMP280
    Raspberry as MQTT Gateway and an Mosquitto Broker

    i want to add rain, wind later but for now im testing the basics.

    When i start the Arduino the TX Power is at 8 and increasing every transmission by one till 20 i noticed that by measuring power draw.
    Here my basic sketch:

    // Enable debug prints to serial monitor
    #define MY_DEBUG 
    
    #define MY_RADIO_RFM69
    #define MY_RFM69_NEW_DRIVER
    #define MY_IS_RFM69HW
    
    #define MY_NODE_ID 1
    
    #include <MySensors.h> 
    #include <Arduino.h>
    #include <Wire.h>
    #include <Adafruit_SHT31.h>
    #include <Adafruit_BMP280.h>
    
    Adafruit_SHT31 sht31 = Adafruit_SHT31();
    Adafruit_BMP280 bmp;
    
    unsigned long SLEEP_TIME = 10000;
    
    float altitude = 713.0;
    
    #define TEMP_CHILD_ID 0
    #define HUM_CHILD_ID 1
    #define BARO_CHILD_ID 2
    
    MyMessage temperatureMsg(TEMP_CHILD_ID, V_TEMP);
    MyMessage humidityMsg(HUM_CHILD_ID, V_HUM);
    MyMessage pressureMsg(BARO_CHILD_ID, V_PRESSURE);
    
    void setup() {
      if (!sht31.begin(0x44)) {   // Set to 0x45 for alternate i2c addr
        Serial.println("Couldn't find SHT31");
        while (1) delay(1);
      }
      if (!bmp.begin(0x76)) {
        Serial.println(F("Could not find a valid BMP280 sensor, check wiring!"));
        while (1);
      }
      bmp.setSampling(Adafruit_BMP280::MODE_FORCED,     /* Operating Mode. */
                      Adafruit_BMP280::SAMPLING_X2,     /* Temp. oversampling */
                      Adafruit_BMP280::SAMPLING_X16,    /* Pressure oversampling */
                      Adafruit_BMP280::FILTER_X16,
                      Adafruit_BMP280::STANDBY_MS_500);
    }
    
    void presentation() {
      // Send the sketch version information to the gateway and Controller
      sendSketchInfo("SHT+BMP", "1.0");
      present(TEMP_CHILD_ID, S_TEMP);
      present(HUM_CHILD_ID, S_HUM);
      present(BARO_CHILD_ID, S_BARO);
    }
    
    void loop() {  
      float t = sht31.readTemperature();
      float h = sht31.readHumidity();
      float p = bmp.readPressure();
      float pSL = (((p)/pow((1-((float)(altitude))/44330), 5.255))/100.0);
      send(temperatureMsg.set(t, 2));
      send(pressureMsg.set(pSL, 2));
      send(humidityMsg.set(h, 2));
      int txPower = RFM69_getTxPowerLevel();
      Serial.println(txPower);
      sleep(SLEEP_TIME);
    }
    

    Any ideas?
    Thanks

    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