Support for GPIO IR Receivers

No one else with the unresponsive issue? I’ve run irw to check for commands and it does seem like lirc is receiving the commands when it’s unresponsive

Sent from my Nexus 4 using Tapatalk

hey guys - here's my setup:

- rasplex 3.1

- GPIO reciever 

- harmony remote (emulating windows MCE remote)

this IR remote setup works OOB which makes my life really easy.  

there's only one issue I have:  after an extended period of non-use, it takes 5+ minutes for the remote to start working again.  does anyone else have this issue?

I don't know much about Rasplex 0.3.1 which I have only setup a couple of days but the remotes using latest versions of Plex for iOs and Plex for Android are not very responsive at all and may well be the issue that you have

Edit 1: I am probably talking out of context because my remotes are not IR - are they. Sorry despite my stars I know nothing about GPIO or IIRC 

Edit 2: Not completely out of context. With my remotes, Rasplex burst into life some minutes after I pressed button on the remote from within Plex for iOs - I pressed all buttons. minutes later Rasplex went to the top level initial screen of my the Media Library with column of library sections etc to select on the left 

I think I've got this working now, but the only remote I have to test it with is an old white Apple remote with just 6 buttons. Left, right, up and down all work, and the menu button works as a back button, as I've told it to in my Lircmap.xml file. The only problem is that pressing the play/pause button to select doesn't work - it does SOMETHING though (the background on the UI sort of shudders), so I think it's just confused by my trying to use one button for 2 functions.

I can't readily find another spare remote to test / repurpose for this - can anyone confirm if my theory is right or if there's a way to make the apple remote work in this situation?

It should be really nice I / we can find every key-setup in the xml file, the keys that you spec there are not all of the keys who is out there.
Do you have some full spec? Thanks.

So, just bought a RPI2 to use with rasplex and my apple remote but can't get it to work!

Followed the guide in the wiki of rasplex and it clearly gets the commands when recording but plex just doesn't care at all!

lirc is clearly loaded:

RasPlex:~ # dmesg | grep lirc
[    9.348293] lirc_dev: IR Remote Control driver registered, major 248
[    9.351030] lirc_rpi: module is from the staging directory, the quality is un
known, you have been warned.
[    9.626988] lirc_rpi: module is from the staging directory, the quality is un
known, you have been warned.
[   10.242746] lirc_rpi: auto-detected active low receiver on GPIO pin 18
[   10.243073] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor
= 0
[   10.243102] lirc_rpi: driver registered!
[   10.299923] input: lircd as /devices/virtual/input/input2

And this is the contents of my conf

# Please make this file available to other
# by sending it to 
#
# this config file was automatically gener
# using lirc-0.9.1-git(default) on Thu Mar
#
# contributed by
#
# brand:                       /storage/.c
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote
name /storage/.config/lircd.conf
bits 8
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 9053 4453
one 575 1650
zero 575 547
ptrail 576
repeat 9062 2215
pre_data_bits 16
pre_data 0x77E1
post_data_bits 8
post_data 0xB1
gap 107055
toggle_bit_mask 0x0

  begin codes
      KEY_UP                   0xD0
      KEY_DOWN                 0xB0
      KEY_LEFT                 0x10
      KEY_RIGHT                0xE0
      KEY_PLAY                 0x7A 0x20
      KEY_MENU                 0x40
      KEY_OK                   0xBA 0x20
  end codes

end remote

So everything seems to be working on that side, it's just rasplex that completely ignores the remote!

So, just bought a RPI2 to use with rasplex and my apple remote but can't get it to work!

Followed the guide in the wiki of rasplex and it clearly gets the commands when recording but plex just doesn't care at all!

lirc is clearly loaded:

RasPlex:~ # dmesg | grep lirc
[    9.348293] lirc_dev: IR Remote Control driver registered, major 248
[    9.351030] lirc_rpi: module is from the staging directory, the quality is un
known, you have been warned.
[    9.626988] lirc_rpi: module is from the staging directory, the quality is un
known, you have been warned.
[   10.242746] lirc_rpi: auto-detected active low receiver on GPIO pin 18
[   10.243073] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor
= 0
[   10.243102] lirc_rpi: driver registered!
[   10.299923] input: lircd as /devices/virtual/input/input2

And this is the contents of my conf

# Please make this file available to other
# by sending it to 
#
# this config file was automatically gener
# using lirc-0.9.1-git(default) on Thu Mar
#
# contributed by
#
# brand:                       /storage/.c
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote
name /storage/.config/lircd.conf
bits 8
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 9053 4453
one 575 1650
zero 575 547
ptrail 576
repeat 9062 2215
pre_data_bits 16
pre_data 0x77E1
post_data_bits 8
post_data 0xB1
gap 107055
toggle_bit_mask 0x0

  begin codes
      KEY_UP                   0xD0
      KEY_DOWN                 0xB0
      KEY_LEFT                 0x10
      KEY_RIGHT                0xE0
      KEY_PLAY                 0x7A 0x20
      KEY_MENU                 0x40
      KEY_OK                   0xBA 0x20
  end codes

end remote

So everything seems to be working on that side, it's just rasplex that completely ignores the remote!

Have you followed step 5 & 5.1? https://github.com/RasPlex/RasPlex/wiki/GPIO-IR

Have you followed step 5 & 5.1? https://github.com/RasPlex/RasPlex/wiki/GPIO-IR

yup, /storage/.plexht/userdata/Lircmap.xml=

        
                KEY_UP
                KEY_DOWN
                KEY_LEFT
                KEY_RIGHT
                KEY_PLAY
                KEY_MENU
                
        
 

and /storage/.config/udev.rules.d/99-lircd.rules=

UBSYSTEM=="lirc", DRIVERS=="lirc_rpi", ENV{lircd_driver}="default",
ENV{lircd_conf}="/storage/.config/lircd.conf"

The only thing that quite didn't work was when I ran the irrecord -d /dev/lirc0 ~/.config/lircd.conf

The first time I just got dots, then I accidentally closed my ssh window, next time it worked as it should with me entering the different key names followed by pressing them. The thing is that my /storage/.config/lircd.conf didn't have any keys recorded in it so I just copied some from another file I found for the same apple remote.

Ah right, scrap that... removed the .conf file and ran the recording again and now it works! Finally!!! replacing my old macbook pro with the rpi2, feels like it'll save me some cash on electricity to :D

How you do volume up with Apple Remote?

@adriankoooo said:
How you do volume up with Apple Remote?

Not sure you can, Apple remote only supports 7 buttons, Up, Down, Left, Right, Enter, Play/Pause, Home.

Regards

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.