Harmony / USB-UIRT / LIRC configuration question
#1
Hello, I plan to use XBMC on my new HTPC but before, I try to configure my Harmony 555 with a USB-UIRT and I have some issues.

First step, choose what remote controller my Harmony will emulate, in order to configure LIRC accordingly. I selected MCE USB and successfully configured Harmony with the logitech software.

Second step, check that everything is correct with LIRC. For that, I typed:

Code:
sudo lircd -n -d /dev/ttyUSB0 -H usb_uirt_raw /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb
lircd-0.8.6[11911]: lircd(usb_uirt_raw) ready, using /var/run/lirc/lircd
lircd-0.8.6[11911]: accepted new client on /var/run/lirc/lircd
lircd-0.8.6[11911]: uirt2_raw: checksum error
lircd-0.8.6[11911]: uirt2_raw: UIRT version 0905 ok

On another console,

Code:
irw

But nothing happened when I push the Harmony buttons

So to be sure that everything was OK with the IR receiver, I typed:

Code:
sudo mode2 -d /dev/ttyUSB0 -H usb_uirt_raw
mode2: uirt2_raw: checksum error
mode2: uirt2_raw: UIRT version 0905 ok
space 2756900
pulse 2700
space 750
pulse 500
space 350
pulse 500
space 350
pulse 500
space 750
pulse 500

As soon as I push a button, pulse/space lines appear...

So what's wrong with my configuration ?

Thanks
Reply
#2
You should be getting output when you run irw.

Check your conf in /etc/lirc/hardware.conf

I had a hard time getting usb-uirt running in ubuntu. The wiki instructions didn't work for me. Here's a sample of mine but using a hauppauge remote. (also using a harmony)

# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Hauppauge TV card"
REMOTE_MODULES="lirc_dev lirc_i2c"
REMOTE_DRIVER="usb_uirt_raw"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="hauppauge/lircd.conf.hauppauge"
REMOTE_LIRCD_ARGS="-d /dev/ttyUSB0"

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS="-d /dev/ttyUSB0"

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
Reply
#3
Hello, thanks for your answer.

I retrieved a Leadtek WinFast remote controller and tried to make the same hardware.conf as you (expect the config file which is /usr/share/lirc/remotes/leadtek/lircd.conf.PVR2000) but without any success (still seing messages with mode2 but nothing with lircd)

BTW I have several questions about your configuration:

1) You use lirc_dev and lirc_i2c modules, but are they useful with usb_uirt (I think they are requested only if you plug the original IR receiver coming with your hauppauge remote controller), could you make a test without activating these modules ?
2) I see you set REMOTE_DEVICE to /dev/lirc0 but in the same time sending -d /dev/ttyUSB0 as additional arguments to lircd. Don't you think it is a duplicate configuration ? And do you really have a /dev/lirc0 and if yes, is it linked to another file/socket ?

Thanks for your help.
Reply
#4
here's my hardare.conf file using a usb_uirt...

Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="USB-UIRT"
REMOTE_MODULES=""
REMOTE_DRIVER="usb_uirt_raw"
REMOTE_DEVICE="/dev/ttyUSB0"
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

and here's my lircd.conf in /etc/lirc/:

Code:
#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.

#Configuration for the Windows Media Center Remotes (new version Philips et al.) remote:
#include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"

#mceusb2
include "/etc/lirc/lircd.conf.mceusb"

#microsoft_xbox
include "/etc/lirc/lircd.conf.microsoft_xbox"

#tivo_s2
include "/etc/lirc/lircd.conf.tivo_s2"

the included files were just taken from lirc.org. all 3 remotes work, so i'm not sure if the mceusb line is even required in the hardware.conf, to be honest.
Reply
#5
I just copied miked2024's hardware.config (replacing lircd_conf with my remote). Worked great. I'm using that cleaner version now. The one from before was all trial and error. Thanks.
Reply
#6
glad i could help.
Reply
#7
just for fun i tried using the old xbox remote and couldn't get it going.
changed this line to:
REMOTE_LIRCD_CONF="atiusb/lircd.conf.atiusb"

I also changed the lirc.conf to:
#microsoft_xbox
include "/etc/lirc/lircd.conf.microsoft_xbox"

but couldn't get any irw output. i was hoping it would be that simple. any suggestions? (I'd rather use the xbmc remote if i could for several reasons)
Reply
#8
Robgue Wrote:just for fun i tried using the old xbox remote and couldn't get it going.
changed this line to:
REMOTE_LIRCD_CONF="atiusb/lircd.conf.atiusb"

