# problem with UART2

**URL:** <https://forum.sierrawireless.com/t/problem-with-uart2/2543>\
**Category:** General\
**Created:** [September 24, 2008, 10:21am UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543 "2008-09-24T10:21:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kban](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@kban](https://forum.sierrawireless.com/u/kban)\
**Post date:** [September 24, 2008, 10:21am UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543/1 "2008-09-24T10:21:11Z")

</div>

Hi ppl! The problem is - i can’t activate UART2 in my Q2687. I sent at+wmfm=0,1,2 and the answer is ERROR, without any error code. When I send at+wmfm?  
the answer is  
+WMFM: 0,2,1,1  
+WMFM: 0,2,2,1  
+WMFM: 0,2,3,0  
+WMFM: 1,2,4,0  
+WMFM: 1,2,4,1  
Why there is no any values with +WMFM: 0,1,_,_ ? Help me plz, if u can…

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [September 24, 2008, 10:26am UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543/2 "2008-09-24T10:26:54Z")

</div>

> [@kban](#):
>
> the answer is ERROR, without any error code.

Did you issue AT+CMEE=1 to request the additional error codes…?

---

<div class="post-metadata">

**Author:** ![kban](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@kban](https://forum.sierrawireless.com/u/kban)\
**Post date:** [October 1, 2008, 5:25am UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543/3 "2008-10-01T05:25:32Z")

</div>

“Did you issue AT+CMEE=1 to request the additional error codes…?”  
Thanks! Now the modem sends the answer - CME ROOR 3. Why this Operation not allowed?

---

<div class="post-metadata">

**Author:** ![Ralf\_Ebert](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@Ralf\_Ebert](https://forum.sierrawireless.com/u/Ralf_Ebert)\
**Post date:** [October 1, 2008, 6:48am UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543/4 "2008-10-01T06:48:31Z")

</div>

maybe because UART2 is already active. This is indicated by +WMFM: 0,2,2,1. If the UART2 is not active the result should be +WMFM: 0,2,2,0.

---

<div class="post-metadata">

**Author:** ![kban](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@kban](https://forum.sierrawireless.com/u/kban)\
**Post date:** [October 1, 2008, 7:28am UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543/5 "2008-10-01T07:28:55Z")

</div>

The result is +WMFM: 0,2,2,1. But, when I send at+wmfm=0,0,2 the result is +CME ERROR: 3 why i can’t close UART2 if it’s already active?

---

<div class="post-metadata">

**Author:** ![kban](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@kban](https://forum.sierrawireless.com/u/kban)\
**Post date:** [October 8, 2008, 9:46am UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543/6 "2008-10-08T09:46:12Z")

</div>

There is something strange - when i send at+wopen=0, and after that i send at+wmfm=0,1,2 - it works, and at+wmfm=0,0,2 works too. It seems like this command don’t works when the OAT application started…  
P.S. I do nothing with UART2 in my application…  
Please help me to solve my problem…

---

<div class="post-metadata">

**Author:** ![Ralf\_Ebert](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@Ralf\_Ebert](https://forum.sierrawireless.com/u/Ralf_Ebert)\
**Post date:** [October 8, 2008, 10:59am UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543/7 "2008-10-08T10:59:26Z")

</div>

Maybe UART2 use some GPIO — please take a look into the manual or data sheet of your module. If you use these ports in your application activation of the uart fails …

---

<div class="post-metadata">

**Author:** ![dvorreiter](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@dvorreiter](https://forum.sierrawireless.com/u/dvorreiter)\
**Post date:** [March 23, 2009, 2:48am UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543/8 "2009-03-23T02:48:41Z")

</div>

I have exactly the same problem. I have observed the following. Note that this used to work with firmware 6.63c but no longer works with R71b.

1. After starting my application I can open and close UART 2 using AT+WMFM=0,1,2 and AT=WMFM=0,0,2
2. However once I subscribe to the UART2 port - I can no longer use these commands either manually or in a program using the function  
adl\_atCmdCreate(OPEN\_UART2\_PORT,ADL\_AT\_PORT\_TYPE(ADL\_PORT\_UART1,FALSE), \_WMFM\_Handler,"\*",NULL).

Why this is I haven’t a clue

And I agree with kban that if i stop the application then these commands can be issued.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [March 23, 2009, 6:30am UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543/9 "2009-03-23T06:30:20Z")

</div>

> [@dvorreiter](#):
>
> once I subscribe to the UART2 port - I can no longer use these commands

Actually, that sounds like perfectly reasonable behaviour to me!

If your application has subscribed the UART, it is effectively “using” it - so I would expect that to prevent other commands from closing it, surely?

As a test, if your application unsubscribes the UART, can you then use those commands?

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [March 23, 2009, 8:34am UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543/10 "2009-03-23T08:34:59Z")

</div>

> [@kban](#):
>
> P.S. I do nothing with UART2 in my application…

> [@dvorreiter](#):
>
> I have exactly the same problem … I subscribe to the UART2 port

Therefore, it is not exactly the same problem, is it?

Unless there’s something that kban isn’t telling us…

---

<div class="post-metadata">

**Author:** ![andrej](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@andrej](https://forum.sierrawireless.com/u/andrej)\
**Post date:** [March 24, 2009, 2:16pm UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543/11 "2009-03-24T14:16:10Z")

</div>

Hi,

I had this problem too. It can be solved by redownloading the wpb.dwl file.

---

<div class="post-metadata">

**Author:** ![andrej](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@andrej](https://forum.sierrawireless.com/u/andrej)\
**Post date:** [March 24, 2009, 2:17pm UTC](https://forum.sierrawireless.com/t/problem-with-uart2/2543/12 "2009-03-24T14:17:49Z")

</div>

Sorry I meant to say w.dwl file.
