<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Subhashini,<div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 26 Mar 2019 at 17:23, Subhashini Rao Beerisetty <<a href="mailto:subhashbeerisetty@gmail.com">subhashbeerisetty@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  Hi All,<br>
<br>
<br>
I’m looking for an userspace ‘C’ test code to transfer a file on UART<br>
Tx line and receive the file on UART Rx line to test loopback<br>
supported serial port.<br></blockquote><div><br></div><div>Before sending file on UART . I would suggest you to test sending simple buffer and ensure you receive it correctly.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Can anybody give example of such application?<br></blockquote><div>I am assuming  you have correct hardware ,ensure RS-232 RX-TX lines are short.If you are not sure follow below link</div><div><img src="cid:ii_jtqkrqwr0" alt="image.png" width="217" height="206"><br></div><div><br></div><div>Coming to application which tests loop back,there are plenty tools like</div><div>1.minicom</div><div>2.cutecom etc.</div><div><br></div><div>if you want to specific application try below </div><div><a href="https://elinux.org/images/b/b7/Uart-loopback.c">https://elinux.org/images/b/b7/Uart-loopback.c</a><br></div><div><a href="https://medium.com/@amitasinghchauhan/serial-port-debugging-101-loopback-test-4a7e40da9055">https://medium.com/@amitasinghchauhan/serial-port-debugging-101-loopback-test-4a7e40da9055</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
Thanks<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div></div></div></div>