setting CLOCAL fixed the stopping issue with fedora,but not the arm board.
Setting VMIN to 1 on the arm board makes it work sometimes :) ...
Sometimes it will run ok, sometimes it will always return 0 from the
read. Maybe an improvment as now it either does or doesnt work each
time :)
synchronous would be fine if ioctl(FIONREAD) worked as I would know
how many characters to attempt to read before reading them, so would
never have to wait.
However ioctl seems to fail or return a count of 0 (on the arm board)
when used in about the same time period as read failure does.
I could (and maybe will have to) use async mode, but a normal blocking
read should work as well since it is the default mode.
--- In "charliem_1216" <> wrote:
>
> --- In "JD" <john.donoghue@> wrote:
> >
> >
> > An interesting thing I just saw on the linux box is that if (in a
> > simple case) have hyperterm connected and press keys, it works ok
> > until I disconnect and reconnect hyperterm (without restarting the
> > test app)
> >
> > On the hyperterm restart, nothing I type into hyperterm registers as
> > being seen on the linux end.
> >
> > Is it a frame error or some other signal occuring that is stopping
> > everything?
> > And if so, how do you detect and clear (or just plain old ignore)
> > errors coming in.
> >
> > Windoze has a ClearCommError which gets and clears any errors - is
> > there a similar function I should use for linux?
> >
>
> Did you try the CLOCAL change I wrote in my first reply?
>
> I've seen two different things documented as to what happens when both
> VTIME and VMIN are zero. Maybe there is a difference between ARM and
> i386 serial port handling of this case. You could try VMIN = 1,
perhaps.
>
> There are some quite detailed howtos on linux serial port programming.
> You may find asnychronous I/O better suited for what you want than
> non-canonical.
>
> Regards, ........Charlie
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|