Forum
Trouble with IR reciever - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Remotes and CEC support (/forum-26.html)
+--- Thread: Trouble with IR reciever (/thread-604.html)



Trouble with IR reciever - kraleksandr - 10th Mar, 2013 05:44 PM

I've bought unnamed IR reciever (like tsop1238) and connect it to the GPIO1, GPIO6 and GPIO12 pins (as said there ttp://aron.ws/projects/lirc_rpi/). But mode2 shows this
Terminal
mode2: could not get file information for /dev/lirc0
mode2: default_init(): No such file or directory
Why?


RE: Trouble with IR reciever - CurlyMo - 10th Mar, 2013 06:28 PM

Did you do:
Code:
sudo modprobe lirc_rpi



RE: Trouble with IR reciever - kraleksandr - 10th Mar, 2013 06:48 PM

It helpd. Now mode2 says nothing (empty line). It means that I didnt connect the reciever correctly? After I reconnect it, reboot is required?


RE: Trouble with IR reciever - CurlyMo - 10th Mar, 2013 11:00 PM

First check if the module is loaded, then check with mode2. If that doesn't output anything while pressing buttons, you didn't connect the device properly.


RE: Trouble with IR reciever - kraleksandr - 12th Mar, 2013 08:20 PM

Ok, I've create a remote.conf and there is another trouble. Key DOWN and key 2 on remote looks same in irw, both has this output
Terminal
00000000b4b43cc3 00 key_2 AKB35840201
00000000b4b43cc3 01 key_2 AKB35840201
00000000b4b43cc3 02 key_2 AKB35840201
00000000b4b43cc3 00 key_2 AKB35840201
0x codes of this buttons in remote.conf are different.


RE: Trouble with IR reciever - CurlyMo - 12th Mar, 2013 08:27 PM

Then you probably made a mistake with irrecord.


RE: Trouble with IR reciever - kraleksandr - 12th Mar, 2013 08:44 PM

where?
Terminal
key_down 0x12ED
key_2 0x3CC3
I'll do all what irrecord says...


RE: Trouble with IR reciever - CurlyMo - 12th Mar, 2013 08:48 PM

Just try again to be sure.


RE: Trouble with IR reciever - kraleksandr - 12th Mar, 2013 08:55 PM

О_о
now keys with dups are different
0x-codes same as previous. Difference only between 'begin remote' and 'begin codes'.


RE: Trouble with IR reciever - CurlyMo - 12th Mar, 2013 09:03 PM

Then those values probably need to be very precise. Then you try recording the button in raw mode.


RE: Trouble with IR reciever - kraleksandr - 12th Mar, 2013 09:19 PM

ok, I've created new conf file through irrecord -fn, for test I added the 2 key two times. But the first 'key2' raw code and the second is different.
Is there a way to echo raw data from ir? mode2?

Every key has different codes. Looks like it is normal =)
wait until I make a new file

All works now.
Plus I made some changes in Configuring remotes