LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I find the serial ports COM number? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-find-the-serial-ports-com-number-703428/)

morty346 02-09-2009 03:16 PM

How do I find the serial ports COM number?
 
I am porting over code from windows and need to talk to a com device. I have used lspci to see that my pci card is showing up, but it does not show the com ports associated with it, I have looked everywhere and cannot find this information.

Also I am looking for a good tutorial on com communication of linux. I have found a few, but none of them are very in depth

Thank you

Greg

jailbait 02-09-2009 04:04 PM

The association between com ports and Linux devices is:

com1 -> /dev/ttyS0
com2 -> /dev/ttyS1
com3 -> /dev/ttyS2
com4 -> /dev/ttyS3

--------------------
Steve Stites

P.S. The com ports are serial devices. The handy Linux program for using serial ports is minicom. Literature on serial communications in general applies to Linux since Linux is completely standard in the way it uses the serial ports.

http://tldp.org/HOWTO/Serial-HOWTO.html

http://linux.die.net/man/1/minicom


All times are GMT -5. The time now is 11:00 AM.