Harmony / USB-UIRT / LIRC configuration question
#16
Thanks, I'll give that a try. The issue is if irw was working, it would give me the remote information i need to populate the hardware.conf and then irrecord to populate the lircd.conf, but i can't get irw to work right.
Reply
#17
Th3R00st3r Wrote:Thanks, I'll give that a try. The issue is if irw was working, it would give me the remote information i need to populate the hardware.conf and then irrecord to populate the lircd.conf, but i can't get irw to work right.

irw only works when everything is already configured. for instance:

Code:
media@htpc:~$ irw
0000000077e12069 00 OK htpc-harmony
0000000077e12069 01 OK htpc-harmony
0000000077e12069 02 OK htpc-harmony
0000000077e12069 03 OK htpc-harmony

irw only knows that I just pressed OK because lirc received the remote code it corresponds with (lircd.conf), on the hardware that's been configured (hardware.conf)

I think I went this route:
1. kill lircd
2. use irrecord and play with different device and driver options until you find one that works
3. use irrecord to create your config file and see whether it fits with one of the existing config files
4. if so, use it. otherwise, create your own.
5. start lircd and test buttons with irw
Reply
#18
I don't think you need to go to all that trouble of programming it yourself.

try my hardware.conf, just replace the entry for REMOTE_LIRCD_CONF=.

http://pastebin.com/BZCUYGrx
Reply
#19
I am only posting this here as I used the Revo image from the first post and finally got the last part working...

I found my Microsoft IR reciever I had from a while back and am using a Xbox 360 Universal remote.

I checked to see if my IR Reciever was recognized.

Code:
sudo lsusb
Bus 002 Device 002: ID 0471:0815 Philips eHome Infrared Receiver
so I knew it recognized it.

Then I ran irrecord
Code:
sudo irrecord -d /dev/lirc0  /etc/lirc/mce360.conf
and it allowed me to record the button presses by following the on screen instructions.

I copied the recorded file to the lircd.conf file:
Code:
sudo cp /etc/lirc/mce360.conf /etc/lirc/lircd.conf

Change the remote name in my hardware.conf
Code:
REMOTE="Microsoft_Xbox360"
REMOTE_MODULES="lirc_dev lirc_mceusb2"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""

TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
START_LIRCD="true"
START_LIRCMD=""
LOAD_MODULES=""
LIRCMD_CONF=""
FORCE_NONINTERACTIVE_RECONFIGURATION="false"

Changed the name in my 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.4a(default) on Mon Mar 22 23:38:55 2010
#
# contributed by
#
# brand:                       /etc/lirc/mce360.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  [i]name  Microsoft_Xbox360[/i]
  bits           13
  flags RC6|CONST_LENGTH
  eps            30
  aeps          100

  header       2677   858
  one           456   424
  zero          456   424
  pre_data_bits   24
  pre_data       0x1BFF80
  gap          106120
  min_repeat      1
  toggle_bit_mask 0x8000
  rc6_mask    0x100000000

      begin codes
          open                     0x0BD7
          backskip                 0x0BE4
          rewind                   0x0BEA
          stop                     0x0BE6
          pause                    0x0BE7
          fastforward              0x0BEB
          skipforward              0x0BE5
          display                  0x0BB0
          back                     0x0BDC
          dvdmenu                  0x0BDB
          title                    0x0BAE
          info                     0x0BF0
          up                       0x0BE1
          right                    0x0BDE
          down                     0x0BE0
          left                     0x0BDF
          ok                       0x0BDD
          y                        0x0BD9
          x                        0x0B97
          a                        0x0B99
          b                        0x0BDA
          volumeup                 0x0BEF
          volumedown               0x0BEE
          mute                     0x0BF1
          channelpageup            0x0B93
          channelpagedown          0x0B92
          start                    0x0BF2
          enter                    0x0BF4
          record                   0x0BE8
          inputclear               0x0BF5
          1                        0x0BFE
          2                        0x0BFD
          3                        0x0BFC
          4                        0x0BFB
          5                        0x0BFA
          6                        0x0BF9
          7                        0x0BF8
          8                        0x0BF7
          9                        0x0BF6
          0                        0x0BFF
          100                      0x0BE2
          return                   0x0BE3
      end codes

end remote
Ran
Code:
sudo irw
and lo and behold I saw button codes when I pressed them..I about crapped myself..

I ran
Code:
sudo reboot
and restarted the machine. Xbmc came up on the monitor and I started pressing up...nothing..down...nothing..any button..nothing...!Eek

SOOO I figured I had to get the Lircmap.xml and Keymap.xml files configured to map the lirc remote codes to the xbmc codes. I didn't have these files in ~/USER/.xbmc/userdata/ so I copied the ones from this post and created them. Rebooted the Revo and Viola! Remote is now working...

Thank you to everyone..this was very difficult as all the different parts were scattered about the forums..My Revo is now useable from the couch! I hope my post helps others through the same issues I had. Most of it was my inexperience in liunx commands and directory structure.Big Grin
Reply
#20
Robgue...

