[mythtv-users] Need help with Hauppauge HRV-1600 IR Blaster and lirc_zilog in Mythbuntu .23/10.04

David Lasker dave at altosdesign.com
Sat Jul 3 16:27:19 UTC 2010


I got a bit further. It looks like the HVR-1600 IR receiver/blaster is being
recognized.

Here is the syslog generated by "modprobe lirc_zilog debug=1":

Jul  3 08:37:56 mythtv kernel: [  318.888673] lirc_zilog: Zilog/Hauppauge IR
driver initializing
Jul  3 08:37:56 mythtv kernel: [  318.890408] lirc_zilog: ir_probe: adapter
id=0x0, client addr=0x70
Jul  3 08:37:56 mythtv kernel: [  318.890804] lirc_zilog: probe 0x70 @ cx18
i2c driver #0-0: success
Jul  3 08:37:56 mythtv kernel: [  318.891197] lirc_zilog: probe 0x71 @ cx18
i2c driver #0-0: success
Jul  3 08:37:56 mythtv kernel: [  318.891199] lirc_zilog: chip found with RX
and TX
Jul  3 08:37:56 mythtv kernel: [  318.891285] lirc_zilog: poll thread
started
Jul  3 08:37:56 mythtv kernel: [  318.891296] lirc_dev:
lirc_register_driver: sample_rate: 0
Jul  3 08:37:56 mythtv kernel: [  318.891364] Zilog/Hauppauge i2c IR 8-0070:
firmware: requesting haup-ir-blaster.bin
Jul  3 08:37:56 mythtv kernel: [  318.909500] lirc_zilog: firmware of size
302355 loaded
Jul  3 08:37:56 mythtv kernel: [  318.909648] lirc_zilog: 743 IR blaster
codesets loaded
Jul  3 08:37:56 mythtv kernel: [  318.909670] lirc_zilog: 01 60 00 01 5b
Jul  3 08:37:56 mythtv kernel: [  318.910836] lirc_zilog: 05 02 04 4b 1a
Jul  3 08:37:56 mythtv kernel: [  318.911986] lirc_zilog: 09 79 88 b1 1f
Jul  3 08:37:56 mythtv kernel: [  318.913182] lirc_zilog: 0d 87 f5 16 61
Jul  3 08:37:56 mythtv kernel: [  318.915892] lirc_zilog: 11 a6 d9 ec 9a
Jul  3 08:37:56 mythtv kernel: [  318.917098] lirc_zilog: 15 0f a7 ab 27
Jul  3 08:37:56 mythtv kernel: [  318.918258] lirc_zilog: 19 48 9d 7e 1a
Jul  3 08:37:56 mythtv lircd-0.8.6[1937]: lircd(default) ready, using
/var/run/lirc/lircd1
Jul  3 08:37:56 mythtv lircd-0.8.6[1937]: connected to localhost
Jul  3 08:37:56 mythtv lircd-0.8.6[1933]: lircd(default) ready, using
/var/run/lirc/lircd
Jul  3 08:37:56 mythtv lircd-0.8.6[1933]: accepted new client from 127.0.0.1
Jul  3 08:37:56 mythtv kernel: [  318.919519] lirc_zilog: 1d d9 0c 0e 48
Jul  3 08:37:56 mythtv kernel: [  318.920720] lirc_zilog: 21 91 77 d6 3d
Jul  3 08:37:56 mythtv kernel: [  318.921875] lirc_zilog: 25 09 44 18 60
Jul  3 08:37:56 mythtv kernel: [  318.922505] lirc_zilog: poll called
Jul  3 08:37:56 mythtv kernel: [  318.922510] lirc_zilog: poll result = 0
Jul  3 08:37:56 mythtv kernel: [  318.923027] lirc_zilog: 29 e5 12 c6 6c
Jul  3 08:37:56 mythtv kernel: [  318.924187] lirc_zilog: 2d ba 32 c4 26
Jul  3 08:37:56 mythtv kernel: [  318.925974] lirc_zilog: 31 e3 76 01 48
Jul  3 08:37:56 mythtv kernel: [  318.927116] lirc_zilog: 35 a2 7d 81 59
Jul  3 08:37:56 mythtv kernel: [  318.928290] lirc_zilog: 39 90 28 8f 48
Jul  3 08:37:56 mythtv kernel: [  318.929457] lirc_zilog: 3d 79 61 b4 0a
Jul  3 08:37:56 mythtv kernel: [  318.930595] lirc_zilog: 41 0b 57 21 6e
Jul  3 08:37:56 mythtv kernel: [  318.931725] lirc_zilog: 45 00 78 ad 62
Jul  3 08:37:56 mythtv kernel: [  318.932889] lirc_zilog: 49 b5 68 a2 27
Jul  3 08:37:56 mythtv kernel: [  318.934020] lirc_zilog: 4d 42 4e da 6c
Jul  3 08:37:56 mythtv kernel: [  318.935150] lirc_zilog: 51 94 63 0e 2a
Jul  3 08:37:56 mythtv kernel: [  318.936307] lirc_zilog: 55 1a 30 3b 45
Jul  3 08:37:56 mythtv kernel: [  318.937446] lirc_zilog: 59 fa 34 25 e5
Jul  3 08:37:56 mythtv kernel: [  318.938572] lirc_zilog: 5d cb 1e c1 ee
Jul  3 08:37:56 mythtv kernel: [  318.939702] lirc_zilog: 61 00 00 00 ee
Jul  3 08:37:56 mythtv kernel: [  318.943013] lirc_zilog: Zilog/Hauppauge IR
blaster firmware version 2.1.0 loaded
Jul  3 08:37:56 mythtv kernel: [  318.943027] lirc_zilog: ir_probe: adapter
id=0x0, client addr=0x71
Jul  3 08:37:56 mythtv kernel: [  318.943415] lirc_zilog: probe 0x70 @ cx18
i2c driver #0-0: success
Jul  3 08:37:56 mythtv kernel: [  318.943803] lirc_zilog: probe 0x71 @ cx18
i2c driver #0-0: success
Jul  3 08:37:56 mythtv kernel: [  318.943805] lirc_zilog: chip found with RX
and TX
Jul  3 08:37:56 mythtv kernel: [  318.943856] lirc_zilog: poll thread
started
Jul  3 08:37:56 mythtv kernel: [  318.943859] lirc_dev:
lirc_register_driver: sample_rate: 0
Jul  3 08:37:56 mythtv kernel: [  318.943914] lirc_zilog: 01 60 00 01 5b
Jul  3 08:37:56 mythtv kernel: [  318.945072] lirc_zilog: 05 02 04 4b 1a
Jul  3 08:37:56 mythtv kernel: [  318.946200] lirc_zilog: 09 79 88 b1 1f
Jul  3 08:37:56 mythtv kernel: [  318.947327] lirc_zilog: 0d 87 f5 16 61
Jul  3 08:37:56 mythtv kernel: [  318.948480] lirc_zilog: 11 a6 d9 ec 9a
Jul  3 08:37:56 mythtv kernel: [  318.949617] lirc_zilog: 15 0f a7 ab 27
Jul  3 08:37:56 mythtv kernel: [  318.950756] lirc_zilog: 19 48 9d 7e 1a
Jul  3 08:37:56 mythtv kernel: [  318.951891] lirc_zilog: 1d d9 0c 0e 48
Jul  3 08:37:56 mythtv kernel: [  318.953054] lirc_zilog: 21 91 77 d6 3d
Jul  3 08:37:56 mythtv kernel: [  318.954193] lirc_zilog: 25 09 44 18 60
Jul  3 08:37:56 mythtv kernel: [  318.955320] lirc_zilog: 29 e5 12 c6 6c
Jul  3 08:37:56 mythtv kernel: [  318.956468] lirc_zilog: 2d ba 32 c4 26
Jul  3 08:37:56 mythtv kernel: [  318.957605] lirc_zilog: 31 e3 76 01 48
Jul  3 08:37:56 mythtv lircd-0.8.6[1937]: caught signal
Jul  3 08:37:56 mythtv lircd-0.8.6[1933]: removed client
Jul  3 08:37:56 mythtv lircd-0.8.6[1933]: caught signal
Jul  3 08:37:56 mythtv kernel: [  318.958738] lirc_zilog: 35 a2 7d 81 59
Jul  3 08:37:56 mythtv kernel: [  318.960425] lirc_zilog: 39 90 28 8f 48
Jul  3 08:37:56 mythtv kernel: [  318.961567] lirc_zilog: 3d 79 61 b4 0a
Jul  3 08:37:56 mythtv kernel: [  318.961774] lirc_zilog: poll called
Jul  3 08:37:56 mythtv kernel: [  318.961777] lirc_zilog: poll result = 0
Jul  3 08:37:56 mythtv kernel: [  318.962717] lirc_zilog: 41 0b 57 21 6e
Jul  3 08:37:56 mythtv kernel: [  318.963845] lirc_zilog: 45 00 78 ad 62
Jul  3 08:37:56 mythtv kernel: [  318.965003] lirc_zilog: 49 b5 68 a2 27
Jul  3 08:37:56 mythtv kernel: [  318.966148] lirc_zilog: 4d 42 4e da 6c
Jul  3 08:37:56 mythtv kernel: [  318.967277] lirc_zilog: 51 94 63 0e 2a
Jul  3 08:37:56 mythtv kernel: [  318.968432] lirc_zilog: 55 1a 30 3b 45
Jul  3 08:37:56 mythtv kernel: [  318.969572] lirc_zilog: 59 fa 34 25 e5
Jul  3 08:37:56 mythtv kernel: [  318.970699] lirc_zilog: 5d cb 1e c1 ee
Jul  3 08:37:56 mythtv kernel: [  318.971827] lirc_zilog: 61 00 00 00 ee
Jul  3 08:37:56 mythtv kernel: [  318.975418] lirc_zilog: Zilog/Hauppauge IR
blaster firmware version 2.1.0 loaded
Jul  3 08:37:56 mythtv kernel: [  318.975453] lirc_zilog: initialization
complete
Jul  3 08:37:56 mythtv lircd-0.8.6[1956]: lircd(default) ready, using
/var/run/lirc/lircd
Jul  3 08:37:56 mythtv lircd-0.8.6[1960]: lircd(default) ready, using
/var/run/lirc/lircd1
Jul  3 08:37:56 mythtv lircd-0.8.6[1956]: accepted new client from 127.0.0.1
Jul  3 08:37:56 mythtv lircd-0.8.6[1960]: connected to localhost
Jul  3 08:37:56 mythtv kernel: [  318.982145] lirc_zilog: poll called
Jul  3 08:37:56 mythtv kernel: [  318.982148] lirc_zilog: poll result = 0
Jul  3 08:37:57 mythtv kernel: [  319.649775] lirc_zilog: key (0x00/0x00)

