Navigation

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

    JeeLet

    @JeeLet

    15
    Reputation
    113
    Posts
    38
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location french

    JeeLet Follow

    Best posts made by JeeLet

    • RE: is there a solution for a relay with button that also works offline?

      Hello to you

      MY_TRANSPORT_WAIT_READY_MS

      "MY_TRANSPORT_WAIT_READY_MS. Very useful. You can tell a node to try connecting to the gateway for X seconds, but if it fails, it should just carry on. I usually set this to 10000 so that it will try connecting to the network for ten seconds, and then just continue starting the node. The default is 0, meaning that if a node can't connect to the gateway it will never reach the loop() portion of your code!" API 2.0

      posted in Feature Requests
      JeeLet
      JeeLet
    • French Version

      French version of mycontroller has just arrived 🙂

      https://forum.mycontroller.org/topic/68/french/12

      version 2 continues its evolution, quietly but surely

      MyController ? super light and super fast.

      https://v2.mycontroller.org/docs/overview/architecture/

      posted in MyController.org
      JeeLet
      JeeLet
    • RE: Domoticz/Mysensors

      Yes errors on the commands given through domoticz
      only one in three and taken into account

      terminal copy serial

      Changement entrant pour le capteur:3, New status: 0
      Changement entrant pour le capteur:3, New status: 1
      Changement entrant pour le capteur:3, New status: 0
      Changement entrant pour le capteur:3, New status: 0
      Changement entrant pour le capteur:3, New status: 0
      Changement entrant pour le capteur:3, New status: 1
      Changement entrant pour le capteur:3, New status: 0
      Changement entrant pour le capteur:3, New status: 0
      

      ...and the local push button commands are not taken into account

      in the loop something that dies its tail ??

         // Inform controller if state change from input
          if (debouncer.update()) 
          {
              bool newState = !digitalRead(CONTROL_INPUT_PIN);
              if (newState != currentState)
              {
                  currentState = newState;
                  if (currentState != controllerState)
                  {
                      send(msg.set(currentState));
                  }
              }
          }
      

      merci Boum

      posted in Domoticz
      JeeLet
      JeeLet
    • RE: Anyone here tried either LoRa Meshtastic or LoRaWan for grid-down emergency communications?

      https://commotionwireless.net/docs/get-started/

      text alternatif

      posted in General Discussion
      JeeLet
      JeeLet
    • RE: is there a solution for a relay with button that also works offline?

      Your question raises many problems, but a simple solution may be possible 🙂

      In the creation of a home automation system there are two basic philosophies.

      • a centralized "intelligence" that contains the parameters and algorithms to give orders/actions to the Nodes
      • or a distributed "intelligence", each Node with its own algorithm receives the list of things to do.

      for your problem how to have a "degraded mode" in case of scratch.

      some reading ... links :

      the keyword, the thread: Sending data

      https://forum.mysensors.org/topic/7841/relay-actuator-send-periodic-status-as-heart-beat

      https://forum.mysensors.org/topic/6948/synchronising-light-switch/2

      posted in Feature Requests
      JeeLet
      JeeLet
    • RE: What could be the possible reasons for MySensors sensors not working with MyController on Raspberry Pi, and how can one troubleshoot and resolve the issue?

      Hello

      what type of architecture do you use ?

      (an example)
      bus....... = Nodes <--- ? ---> Gateway <--- Usb ---> Controller
      material = Atmega ..............arduinoUno.................Raspy4
      software = MyS2.3.............MyS2.3 ....................Ubuntu/MyC2.x

      ?= RF RFM RS

      posted in NodeManager
      JeeLet
      JeeLet
    • RE: Mysensors et dual Bus

      view
      Thank you for the link
      I'll head in that direction
      feedback after testing

      posted in Jeedom
      JeeLet
      JeeLet
    • RE: ACK -aka ECHO beeing missed by Serial Gateway with RF24 radios. V2.3.2

      Waiting

      "Waiting using the Arduino delay() command is not a good idea. " ... https://www.mysensors.org/download/sensor_api_20

      utili:
      https://forum.mysensors.org/topic/10386/what-is-the-good-wait-time
      https://forum.mysensors.org/topic/9099/does-gateway-loop-required-wait-or-delay

      posted in Bug Reports
      JeeLet
      JeeLet
    • RE: CAN bus transport implementation

      The original idea was: how to check the status of the CAN bus.

      . is there any dialogue ?
      . are there any messages?

      of course this can be done with MySensors.

      But to get as close as possible to the communication channel (the CAN bus) I thought it was easy to do.

      this is by reading the post of bricoleau here
      text french
      that the idea came to me.

      • on the arduino have a blinking led to say that the CAN bus is out of order (but we forget, it loads the program unnecessarily)

      and also because you suggested it to me
      yes we have to beat the iron when it is hot, and my time available for the computer will soon be reduced (purchase and work of a house)

      I appreciate very much your explanatory note, thank you

      I activated the 16Mhz in the sketch, and put it back in the library

        #define MY_NODE_ID 57          /*Node en ID static*/
      
        #define MY_CAN
        #define CAN_CLOCK MCP_16MHZ
      
      posted in Development
      JeeLet
      JeeLet
    • RE: 💬 Real Time Clock Module, LCD Display and Controller Time

      good evening

      again a new sketch for the "void receiveTime" function
      (without RTC clock)

      • start synchronization with the controller and regularly for the drift of the arduino.
      • display time and date on an OLED screen
      • error message when a loss of communication with the controller occurs

      a video "https://www.casimages.com/v/RSWTNb-vokoscreen-2022-05-24-19-33-49.mp4.html"

      /*
       * LIBRAIRIE:
       *  MySensors v2    : https://github.com/mysensors/MySensors
       *  TimeLib.h       : https://github.com/PaulStoffregen/Time
       *  SSD1306Ascii.h  : https://github.com/greiman/SSD1306Ascii
       *
       * MATERIEL:
       *    Arduino Uno
       *    -Afficheur OLED 0,96" I2C TF052 / circuit SSD1306.
       *    bus TTLModule RS485
       * 
       * REVISION HISTORY
       *  base de Henrik Ekblad 2013-2015 et autres :)
       *  ajout bus RS485 et OLED
       * 
       * DESCRIPTION
       *  demander Date et Heure au  contrôleur et l'affiche sur ecran OLED 
       *  Request date and time from the controller and display it on OLED screen 
       *  
       *  Connectique i2c:
      *   Arduino :  A4   A5
      *   OLED    :  SDA  SCL
       *  
       */
      //-- The sketch uses 11932 bytes (36%) ----global variables use 839 bytes (40%)-----------
      //-
      //------------ 2022 ----------------------- Fonctionnelle avec MyC et MyS------------------- 
      
        //#define MY_DEBUG                  /*Enable debug prints to serial monitor*/
        #define MY_TRANSPORT_WAIT_READY_MS 3000  /*Timeout (ms) pour mis en Com.(0 pour aucun)*/
        #define MY_NODE_ID 22          /*Node en ID static*/
      
      /* ----- Module RS485 ----*/
        #define MY_RS485                  /*Apl du transport RS485 (protocol?)*/
        #define MY_RS485_DE_PIN 2         /*Cmd DE pin*/
        #define MY_RS485_BAUD_RATE 9600   /*Set RS485 baud rate to use*/
      //#define MY_RS485_HWSERIAL Serial1 /*pour port Serial autre*/
        
        #include "SSD1306Ascii.h"
        #include "SSD1306AsciiAvrI2c.h"
        
        #include <MySensors.h>  
        #include <TimeLib.h> 
      
        #define CHILD_ID 22       /* MyS numero du Node*/
      
        #define I2C_ADDRESS 0x3C                        /*i2c adresse*/
        
        #define RST_PIN -1  // Define proper RST_PIN if required.(oled)
         
        SSD1306AsciiAvrI2c oled;  //type de com oled
      
      //----- MyS ------
          bool timeReceived = false;  
          bool stateCom = false;
          unsigned long lastUpdate=0, lastRequest=0 , lastmillis = 0;
          unsigned long newTime = 0, oldTime = 0, ComTime = 6000;
      
      //---------------- SETUP ----------------------------
      
        void setup()  {  
      
      //--- OLED ----
        #if RST_PIN >= 0
          oled.begin(&Adafruit128x32, I2C_ADDRESS, RST_PIN);
        #else // RST_PIN >= 0
          oled.begin(&Adafruit128x32, I2C_ADDRESS);
        #endif // RST_PIN >= 0
      
          oled.setFont(Adafruit5x7);         /*font Oled*/
          // oled.setFont(font8x8);             //bien 
          // oled.setFont(Verdana12);           //grand
          // oled.setFont(fixed_bold10x15);     //tres grand   
          // oled.setFont(Arial_bold_14);       //grand sympa 
          oled.clear();
          }
      
      //--------------MySensors-------------
      
        void presentation()  {
          sendSketchInfo("Clock", "2.0");
          }
      
      //------------------ LOOP -----------------------
        void loop() {     
        
      // ---- MyS time --------  
        unsigned long now = millis();
        
         if (now-lastRequest > (ComTime)) {    
                      
            timeReceived = false;
            requestTime(receiveTime);   // Request time from controller. 
            lastRequest = now;
            }
          
      //----- Tempo Display Oled ----------
        if (now-lastUpdate > 10000) {  //10secondes
          lastUpdate = now;
         // Serial.print(" test lastmillis------------ display : "); 
         // Serial.println(timeReceived);
          updateDisplay();
          lastmillis = millis();
      
      
      //----- Stat Com ---
          if (timeReceived == 1) {   //En Com Controller stateCom
            ComTime = 480UL*1000UL;    // 480=8 minutes cycles for Control presence controller 
              }
          else  {           // Erreur Com Controller
            stateCom = false;
            ComTime = 60UL*1000UL;    // secondes for attempted reconnection to the controller 
           // Serial.println(" ----*** Erreur Com Controller *** ---- ");
            }
           }
         } //---Loop
      
       // -------------------- MyS --------------------------------
        void receiveTime(unsigned long controllerTime)   {   
         if (receiveTime) stateCom = true ; else stateCom = false;
          newTime = controllerTime;
          timeReceived = true;
          setTime(controllerTime); // apl pour TimeLib.h
          }
          
      //------------Gestion de l'affichage OLED---------------
        void updateDisplay() {
      
          oled.set1X();           //ligne Message
          oled.setCursor(2, 0);
          printStatDay () ;       // affiche jour de la semaine/poster day of the week
          //oled.print(day());
         
          oled.set2X();           //ligne Heures
          oled.setCursor(18,1);
          oled.print(hour());
          printDigits(minute());
          printDigits(second());
           
          oled.set1X();           // ligne jour mois Année / day month year
          oled.setCursor(35,3);
          oled.print(day());
          printDigitsDay(month());
          printDigitsDay(year());
         }
      
      //-------- Day displaying-------
        void printDigitsDay(int digitday) { //function for Day displaying "0" and separator "/" for day/month/year values
          oled.print("/");
            if(digitday < 10)
              oled.print('0');
              oled.print(digitday);
          }
      
      //-------- Time displaying-------
        void printDigits(int digits) {  //function for Time displaying "0" and separator ":" for hour:minute:sec values
          oled.print(":");
            if(digits < 10)
              oled.print('0');
              oled.print(digits);
          }
      
      //------ conversion date en texte (fonction weekday) et statu Com Controller -----------  
        void printStatDay () {   //function for display Day texte
      
          oled.invertDisplay(!(stateCom)); // inverse N/B Oled sur erreur Com
          if(stateCom == true) { oled.print("com  "); }    //com okai
          if(stateCom == false){ oled.print("Error"); }    //com Error
            // oled.print(stateCom);
              oled.print("  ");
            
         
          if(weekday() == 1) { oled.print("dimanche"); }  //Sunday
          if(weekday() == 2) { oled.print("lundi"); }     //Monday
          if(weekday() == 3) { oled.print("mardi"); }     //Tuesday
          if(weekday() == 4) { oled.print("mercredi"); }  //Wednesday
          if(weekday() == 5) { oled.print("jeudi"); }     //Thursday
          if(weekday() == 6) { oled.print("vendredi"); }  //Friday
          if(weekday() == 7) { oled.print("samedi"); }    //Saturday
      
           oled.print(" ");
           oled.print(day());
         }
      
      //-------------------FIN PGM --------------------------
      
      //------------------- INFO -------------------
      

      why open a new post, there is still some space here 🙂

      posted in Announcements
      JeeLet
      JeeLet

    Latest posts made by JeeLet

    • RE: MySensors Gateway on OrangePi 5

      search : MyHwLinuxGeneric.h parentheses declaration [-Wvexing-parse]

      ??? https://stackoverflow.com/questions/21624880/how-does-this-declaration-invoke-the-most-vexing-parse ???

      posted in Development
      JeeLet
      JeeLet
    • RE: What could be the possible reasons for MySensors sensors not working with MyController on Raspberry Pi, and how can one troubleshoot and resolve the issue?

      So @Greg-Bowers .... you found the flaw?

      hello @jkandasa
      ..... a little parenthesis!
      ( what's new in MyC 🙂 )

      https://github.com/mycontroller-org/server/releases/tag/development

      posted in NodeManager
      JeeLet
      JeeLet
    • RE: Send message to all nodes

      I searched on the forum how to use ID255 but found nothing practical

      https://forum.mysensors.org/topic/8941/mysensors-get-temperature-value-from-another-node-through-the-gateway?_=1684325843882&lang=fr

      https://github.com/mysensors/MySensors/blob/development/examples/PingPongSensor/PingPongSensor.ino

      posted in Development
      JeeLet
      JeeLet
    • RE: What could be the possible reasons for MySensors sensors not working with MyController on Raspberry Pi, and how can one troubleshoot and resolve the issue?

      how to find a communication problem on a channel?
      the solution is to check each link.

      on the gateway : https://www.mysensors.org/build/advanced_gateway

      add leds or a single one to visualize the dialog # Radio Traffic LEDs
      (this function can also be used on a node )

      on the gateway a dummy/virtual value can be created to simulate a probe (the result will tell us if the gateway is not at fault

      posted in NodeManager
      JeeLet
      JeeLet
    • RE: Send message to all nodes

      additional information may not be useful

      "Debug messages are sent to child ID 255"
      https://github.com/mysensors/MySensors/blob/2.3.1/MyConfig.h#L77

      posted in Development
      JeeLet
      JeeLet
    • RE: What could be the possible reasons for MySensors sensors not working with MyController on Raspberry Pi, and how can one troubleshoot and resolve the issue?

      Hello

      what type of architecture do you use ?

      (an example)
      bus....... = Nodes <--- ? ---> Gateway <--- Usb ---> Controller
      material = Atmega ..............arduinoUno.................Raspy4
      software = MyS2.3.............MyS2.3 ....................Ubuntu/MyC2.x

      ?= RF RFM RS

      posted in NodeManager
      JeeLet
      JeeLet
    • RE: debug serial gateway (homeassistant raspberry py 4)

      "harmonic disturbance" https://www.electronics-tutorials.ws/accircuits/harmonics.html
      (wired or wireless )

      yes a problem more and more frequent with the saturation of the hertzian frequencies

      posted in Feature Requests
      JeeLet
      JeeLet
    • RE: debug serial gateway (homeassistant raspberry py 4)

      which controller you use ? : https://www.mysensors.org/controller

      congratulations for having found the solution

      posted in Feature Requests
      JeeLet
      JeeLet
    • RE: debug serial gateway (homeassistant raspberry py 4)

      have a language translation problem or a bad formulation of me.

      my question was what kind of gateway you used, but yes your solution is good.

      but the solution that is "the linux terminal of raspi" to read the Logs is the best.

      In my case my controller puts the logs in /opt/apps/mycontroller, reading the file gives useful information, but of course it's better with the options enabled in the gateway
      #define MY_DEBUG
      // #define MY_SPECIAL_DEBUG //maybe also ? (see the utility?)

      Translated with www.DeepL.com/Translator (free version)

      posted in Feature Requests
      JeeLet
      JeeLet
    • RE: debug serial gateway (homeassistant raspberry py 4)

      Hello

      "I changed my wireles gateway (Wemos-D1 Mini) to serial. "... yes but what is it?
      Arduino Usb Gateway?

      reading the log files can be useful, their location is different depending on the system.

      some info :
      https://www.mysensors.org/build/debug
      https://www.mysensors.org/build/parser

      posted in Feature Requests
      JeeLet
      JeeLet