This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how use termios_lookup? some question


"½Å¿µ±Ô" wrote:
> 
> hello.
> My name is Young-kyu, Shin.
> 
> I worder about termios_lookup function.
> How use termios_lookup?
> Please, show me some examples.

You shouldn't use termios_lookup. Use the standard termios API, starting
with just using open() with /dev/termios0 or whatever. Make sure your
configuration is set up appropriately under CYGPKG_IO_SERIAL_TERMIOS.

> And, My program is transfering between PC to ARM board(customized).
> ARM board is missing some data(not all data) which received binary data(raw
> data of image) from PC.
> following source is termios setting.

If, as you said elsewhere, it works when not decrypting, but doesn't when
using raw data, you are getting an overrun. It _shouldn't_ be in the UART
level if it works 100% when not decrypting (unless you are disabling
interrupts). Instead it is probably an overflow in the software serial
buffers. You can change their size in the the device driver configuration.
They are normally 128 bytes by default. Try increasing to something large
like 64K. If that makes a difference you know that is the cause.

Another option would be to enable flow control - although you may have to
add the support in your serial device driver!

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]