I also changed the lirc.conf to:
#microsoft_xbox
include "/etc/lirc/lircd.conf.microsoft_xbox"

but couldn't get any irw output. i was hoping it would be that simple. any suggestions? (I'd rather use the xbmc remote if i could for several reasons)

The lircd.conf.microsoft_xbox file exists right?


On a different topic, do you suppose you could post your /etc/init.d/lircd file as I've been unable to load lirc on startup.. instead have to type "sudo lircd -n -d /dev/ttyUSB0 -H usb_uirt_raw" which is a pain.

Thanks sharing your config files.. to tell you the truth I forget what remote I used to get my mx-810 and uirt to work with lirc..

Also have you guys had any luck with adding extra <universalremote> buttons to the keymap?
Reply
#9
Robgue Wrote:just for fun i tried using the old xbox remote and couldn't get it going.
changed this line to:
REMOTE_LIRCD_CONF="atiusb/lircd.conf.atiusb"

I also changed the lirc.conf to:
#microsoft_xbox
include "/etc/lirc/lircd.conf.microsoft_xbox"

but couldn't get any irw output. i was hoping it would be that simple. any suggestions? (I'd rather use the xbmc remote if i could for several reasons)

hrm. all i've had to do to add extra remotes is add them to the lirc.conf file, make sure the included file exists and restart lirc. so make sure the xbox file exists, if not you can get it here: http://lirc.sourceforge.net/remotes/microsoft/

i think i used the first one (Xbox), but either should work.
Reply
#10
nick8888,
here you goes the init.d/lircd: http://pastebin.com/m4508eaf6

got the xbox remote going btw.
Reply
#11
thanks a lot robgue. using both the hardware.conf above and your init.d/lirc I was able to get my usb-uirt working on startup! no complaints about controlling xbmc now.

using JollysFastVNC from my laptop, the iphone remote(no substitute for a hard button remote) and an MX-810 (in conjunction with usb-uirt)
Reply
#12
High, I'm using the harmony one to a usb-uirt to XBMC 9.11b2 live. I'm running into the same problem as the original post on this forum.

I can run sudo mode2 -d /dev/ttyUSB0 -H usb_uirt_raw
and get output but I don't get any output in irw.

I have changed my hardware.conf file to match the one posted by miked2024 except that I changed the remote_lircd_conf= to "logitech/lircd.conf.logitech"

I added the include "/usr/share/lirc/remotes/logitech/lircd.conf.logitech" to the lircd.conf file.

Still no response from the remote. What am I doing wrong?
Reply
#13
I'm also using a Harmony and usb-uirt and am having no luck with irw. When I run the mode2 command above I get several spaces and pulse, but the messages end with: readdata() failed and the mode2 command exits.
Reply
#14
I cannot get irw working either.

/etc/lirc/lirc.hardware.conf
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="USB-UIRT"
REMOTE_MODULES=""
REMOTE_DRIVER="usb_uirt_raw"
REMOTE_DEVICE="/dev/ttyUSB0"
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf.Microsoft_Xbox360"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

/etc/lirc/lircd.conf.Microsoft_Xbox360
Code:
# this config file was automatically generated
# using lirc-0.8.0-CVS(mceusb2) on Tue Jan 17 15:14:11 2006
#
# contributed by Kyle at shadowmage.org
#
# brand: Microsoft
# model no. of remote control: Xbox 360 Universal Media Remote
# devices being controlled by this remote: Xbox 360
#
# This probably works for the normal Xbox 360 remote too.
#
# TV button sends no signal and toggles Xbox 360/TV mode. TV mode can be
# signals for any device the remote supports. Volume Up, Volume Down and
# Mute always use the TV mode while the Xbox live guide button always sends
# to the xbox.

