Linux in General > Linux Development & Programming
getting data frm COM Serial Port using C Programs in UNIX
(1/1)
hitu:
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!
sudipta_cht:
Read this before you post another
www.tldp.org/HOWTO/Serial-HOWTO.html
Alien74:
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:
jeeva:
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!!
Navigation
[0] Message Index
Go to full version