TDC-8360P STB - Unknown protocol

Need help adding new codes to your Slingbox, this is the place to ask. You're welcome to ask general Slingbox questions here, but be aware that most of us are not Slingbox experts.

Moderator: Moderators

eferz
Expert
Posts: 1078
Joined: Thu Jun 03, 2010 1:25 am
Location: Austin, Texas

Post by eferz »

vickyg2003 wrote:I've now read http://slingbox.wikia.com/wiki/How_to_u ... s_website..

And found some references to the LRZ file but nothing on how to create an XML file.
I guess that I need to be more specific in the wikia page for that. The xml file is created on Sling Media's servers as a byproduct of the learning process. Once you've finished the process, then you can get the GUID from the logfile to use in the aforementioned URL to download the file with a web browser. Actually, there should be a picture of the logfile that gives an example of the full URL.
vickyg2003 wrote:I've heard talk of a VBS script to handle the LRZ file, but can't find that either.
That's more of a misnomer. Only Sling Media's tools can "unzip" LRZ files. Alan's vb script is only able to parse the web slingplayer's logfile after attempting to import the LRZ file into your SlingAccount.

You can find the source file for his vb script here https://www.hifi-remote.com/forums/dload ... le_id=8727. Basically, it looks for the UEI string and adds a space between each pair of characters. The spaces are important since, IR.exe will identify the UEI strings from Sling as a single gigantic hex number and error out without being reformatted.
alanrichey
Expert
Posts: 3533
Joined: Mon Mar 24, 2008 7:14 am
Location: UK/USA

Post by alanrichey »

eferz wrote:I'm just confused that you can embrace the things like Sling's alternate URL whereas you reject the new RM/RMIR.
Very simple, the new remotes site fixes some bugs I specifically pointed out, so it is better then the beta site. And as I have already said, now I have found out I have a link to a standalone RM I will happily upgrade.
alanrichey
Expert
Posts: 3533
Joined: Mon Mar 24, 2008 7:14 am
Location: UK/USA

Post by alanrichey »

vickyg2003 wrote:And found some references to the LRZ file but nothing on how to create an XML file.
Unfortunately Earl seems to have stopped short in his description (unless I am missing something).

Earl: In the last paragraph you describe how to find the 'quid=' entry in the WebSlingPlayer.txt file but don't finish it off to explain how you use that to get the XML file ??
vickyg2003 wrote:I've heard talk of a VBS script to handle the LRZ file, but can't find that either.
That was just something rough I lashed up before RMIR was updated. But I am not allowed to use it anymore :D
eferz
Expert
Posts: 1078
Joined: Thu Jun 03, 2010 1:25 am
Location: Austin, Texas

Post by eferz »

Vickyg2003 wrote:nothing on how to create an XML file.
I'm not sure why you'd want to... but just in case you want to manually markup your own Sling XML with notepad or whatever editor of choice. It is not really much difference in marking up HTML, it just has different schema and rules. Sling follows some of the basic XML syntax rules; elements are enclosed in angle brackets and attributes in quotes. Here is an example of a single button learn Sling XML.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<learntremote
  guid="7824f13b-cae1-4d21-92cb-c7994f7ca792"
  remoteName="TDC8360P"
  deviceType="2"
  brandName="Winix"
  modelName="TDC8360P"
  dataFormatType="UEI"
  lrzFormatVersion="1"
  irBlasterVersion="4"
>
<learntremotekeys 
  size="1"
>

<learntremotekey
  code="8"
  name="Mute"
  command="08101700D30404A2FB5D0114FEEB0114BC531190047905320310"
  dataLength="26"
  isTested="false"
>
</learntremotekey>

</learntremotekeys>
</learntremote>
The ?xml declaration element sets the following attributes.
  • version - XML version
  • encoding - charater set
The learntremote root element gives the following description using eight attributes.
  • guid - global unique identifier (32 digit hexidecimal with 4 dashes)
  • remoteName - the remote nickname (user definable)
  • deviceType - device type (user selectable, numeric references. eg,"Satellite" = "2")
  • brandName - manufacturer name (user definatable)
  • modelName - model name (user definable)
  • dataFormatType - remote command language
  • lrzFormatVersion - format version
  • irBlasterVersion - Slingbox indentifier for UEI chip
