# UART1 with Beta 14.07

**URL:** <https://forum.legato.io/t/uart1-with-beta-14-07/72>\
**Category:** Legato Application Framework\
**Created:** [October 1, 2014, 5:25pm UTC](https://forum.legato.io/t/uart1-with-beta-14-07/72 "2014-10-01T17:25:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvalletta](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@bvalletta](https://forum.legato.io/u/bvalletta)\
**Post date:** [October 1, 2014, 5:25pm UTC](https://forum.legato.io/t/uart1-with-beta-14-07/72/1 "2014-10-01T17:25:07Z")

</div>

I was successfully using UART2 (using ttyHSL1) with 14.04 but I know that the console is now allocated for UART2 in 14.07. I looked in the /dev directory and I only see ttyHSL1 as listed (as I would expect ttyHSL0 to be there too), so what device should be opened to access UART1 with the new version of Legato?

---

<div class="post-metadata">

**Author:** ![amitchell](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/amitchell/32/68_2.png) [@amitchell](https://forum.legato.io/u/amitchell)\
**Post date:** [October 14, 2014, 4:40pm UTC](https://forum.legato.io/t/uart1-with-beta-14-07/72/2 "2014-10-14T16:40:04Z")

</div>

You can configure the UARTs on those platforms using an AT command (AT!MAPUART)

The syntax is  
AT!MAPUART=a,b

a=service type  
b=the UART number

In this case the service is 17 (means used for customer application)

So, AT!MAPUART=1,17 will set UART 1 to be available for application use. I hope your firmware version is recent enough to support this.

The device not showing up is beuase the hardware is controlled by the modem core (due to configuration) and so is not available to linux.

Hope that helps.

---

<div class="post-metadata">

**Author:** ![bvalletta](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@bvalletta](https://forum.legato.io/u/bvalletta)\
**Post date:** [October 20, 2014, 5:26pm UTC](https://forum.legato.io/t/uart1-with-beta-14-07/72/3 "2014-10-20T17:26:04Z")

</div>

That seemed to work. But is there a way I can do that from my application? I didn’t notice any Legato APIs that I could use to send AT commands to the modem. Or maybe I am just missing them?

---

<div class="post-metadata">

**Author:** ![amitchell](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/amitchell/32/68_2.png) [@amitchell](https://forum.legato.io/u/amitchell)\
**Post date:** [October 20, 2014, 9:35pm UTC](https://forum.legato.io/t/uart1-with-beta-14-07/72/4 "2014-10-20T21:35:26Z")

</div>

There is currently no way to do AT-commands from Legato. Actually we’re hoping you won’t need to.

Something like configuring what a UART is for would normally happen in the factory rather than being dynamic, so I’m not sure I see a case for having an API to do that. Do you have something in mind?

Regards,  
Andrew
