User mode test application for serial ports

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,



I would like to know is there any user mode test application source
code(in C language) available to test the serial port in Linux ?



Basically I need to get the following things.



Open the Serial interface (/dev/ttyn)
Set the Baud rate(does it calls tty_operations -> set_termios()?)
Close the Serial interface(/dev/ttyn)



Step1 & Step3 are simple by calling open() & close(), but I don’t know
how to set the baud rate, is there any API for this?



Later I will extend this program to issue various commands over this
serial interface.

-- 
Thanks,
Sekhar
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux