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. MY_RF24_IRQ_PIN on ESP8266 GW

MY_RF24_IRQ_PIN on ESP8266 GW

Scheduled Pinned Locked Moved General Discussion
9 Posts 4 Posters 768 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.
  • Sergio RiusS Offline
    Sergio RiusS Offline
    Sergio Rius
    wrote on last edited by
    #1

    Hi guys, I just updated a gateway to the latest version and I also activated IRQ for the radio.
    I wired the irq to the pin marked D4 on the NodeMcu v1 and set: #define MY_RF24_IRQ_PIN (2)
    Due to the weird mapping on this board I don't know if its correctly wired. The gw seems to work.
    Do you guys knows how to know if the feature is correctly working? Thanks.

    mfalkviddM 1 Reply Last reply
    0
    • Sergio RiusS Sergio Rius

      Hi guys, I just updated a gateway to the latest version and I also activated IRQ for the radio.
      I wired the irq to the pin marked D4 on the NodeMcu v1 and set: #define MY_RF24_IRQ_PIN (2)
      Due to the weird mapping on this board I don't know if its correctly wired. The gw seems to work.
      Do you guys knows how to know if the feature is correctly working? Thanks.

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

      @sergio-rius if the gateway can send and receive messages, the irq is working.

      tekkaT 1 Reply Last reply
      0
      • mfalkviddM mfalkvidd

        @sergio-rius if the gateway can send and receive messages, the irq is working.

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

        @mfalkvidd said in MY_RF24_IRQ_PIN on ESP8266 GW:

        @sergio-rius if the gateway can send and receive messages, the irq is working.

        MY_RF24_IRQ_PIN is currently only used for the RX_QUEUE_BUFFER feature, and unfortunately, ESP8266 does not support interrupt usage for SPI. See comments here: https://github.com/mysensors/MySensors/blob/development/hal/transport/RF24/driver/RF24.cpp#L525

        1 Reply Last reply
        1
        • Sergio RiusS Offline
          Sergio RiusS Offline
          Sergio Rius
          wrote on last edited by
          #4

          So there's so limited functionality on esp. I think you can guess where I was going.

          So I thought it could be some trouble because I saw some strange behavior, sometimes the start stuck, and keep flashing the led. I saw that d4 controls the inboard led, but as the gw worked after a reset and was so late I left for the day.
          I may swap that pin, but I don't know what is available and it's internal number.

          YveauxY 1 Reply Last reply
          0
          • Sergio RiusS Sergio Rius

            So there's so limited functionality on esp. I think you can guess where I was going.

            So I thought it could be some trouble because I saw some strange behavior, sometimes the start stuck, and keep flashing the led. I saw that d4 controls the inboard led, but as the gw worked after a reset and was so late I left for the day.
            I may swap that pin, but I don't know what is available and it's internal number.

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by Yveaux
            #5

            @sergio-rius I'm surprised it even compiles for esp8266, see my posts in https://github.com/mysensors/MySensors/issues/1128
            Could be that the arduino port for esp8266 had evolved, but that requires a deeper look.

            http://yveaux.blogspot.nl

            tekkaT 1 Reply Last reply
            0
            • YveauxY Yveaux

              @sergio-rius I'm surprised it even compiles for esp8266, see my posts in https://github.com/mysensors/MySensors/issues/1128
              Could be that the arduino port for esp8266 had evolved, but that requires a deeper look.

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

              @yveaux Defining MY_RF24_IRQ_PIN does not enable the RX queue feature per se. Therefore it compiles ;)

              Sergio RiusS YveauxY 2 Replies Last reply
              0
              • tekkaT tekka

                @yveaux Defining MY_RF24_IRQ_PIN does not enable the RX queue feature per se. Therefore it compiles ;)

                Sergio RiusS Offline
                Sergio RiusS Offline
                Sergio Rius
                wrote on last edited by
                #7

                @mfalkvidd yes, I saw those posts. And there are changes in both the esp firmware and the Arduino core. I had to re-implement the ArduinoOta, for example. And it still doesn't work. But compiles.

                @tekka said in MY_RF24_IRQ_PIN on ESP8266 GW:

                @yveaux Defining MY_RF24_IRQ_PIN does not enable the RX queue feature per se. Therefore it compiles ;)

                That's the impression I had, that hadn't any effect. That was the reason I asked. Does actually have any functionality on esp?

                1 Reply Last reply
                0
                • tekkaT tekka

                  @yveaux Defining MY_RF24_IRQ_PIN does not enable the RX queue feature per se. Therefore it compiles ;)

                  YveauxY Offline
                  YveauxY Offline
                  Yveaux
                  Mod
                  wrote on last edited by
                  #8

                  @tekka said in MY_RF24_IRQ_PIN on ESP8266 GW:

                  Therefore it compiles

                  True, and next it doesn't use it? ;-)

                  http://yveaux.blogspot.nl

                  Sergio RiusS 1 Reply Last reply
                  0
                  • YveauxY Yveaux

                    @tekka said in MY_RF24_IRQ_PIN on ESP8266 GW:

                    Therefore it compiles

                    True, and next it doesn't use it? ;-)

                    Sergio RiusS Offline
                    Sergio RiusS Offline
                    Sergio Rius
                    wrote on last edited by
                    #9

                    @yveaux said in MY_RF24_IRQ_PIN on ESP8266 GW:

                    True, and next it doesn't use it? ;-)

                    This could be reformulated as an affirmative sentence.
                    I cut the bridge wiring and continued working as nothing happened.

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


                    29

                    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