Forum
Issues with Logitech Harmony - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Remotes and CEC support (/forum-26.html)
+--- Thread: Issues with Logitech Harmony (/thread-1824.html)

Pages: 1 2 3 4 5


Issues with Logitech Harmony - jphebert - 28th Nov, 2013 09:50 AM

Hi all

Last item on my XBMC to do list: getting my Harmony 700 to work with XBMC. I tried a few tutorials (such as this one) and alas nothing.

-Here is what I use:
-Harmony 700 Remote
-Raspberry PI B
-Nwazet IR Receiver (link)
-Xbian (latest)

Now the IR receiver is supposed to work with the unit as it's listed on their page & comments, but not getting anything through.. In peripherals the IR receiver is listed as "CEC Adapter / Product ID 1001 / Vendor 2708 / Class cec / Version LibCEC 2.1.3 - firmware v1" so XMBC sees it - now how to get both devices talking?

My Harmony is set up as a Windows Media Center. Let me know if you need any details.

Please advise - thanks!

My bad - should have posted this in Remotes and CEC support
Moved


RE: Issues with Logitech Harmony - IriDium - 29th Nov, 2013 03:34 AM

I assume you have done a basic google search "xbian logitech harmony" Blush

If after following the guide it is still not working can you:

1) Confirm taht lirc is running.
2) Post the output of dmesg and xbmc.log

Beta 2 should recognise this remote.


RE: Issues with Logitech Harmony - jphebert - 29th Nov, 2013 04:12 AM

LIRC seems to be running:


Always use pastebin for long logs

I've done it for you this time: http://pastebin.com/siPtbLAR


I'll outright admit my "noobness" on this project - any help greatly appreciated!


RE: Issues with Logitech Harmony - IriDium - 29th Nov, 2013 04:20 AM

There is NO WAY I am going to look at that.

Read the rules or your post WILL be deleted.


RE: Issues with Logitech Harmony - f1vefour - 29th Nov, 2013 04:36 AM

Try:

Terminal

killall -9 lircd
sudo rm /var/run/lirc/lircd.pid
service lirc start



RE: Issues with Logitech Harmony - jphebert - 29th Nov, 2013 11:25 PM

(28th Nov, 2013 09:50 AM)jphebert Wrote:  Hi all

Last item on my XBMC to do list: getting my Harmony 700 to work with XBMC. I tried a few tutorials (such as this one) and alas nothing.

-Here is what I use:
-Harmony 700 Remote
-Raspberry PI B
-Nwazet IR Receiver (link)
-Xbian (latest)

Now the IR receiver is supposed to work with the unit as it's listed on their page & comments, but not getting anything through.. In peripherals the IR receiver is listed as "CEC Adapter / Product ID 1001 / Vendor 2708 / Class cec / Version LibCEC 2.1.3 - firmware v1" so XMBC sees it - now how to get both devices talking?

My Harmony is set up as a Windows Media Center. Let me know if you need any details.

Please advise - thanks!

My bad - should have posted this in Remotes and CEC support
Moved

(29th Nov, 2013 04:20 AM)IriDium Wrote:  There is NO WAY I am going to look at that.

Read the rules or your post WILL be deleted.

HI there - sorry about that! - been in the guidelines and here is take 2, hope this is ok:
Software
XBian version: latest
XBMC version: latest
Overclock settings: XBian

Hardware
Power supply rating:
RPi model (model A/B 256mb/512mb): B
SD card size and make/type: Sandisk 32gb class 10 link
Network (wireless or LAN): LAN
Connected devices (TV, USB, network storage, etc.): Keyboard, mouse (for now), IR adapter

Logile
Link to logfile(s): http://pastebin.com/6dFhn9Hx
Link to dmesg: http://pastebin.com/TPtQYrYx

Problem description:Logitech Harmony 700 and MCE remote controls (MCE is a Veris which came with Antec case for another unit)

How to reproduce: n/a

