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. OpenHardware.io
  3. 💬 MySensors NRF5 Platform

💬 MySensors NRF5 Platform

Scheduled Pinned Locked Moved OpenHardware.io
contest2017nrf52mysensorsnrf5nrf51
210 Posts 20 Posters 42.9k Views 18 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.
  • d00616D d00616

    @NeverDie I have checked the sleep routine in all three variants. It's working with my setup.

    There is no API stopping the sleep() by another ISR. Sleep only ends at one of the given conditions.

    When you use the MY_CORE_ONLY define, please add "hwInit();" into the setup() routine.

    NeverDieN Offline
    NeverDieN Offline
    NeverDie
    Hero Member
    wrote on last edited by
    #92

    @d00616 said in 💬 MySensors NRF5 Platform:

    @NeverDie I have checked the sleep routine in all three variants. It's working with my setup.

    There is no API stopping the sleep() by another ISR. Sleep only ends at one of the given conditions.

    When you use the MY_CORE_ONLY define, please add "hwInit();" into the setup() routine.

    Would you please post the three demo code examples that you tested?

    1 Reply Last reply
    0
    • NeverDieN Offline
      NeverDieN Offline
      NeverDie
      Hero Member
      wrote on last edited by
      #93

      @d00616 said in 💬 MySensors NRF5 Platform:

      add "hwInit();" into the setup() routine.

      OK, I just now did that, but I'm not getting any difference in the results.

      1 Reply Last reply
      0
      • NeverDieN Offline
        NeverDieN Offline
        NeverDie
        Hero Member
        wrote on last edited by
        #94

        In any case, I'm sure the question will ultimately turn from "How do I wake up based on a pin change?" to "How do I wake up based on the LPCOMP output, which has that pin as its input?" The reason: as covered earlier in this thread, much lower current consumption while sleeping if doing it via LPCOMP rather than the more straightforward pin monitoring.

        d00616D 1 Reply Last reply
        0
        • NeverDieN NeverDie

          In any case, I'm sure the question will ultimately turn from "How do I wake up based on a pin change?" to "How do I wake up based on the LPCOMP output, which has that pin as its input?" The reason: as covered earlier in this thread, much lower current consumption while sleeping if doing it via LPCOMP rather than the more straightforward pin monitoring.

          d00616D Offline
          d00616D Offline
          d00616
          Contest Winner
          wrote on last edited by
          #95

          @NeverDie said in 💬 MySensors NRF5 Platform:

          In any case, I'm sure the question will ultimately turn from "How do I wake up based on a pin change?" to "How do I wake up based on the LPCOMP output, which has that pin as its input?" The reason: as covered earlier in this thread, much lower current consumption while sleeping if doing it via LPCOMP rather than the more straightforward pin monitoring.

          It's a good question about, how to design the API to do this. I have no good idea.
          Until an API, you can set MY_HW_RTC->CC[0] to (MY_HW_RTC->COUNTER+2). This ends sleep with some latency.

          1 Reply Last reply
          1
          • NeverDieN Offline
            NeverDieN Offline
            NeverDie
            Hero Member
            wrote on last edited by NeverDie
            #96
            This post is deleted!
            1 Reply Last reply
            0
            • NeverDieN Offline
              NeverDieN Offline
              NeverDie
              Hero Member
              wrote on last edited by NeverDie
              #97
              This post is deleted!
              1 Reply Last reply
              1
              • NeverDieN Offline
                NeverDieN Offline
                NeverDie
                Hero Member
                wrote on last edited by
                #98
                This post is deleted!
                1 Reply Last reply
                0
                • NeverDieN Offline
                  NeverDieN Offline
                  NeverDie
                  Hero Member
                  wrote on last edited by NeverDie
                  #99

                  Is it just me, or does the myBoardNrf5 cause I2c to fail during initialization? I have code which worked fine on mNrf5Board but which now hangs during initialization when using myBoardNrf5. :( Is it working for anyone else?

                  NeverDieN 1 Reply Last reply
                  0
                  • NeverDieN NeverDie

                    Is it just me, or does the myBoardNrf5 cause I2c to fail during initialization? I have code which worked fine on mNrf5Board but which now hangs during initialization when using myBoardNrf5. :( Is it working for anyone else?

                    NeverDieN Offline
                    NeverDieN Offline
                    NeverDie
                    Hero Member
                    wrote on last edited by NeverDie
                    #100

                    @NeverDie said in 💬 MySensors NRF5 Platform:

                    Is it just me, or does the myBoardNrf5 cause I2c to fail during initialization? I have code which worked fine on mNrf5Board but which now hangs during initialization when using myBoardNrf5. :( Is it working for anyone else?

                    I've re-installed everything and am still getting no joy using I2C currently. The non-I2C stuff seems to be working fine though.
                    So, before I spin more cycles trying to figure it out, is i2c working for anyone else right now using the latest builds and myBoardNrf5? Or, is I2C currently broken?

                    NeverDieN 1 Reply Last reply
                    0
                    • NeverDieN NeverDie

                      @NeverDie said in 💬 MySensors NRF5 Platform:

                      Is it just me, or does the myBoardNrf5 cause I2c to fail during initialization? I have code which worked fine on mNrf5Board but which now hangs during initialization when using myBoardNrf5. :( Is it working for anyone else?

                      I've re-installed everything and am still getting no joy using I2C currently. The non-I2C stuff seems to be working fine though.
                      So, before I spin more cycles trying to figure it out, is i2c working for anyone else right now using the latest builds and myBoardNrf5? Or, is I2C currently broken?

                      NeverDieN Offline
                      NeverDieN Offline
                      NeverDie
                      Hero Member
                      wrote on last edited by NeverDie
                      #101

                      It appears that the place where it hangs is this line here in Wire_nRF52.cpp:

                        while(!_p_twim->EVENTS_LASTTX && !_p_twim->EVENTS_ERROR);
                      

                      This is too bad, as I2C seemed to work fine prior to around a couple weeks ago. I think maybe (?) the latest update somehow broke it.

                      Please advise.

                      1 Reply Last reply
                      0
                      • NeverDieN Offline
                        NeverDieN Offline
                        NeverDie
                        Hero Member
                        wrote on last edited by NeverDie
                        #102

                        Well, since I'm dead in the water as things stand, I moved the code over to run on an nRF52 DK. Then, usingy Sandeep's code and none of the mysensors code, I was able to get the nRF52 DK to read an attached Si7021 temperature-humidity sensor. i.e. that worked without hanging.

                        So, it would appear that there's something about the mysensors code that is causing the problems. @d00616 Can we please get it fixed?

                        d00616D 1 Reply Last reply
                        0
                        • NeverDieN NeverDie

                          Well, since I'm dead in the water as things stand, I moved the code over to run on an nRF52 DK. Then, usingy Sandeep's code and none of the mysensors code, I was able to get the nRF52 DK to read an attached Si7021 temperature-humidity sensor. i.e. that worked without hanging.

                          So, it would appear that there's something about the mysensors code that is causing the problems. @d00616 Can we please get it fixed?

                          d00616D Offline
                          d00616D Offline
                          d00616
                          Contest Winner
                          wrote on last edited by
                          #103

                          @NeverDie said in 💬 MySensors NRF5 Platform:

                          So, it would appear that there's something about the mysensors code that is causing the problems. @d00616 Can we please get it fixed?

                          I have no I2C Hardware for testing, but I take a look into the I2C and MySensors code soon.

                          1 Reply Last reply
                          0
                          • NeverDieN Offline
                            NeverDieN Offline
                            NeverDie
                            Hero Member
                            wrote on last edited by NeverDie
                            #104

                            The sooner the better. I'm pretty much stuck until it gets fixed.

                            rmtuckerR 1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              The sooner the better. I'm pretty much stuck until it gets fixed.

                              rmtuckerR Offline
                              rmtuckerR Offline
                              rmtucker
                              wrote on last edited by
                              #105

                              @neverdie
                              I have been using The NRF5 with mysensors for a number of weeks with the si7021.
                              So it must be just a recent problem with the mysensors code?

                              NeverDieN 2 Replies Last reply
                              0
                              • rmtuckerR rmtucker

                                @neverdie
                                I have been using The NRF5 with mysensors for a number of weeks with the si7021.
                                So it must be just a recent problem with the mysensors code?

                                NeverDieN Offline
                                NeverDieN Offline
                                NeverDie
                                Hero Member
                                wrote on last edited by NeverDie
                                #106

                                @rmtucker said in 💬 MySensors NRF5 Platform:

                                @neverdie
                                I have been using The NRF5 with mysensors for a number of weeks with the si7021.
                                So it must be just a recent problem with the mysensors code?

                                I think so. Are you running the most current version? si7021 was working for me too on earlier versions. The latest update seems to have broken it. It's the one that uses myBoardNrf5 instead of myNrf5Board.

                                1 Reply Last reply
                                0
                                • rmtuckerR rmtucker

                                  @neverdie
                                  I have been using The NRF5 with mysensors for a number of weeks with the si7021.
                                  So it must be just a recent problem with the mysensors code?

                                  NeverDieN Offline
                                  NeverDieN Offline
                                  NeverDie
                                  Hero Member
                                  wrote on last edited by NeverDie
                                  #107

                                  @rmtucker said in 💬 MySensors NRF5 Platform:

                                  @neverdie
                                  I have been using The NRF5 with mysensors for a number of weeks with the si7021.
                                  So it must be just a recent problem with the mysensors code?

                                  Would you mind trying the most recent version also to see if it breaks on you too? That would at least confirm it.

                                  Right now my only alternative is to roll-back to the earlier version and just never upgrade again.

                                  rmtuckerR 1 Reply Last reply
                                  0
                                  • NeverDieN NeverDie

                                    @rmtucker said in 💬 MySensors NRF5 Platform:

                                    @neverdie
                                    I have been using The NRF5 with mysensors for a number of weeks with the si7021.
                                    So it must be just a recent problem with the mysensors code?

                                    Would you mind trying the most recent version also to see if it breaks on you too? That would at least confirm it.

                                    Right now my only alternative is to roll-back to the earlier version and just never upgrade again.

                                    rmtuckerR Offline
                                    rmtuckerR Offline
                                    rmtucker
                                    wrote on last edited by
                                    #108

                                    @neverdie
                                    Where is myBoardNrf5 so i can check?

                                    NeverDieN d00616D 2 Replies Last reply
                                    0
                                    • rmtuckerR rmtucker

                                      @neverdie
                                      Where is myBoardNrf5 so i can check?

                                      NeverDieN Offline
                                      NeverDieN Offline
                                      NeverDie
                                      Hero Member
                                      wrote on last edited by
                                      #109

                                      @rmtucker said in 💬 MySensors NRF5 Platform:

                                      @neverdie
                                      Where is myBoardNrf5 so i can check?

                                      https://github.com/d00616/ArduinoHwNRF5

                                      rmtuckerR 1 Reply Last reply
                                      0
                                      • NeverDieN NeverDie

                                        @rmtucker said in 💬 MySensors NRF5 Platform:

                                        @neverdie
                                        Where is myBoardNrf5 so i can check?

                                        https://github.com/d00616/ArduinoHwNRF5

                                        rmtuckerR Offline
                                        rmtuckerR Offline
                                        rmtucker
                                        wrote on last edited by
                                        #110

                                        @neverdie
                                        That explains it i am not using code from d00616.
                                        I am only using the mysensors library and sandeeps stuff.
                                        Sorry mate.

                                        scalzS 1 Reply Last reply
                                        0
                                        • NeverDieN Offline
                                          NeverDieN Offline
                                          NeverDie
                                          Hero Member
                                          wrote on last edited by NeverDie
                                          #111

                                          Well, in general, it's very handy for handling the pin mappings. Up until the latest release, it has worked fine. It still works fine now, except for the I2C pin mappings.

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


                                          10

                                          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