# Battery management get charging more then 1000 mah

**URL:** <https://mangoh.discourse.group/t/battery-management-get-charging-more-then-1000-mah/3274>\
**Category:** mangOH Yellow\
**Created:** [December 24, 2019, 11:58am UTC](https://mangoh.discourse.group/t/battery-management-get-charging-more-then-1000-mah/3274 "2019-12-24T11:58:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elkanamol](https://avatars.discourse-cdn.com/v4/letter/e/848f3c/32.png) [@Elkanamol](https://mangoh.discourse.group/u/Elkanamol)\
**Post date:** [December 24, 2019, 11:58am UTC](https://mangoh.discourse.group/t/battery-management-get-charging-more-then-1000-mah/3274/1 "2019-12-24T11:58:40Z")

</div>

hey  
i’m on Mangoh Yellow i was connected how many batteries and with all of them i get only charging to 1000 mah.  
in last battery it’s 4000 mah, but i get only around 57% and 1000mah.  
the charging is stopped.  
how i can get solved this problem?

Elkana

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [December 24, 2019, 11:38pm UTC](https://mangoh.discourse.group/t/battery-management-get-charging-more-then-1000-mah/3274/2 "2019-12-24T23:38:20Z")

</div>

> [@Elkanamol](#):
>
> only

Hi,

You can add your own battery. Please look at the code here:

> <https://github.com/mangOH/mangOH/blob/master/linux_kernel_modules/mangoh/mangoh_yellow.c>

specifically

```auto
static struct bq27426_platform_data mangoh_yellow_battery_gauge_platform_data = {
	.energy_full_design_uwh = 4800000,
	.charge_full_design_uah = 1200000,
	.voltage_min_design_uv = 3300000,
};

```

modify the code to meet your battery requirements., rebuild and deploy on your unit.

---

<div class="post-metadata">

**Author:** ![Elkanamol](https://avatars.discourse-cdn.com/v4/letter/e/848f3c/32.png) [@Elkanamol](https://mangoh.discourse.group/u/Elkanamol)\
**Post date:** [December 25, 2019, 6:04am UTC](https://mangoh.discourse.group/t/battery-management-get-charging-more-then-1000-mah/3274/3 "2019-12-25T06:04:48Z")

</div>

thanks @asyal  
do i need to rebuild all kernel layer?

---

<div class="post-metadata">

**Author:** ![Elkanamol](https://avatars.discourse-cdn.com/v4/letter/e/848f3c/32.png) [@Elkanamol](https://mangoh.discourse.group/u/Elkanamol)\
**Post date:** [December 25, 2019, 6:11am UTC](https://mangoh.discourse.group/t/battery-management-get-charging-more-then-1000-mah/3274/4 "2019-12-25T06:11:24Z")

</div>

@asyal  
yester day i saw this app

> <https://github.com/mangOH/BatteryService/blob/4985ff092d2dbbf42b3c4e5ec39f21eb235111ba/ma_adminbattery.api>

```
/**
 * Configures the battery settings.
 */
//--------------------------------------------------------------------------------------------------
FUNCTION SetTechnology
(
    string type [128] IN, ///< "LiPo" or "LiIon"
    uint32 maH IN, ///< Specify battery current rating as listed by manufacturer
    uint32 voltage IN ///< Specify battery voltage as listed by manufacturer

```

i can change this parameters here?

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [January 1, 2020, 9:52pm UTC](https://mangoh.discourse.group/t/battery-management-get-charging-more-then-1000-mah/3274/5 "2020-01-01T21:52:19Z")

</div>

You need to change in the file I referred to in the post above.

---

<div class="post-metadata">

**Author:** ![jchitty](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jchitty/32/846_2.png) [@jchitty](https://mangoh.discourse.group/u/jchitty)\
**Post date:** [January 2, 2020, 8:03pm UTC](https://mangoh.discourse.group/t/battery-management-get-charging-more-then-1000-mah/3274/6 "2020-01-02T20:03:35Z")

</div>

That SetTechnology function was built for mangOH Red, which couldn’t auto-detect the battery technology. Yellow has a more advanced charger on-board, so it doesn’t implement the SetTechnology function.

---

<div class="post-metadata">

**Author:** ![Elkanamol](https://avatars.discourse-cdn.com/v4/letter/e/848f3c/32.png) [@Elkanamol](https://mangoh.discourse.group/u/Elkanamol)\
**Post date:** [January 5, 2020, 8:41am UTC](https://mangoh.discourse.group/t/battery-management-get-charging-more-then-1000-mah/3274/7 "2020-01-05T08:41:24Z")

</div>

Please can You direct me with step-by-step sequence what to do.  
Thank You very much!

---

<div class="post-metadata">

**Author:** ![elkanamolson](https://avatars.discourse-cdn.com/v4/letter/e/3e96dc/32.png) [@elkanamolson](https://mangoh.discourse.group/u/elkanamolson)\
**Post date:** [November 4, 2020, 10:11am UTC](https://mangoh.discourse.group/t/battery-management-get-charging-more-then-1000-mah/3274/8 "2020-11-04T10:11:32Z")

</div>

Hi,  
following this therd, i want to change the charger current limitation, in the BQ25601 DS i see that need to access to register to increase input current Limit (REG00 IINDPM[4…0] bits) and Fast charge current (REG02 ICHG[5…0] bits).

do have access in 0x6b i2c register to write values on register or only to read it?

BR,  
ElkanaM
