Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. cadet
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by cadet

    • RE: 💬 Building a Raspberry Pi Gateway

      @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 ?

      posted in Announcements
      cadet
      cadet
    • RE: 💬 Building a Raspberry Pi Gateway

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

      posted in Announcements
      cadet
      cadet
    • RE: 💬 Building a Raspberry Pi Gateway

      @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.

      posted in Announcements
      cadet
      cadet
    • RE: 💬 Building a Raspberry Pi Gateway

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

      posted in Announcements
      cadet
      cadet
    • RE: MySensors 2.3.0 released

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

      posted in Announcements
      cadet
      cadet
    • RE: MySensors 2.3.0 released

      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

      posted in Announcements
      cadet
      cadet
    • RE: [SOLVED] Raspberry PI gateway

      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

      posted in Troubleshooting
      cadet
      cadet
    • RE: [SOLVED] Raspberry PI gateway

      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
      ????

      posted in Troubleshooting
      cadet
      cadet
    • [SOLVED] Raspberry PI gateway

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

      posted in Troubleshooting
      cadet
      cadet
    • RE: MySensors 2.3.0 released

      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

      posted in Announcements
      cadet
      cadet
    • RE: LCD Node - display temp from other sensor - How?

      @cadet

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

      posted in My Project
      cadet
      cadet
    • RE: LCD Node - display temp from other sensor - How?

      @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

      posted in My Project
      cadet
      cadet
    • RE: LCD Node - display temp from other sensor - How?

      @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);  
         }
       }```
      posted in My Project
      cadet
      cadet
    • RE: LCD Node - display temp from other sensor - How?

      @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

      posted in My Project
      cadet
      cadet
    • LCD Node - display temp from other sensor - How?

      Please provide example
      Thank you

      posted in My Project
      cadet
      cadet
    • RE: 💬 Real Time Clock Module, LCD Display and Controller Time

      @cadet
      Hi all

      Can I display Temp from other sensor ?

      Thank you
      Andrey

      posted in Announcements
      cadet
      cadet
    • RE: Mini Weather Station

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

      posted in My Project
      cadet
      cadet
    • RE: Mini Weather Station

      @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

      posted in My Project
      cadet
      cadet
    • RE: 💬 Real Time Clock Module, LCD Display and Controller Time

      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);
      }
      
      
      
      posted in Announcements
      cadet
      cadet
    • RE: Repeater nodes identified by Vera

      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.

      posted in Vera
      cadet
      cadet
    • RE: Display node: how to set up

      @mfalkvidd
      Example show temp from DS3232 RTC

      posted in General Discussion
      cadet
      cadet
    • RE: Real Time Clock with Display Example

      @hek said in Real Time Clock with Display Example:

      http://www.mysensors.org/build/display

      Hi

      Can you modify code for adding temp sensor to GW.
      And may be display day of week.
      Thank you.

      posted in Development
      cadet
      cadet
    • RE: Can't ping Ethernet Gateway ENC28J60 + Arduino Nano Clone

      @MLs
      And that way I was tested
      Connect via breadboard to nano and uno
      With same results

      posted in Troubleshooting
      cadet
      cadet
    • RE: Can't ping Ethernet Gateway ENC28J60 + Arduino Nano Clone

      @MLs
      Nano with shield and no nrf24 ping only with commented nrf24
      Then uncomment nrf24 GW has no connection over ethernet
      No ping no telnet

      posted in Troubleshooting
      cadet
      cadet
    • RE: Can't ping Ethernet Gateway ENC28J60 + Arduino Nano Clone

      @MLs

      I'm also use W5100 now, but have two enc28 shield )

      posted in Troubleshooting
      cadet
      cadet
    • RE: Can't ping Ethernet Gateway ENC28J60 + Arduino Nano Clone

      @MLs
      I think you use enc28 ethernet module not shield

      I have same code but no ping if nrf not commented

      posted in Troubleshooting
      cadet
      cadet
    • RE: Another case for Temp/humidity

      @rborer
      Thanks

      posted in My Project
      cadet
      cadet
    • RE: Can't ping Ethernet Gateway ENC28J60 + Arduino Nano Clone

      @MLs
      Please post the code

      posted in Troubleshooting
      cadet
      cadet
    • RE: [Solved] MySensors 2.0 Ethernet gateway (ENC28J60) restart / IP issue

      Hi again

      I have enc28j60 shield
      UNO
      Mysensors 2.1.1
      avr 1.6.11
      and code above
      I was change ip address
      BUT no ping
      comment debug
      and if I comment NRF24
      I have ping
      Any ideas??

      Andrey

      posted in Troubleshooting
      cadet
      cadet
    • RE: Another case for Temp/humidity

      Hi
      Can share stl ?

      posted in My Project
      cadet
      cadet
    • RE: [Solved] MySensors 2.0 Ethernet gateway (ENC28J60) restart / IP issue

      Please provide wiring for this hardware.

      UNO + enc28-shield + NRF24

      Andrey

      posted in Troubleshooting
      cadet
      cadet
    • RE: RFID Lock Sensor/Actuator (1.4)

      Please modify code for mrc522 spi interface
      This hardware cheaper
      Thank you

      posted in Development
      cadet
      cadet
    • RE: 💬 RFID Lock Sensor

      Hi can you modify scetch for spi interface??

      posted in Announcements
      cadet
      cadet
    • RE: RFID Garage door opener

      Hi Rod

      Can you modify your code for 2.0 lib ?

      Thank you
      Andrey

      posted in My Project
      cadet
      cadet
    • RE: Can't ping Ethernet Gateway ENC28J60 + Arduino Nano Clone

      I was try with nano and shield and nrf24
      Also i was try uno
      I was comment all! Led, debug and no result
      Only comment nrf24 will help and ethernet will ping.
      Waiting for ftdi and w5100 (

      posted in Troubleshooting
      cadet
      cadet
    • RE: Can't ping Ethernet Gateway ENC28J60 + Arduino Nano Clone

      This configuration is dead.
      try to comment NRF - and will ping.
      Use WI-Fi

      posted in Troubleshooting
      cadet
      cadet