# AT command port select

**URL:** <https://forum.legato.io/t/at-command-port-select/2526>\
**Category:** Legato Application Framework\
**Created:** [July 6, 2017, 2:41am UTC](https://forum.legato.io/t/at-command-port-select/2526 "2017-07-06T02:41:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lumao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/lumao/32/167_2.png) [@lumao](https://forum.legato.io/u/lumao)\
**Post date:** [July 6, 2017, 2:41am UTC](https://forum.legato.io/t/at-command-port-select/2526/1 "2017-07-06T02:41:29Z")

</div>

Hi forum,

As I known, I can send the AT command via the micro-USB Port from a PC by entering, #microcom -E /dev/ttyAT

Is it possible to use the UART1 interface start my AT command travel?

How can I open it ?

Which interface is the default AT port on the target?  
Can anyone tell me?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![gregnietsky](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@gregnietsky](https://forum.legato.io/u/gregnietsky)\
**Post date:** [July 6, 2017, 8:26am UTC](https://forum.legato.io/t/at-command-port-select/2526/2 "2017-07-06T08:26:25Z")

</div>

On the WP85XX i am connected to at the moment its running a getty on HSL1 i can can connect to it and use it as the console …

In the devices section of devstudio you can change this behaviour

```
/sbin/getty ttyHSL1 115200 vt100
```

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [July 6, 2017, 1:14pm UTC](https://forum.legato.io/t/at-command-port-select/2526/3 "2017-07-06T13:14:28Z")

</div>

Hi,

By default UART1 is not an AT port but you change that through devstudio possibly or with the `AT!MAPUART` command.  
Cf [http://legato.io/legato-docs/latest/howToCustomizeUART.html](http://legato.io/legato-docs/latest/howToCustomizeUART.html)

For instance `AT!MAPUART=1,1` should make UART1 an AT command interface.  
`AT!MAPUART=1,2` would make UART2 an AT command interface (be careful with the weird parameters order).

---

<div class="post-metadata">

**Author:** ![lumao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/lumao/32/167_2.png) [@lumao](https://forum.legato.io/u/lumao)\
**Post date:** [July 7, 2017, 12:23am UTC](https://forum.legato.io/t/at-command-port-select/2526/4 "2017-07-07T00:23:48Z")

</div>

Dear gregnietsky,  
Thanks.

---

<div class="post-metadata">

**Author:** ![lumao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/lumao/32/167_2.png) [@lumao](https://forum.legato.io/u/lumao)\
**Post date:** [July 7, 2017, 12:43am UTC](https://forum.legato.io/t/at-command-port-select/2526/5 "2017-07-07T00:43:14Z")

</div>

Dear CoRfr,

Thank you for you info. This may help me.  
Is it possible to send my AT command via I2C BUS to wp8548 module?  
See the flow chart:

 ![|690x0](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/bf00bef7d80319bdc332d19b896c39c939c2c8c7.bmp) ![|690x0](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/bf00bef7d80319bdc332d19b896c39c939c2c8c7.bmp)

---

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://forum.legato.io/u/davidc)\
**Post date:** [July 7, 2017, 8:34pm UTC](https://forum.legato.io/t/at-command-port-select/2526/6 "2017-07-07T20:34:27Z")

</div>

Hiya.

Not without writing an app to run on the WP85.

And the WP85 only has a master I2C port, so you’d have to use a GPIO to send a request from your device to the WP85, then have the WP85 poll your device over I2C.

ciao, Dave

---

<div class="post-metadata">

**Author:** ![lumao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/lumao/32/167_2.png) [@lumao](https://forum.legato.io/u/lumao)\
**Post date:** [July 7, 2017, 11:40pm UTC](https://forum.legato.io/t/at-command-port-select/2526/7 "2017-07-07T23:40:12Z")

</div>

Understood!  
Thank you for your information.

Regards!

Milo lu — lumao1122

在2017年07月08日 04:44，davidc 写道：  
| | davidc  
July 7 |

Hiya.

Not without writing an app to run on the WP85.

And the WP85 only has a master I2C port, so you’d have to use a GPIO to send a request from your device to the WP85, then have the WP85 poll your device over I2C.

ciao, Dave

Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.
