RES: Is SIS UART simulation bi-diretional?
Fabrício de Novaes Kucinskis
fabricio at dea.inpe.br
Wed May 14 14:30:03 UTC 2008
[From Joel:]
> Perhaps it is configured for polled mode in the BSP. I recall that
> being the default in erc32.
I think this is not the problem. I did some more tests, and noticed that SIS
UARTA works if connected to stdin/stdout, but didn't if connected to ttyS1.
To test, I'm using a simple application (linked to the SIS BSP, not ERC32),
which gets 10 characters through a rtems_isr and sends them back in inverted
order.
If I don't use the "-uart1" parameter, SIS connects UARTA to stdin/stdout.
In this case, my application runs as expected: the traps are triggered, and
the characters are sent back to the simulated UARTA and shown in the
console.
But if I use "-uart1 /dev/ttyS1", no trap is triggered - but the application
running in SIS can send data through ttyS1, just can't receive.
I know ttyS1 is not the problem, because it works properly with kermit.
What could explain this behavior?
Thanks again and best regards,
Fabrício.
-----Mensagem original-----
De: Joel Sherrill [mailto:joel.sherrill at oarcorp.com]
Enviada em: quarta-feira, 14 de maio de 2008 10:42
Para: Fabrício de Novaes Kucinskis
Cc: RTEMS - Mailing List
Assunto: Re: Is SIS UART simulation bi-diretional?
Fabrício de Novaes Kucinskis wrote:
>
> Hello,
>
>
>
>
>
> I'm without my ERC32 development board at the moment, and I need to
> debug some applications which involve serial communication through the
> ERC32 UARTs.
>
>
>
> When I run the command 'sparc-rtems4.7-sis -uart1 /dev/ttyXX', SIS
> connects to the 'ttyXX' device and my application sends data as
> expected. However, it can't receive data through the simulated UART.
> No trap is triggered.
>
>
>
> I'm used to SIS, but I've never used it to simulate serial
> communication. Is it really possible to inject data through a device
> connected to SIS? The manual (and the proper '-uart1' option) imply
> that it is possible, so maybe I'm missing something.
>
>
>
Perhaps it is configured for polled mode in the BSP. I recall that
being the
default in erc32.
I am pretty sure it works bidirectionally. I think I have run the
fileio/shell
example on it.
>
> Thanks in advance and best regards,
>
>
>
>
>
> Fabrício de Novaes Kucinskis - DEA / INPE
> --------------------------------------------------------------------
> Onboard Data Handling Group - SUBORD
> Aerospace Electronics Division
> Brazilian National Institute for Space Research
>
>
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list