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. Controllers
  3. Vera
  4. Serial Gateway stops updating after a few minutes.

Serial Gateway stops updating after a few minutes.

Scheduled Pinned Locked Moved Vera
9 Posts 2 Posters 2.0k 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.
  • 4Crawler4 Offline
    4Crawler4 Offline
    4Crawler
    wrote on last edited by
    #1

    I have a VeraLite on the latest UI7 release with the 1.5 MySensors library. Built a Serial Gateway with Arduino Nano (FTDI) and have that seeming connected and operating. I then built a Humidity sensor and can include that. I get about 3 updates at the normal 1 minute interval then nothing. So for example this morning, I got updates at 9:38, 9:39 and 9:40 then all I see is: Last Update:09:40 AM for the rest of the day.

    If I reset either the gateway or sensor nothing changes. If I click Reload Engine on the VeraLite, I'll get the next 3 updates then nothing.

    I don't think it's a radio/comm issue as I've left the sensor and gateway running on my PC with the IDE Serial Monitor showing the gateway output and it's reading data from the sensor every minute for as long as I leave it running.

    I've also tried adding the 3 status LEDs to the gateway and have enabled the WITH_LEDS_BLINKING flag, but I get no LED activity. I know the LEDs work as I tested them with a modified Blink sketch.

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      What radio type are you using? How is it powered? Did you a a capacitor?

      1 Reply Last reply
      0
      • 4Crawler4 Offline
        4Crawler4 Offline
        4Crawler
        wrote on last edited by 4Crawler
        #3

        nRF24L01 radios, same brand on both nanos. Used a 47uF cap on the gateway and a 4.7uF cap on the sensor. I have the radio powered off the 3V3 pin on the nano. I think the comms are fine as the gateway seems to be receiving data updates from the sensor if I have the gateway plugged into my PC, it'll report temperature and humidity updates every minute for as long as it's connected to the PC serial monitor.

        1 Reply Last reply
        0
        • hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #4

          And when connected to Vera you feed it through the USB port only? You could tryadding a powered USB hub.. might help.

          4Crawler4 1 Reply Last reply
          0
          • hekH hek

            And when connected to Vera you feed it through the USB port only? You could tryadding a powered USB hub.. might help.

            4Crawler4 Offline
            4Crawler4 Offline
            4Crawler
            wrote on last edited by 4Crawler
            #5

            @hek Yes, had been running off the Vera USB only w/ a 2-port passive hub. Added a powered hub and it started updating again and has run for about 10 minutes now. Will see if it stays up for the rest of the day.

            UPDATE1: I guess I didn't wait long enough, I got about half a dozen updates then the last update time froze again.

            UPDATE2: OK, I think I must have messed up the sensor, I got it running again and updates have been going for 10 minutes now.

            Still getting no status LED activity on the gateway. I have the 3 LEDs on pins 4, 5, 6 and 5V and the WITH_LEDS_BLINKING flag set. I saw a comment on the source code:

            // This feature enables LEDs blinking on message receive, transmit
            // or if some error occured. This was commonly used only in gateways,
            // but now can be used in any sensor node. Also the LEDs can now be
            // disabled in the gateway.

            Is this disable something that's in the device in Vera or someplace else?

            1 Reply Last reply
            0
            • hekH Offline
              hekH Offline
              hek
              Admin
              wrote on last edited by
              #6

              If it works fine for a longer period when connected to you computer it still feels like a powering issue. You're using the none amplified "vanilla" NRF-radio right?
              Did you try replacing it in case of some hardware issue?

              You connected LEDs according to this (with resistors)?
              http://www.mysensors.org/build/advanced_gateway

              Then it should be enough to enable it here:
              https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/MyConfig.h#L59

              4Crawler4 1 Reply Last reply
              0
              • hekH hek

                If it works fine for a longer period when connected to you computer it still feels like a powering issue. You're using the none amplified "vanilla" NRF-radio right?
                Did you try replacing it in case of some hardware issue?

                You connected LEDs according to this (with resistors)?
                http://www.mysensors.org/build/advanced_gateway

                Then it should be enough to enable it here:
                https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/MyConfig.h#L59

                4Crawler4 Offline
                4Crawler4 Offline
                4Crawler
                wrote on last edited by
                #7

                @hek Yes, the plain vanilla radio, non-amplified. Have not swapped radios but it seems to be more stable now that the powered hub is being used.

                Have the 3 LEDs with resistors (390ohm) connected to pins 4,5,6 and common to 5V. Have tested with the blink sketch (modified) and that works fine, can blink all 3 LEDs on the same Nano I'm running the gateway on. Have uncommented line 59 and also tried the inverted mode but still see no LED activity.

                1 Reply Last reply
                0
                • 4Crawler4 Offline
                  4Crawler4 Offline
                  4Crawler
                  wrote on last edited by
                  #8

                  With the powered hub, the serial gateway has been running for a few weeks now w/o issue, also built a humidity/temperature sensor for testing the gateway and all is working well. Posted a couple of videos on YouTube about the build:
                  https://youtu.be/rtsa-pN_R9M?list=PLpY2FP1a9tiurSiQTwhalz4KBxg_7db65

                  1 Reply Last reply
                  1
                  • 4Crawler4 Offline
                    4Crawler4 Offline
                    4Crawler
                    wrote on last edited by 4Crawler
                    #9

                    I added what I call a "self-powered" USB hub on my VeraLite. This 4-port hub is powered off the Vera's 12VDC power plug so there are no extra power bricks or cords to deal with. Video below:

                    • https://youtu.be/K_hlMJ0q1Ok

                    This in itself saves a few watts of power that would have been used by the separate wall wart for the hub (about 20KWH/year savings!). Ultimate goal for my Vera is to place it on my solar battery bank running off 12VDC power.

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


                    13

                    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