Re: Setting / checking fast charge in /sys/devices/platform/whatever

2008-07-25 Thread AVee
On Monday 14 July 2008 21:44, Stroller wrote:
...
 I decided to try forcing the Freerunner to fast-charge, and a little
 Googling found me the CheckFastCharge-script on the Wiki [3].

 Reading checkFastCharge.py I find that it checks '/sys/devices/
 platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/chgmode' and that fast
 charging is indicated by fast_cccv there.

 Presumably this script was written for the Neo1973, however, or a
 different kernel, as on my Freerunner the location is '/sys/devices/
 platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/chgmode' and it
 currently says fast, not fast_cccv (or, for that matter, slow or
 anything like that).

 So is fast the correct syntax for the Freerunner's chgmode?
 Has it somehow detected that the charger is capable of 500+ mA?
 Or should I echo fast_cccv to that location?
 What are the correct '/sys/devices/platform/s3c2440-i2c/i2c-adapter/
 i2c-0/0-0073/chgmode' values for slow and no-charge for the
 Freerunner, please? (using the default factory image)
 Or is chgmode simply broken on the Freerunner's default factory image?

Did you actually try this yet, and did it work? I just bought a car-charges 
which is supossed to be able to provide over 2A, but the freerunner will only 
pull 100mA which is annoying.

A related question, the freerunner wil detect a 47k resitor in the official 
charger. Is this value measured and available in software somewere? We might 
be able to identify other chargers as well and build a database of ID 
resistors and allowed current (assuming other vendors use the same trick).

AVee

-- 
With clothes the new are best, with friends the old are best.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Setting / checking fast charge in /sys/devices/platform/whatever

2008-07-25 Thread Andy Green
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| On Monday 14 July 2008 21:44, Stroller wrote:
| ...
| I decided to try forcing the Freerunner to fast-charge, and a little
| Googling found me the CheckFastCharge-script on the Wiki [3].
|
| Reading checkFastCharge.py I find that it checks '/sys/devices/
| platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/chgmode' and that fast
| charging is indicated by fast_cccv there.
|
| Presumably this script was written for the Neo1973, however, or a
| different kernel, as on my Freerunner the location is '/sys/devices/
| platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/chgmode' and it
| currently says fast, not fast_cccv (or, for that matter, slow or
| anything like that).
|
| So is fast the correct syntax for the Freerunner's chgmode?
| Has it somehow detected that the charger is capable of 500+ mA?
| Or should I echo fast_cccv to that location?
| What are the correct '/sys/devices/platform/s3c2440-i2c/i2c-adapter/
| i2c-0/0-0073/chgmode' values for slow and no-charge for the
| Freerunner, please? (using the default factory image)
| Or is chgmode simply broken on the Freerunner's default factory image?
|
| Did you actually try this yet, and did it work? I just bought a
car-charges
| which is supossed to be able to provide over 2A, but the freerunner
will only
| pull 100mA which is annoying.

You can force it to pull up to 1A if you are sure it's OK for your power
source.

http://wiki.openmoko.org/wiki/GTA02_sysfs#.2Fsys.2Fdevices.2Fplatform.2Fs3c2440-i2c.2Fi2c-adapter.2Fi2c-0.2F0-0073.2Fforce_usb_limit_dangerous

fast and so on are modes in the charger state machine, they're
different from the actual limits which are enforced earlier in the power
chain pretty much at the USB power inputs to the PMU.

| A related question, the freerunner wil detect a 47k resitor in the
official
| charger. Is this value measured and available in software somewere? We
might
| be able to identify other chargers as well and build a database of ID
| resistors and allowed current (assuming other vendors use the same trick).

I don't think it is exposed down /sys at the moment.

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkiKR6AACgkQOjLpvpq7dMrDhwCeKAFbddKHVdQ7ka4bHMoh50su
yp0AnjJFUrX4xv9vToRlJSk6SD2MDAqg
=rwCV
-END PGP SIGNATURE-

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Setting / checking fast charge in /sys/devices/platform/whatever

2008-07-14 Thread Stroller
Hi there,

It looks like my problem with SIM registration [1] may be easily  
solvable simply by trying a different SIM or reseating the current one.

But because I'm fetishistic about following battery charging  
instructions I don't want to try this (which requires removing the  
battery) until the unit is fully charged.

The wiki [2] says:

   The battery can be charged using the provided charger (at 1000mA)
   or from a powered USB port capable of providing 500mA worth of
   current. Most computers will be able to charge the FreeRunner without
   any problems.

   Charging at 100mA takes 6-12 hours and at 500mA takes 1-2 hour


I understood the provided charger was a dumb one and that - because  
the Freerunner is unable to communicate with it - an unpowered USB  
connection would be assumed, the Freerunner would act conservatively,  
only drawing 100mA.

Which is correct, please?

I decided to try forcing the Freerunner to fast-charge, and a little  
Googling found me the CheckFastCharge-script on the Wiki [3].

