# WP7608 mangOH Red UART1 usage

**URL:** <https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917>\
**Category:** Uncategorized\
**Created:** [September 17, 2018, 5:19am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917 "2018-09-17T05:19:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![epsragh](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@epsragh](https://mangoh.discourse.group/u/epsragh)\
**Post date:** [September 17, 2018, 5:19am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/1 "2018-09-17T05:19:32Z")

</div>

Hi ,  
I am very new to mangoH Red WP7608.  
My question is,  
can I use the UART1(in app mode) (on raspberry pi connector) to interface to a sensor and get data and send data(UART1 sensor) to Airvantage cloud continuously.

I am asking because,  
is UART1 is used as AT cmd interface to communicate to WP cellular module.

please help.

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://mangoh.discourse.group/u/lotam)\
**Post date:** [October 25, 2018, 1:26am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/2 "2018-10-25T01:26:22Z")

</div>

Hi epsragh,

Please try AT command AT!MAPUART=17,1 then AT!RESET to allocate UART1 for Linux use.  
Or you can set via device management with Developer Studio.

Please refer to AT cmd guide for details:  
[https://source.sierrawireless.com/resources/airprime/software/airprime\_wpx5xx\_wp76xx\_wp77xx\_at\_command\_reference/](https://source.sierrawireless.com/resources/airprime/software/airprime_wpx5xx_wp76xx_wp77xx_at_command_reference/)

Thx

---

<div class="post-metadata">

**Author:** ![epsragh](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@epsragh](https://mangoh.discourse.group/u/epsragh)\
**Post date:** [October 25, 2018, 11:14am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/3 "2018-10-25T11:14:41Z")

</div>

Thanks for the reply,  
If I use UART1 in Linux Use mode , will my GPS and Cellular modules work properly(WP7608).

I am asking because I am under the assumption that GPS and Cellular modules use AT commands Interface (UART1 in “atCmd” mode) .

please help

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://mangoh.discourse.group/u/lotam)\
**Post date:** [October 25, 2018, 11:46am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/4 "2018-10-25T11:46:28Z")

</div>

Hi epsragh,

It really depends on your use case if you use AT cmd over UART1.  
After mapping UART1 for Linux/App use, the modem and GPS feature will still work and you still can access modem AT interface over USB, for example.

And if you want, you can restore the setting via AT cmd (!MAPUART) or devstudio any time.

Hope it helps.  
Thx

---

<div class="post-metadata">

**Author:** ![epsragh](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@epsragh](https://mangoh.discourse.group/u/epsragh)\
**Post date:** [October 26, 2018, 5:21am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/5 "2018-10-26T05:21:03Z")

</div>

Thanks for the Info.  
Currently, I am collecting sensor data on UART1 interface with “app Mode” configured using “uartMode” command and simultaneously I am trying to get GNSS TTFF fix via legato gnss serivice, many times I see GNSS TTFF fix taking long time or never fix.

I am I missing anything, please help.

---

<div class="post-metadata">

**Author:** ![awneil](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/awneil/32/486_2.png) [@awneil](https://mangoh.discourse.group/u/awneil)\
**Post date:** [October 26, 2018, 7:25am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/6 "2018-10-26T07:25:23Z")

</div>

What makes you think is has anything to do with UART1?

Have you tried the GNSS alone - without using UART1 and your sensors?

Are you in an area with good GNSS signal? ie, _not_ indoors?

Do other GNSS devices work well in the same location?

---

<div class="post-metadata">

**Author:** ![epsragh](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@epsragh](https://mangoh.discourse.group/u/epsragh)\
**Post date:** [October 26, 2018, 7:57am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/7 "2018-10-26T07:57:23Z")

</div>

Thanks for the reply,  
I have posted my problem here.

> **[GNSS 2D Fix Not happening in MangOH red wp7608](https://forum.legato.io/t/gnss-2d-fix-not-happening-in-mangoh-red-wp7608/3787)**
>
> Hi Question: I am using an UART sensor in RPI connector (UART1 in app mode configured). when ever this app runs I am not getting gnss 2d fix even after 5 min in out doors. but if i do not have this app (removed) and reboot and try for gnss fix I...

**What makes you think is has anything to do with UART1?**  
Ans: I think because Cellular module requires an AT command interface(UART1 only, not UART2 because does not have atcmd mode) to communicate to cloud or get gps location, so my app is using gnss and Cloud servicse and UART1 in app mode to get sensor data also. I think , my read/write to sensor via UART1 (/dev/ttyHS0) is affecting GNSS/Cellular module.

please correct me if I am wrong

---

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://mangoh.discourse.group/u/davidc)\
**Post date:** [October 26, 2018, 9:43am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/8 "2018-10-26T09:43:04Z")

</div>

Hiya,

If you’re using the Legato API to communicate with the GNSS, then you’re NOT using one of the UARTs to communicate with the GNSS engine.

Try a different antenna. I’ve had trouble in the past with different combinations of WP modules, GNSS antennas and the mangOH red.

Do you get a GNSS fix if you remove your UART sensor hardware, but leave the code opening the UART interface in place?

ciao, Dave

---

<div class="post-metadata">

**Author:** ![epsragh](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@epsragh](https://mangoh.discourse.group/u/epsragh)\
**Post date:** [October 26, 2018, 9:59am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/9 "2018-10-26T09:59:17Z")

</div>

If I keep /dev/ttyHS0(UART1) open and try gnss fix **I will never get GNSS fix**.

Antenna : do you have anything in mind so that I can buy.

Thanks for the Info

---

<div class="post-metadata">

**Author:** ![awneil](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/awneil/32/486_2.png) [@awneil](https://mangoh.discourse.group/u/awneil)\
**Post date:** [October 26, 2018, 10:17am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/10 "2018-10-26T10:17:39Z")

</div>

> [@epsragh](#):
>
> please correct me if I am wrong

See the reply by @davidc

As I said, you can prove it for yourself: can you get a GNSS fix _ **without** _ your sensor stuff?

If your GNSS problem persists _ **without** _ your sensor stuff - then it clearly isn’t caused by your sensor stuff!

---

<div class="post-metadata">

**Author:** ![epsragh](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@epsragh](https://mangoh.discourse.group/u/epsragh)\
**Post date:** [October 26, 2018, 11:25am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/11 "2018-10-26T11:25:55Z")

</div>

> [@awneil](#):
>
> As I said, you can prove it for yourself: can you get a GNSS fix _ **without** _ your sensor stuff?

ANS: \_I can get without my UART1 sensor , but with UART1 sensor file descriptor open I will never get GNSS fix, so I suspected GNSS module uses UART1(which is not by reffering @davidc ).  
still i do not know why i do not get GNSS fix with my UART1 Open.

thanks

---

<div class="post-metadata">

**Author:** ![awneil](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/awneil/32/486_2.png) [@awneil](https://mangoh.discourse.group/u/awneil)\
**Post date:** [October 26, 2018, 11:48am UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/12 "2018-10-26T11:48:34Z")

</div>

As @davidc says, the Legato API does not use the UART.

So are you using the Legato API?

---

<div class="post-metadata">

**Author:** ![epsragh](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@epsragh](https://mangoh.discourse.group/u/epsragh)\
**Post date:** [October 26, 2018, 12:08pm UTC](https://mangoh.discourse.group/t/wp7608-mangoh-red-uart1-usage/1917/13 "2018-10-26T12:08:30Z")

</div>

for GNSS and Cloud I am using  
positioningService.le\_gnss av , services call.  
for uart1 I am using open, read,write

Thanks for the reply.
