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
L

lodewyk

@lodewyk
About
Posts
8
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Message acknowledgements hoot
    L lodewyk

    @hek It unfortunately did not work :-(

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

    Troubleshooting

  • Message acknowledgements hoot
    L lodewyk

    @hek gw.sendBatteryLevel(batteryPcnt,true);

    Troubleshooting

  • Message acknowledgements hoot
    L lodewyk

    @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

    Troubleshooting

  • Message acknowledgements hoot
    L lodewyk

    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

    Troubleshooting

  • 1.4 Beta
    L lodewyk

    @DAMME and @HEK

    Thanks , very helpful.

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

    Thanks

    Announcements 1.4beta help

  • 1.4 Beta
    L lodewyk

    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

    Announcements 1.4beta help
  • Login

  • Don't have an account? Register

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