TR : Some more info on console pleasure!

Etienne Fortin etienne.fortin at sensio.tv
Fri Nov 5 14:50:03 UTC 2004



-----Message d'origine-----
De : Etienne Fortin [mailto:etienne.fortin at sensio.tv] 
Envoyé : 5 novembre, 2004 09:46
À : 'Thomas Doerfler'
Objet : Some more info on console pleasure!


Hi Thomas (and everyone else),
Some more informations on my investigations:

1) The place where the rawInBuf "stuck" (ie Head and Tail value) is
dependant on the content of the data I'm trying to send. Depending on
the file I select for transmission, the place where the rawInBuf stuck
change. For my test file, it's 1161 characters. After that, termios
receive nothing (or thinks there's nothing to receive). For another
file, with different data, the value will be different. Something to do
with a "control" character interpreted a certain way?

2) The difference of baudrate should not have an impact. I have 9630,
the computer sends at 9600. According to some site on UART and modem
transmission, an error of 0.50% is tolerable for speed greater than 9600
bauds.

3) I don't seem to have any break, parity (anyway parity not active),
framing or overrun error. I created error counters in my isr and they
are all zeros when the semaphore stuck.

4) It's 9h30 in the morning and I already have an headache :)

Any help would be appreciated!

Etienne





-----Message d'origine-----
De : Thomas Doerfler [mailto:Thomas.Doerfler at imd-systems.de] 
Envoyé : 5 novembre, 2004 07:41
À : Joel Sherrill <joel at OARcorp.com>; Etienne Fortin
Cc : rtems-users at rtems.com
Objet : Re: [Fwd: RE : Console problem update]


Hi,

in the current version of termios.c, there is a function:

rtems_status_code rtems_termios_bufsize (
  int cbufsize,
  int raw_input,
  int raw_output
)
{
  rtems_termios_cbufsize        = cbufsize;
  rtems_termios_raw_input_size  = raw_input;
  rtems_termios_raw_output_size = raw_output;
  return RTEMS_SUCCESSFUL;
}

Calling this function with the appropriate buffer sizes BEFORE 
the console driver is initialized, should do the job.

So a proper call must be added somewhere at the start of the 
BSP...

It is a bit of a "clean hack" (does anything like that exist?) 
because this function currently has no declaration.

wkr,
Thomas.


> 
> I know this has been answered before.. could someone jump in please.
> 
> -- 
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel at OARcorp.com                 On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
>     Support Available             (256) 722-9985
> 
> 

--------------------------------------------
IMD Ingenieurbuero fuer Microcomputertechnik
Thomas Doerfler           Herbststrasse 8
D-82178 Puchheim          Germany
email:    Thomas.Doerfler at imd-systems.de
PGP public key available at: http://www.imd- systems.de/pgp_keys.htm





More information about the users mailing list