The learntremotekeys is a child element of learntremote defines a single attribute.
  • size - number of learns
The "body" of the XML will be a series of learntremotekey elements. There will be one for each indicated in the size attribute of the learntremotekeys element.

The learntremotekey are child elements of learntremotekeys and sets five attributes per learn.
  • code - relative button code
  • name - button name
  • command - UEI learn string (no spaces)
  • dataLength - number of hex pairs within the command string
  • isTested - button verified (boolean)
The /learntremotekey tag signifies the closing learntremotekey the respective element. Each will immediately follow a single learntremotekey element.

This example only had a single learn. If there were more learntremotekey elements, they would just be appended after one another.

The /learntremotekeys tag closes the respective child element

The /learntremote tag closes the respective root element.

These two will close out the "header elements".

Edited for her pleasure - jk, an old version of SciTE (my editor of choice) was bugging out and decided orphan the first two elements until I reinstalled. Fixed definitions accordingly.
Last edited by eferz on Mon Oct 04, 2010 1:12 pm, edited 1 time in total.
alanrichey
Expert
Posts: 3533
Joined: Mon Mar 24, 2008 7:14 am
Location: UK/USA

Post by alanrichey »

Sorry, we are talking at cross purposes again. Vicky (and me now) need to know how to convert the guid= value into an XML file suitable for importing into RMIR.

As I recall you put that guid= value into a URL and that gives you an HTML file ? Not sure what happens after that.

Al
eferz
Expert
Posts: 1078
Joined: Thu Jun 03, 2010 1:25 am
Location: Austin, Texas

Post by eferz »

alanrichey wrote:Unfortunately Earl seems to have stopped short in his description (unless I am missing something).

Earl: In the last paragraph you describe how to find the 'quid=' entry in the WebSlingPlayer.txt file but don't finish it off to explain how you use that to get the XML file ??
I didn't exactly spell it out in the wikia, but I gave a hint in the attached picture on the page. Here it is below.

Image
Uploaded with ImageShack.us

If you notice in the guid above "ab435673-aeb9-4a38-85e9-9147d8f21094" is highlighted twice in a notepad document. The second time clearly shows, guid="ab435673-aeb9-4a38-85e9-9147d8f21094". However, if you trace to the beginning line of the first highlight, you'll see the XML's full URL. That screenshot and double highlight isn't a coincidence, since it is impossible to highlight two separate text regions in notepad. At the time, I just didn't want web crawlers to find the URL.

The base URL will always be the same, "https://secure.sling.com/irservices/res ... rntremote/". It will then be immediately followed by the GUID and some browsers will require one to append ".xml", so it doesn't try to read it as a different file type. This is because it doesn't have style information associated with it.

Just to be clear, "https://secure.sling.com/irservices/res ... {guid}.xml", is the madlib syntax. You fill in the "blank" for {guid}. Once you do that, you'll see the xml text in your browser (if it doesn't suck) and you can use File | Save Page As to save a local copy.
Last edited by eferz on Mon Oct 04, 2010 1:14 pm, edited 1 time in total.
eferz
Expert
Posts: 1078
Joined: Thu Jun 03, 2010 1:25 am
Location: Austin, Texas

Post by eferz »

alanrichey wrote:As I recall you put that guid= value into a URL and that gives you an HTML file ? Not sure what happens after that.
Here's a test URL for you using the "29a614a1-b5e0-4158-a295-20df7cc15755" GUID.

https://secure.sling.com/irservices/res ... c15755.xml

Open Location... to the above URL then File | Save Page As to save a local copy. Or right-click the link and select Save Link As...
The Robman
Site Owner
Posts: 22064
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

Earl, I just updated the wiki a little, could you review it please to make sure you agree with what I wrote.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
eferz
Expert
Posts: 1078
Joined: Thu Jun 03, 2010 1:25 am
Location: Austin, Texas

Post by eferz »

The Robman wrote:Earl, I just updated the wiki a little, could you review it please to make sure you agree with what I wrote.
Looks great. Thanks, Rob.
alanrichey
Expert
Posts: 3533
Joined: Mon Mar 24, 2008 7:14 am
Location: UK/USA

Post by alanrichey »

Yes, that makes perfect sense now, thanks

