Linux 'i2c-parport' module & JP1. How?
Posted: Sun Nov 07, 2010 10:43 pm
I'm interested in having a non-emulator Linux hardware interface to my JP1 remotes. There's a kernel module that seems as though it might be right for the job, but I haven't yet found any docs online (even here) that explain how to hook things up, just some leads and clues. So here's some of the clues for other Linux users:
Elsewhere J. McDowell's 2007 blog claims he's done it:
Code: Select all
# from the shell, print usage info about 'i2c-parport'
%/sbin/modinfo i2c-parport
filename: /lib/modules/2.6.32-5-686/kernel/drivers/i2c/busses/i2c-parport.ko
license: GPL
description: I2C bus over parallel port
author: Jean Delvare <khali@linux-fr.org>
depends: parport,i2c-algo-bit,i2c-core
vermagic: 2.6.32-5-686 SMP mod_unload modversions 686
parm: type:Type of adapter:
0 = Philips adapter
1 = home brew teletext adapter
2 = Velleman K8000 adapter
3 = ELV adapter
4 = ADM1032 evaluation board
5 = ADM1025, ADM1030 and ADM1031 evaluation boards
6 = Barco LPT->DVI (K5800236) adapter
7 = One For All JP1 parallel port adapter
(int)
I gather from the above quote that the 'eeprom' module is also involved, but it's not obvious how that's done....I found a couple of old Linux tools, but then I had a thought: it's just i2c. Why not tie it into the proper i2c subsystem? Turns out the i2c-parport driver makes this sort of thing easy; all you add is a single entry defining the appropriate parallel port lines to wiggle and it all magically works.
So now I can talk to my remote using the eeprom driver talking to the i2c subsystem which talks to the remote over the parallel port adaptor I built. Which feels wonderfully sick. :) Now I need to actually have a closer look at getting all the buttons working for my new TV...
http://www.earth.li/~noodles/blog/2007/ ... lness.html