How to write to a serial port ?
i have written an interrupt handler w.r.t to the serial ports. Kindly guide me how to detect an active serial port on suse 10.3.
I have a loopback hardware, I have plugged it into the serial port. I've written a isr w.r.t to the serial port but, I wanted to know how to write to a serial port, in order to test my program ! |
I have found out the command to check my system's serial support:
You can run the following command from root login ! dmesg | grep tty This command gives the list of active serial ports on your comp. as follows: serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A |
I got a new problem with the following interrupt handler code with respect to serial port 1. I have a cable connecting two serial ports of two computers with linux on them. On one computer there is minicom installed and on another I have compiled and successfully insmoded the below shown module. But when I type on minicom, it doesnt show anything (by the command 'dmesg') on the other computer where my module is loaded !
Kindly help !! Quote:
|
All times are GMT -5. The time now is 10:12 PM. |