NOTE! This site uses cookies and similar technologies.

If you not change browser settings, you agree to it.

I understand

Welcome, Guest
Username: Password: Remember me

TOPIC: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #16

  • active89
  • active89's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
Lircd.conf mustnt be in place therefore.

I use the harmony one configured to media pc.

The config files can be downloaded from lirc.com

I have the config file for microsoft rc6 or so. i must look again which i took.

if you want i can send you my file when i configured and tested everything.


I installed the 2nd build from above. This works for me.
The administrator has disabled public write access.

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #17

  • DmitrySh
  • DmitrySh's Avatar
  • Offline
  • Junior Boarder
  • Posts: 65
  • Thank you received: 2
  • Karma: 0
Ok, now will try second one, can you send here code from current lircd.conf here (anyway it somehow works for you).
UPD: with build r12322 all start working.
mode2 -d /dev/lirc0
give me a lot of output.
Now need correct lircd.conf for Harmony 895
Last Edit: 5 years 2 weeks ago by DmitrySh.
The administrator has disabled public write access.

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #18

  • roadkill
  • roadkill's Avatar
  • Offline
  • Senior Boarder
  • Posts: 120
  • Thank you received: 13
  • Karma: 5
yes, in the last version kernel was updated to version 3.6.4
the patches needed to be changed accordingly, simply download the newest build
it should be okay I tested it with my own RPi
root ~ # dmesg | grep lirc_rpi
[    1.373357] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0
[    1.373382] lirc_rpi: driver registered!
[    2.329253] lirc_rpi: auto-detected active low receiver on GPIO pin 18
root ~ # 

this is what it's suppose to look like

btw: if you'll send me the lircd.conf I'll add it to the first post so everyone can use it ;)
Raspberry Pi Rev2 512MB
CuBox-i4Pro
Last Edit: 5 years 2 weeks ago by roadkill.
The administrator has disabled public write access.

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #19

  • active89
  • active89's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
I can send you the code tomorrow.
The administrator has disabled public write access.

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #20

  • DmitrySh
  • DmitrySh's Avatar
  • Offline
  • Junior Boarder
  • Posts: 65
  • Thank you received: 2
  • Karma: 0
roadkill wrote:
yes, in the last version kernel was updated to version 3.6.4
the patches needed to be changed accordingly, simply download the newest build
it should be okay I tested it with my own RPi


btw: if you'll send me the lircd.conf I'll add it to the first post so everyone can use it ;)
Where can we download latest build with GPIO IR support? 12350 don't work.
The administrator has disabled public write access.

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #21

  • roadkill
  • roadkill's Avatar
  • Offline
  • Senior Boarder
  • Posts: 120
  • Thank you received: 13
  • Karma: 5
DmitrySh wrote:
roadkill wrote:
yes, in the last version kernel was updated to version 3.6.4
the patches needed to be changed accordingly, simply download the newest build
it should be okay I tested it with my own RPi


btw: if you'll send me the lircd.conf I'll add it to the first post so everyone can use it ;)
Where can we download latest build with GPIO IR support? 12350 don't work.

I'm uploading now it will be online in 20 minutes ;)
Raspberry Pi Rev2 512MB
CuBox-i4Pro
The administrator has disabled public write access.

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #22

  • DmitrySh
  • DmitrySh's Avatar
  • Offline
  • Junior Boarder
  • Posts: 65
  • Thank you received: 2
  • Karma: 0
Cool!
Is it any chances to implement GPIO IR receiver support in official developer builds?
If it's not hard, can you explain difference betwean Lircmap.xml and lircd.conf? Is it two different necessery setting files or with GPIO IR we use only lircd.conf?
The administrator has disabled public write access.

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #23

  • vicbitter
  • vicbitter's Avatar
  • Offline
  • Gold Boarder
  • Posts: 966
  • Thank you received: 175
  • Karma: 64
roadkill wrote:
yes, in the last version kernel was updated to version 3.6.4
the patches needed to be changed accordingly, simply download the newest build
it should be okay I tested it with my own RPi
root ~ # dmesg | grep lirc_rpi
[    1.373357] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0
[    1.373382] lirc_rpi: driver registered!
[    2.329253] lirc_rpi: auto-detected active low receiver on GPIO pin 18
root ~ # 

this is what it's suppose to look like

btw: if you'll send me the lircd.conf I'll add it to the first post so everyone can use it ;)

Pre-defined lircd.conf files for most remotes can be obtained here from the lirc project...
The administrator has disabled public write access.
The following user(s) said Thank You: roadkill

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #24

  • roadkill
  • roadkill's Avatar
  • Offline
  • Senior Boarder
  • Posts: 120
  • Thank you received: 13
  • Karma: 5
DmitrySh wrote:
Cool!
Is it any chances to implement GPIO IR receiver support in official developer builds?
If it's not hard, can you explain difference betwean Lircmap.xml and lircd.conf? Is it two different necessery setting files or with GPIO IR we use only lircd.conf?

lircd.conf binds the code from the remote to an event label e.g. PLAY,FORWARD,SKIP-, etc...
and lircmap.xml simply states which event label does the action

a single lircd.conf can be used for several remotes to generate the same event label
I can press PLAY on any of my remotes the event "PLAY" is being sent to xbmc
regardless which remote sent the event (useful because I tend to misplace them)

