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
J

jlb

@jlb
About
Posts
5
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Radio stops working
    J jlb

    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

    Troubleshooting

  • !MCO:PRO:RC=1
    J jlb

    @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

    Troubleshooting

  • !MCO:PRO:RC=1
    J jlb

    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

    Troubleshooting

  • Sleep
    J jlb

    Thanks
    I will try

    Development

  • Sleep
    J jlb

    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

    Development
  • Login

  • Don't have an account? Register

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