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. General Discussion
  3. Serial gateway running on coin cells. Needs to sleep

Serial gateway running on coin cells. Needs to sleep

Scheduled Pinned Locked Moved General Discussion
24 Posts 3 Posters 150 Views 1 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.
  • scalzS Offline
    scalzS Offline
    scalz
    Hardware Contributor
    wrote on last edited by
    #15

    @Jason-Rennie maybe if you give us more info on your usecase/project archi, we could help you. I think a sleeping gw is not very common.

    Jason RennieJ 1 Reply Last reply
    0
    • scalzS scalz

      @Jason-Rennie maybe if you give us more info on your usecase/project archi, we could help you. I think a sleeping gw is not very common.

      Jason RennieJ Offline
      Jason RennieJ Offline
      Jason Rennie
      wrote on last edited by
      #16

      @scalz Its a watch sized receiver taking signals from a transmitter.

      The transmitter is sealed in a protective silicone blob and the watch is preferably coin cell powered to avoid the need for a MSDS/SDS for shipping lithium batteries. The whole thing needs to pass FCC for sale in the US and it has to meet EU RED regulations to sell in Europe.

      The transmitter only needs to send a signal to assure the watch that it is in range. Once every 2 minutes is fine. It should send an alert signal when an alert condition is detected by it's sensors.

      There's normally only 1 or maybe 2 senders and 1 or maybe 2 receivers.

      1 Reply Last reply
      0
      • scalzS Offline
        scalzS Offline
        scalz
        Hardware Contributor
        wrote on last edited by scalz
        #17

        @Jason-Rennie unfortunately as you guessed MySensors is not really tailored for this task, so
        as you don't have lot of nodes involved, perhaps it's easier to start your sw from scratch with a more simple lib+rtc, or some true mesh framework with low power capabilities if there is one available (MySensors is star network).
        I guess BLE 5 long range+beacon doesn't fit your project??
        imho, I think I would do my own sw, if it's just for 2-3 nodes, and sync them, perhaps easier for sw maintenance. For MySensors, we need to take care of a lot more usecases..
        Long time ago, I tested rfm69 listenmode from lowpowerlab, maybe it can help you getting started.
        cr2032 can be tricky, don't forget capa buffering, but that's another topic :)

        Jason RennieJ 3 Replies Last reply
        0
        • scalzS scalz

          @Jason-Rennie unfortunately as you guessed MySensors is not really tailored for this task, so
          as you don't have lot of nodes involved, perhaps it's easier to start your sw from scratch with a more simple lib+rtc, or some true mesh framework with low power capabilities if there is one available (MySensors is star network).
          I guess BLE 5 long range+beacon doesn't fit your project??
          imho, I think I would do my own sw, if it's just for 2-3 nodes, and sync them, perhaps easier for sw maintenance. For MySensors, we need to take care of a lot more usecases..
          Long time ago, I tested rfm69 listenmode from lowpowerlab, maybe it can help you getting started.
          cr2032 can be tricky, don't forget capa buffering, but that's another topic :)

          Jason RennieJ Offline
          Jason RennieJ Offline
          Jason Rennie
          wrote on last edited by
          #18

          @scalz I tried BLE first but the sender is in close body contact and the signal from an NRF52840 was almost completely absorbed by the body. They claim upto 800m range but the truth is that indoors the range is miserable. In close body contact the range was barely 1m or zero depending on how much body it passes through. Bluetooth depends on walls to reflect signals so this is even worse outdoors.

          To extend the range I made an android app that could also act as a gateway to send the live signals over wifi or mobile to Google Cloud Firestore. So any other instances of the app could see the live values. But Android and iOS are so determined to reduce battery usage that they make it very hard to maintain a Bluetooth connection. The ble connection timeout for iOS is 4 seconds for instance. Its also difficult to keep long running background tasks because the OS will stop them, it's also difficult to guarantee that Bluetooth scans are performed to reestablish connections. The whole thing would require a ton of coding to maintain.

          This is why I chose the RFM69HCW.

          1 Reply Last reply
          0
          • scalzS scalz

            @Jason-Rennie unfortunately as you guessed MySensors is not really tailored for this task, so
            as you don't have lot of nodes involved, perhaps it's easier to start your sw from scratch with a more simple lib+rtc, or some true mesh framework with low power capabilities if there is one available (MySensors is star network).
            I guess BLE 5 long range+beacon doesn't fit your project??
            imho, I think I would do my own sw, if it's just for 2-3 nodes, and sync them, perhaps easier for sw maintenance. For MySensors, we need to take care of a lot more usecases..
            Long time ago, I tested rfm69 listenmode from lowpowerlab, maybe it can help you getting started.
            cr2032 can be tricky, don't forget capa buffering, but that's another topic :)

            Jason RennieJ Offline
            Jason RennieJ Offline
            Jason Rennie
            wrote on last edited by
            #19

            @scalz said in Serial gateway running on coin cells. Needs to sleep:

            capa buffering,

            What is capa buffering? Google is not helping me

            mfalkviddM 1 Reply Last reply
            0
            • scalzS scalz

              @Jason-Rennie unfortunately as you guessed MySensors is not really tailored for this task, so
              as you don't have lot of nodes involved, perhaps it's easier to start your sw from scratch with a more simple lib+rtc, or some true mesh framework with low power capabilities if there is one available (MySensors is star network).
              I guess BLE 5 long range+beacon doesn't fit your project??
              imho, I think I would do my own sw, if it's just for 2-3 nodes, and sync them, perhaps easier for sw maintenance. For MySensors, we need to take care of a lot more usecases..
              Long time ago, I tested rfm69 listenmode from lowpowerlab, maybe it can help you getting started.
              cr2032 can be tricky, don't forget capa buffering, but that's another topic :)

              Jason RennieJ Offline
              Jason RennieJ Offline
              Jason Rennie
              wrote on last edited by
              #20

              @scalz said in Serial gateway running on coin cells. Needs to sleep:

              rfm69 listenmode from lowpowerlab,

              listenmode. Interesting....

              Unfortunately I found this comment (and linked discussion) here

              https://github.com/LowPowerLab/RFM69/blob/master/RFM69.h

              //Native hardware ListenMode is experimental
              //It was determined to be buggy and unreliable, see https://lowpowerlab.com/forum/low-power-techniques/ultra-low-power-listening-mode-for-battery-nodes/msg20261/#msg20261
              //uncomment to try ListenMode, adds ~1K to compiled size
              //FYI - 10bit addressing is not supported in ListenMode
              //#define RF69_LISTENMODE_ENABLE

              1 Reply Last reply
              0
              • Jason RennieJ Jason Rennie

                @scalz said in Serial gateway running on coin cells. Needs to sleep:

                capa buffering,

                What is capa buffering? Google is not helping me

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

                @Jason-Rennie said in Serial gateway running on coin cells. Needs to sleep:

                @scalz said in Serial gateway running on coin cells. Needs to sleep:

                capa buffering,

                What is capa buffering? Google is not helping me

                I think he means adding capacitor(s). Cr2032 will not be able to deliver its rated capacity if more than a few mA is drawn. See https://electronics.stackexchange.com/questions/234901/lithium-coin-cell-cr2032-battery-specifications for one data point.

                Jason RennieJ 1 Reply Last reply
                1
                • scalzS Offline
                  scalzS Offline
                  scalz
                  Hardware Contributor
                  wrote on last edited by scalz
                  #22

                  @Jason-Rennie
                  sure, but you didn't mention the whole thing, I also prefer subghz :)
                  cr2032 is limited, so without extras capacitors = possible brownouts + you won't get full lifetime because of its internal resistance (when power consumption >5ma generally) . even a short burst can reset your mcu (brownout)
                  like 100-300uf to handle H version of rfm modules, I usually place a few close to batt and rf module
                  also forget bad coincell brands, not good at all for lifetime.
                  for a commercial product, I wouldn't recommend to remove brownout protection, nor watchdog too, for saving power.

                  I didn't know about listenmode. when I tried it worked, but this was experimental, never used it in prod.
                  -> custom fw with rtc and sync. simple :)

                  Jason RennieJ 1 Reply Last reply
                  0
                  • mfalkviddM mfalkvidd

                    @Jason-Rennie said in Serial gateway running on coin cells. Needs to sleep:

                    @scalz said in Serial gateway running on coin cells. Needs to sleep:

                    capa buffering,

                    What is capa buffering? Google is not helping me

                    I think he means adding capacitor(s). Cr2032 will not be able to deliver its rated capacity if more than a few mA is drawn. See https://electronics.stackexchange.com/questions/234901/lithium-coin-cell-cr2032-battery-specifications for one data point.

                    Jason RennieJ Offline
                    Jason RennieJ Offline
                    Jason Rennie
                    wrote on last edited by
                    #23

                    @mfalkvidd Yes, I need the right capacitors. I'm now designing boards for the watch and sender device using KiCAD based on moteino and easysensors but with a few differences.

                    1 Reply Last reply
                    0
                    • scalzS scalz

                      @Jason-Rennie
                      sure, but you didn't mention the whole thing, I also prefer subghz :)
                      cr2032 is limited, so without extras capacitors = possible brownouts + you won't get full lifetime because of its internal resistance (when power consumption >5ma generally) . even a short burst can reset your mcu (brownout)
                      like 100-300uf to handle H version of rfm modules, I usually place a few close to batt and rf module
                      also forget bad coincell brands, not good at all for lifetime.
                      for a commercial product, I wouldn't recommend to remove brownout protection, nor watchdog too, for saving power.

                      I didn't know about listenmode. when I tried it worked, but this was experimental, never used it in prod.
                      -> custom fw with rtc and sync. simple :)

                      Jason RennieJ Offline
                      Jason RennieJ Offline
                      Jason Rennie
                      wrote on last edited by Jason Rennie
                      #24

                      @scalz said in Serial gateway running on coin cells. Needs to sleep:

                      also forget bad coincell brands, not good at all for lifetime.

                      This is my biggest concern at the moment. With the watch device I can resort to Lipo and recharge if needed, but the sender is best encased in silicone to protect it so its crucial that I get a long reliable battery life from it. My only option there is to use inductive charging. Which might be easy but I've not looked at the details.

                      I would also need to do shipping safety sheets if I use lipo but I think that it's probably just an expense. Not a project risk.

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


                      19

                      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