On Sat, 6 Apr 2013, Sebastian Cabrera wrote:

Just for kicks, can you try the attached patch?

Awesome - works!

Awesome!

Phil, here's the official patch for this one.
For the HID remotes, send a reset USB message before sending any other messages.
Seems to be required for the Harmony One, otherwise the first communication
attempt fails.  The official software seems to do this for most remotes.

Signed-off-by: Scott Talbert <s...@techie.net>

Index: libconcord/libconcord.cpp
===================================================================
RCS file: /cvsroot/concordance/concordance/libconcord/libconcord.cpp,v
retrieving revision 1.42.2.27
diff -u -p -r1.42.2.27 libconcord.cpp
--- libconcord/libconcord.cpp   3 Apr 2013 06:13:55 -0000       1.42.2.27
+++ libconcord/libconcord.cpp   6 Apr 2013 21:09:10 -0000
@@ -744,6 +744,14 @@ int init_concord()
                        rmt = new CRemoteMH;
                } else {
                        rmt = new CRemote;
+                       /*
+                        * Send a "reset USB" command before sending any other
+                        * commands.  Seems to be required for the Harmony One;
+                        * otherwise, the first communication attempt fails.
+                        * The official software seems to do this for most
+                        * remotes.
+                        */
+                       rmt->Reset(COMMAND_RESET_USB);
                }
        }
 
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel

Reply via email to