The 0x00 line keeps repeating indefinitely.

When I click a remote key I see this:

Jul  3 08:38:46 mythtv kernel: [  368.795441] lirc_zilog: poll called
Jul  3 08:38:46 mythtv kernel: [  368.795444] lirc_zilog: poll result =
POLLIN|POLLRDNORM
Jul  3 08:38:46 mythtv kernel: [  368.795454] lirc_zilog: read called
Jul  3 08:38:46 mythtv kernel: [  368.795457] lirc_zilog: read result = OK
(0)

So it looks to me like the receive part of the driver is working.

So I changed hardware.conf like this:

REMOTE_MODULES="lirc_dev lirc_zilog"
REMOTE_DEVICE="/dev/lirc0"
TRANSMITTER_MODULES="lirc_dev lirc_zilog"
TRANSMITTER_DEVICE="/dev/lirc0"

and reboot. After the reboot I see that both /dev/lirc0 and /dev/lirc1 are
created:

dave at mythtv:~$ ls /dev/lirc*
/dev/lirc0  /dev/lirc1  /dev/lircd  /dev/lircd1

Is that supposed to happen?

Here is dmesg output:

dave at mythtv:~$ dmesg|grep lirc 
[   27.667068] lirc_dev: IR Remote Control driver registered, major 61 
[   27.738407] lirc_zilog: Zilog/Hauppauge IR driver initializing
[   27.740892] lirc_zilog: chip found with RX and TX
[   27.740950] lirc_dev: lirc_register_driver: sample_rate: 0
[   28.283592] lirc_zilog: Zilog/Hauppauge IR blaster firmware version 2.1.0
loaded
[   28.284379] lirc_zilog: chip found with RX and TX
[   28.311270] lirc_dev: lirc_register_driver: sample_rate: 0
[   28.401981] lirc_zilog: Zilog/Hauppauge IR blaster firmware version 2.1.0
loaded
[   28.402050] lirc_zilog: initialization complete

