Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Previous page Next page Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Page 1 of 2
Topic:
xml code ?
This thread has 16 replies. Displaying posts 1 through 15.
Post 1 made on October 16, 2024 at 11:58
D
davidwf
Long Time Member
Joined:
Posts:
RC XP:
January 2010
77
9⭐︎
I THINK......I read somewhere that there was a way of extracting the various macros etc as .xml code from a RU990 series remote......would appreciate any tips for doing sov
Post 2 made on October 17, 2024 at 02:45
Barf
Long Time Member
Joined:
Posts:
RC XP:
August 2013
376
207⭐︎
An xcf-file is nothing but a zip file, that contains an XML-file named ConfigEdit.xml, as well as a number of bitmaps in png format. You can, possibly after renaming open an xcf file with "any" achiever program, Winzip or 7zip, or ... then you can extract ConfigEdit, which contains all data, in a fairly easy to decode way. IrScrutinizer's xcf importer does exactly this.
OP | Post 3 made on October 21, 2024 at 18:36
D
davidwf
Long Time Member
Joined:
Posts:
RC XP:
January 2010
77
9⭐︎
OK, got the xml fie - thank you
how on earth do I tie that up with the macros and commands
Post 4 made on October 22, 2024 at 09:24
Barf
Long Time Member
Joined:
Posts:
RC XP:
August 2013
376
207⭐︎
Well, you are unlikely go get a documentation from Philips, so you basically have to "reverse engineer", which basically amount to guessing. I did this in the xcf importer in IrScrutinizer, and it was not terribly hard, and it worked! Much easier than the silly indentation based files called .yaml, that I am currently swearing at (Homeassistant!)

If you want to look at the IrScrutinizer code, it is here. It imports the commands of a given xcf file, while respecting the partitioning in devices and pages.

Post 5 made on October 22, 2024 at 18:09
L
MOD
Lyndel McGee
RC Moderator
Joined:
Posts:
RC XP:
August 2001
13,125
389⭐︎
I tried using the importer with a PEP2 PCF on Scrutinizer 2.1.0 and had no luck.

Is there a minimum version where this is known to work?

Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 6 made on October 22, 2024 at 18:24
L
MOD
Lyndel McGee
RC Moderator
Joined:
Posts:
RC XP:
August 2001
13,125
389⭐︎
I also just downloaded 2.4.1 and same issue. How is it that you are supposed to import an XCF file?

I'd be willing to share a PEP2 file that I'm trying to use here.

When I try dropping a PEP2 file into the import tab (After reading help), I get parse exception on line -1 - No Modules Present.

I do know that the scripts in my current config file, may have some CDATA wrappers present. Not sure if that would cause issues.

My current XCF is also over 10MB in size.

The java on my system is 32 bit v1.8.0_162-b12 (Hotspot Build 25.162-b12 mixed mode, sharing)

Let me know if you'd like to troubleshoot.

Edited to change PCF to XCF

Last edited by Lyndel McGee on October 23, 2024 17:19.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 7 made on October 23, 2024 at 03:32
Barf
Long Time Member
Joined:
Posts:
RC XP:
August 2013
376
207⭐︎
Hi Lyndel, nice to hear from you!

PCF is not supported, since it uses an encrypted form of the Pronto Hex codes. (Opening in PEP and exporting in another format might decrypt it though...)

For the XCF: while my work is based on reverse engineering, it is quite possible that either there are different versions of the XML format, or that I have missed something. I will be happy to have a look at any XDF file that is not accepted. Please send/upload it, for example with personal PM. (Actually, ConfigEdit.xml will be sufficient if size is a problem.)

Post 8 made on October 23, 2024 at 17:18
L
MOD
Lyndel McGee
RC Moderator
Joined:
Posts:
RC XP:
August 2001
13,125
389⭐︎
I said PCF but I meant XCF. Sorry. ;-)


