ts-7000
[Top] [All Lists]

[ts-7000] Re: Reading "keystrokes" from a wireless remote

To:
Subject: [ts-7000] Re: Reading "keystrokes" from a wireless remote
From: "Aaron Miller" <>
Date: Mon, 16 Oct 2006 03:39:18 -0000
> 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/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU