Hello,
> It's below the threshold voltage you reported earlier (3.4V) and at
> this moment I didn't found any option to change that setting. After
> putting back the power, the system starts but when we remove the power
> again, it fails if we don't use het ISP-header. Is there a way to do
> this reset by software?
> This is the way I currently start bat3:
>
> bat3 --on 300 --off 10 --charge 400
I looked into this further and was able to reproduce the problem you
reported. The TS-Bat3 has a default threshold voltage(as you found it
is approx. 3.25V). If the battery voltage drops below the threshold
voltage softJP3 will be set. Other than explicitly putting the board
into low power mode, the TS-Bat3 will enter low power mode if JP3
or softJP3 is set and the board is running off batteries. I found
there is a bug in the firmware of the TS-Bat3. The problem being
once softJP3 is set due to the battery voltage falling below the
threshold voltage the IRQ to read the ADC is being masked. As a
result the board will not awake from low power mode once the
battery voltage drops below the threshold voltage unless the
AVR is reset via the ISP pins as you have reported. There is a
workaround for this though, the threshold voltage is store in the
e2 of the AVR at location 0x80 and 0x81. If you set the threshold
voltage to 0V this code path will be avoided. You can do this with
the following undocumented commands.
bat3 --eeval 0 --eew 128
bat3 --eeval 0 --eew 129
At this point the threshold is set to 0V. To verify this is true reset
the AVR using the ISP header run the following commands.
$ ./bat3 --eer 128 | head -n 1
80:00
$ ./bat3 --eer 129 | head -n 1
81:00
The return values shown above indicate the threshold voltage has been
succesfully changed to 0V.
Please let me know if you have any problems or questions.
//Eddie
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|