Navigation

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

    lodewyk

    @lodewyk

    0
    Reputation
    2
    Posts
    502
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    lodewyk Follow

    Best posts made by lodewyk

    This user hasn't posted anything yet.

    Latest posts made by lodewyk

    • RE: Message acknowledgements hoot

      @hek It unfortunately did not work 😞

      Thanks for the help so far. I'll have to leave this for another day.

      posted in Troubleshooting
      lodewyk
      lodewyk
    • RE: Message acknowledgements hoot

      @hek gw.sendBatteryLevel(batteryPcnt,true);

      posted in Troubleshooting
      lodewyk
      lodewyk
    • RE: Message acknowledgements hoot

      @hek Thank you, this is useful. This was my first assumption but I don't receive any ack callback at the sensor end and thought I had to handle ack explicitly at the gateway side. I’ve implemented my own node.js gateway using the serial gateway sketch .

      After more debugging I can actually see the ack arriving at the sensor but my callback still don’t get fired. I am calling gw.process() in the program loop and my callback look as follow.

      void incomingMessage(const MyMessage &message) {
      Serial.println("Got message");
      if (message.isAck()) {
      Serial.println("This is an ack from gateway");
      }
      }

      mysensor gateway begin code:

      gw.begin(incomingMessage, 4, false, 0, RF24_PA_LEVEL, RF24_CHANNEL, RF24_DATARATE);

      Debug after firing a battery update:
      send: 4-4-0-0 s=255,c=3,t=0,pt=1,l=1,st=ok:102
      read: 0-0-4 s=255,c=3,t=0,pt=1,l=1:102 <----- I assume this is the ack

      Any suggestions?

      Thanks

      posted in Troubleshooting
      lodewyk
      lodewyk
    • Message acknowledgements hoot

      Hi guys.

      I’m trying to get acknowledgements to work and need some guidance.

      First of all, are there any code examples or information on this that I’ve missed? I can’t seem to find any real information apart from what’s in the API doc.

      Secondly to my specific problem, I’ve enabled message ack as the in code fragments below but still getting messages at the gateway end with ack flag set to 0.

      Code:
      gw.send(msg.set(value==HIGH ? 1 : 0),true);
      or
      gw.sendBatteryLevel(batteryPcnt,true);

      but still only getting the following messages without ack enabled (4;3;1;0;16;1
      and 4;255;3;0;6;0)

      Below is the documented serial protocol
      node-id;child-sensor-id;message-type;ack;sub-type;payload

      Am I missing something?

      It will be great if someone can point me in the right direction

      Thanks

      posted in Troubleshooting
      lodewyk
      lodewyk
    • RE: 1.4 Beta

      @DAMME and @HEK

      Thanks , very helpful.

      I got so occupied with the commands and never thought about the sensor code.

      Thanks

      posted in Announcements
      lodewyk
      lodewyk
    • RE: 1.4 Beta

      Hi guys,

      I just got relays working with but struggling requesting a variable value on Beta 1.4.

      My set variable commands looks as follow.

      Switching On - > 1;1;1;0;2;1 (work as expected)
      Off -> 1;1;1;0;2;0 (work as expected)

      Request variable for the same relay -> 1;1;2;0;2; (sets the relay to 0 ???)

      Can someone confirm if my request variable command is correct and if not what should it be?

      Thanks

      posted in Announcements
      lodewyk
      lodewyk