Please note that the IR receiver works with Raspbmc & OpenElec.

(29th Nov, 2013 04:36 AM)f1vefour Wrote:  Try:

Terminal

killall -9 lircd
sudo rm /var/run/lirc/lircd.pid
service lirc start

Tried - no improvements - thanks

(29th Nov, 2013 04:36 AM)f1vefour Wrote:  Try:

Terminal

killall -9 lircd
sudo rm /var/run/lirc/lircd.pid
service lirc start

Tried - no improvements - thanks

(29th Nov, 2013 04:36 AM)f1vefour Wrote:  Try:

Terminal

killall -9 lircd
sudo rm /var/run/lirc/lircd.pid
service lirc start

Tried - no improvements - thanks


RE: Issues with Logitech Harmony - IriDium - 29th Nov, 2013 11:48 PM

Ok - According to dmesg your ONLY peripherals are a Dell keyboard and a Microsoft Optical Mouse.

I have a feeling your issue might be because this is a GPIO and not a USB IR reciever.

Can you try:

Terminal
sudo lsmod
sudo modprobe lirc_rpi
sudo lsmod
and post the output.

And then try your remote.


RE: Issues with Logitech Harmony - jphebert - 30th Nov, 2013 12:18 AM

(29th Nov, 2013 11:48 PM)IriDium Wrote:  Ok - According to dmesg your ONLY peripherals are a Dell keyboard and a Microsoft Optical Mouse.

I have a feeling your issue might be because this is a GPIO and not a USB IR reciever.

Can you try:

Terminal
sudo lsmod
sudo modprobe lirc_rpi
sudo lsmod
and post the output.

And then try your remote.

I think it is (link) - here are the results:
Quote:/home/xbian/.xbmc/temp$ sudo lsmod
Module Size Used by
zram 6288 1
frandom 3296 0
mousedev 7636 0
/home/xbian/.xbmc/temp$ sudo modprobe lirc_rpi
/home/xbian/.xbmc/temp$ sudo lsmod
Module Size Used by
lirc_rpi 4756 3
lirc_dev 6580 1 lirc_rpi
zram 6288 1
frandom 3296 0
mousedev 7636 0

Tried the remote - nothing on either remote.


RE: Issues with Logitech Harmony - IriDium - 30th Nov, 2013 12:44 AM

Ok - We're getting somewhere - lirc_rpi needs to be loaded.

Can you try:

Terminal
sudo modprobe lirc_rpi
sudo kill $(pidof lircd)
sudo mod2 -d /dev/lirc0

And try various buttons. Hopefully you should see some output.

Then try :
Terminal
sudo mount -t debugfs debugfs /sys/kernel/debug
sudo cat /sys/kernel/debug/gpio
sudo modprobe lirc_rpi debug=1
sudo cat /proc/interrupts

Send output and dmesg.

If not, then I am at a loss. It looks like that functionality was not built into the Xbian kernel.

Can you borrow an USB LIRC receiver and see if that works.


RE: Issues with Logitech Harmony - jphebert - 30th Nov, 2013 01:37 AM

(30th Nov, 2013 12:44 AM)IriDium Wrote:  Ok - We're getting somewhere - lirc_rpi needs to be loaded.

Can you try:

Terminal
sudo modprobe lirc_rpi
sudo kill $(pidof lircd)
sudo mod2 -d /dev/lirc0

And try various buttons. Hopefully you should see some output.

Then try :
Terminal
sudo mount -t debugfs debugfs /sys/kernel/debug
sudo cat /sys/kernel/debug/gpio
sudo modprobe lirc_rpi debug=1
sudo cat /proc/interrupts

Send output and dmesg.

If not, then I am at a loss. It looks like that functionality was not built into the Xbian kernel.

Can you borrow an USB LIRC receiver and see if that works.

At sudo mod2 -d /dev/lirc0 I get a "Command not found"

Output anyway:

