> You've got 2 different problems that you need to resolve. The tty1
> is buffered (buffers the characters until you hit an EOL - End Of
> Line). I'm not sure how you can use the stty to unbuffer the
> key strokes (are you using a keyboard or a serial port?).
The USB dongle looks just a like a keyboard HID to linux. It seems
to inject the keystrokes just fine but, like you noted, tty1 is
buffered. I have seen some examples of putting the tty into "raw"
mode with stty and it works just fine on /dev/tty with terminal
input, but still waits for a carriage return from the usb keyboard.
Hmm...
(See http://www.cit.gu.edu.au/~anthony/info/shell/file.hints for
some stty tricks)
> To access the USB dongle you need to open up the USB device
> (you'll need a device driver which you'll need to write) or
> you'll need to load the hid driver and access the HID - Human
> Interface Device. You can use libhid to do this. I hope to be
> working on something like this later. Right now I'm in the
> middle of several things that need to be done first.
As far as I can tell, linux thinks the dongle is a usb keyboard so I
hope it is easier than this. Maybe wishful thinking.
I'll post if I get it to work!
Thanks,
Aaron
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|