New version of JP1.2 serial driver - testing needed!

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

New version of JP1.2 serial driver - testing needed!

Post by xnappo »

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 ... le_id=6430

Thanks!
xnappo
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

xnappo, where's the updated Linux library? I expected it to be included in this zip file.
johnsfine
Site Admin
Posts: 4766
Joined: Sun Aug 10, 2003 5:00 pm
Location: Bedford, MA
Contact:

Post by johnsfine »

Is there a 64bit linux .so version anywhere?

Or where is the source code?
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

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
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

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

Or where is the source code?
Hi John, see PM..

xnappo
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

xnappo,

The new dll/.so seems to be missing the function Java_com_hifiremote_jp1_io_JP12Serial_getPortNames( JNIEnv *env, jobject jobj )
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

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
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

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.
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

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
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

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.
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

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
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

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
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post by xnappo »

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
mathdon
Expert
Posts: 4725
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Post by mathdon »

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

Graham
TheShanMan
Posts: 74
Joined: Sun Oct 01, 2006 10:16 pm

Post by TheShanMan »

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. :(
Post Reply