|
From: Manuel C. <cis...@gm...> - 2013-06-04 09:21:30
|
Hello all, Since I spent some hours figuring how to control my Sharp TV, I thought this information might be useful for others so I post it here. There are some lircd.conf files for sharp TV, for example here : http://lirc.sourceforge.net/remotes/sharp/GA339WJSA This file should work for decoding IR signals sent by the remote, but does not work for controlling the TV since it contains only half of each code. The protocol used by sharp is described here : http://www.sbprojects.com/knowledge/ir/sharp.php A Sharp signal has two halves, either one of which is enough to fully decode the information (that's why the lircd.conf file works to decode signals but not to control TV). The two halves are separated by a space of 40ms (I measured 45 with my remote). So to send the power code of the GA339WJSA remote, one has to send 0x41A2 (15bits), then 45ms space and then 0x42D5 (last 10 bits inverted). I used raw_codes in lircd.conf since I don't know if there is another way, the code becomes : begin raw_codes name power # 0x41A2 (followed by 0x425D (inverted)) 350 1650 350 650 350 650 350 650 350 650 350 650 350 1650 350 1650 350 650 350 1650 350 650 350 650 350 650 350 1650 350 650 350 45000 350 1650 350 650 350 650 350 650 350 650 350 1650 350 650 350 650 350 1650 350 650 350 1650 350 1650 350 1650 350 650 350 1650 350 end raw_codes I use an mceusb (acer mceir-210) to receive and send IR codes. Hopefully this will be useful to other. -- regards, Manuel CISSÉ |