events can be also modified to run several commands, I used to have lirc installed on my computer and used the event system to actually run xbmc and to kill it.. ;) a key sequence on the remote run a specific bash script which turned the xbmc program on/off
Raspberry Pi Rev2 512MB
CuBox-i4Pro
Last Edit: 5 years 2 weeks ago by roadkill.
The administrator has disabled public write access.

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #25

  • DmitrySh
  • DmitrySh's Avatar
  • Offline
  • Junior Boarder
  • Posts: 65
  • Thank you received: 2
  • Karma: 0
Hm...
i create Lircmap.xml in userdata/
<lircmap> -<remote device="/storage/.config/lircd.conf"> <left>KEY_LEFT</left> <right>KEY_RIGHT</right> <up>KEY_UP</up> <down>KEY_DOWN</down> <select>KEY_OK</select> </remote> </lircmap>
and copy lircd.conf from lirc.org/remote/logitech/harmonyone
but when i start irw i don't have any output. Maybe i need to edit original Lircmap.xml?
The administrator has disabled public write access.

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #26

  • roadkill
  • roadkill's Avatar
  • Offline
  • Senior Boarder
  • Posts: 120
  • Thank you received: 13
  • Karma: 5
DmitrySh wrote:
Hm...
i create Lircmap.xml in userdata/
<lircmap> -<remote device="/storage/.config/lircd.conf"> <left>KEY_LEFT</left> <right>KEY_RIGHT</right> <up>KEY_UP</up> <down>KEY_DOWN</down> <select>KEY_OK</select> </remote> </lircmap>
and copy lircd.conf from lirc.org/remote/logitech/harmonyone
but when i start irw i don't have any output. Maybe i need to edit original Lircmap.xml?
the standard course of action is to simply send standard xbmc events it's also easier...
but you should have a look at the xbmc wiki for more in depth explanation
Raspberry Pi Rev2 512MB
CuBox-i4Pro
The administrator has disabled public write access.

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #27

  • DmitrySh
  • DmitrySh's Avatar
  • Offline
  • Junior Boarder
  • Posts: 65
  • Thank you received: 2
  • Karma: 0
Do you have harmony remote? it can be seted up as Microsoft Media Center, so i need to use lircd.conf template as for mce?
ok, it' too late for today... will wait for tomorrow.....
Something i don't understand... i have working build with drivers, drivers are loaded, i have an autostart.sh in /storage/.config
and i have this output
# mode2 -d /dev/lirc0
space 4960669
pulse 2697
space 880
pulse 477
space 816
pulse 499
space 379
pulse 472
space 439
create simple lircd.conf like in manual
irrecord -d /dev/lirc0 /storage/.config/lircd.conf
reboot
launch irw, press buttons on remote - no output
what i'm doing wrong?

here list of running lircd processes
root ~ # ps -efa | grep [l]ircd
 1000 root       0:00 eventlircd --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --release=_UP
 1041 root       0:00 /usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput --output=/var/run/lirc/lircd
 1062 root     110:29 /usr/lib/xbmc/xbmc.bin --standalone -fs --lircdev /var/run/lirc/lircd
Last Edit: 5 years 2 weeks ago by DmitrySh.
The administrator has disabled public write access.

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #28

  • roadkill
  • roadkill's Avatar
  • Offline
  • Senior Boarder
  • Posts: 120
  • Thank you received: 13
  • Karma: 5
I added a few lircd.conf files for common remotes in the first post
hopefully this is something you can use..
Raspberry Pi Rev2 512MB
CuBox-i4Pro
The administrator has disabled public write access.
The following user(s) said Thank You: DmitrySh

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #29

  • DmitrySh
  • DmitrySh's Avatar
  • Offline
  • Junior Boarder
  • Posts: 65
  • Thank you received: 2
  • Karma: 0
Thank you. Will try now from the very begining with clear brains to make this small think (tiny IR receiver) work.
Where exactly i need to upload this lircd.conf? in /storage/.config/? if in this folder i have few .conf files is system takes only lircd.conf file?
Did i need to make Lircxmap.xml file in userdata folder or default will be ok for MCE type remote?
The administrator has disabled public write access.

Re: Raspberry Pi GPIO IR Receiver with OpenELEC compilation patches and snapshot 5 years 2 weeks ago #30

  • roadkill
  • roadkill's Avatar
  • Offline
  • Senior Boarder
  • Posts: 120
  • Thank you received: 13
  • Karma: 5
DmitrySh wrote:
Thank you. Will try now from the very begining with clear brains to make this small think (tiny IR receiver) work.
Where exactly i need to upload this lircd.conf? in /storage/.config/? if in this folder i have few .conf files is system takes only lircd.conf file?
Did i need to make Lircxmap.xml file in userdata folder or default will be ok for MCE type remote?
/storage/.config/ would do fine there is no need to create Lircxmap.xml the default works
for all XBMC commands needed, if something does not send the expected command you can modify lircd.conf to fit instead

don't forget to create the autostart.sh it is automatically run at boot
and restarts the lircd daemon with the licd.conf in /storage/.config/
Raspberry Pi Rev2 512MB
CuBox-i4Pro
The administrator has disabled public write access.
The following user(s) said Thank You: DmitrySh