On Mon, 25 Mar 2013, Scott Talbert wrote: > Writing a config to the remote works, but I did not implement reading a > config from the remote (yet). I can take a stab at doing that.
OK, so I took an initial stab at it - my working patch is attached to the same Harmony 300 feature request. (Sorry, I didn't get around to making a github repo yet.) The good news is that the remote appears to respond to the /cfg/usercfg request as I had hoped. It is sending back data that looks like a config (it's got the cookie at the beginning and appears to be about the right length). There are still a couple of challenges, though: a) There isn't a way (that I know of) to get the length of the config in advance. This means we'll probably have to do what I did with usbnet/zwave and read the config twice (first time to get the length). b) More importantly, when you get a Harmony 300 config from the website, there are some pieces of data in the XML that you need in order to write a config. I'm not sure how we can get these pieces of data if we are just reading the config binary off the remote. Scott ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ concordance-devel mailing list concordance-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/concordance-devel