Using serial port with external device
Hi,
I am new to linux and was just wondering how one can see the status of the serial ports....as in i have to write a program to send and receive data thru the serial port.....but i dunno what the address of my serial port is (ttyS0-ttyS29)....there r a lot of ttyS* in my /dev directory....
i just wanted to check how to assign
ttyfd = open("/dev/ttyS_",O_RDWR);
in the program, i am using the above line to open the serial port but i need to know which number it is say 0 or 1 etc.....
Any help will be greatly appreciated .....
Thanks a lot...
|