Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Trouble with IR reciever
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Trouble with IR reciever
10th Mar, 2013, 05:44 PM
Post: #1
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
Trouble with IR reciever
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?
Find all posts by this user
Quote this message in a reply
10th Mar, 2013, 06:28 PM
Post: #2
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Trouble with IR reciever
Did you do:
Code:
sudo modprobe lirc_rpi

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
10th Mar, 2013, 06:48 PM
Post: #3
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: Trouble with IR reciever
It helpd. Now mode2 says nothing (empty line). It means that I didnt connect the reciever correctly? After I reconnect it, reboot is required?
Find all posts by this user
Quote this message in a reply
10th Mar, 2013, 11:00 PM
Post: #4
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Trouble with IR reciever
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.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
12th Mar, 2013, 08:20 PM
Post: #5
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: Trouble with IR reciever
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.
Find all posts by this user
Quote this message in a reply
12th Mar, 2013, 08:27 PM
Post: #6
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Trouble with IR reciever
Then you probably made a mistake with irrecord.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
12th Mar, 2013, 08:44 PM
Post: #7
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: Trouble with IR reciever
where?
Terminal
key_down 0x12ED
key_2 0x3CC3
I'll do all what irrecord says...
Find all posts by this user
Quote this message in a reply
12th Mar, 2013, 08:48 PM
Post: #8
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Trouble with IR reciever
Just try again to be sure.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
12th Mar, 2013, 08:55 PM
Post: #9
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: Trouble with IR reciever
О_о
now keys with dups are different
0x-codes same as previous. Difference only between 'begin remote' and 'begin codes'.
Find all posts by this user
Quote this message in a reply
12th Mar, 2013, 09:03 PM
Post: #10
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Trouble with IR reciever
Then those values probably need to be very precise. Then you try recording the button in raw mode.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
12th Mar, 2013, 09:19 PM
Post: #11
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: Trouble with IR reciever
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
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 11th May, 2025, 07:37 PM Powered By MyBB, © 2002-2025 MyBB Group.