RMIR download from jp1/usb remote problem

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

Moderator: Moderators

ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

RMIR download from jp1/usb remote problem

Post by ElizabethD »

Something is not correct in RMIR
Jp1 downloads just do not work for me. Work fine from IR.
I don't know why jp1.x serial is dragged into this error log since I'm downloading from 8910 using Tommy's cable for USB port and using the Delcom driver in WinUSB driver and what looks like correct pid and all that was in the RMIR window for linking the interface
Loaded S:\JP1\RM\RemoteMaster.v2.00\Windows\jp1usb.dll
JP1USB version 0.03
EEPROM size returns -1
EEPROM address returns 0
Loading S:\JP1\RM\RemoteMaster.v2.00\Windows\DecodeIR.dll
Loaded S:\JP1\RM\RemoteMaster.v2.00\Windows\DecodeIR.dll
Starting normal download
Interface Name = JP1 USB
Port Name = NULL
Testing interface: JP1 Parallel
Testing interface: JP1.X Serial
Testing interface: JP1 USB
Interface matched. Trying to open remote.
Failed to open
Starting normal download
Interface Name = NULL
Port Name = NULL
Testing interface: JP1 Parallel
Port Name = NULL
Testing interface: JP1.X Serial
Port Name =
Interface opened successfully
Base address = $0
Read first -1 bytes: 00 00 00 00 00 00 00 00 00 00
Searching for RDF
Final signature sought =
No matching RDF found
In device manager DelcomProxy is fine. No yellow !
This is frustrating.
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

Post by ElizabethD »

I've been through all interface options, clearly Autodetect didn't work, forced jp1 usb which is the correct one, and still no go, error log:
Loading S:\JP1\RM\RemoteMaster.v2.00\Windows\jp1parallel.dll
Loaded S:\JP1\RM\RemoteMaster.v2.00\Windows\jp1parallel.dll
JP1Parallel version 0.02
EEPROM size returns -1
EEPROM address returns 0
Loading S:\JP1\RM\RemoteMaster.v2.00\Windows\jp12serial.dll
Loaded S:\JP1\RM\RemoteMaster.v2.00\Windows\jp12serial.dll
JP12Serial version 0.18
Loading S:\JP1\RM\RemoteMaster.v2.00\Windows\jp1usb.dll
Loaded S:\JP1\RM\RemoteMaster.v2.00\Windows\jp1usb.dll
JP1USB version 0.03
EEPROM size returns -1
EEPROM address returns 0
Loading S:\JP1\RM\RemoteMaster.v2.00\Windows\DecodeIR.dll
Loaded S:\JP1\RM\RemoteMaster.v2.00\Windows\DecodeIR.dll
Starting normal download
Interface Name = JP1 USB
Port Name = \\?\usb#vid_0fc5&pid_1222#7&10fc27ae&0&4#{cafa8e93-7c32-4c27-b088-d8c36aaf4ebf}
Testing interface: JP1 Parallel
Testing interface: JP1.X Serial
Testing interface: JP1 USB
Interface matched. Trying to open remote.
Failed to open
Edit:Ditto in the newest RMIR 2.01
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
3FG
Expert
Posts: 3435
Joined: Mon May 18, 2009 11:48 pm

Post by 3FG »

Well, this used to work, but I'm seeing the same behavior here. It seems to me that JP1USB.dll isn't working correctly, but I don't have the source code to check into it.

The dll is loaded successfully, and the interface itself is recognized, but OpenRemote fails-- I don't know why it no longer works.
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

Post by ElizabethD »

Maybe parts didn't get compiled :?:

jp1usb.dll in the zip distribution
v1.97 and v1.99b - both dated 3/26/09 -- 512K
v2.00 and v2.01 - both dated 10/5/10 -- 73K
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Liz,

Have you tried replacing the v2.00/v2.01 jp1usb.dll with the one from v1.97 or v1.99b? Could just be the copy my build script is picking up got corrupted.
3FG
Expert
Posts: 3435
Joined: Mon May 18, 2009 11:48 pm

Post by 3FG »

This post shows that the size difference is expected, and that dlls from 1.97 or 1.99 aren't able to access the Delcom chip via WinUSB.

However, mathdon's 0.3 version did (if I recall correctly) work with RMIR 2.00, and now it seems to not work. Makes me wonder if a Windows or Java update has broken it.
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

Post by ElizabethD »

gfb107 wrote:Liz,

Have you tried replacing the v2.00/v2.01 jp1usb.dll with the one from v1.97 or v1.99b? Could just be the copy my build script is picking up got corrupted.
I thought of it when I saw the differences, but I could not determine from my scant notes and 1 error log whether those versions worked then or not. And I gather not from 3fg's subsequent post.

I'm on XP-SP3. Graham tested his, short version, on Win2K.
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
3FG
Expert
Posts: 3435
Joined: Mon May 18, 2009 11:48 pm

Post by 3FG »

I run XP-SP3 also, and 0.3 did work with RMIR on my computer. I tested it when it first was released.
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

I was going to try building jp1usb.dll version 0.03 under MinGW to see if that works any better, but I can't find the source. Anyone know where it is?
mathdon
Expert
Posts: 4725
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Post by mathdon »

gfb107 wrote:I was going to try building jp1usb.dll version 0.03 under MinGW to see if that works any better, but I can't find the source. Anyone know where it is?
My apologies. It seems that I didn't upload the source. I've now done so, here.

My absence from these forums for the past few months has been the result of personal events, and is likely to continue. I still keep an occasional eye on things, however, and have just seen this thread and noticed my oversight.
Graham
mathdon
Expert
Posts: 4725
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Post by mathdon »

I've just done a JP1 download from my URC-8550 with the following setup: RMIR v2.01 Alpha 8, jp1usb v0.03, java version 1.6.0_23, WinUSB driver, interface set to JP1USB with auto-detect, and MS Vista. It worked without any problem. In case it is relevant, I haven't done any Windows updates for some weeks. So unless I misunderstand the problem, I am unable to reproduce it.
Graham
3FG
Expert
Posts: 3435
Joined: Mon May 18, 2009 11:48 pm

Post by 3FG »

Hello Graham,
Thanks for uploading the source. Since I can reproduce the problem, I'll look into it tonight.
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

Post by ElizabethD »

Graham, great to see you stopped by :)
XP here and I, too, did auto-detect in one of many trials.
3FG wrote:Makes me wonder if a Windows or Java update has broken it.
My java version is 6.0.24. I updated java 2/23/2011.
Last few Windows XP updates were 6/18/2010, 10/8/2010, 12/21/2010, 2/24/11 and 3/20/2011, in case any of it matters.
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
3FG
Expert
Posts: 3435
Joined: Mon May 18, 2009 11:48 pm

Post by 3FG »

Using the debugger and attaching to the Java process shows that the call to CreateFile (which opens the USB interface) fails with the error Access Denied. Using jp1usb.dll with a Windows test program does succeed-- at least past the call to CreateFile.

I haven't found a fix yet, but I suspect that the issue is increased security in Windows or Java. Can't let the computer get a virus from our remotes!
3FG
Expert
Posts: 3435
Joined: Mon May 18, 2009 11:48 pm

Post by 3FG »

Version 0.031 of jp1usb.dll. Replace jp1usb.dll v0.03 in the ..\Windows subdirectory of your RMIR directory.

Liz and oldgrouch,
I hope you'll try this out.
Post Reply