# How to send and receive data using UART2 (RS232) interface

**URL:** <https://forum.legato.io/t/how-to-send-and-receive-data-using-uart2-rs232-interface/2403>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [April 1, 2017, 6:25am UTC](https://forum.legato.io/t/how-to-send-and-receive-data-using-uart2-rs232-interface/2403 "2017-04-01T06:25:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![raf](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@raf](https://forum.legato.io/u/raf)\
**Post date:** [April 2, 2017, 11:59pm UTC](https://forum.legato.io/t/how-to-send-and-receive-data-using-uart2-rs232-interface/2403/3 "2017-04-02T23:59:34Z")

</div>

Hi @rups

If you’re running the app as ‘sandboxed’, you will need to request read/write acces to the device in your `.adef` file.

```auto
requires:
{
    device:
    {
        // read and write access to the UART2 port.
        [rw] /dev/ttyHSL1 /dev/ttyHSL1
    }
}

```

Alternately, you can try running the app unsandboxed:

```auto
sandboxed: false

```

Cheers,  
Raf

---

_[View the full topic](https://forum.legato.io/t/how-to-send-and-receive-data-using-uart2-rs232-interface/2403)._
