[riot-notifications] [RIOT-OS/RIOT] gnrc_lorawan: add initial support for GNRC based LoRaWAN stack (v2) (#11022)

José Alamos notifications at github.com
Tue May 21 17:23:58 CEST 2019


jia200x commented on this pull request.



> +            if (mac->mcps.nb_trials-- == 0) {
+                _end_of_tx(mac, MCPS_CONFIRMED, -ETIMEDOUT);
+            }
+        }
+        else {
+            _end_of_tx(mac, state, GNRC_LORAWAN_REQ_STATUS_SUCCESS);
+        }
+
+        mac->msg.type = MSG_TYPE_MCPS_ACK_TIMEOUT;
+        if (mac->mcps.outgoing_pkt) {
+            xtimer_set_msg(&mac->rx, 1000000 + random_uint32_range(0, 2000000), &mac->msg, thread_getpid());
+        }
+    }
+}
+
+void gnrc_lorawan_mcps_request(gnrc_lorawan_t *mac, mcps_request_t *mcps_request, mcps_confirm_t *mcps_confirm)

the problem with that is MCPS and MLME confirm can return other attributes (besides status, Link Check stats, MIB params, etc). The current implementation still doesn't add too many MCPS and MLME confirmations, so it's not that visible yet

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11022#discussion_r286085731
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190521/4397ead4/attachment-0001.html>


More information about the notifications mailing list