Using Java to write an application that uses the UIRT

Interested in integrating USB-UIRT support into an application? Look here!

Moderator: jrhees

Using Java to write an application that uses the UIRT

Postby jengaseuss » Tue Feb 08, 2005 2:54 am

I see that the API is in C. Has anyone used Java to write a user application that tells the UIRT to learn and send IR signals??? It is difficult to tie the C and Java together, or did it not take much to make the API work.

Thanks,

Dan
jengaseuss
 
Posts: 1
Joined: Tue Feb 08, 2005 2:50 am

Postby Guest » Thu Feb 10, 2005 10:13 pm

I think SageTV is coded in Java and uses USBUIRT, so it must be possible.
I'm a long time Java programmer, but have never done any JNI (Java Native Interface) stuff, but that's the key: declaring the UUIRT methods as native and acessing them that way. Not sure how to do the callbacks, but I'm certain its possible.

Search Java forums for JNI info.

Maybe this will help:
http://java.sun.com/docs/books/tutorial ... index.html
Guest
 

Java JNI Wrapper

Postby pghosh » Thu Apr 28, 2005 3:46 am

I have started building a JNI wrapper for the USB-UIRT dll. Please email me at pghosh@softhome.net if you're interested in using it.

-Peter
pghosh
 
Posts: 3
Joined: Mon Apr 25, 2005 12:23 am

Postby pghosh » Tue May 10, 2005 3:28 pm

I have posted my project at sourceforge. http://sourceforge.net/projects/uirt-j/
pghosh
 
Posts: 3
Joined: Mon Apr 25, 2005 12:23 am

Postby jrhees » Tue May 10, 2005 11:32 pm

Peter,

Awesome! Fine work!

Just one note -- you may want to remove uuirtdrv.dll from your source distribution and (if necessary) change your wrapper to dynamically load the dll from the Windows path (where it is installed). I don't know if this is possible...

-Jon
jrhees
Site Admin
 
Posts: 1652
Joined: Tue Jan 28, 2003 11:49 pm

Postby pghosh » Thu May 12, 2005 1:58 pm

Thanks Jon.

I haven't done much C development in the past, specially any for the Windows platform. As you'll notice most of the C code is lifted from your test application.

I have populated the CVS tree at sourceforge and will gladly grant you developer access if you're interested in helping me maintain the code base.

-Peter
pghosh
 
Posts: 3
Joined: Mon Apr 25, 2005 12:23 am

Official

Postby Guest » Fri Oct 07, 2005 5:02 am

So where can i find the origional? :wink:B):wink:
Guest
 


Return to Developers

Who is online

Users browsing this forum: No registered users and 24 guests

cron