Aaron Miller wrote:
> Sorry to reply to my own message, but I made headway on this. A "ps
> - ax" shows a getty running on tty1, but I didn't see any keystrokes
> when I did a "cat /dev/tty1". However I can see the keystrokes
> appear when I press "enter" so I imagine I just have to stty
> /dev/tty1 into some single-character mode and it will work fine.
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?).
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.
--
Linux Home Automation Neil Cherry
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
http://home.comcast.net/~ncherry/ Backup site
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/
|