Problem with remote control

"Guenther Sohler" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Dear Users,

On ebay I got a usb remote control. This is a ir receiver having a usb plug and an ir remote control sender.

It is a  Cypress Semiconductor eDio USB Multi Remote Controller
from Formosa Industrial Computing, Inc.
lsusb shows
Bus 003 Device 023: ID 147a:e006 Formosa Industrial Computing, Inc.

However I want to receive the key strokes

I tried

cat /dev/input/event3 | xxd

But just the first press after plugging in is received. To receive more events you have to plug in again.
the same applies to evexec, but the data displayed is incorrect

Looking at usbmon output looks like this ( when something is requesting data from the receiver)

dee5f2e0 614940404 C Ii:023:01 0 4 = 40001b0f
dee5f2e0 614940421 S Ii:023:01 -115 4 <
dee5f2e0 615036386 C Ii:023:01 0 4 = 40801b0f
dee5f2e0 615036401 S Ii:023:01 -115 4 <
dee5f2e0 615284335 C Ii:023:01 0 4 = 40801b0f
dee5f2e0 615284353 S Ii:023:01 -115 4 <


This looks better. Every keystroke is received.
But i realized thet the data sent is different. For every event there are 4 bytes sent
(but my usb keyboard always sends 8 bytes)

I suspect an incompatibility with the usbhid driver which requests 8 bytes but just gets 4 bytes each time and so
just works out for the 1st event.

I really accept writing my own usb driver(i already have experiance) but my driver is never used for my remote device,
as usbhid still takes precedence and i cannot remove the usbhid driver, because its not compiled as a module.

How can I best properly receive the remote keystrokes without having to parse the usbmon output ?

rds

-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.