root@xbian:~# sudo cat /proc/interrupts
CPU0
3: 3120084 ARMCTRL BCM2708 Timer Tick
32: 4299727 ARMCTRL dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
52: 9403 ARMCTRL BCM2708 GPIO catchall handler
65: 7 ARMCTRL ARM Mailbox IRQ
66: 551826 ARMCTRL VCHIQ doorbell
75: 1 ARMCTRL
77: 27574 ARMCTRL bcm2708_sdhci (dma)
84: 22768 ARMCTRL mmc0
188: 9403 GPIO
FIQ: usb_fiq

Output here: http://pastebin.com/Y4WEzKnc

Still nothing since the command did not work. If it's not in the kernel I'll have to go back to RaspBMC but that was a bad experience - reboot every 10 mins.

Thanks!


RE: Issues with Logitech Harmony - IriDium - 30th Nov, 2013 01:44 AM

Try again but with mode2 - my typo.

The GPIO has been recognised

Code:
[ 3594.710208] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0
[ 3594.710233] lirc_rpi: driver registered!
[ 3595.660552] lirc_rpi: auto-detected active low receiver on GPIO pin 18



RE: Issues with Logitech Harmony - jphebert - 30th Nov, 2013 04:49 AM

(30th Nov, 2013 01:44 AM)IriDium Wrote:  Try again but with mode2 - my typo.

The GPIO has been recognised

Code:
[ 3594.710208] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0
[ 3594.710233] lirc_rpi: driver registered!
[ 3595.660552] lirc_rpi: auto-detected active low receiver on GPIO pin 18

Hi - huzzas I saw codes show up, but nothing on the screen moved just yet with either remote (MCE & Harmony 700).

Here are the bits of info:
1- Sample of the remote signals for MCE:root@xbian:~# sudo mode2 -d /dev/lirc0
space 8181133
pulse 518
space 1980
pulse 525
space 1138
pulse 2179
space 1175
pulse 3803
space 1201
pulse 493
space 1989
pulse 3820
space 2009
pulse 508
space 1990
pulse 491
space 25736
pulse 511
space 1981

For Harmony:
sudo mode2 -d /dev/lirc0
pulse 453
space 868
pulse 453
space 430
pulse 470
space 437
pulse 440
space 446
pulse 440
space 429
pulse 894
space 895
pulse 453
space 453
pulse 426

2- sudo cat /proc/interrupts
CPU0
3: 40565 ARMCTRL BCM2708 Timer Tick
32: 100776 ARMCTRL dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
52: 1719 ARMCTRL BCM2708 GPIO catchall handler
65: 7 ARMCTRL ARM Mailbox IRQ
66: 6890 ARMCTRL VCHIQ doorbell
75: 1 ARMCTRL
77: 11026 ARMCTRL bcm2708_sdhci (dma)
84: 7475 ARMCTRL mmc0
188: 1719 GPIO
FIQ: usb_fiq
Err: 0

3- dmesg is here: http://pastebin.com/E7Hz4hzF

Many thanks!


RE: Issues with Logitech Harmony - IriDium - 30th Nov, 2013 08:47 PM

Well that shows it's "Working".

I still need the output from:
sudo mount -t debugfs debugfs /sys/kernel/debug
and
sudo cat /sys/kernel/debug/gpio
and
sudo modprobe lirc_rpi debug=1
and then
sudo cat /proc/interrupts

Then reboot;

sudo stop xbmc
sudo modprobe lirc_rpi
sudo start xbmc

If that doesn't work, then that's my "lot" used up.


RE: Issues with Logitech Harmony - jphebert - 30th Nov, 2013 10:34 PM

(30th Nov, 2013 08:47 PM)IriDium Wrote:  Well that shows it's "Working".

I still need the output from:
sudo mount -t debugfs debugfs /sys/kernel/debug
and
sudo cat /sys/kernel/debug/gpio
and
sudo modprobe lirc_rpi debug=1
and then
sudo cat /proc/interrupts

