Got IR and RM working in linux

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

xnappo wrote:Normal IR(7.14) with Wine does not work at all, it can't see the device. I tried adding 'lp' to both my user ID and root, but still nothing...

Any ideas? My preference would be to get IR working with Wine...

xnappo
Update. I figured out that for Wine I needed to create a link like this:

cd ~/.wine/dosdevices
ln -s /dev/ttyUSB0 com1

Then I was able to try to download/upload in IR, but it acts just like RMIR now - the LEDs flash shortly but then I get a read/write error :(

Works fine on the same computer if I boot into Windows...

xnappo
jurgyman
Posts: 40
Joined: Wed May 24, 2006 8:28 am
Location: Madison, WI
Contact:

linux

Post by jurgyman »

do these jp1x cables work under linux?
binky123
Expert
Posts: 1292
Joined: Sat Feb 14, 2004 3:35 am

Post by binky123 »

The USB JP1.2/3 "Flash" cables made by Tommy are recognized by Linux(Ubuntu 8.10 Intrepid and Fedora Core 7). The IR.exe software does run under Wine but there are some errors in the transmission of bytes that I haven't tracked down yet.
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

binky123 wrote:The USB JP1.2/3 "Flash" cables made by Tommy are recognized by Linux(Ubuntu 8.10 Intrepid and Fedora Core 7). The IR.exe software does run under Wine but there are some errors in the transmission of bytes that I haven't tracked down yet.
Ah - good someone else is seeing this too! Do you have problems with RM-IR too? This is the last thing causing me to dual-boot my laptop...

xnappo

[EDIT] there is some program call 'setserial' that looks like it might be worth playing with. Perhaps IR can't configure the port correctly?
binky123
Expert
Posts: 1292
Joined: Sat Feb 14, 2004 3:35 am

Post by binky123 »

I don't think it is a baud rate/port param issue. I'm able to read/write but for some reason bytes at particular memory addresses in the remote always fail. I have not looked at the bytes being returned yet to see what is failing.
binky123
Expert
Posts: 1292
Joined: Sat Feb 14, 2004 3:35 am

Post by binky123 »

I took a look at the bytes and it was failing on the XON/XOFF chars. I've set the serial params to explicitly turn it off. I've updated the jp12serial.dll to version 0.10 and released IR7.15(removed references to FTDI JP1 USB code). This seems to work fine under Ubuntu 8.04 Hardy now.
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

binky123 wrote:I took a look at the bytes and it was failing on the XON/XOFF chars. I've set the serial params to explicitly turn it off. I've updated the jp12serial.dll to version 0.10 and released IR7.15(removed references to FTDI JP1 USB code). This seems to work fine under Ubuntu 8.04 Hardy now.
Thanks a ton binky! Can't wait to try it out.

xnappo
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

xnappo wrote:[
Thanks a ton binky! Can't wait to try it out.
Tried it out with Ubuntu 8.10 and it works great.

Thanks again,
xnappo
johnsfine
Site Admin
Posts: 4766
Joined: Sun Aug 10, 2003 5:00 pm
Location: Bedford, MA
Contact:

Post by johnsfine »

I'm trying to use rmir in 64 bit Mepis Linux.

I recompiled libjp12serial.so as a 64 bit .so file. It shows up in the rmir help as JP1.X Serial version 0.11

In rmir, I set the remote interface to jp1.x serial. I connected an 8820 by jp1.2 cable. I tried download from remote.

All I get is "no remotes found". (I get the same if I disconnect the jp1.2 cable from the serial port).

Any suggestions for diagnosing this?
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Are you letting RMIR search for the remote or did you specify the port you want? Maybe try setting the port? Could be that Mepis names the ports differently than Ubuntu, which is where I originally developed the driver.

The automatic scanning uses these port names:
"/dev/ttyS0", "/dev/ttyS1", "/dev/ttyS2", "/dev/ttyS3", "/dev/ttyS4",
"/dev/ttyS5", "/dev/ttyS6", "/dev/ttyS7", "/dev/ttyS8", "/dev/ttyS9",
"/dev/ttyUSB0", "/dev/ttyUSB1", "/dev/ttyUSB2", "/dev/ttyUSB3",
"/dev/ttyUSB4", "/dev/ttyUSB5", "/dev/ttyUSB6", "/dev/ttyUSB7",
"/dev/ttyUSB8", "/dev/ttyUSB9"

If needed you could always add some debug logging to see what's happening.
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

johnsfine wrote:I'm trying to use rmir in 64 bit Mepis Linux.

I recompiled libjp12serial.so as a 64 bit .so file. It shows up in the rmir help as JP1.X Serial version 0.11

In rmir, I set the remote interface to jp1.x serial. I connected an 8820 by jp1.2 cable. I tried download from remote.

All I get is "no remotes found". (I get the same if I disconnect the jp1.2 cable from the serial port).

Any suggestions for diagnosing this?
John - try compiling jp12test and see if that works. If so - try jp12read as well.

Also - have you tried running IR with WINE? Does that work?

xnappo
Dilligaf
Posts: 79
Joined: Tue Aug 05, 2003 4:24 pm
Location: Michigan

Post by Dilligaf »

check the permissions on the .so file, change them to read and write for
everyone and see what happens.

Mike
johnsfine
Site Admin
Posts: 4766
Joined: Sun Aug 10, 2003 5:00 pm
Location: Bedford, MA
Contact:

Post by johnsfine »

gfb107 wrote:Are you letting RMIR search for the remote
I didn't see where I had any choice in the matter. How do I override that?

BTW, the remote ends up hung on disconnect of the JP1.2 cable. It takes removing and replacing a battery to regain use of the remote. Does that narrow down any possibilities?
If needed you could always add some debug logging to see what's happening.
I only have rare small scraps of time to try anything (none today). So I just hoped someone had an easy answer. I do know the hard answers.
xnappo wrote:John - try compiling jp12test and see if that works. If so -
try jp12read as well.
After I rediscover (I assume I knew once but forgot) what those are, they should work in Linux? I don't think I ever knew that.
Also - have you tried running IR with WINE?
Starting from ZERO experience in WINE, that sounds like it would be beyond my time budget.
Dilligaf wrote:check the permissions on the .so file, change them to read and write for
everyone and see what happens.
Thanks anyway. Not a relevant suggestion under the circumstances (I just built the .so in the same account and rmir can load the .so and successfully ask the .so for its version number). But I don't want to discourage your next guess at what stupid mistake I made. I'm not insulted. I probably made a stupid mistake.
Last edited by johnsfine on Wed Mar 25, 2009 9:14 pm, edited 1 time in total.
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

johnsfine wrote: After I rediscover (I assume I knew once but forgot) what those are, they should work in Linux? I don't think I ever knew that.
Sure - they work fine. Just compile them with 'make jp12test.exe'
[EDIT] jp12test just detects the interface and reports the signature and memory sizes. jp12read dumps the emulated EE portion of the flash to a file.
Starting from ZERO experience in WINE, that sounds like it would be beyond my time budget.
WINE is SUPER easy to use. Assuming you have it installed (which is also easy, 'sudo apt-get install wine'(assuming ubuntu or something similar) - you just run 'wine ir.exe' .. and it works automagically.

xnappo
Last edited by xnappo on Thu Mar 26, 2009 6:11 am, edited 1 time in total.
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

johnsfine wrote:
gfb107 wrote:Are you letting RMIR search for the remote
I didn't see where I had any choice in the matter. How do I override that?
In the menu bar, Remote -> Interface -> JP1.X Serial
Post Reply