Reading checkFastCharge.py I find that it checks '/sys/devices/ 
platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/chgmode' and that fast  
charging is indicated by fast_cccv there.

Presumably this script was written for the Neo1973, however, or a  
different kernel, as on my Freerunner the location is '/sys/devices/ 
platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/chgmode' and it  
currently says fast, not fast_cccv (or, for that matter, slow or  
anything like that).

So is fast the correct syntax for the Freerunner's chgmode?
Has it somehow detected that the charger is capable of 500+ mA?
Or should I echo fast_cccv to that location?
What are the correct '/sys/devices/platform/s3c2440-i2c/i2c-adapter/ 
i2c-0/0-0073/chgmode' values for slow and no-charge for the  
Freerunner, please? (using the default factory image)
Or is chgmode simply broken on the Freerunner's default factory image?

TIA for any suggestions,

Stroller.





[1] http://lists.openmoko.org/pipermail/community/2008-July/021677.html
[2] http://wiki.openmoko.org/wiki/ 
Getting_Started_with_your_Neo_FreeRunner#Charging_the_Neo_Freerunner
[3] http://wiki.openmoko.org/wiki/CheckFastCharge-script


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Setting / checking fast charge in /sys/devices/platform/whatever

2008-07-14 Thread Al Johnson
On Monday 14 July 2008, Stroller wrote:
 Hi there,

 It looks like my problem with SIM registration [1] may be easily
 solvable simply by trying a different SIM or reseating the current one.

 But because I'm fetishistic about following battery charging
 instructions I don't want to try this (which requires removing the
 battery) until the unit is fully charged.

 The wiki [2] says:

The battery can be charged using the provided charger (at 1000mA)
or from a powered USB port capable of providing 500mA worth of
current. Most computers will be able to charge the FreeRunner without
any problems.

Charging at 100mA takes 6-12 hours and at 500mA takes 1-2 hour


 I understood the provided charger was a dumb one and that - because
 the Freerunner is unable to communicate with it - an unpowered USB
 connection would be assumed, the Freerunner would act conservatively,
 only drawing 100mA.

 Which is correct, please?

The charger is dumb, but has a 47k resistor from the ID pin of the USB 
connector to ground. This allows the Freerunner to identify it as capable to 
provide 1000mA. See the USB Host section of:
http://wiki.openmoko.org/wiki/Neo_FreeRunner_GTA02_Hardware 

 I decided to try forcing the Freerunner to fast-charge, and a little
 Googling found me the CheckFastCharge-script on the Wiki [3].

 Reading checkFastCharge.py I find that it checks '/sys/devices/
 platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/chgmode' and that fast
 charging is indicated by fast_cccv there.

 Presumably this script was written for the Neo1973, however, or a
 different kernel, as on my Freerunner the location is '/sys/devices/
 platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/chgmode' and it
 currently says fast, not fast_cccv (or, for that matter, slow or
 anything like that).

 So is fast the correct syntax for the Freerunner's chgmode?
 Has it somehow detected that the charger is capable of 500+ mA?
 Or should I echo fast_cccv to that location?
 What are the correct '/sys/devices/platform/s3c2440-i2c/i2c-adapter/
 i2c-0/0-0073/chgmode' values for slow and no-charge for the
 Freerunner, please? (using the default factory image)
 Or is chgmode simply broken on the Freerunner's default factory image?

 TIA for any suggestions,

 Stroller.





 [1] http://lists.openmoko.org/pipermail/community/2008-July/021677.html
 [2] http://wiki.openmoko.org/wiki/
 Getting_Started_with_your_Neo_FreeRunner#Charging_the_Neo_Freerunner
 [3] http://wiki.openmoko.org/wiki/CheckFastCharge-script


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Setting / checking fast charge in /sys/devices/platform/whatever

2008-07-14 Thread Stroller

On 14 Jul 2008, at 23:17, Al Johnson wrote:
 ...
 The wiki [2] says:

The battery can be charged using the provided charger (at 1000mA)
or from a powered USB port capable of providing 500mA worth of
current. Most computers will be able to charge the FreeRunner  
 without
any problems.

Charging at 100mA takes 6-12 hours and at 500mA takes 1-2 hour


 I understood the provided charger was a dumb one and that - because
 the Freerunner is unable to communicate with it - an unpowered USB
 connection would be assumed, the Freerunner would act conservatively,
 only drawing 100mA.

 Which is correct, please?

 The charger is dumb, but has a 47k resistor from the ID pin of the USB
 connector to ground. This allows the Freerunner to identify it as  
 capable to
 provide 1000mA. See the USB Host section of:
 http://wiki.openmoko.org/wiki/Neo_FreeRunner_GTA02_Hardware

Ah, marvellous!

Thank you.

So a full charge using the wall charger takes only 1 hour or so?

Does /sys/devices/platform/whatever have a node for checking charge  
status?

Stroller.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community