# Using UART1 in ADL-App

**URL:** <https://forum.sierrawireless.com/t/using-uart1-in-adl-app/4575>\
**Category:** Open AT\
**Created:** [July 20, 2010, 1:57pm UTC](https://forum.sierrawireless.com/t/using-uart1-in-adl-app/4575 "2010-07-20T13:57:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hebel23](https://avatars.discourse-cdn.com/v4/letter/h/ea666f/32.png) [@Hebel23](https://forum.sierrawireless.com/u/Hebel23)\
**Post date:** [July 20, 2010, 1:57pm UTC](https://forum.sierrawireless.com/t/using-uart1-in-adl-app/4575/1 "2010-07-20T13:57:21Z")

</div>

Hello all,

since a lot of hours I try to open UART1 in an embedded application on my Q2686H.  
My source code is based on the UART\_access sample, delivered by M2M-Studio.  
I only changed the default port from UART2 to UART1. Unfortunately the adl\_OpenDevice function always fails when I try to open UART1.

It should be a problem, that USART1 is used for the default AT-Command-Port. That´s why I closed the USART1 through the following command:

AT+WMFM=0,0,1

After that the WMFM answered with:

AT+WMFM?  
+WMFM: 0,2,1,0 \<- so the USART1 seems to be closed?!  
+WMFM: 0,2,2,0  
+WMFM: 0,2,3,1  
+WMFM: 1,2,4,0  
+WMFM: 1,2,4,1

OK

With USART2 everything works fine. Is there another method to close the USART1? What is my mistake?

Thanks in advance!  
Andreas

My setup:  
Wireless CPU Q2686 (FW 7.43)  
M2M Studio (2.33)

---

<div class="post-metadata">

**Author:** ![Hebel23](https://avatars.discourse-cdn.com/v4/letter/h/ea666f/32.png) [@Hebel23](https://forum.sierrawireless.com/u/Hebel23)\
**Post date:** [July 20, 2010, 6:05pm UTC](https://forum.sierrawireless.com/t/using-uart1-in-adl-app/4575/2 "2010-07-20T18:05:18Z")

</div>

Hello again,

I solved the problem - probably it was a mistake (misconfiguration?) of the the OpenAT-OS.

I tried to open USART1 (via USB):  
AT+WMFM=0,1,1  
ERROR

Then I tried to close it (via USB):  
AT+WMFM=0,0,1  
ERROR

So I can´t open it and I can´t close it!  
After a complete reinstallation of the OpenAT-OS via AT+WDWL everything works fine!

Greetings  
Andreas
