Skip to content

Lora Node Uplink by event #1526

Answered by danak6jq
vAnArhist asked this question in Q&A
Mar 22, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

You mention batching of messages, so you probably have a queue. On each OnTxData() completion, you'd set a status that results in the foreground code calling a "send next packet" function. Depending on how you want to use confirmed ULs, you might implement retry logic here as well.

Background:
LoRaMac applications are basically a spin loop in the foreground that drops into deep sleep when there's nothing to be done. An interrupt (timer, radio, etc.) wakes the MCU, the IRQ is handled and may ultimately end-up notifying the app, like OnTxData(), that's why these are in interrupt context (and you generally don't want to modify global state and/or call LMHandler functions there).

Once IRQ pro…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vAnArhist
Comment options

@danak6jq
Comment options

@danak6jq
Comment options

Answer selected by vAnArhist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants