# 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:** 5

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 11, 2021, 9:12am UTC](https://forum.legato.io/t/how-to-send-and-receive-data-using-uart2-rs232-interface/2403/5 "2021-08-11T09:12:22Z")

</div>

You can use attached lrz binary.  
Here is an example to transfer file via UART console:

1. transfer this lrz binary to /tmp of module by WINSCP
2. cd /tmp; chmod 777 ./lrz;
3. ./lrz -X cwe \</dev/ttyHSL1 \>/dev/ttyHSL1
4. In tera term, File → Transfer → XMODEM → tick 1K box → choose the file you want to transfer.
5. the file will be in /tmp with filename “cwe”.

[lrz](https://forum.legato.io/uploads/short-url/AoG97UPbPfQ2xS4vgYQKO4AQz2A) (202.7 KB)

---

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