On Sat, Mar 17, 2007 at 02:01:01PM -0700, troy engel wrote:
> You have to do this manually since the logic loop missing 0x0004 is
> missing in older bcharge, so I renamed mine to bcharge.rpm. Starting
> from a raw plugin (0x0006) the running ./bcharge.rpm -o, I get:
> 
>   idVendor           0x0fca Research In Motion, Ltd.
>   idProduct          0x0001 Blackberry Handheld
>   bcdDevice            1.06
>   iManufacturer           1 Research In Motion
>   iProduct                2 BlackBerry Device

Thanks.  Looks like I can't use iProduct as a way to determine whether
I'm talking to a Pearl or not. :-(


> If you run ./bcharge.rpm all by itself, it says:
> 
> Scanning for Blackberry devices...
> Found...already at 500mA
> 0 device adjusted.
> 
> It does *not* re-reset to 0x0004 as I think you intended. This is the
> classic bcharge without my patch, 0.6 alpha code. 0.6 + my simple
> patch sort of made everything work right, CVS seems a lot more broken
> and complicated.

Yes, at the moment this is true... but it was in the name of added
functionality, which your patch didn't provide, unless I'm missing
something?

The patch you sent added ProductID 0004 to the main() loop, and it would
cause the device to adjust the charging setting, but not the ProductID,
and possibly not reset the device either.  Is this the behaviour you saw
with your patch?  From just reading the code, it doesn't look like it
would change the ProductID at all.

As moving from ProductID 0006 to 0004 or 0001 was a one-way affair,
it seemed reasonable to skip 0004, since you can't do much with it anyway,
and if it is at 0004 already, then bcharge has run, and the power level
is good.

I was trying to split the charge behaviour and the Pearl mode behaviour
in the new code, but there is no reliable way that I've found to determine
if a ProductID 0001 device is a Pearl or not, so returning from mode 0001
to 0004 is something I can't seem to autodetect.

This may turn out to be a failed experiment and bcharge will be reverted
to the older code. :-)

I'm interested in your thoughts on this.

Thanks,
- Chris


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to