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. -
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. -
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. -
@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?
-
@yveaux Defining MY_RF24_IRQ_PIN does not enable the RX queue feature per se. Therefore it compiles ;)
-
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login