Then reboot;

sudo stop xbmc
sudo modprobe lirc_rpi
sudo start xbmc

If that doesn't work, then that's my "lot" used up.

Thanks - here are the outputs:

1- sudo mount -t debugfs debugfs /sys/kernel/debug
mount: debugfs already mounted or /sys/kernel/debug busy
mount: according to mtab, debugfs is already mounted on /sys/kernel/debug

2- sudo cat /sys/kernel/debug/gpio
GPIOs 0-53, bcm2708_gpio:
gpio-17 (lirc_rpi ir/out ) in lo
gpio-18 (lirc_rpi ir/in ) in hi

3- done, no output

4- sudo cat /proc/interrupts
CPU0
3: 23745020 ARMCTRL BCM2708 Timer Tick
32: 37106100 ARMCTRL dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
52: 3461 ARMCTRL BCM2708 GPIO catchall handler
65: 7 ARMCTRL ARM Mailbox IRQ
66: 12131490 ARMCTRL VCHIQ doorbell
75: 1 ARMCTRL
77: 344426 ARMCTRL bcm2708_sdhci (dma)
84: 271643 ARMCTRL mmc0
188: 3461 GPIO
FIQ: usb_fiq
Err: 0

5- After the reboot 3 actions done. Still nothing. Weird.

Would it be possible that the current build has a piece missing from the drivers used by the IR receiver? Odds not but thought I'd ask.
-

(30th Nov, 2013 10:34 PM)jphebert Wrote:  
(30th Nov, 2013 08:47 PM)IriDium Wrote:  Well that shows it's "Working".

I still need the output from:
sudo mount -t debugfs debugfs /sys/kernel/debug
and
sudo cat /sys/kernel/debug/gpio
and
sudo modprobe lirc_rpi debug=1
and then
sudo cat /proc/interrupts

Then reboot;

sudo stop xbmc
sudo modprobe lirc_rpi
sudo start xbmc

If that doesn't work, then that's my "lot" used up.

Thanks - here are the outputs:

1- sudo mount -t debugfs debugfs /sys/kernel/debug
mount: debugfs already mounted or /sys/kernel/debug busy
mount: according to mtab, debugfs is already mounted on /sys/kernel/debug

2- sudo cat /sys/kernel/debug/gpio
GPIOs 0-53, bcm2708_gpio:
gpio-17 (lirc_rpi ir/out ) in lo
gpio-18 (lirc_rpi ir/in ) in hi

3- done, no output

4- sudo cat /proc/interrupts
CPU0
3: 23745020 ARMCTRL BCM2708 Timer Tick
32: 37106100 ARMCTRL dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
52: 3461 ARMCTRL BCM2708 GPIO catchall handler
65: 7 ARMCTRL ARM Mailbox IRQ
66: 12131490 ARMCTRL VCHIQ doorbell
75: 1 ARMCTRL
77: 344426 ARMCTRL bcm2708_sdhci (dma)
84: 271643 ARMCTRL mmc0
188: 3461 GPIO
FIQ: usb_fiq
Err: 0

5- After the reboot 3 actions done. Still nothing. Weird.

Would it be possible that the current build has a piece missing from the drivers used by the IR receiver? Odds not but thought I'd ask.
-

Me thinks we've beaten up this critter plenty - time to move to plan B. Do you have a suggested USB IR receiver which will be nice enough looking for a living room I can put onto my Pi which will work out of the box (or as close as you can)? The IR receiver is really nice as it fits in the case but providing lots of heartburn. Many thanks!


RE: Issues with Logitech Harmony - IriDium - 30th Nov, 2013 11:25 PM

I think it is just "listening" on the wrong device.

Try
sudo killall lircd; /usr/local/sbin/lircd --driver=default --device=/dev/lirc0

If nothing, restart xbmc.
If still nothing - then that's all I know.

You could have a look at LIRC_RPI

You need to add lirc_rpi to modules and create a Lircd.conf file