Dropped you an RC Mail note with more details as to where and what I sent. Let me know if you did not receive it.

Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 9 made on October 24, 2024 at 06:58
Barf
Long Time Member
Joined:
Posts:
RC XP:
August 2013
376
207⭐︎
I got it. Turns out that the file has Version 6 (attribute Version on the root element of ConfigFile.xml), which is presently not supported. I opened an issue here. Will be fixed shortly.
Post 10 made on October 24, 2024 at 07:19
Barf
Long Time Member
Joined:
Posts:
RC XP:
August 2013
376
207⭐︎
Should be fixed in the snapshot build. Please try it and report the outcome. Is it complete? Can you find anything that should be different? Or can you suggest any other improvements?

Turn out that I added the possibility to open ConfigEdit.xml files directly, not just xcf files.

Post 11 made on October 25, 2024 at 12:52
L
MOD
Lyndel McGee
RC Moderator
Joined:
Posts:
RC XP:
August 2001
13,125
389⭐︎
B,

I can confirm that snapshot release is good for PEP2 files. I sent you a PEP1 file to consider as well.

Also, a while back, I sent you some info on simplifying the format for the apple IR codes.

Seems they have a 5 bit device and an 11 bit subdevice that is ALWAYS consistent.

[Link: en.m.wikipedia.org]

Not sure if this would help things for you as you always need a PairID, Device, and Function or you could hard-code a Subdevice value and use the SubDevice input as the value for 8 bit PairID. That would simplify as users wont have to add PairID=254 for example when generating codes.

Not sure if having a hard-wired value for Subdevice would make detection of the codeset easier as well.

If you are interested in a further discussion, hit me up on email.

Lyndel

Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 12 made on October 26, 2024 at 07:23
Barf
Long Time Member
Joined:
Posts:
RC XP:
August 2013
376
207⭐︎
I sent you a PEP1 file to consider as well.

It loads, actually. Problem is that there are about 50 signals, all having the informative name "learned"!! Presently, only one signal with a certain name can be contained, so there shows up only one signal.

Anyhow, it may be desirable to handle the case of non-unique names in a more graceful way. I have checked in a new version (snapshot with the same URL as before) that will rename in order to keep all signals. Also, it handles "Pages" by mapping them to CommandSets (version 4 only). Please try it.

Also, a while back, I sent you some info on simplifying the format for the apple IR codes.

I suggest you open a new thread on this topic.
Post 13 made on October 27, 2024 at 20:05
L
MOD
Lyndel McGee
RC Moderator
Joined:
Posts:
RC XP:
August 2001
13,125
389⭐︎
On October 26, 2024 at 08:23, Barf said...
I suggest you open a new thread on this topic.

Here or in your issue tracker?
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 14 made on October 27, 2024 at 20:09
L
MOD
Lyndel McGee
RC Moderator
Joined:
Posts:
RC XP:
August 2001
13,125
389⭐︎
On October 26, 2024 at 08:23, Barf said...
It loads, actually. Problem is that there are about 50 signals, all having the informative name "learned"!! Presently, only one signal with a certain name can be contained, so there shows up only one signal.

Anyhow, it may be desirable to handle the case of non-unique names in a more graceful way. I have checked in a new version (snapshot with the same URL as before) that will rename in order to keep all signals. Also, it handles "Pages" by mapping them to CommandSets (version 4 only). Please try it.


I can confirm that the new version works only if you drag the XCF file onto Scrutinizer Import tree list. If you click the "..." button to import a file, nothing appears to be processed.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 15 made on October 28, 2024 at 04:05
Barf
Long Time Member
Joined:
Posts:
RC XP:
August 2013
376
207⭐︎
I can confirm that the new version works only if you drag the XCF file onto Scrutinizer Import
tree list. If you click the "..." button to import a file, nothing appears to be processed.

The "..." brings up a file selector, which fills in the "File/URL" text field. (Alternatively, you can fill it in by typing and/or pasting). To actually load, you press "Load File/URL". See [Link: harctoolbox.org] . This is the way it works since the program was designed. I believe this behavior is consistent with most GUI standards.
Page 1 of 2

Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.