-
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* improved RF24 ISR * reduced AP active time to 60s (will be increase once a client is connected) * added `yield` without success -> random reboot (cause 4)
- Loading branch information
Showing
7 changed files
with
54 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c7d039a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lumapu, Klasse die Stelle hatte ich gestern abend auch überdacht, das ist ja jetzt wie aus dem Lehrbuch!
Im Interrupt Handler wird nur das als
volatile bool mIrqRcvd;
deklarierte Flag gesetzt und dermSys->Radio.loop();
in der app priorisiert.Den InterruptStatus
mNrf24.whatHappened
im Handler sichern und erst danach mitmNrf24.available
die Daten einsammeln.Dadurch bleibt die Zeit ohne Interrupts zwischen
DISABLE_IRQ;
undRESTORE_IRQ;
kürzer.Und das m.E. überflüssige Setzen auf "valide" Werte mit
memset(p->packet, 0xcc, MAX_RF_PAYLOAD_SIZE);
ist auch weg.Man könnte meinen Du hast gestern auch noch mal Embed mit Elliot gelesen 😄
c7d039a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ach ja das MQTT Connect Problem hast Du auch gleich gelöst 🎩 Chapeau!
Vielleicht kannst Du noch was zu den folgenden beiden Anpassungen sagen:
#define RX_LOOP_CNT 600
ist das um längere Payloads, u.a. für den HM-1500 zu empfangen ?mSys->Radio.switchRxCh(300);
das ist m.W. nach der Dokumentation der RF24 Bibliothek das empfohlene Maximum ?c7d039a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c7d039a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.