On Sunday 16 March 2008 10:27:44 am Phil Dibowitz wrote:
> On Sun, Mar 16, 2008 at 10:01:49AM -0700, Zach Carter wrote:
> > On Sunday 16 March 2008 12:05:18 am Phil Dibowitz wrote:
> > > Does "concordance -r" give you the same thing? I'm guessing it will. 
> > 
> > Nope.  '-r' works like a charm.
> > 
> > > If not, 
> > > you can add further debugging by recompiling and defining _DEBUG symbol
> > > (instead of "make" do: "CPPFLAGS=-D_DEBUG make"
> > 
> > After setting up the D_DEBUG flag, I got this.  The reboot seemed to work 
> > fine.
> 
> OK, reset_remote is what's returning -19 on you. 

Confirmed.  The reason I got no error from concordance -r is that the code 
doesn't check the return code.  I patched it like this:

         */
        if (mode == MODE_RESET) {
                printf("Resetting...\n");
-               reset_remote();
+               err = reset_remote();
+               printf("reset_remote from MODE_RESET exited with %i\n",err);
                goto cleanup;
        }

> That's odd since it's just a 
> USB write. We can double check this with a few printf()s, but I'm wondering if
> maybe the remote doesn't ACK the write because it's rebooting already or
> something... maybe we have to not rely on the return value from there.
> 
> Just to confirm I can send you a debug patch when I get back to confirm, but
> the code path is very straight forward if you want to dig in before that.
> 

For some reason, the -D_DEBUG debugging isn't working for me, so 
I added some debugging to libusbhid.cpp, and got this:

[EMAIL PROTECTED] libconcord]# concordance -r
Concordance 0.13+CVS
Copyright 2007 Kevin Timmerman and Phil Dibowitz
This software is distributed under the GPLv3.

Resetting...
usb_interrupt_write returned -19
Failed to write to device: -19 (error reaping URB: No such device)
reset_remote from MODE_RESET exited with -19
Failed with error -19

-Zach






-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel

Reply via email to