[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: porting app (again)



Do you really have problems when you run it at 9600?
What buffer size are you using when reading from the port?
Are you using blocked or non-blocked reads/writes?
Are you using select() ?
Can you post the code for open, reading and writing?

/Johan


----- Original Message -----
From: RedHat <RedHat@xxxxxxx.net>
To: 'johan.adolfsson@xxxxxxx.com>; 'Orjan Friberg'
<orjanf@xxxxxxx.com>
Cc: dev-etrax <dev-etrax@xxxxxxx.com>
Sent: Sunday, October 14, 2001 8:37 PM
Subject: RE: porting app (again)


> Unfortunately I cant' enable hardware flow control (the Agfa ePhoto camera
> only has TX/RX/Gnd pins).
>
> The app does a little bit of work (like writing the image to the file
> system).
>
> But nothing terribly intensive.
>
> I've tried 9600, 57500, and 115200 (which work fine on an x86 box).
>
> Thanks,
>
> Lance
>
> -----Original Message-----
> From: johan.adolfsson@xxxxxxx.com">mailto:johan.adolfsson@xxxxxxx.com]
> Sent: Sunday, October 14, 2001 7:56 AM
> To: RedHat; 'Orjan Friberg'
> Cc: dev-etrax
> Subject: Re: porting app (again)
>
>
> Try enabling RTS/CTS flow control.
> What baudrate are you using?
> Are your application doing a lot of work while reading
> from the serial port?
> /Johan
>
>
> ----- Original Message -----
> From: RedHat <RedHat@xxxxxxx.net>
> To: 'Orjan Friberg' <orjanf@xxxxxxx.com>
> Cc: dev-etrax <dev-etrax@xxxxxxx.com>
> Sent: Saturday, October 13, 2001 8:07 PM
> Subject: RE: porting app (again)
>
>
> > Orjan,
> >
> > I tried that, but still no luck.
> >
> > Any other pointers? I'm scratching my head.
> >
> > Lance
> >
> > -----Original Message-----
> > From: Orjan Friberg [mailto:orjan.friberg@xxxxxxx.com]
> > Sent: Thursday, October 11, 2001 1:52 AM
> > To: RedHat
> > Cc: dev-etrax
> > Subject: Re: porting app (again)
> >
> >
> > RedHat wrote:
> > >
> > > Mikael,
> > >
> > > Thanks for the tip.
> > >
> > > The upgrade indeed allowed the app to run.
> > >
> > > Now I'm suffering from some new problems (etrax specific, as this runs
> > under
> > > x86).
> > >
> > > ttyS0 flip-buffer overrun!
> > > ttyS0 flip-buffer overrun!
> > > ttyS0 flip-buffer overrun!
> > > ttyS0 flip-buffer overrun!
> > > Error 10009: excessive retries on getvar
> > > command "image" failed, abort
> > >
> > > I'm trying to download a 200k image over the serial port.
> > >
> > > Small (text) transfers work fine.
> > >
> > > Any tips?
> >
> > Here's some low-hanging fruit you might want to grab.  First, change
> > #define TTY_FLIPBUF_SIZE 512 to 768 in os/linux/include/linux/tty.h.
> > (Beware though, you can't increase the flip buffer size to much more
> > than that; see the comment in tty.h.)  Second, change #define
> > MAX_FLUSH_TIME 8 to 1 in os/linux/arch/cris/drivers/serial.c.  This
> > should improve handling of large transfers over the serial port.
> >
> > --
> > Orjan Friberg              E-mail: orjan.friberg@xxxxxxx.com
> > Axis Communications AB     Phone:  +46 46 272 17 68
> >
>