# MAC commands being sent each time after Join Process

**URL:** <https://www.thethingsnetwork.org/forum/t/mac-commands-being-sent-each-time-after-join-process/55569>\
**Category:** LMIC\
**Created:** [March 2, 2022, 11:18am UTC](https://www.thethingsnetwork.org/forum/t/mac-commands-being-sent-each-time-after-join-process/55569 "2022-03-02T11:18:06Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![DavidTaylor\_DPI](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/davidtaylor_dpi/32/35697_2.png) [@DavidTaylor\_DPI](https://www.thethingsnetwork.org/forum/u/DavidTaylor_DPI)\
**Post date:** [April 11, 2022, 11:24pm UTC](https://www.thethingsnetwork.org/forum/t/mac-commands-being-sent-each-time-after-join-process/55569/17 "2022-04-11T23:24:14Z")

</div>

Thanks cslorabox.

I know of the technique where you ask LMIC if it is busy for some amount of time, but need to examine the source more closely to answer the questions below.

I’m on leave ATM and spent the whole of my first day looking into it, so will probably not do any more until next week.

I’ve seen other people are doing the same as us - issuing a LMIC\_setTxData2, going into tight loop calling os\_runloop\_once() based upon a flag, and setting that flag to break from the loop in the TX\_COMPLETE event handler, then going to sleep until we next want to measure and send.

So it would be good to get a clear idea of whether this works properly! Perhaps it worked with TTN v2 and v3 doesn’t like it as much, or perhaps it’s fine if the config is all done before TX\_COMPLETE is issued, and config answers are queued for the next uplink.

1. Does it take the config reply uplinks into account? Ie are they scheduled as jobs that can be seen by the job queries?

2. Are the config queries handled like the time req where you set a flag and that is included in the next uplink. If so, then #1 doesn’t matter because the answers to the config reqs will be sent on my next uplink.

3. Are the internal state updates requested by the server handled before TX\_COMPLETE is issued?

4. Does LMIC want to do _anything_ between issuing a TX\_COMPLETE event and the next call to os\_runloop\_once?

5. If I wake up to do a os\_runloop\_once(), is that enough to get LMIC doing what it needs to do and in a state I can check to see I need to let it keep going until some defined and visible end state where I can sleep again.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/mac-commands-being-sent-each-time-after-join-process/55569)._
