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
  1. Home
  2. Bug Reports
  3. Heartbeat Gateway

Heartbeat Gateway

Scheduled Pinned Locked Moved Bug Reports
9 Posts 3 Posters 1.3k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello,
    this is my first post.
    I have an Arduino Nano clone with an ethernet module working as stand-alone gateway. No node is connected. Everything works fine except the sendHeartbeat(); function.
    I want to send every 5 minutes a heartbeat to the controller. In my case FHEM. But analysing with MYSController, no heartbeat is sent. Everything before and after ‘sendHeartbeat();’ is sent, but no heartbeat.
    Is this a bug? Or should only the nodes send a heartbeat directly to the controller?
    Thank you!
    Regards

    tekkaT 1 Reply Last reply
    0
    • ? A Former User

      Hello,
      this is my first post.
      I have an Arduino Nano clone with an ethernet module working as stand-alone gateway. No node is connected. Everything works fine except the sendHeartbeat(); function.
      I want to send every 5 minutes a heartbeat to the controller. In my case FHEM. But analysing with MYSController, no heartbeat is sent. Everything before and after ‘sendHeartbeat();’ is sent, but no heartbeat.
      Is this a bug? Or should only the nodes send a heartbeat directly to the controller?
      Thank you!
      Regards

      tekkaT Offline
      tekkaT Offline
      tekka
      Admin
      wrote on last edited by
      #2

      @sirben Welcome to MySensors! When talking about the heartbeat output - are you referring to the serial debug or tcp/ip output?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Hello again,
        thank you.
        I am talking about the tcp/ip output.
        Checked with MYSController connected via IP address.
        I also tried the Arduino Serial Monitor. But I don’t know how to geht the raw data, which have been send (for example heartbeat output).
        Maybe, because no heartbeat is sent?
        Thanks for your help!
        Regards

        tekkaT 1 Reply Last reply
        0
        • rejoe2R Offline
          rejoe2R Offline
          rejoe2
          wrote on last edited by
          #4

          Pretty strange symptoms.
          Do you have the option to connect the GW via USB to check if you get the heartbeat messages there?

          Then we could try to dig deeper into that, if you get this message type over serial also. I'm pretty sure other type of GW's work at least closer to your expectations: I myself have different serial GW's and there's no issue in FHEM to request heartbeats from controller side.
          Most likely also WLAN-GW's work as expected in this aspect, as FHEM-user Sidey, who has contributed the code for checking, if a GW is still connected, used heartbeat-requests for that purpose, and he's using ESP8266-based GW's.
          So most likely this problem is limited to Ethernet GW's.

          Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

          1 Reply Last reply
          0
          • ? A Former User

            Hello again,
            thank you.
            I am talking about the tcp/ip output.
            Checked with MYSController connected via IP address.
            I also tried the Arduino Serial Monitor. But I don’t know how to geht the raw data, which have been send (for example heartbeat output).
            Maybe, because no heartbeat is sent?
            Thanks for your help!
            Regards

            tekkaT Offline
            tekkaT Offline
            tekka
            Admin
            wrote on last edited by tekka
            #5

            @sirben ok, this feature is currently disabled for GW-only with disabled transport network. I'll prepare a code update: https://github.com/mysensors/MySensors/pull/1273

            ? 1 Reply Last reply
            2
            • tekkaT tekka

              @sirben ok, this feature is currently disabled for GW-only with disabled transport network. I'll prepare a code update: https://github.com/mysensors/MySensors/pull/1273

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @tekka WOW, thanks a lot! That was fast. How can I modify the library on my local machine to have the functionality?
              @rejoe2 I also send a heartbeat-request with MYSController to the GW and the GW was responding.
              I send via MYSController 0;255;3;0;18; and received 0;255;3;0;14; and all the other presentation messages.
              It seems, that the function sendHeartbeat() is deactivated like tekka said.

              tekkaT rejoe2R 2 Replies Last reply
              0
              • ? A Former User

                @tekka WOW, thanks a lot! That was fast. How can I modify the library on my local machine to have the functionality?
                @rejoe2 I also send a heartbeat-request with MYSController to the GW and the GW was responding.
                I send via MYSController 0;255;3;0;18; and received 0;255;3;0;14; and all the other presentation messages.
                It seems, that the function sendHeartbeat() is deactivated like tekka said.

                tekkaT Offline
                tekkaT Offline
                tekka
                Admin
                wrote on last edited by
                #7

                @sirben You can download the library here: https://github.com/tekka007/MySensors/tree/GWonlyHeartbeat

                1 Reply Last reply
                0
                • ? A Former User

                  @tekka WOW, thanks a lot! That was fast. How can I modify the library on my local machine to have the functionality?
                  @rejoe2 I also send a heartbeat-request with MYSController to the GW and the GW was responding.
                  I send via MYSController 0;255;3;0;18; and received 0;255;3;0;14; and all the other presentation messages.
                  It seems, that the function sendHeartbeat() is deactivated like tekka said.

                  rejoe2R Offline
                  rejoe2R Offline
                  rejoe2
                  wrote on last edited by
                  #8

                  @rejoe2 I also send a heartbeat-request with MYSController to the GW and the GW was responding.
                  I send via MYSController 0;255;3;0;18; and received 0;255;3;0;14; and all the other presentation messages.

                  Ok, there's one possible additional thing you might test in FHEM: Most likely the heartbeat request is published under childID 0, not as in MYSController as broadcast (255). For testing, you might add

                  childID => 255, 
                  

                  somewhere in the get function (sendClientMessage(), at around line 356).
                  For all other Nodes, also childID 0 seems not to be an issue.

                  Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #9

                    Hi @all
                    I modified the MySensorsCore.cpp as tekka did on Github.
                    Now my sendHeartbeat() is received by FHEM and it is working fine!
                    Thanks a lot to all!
                    @rejoe2
                    I just tested to send with MYSController 0;0;3;0;18; and the Gateway was answering like before.

                    1 Reply Last reply
                    2
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    24

                    Online

                    11.7k

                    Users

                    11.2k

                    Topics

                    113.1k

                    Posts


                    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                    • Login

                    • Don't have an account? Register

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