This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: Serial Console
- To: "amassa at cts dot com" <amassa at cts dot com>
- Subject: Re: [ECOS] Serial Console
- From: Jesper Skov <jskov at redhat dot com>
- Date: 20 Jun 2000 15:40:17 +0200
- Cc: jlarmour at redhat dot co dot uk, ecos-discuss at sourceware dot cygnus dot com
- References: <200006162125.OAA19726@batman.cts.com>
>>>>> "amassa@cts" == amassa@cts com <amassa@cts.com> writes:
amassa@cts> Is there a way to communicate from a terminal or GDB to
amassa@cts> the serial code directly. What I want to do is to be able
amassa@cts> to enter commands from a terminal and have a task running
amassa@cts> on my target get the command and parse it out.
You need to do it from a terminal as GDB does not allow you to send
out data (well, you could use the maintenance command if you really
want to go through GDB).
As for the target side, launch a thread which opens /dev/ser0 or
similar and read in characters. Parse them whichever way you want.
If you want a line-based interface you could use /dev/tty0 instead (I
think).
Jesper