JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

Got IR and RM working in linux
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Software
View previous topic :: View next topic  
Author Message
xnappo
Expert


Joined: 30 Dec 2003
Posts: 861

                    
PostPosted: Wed Nov 26, 2008 10:45 am    Post subject: Reply with quote

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 Sad

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

xnappo
Back to top
View user's profile Send private message
jurgyman



Joined: 24 May 2006
Posts: 40
Location: Madison, WI

                    
PostPosted: Wed Dec 10, 2008 12:23 pm    Post subject: linux Reply with quote

do these jp1x cables work under linux?
Back to top
View user's profile Send private message Visit poster's website
binky123
Expert


Joined: 14 Feb 2004
Posts: 1292

                    
PostPosted: Wed Dec 10, 2008 12:56 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
xnappo
Expert


Joined: 30 Dec 2003
Posts: 861

                    
PostPosted: Wed Dec 10, 2008 3:38 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
binky123
Expert


Joined: 14 Feb 2004
Posts: 1292

                    
PostPosted: Wed Dec 10, 2008 5:35 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
binky123
Expert


Joined: 14 Feb 2004
Posts: 1292

                    
PostPosted: Thu Dec 11, 2008 11:15 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
xnappo
Expert


Joined: 30 Dec 2003
Posts: 861

                    
PostPosted: Thu Dec 11, 2008 11:58 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
xnappo
Expert


Joined: 30 Dec 2003
Posts: 861

                    
PostPosted: Thu Dec 11, 2008 7:07 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
johnsfine
Site Admin


Joined: 10 Aug 2003
Posts: 4766
Location: Bedford, MA

                    
PostPosted: Wed Mar 25, 2009 7:38 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Wed Mar 25, 2009 8:49 am    Post subject: Reply with quote

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.
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
xnappo
Expert


Joined: 30 Dec 2003
Posts: 861

                    
PostPosted: Wed Mar 25, 2009 8:55 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Dilligaf



Joined: 05 Aug 2003
Posts: 79
Location: Michigan

                    
PostPosted: Wed Mar 25, 2009 9:57 am    Post subject: Reply with quote

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

Mike
Back to top
View user's profile Send private message
johnsfine
Site Admin


Joined: 10 Aug 2003
Posts: 4766
Location: Bedford, MA

                    
PostPosted: Wed Mar 25, 2009 10:05 pm    Post subject: Reply with quote

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?

Quote:

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.

Quote:

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 10:14 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
xnappo
Expert


Joined: 30 Dec 2003
Posts: 861

                    
PostPosted: Wed Mar 25, 2009 10:12 pm    Post subject: Reply with quote

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.

Quote:

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 7:11 am; edited 1 time in total
Back to top
View user's profile Send private message
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Thu Mar 26, 2009 7:06 am    Post subject: Reply with quote

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
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Software All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control