I cannot seem to get /dev/ttyS0 to work in linux.
When I run a program that open()s it, lsof /dev/ttyS0 doesn't display anything. Is that normal? I have a feeling something is wrong.
It is on 0x3f8 IRQ 4. I have tested that it was working by changing it to 0x3e8, and the BIOS change was duly detected by linux (as reflected in dmesg).
My code generates no response from my device at all. Am i doing something wrong? I use libserial, had tried the normal termios way before which didn't work so I figured I would try using a library since I might be doing something wrong. Nope, didn't work either.
If nobody knows/cares then never mind. I have already read the serial programming guide for linux. Nothing seems to help.
How can I determine whether the serial port is working in linux at all? (It is working in windows)
When I run a program that open()s it, lsof /dev/ttyS0 doesn't display anything. Is that normal? I have a feeling something is wrong.
It is on 0x3f8 IRQ 4. I have tested that it was working by changing it to 0x3e8, and the BIOS change was duly detected by linux (as reflected in dmesg).
My code generates no response from my device at all. Am i doing something wrong? I use libserial, had tried the normal termios way before which didn't work so I figured I would try using a library since I might be doing something wrong. Nope, didn't work either.
If nobody knows/cares then never mind. I have already read the serial programming guide for linux. Nothing seems to help.
How can I determine whether the serial port is working in linux at all? (It is working in windows)