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

New version of JP1.2 serial driver - testing needed!
Goto page 1, 2  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: 849

PostPosted: Sat Mar 21, 2009 11:57 am    Post subject: New version of JP1.2 serial driver - testing needed! Reply with quote

Hello all,

The JP1.2/JP1.3 serial driver has, in the past, been modified to work with various tools and operating systems.

I have attempted to combine all of the modifications necessary to make the .dll/.so compatible with both IR and RM-IR and Windows/Linux.

I have tested as much as I can, but I only have one type of remote (Atlas OCAP 1056) and one interface (Tommy USB).

Please try the driver below with your setup, and let me know if it works for you, and what your configuration is:
http://www.hifi-remote.com/forums/dload.php?action=file&file_id=6430

Thanks!
xnappo
Back to top
View user's profile Send private message
gfb107
Expert


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

PostPosted: Sun Mar 22, 2009 6:18 pm    Post subject: Reply with quote

xnappo, where's the updated Linux library? I expected it to be included in this zip file.
_________________
-- 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
johnsfine
Site Admin


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

PostPosted: Sun Mar 22, 2009 7:09 pm    Post subject: Reply with quote

Is there a 64bit linux .so version anywhere?

Or where is the source code?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
xnappo
Expert


Joined: 30 Dec 2003
Posts: 849

PostPosted: Sun Mar 22, 2009 7:52 pm    Post subject: Reply with quote

gfb107 wrote:
xnappo, where's the updated Linux library? I expected it to be included in this zip file.


Sigh. Sorry wrong file. Try now.

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


Joined: 30 Dec 2003
Posts: 849

PostPosted: Sun Mar 22, 2009 7:53 pm    Post subject: Reply with quote

johnsfine wrote:
Is there a 64bit linux .so version anywhere?

Or where is the source code?


Hi John, see PM..

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


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

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

xnappo,

The new dll/.so seems to be missing the function Java_com_hifiremote_jp1_io_JP12Serial_getPortNames( JNIEnv *env, jobject jobj )
_________________
-- 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: 849

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

gfb107 wrote:
xnappo,

The new dll/.so seems to be missing the function Java_com_hifiremote_jp1_io_JP12Serial_getPortNames( JNIEnv *env, jobject jobj )


True - I left the port searching the way it was in 0.10. It seems to work for me like that. If you need that function for something in RM-IR I can try putting it back in the way you had it along with the isPortAvailable function.

[EDIT] I just tried, and I can get those functions back in - but where are they used?

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


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

PostPosted: Thu Mar 26, 2009 8:22 am    Post subject: Reply with quote

Those functions are both used in RMIR when the user wants to specify the port the remote is connected to (Remote -> Interface -> (comm method)) instead of letting the comm library search.

A dialog pops up showing the list of available ports known to the comm library, allowing the user to choose one. The user can also choose Other and enter the desired port. This is particularly useful for JP1.X Serial on Linux cause different distributions have different names for the serial ports and especially for the USB serial ports.

It is also needed for the parellel port comm library if the user has added a parallel port card that uses a non-standard I/O port range.
_________________
-- 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: 849

PostPosted: Thu Mar 26, 2009 8:53 am    Post subject: Reply with quote

gfb107 wrote:
Those functions are both used in RMIR when the user wants to specify the port the remote is connected to (Remote -> Interface -> (comm method)) instead of letting the comm library search.

A dialog pops up showing the list of available ports known to the comm library, allowing the user to choose one. The user can also choose Other and enter the desired port. This is particularly useful for JP1.X Serial on Linux cause different distributions have different names for the serial ports and especially for the USB serial ports.

It is also needed for the parellel port comm library if the user has added a parallel port card that uses a non-standard I/O port range.


Okay - I guess that when you select that and are using a version or the .dll/.so that doesn't have the function, RM-IR just ignores it - so I never saw that feature!

I will post a new version tonight assuming I see that dialog now with the functions in there.

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


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

PostPosted: Thu Mar 26, 2009 9:28 am    Post subject: Reply with quote

It's not so much that RMIR ignores it, it's that I didn't allow for the functions not being implemented when I wrote that part of the code, so I don't catch and handle the exceptions that get thrown when I call them. All the code associated with the dialog is circumvented when that happens.
_________________
-- 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: 849

PostPosted: Thu Mar 26, 2009 10:34 am    Post subject: Reply with quote

gfb107 wrote:
It's not so much that RMIR ignores it, it's that I didn't allow for the functions not being implemented when I wrote that part of the code, so I don't catch and handle the exceptions that get thrown when I call them. All the code associated with the dialog is circumvented when that happens.


It is just interesting that it still selects the serial driver anyway. Anyhow - of course this is a good and needed function. As mentioned in the Linux thread I put up some betas with the code today and will update all the packages tonight.

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


Joined: 30 Dec 2003
Posts: 849

PostPosted: Thu Mar 26, 2009 5:50 pm    Post subject: Reply with quote

xnappo wrote:
As mentioned in the Linux thread I put up some betas with the code today and will update all the packages tonight.

xnappo


Both the binary and source packages have been updated to version 0.12 with support for the 'get ports' function.

Regards,
xnappo
Back to top
View user's profile Send private message
xnappo
Expert


Joined: 30 Dec 2003
Posts: 849

PostPosted: Sun Mar 29, 2009 12:32 pm    Post subject: Reply with quote

There was a bug with the RM-IR wrapper function for writing to the remote in version 0.12 of the driver and earlier. I have uploaded version 0.13 with this fixed.

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


Joined: 22 Jul 2008
Posts: 3005
Location: Cambridge, UK

PostPosted: Sun Apr 05, 2009 9:37 am    Post subject: Reply with quote

Is version 0.13 stable enough to be included in the IR 8.00 distribution?
_________________

Graham
Back to top
View user's profile Send private message
TheShanMan



Joined: 01 Oct 2006
Posts: 71

PostPosted: Mon May 18, 2009 10:46 pm    Post subject: Reply with quote

How possible is it for you to get it working in x64 windows (xp in my case)? I only run IR once every several years when I get a new remote (which I just did today), so I'm a perpetual noob and have to re-learn everything each time, but I'm fully willing to help with any testing you might need. In the meantime I guess I'll have to fire up a vmware image to use IR. Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Software All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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
Get Smart! the band's official homepage Rockabilly Central