Hi!
I have a RedHat Linux box that is trying to read/send data through to an AB 1770-KF2 data highway via an RS-232 (serial) port. However the C code that manages it is returning an I/O-Timeout error. The code uses a "read" statement. Which returns a -1. However, a previous line "opens" the connection with no issues.
According to the linux header file (unistd.h), 'read' returns the number read or -1 for errors or 0 for EOF.
Has anyone come across this before? Is there any diagnosis that I can perform? I have previously connected an RS-232 line tester to make sure everything's ok and it lights up fine. The device ID has been declared properly as far as I can tell...
Please help!
-Scrawny
ps. The linux pc is an upgrade from an old Xenix pc which currently works with the same code with no issues.
I have a RedHat Linux box that is trying to read/send data through to an AB 1770-KF2 data highway via an RS-232 (serial) port. However the C code that manages it is returning an I/O-Timeout error. The code uses a "read" statement. Which returns a -1. However, a previous line "opens" the connection with no issues.
According to the linux header file (unistd.h), 'read' returns the number read or -1 for errors or 0 for EOF.
Has anyone come across this before? Is there any diagnosis that I can perform? I have previously connected an RS-232 line tester to make sure everything's ok and it lights up fine. The device ID has been declared properly as far as I can tell...
Please help!
-Scrawny
ps. The linux pc is an upgrade from an old Xenix pc which currently works with the same code with no issues.