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 -
No merge into master in the last 5 years, should we use development?
General Discussion β’ 23 Sept 2024, 17:48 β’ kiesel 3 days ago -
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 -
Which device I have to use to connect with accelerometer before connecting to my pc?
General Discussion β’ 24 Jan 2023, 17:16 β’ Yada Kijsathan 12 days ago -
Human presence sensors....
General Discussion β’ 31 Jan 2025, 10:54 β’ skywatch 9 Feb 2025, 19:36