On Sat, Mar 27, 2010 at 07:37:29PM +0100, Nicolas wrote:
> > Interesting. What does mtp-detect do to the Blackberry that resets it?
>
> I have seen one difference & I have tried :
>
> [nico...@dahlia barry]$ git diff
> diff --git a/src/usbwrap.cc b/src/usbwrap.cc
> index 184ff28..531933a 100644
> --- a/src/usbwrap.cc
> +++ b/src/usbwrap.cc
> @@ -166,6 +166,8 @@ Device::Device(Usb::DeviceIDType id, int timeout)
> m_handle = usb_open(id);
> if( !m_handle )
> throw Error("open failed");
> +
> + usb_reset(m_handle);
> }
>
> Device::~Device()
>
>
> With this patch, it's OK for me.
Yeah, but that's not really a fix though. :-)
I'm actually surprised that works... I thought that the handle wasn't
guaranteed to exist after a reset.
> By the way, I have reversed in part the USB protocol to make firmware
> upgrade... I have to find some time to implement the protocol and a tool
> as bfu (or bupdate ; bosupdate... if you have a suggest). Someone is
> ready to take risks ?
> I need some old devices :)
Nice. :-) I'd go with bfu or bosupdate.
I do have one funky device that I could risk bricking. :-)
- Chris
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Barry-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/barry-devel