# Safely enable and disable UART1 on Q2687

**URL:** <https://forum.sierrawireless.com/t/safely-enable-and-disable-uart1-on-q2687/5802>\
**Category:** Legacy AirPrime modules\
**Created:** [August 13, 2012, 1:30am UTC](https://forum.sierrawireless.com/t/safely-enable-and-disable-uart1-on-q2687/5802 "2012-08-13T01:30:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pvouzis](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@pvouzis](https://forum.sierrawireless.com/u/pvouzis)\
**Post date:** [August 13, 2012, 1:30am UTC](https://forum.sierrawireless.com/t/safely-enable-and-disable-uart1-on-q2687/5802/1 "2012-08-13T01:30:36Z")

</div>

I need to use some GPIO pins that are multiplexed with UART1 on a Q2687. My understanding is that I first need to disable UART1 within my application, and then subscribe to the GPIOs. Before trying this I realized that disabling UART1 might be dangerous since there is no way to communicate with the module any more. And sure enough…

The way I do it is to use

adl\_atCmdCreate ( “AT+WMFM=0,0,1”, TRUE, ( adl\_atRspHandler\_t ) NULL, NULL );

to deactivate if, and then

adl\_atCmdCreate ( “AT+WMFM=0,1,1”, TRUE, ( adl\_atRspHandler\_t ) NULL, NULL );

to activate it. However, this doesn’t work that well. The activation doesn’t work, and I end up with a disabled UART1. Then I have to use DWLWin to flash the module and start over. It is annoying and it takes quite some time to do this.

So, does anybody have a recommendation about a safe process to enable and disable UART1?

Thanks1

---

_[View the full topic](https://forum.sierrawireless.com/t/safely-enable-and-disable-uart1-on-q2687/5802)._
