Navigation

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

    fakeJake

    @fakeJake

    0
    Reputation
    31
    Posts
    510
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    fakeJake Follow

    Best posts made by fakeJake

    This user hasn't posted anything yet.

    Latest posts made by fakeJake

    • RE: Newbie Problem! Get Started with NRF24L01+

      Is it ok to have two gateways?

      posted in Development
      fakeJake
      fakeJake
    • RE: Newbie Problem! Get Started with NRF24L01+

      @hek Thank you! I will try it as soon as I go home. Can you tell me what is the expected output from the gateway if I use static id 2 for a relayActuator that I turned on?

      will it be just "2;1;1;0;2;1" or will "2;255;x;x;x;x" appear? only the read/send data is hidden

      posted in Development
      fakeJake
      fakeJake
    • RE: Newbie Problem! Get Started with NRF24L01+

      @hek can you please help me on what should I comment out?

      posted in Development
      fakeJake
      fakeJake
    • RE: Newbie Problem! Get Started with NRF24L01+

      Should I post my new question on another board?

      Re: s there a way to receive only the last state of the sensors/actuators in the serial?

      posted in Development
      fakeJake
      fakeJake
    • RE: Newbie Problem! Get Started with NRF24L01+

      @Stric Removed it but still the read and send appears

      posted in Development
      fakeJake
      fakeJake
    • RE: Newbie Problem! Get Started with NRF24L01+

      I placed if statement in serial function inside MyGateway.cpp
      where 0 is the gateway address

      void MyGateway::serial(MyMessage &msg) {
        if (msg.sender != 0); serial(PSTR("%d;%d;%d;%d;%d;%s\n"),msg.sender, msg.sensor, mGetCommand(msg), mGetAck(msg), msg.type, msg.getString(convBuf));
      }
      

      Still it doesnt work.

      Heres the format:

          msg.sender = GATEWAY_ADDRESS;
      	msg.destination = destination;
      	msg.sensor = sensor;
      	msg.type = type;
      	mSetCommand(msg,command);
      	mSetRequestAck(msg,ack?1:0);
      	mSetAck(msg,false);
      	if (command == C_STREAM)
      		msg.set(bvalue, blen);
      	else
      		msg.set(value);
      
      posted in Development
      fakeJake
      fakeJake
    • RE: Newbie Problem! Get Started with NRF24L01+

      Is there a way to receive only the last state of the sensors/actuators in the serial?

      instead of:

      0;0;3;0;9;read: 2-2-0 s=1,c=1,t=2,pt=2,l=2:1
      0;0;3;0;9;send: 0-0-2-2 s=1,c=1,t=2,pt=2,l=2,st=ok:1
      2;1;1;0;2;1
      

      it only print the "2;1;1;0;2;1" on the serial

      posted in Development
      fakeJake
      fakeJake
    • RE: Newbie Problem! Get Started with NRF24L01+

      @rvendrame You know what. I'm really thankful for you help and I'm really sorry for dragging you with me. I can turn the light on now. I just have to print "2;1;1;1;2;0;" instead of "2;1;1;1;2;1".

      I will check if I will encounter any problem because of my relay module.
      Again, thank you so much for your help. And I'm really sorry.

      posted in Development
      fakeJake
      fakeJake
    • RE: Newbie Problem! Get Started with NRF24L01+

      @rvendrame My relay is more like this http://www.elecdesignworks.com/images/stories/virtuemart/product/img_62112.jpg

      Thank you for your reference.
      It has a transistor. I hope it's ok to use. I have tested it by following an instructable.

      posted in Development
      fakeJake
      fakeJake