ir.exe and Linux/Wine?

General JP1 chit-chat. Developing special protocols, decoding IR signals, etc. Also a place to discuss Tips, Tricks, and How-To's.

Moderator: Moderators

Post Reply
davecs
Posts: 351
Joined: Mon Mar 28, 2005 6:21 am
Location: UK
Contact:

ir.exe and Linux/Wine?

Post by davecs »

I run Linux, but I have to keep a Win98SE partition for little things, one of which is ir.exe.

In common with other programs built from Delphi with little addon, ir.exe runs under WINE. The only (and crucial) problem is that it cannot access the Parallel port. Having gone through the source, there are a series of assembler IN and OUT commands which do the transfer. Linux being a secure system blocks them, I suppose.

I do not need the parallel port for anything else, as my printer and scanner are USB. Has anyone managed to solve this problem? If so, what did they do?
URC7560/URC7562, URC8910, URC6440/OARUSB04G and URC3661/Insignia NS-RMT5D21/Insignia NS-RMT8D21
classicsat
Posts: 279
Joined: Fri Feb 20, 2004 2:24 pm

Post by classicsat »

I'd write an application to directly read/write the eeprom into a text/hex file that IR.exe reads/writes.
davecs
Posts: 351
Joined: Mon Mar 28, 2005 6:21 am
Location: UK
Contact:

Post by davecs »

That's the whole point, what I am asking is: does anyone know how to bypass the security so that I can do the IN/OUT stuff via my JP1. Otherwise WINE and ir.exe would work OK. I could make a few adjustments to the source and compile it in Lazarus/FPC, but I doubt it would make any difference!
URC7560/URC7562, URC8910, URC6440/OARUSB04G and URC3661/Insignia NS-RMT5D21/Insignia NS-RMT8D21
mtakahar
Expert
Posts: 281
Joined: Sun Aug 03, 2003 2:46 pm

Post by mtakahar »

classicsat
Posts: 279
Joined: Fri Feb 20, 2004 2:24 pm

Post by classicsat »

My whole point is to write, or find, a low level app that can read/write an I2C EEPROM much like the JP1 cable does, and output a file that IR can read/write, so IR doesn't have to.
johnsfine
Site Admin
Posts: 4766
Joined: Sun Aug 10, 2003 5:00 pm
Location: Bedford, MA
Contact:

Post by johnsfine »

Maybe there is some more Linux appropriate solution using the USB version of the cable.

But if you want the printer port version, writing a seperate app would probably take a Linux Guru and would be much harder than solving the problem in Linux the same way it was solved in Windows.

PC hardware makes it easy for a device driver to kill the protection that stops an application from from direct use of the printer port. It should be a trivial task for a Linux Guru to write something that kills that protection. I'm not sure whether it would be easiest to kill it totally for the printer port, or just for the printer port within Wine, or for a specific application. But I'm confident some form of just killing the protection would be easier than doing it as a seperate app.
The Robman
Site Owner
Posts: 22063
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

The thread that Hal linked to explains how to run IR.exe under Linux.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
johnsfine
Site Admin
Posts: 4766
Joined: Sun Aug 10, 2003 5:00 pm
Location: Bedford, MA
Contact:

Post by johnsfine »

Oops. I misunderstood the status (since I'm not trying to use Linux myself). I thought that was just runing the GUI part of IR. Now I understand it handles the remote connection as well.
Post Reply