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. Troubleshooting
  3. Some issues about uplink available or no

Some issues about uplink available or no

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 744 Views 2 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.
  • S Offline
    S Offline
    sineverba
    Hardware Contributor
    wrote on last edited by sineverba
    #1

    Hi to all!
    Sometimes I have issues in home with gateway, that hangs until next restart.

    The nodes (several only transmitting temp/hum) seems hangs, they don't interest if I did restart or no the gateway//controller.

    I would implement some check of uplink available on the sketchs, on the loop. If uplink is available, transmit, if not, recheck.

    But... I don't know how to implement this check.

    Can you help me with this?

    My pseudocode could be:

    void loop() {
        bool is_available_uplink;
        is_available_uplink = getUplinkState();
        if (is_available_uplink) {
            // do stuff
        }
    }
    
    bool getUplinkState() {
    
        bool is_uplink_available = false;
       
        // check here the uplink
        return is_uplink_available;
    
    }
    

    Thank you to all!

    mfalkviddM 1 Reply Last reply
    0
    • S sineverba

      Hi to all!
      Sometimes I have issues in home with gateway, that hangs until next restart.

      The nodes (several only transmitting temp/hum) seems hangs, they don't interest if I did restart or no the gateway//controller.

      I would implement some check of uplink available on the sketchs, on the loop. If uplink is available, transmit, if not, recheck.

      But... I don't know how to implement this check.

      Can you help me with this?

      My pseudocode could be:

      void loop() {
          bool is_available_uplink;
          is_available_uplink = getUplinkState();
          if (is_available_uplink) {
              // do stuff
          }
      }
      
      bool getUplinkState() {
      
          bool is_uplink_available = false;
         
          // check here the uplink
          return is_uplink_available;
      
      }
      

      Thank you to all!

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      @sineverba you're probably looking for

      isTransportReady()
      

      See these threads for more details:
      https://forum.mysensors.org/topic/5745/my_transport_dont_care_mode/10
      https://forum.mysensors.org/topic/7298/get-status-of-connection/7
      https://forum.mysensors.org/topic/4899/how-add-watchdog-to-my-sensors/4
      https://forum.mysensors.org/topic/4593/battery-sensor-and-re-connecting-to-gateway/2
      https://forum.mysensors.org/topic/7298/get-status-of-connection/6
      https://forum.mysensors.org/topic/7723/car-aux-battery-monitor

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sineverba
        Hardware Contributor
        wrote on last edited by
        #3

        Thank you... But isTransportReady seems true also if I leave the Arduino Gateway with reset pushed forever. ONly get false when I disconnect the power from Arduino.

        I'm thinking to use the receiveTime method. But, if controller (and gateway) are down, what the value returned from receivedTime?

        On another words, how can I check if time is returning? Because with gateway shutdown on Serial I did not read nothing from that function (instead of time).

        Thank you!

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


        25

        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