2011-01-11 03:11:22 How to read key values from ADESSO ARC-1100 remote?
John Peter (INDIA)
Message: 97317
Hai,
I am using USB Keyboard for in my custom board BF533 using 2009R1 dist. For that I used the following code for opening and reading values from the USB Keyboard driver. I can get the key values of the keyboard from the kernel. The following is the code I used for USB keyboard.
int fKeydesc;
struct input_event Key_ev[64];
if ((fKeydesc = open("/dev/input/event2", O_RDONLY)) < 0)
{
perror("evtest");
return 1;
}
int rd = read(fKeydesc, Key_ev, sizeof(struct input_event) * 64);
if (rd < (int) sizeof(struct input_event))
{
perror("\nevtest: error reading");
return 1;
}
if (Key_ev[1].value == 1)
return (Key_ev[1].code);
Now I am going to use the IR USB remote(ADESSO ARC-1100) for my application. This IR driver is detected under /dev/input/event3. I am able to open the driver successfully. But I cant read the values from the remote. Can any one please clarify in this regard? Please find attached the header file evtest1.h used for input event.
regards,
Peter.
evtest1.h
QuoteReplyEditDelete
2011-01-11 13:12:22 Re: How to read key values from ADESSO ARC-1100 remote?
Mike Frysinger (UNITED STATES)
Message: 97350
what is the VID:PID for the device ?
does it work on your desktop Linux system ?
is it faking a keyboard input, or is it actually transmitting IR info ? cooked or raw ?
QuoteReplyEditDelete
2011-01-12 06:33:20 Re: How to read key values from ADESSO ARC-1100 remote?
John Peter (INDIA)
Message: 97396
Hai,
Its working well in Linux PC as it does in Windows PC. Its not faking keyboard. The remote sends signal to IR receiver connected via USB connected to the PC. The following is the VID and PID I got in my console output .
usb 1-2: new low speed USB device using r8a66597_hcd and address 2
usb 1-2: configuration #1 chosen from 1 choice
usb 1-2: New USB device found, idVendor=05a4, idProduct=9881
usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Please clarify.
QuoteReplyEditDelete
2011-01-12 11:39:02 Re: How to read key values from ADESSO ARC-1100 remote?
Mike Frysinger (UNITED STATES)
Message: 97400
so enable the same options you're using on your Linux desktop for the Blackfin board