Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Linux in General => Linux Development & Programming => Topic started by: hitu on April 05, 2004, 03:46:44 PM
-
Hello! i am Hiten from INDIA.
How can i program the SERIAL COM port using basic C programs in UNIX?
I actually want the address of this port and a small snippet code which will work at my location.
I am using RED HAT 9.0 linux.
i hope some one helps me out by sending a mail at hiten_sethaliya@yahoo.com / hiten_sethaliya@rediffmail.com
thank u!
-
Read this before you post another
www.tldp.org/HOWTO/Serial-HOWTO.html
-
I think all the devices are unde /dev directory.
So if u want data from webcam u can just use /dev/video0.
In C u can use commaned like open,send ,recieve to send or recieve data
:lol:
-
find the appropriate file under /dev, find the base address of that particular port, if you can do that, then just use inb() or outb() according to your requirement. good luck!!