public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* Using RS232 Terminal as input device
@ 2006-06-06  8:08 hbruegge
  2006-06-11 19:51 ` Guennadi Liakhovetski
  0 siblings, 1 reply; 3+ messages in thread
From: hbruegge @ 2006-06-06  8:08 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]

Hi all


I am using the kernel (2.6.15) in an ppc-based embedded system through a 
serial console on ttyS0 with no problems.

Now I attached a graphic card to the system, which is correctly 
recognized and initialised by the Kernel. If I add "console=tty0 
console=ttyS0,57600" to the bootargs, I have the boot messages of the 
kernel on the screen and a login on the ttyS0.

What I now want to do is to disable the serial console and use the 
graphic card as output and the raw character data (ASCII) coming in from 
the terminal connected to the rs232 as input.

I have a login on the screen, if I delete the line console=ttyS0,57600 
from the bootargs, but unfortunately no input if a key is pressed on the 
terminal keyboard.


So my problem and question is, apart from not totally understanding the 
input device system of 2.6.x ;-)
Has anyone ever done that?
Is it just a kernel configuration problem? If so what modules have to be 
compiled in?
Are there any good documentaion about the new input device system ?

Basically I am totally confused ;-), so any ideas are appreciated.

Cheers

Harald

[-- Attachment #2: Type: text/html, Size: 1411 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Using RS232 Terminal as input device
  2006-06-06  8:08 Using RS232 Terminal as input device hbruegge
@ 2006-06-11 19:51 ` Guennadi Liakhovetski
  2006-06-12  7:55   ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Guennadi Liakhovetski @ 2006-06-11 19:51 UTC (permalink / raw)
  To: hbruegge; +Cc: linuxppc-embedded

On Tue, 6 Jun 2006 hbruegge@rockwellcollins•com wrote:

> Hi all
> 
> 
> I am using the kernel (2.6.15) in an ppc-based embedded system through a 
> serial console on ttyS0 with no problems.
> 
> Now I attached a graphic card to the system, which is correctly 
> recognized and initialised by the Kernel. If I add "console=tty0 
> console=ttyS0,57600" to the bootargs, I have the boot messages of the 
> kernel on the screen and a login on the ttyS0.
> 
> What I now want to do is to disable the serial console and use the 
> graphic card as output and the raw character data (ASCII) coming in from 
> the terminal connected to the rs232 as input.

Well, it is possible... The keyword to google for is inputattach. A 
hint - it is a part of the linux-console package on sourceforge: 
http://linuxconsole.cvs.sourceforge.net/linuxconsole/ruby/utils/. You 
probably will have to write some glue driver. Or, probably, an easier 
option - write a user-space daemon that reads from /dev/ttyS0 and sends 
events to uinput. With this you don't need any kernel drivers - just a 
user-space daemon.

HTH
Guennadi
---
Guennadi Liakhovetski

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Using RS232 Terminal as input device
  2006-06-11 19:51 ` Guennadi Liakhovetski
@ 2006-06-12  7:55   ` Peter Korsgaard
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2006-06-12  7:55 UTC (permalink / raw)
  To: linuxppc-embedded

>>>>> "Guennadi" == Guennadi Liakhovetski <g.liakhovetski@gmx•de> writes:

Hi,

Guennadi> Or, probably, an easier option - write a user-space daemon
Guennadi> that reads from /dev/ttyS0 and sends events to uinput. With
Guennadi> this you don't need any kernel drivers - just a user-space
Guennadi> daemon.

handhelds.org's kbdd is such a daemon. See
http://handhelds.org/cgi-bin/cvsweb.cgi/apps/kbdd/

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-06-12  8:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-06  8:08 Using RS232 Terminal as input device hbruegge
2006-06-11 19:51 ` Guennadi Liakhovetski
2006-06-12  7:55   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox