# What is the function of the SX127x / RFM9x reset pin in LMIC?

**URL:** <https://www.thethingsnetwork.org/forum/t/what-is-the-function-of-the-sx127x-rfm9x-reset-pin-in-lmic/14448>\
**Category:** LMIC\
**Created:** [May 23, 2018, 11:27am UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-function-of-the-sx127x-rfm9x-reset-pin-in-lmic/14448 "2018-05-23T11:27:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [May 23, 2018, 11:27am UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-function-of-the-sx127x-rfm9x-reset-pin-in-lmic/14448/1 "2018-05-23T11:27:59Z")

</div>

@matthijskooijman

One of the popular ESP32+LoRa boards does not have the LoRa Reset connected to any ESP32 GPIO pin.  
Instead LoRa Reset is connected to the ESP32 EN (Reset pin) so the LoRa module gets reset when the ESP32 is hardware reset.

In the LMIC configuration settings one has to specify which GPIO pin is used for LoRa reset.  
In this case there is none and LMIC\_UNUSED\_PIN is used as ‘pin’.

Why/when does LMIC reset the LoRa module via GPIO?  
What are the implications if LMIC cannot reset the LoRa module via GPIO?  
Can this lead to problems?

---

<div class="post-metadata">

**Author:** ![matthijskooijman](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@matthijskooijman](https://www.thethingsnetwork.org/forum/u/matthijskooijman)\
**Post date:** [May 23, 2018, 12:20pm UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-function-of-the-sx127x-rfm9x-reset-pin-in-lmic/14448/2 "2018-05-23T12:20:29Z")

</div>

IIRC LMIC uses it to get the transceiver in a clean state when the library starts up. Normally, it should already be clean from the previous powerup or reset, so I believe it will not lead to problems (but might prevent the library from re-initializing the transceiver if it runs into problems).

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [May 23, 2018, 12:25pm UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-function-of-the-sx127x-rfm9x-reset-pin-in-lmic/14448/3 "2018-05-23T12:25:51Z")

</div>

Thanks.

> [@matthijskooijman](#):
>
> but might prevent the library from re-initializing the transceiver if it runs into problems.

When could that possibly be / when would it try to do that?

---

<div class="post-metadata">

**Author:** ![matthijskooijman](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@matthijskooijman](https://www.thethingsnetwork.org/forum/u/matthijskooijman)\
**Post date:** [May 23, 2018, 1:00pm UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-function-of-the-sx127x-rfm9x-reset-pin-in-lmic/14448/4 "2018-05-23T13:00:51Z")

</div>

I believe only when you call LMIC\_init or LMIC\_reset or something like that (or when your MCU resets, but not the transceiver).

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [May 23, 2018, 1:18pm UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-function-of-the-sx127x-rfm9x-reset-pin-in-lmic/14448/5 "2018-05-23T13:18:03Z")

</div>

Thanks. In this case a reset of the MCU also resets the tranceiver.

---

<div class="post-metadata">

**Author:** ![Linar](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/linar/32/35697_2.png) [@Linar](https://www.thethingsnetwork.org/forum/u/Linar)\
**Post date:** [May 23, 2018, 10:14pm UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-function-of-the-sx127x-rfm9x-reset-pin-in-lmic/14448/6 "2018-05-23T22:14:34Z")

</div>

In [my project](https://github.com/lyusupov/SoftRF) I am using either FSK or LoRa (been selected at boot time).  
I had to explicitly connect RFM’s RESET to a MCU’s GPIO pin in order to be sure that after “warm restart” with modulation switch - the RF module is in predictable state. Issues with shared FSK/LoRa SX127x’s control registers may happen otherwise.

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [May 23, 2018, 10:26pm UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-function-of-the-sx127x-rfm9x-reset-pin-in-lmic/14448/7 "2018-05-23T22:26:05Z")

</div>

Thanks. Interesting project.
