Navigation

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

    ebo

    @ebo

    1
    Reputation
    5
    Posts
    428
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    ebo Follow

    Best posts made by ebo

    • RE: sleep with timer and level interrupt

      ok, that make things clear!
      I will give that a try.

      Thanks so far.

      posted in Development
      ebo
      ebo

    Latest posts made by ebo

    • RE: MyNodes.NET moving to node.js.

      Hi @derwish

      What is the current status about the project to node.js?
      still moving?

      posted in MyNodes.NET
      ebo
      ebo
    • nodecmu gateway every message sent in error

      Hi,

      I'm using a esp8266 with the Mysensors code to use it as a gateway.
      It receives messages from a node, and is sending them to the controller.
      so far it look ok.

      when logging the gateway I see the following:
      0;255;3;0;9;Client 0: 0;0;3;0;18;PING
      0;255;3;0;9;TSP:MSG:READ 4-4-0 s=3,c=1,t=0,pt=7,l=5,sg=0:20.0
      0;255;3;0;9;TSP:MSG:ACK msg
      0;255;3;0;9;!TSP:MSG:SEND 0-0-4-4 s=3,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=fail:20.0
      0;255;3;0;9;TSP:MSG:READ 4-4-0 s=2,c=1,t=1,pt=7,l=5,sg=0:44.0
      0;255;3;0;9;TSP:MSG:ACK msg
      0;255;3;0;9;!TSP:MSG:SEND 0-0-4-4 s=2,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=fail:44.0
      0;255;3;0;9;Client 0: 0;0;3;0;18;PING
      0;255;3;0;9;Client 0: 0;0;3;0;18;PING
      0;255;3;0;9;TSP:SANCHK:OK
      0;255;3;0;9;Client 0: 0;0;3;0;18;PING

      so, it looks that all the messages are sent in error?
      What could be wrong?
      Also on the node I don't see any ack messages.

      Regards,
      Edward

      posted in Troubleshooting
      ebo
      ebo
    • RE: sleep with timer and level interrupt

      ok, that make things clear!
      I will give that a try.

      Thanks so far.

      posted in Development
      ebo
      ebo
    • RE: sleep with timer and level interrupt

      I did already, but none is implementing the time and the level interrupt with falling.
      could be that I'm not understanding it right... 😉

      if I use the sleep function with level interrupt I can not specify the function to run when awaking from the level interrupt.
      maybe i'm missing something?
      in my current sketch with only level interrupt I have the following:

      void enterSleep(void)
      {
      
      	/* Setup tipInterrupt as an interrupt and attach handler. */
      	attachInterrupt(tipInterrupt, awake, FALLING);
      	delay(100);
      	set_sleep_mode(SLEEP_MODE_PWR_DOWN);
      	sleep_enable();
      	sleep_mode();
      	/* The program will continue from here. */
      	sleep_disable();
      }
      
      
      void awake(void)
      {
      	detachInterrupt(tipInterrupt);
      	tipCount++;
      	attachInterrupt(tipInterrupt, tip, FALLING);
      	tipped = true;
      }
      
      

      how to convert this to mysensors sleep with a timer?
      Thanks,
      Edward

      posted in Development
      ebo
      ebo
    • sleep with timer and level interrupt

      Hi,

      I have a question on how to use the sleep with the timer and with a level interrupt.

      I want to use a level interrupt to catch a tipping bucket
      and want to do periodic checks (battery, temperature, etc)

      I''m looking at the sleep function from mysensors, but could not find a way to catch the level interrupt when it is falling.
      also I need to do some debouncing..

      What is your advice?
      Regards,
      Edward

      posted in Development
      ebo
      ebo