I have another Revo I am setting up (actually going to create an exact image of the one I just configured to restore from Big Grin ) and will be using my usb-uirt and my harmony..Hopefully my experience getting the remote working on my above post will help with your files..

Thanks Bro!
Reply
#21
Hi all, I am trying to setup the exact same setup (usb-uirt and harmony one advancet remote) but had no luck so far. Could someone post me the 2 files used for a successful setup? Thanks in advance, cheers, Roberto
Reply
#22
roberto99 Wrote:Hi all, I am trying to setup the exact same setup (usb-uirt and harmony one advancet remote) but had no luck so far. Could someone post me the 2 files used for a successful setup? Thanks in advance, cheers, Roberto

can anybody help me with the 2 files?
Thanks a lot
Roberto
Reply
#23
really nobody?
Reply
#24
roberto99 Wrote:really nobody?

At least 2 people have already done what you asked for. Try posting what you've done and what's gone wrong rather than asking to be spoonfed.
Reply
#25
Hello everybody

Sorry for the way I was asking, but this is really driving me crazy and my english seems to not be good enough to understand all the details. I am really appreciating getting some help cause I am on the edge of giving up. So sorry and thanks for the help.

I am using Harmony One Advanced remote controle and usb-uirt model "usbuirt0056z"

What I did ist install lirc (sudo apt-get install lirc) answer "Windows usb..." to the first question, and "none" to the second question during the installation (but maybe I already did an error at this point?) Then I copied the 2 files posted by miked2024 and changed the lircd.conf to match my remote, but I am not sure if I did this detail correctly. Anyway nothing happens when I press any button on my remote configured as "media center pc" (Media Center PC -> Microsoft -> mce usb .........maybe this is not correct?)

Here are my 2 files

lircd.conf in /etc/lirc/

#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"



and

hardware.conf in etc/lirc/

# /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=""


what am I doing wrong? I have no idea... by the way, my ubuntu and xbmc are running in german, not in english (maybe a problem?)

Thanks for the help and I did not want to be rude or so

Roberto
Reply
#26
That all sounds fairly correct. I take it when you run irw and press buttons on the harmony, nothing happens?

Stop lircd and use the mode2 command to make sure remote signals are being received by the sensor and passed down properly. If that works, it may be that the remote codes aren't matching up with the config file.
Reply
#27
thanks for the fast reply

i have some more info:

roberto@ubu910dexbmctest:~$ sudo lircd -n -d /dev/ttyUSB0 -H usb_uirt_raw /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb
[sudo] password for roberto:
lircd: there seems to already be a lircd process with pid 1231
lircd: otherwise delete stale lockfile /var/run/lirc/lircd.pid
roberto@ubu910dexbmctest:~$

and

roberto@ubu910dexbmctest:~$ sudo mode2 -d /dev/ttyUSB0 -H usb_uirt_raw
mode2: could not create lock file "/var/lock/LCK..ttyUSB0"
mode2: File exists
mode2: /dev/ttyUSB0 is locked by PID 1231
mode2: uirt2_raw: could not create lock files
roberto@ubu910dexbmctest:~$

this looks like a problem to me. is it?

irw does not give any output and nothing happens.

as you suggest: but how do I stop lircd? and what is mode2 command? anyway the usb-uirt lights up the red led when I press buttons on the command.

thanks, really appreciate
Roberto
Reply
#28
roberto99 Wrote:roberto@ubu910dexbmctest:~$ sudo lircd -n -d /dev/ttyUSB0 -H usb_uirt_raw /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb
[sudo] password for roberto:
lircd: there seems to already be a lircd process with pid 1231
lircd: otherwise delete stale lockfile /var/run/lirc/lircd.pid
roberto@ubu910dexbmctest:~$

That means lircd is already running. Same issue with mode2 - it can't get a lock because lircd is running.

Do
# killall lircd
and run mode2 again.

If mode2 gives you output, then it's likely that the remote codes being received don't match up to the config file.

Try using irrecord to create your own config file. Chances are once you have the basic config file, you can copy and paste the codes from mceusb file into it with just some minor alteration.
Reply
#29
I did

roberto@ubu910dexbmctest:~$ sudo killall lircd
roberto@ubu910dexbmctest:~$ sudo mode2 -d /dev/ttyUSB0 -H usb_uirt_rawmode2: uirt2_raw: checksum error
mode2: uirt2_raw: UIRT version 0905 ok



does that mean that the remote codes being received don't match up to the config file?
Reply
#30
roberto99 Wrote:I did

roberto@ubu910dexbmctest:~$ sudo killall lircd
roberto@ubu910dexbmctest:~$ sudo mode2 -d /dev/ttyUSB0 -H usb_uirt_rawmode2: uirt2_raw: checksum error
mode2: uirt2_raw: UIRT version 0905 ok



does that mean that the remote codes being received don't match up to the config file?

You can ignore the checksum messages. While mode2 is running pressing buttons on the remote should result in output
Reply

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