USB IR device

Ideas and dreaming will go this forum

nbd
Posts: 161
Joined: Wed Jan 13, 2010 12:02 pm

USB IR device

Post by nbd »

Hello. Would it be possible to attach USB IR device to the TV and control it by software? Is there a possibility to compile IR modules for that kernel?

My ultimate goal would be to use that IR device to send out IR commands to my amplifier, so when I press vol +/- from TV's remote control, they would activate sending of corresponding signals out to my amplifier.
User avatar
erdem_ua
SamyGO Admin
Posts: 3126
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: USB IR device

Post by erdem_ua »

Yes, quite possible. Needs 2 part.
1.)You needed to compile IR stack and make IR device operational. (easy one - req. moderate linux knowledge and compile kernel modules.)
2.) After you needed to dig into exeDSP, inject code around volume related functions. ( hard one - req. use IDA, understand ARM's Thumb ASM and spending many hours on exeDSP...)

After all, you can easily make it :) At least it's far easy than implementing DTS support :D
nbd
Posts: 161
Joined: Wed Jan 13, 2010 12:02 pm

Re: USB IR device

Post by nbd »

Ok, how about instead of 2) we just make standalone daemon that poll's the IR device and when it receives (*) the remote controls, it would do the detection of the vol+/- and then send out corresponding amplifier IR sequences.

(*) The IR device should be positioned so that it can receive the commands that are for TV. The natural place would be underneath the blinking light.

Does this sound achievable?
User avatar
erdem_ua
SamyGO Admin
Posts: 3126
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: USB IR device

Post by erdem_ua »

Yes, you can make (or find already made) daemon for this job. Test it under linux PC first, after you can port it to arm environment.
You can prepare required kernel drivers from SamyGO OE SVN by cross-compile toolchain. :)
nbd
Posts: 161
Joined: Wed Jan 13, 2010 12:02 pm

Re: USB IR device

Post by nbd »

Ok, I just placed an order for this:

http://iguanaworks.net/product1.psp

The next step is to make it work with my Linux box.
nbd
Posts: 161
Joined: Wed Jan 13, 2010 12:02 pm

Re: USB IR device

Post by nbd »

I have it working on my Linux box. I compiled the drivers with qemu (ARMEL port of Debian Squeeze) and managed to try them on the TV.
Now the problem seems to be that /dev is read only. The daemon (that listens to the device) says:

failed to bind server socket /dev/iguanaIR/0: Read-only file system

I'm not Linux guru, but could I bind the server socket to some other path? The driver is open source, so it's possible to modify it, but I don't know much about Linux internals. Could it work eg. on the /dtv/usb/iguanaIR/0 path?
User avatar
erdem_ua
SamyGO Admin
Posts: 3126
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: USB IR device

Post by erdem_ua »

I don't know much about linux /dev structure, can't help. But I am sure that some one will help about this.
jw1001
Posts: 166
Joined: Mon Dec 07, 2009 4:58 pm

Re: USB IR device

Post by jw1001 »

I have no more expertise, but I see that most "files" under /dev have write permission only for owner (root).
nbd
Posts: 161
Joined: Wed Jan 13, 2010 12:02 pm

Re: USB IR device

Post by nbd »

The device manufacturer replied that the path can be changed, just modifying one .h file. Since I can now freely choose the path, what would be the safest place?
User avatar
erdem_ua
SamyGO Admin
Posts: 3126
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: USB IR device

Post by erdem_ua »

nbd wrote:The device manufacturer replied that the path can be changed, just modifying one .h file. Since I can now freely choose the path, what would be the safest place?
Might be you could use /mtd_ram

Post Reply

Return to “[B] Brainstorm”