Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
* tty: uart: loopback test
@ 2019-03-26 11:52 Subhashini Rao Beerisetty
  2019-03-27  2:15 ` hariprasad kelam
  0 siblings, 1 reply; 2+ messages in thread
From: Subhashini Rao Beerisetty @ 2019-03-26 11:52 UTC (permalink / raw)
  To: kernelnewbies; +Cc: linux-serial

  Hi All,


I’m looking for an userspace ‘C’ test code to transfer a file on UART
Tx line and receive the file on UART Rx line to test loopback
supported serial port.

Can anybody give example of such application?


Thanks

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: tty: uart: loopback test
  2019-03-26 11:52 tty: uart: loopback test Subhashini Rao Beerisetty
@ 2019-03-27  2:15 ` hariprasad kelam
  0 siblings, 0 replies; 2+ messages in thread
From: hariprasad kelam @ 2019-03-27  2:15 UTC (permalink / raw)
  To: Subhashini Rao Beerisetty; +Cc: linux-serial, kernelnewbies

[-- Attachment #1.1.1: Type: text/plain, Size: 1131 bytes --]

Hi Subhashini,




On Tue, 26 Mar 2019 at 17:23, Subhashini Rao Beerisetty <
subhashbeerisetty@gmail.com> wrote:

>   Hi All,
>
>
> I’m looking for an userspace ‘C’ test code to transfer a file on UART
> Tx line and receive the file on UART Rx line to test loopback
> supported serial port.
>

Before sending file on UART . I would suggest you to test sending simple
buffer and ensure you receive it correctly.


>
> Can anybody give example of such application?
>
I am assuming  you have correct hardware ,ensure RS-232 RX-TX lines are
short.If you are not sure follow below link
[image: image.png]

Coming to application which tests loop back,there are plenty tools like
1.minicom
2.cutecom etc.

if you want to specific application try below
https://elinux.org/images/b/b7/Uart-loopback.c
https://medium.com/@amitasinghchauhan/serial-port-debugging-101-loopback-test-4a7e40da9055


>
>
> Thanks
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

[-- Attachment #1.1.2: Type: text/html, Size: 2359 bytes --]

<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 &lt;<a href="mailto:subhashbeerisetty@gmail.com">subhashbeerisetty@gmail.com</a>&gt; 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>

[-- Attachment #1.2: image.png --]
[-- Type: image/png, Size: 10661 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-26 11:52 tty: uart: loopback test Subhashini Rao Beerisetty
2019-03-27  2:15 ` hariprasad kelam

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox