Page 4 of 6
Posted: Wed Nov 26, 2008 9:45 am
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
linux
Posted: Wed Dec 10, 2008 11:23 am
by jurgyman
do these jp1x cables work under linux?
Posted: Wed Dec 10, 2008 11:56 am
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.
Posted: Wed Dec 10, 2008 2:38 pm
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?
Posted: Wed Dec 10, 2008 4:35 pm
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.
Posted: Thu Dec 11, 2008 10:15 am
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.
Posted: Thu Dec 11, 2008 10:58 am
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
Posted: Thu Dec 11, 2008 6:07 pm
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
Posted: Wed Mar 25, 2009 6:38 am
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?
Posted: Wed Mar 25, 2009 7:49 am
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.
Posted: Wed Mar 25, 2009 7:55 am
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
Posted: Wed Mar 25, 2009 8:57 am
by Dilligaf
check the permissions on the .so file, change them to read and write for
everyone and see what happens.
Mike
Posted: Wed Mar 25, 2009 9:05 pm
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.
Posted: Wed Mar 25, 2009 9:12 pm
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
Posted: Thu Mar 26, 2009 6:06 am
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