Navigation

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

    Pavel Larkin

    @Pavel Larkin

    0
    Reputation
    3
    Posts
    312
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Pavel Larkin Follow

    Best posts made by Pavel Larkin

    This user hasn't posted anything yet.

    Latest posts made by Pavel Larkin

    • switch is not working when gateway is unavailable

      Hello!

      Could you point me to - how to deal with situation, when Gateway goes down (raspberry pi which does a lot of stuff..) - and the sensor is left by himself alone?

      If the Nano, which acts like sensor (light switch) is restarted when Gateway is down - i can't operate my sensor. It just tells me:

      865584 !TSM:FPAR:NO REPLY
      865586 TSM:FPAR
      865623 TSF:MSG:SEND,3-3-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      867630 !TSM:FPAR:FAIL
      867632 TSM:FAIL:CNT=7
      867634 TSM:FAIL:PDT
      927637 TSM:FAIL:RE-INIT
      927639 TSM:INIT
      927646 TSM:INIT:TSP OK
      927648 TSF:SID:OK,ID=3
      927650 TSM:FPAR
      927687 TSF:MSG:SEND,3-3-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      929695 !TSM:FPAR:NO REPLY
      929697 TSM:FPAR
      929734 TSF:MSG:SEND,3-3-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      931741 !TSM:FPAR:NO REPLY
      931743 TSM:FPAR
      931780 TSF:MSG:SEND,3-3-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      933787 !TSM:FPAR:NO REPLY
      933789 TSM:FPAR
      933826 TSF:MSG:SEND,3-3-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      935833 !TSM:FPAR:FAIL
      935835 TSM:FAIL:CNT=7
      935837 TSM:FAIL:PDT
      

      Do i need to post the code? It's quite simple, beside all the preparation - here is how i switch lights On/Off:

           Serial.println("LED is on");
           digitalWrite(RELAY_PIN4, !digitalRead(RELAY_PIN4));
           #undef CHILD_ID
           #define CHILD_ID 4
            MyMessage msg(CHILD_ID,V_STATUS);
            send(msg.set(digitalRead(RELAY_PIN4)));
            saveState(CHILD_ID, state);
      

      To wrap it up - how should i program the sensor, so in case of gateway's outage, the system still would be functioning?

      Thankyou! 🙂

      posted in Hardware
      Pavel Larkin
      Pavel Larkin
    • RE: ENC28J60 Ethernet gateway problem with Domoticz?

      Same problem here.

      Sketch uses 25750 bytes (83%) of program storage space. Maximum is 30720 bytes.
      Global variables use 1292 bytes (63%) of dynamic memory, leaving 756 bytes for local variables. Maximum is 2048 bytes.
      Invalid version found: 1.04
      Invalid version found: 1.04

      Nano v3 + ENC28J60 Ethernet module + NRF24L01+

      Just an advice - where to dig? Is it hardware version which differs?

      Thank you!

      posted in Troubleshooting
      Pavel Larkin
      Pavel Larkin
    • RE: 💬 Air Humidity Sensor - DHT

      Hello. Maybe someone could help 🙂 hopefully..
      I have arduino1 with 1 DHT22, which is over arduinoGW connected to RSPi with latest domoticz.
      when i connect stuff up, after some time i see some strange childids, not related to this arduino1 in no way.
      Lots of unknown!, with V_TEMP values, with V_HUM values, even V_FORECAST, V_PRESSURE and etc. which arduino1 should not send (or no other arduino on my area).

      Illustration:
      <img href="http://www.lstudio.lt/wp-content/uploads/dht22problem.png">
      http://www.lstudio.lt/wp-content/uploads/dht22problem.png

      my code is quite simple (for ex only temperature is shown)

      #define CHILD_DESCR "TEMP3"
      #undef CHILD_ID
      #define CHILD_ID 31
      present(CHILD_ID, S_TEMP, CHILD_DESCR);
      delay(250) ;
      
      loop:
      
        temp3=dht3.readTemperature();
      
      if (temp3 >= 120) {temp3 = lasttemp3;}
      if (temp3 <= -50) {temp3 = lasttemp3;}
      MyMessage msg31(CHILD_ID,V_TEMP);
      send(msg31.set(temp3,1));
      

      so.. that is basically all

      posted in Announcements
      Pavel Larkin
      Pavel Larkin