ts-7000
[Top] [All Lists]

[ts-7000] Re: RS232 Questions/Problems

To:
Subject: [ts-7000] Re: RS232 Questions/Problems
From: "JD" <>
Date: Fri, 04 Jan 2008 20:56:57 -0000
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/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU