Navigation

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

    OnBokBeach

    @OnBokBeach

    1
    Reputation
    2
    Posts
    202
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    OnBokBeach Follow

    Best posts made by OnBokBeach

    • RE: Is it possible to request an ACK from the controller?

      @hek Thanks for the quick reply.
      Now that I understand that things are operating as intended it is not really an issue. The serial GW appears to be very reliable and I plan to have it and the controller on a UPS. From my perspective, I'll treat the GW as part of the controller. Providing the controller is reliable then I'm OK....

      On a side note, in your other posts you point to your example which uses the ACK to set the relay. Although this is very elegant it does not suit my case where I want the relays to be stand alone such that they continue to operate the lights, extractor fan,etc. when the GW/controller is down. This is way more important (to me) than the possibility of the controller getting out of sync occasionally. I have been considering using Z-Wave for some of the relays but there does seem to be plenty of issues with that protocol .... sigh!

      @mfalkvidd Thank you for the link. Unfortunately my searching skills aren't too good...it's an age thing 😉
      I agree that documentation is the important thing here. If we understand how the protocols work then we can live within their limitations. MySensors already does way more then I expected and way easier too. If I have to use some Z-Wave or even hard wire something, it's no big deal (well now that Domoticz, OpenHAB, etc. can bring them all together). Well that's my theory for now 😉

      Cheers
      Chris

      posted in General Discussion
      OnBokBeach
      OnBokBeach

    Latest posts made by OnBokBeach

    • RE: Is it possible to request an ACK from the controller?

      @hek Thanks for the quick reply.
      Now that I understand that things are operating as intended it is not really an issue. The serial GW appears to be very reliable and I plan to have it and the controller on a UPS. From my perspective, I'll treat the GW as part of the controller. Providing the controller is reliable then I'm OK....

      On a side note, in your other posts you point to your example which uses the ACK to set the relay. Although this is very elegant it does not suit my case where I want the relays to be stand alone such that they continue to operate the lights, extractor fan,etc. when the GW/controller is down. This is way more important (to me) than the possibility of the controller getting out of sync occasionally. I have been considering using Z-Wave for some of the relays but there does seem to be plenty of issues with that protocol .... sigh!

      @mfalkvidd Thank you for the link. Unfortunately my searching skills aren't too good...it's an age thing 😉
      I agree that documentation is the important thing here. If we understand how the protocols work then we can live within their limitations. MySensors already does way more then I expected and way easier too. If I have to use some Z-Wave or even hard wire something, it's no big deal (well now that Domoticz, OpenHAB, etc. can bring them all together). Well that's my theory for now 😉

      Cheers
      Chris

      posted in General Discussion
      OnBokBeach
      OnBokBeach
    • Is it possible to request an ACK from the controller?

      I'm just another nubie at home automation, Arduinos and certainly MySensors.

      Thanks for the MySensors software.... sure makes it simple compared to what I was attempting to do...

      I'm using MySensors 2.0.0-beta and the serial gateway to Domoticz.

      I'm creating (yet another variant) of the relay sketch. I'm not using signing but otherwise I'm trying to make this robust. Everything seems to be working fine but I have concerns relating to how I should handle ACKs.

      Domoticz always seems to request an ACK when it sets a switch. So when Domoticz sends a command to turn a relay ON|OFF, MySensors internally sends back an ACK. Too easy!

      The problem I face, is how to request an ACK from the controller when my sketch sends a status update? Initially I thought that I could simply test the return value of the send() call. However, it appears that this simply indicates that the message successfully made the next hop (and not its destination). My sketch sets the request ACK flag in the message but an ACK can never be returned because the serial protocol doesn't allow it to be passed through to the controller. The way I see it, it is a one way street. Have I missed something really basic?

      It seems to me that when controlling actuators, ACKs are necessary yet I cannot see how they can be sent both ways.

      Can anyone shed some light on this.

      Thanks
      Chris

      posted in General Discussion
      OnBokBeach
      OnBokBeach