JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

Adding Slingbox support to RM
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Software
View previous topic :: View next topic  
Author Message
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Wed Aug 17, 2005 7:39 am    Post subject: Reply with quote

The more I think about it, the less it makes sense to put these in the RDFs, since the same values will always be used. I suppose I'll just put it in the code for generating the binary upgrade files.
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21210
Location: Chicago, IL

                    
PostPosted: Wed Aug 17, 2005 7:41 am    Post subject: Reply with quote

But if RM has no concept of device types, how will you know what types to associate each letter with?
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21210
Location: Chicago, IL

                    
PostPosted: Wed Aug 17, 2005 9:44 am    Post subject: Reply with quote

Greg, how are you handling protocols for the bin files? As I haven't completed the [Protocols] section of the Slingbox RDF yet, is RM including a protocol with all upgrades when you use the export to bin option? If it isn't, it probably should. Then to prevent that, we'll need to add most of the protocols to the RDFs until such time that we can acurrately determine which ones are really built in and which ones are not.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Wed Aug 17, 2005 11:05 am    Post subject: Reply with quote

At the moment I am not including the protocol. That'll be easy to add.
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21210
Location: Chicago, IL

                    
PostPosted: Wed Aug 17, 2005 11:24 am    Post subject: Reply with quote

OK then, leave it as is for now, until I can get something to put in the RDFs.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Wed Aug 17, 2005 9:13 pm    Post subject: Reply with quote

The Robman wrote:
But if RM has no concept of device types, how will you know what types to associate each letter with?

Once again, it'll just be a string lookup. RM knows the name of the device type, and can use that to find the abbreviation. So I'll just code the abbreviation look up table as you've documented above. If no abbreviation is found, I'll just use the whole name.
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Wed Aug 17, 2005 10:04 pm    Post subject: Reply with quote

I noticed there's no abbreviation for DVD? I think it's Y, based on some of the .bin files you've shared. I think there are others missing as well. Aren't there 15 possible device types?
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21210
Location: Chicago, IL

                    
PostPosted: Wed Aug 17, 2005 10:53 pm    Post subject: Reply with quote

gfb107 wrote:
Once again, it'll just be a string lookup. RM knows the name of the device type, and can use that to find the abbreviation. So I'll just code the abbreviation look up table as you've documented above. If no abbreviation is found, I'll just use the whole name.

But what I was gettng at is this, suppose one RDF calls the Cable mode "CBL" and another calls it "CBL/SAT" and yet another calls it "Cable", how will RM know that they are all "Cable" and should use the "C" letter? That's why I actually came around to your original way of thinking, once you reminded me that RM doesn't know device types.

gfb107 wrote:
I noticed there's no abbreviation for DVD? I think it's Y, based on some of the .bin files you've shared.

Sorry, I must have skipped that line for some reason. I've edited the original post to include DVD, and yes, it's "Y".

gfb107 wrote:
I think there are others missing as well. Aren't there 15 possible device types?

There are only 10 types in this chip. It's missing the following types: Phono, Cassette, DAT and Misc Audio. I don't know what the letters are for each of those types, but I can probably find out.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Wed Aug 17, 2005 11:16 pm    Post subject: Reply with quote

OK, I'm back to putting it in the RDF.

I have a question though. It looks to me like it isn't the device type but the device type alias that is being abbreviated. I say this because Laserdisc isn't a device type, it's a device type alias (at least in the Slingbox RDF).

Assuming it is for the device type alias, we can just enhance the syntax of the DeviceTypeAliases section, 'cause I'm pretty sure IR doesn't use it.
We'll just append the abbreviation after the alias name, with a colon separating the name from the abbreviation.

Like this:
Code:
[DeviceTypes]
Cable    = 1,1
Sat      = 2,3
VCR      = 3,4
DVD      = 4,6
CD       = 6,9
Audio    = 5
TV       = 0

[DeviceTypeAliases]
Cable    = Cable:C,Video Acc:N
Sat      = SAT:S
VCR      = VCR:V,Tape,Laserdisc:L,DAT
DVD      = DVD:Y
CD       = CD:D,Home Auto:H
Audio    = Tuner,Misc Audio,Phono,Amp:AM
TV       = TV:T


If no abbreviation is provided in the RDF, the full alias name will be used instead.

Thoughts?
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21210
Location: Chicago, IL

                    
PostPosted: Wed Aug 17, 2005 11:29 pm    Post subject: Reply with quote

gfb107 wrote:
I have a question though. It looks to me like it isn't the device type but the device type alias that is being abbreviated. I say this because Laserdisc isn't a device type, it's a device type alias (at least in the Slingbox RDF).

Even though the Slingbox doesn't support those device types, the chip does. As mentioned earlier, I still need to add all the missing device types and keymaps to the RDFs. I didn't know these other types existed when I created the RDFs, so I lumped them in with the supported device types.

So, bottom line, they are real device types. The ones that would still be mixed in are the 4 missing ones.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Thu Aug 18, 2005 6:45 am    Post subject: Reply with quote

OK, so we'll just have to add a new section to the RDF. We'll call it DeviceAbbreviations. It will contain a comma separated list of the form type name=abbreviation. For example:
Code:
[DeviceTypes]
Cable    = 1,1
Sat      = 2,3
VCR      = 3,4
DVD      = 4,6
CD       = 6,9
Audio    = 5
TV       = 0

[DeviceAbbreviations]
Cable=C,Sat=S,VCR=V,DVD=Y,CD=D,TV=T


Note: In my example, created using the device types in the Slingbox RDF, I didn't know the abbreviation for Audio, so I just left it out.
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Thu Aug 18, 2005 8:08 am    Post subject: Reply with quote

Here's the latest test version of RemoteMaster.zip. This time it's a zip file, which contains RemoteMaster.jar and an rdf directory containing the two Slingbox RDFs. The RDFs should be copied to the directory where RM is configured to look for RDFs.

I've added support for parsing the DeviceAbbreviations section of the RDF, as described above. This is used for generating the default name for the exported binary file.
I've also added the ability to include protocol code in the exported binary file. This is disabled by default, but can be enabled in the Options menu. Once enabled, RM will remember it until it is turned off.
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Thu Aug 18, 2005 9:39 am    Post subject: Reply with quote

On a whim, I've created an image and map for the Slingbox. I've zipped them up into SlingboxMap.zip.
Unzip it in the same folder as RM, so that the .map and .jpg end up in the images sub-folder.
You'll also want to change the RDF to point to the new .map file:
Code:
ImageMap=Slingbox.map


The image is a composite I created of the SlingRemote from the User Guide.
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21210
Location: Chicago, IL

                    
PostPosted: Thu Aug 18, 2005 6:38 pm    Post subject: Reply with quote

The new Slingbox images look good. However you need to tweek the new file name logic because it's dropping the leading zero from the setup code when the setup code is less than 1000.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Thu Aug 18, 2005 7:18 pm    Post subject: Reply with quote

Oops.
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Software All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 4 of 10

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control