Hi Andy,
I had a similar problem with software handshaking, you have to sense the
+ohpaged. If you want you can then force it off. I had a similar problem
when receiving a spurious XOFF. Here’s some sample code that worked fine for
me modifed to work with ohpaged:
int IsPaged( int handle)
{
struct termios tc;
if ( !tcgetattr( handle, &tc ) )
{
if( tc.c_status & TC_OHFLOW )
return( 1 );
}
return( 0 );
}
PagedOff( int handle)
{
tcflow( handle, TCOONHW );
}
I counted consecutive paged errors then forced it off, not really applicable
in you case I guess.
Regards
Glyn
“andy” <andy@microstep-hdo.sk> wrote in message
news:39C0A582.810C4365@microstep-hdo.sk…
Sometimes Dev.ser generates +ohpaged and stops communication when cable
is removed from port and returned back. How to disable such behaviour ?
The communication is stopped until the flag is switched off. Furthermore
I don’t know how to switch the ohpaged flag off in C code (Watcom C
10.6, other attributes like DTR I can set up through qnx_ioctl(), but
not ohpaged). Now I am able to use stty utility only to resume
communication…
Thanks for any advice.
Andy