RMIR: Prototype IR function in RM

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

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

Post by gfb107 »

In order to see the learned signals in RMIR, you need to place a copy of DecodeIR.dll in the directory with RemoteMaster.jar

Decoding learned signals is the only (implemented) piece that isn't working on Linux.

Here's the bottom of my 6131 extender RDF:

Code: Select all

[Protocols]
0000, 0002:5, 0006, 0007, 000A, 000C, 000D, 0013, 0014, 0015,
0018, 001A, 001C, 001F:8, 0022, 0027:new, 0029, 002D, 002F, 0034,
003A, 0045, 0046, 0058, 005A, 005C, 005D, 005E:2, 0060, 0065,
006A, 0073, 007E:3, 0092, 0093, 009C, 009E, 00A4, 00AF, 00B6,
00C4, 00C9, 00CA, 00CD:2, 00DE, 00E2, 00E3, 00E8, 00F8:3, 010F,
0111, 0114, 0117, 011A, 011B, 0162, 0174, 0184, 01FC:DummyDSM
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

Post by ElizabethD »

Thanks for hand-holding. That did the trick. I completely forgot about DecodeIR!

I downloaded learned signals and I see some discrepancies between what IR and what RMIR reports. Is the decoding work in progress, if not I can upload few files I tried.

At this point I see that hex values aren't developed perhaps. Also the interpretation of timing values look different which implies that IR and RMIR use different math :)
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

RMIR 1.82 Learned decoding

Post by ElizabethD »

Greg, I saw 1.82 and couldn't resist trying :)
I see few problems with representing learned signals. Some translations are perfect, some aren't. No wrong values at all, just all or nothing decodes.
I just used few files. In case you want to see side by side with IR
http://www.hifi-remote.com/forums/dload ... le_id=5092

In case I didn't mention it before, downloads via parallel from JP1 work fine. I'm losing track of previous history when taking long pauses from here :(
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
xvalentinex
Posts: 1
Joined: Fri Nov 16, 2007 11:16 am

Post by xvalentinex »

Thank you so much for a great program! Decoding support in Linux would be awesome. Is there any plans for this? It would be nice to not have to switch between IR.exe and RemoteMaster constantly.
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

xvalentinex wrote:Thank you so much for a great program! Decoding support in Linux would be awesome. Is there any plans for this? It would be nice to not have to switch between IR.exe and RemoteMaster constantly.
All we need is a port of DecodeIR. Should be a simple port, but I don't think John has any time to spare.
johnsfine
Site Admin
Posts: 4766
Joined: Sun Aug 10, 2003 5:00 pm
Location: Bedford, MA
Contact:

Post by johnsfine »

DecodeIr is in use on Linux in other projects (not my projects). But I don't recall where. I probably don't have to search or reinvent that any time soon.

But maybe you have a clearer idea of what is needed, which could reduce the effort. I expect most of what we need is a makefile to compile DecodeIr in GCC as a .so instead of a .dll

As I said above, that has been done before by at least a couple people.
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

I'd be happy to do that. I just need access to the source.
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Well, having gotten no response, here's another approach.

Here's how I build the jp12serial as a shared library under linux:

Code: Select all

g++ -shared -o libjp12serial.so -I/usr/lib/jvm/java-6-sun-1.6.0.00/include -I/usr/lib/jvm/java-6-sun-1.6.0.00/include/linux jp12serial.cpp
Here's how I build a test program that uses that shared library:

Code: Select all

g++ jp12test.cpp -o jp12test -L. -ljp12serial -Wl,-rpath,.
Here's the java code that loads that library:

Code: Select all

public JP12Serial()
  throws UnsatisfiedLinkError
{
  if ( !isLoaded )
  {
    System.loadLibrary( "jp12serial" );
    isLoaded = true;
  }
}

public JP12Serial( File folder )
  throws UnsatisfiedLinkError
{
  if ( !isLoaded )
  {
    File file = new File( folder, System.mapLibraryName( "jp12serial" ));
    System.load( file.getAbsolutePath());
    isLoaded = true;
  }
}
mein
Posts: 6
Joined: Mon Aug 04, 2003 9:01 am
Location: Champlin, MN
Contact:

Post by mein »

Looks like you can get the source for it here:

http://www.hifi-remote.com/forums/dload ... 5c8a6bdb89
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

OK, I've ported DecodeIR to Linux. All development and testing was done on Ubuntu 7.10.

Put libDecodeIR.so in the same directory with RemoteMaster.jar and RMIR will be able to decode learned signals.

For John I include links to a the source diff that has all the changes I made, and the Makefile used to build it.
mdavej
Expert
Posts: 4631
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

Greg,

Is it possible to use a non-standard parallel port I/O address like in IR? Mine happens to be B000 (FFFFB000 is how it shows up in IR). Autodetect doesn't find it. I also hard coded it in the properties file, but that didn't work either.

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

Post by gfb107 »

There's a trial version of RM v1.83 with support for specifying non-standard ports at http://www.4shared.com/file/34487385/a7 ... rv183.html
mdavej
Expert
Posts: 4631
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

Thanks. Just tried it. Entered address, and still no joy. No Remotes Found!
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Try this experimental version of jp1parallel.dll
mdavej
Expert
Posts: 4631
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

Experiment is a success! Thanks.
Post Reply