Here is syslog output:

Jul  3 09:03:04 mythtv kernel: [   27.667068] lirc_dev: IR Remote Control
driver registered, major 61 
Jul  3 09:03:04 mythtv kernel: [   27.724081] cx18 0000:05:04.0: firmware:
requesting v4l-cx23418-cpu.fw
Jul  3 09:03:04 mythtv kernel: [   27.738407] lirc_zilog: Zilog/Hauppauge IR
driver initializing
Jul  3 09:03:04 mythtv kernel: [   27.740892] lirc_zilog: chip found with RX
and TX
Jul  3 09:03:04 mythtv kernel: [   27.740950] lirc_dev:
lirc_register_driver: sample_rate: 0
Jul  3 09:03:04 mythtv kernel: [   27.741004] Zilog/Hauppauge i2c IR 8-0070:
firmware: requesting haup-ir-blaster.bin
Jul  3 09:03:04 mythtv lircd-0.8.6[1110]: error in configfile line 62:
Jul  3 09:03:04 mythtv lircd-0.8.6[1110]: "2147549184" is out of range
.
...lots of out of range errors deleted...
.
Jul  3 09:03:06 mythtv lircd-0.8.6[1156]: error in configfile line 30944:
Jul  3 09:03:06 mythtv lircd-0.8.6[1156]: "2195390542" is out of range
Jul  3 09:03:06 mythtv lircd-0.8.6[1320]: lircd(default) ready, using
/var/run/lirc/lircd1
Jul  3 09:03:06 mythtv lircd-0.8.6[1320]: failure connecting to localhost
Jul  3 09:03:06 mythtv lircd-0.8.6[1320]: Connection refused
Jul  3 09:03:11 mythtv lircd-0.8.6[1320]: failure connecting to localhost
Jul  3 09:03:11 mythtv lircd-0.8.6[1320]: Connection refused
Jul  3 09:03:21 mythtv lircd-0.8.6[1320]: failure connecting to localhost
Jul  3 09:03:21 mythtv lircd-0.8.6[1320]: Connection refused
Jul  3 09:03:36 mythtv lircd-0.8.6[1320]: failure connecting to localhost
Jul  3 09:03:36 mythtv lircd-0.8.6[1320]: Connection refused
Jul  3 09:03:56 mythtv lircd-0.8.6[1320]: failure connecting to localhost
Jul  3 09:03:56 mythtv lircd-0.8.6[1320]: Connection refused
Jul  3 09:04:21 mythtv lircd-0.8.6[1320]: failure connecting to localhost
Jul  3 09:04:21 mythtv lircd-0.8.6[1320]: Connection refused

