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
cadetC

cadet

@cadet
About
Posts
36
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 💬 Building a Raspberry Pi Gateway
    cadetC cadet

    @gohan I was try to find it with ps -ef, but nothing found. Reload RPI.
    @korleone was write about this
    "Hello, it seems I found the problem: Complete newbie thing: 🔰
    sudo ./bin/mysgw -h worked, but /usr/local/bin/mysgw didn't
    I just gave the right to the folder, and now it's working."

    But what right hi gave ?

    Announcements

  • 💬 Building a Raspberry Pi Gateway
    cadetC cadet

    @gohan mysgw: ERROR accept: Bad file descriptor - today morning

    Announcements

  • 💬 Building a Raspberry Pi Gateway
    cadetC cadet

    @cadet I just remove /usr/local/bin/mysgw and compile again
    And I have one question - why is it happened?
    MysGW work fine about 3 months.

    Announcements

  • 💬 Building a Raspberry Pi Gateway
    cadetC cadet

    @korleone HI
    I have same error
    Can you write that rigth do you ser to folder ?
    Andrey

    Announcements

  • MySensors 2.3.0 released
    cadetC cadet

    @mfalkvidd ok its present
    But I spend two days to find it

    Announcements

  • MySensors 2.3.0 released
    cadetC cadet

    Please modify source !!!!! 2.1.1 2.2.0 2.3.0

    anvil 2 years ago
    Solved - user error 🙂
    Inside the Raspberry Pi setup (file /MySensors/examples_linux/mysgw.cpp), the inclusion mode define must be added:
    #define MY_INCLUSION_MODE_FEATURE
    This is present in the Serial & Ethernet gateway example ino files, just missing from the Raspberry Pi version as it is on GitHub.

    With this added, the response to the StartInclusion mode request is then received & everything is fine:

    TX(fromController) 0;0;3;0;5;1
    RX(fromRaspberryPiGateway) 0;255;3;0;5;1
    On the plus side, by working this out I'm a lot more familiar with the workings of MySensors!

    Cheers!

    1

    Announcements

  • [SOLVED] Raspberry PI gateway
    cadetC cadet

    Found

    anvil 2 years ago
    Solved - user error 🙂
    Inside the Raspberry Pi setup (file /MySensors/examples_linux/mysgw.cpp), the inclusion mode define must be added:
    #define MY_INCLUSION_MODE_FEATURE
    This is present in the Serial & Ethernet gateway example ino files, just missing from the Raspberry Pi version as it is on GitHub.

    With this added, the response to the StartInclusion mode request is then received & everything is fine:

    TX(fromController) 0;0;3;0;5;1
    RX(fromRaspberryPiGateway) 0;255;3;0;5;1
    On the plus side, by working this out I'm a lot more familiar with the workings of MySensors!

    Cheers!

    1

    Troubleshooting

  • [SOLVED] Raspberry PI gateway
    cadetC cadet

    install 2.1.1 - same problem
    try another Vera - same problem
    I have arduino GW on that Vera and it work fine
    But no inclusion with RPi
    ????

    Troubleshooting

  • [SOLVED] Raspberry PI gateway
    cadetC cadet

    Hi.
    Just install RPi gateway 2.3.0 and add it to Vera
    inclusion button inactive - both grey.??
    Please help

    Troubleshooting

  • MySensors 2.3.0 released
    cadetC cadet

    Hi
    I have MSGW 2.1.0 version on arduino
    today I was install RPi3 MSGW 2.3.0
    Can I work with sensors 2.1.0 or need to upgrade all ?
    Thank you

    Announcements

  • LCD Node - display temp from other sensor - How?
    cadetC cadet

    @cadet

    11 node recv
    TSF:MSG:READ,5-5-11,s=0,c=1,t=0,pt=7,l=5,sg=0:26.0

    My Project

  • LCD Node - display temp from other sensor - How?
    cadetC cadet

    @cadet
    Now node 5 send
    TSF:MSG:SEND,5-5-11-11,s=0,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:26.0
    to node 11
    Correct ?
    this is code from node 5
    send(msg.setSensor(0).set(temperature, 1)); // to controller
    send(msg.setSensor(0).set(temperature, 1).setDestination(11)); // to 11 node

    My Project

  • LCD Node - display temp from other sensor - How?
    cadetC cadet

    @Boots33
    Thanks
    And how to send v_temp message ? To 11 node
    )

    Is this correct for receive section and display ?

    void receive(const MyMessage &message) {
      
      if (message.type == V_TEMP) {
        temper = V_TEMP;
        //put code here to be executed when the return from the request arrives 
        Serial.print(temper);
        lcd.setCursor(2, 3); 
        lcd.print(temper);  
       }
     }```
    My Project

  • LCD Node - display temp from other sensor - How?
    cadetC cadet

    @Boots33
    Thank you for answer
    But I need some help.

    node 5 send temp
    node 11 recv
    TSF:MSG:READ,5-5-11,s=0,c=1,t=27,pt=1,l=1,sg=0:1
    What I need write in void receive section ?

    Andrey

    My Project

  • LCD Node - display temp from other sensor - How?
    cadetC cadet

    Please provide example
    Thank you

    My Project

  • 💬 Real Time Clock Module, LCD Display and Controller Time
    cadetC cadet

    @cadet
    Hi all

    Can I display Temp from other sensor ?

    Thank you
    Andrey

    Announcements

  • Mini Weather Station
    cadetC cadet

    @jtm312
    Just try to connect Pro Mini 3volt to 9 volt GND and RAW - voltage regulator very hot - I think 60-80 C

    My Project

  • Mini Weather Station
    cadetC cadet

    @bjacobse
    Hi
    anybody compile code for this station for 2.0 Mysensors ?
    Share the code please.
    Pro mini used 5volt ver ?
    I can't power 3 volt ver from 9 volt ? Correct ?
    Thank you
    Andrey

    My Project

  • 💬 Real Time Clock Module, LCD Display and Controller Time
    cadetC cadet

    I was modify code to Present temp to controller .

    /**
     * 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 request time from controller which is stored in RTC module
     * The time and temperature (DS3231/DS3232) is shown on an attached Crystal LCD display
     * 
     *
     * Wiring (radio wiring on www.mysensors.org)
     * ------------------------------------
     * Arduino   RTC-Module     I2C Display 
     * ------------------------------------
     * GND       GND            GND
     * +5V       VCC            VCC
     * A4        SDA            SDA
     * A5        SCL            SCL
     *
     * http://www.mysensors.org/build/display
     *
     */
    
    // 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 <TimeLib.h> 
    #include <DS3232RTC.h>  // A  DS3231/DS3232 library
    #include <Wire.h>
    #include <LiquidCrystal_I2C.h>
    //#include <LCD_1602_RUS.h>
    
    bool timeReceived = false;
    unsigned long lastUpdate=0, lastRequest=0;
    
    int numSensors=0;
    #define CHILD_ID_TEMP 15
    #define COMPARE_TEMP 1                            // Send temperature only if changed? 1 = Yes 0 = No
    MyMessage msg(0,V_TEMP);
    float lastTemperature;
    
    
    // Initialize display. Google the correct settings for your display. 
    // The follwoing setting should work for the recommended display in the MySensors "shop".
    LiquidCrystal_I2C lcd(0x3F, 16, 2);
    //LCD_1602_RUS lcd(0x3F, 16, 2);
    
    void setup()  
    {  
      // the function to get the time from the RTC
      setSyncProvider(RTC.get);  
    
      // Request latest time from controller at startup
      requestTime();  
      
      // initialize the lcd for 16 chars 2 lines and turn on backlight
      lcd.begin(16,2); 
      lcd.init();                    // Инициализируем экран
      lcd.clear();
      lcd.backlight();               //включаем подсветку
    }
    
    void presentation()  {
      // Send the sketch version information to the gateway and Controller
      sendSketchInfo("RTC Clock + Temp", "1.1.1");
      present(0, S_TEMP); 
     
      numSensors = 1 ;
    }
    
    // This is called when a new time value was received
    void receiveTime(unsigned long controllerTime) {
      // Ok, set incoming time 
      Serial.print("Time value received: ");
      Serial.println(controllerTime);
      RTC.set(controllerTime); // this sets the RTC to the time from controller - which we do want periodically
      timeReceived = true;
    }
     
    void loop()     
    {     
      unsigned long now = millis();
      
      // If no time has been received yet, request it every 10 second from controller
      // When time has been received, request update every hour
      if ((!timeReceived && (now-lastRequest) > (10UL*1000UL))
        || (timeReceived && (now-lastRequest) > (60UL*1000UL*60UL))) {
        // Request time from controller. 
        Serial.println("requesting time");
        requestTime();  
        lastRequest = now;
      }
      
      // Update display every second
      if (now-lastUpdate > 1000) {
        updateDisplay();  
        lastUpdate = now;
      }
    }
    
    
    void updateDisplay(){
      tmElements_t tm;
      RTC.read(tm);
    
      // Print date and time 
      lcd.home();
      lcd.print(tm.Day);
      lcd.print("/");
      lcd.print(tm.Month);
      lcd.print("/");
      lcd.print(tmYearToCalendar(tm.Year)-2000);
    
      lcd.print(" ");
      printDigits(tm.Hour);
      lcd.print(":");
      printDigits(tm.Minute);
    //  lcd.print(":");
    //  printDigits(tm.Second);
    
      // Go to next line and print temperature
      lcd.setCursor ( 0, 1 );  
      lcd.print("Temp: ");
      lcd.print(RTC.temperature()/4);
      lcd.write(223); // Degree-sign
      lcd.print("C");
      float temperature = (RTC.temperature()/4);
      #if COMPARE_TEMP == 1
        if (lastTemperature != temperature && temperature != -127.00 && temperature != 85.00) {
        #else
        if (temperature != -127.00 && temperature != 85.00) {
        #endif
    
          // Send in the new temperature
          send(msg.setSensor(0).set(temperature, 1));
          // Save new temperatures for next compare
          lastTemperature=temperature;
        }
     
      
    }
    
    
    void printDigits(int digits){
      if(digits < 10)
        lcd.print('0');
      lcd.print(digits);
    }
    
    
    
    Announcements

  • Repeater nodes identified by Vera
    cadetC cadet

    I have two Vera lite with two GW with same software version.
    One Vera have repeater node and Parent nodes
    Second Vera did't display repeater and parent nodes (
    But all working fine
    Code same.

    Vera
  • Login

  • Don't have an account? Register

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