On Tue, Aug 03, 2010 at 12:24:08AM +0800, loody wrote: > Dear all: > I am poring usb serial device on my embedded system. > But I have no idea whether there exist simple test procedure on linux > for such device. > ( i know there are some terminal tools, but they are too complicated > for me, since I have to spend time on cross-compiling them) minicom? > suppose I create a tty usb device node. > Can I just "echo test > device node" and I will see "test" on the receiver? > (suppose serial device driver has implement write) That doesn't always work. If you have perl on your system, and a loopback plug on your usb-to-serial device, here's a simple script that I use for testing. Hope this helps, greg k-h
Attachment:
serial_loopback.pl
Description: Perl program