Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - write to /dev/ser with EIO error: (4 Items)
   
write to /dev/ser with EIO error  
Hello,

I have encountered a repeatable situation where write to /dev/ser returns with -1 and errno is set to EIO.

Any idea what could have gone wrong?

Thanks, PKY
Re: write to /dev/ser with EIO error  
Anyone with access to the source files of libiochar? 
In devc-ser8250 I haven't found anything about EIO.

Thanks, PKY

> Hello,
> 
> I have encountered a repeatable situation where write to /dev/ser returns with
>  -1 and errno is set to EIO.
> 
> Any idea what could have gone wrong?
> 
> Thanks, PKY


Re: write to /dev/ser with EIO error  
> Anyone with access to the source files of libiochar? 
> In devc-ser8250 I haven't found anything about EIO.

Is it a sticky EIO (ie keeps happenign on every subsequent write)?  The only explicit EIO I found in io-char is the 
implementation of the POSIX "modem disconnect" requirement.  Have you tried "stty +clocal" to disable this sort of 
processing ...
Re: write to /dev/ser with EIO error  
> > Anyone with access to the source files of libiochar? 
> > In devc-ser8250 I haven't found anything about EIO.
> 
> Is it a sticky EIO (ie keeps happenign on every subsequent write)?  The only 
> explicit EIO I found in io-char is the implementation of the POSIX "modem 
> disconnect" requirement.  Have you tried "stty +clocal" to disable this sort 
> of processing ...

It keeps returning EIO until I do a new open to this device.

No, I haven't tried stty +clocal, I will try it.

Thanks, PKY