begin remote

  name  Microsoft_Xbox360
  bits           16
  flags RC6|CONST_LENGTH
  eps            30
  aeps          100

  header       2676   870
  one           454   429
  zero          454   429
  pre_data_bits   21
  pre_data       0x37FF0
  gap          106291
  min_repeat      1
  toggle_bit_mask 0x8000

  rc6_mask    0x100000000

      begin codes
          OpenClose                0x8BD7
          XboxFancyButton          0x0B9B
          OnOff                    0x8BF3
          Stop                     0x0BE6
          Pause                    0x8BE7
          Rewind                   0x0BEA
          FastForward              0x8BEB
          Prev                     0x0BE4
          Next                     0x8BE5
          Play                     0x0BE9
          Display                  0x8BB0
          Title                    0x0BAE
          DVD_Menu                 0x8BDB
          Back                     0x0BDC
          Info                     0x8BF0
          UpArrow                  0x0BE1
          LeftArrow                0x8BDF
          RightArrow               0x0BDE
          DownArrow                0x8BE0
          OK                       0x0BDD
          Y                        0x8BD9
          X                        0x0B97
          A                        0x8B99
          B                        0x0BDA
          ChUp                     0x8BED
          ChDown                   0x0BEC

          VolDown                  0x0BEE
          VolUp                    0x0BEF
          Mute                     0x0BF1

          Start                    0x0BF2
          Play                     0x8BE9
          Enter                    0x0BF4
          Record                   0x8BE8
          Clear                    0x0BF5
          1                        0x8BFE
          2                        0x0BFD
          3                        0x8BFC
          4                        0x0BFB
          5                        0x8BFA
          6                        0x0BF9
          7                        0x8BF8
          8                        0x0BF7
          9                        0x8BF6
          100                      0x0BE2
          0                        0x8BFF
          Reload                   0x8BE3
      end codes

end remote

irw has no output when pressing buttons.

Mode2 has pulse code that do show on button presses

Running this command doesn't have any output either when pressing buttons.
Code:
xbmc@xbmc:/etc/lirc$ sudo lircd -n -d /dev/ttyUSB0 -H usb_uirt_raw /etc/lirc/lircd.conf.Microsoft_Xbox360
lircd-0.8.4a[25301]: lircd(usb_uirt_raw) ready

This is the last step in getting this up and running, and the most stubborn part of this whole install.

I would love to get this working with any of the remote I have at the moment. (Harmony 520, Microsoft Xbox Universal Remote)
Reply
#15
Instead of using a preset conf file it is possible to create your own. The irrecord command will output a conf file.

For what it's worth though, I've programmed my Harmony to use Plex Plex Player. Has a couple of extra F buttons that can be programmed to do stuff in xbmc.

/etc/lirc/hardware.conf:
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="MCE"
REMOTE_MODULES=""
REMOTE_DRIVER="uirt2_raw"
REMOTE_DEVICE="/dev/serial/by-id/usb-FTDI_USB-UIRT-if00-port0"
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

/etc/lirc/lircd.conf:
Code:
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.8.6(uirt2_raw) on Sat Nov 28 21:33:10 2009
#
# contributed by
#
# brand:                       ./lirc.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name  htpc-harmony
  bits           16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       8893  4298
  one           615  1524
  zero          615   446
  ptrail        609
  repeat       8855  2072
  pre_data_bits   16
  pre_data       0x77E1
  gap          104422
  toggle_bit_mask 0x0

      begin codes
          Play                 0xC0E9
          Stop                 0xA0E9
          Record               0x30D9
          Sleep                0x4059 # unassigned
          F1                   0x90D9 # F1
          F2                   0x60D9 # F2
          F3                   0xA0D9 # F3
          F4                   0xC0D9 # F4
          F5                   0x1005 # F5
          F6                   0xE005 # F6
          F7                   0x2005
          F8                   0x4005
          F9                   0x9079
          F10                  0x6079
          F11                  0xA079
          F12                  0xC079
          F13                  0x90B9
          F14                  0x60B9
          One                  0x50E9
          Two                  0x30E9
          Three                0x90E9
          Four                 0x60E9
          Five                 0x9019
          Six                  0x6019
          Seven                0x1099
          Eight                0xE099
          Nine                 0x1059
          Zero                 0xE059
          Red                  0x10F9
          Green                0xE0F9
          Yellow               0x20F9
          Blue                 0x40F9
          Exit                 0x50D9
          Info                 0xD099
          Menu                 0x4069
          Exit                 0x50D9
          Skip                 0xB005
          Replay               0xD005
          Forward              0xB059
          Rewind               0xD059
          Pause                0xC019
          Clear                0x2059
          Enter                0x4099
          Guide                0xA0B9
          PowerToggle          0xC0B9
          Aspect               0x50B9
          Down                 0xB069
          Up                   0xD069
          Left                 0x1069
          Right                0xE069
          VolUp                0x5019
          VolDown              0x3019
          ChanUp               0x5079
          ChanDown             0x3079
          OK                   0x2069
          Mute                 0xA019
          Previous             0xB099 # unassigned
      end codes
end remote
Reply

Logout Mark Read Team Forum Stats Members Help
Harmony / USB-UIRT / LIRC configuration question0