Can't edit or clone protocol for INT-422-2

This is the JP1 beginners forum. There's no such thing as a stupid question in here, so post away, but this forum is just for JP1 users and people considering JP1, non-JP1 users please use the appropriate forum above!

Moderator: Moderators

Post Reply
dreiss
Posts: 2
Joined: Sat Jun 04, 2016 9:13 pm

Can't edit or clone protocol for INT-422-2

Post by dreiss »

I'm trying to create a new upgrade for INT-422-2 by cloning the built-in MCE protocol and adding actions to the unused buttons. It's not working: when I click "Edit Device" in the general tab or "Edit" or "Clone" on the Devices tab, nothing happens, and I get this in rmaster.err:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.hifiremote.jp1.DeviceUpgrade.testAltPID(DeviceUpgrade.java:800)
at com.hifiremote.jp1.SetupPanel.showAltPID(SetupPanel.java:351)
at com.hifiremote.jp1.SetupPanel.update(SetupPanel.java:436)
at com.hifiremote.jp1.DeviceEditorPanel.refresh(DeviceEditorPanel.java:457)
at com.hifiremote.jp1.DeviceEditorPanel.<init>(DeviceEditorPanel.java:191)
at com.hifiremote.jp1.DeviceUpgradeEditor.<init>(DeviceUpgradeEditor.java:121)
at com.hifiremote.jp1.DeviceUpgradePanel.createRowObjectA(DeviceUpgradePanel.java:174)
at com.hifiremote.jp1.DeviceUpgradePanel.newRowObject(DeviceUpgradePanel.java:252)
at com.hifiremote.jp1.DeviceUpgradePanel.newRowObject(DeviceUpgradePanel.java:1)
at com.hifiremote.jp1.RMTablePanel.actionPerformed(RMTablePanel.java:426)
This seems to only happen on the protocol I want to use: setup code 1972

I modified RMIR to allow the check on line 800 to succeed or fail, and the Device Upgrade Editor can then be opened, but it shows a red error: "PID in use, Alt PID not available". I don't understand what this means. All of the tabs, and the "Save as" button, are greyed out.

Any tips on how I can proceed? Here's an RMIR file that you can load to see this behavior:
https://www.hifi-remote.com/forums/dload ... e_id=14101

Thanks!
mdavej
Expert
Posts: 4657
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

You can't edit built in devices on that remote. Just start with this upgrade, and you should be fine. No need to create a new one.

https://www.hifi-remote.com/forums/dload ... e_id=11769

EDIT: Nevermind. I see what you mean. You're not using a built in device, and any MCE sort of protocol won't open in RM. Looks like a bug. Graham will have to take a look.

EDIT2: A workaround in the mean time would be to download the above upgrade, edit in RM, change to your remote model when you're done. Then on Devices tab in RMIR, New, then open the upgrade. Repeat for any additional edits.
dreiss
Posts: 2
Joined: Sat Jun 04, 2016 9:13 pm

Post by dreiss »

Thanks! I was able to get this working by tweaking your upgrade, deleting all of the other devices on the remote, and installing the new upgrade.
mathdon
Expert
Posts: 4767
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Post by mathdon »

mdavej wrote:You're not using a built in device, and any MCE sort of protocol won't open in RM. Looks like a bug. Graham will have to take a look.

I've only just found time to take a look. The problem is being caused by the device upgrades using two protocols, MCE and RC6-M-32, both with PID=012A:2. RMIR tries to test if these have the same protocol code, but fails as protocols.ini doesn't contain S3C80 code for these protocols. This is a defect in RMIR that I will fix in the next build. It isn't a problem with MCE in itself, as mdavej suggests, but with the presence of these two protocols together in the device upgrade list.
Graham
Post Reply