Harmony / USB-UIRT / LIRC configuration question
#31
yes it does:

roberto@ubu910dexbmctest:~$ sudo mode2 -d /dev/ttyUSB0 -H usb_uirt_rawmode2: uirt2_raw: checksum error
mode2: uirt2_raw: UIRT version 0905 ok
space 1840100
pulse 50
space 1889700
pulse 2650
space 800
pulse 500
space 300
pulse 450
space 350
pulse 450
space 800


now is this good or bad? what would be the next step for me? sorry, maybe with a betther english I would know the answer myself
Reply
#32
roberto99 Wrote:now is this good or bad? what would be the next step for me? sorry, maybe with a betther english I would know the answer myself

It's good. It likely means that the remote codes being received by lirc don't match up with the codes in the mceusb file. irw only works when they match.

Run irrecord and follow the directions to build a config file.

Let it record a couple of buttons, then compare that to what's in the default mceusb file.
Reply
#33
well, if I try irrecord according to http://wiki.xbmc.org/index.php?title=HOW...lk_to_XBMC

root@ubu910dexbmctest:/etc/lirc# irrecord --driver=usb-uirt --device=/dev/ttyS0 mceusb /dev/ttyS0 = first com port
Driver `usb-uirt' not supported.
Supported drivers:
accent
alsa_usb
asusdh
atilibusb
audio_alsa
awlibusb
bte
bw6130
commandir
creative
creative_infracd
default
devinput
dsp
dvico
ea65
ftdi
i2cuser
irlink
irman
livedrive_midi
livedrive_seq
logitech
macmini
mp3anywhere
mplay
mouseremote
mouseremote_ps2
null
pcmak
pinsys
pixelview
samsung
sb0540
silitek
tira
udp
uirt2
uirt2_raw
usb_uirt_raw
usbx

but its the same with

ubu910dexbmctest:/etc/lirc# irrecord --driver=usb_uirt_raw --device=/dev/ttyS0 mceusb /dev/ttyS0 = first com port
irrecord: invalid argument count
root@ubu910dexbmctest:/etc/lirc# irrecord --driver=uirt2_raw --device=/dev/ttyS0 mceusb /dev/ttyS0 = first com port
irrecord: invalid argument count
root@ubu910dexbmctest:/etc/lirc# irrecord --driver=uirt2 --device=/dev/ttyS0 mceusb /dev/ttyS0 = first com port
irrecord: invalid argument count
root@ubu910dexbmctest:/etc/lirc#

am I doing something wrong?
Reply
#34
roberto99 Wrote:root@ubu910dexbmctest:/etc/lirc# irrecord --driver=usb-uirt --device=/dev/ttyS0 mceusb

Use the same parameters that you were using with mode2 before.
Reply
#35
(2010-03-21, 19:04)hjbotha Wrote: 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
...
...
...
          Previous             0xB099 # unassigned
      end codes
end remote

t
The above post worked like a charm for me. The only issue is that I dislike the UIRT IR Receiver. I have to point my Harmony 650 remote directly at it before a usable command actually comes through.
I've switched it out for a MCE USB IR receiver I picked up on online. All the settings are the same except for the driver and dev location which I updated to the best of my knowledge. I am not getting any response/output whatsoever from irw after changing the IR receiver.
I tested that I was listening on the correct dev by running:
Code:
sudo cat /dev/lirc0
The button presses aren't readable, however, I can clearly see data coming into the computer system.
Here is the relevant portion of the hardware.conf file I'm attempting to use.
Code:
#Chosen Remote Control
REMOTE="MCE"
REMOTE_MODULES=""
REMOTE_DRIVER="mceusb2"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""
And here is the readout of lsusb:
Code:
Bus 003 Device 003: ID 1784:0006 TopSeed Technology Corp. eHome Infrared Transceiver
Reply

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