My specific problem is not being able to read from either COM1 or COM2. My device which uses write( ) for output works fine. Although file descriptors are assigned on open( ), and write( ) works, read( ) returns a -1 when querying the no. of bytes returned. I used "errno" and came up with "11" which should be an EIO error. If I can write to a port I think I should be able to read from it also.
My specific problem is not being able to read from either COM1 or COM2. My device which uses write( ) for output works fine. Although file descriptors are assigned on open( ), and write( ) works, read( ) returns a -1 when querying the no. of bytes returned. I used "errno" and came up with "11" which should be an EIO error. If I can write to a port I think I should be able to read from it also.