I am thinking I will be OK if I can fix the out of range messages. Any
suggestions on how to do that?

Thanks for the help!

Dave

-----Original Message-----
From: David Lasker [mailto:dave at altosdesign.com] 
Sent: Friday, July 02, 2010 8:41 PM
To: 'Discussion about mythtv'
Subject: Need help with Hauppauge HRV-1600 IR Blaster and lirc_zilog in
Mythbuntu .23/10.04

I am really close, so I hope someone can help me finish the race without
having to buy a MCE USB remote...

I am building my first MythTv system. I got the Hauppauge HVR-1600 kit with
the IR remote, receiver, and blaster, on the mistaken impression that they
would be easy to get working in Linux.

Here is what I did:

1) I started with fresh install of mythbuntu 0.23/10.04. I could see that
the analog and digital tuners of the HVR-1600 were recognized, but the
remote was not working.

2) I was easily able to make the IR receiver and remote work by modifying
/etc/lirc/hardware.conf to add ir_kbd_i2c to REMOTE_MODULES and
/dev/input/event9 to REMOTE_DEVICE. Then I used "Edit Keys" to remap the
keys that were not working. So receiving is fine, but I need to make the IR
blaster work.

2) I found lots of posts pointing me to lirc_pvr150, but I concluded that
was too out of date to work with Ubuntu 10.04.

3) I found this article in Jarod Wilson's blog: http://wilsonet.com/?p=40
that looks very relevant. 

4) I am pretty much a noob when it comes to Linux kernels and drivers, but I
found this post:
http://ubuntuforums.org/showthread.php?t=1294825&highlight=zilog+lirc&page=7
which seems to be an easy way to build lirc_zilog by patching lirc source
code. I did that, and also  copied over Mark Weaver's firmware and
lircd.conf files.

5) I do a "modprobe lirc_zilog". I can see in dmesg that the driver is
successfully loading its firmware, but I don't see any evidence that it
recognized my HVR-1600. When I restart /etc/init.d/lirc, I see errors like
this:
   
   error in configfile line 30938: 
   "2195390514" is out of range

Can anyone give me some advice on what to look for, or how to proceed?

Please note that everything is currently from the stock mythbuntu install
with the sole exception of the lirc patch to create lirc_zilog. Do I need to
update anything else from source?

Is lirc_zilog supposed to handle the receiving as well as the blasting? Or
will I continue to use ir-kbd-i2c for receiving? What should be in my lirc
hardware.conf?

Or is there a better way to do this without using lirc_zilog?

Thanks for the help!

Dave







More information about the mythtv-users mailing list