Al
alanrichey
Expert
Posts: 3533
Joined: Mon Mar 24, 2008 7:14 am
Location: UK/USA

Post by alanrichey »

Sorry to be a major pain, but the install is not working for me, although I had thought we had sorted it out weeks ago when I recall spending a lot of time with Graham testing various setup files.

Running Setp.vbs I get the message detailing the installation folder, followed by an error message "Program Shortcuts were not created because java.w.exe was not found".

I have Java 2 Runtime Environment Standard Edition V1.2.2 and Jave (TM) 6 Update 20 installed.

This is on Windows Vista SP2.

??
The Robman
Site Owner
Posts: 22064
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

Then ignore setup.vbs and create the shortcut manually.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
alanrichey
Expert
Posts: 3533
Joined: Mon Mar 24, 2008 7:14 am
Location: UK/USA

Post by alanrichey »

Sorry, but this is deja-vu all over again. The JAR file association has switched away from Java, any attempt to open RemoteMaster.jar with Java gives 'wrapper not found' or 'Mainclass not found' errors. This was one of the reasons I gave up before and went with the EXE version.
eferz
Expert
Posts: 1078
Joined: Thu Jun 03, 2010 1:25 am
Location: Austin, Texas

Post by eferz »

alanrichey wrote:Running Setp.vbs I get the message detailing the installation folder, followed by an error message "Program Shortcuts were not created because java.w.exe was not found".

I have Java 2 Runtime Environment Standard Edition V1.2.2 and Jave (TM) 6 Update 20 installed.

This is on Windows Vista SP2.
alanrichey wrote:The JAR file association has switched away from Java, any attempt to open RemoteMaster.jar with Java gives 'wrapper not found' or 'Mainclass not found' errors. This was one of the reasons I gave up before and went with the EXE version.
This should be a fairly simple fix. Most likely the problem is with the association with ".jar" extension or "jarfile" ProgID in your registry. I'm guessing the problem is that your jarfile is pointing to the older Java 2 executable as opposed to Java 6. Otherwise, the ".jar" association is plain fubar. I've exported and combined the two relevant keys below from my registry to give you an idea where to look.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.jar]
@="jarfile"

[HKEY_CLASSES_ROOT\jarfile\shell\open\command]
@=""C:\\Program Files\\Java\\jre6\\bin\\javaw.exe" -jar "%1" %*"
In the above registry export, the ".jar" key is the file extension association to the "jarfile" programmatic identifier (ProgID). Then the "jarfile" keypath indicates which application and arguments to execute during the association. If your file directory paths matches mine then you can save the above "code" into notepad and save as a ".reg" file to import into your registry.

Code: Select all

sJavaw = WshShell.RegRead("HKCR\jarfile\shell\open\command")
If Err.Number <> 0 Then
	sJavaw = WshShell.RegRead("HKLM\SOFTWARE\JavaSoft\Java Runtime Environment\1.6\JavaHome") & "\bin\javaw.exe"
    If Err.Number <> 0 Then 
        sJavaw = WshShell.RegRead("HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.6\JavaHome") & "\bin\javaw.exe"
    End If
Else
    iPos = InStr( 1, sJavaw, """ -jar" )
    sJavaw = left( sJavaw, iPos - 1 )
    sJavaw = right( sJavaw, len( sJavaw ) -  1 )
End If
Basically from the excerpt of the "setup.vbs" above, the association to the Java 6's executable, "javaw.exe", needs to be identified. This will allow the script to associate the ".rmdu" and ".rmir" files to the "RemoteMaster.jar" document which needs to be executed by "javaw.exe". It will attempt to find the necessary association in the following keys.
  1. HKCR\jarfile\shell\open\command\
  2. HKLM\SOFTWARE\JavaSoft\Java Runtime Environment\1.6\JavaHome
  3. HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.6\JavaHome
If you're uncomfortable in editing your registry, let me know and I can do it for you or walk you through the procedure with an IM of your choice.
alanrichey
Expert
Posts: 3533
Joined: Mon Mar 24, 2008 7:14 am
Location: UK/USA

Post by alanrichey »

All checked and changed accordingly (Except for your Key 3, which I don't have, I suspect it is special to you?).

No effect, same errors.

Later: Fixed by downloading and installing Java 6 Update 21. Must have forced some other change.
Post Reply