Forum

Full Version: Trouble with IR reciever
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Did you do:
Code:
sudo modprobe lirc_rpi
It helpd. Now mode2 says nothing (empty line). It means that I didnt connect the reciever correctly? After I reconnect it, reboot is required?
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.
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.
Then you probably made a mistake with irrecord.
where?
Terminal
key_down 0x12ED
key_2 0x3CC3
I'll do all what irrecord says...
Just try again to be sure.
О_о
now keys with dups are different
0x-codes same as previous. Difference only between 'begin remote' and 'begin codes'.
Then those values probably need to be very precise. Then you try recording the button in raw mode.
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
Reference URL's