MY_RF24_IRQ_PIN on ESP8266 GW
-
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.
-
@sergio-rius if the gateway can send and receive messages, the irq is working.
-
@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
-
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.
-
@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.
-
@yveaux Defining MY_RF24_IRQ_PIN does not enable the RX queue feature per se. Therefore it compiles
-
@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?
-
@tekka said in MY_RF24_IRQ_PIN on ESP8266 GW:
Therefore it compiles
True, and next it doesn't use it?
-
@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.
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
ESP-NOW
General Discussion • 22 Apr 2018, 05:58 • NeverDie 17 Feb 2025, 22:24 -
What is form factor?
General Discussion • 15 Jan 2025, 07:33 • Luosi 15 Jan 2025, 07:33 -
Running out of nodeId's
General Discussion • 3 Sept 2024, 07:33 • NielBierman 25 Jan 2025, 17:19 -
Combination of networks
General Discussion • 1 Feb 2025, 17:30 • Sniker 4 Feb 2025, 01:02 -
Email notifications received twice
General Discussion • 6 Feb 2023, 16:15 • Jodaille 2 days ago