Navigation

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

    jlb

    @jlb

    2
    Reputation
    5
    Posts
    77
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location Aix en provence, France

    jlb Follow

    Best posts made by jlb

    • RE: Sleep

      Thanks
      I will try

      posted in Development
      jlb
      jlb
    • RE: !MCO:PRO:RC=1

      @mfalkvidd
      actually the sketch calls sense () from the inside of receive ()

      void receive(const MyMessage &message) {
        
        if (message.isAck()) {
          ack = true;   //Serial.println("This is an ack from gateway");
        }
      
        else  {
          if (message.type == V_VAR1 && message.sensor == child_id_watchdog) {           // watchdog 
            watchdog = message.getLong();                                                // recoit nouvelle valeur watchdog de jeedom toutes les minutes
            dateDernierChangement = millis();
            jeton=!jeton;
            send_state(10,jeton);
          }
          if (message.type == V_STATUS && message.sensor == child_id_salle_manger) {          
            etat_salle_manger = message.getBool();  
            time_out_salle_manger = millis();
          }
          if (message.type == V_STATUS && message.sensor == child_id_sejour) {     
      

      I didn't know you shouldn't do it
      I moved it to void loop () and everything works perfectly

      void receive(const MyMessage &message) {
        
        if (message.isAck()) {
          ack = true;   //Serial.println("This is an ack from gateway");
        }
      
        else  {
          if (message.type == V_VAR1 && message.sensor == child_id_watchdog) {           // watchdog 
            watchdog = message.getLong();                                                // recoit nouvelle valeur watchdog de jeedom toutes les minutes
            dateDernierChangement = millis();
            watchdog_recu=true;                // sert pour envoyer jeton a jeedom
          }
      
      in the void loop()
      
      if (watchdog_recu == true)  {
          watchdog_recu = false;
          jeton=!jeton;
          send_state(10,jeton);   // envoi jeton à jeedom pour indiquer que la comm est ok
        }
      

      thanks again for your help so fast

      I wish you a happy new year from Aix en Provence (France)
      Jean-luc

      posted in Troubleshooting
      jlb
      jlb

    Latest posts made by jlb

    • Radio stops working

      Hello,
      (arduino + NRF24L01+)
      I have a node which only works in reception.
      Its role is to control a 220Vac power relay.
      A few times when the relay is switched, i think the radio stops working (certainly due to electromagnetic disturbance).
      From this moment the arduino sketch still works but the node no longer responds to the gateway.

      How to make the node detect this radio problem ?
      How do I get my sketch to do a cold restart of the radio ?

      Thanks for your help.
      Jean-luc

      posted in Troubleshooting
      jlb
      jlb
    • RE: !MCO:PRO:RC=1

      @mfalkvidd
      actually the sketch calls sense () from the inside of receive ()

      void receive(const MyMessage &message) {
        
        if (message.isAck()) {
          ack = true;   //Serial.println("This is an ack from gateway");
        }
      
        else  {
          if (message.type == V_VAR1 && message.sensor == child_id_watchdog) {           // watchdog 
            watchdog = message.getLong();                                                // recoit nouvelle valeur watchdog de jeedom toutes les minutes
            dateDernierChangement = millis();
            jeton=!jeton;
            send_state(10,jeton);
          }
          if (message.type == V_STATUS && message.sensor == child_id_salle_manger) {          
            etat_salle_manger = message.getBool();  
            time_out_salle_manger = millis();
          }
          if (message.type == V_STATUS && message.sensor == child_id_sejour) {     
      

      I didn't know you shouldn't do it
      I moved it to void loop () and everything works perfectly

      void receive(const MyMessage &message) {
        
        if (message.isAck()) {
          ack = true;   //Serial.println("This is an ack from gateway");
        }
      
        else  {
          if (message.type == V_VAR1 && message.sensor == child_id_watchdog) {           // watchdog 
            watchdog = message.getLong();                                                // recoit nouvelle valeur watchdog de jeedom toutes les minutes
            dateDernierChangement = millis();
            watchdog_recu=true;                // sert pour envoyer jeton a jeedom
          }
      
      in the void loop()
      
      if (watchdog_recu == true)  {
          watchdog_recu = false;
          jeton=!jeton;
          send_state(10,jeton);   // envoi jeton à jeedom pour indiquer que la comm est ok
        }
      

      thanks again for your help so fast

      I wish you a happy new year from Aix en Provence (France)
      Jean-luc

      posted in Troubleshooting
      jlb
      jlb
    • !MCO:PRO:RC=1

      Hello

      !MCO:PRO:RC=1 what does it mean?

      23:24:04.518 -> 710797 TSF:MSG:READ,0-0-31,s=9,c=1,t=24,pt=0,l=2,sg=0:62
      23:24:04.518 -> 710802 TSF:MSG:ECHO REQ
      23:24:04.518 -> 710806 TSF:MSG:SEND,31-31-0-0,s=9,c=1,t=24,pt=0,l=2,sg=0,ft=0,st=OK:62
      23:24:04.518 -> 710814 TSF:MSG:SEND,31-31-0-0,s=10,c=1,t=2,pt=2,l=2,sg=0,ft=0,st=OK:0
      23:24:04.518 -> 710820 !MCO:PRO:RC=1
      23:24:04.518 -> 710822 !MCO:PRO:RC=1
      23:24:04.518 -> 710824 !MCO:PRO:RC=1
      23:24:04.518 -> 710827 !MCO:PRO:RC=1
      23:24:04.518 -> 710830 TSF:MSG:READ,0-0-31,s=10,c=1,t=2,pt=2,l=2,sg=0:0
      23:24:04.518 -> 710835 TSF:MSG:ECHO
      23:24:41.714 -> 748047 TSF:MSG:SEND,31-31-0-0,s=0,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:51.6
      23:24:41.714 -> 748058 TSF:MSG:READ,0-0-31,s=0,c=1,t=0,pt=7,l=5,sg=0:51.6
      23:24:41.714 -> 748063 TSF:MSG:ECHO
      

      Thanks for your help
      Jean-luc

      posted in Troubleshooting
      jlb
      jlb
    • RE: Sleep

      Thanks
      I will try

      posted in Development
      jlb
      jlb
    • Sleep

      Hello,
      My node go sleep by "sleep(digitalPinToInterrupt(DIGITAL_INPUT_SENSOR), CHANGE, SLEEP_TIME);"
      But when is wakeup
      how to know the trigger ? (digital_input or sleep_time)

      Thanks for your help.

      Jean-luc

      posted in Development
      jlb
      jlb