maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   BME Replacement (https://talk.maemo.org/showthread.php?t=90139)

handaxe 2013-05-17 10:04

BME Replacement
 
Am testing Pali's bme replacement. Does the job, led's flashing etc. The only thing is that the led never goes green and the status area icon keeps pulsing. Battery has good charge by then, and is perhaps full by any standard.

Have read k-p threads where bme replacement is mentioned. Rather than posting reams of perhaps wrong output here (e.g. hal-device bme), I would be gratfeul if Pali could specify what he might need. Or is no green led normal?

Thanks.

Wikiwide 2013-05-17 14:13

Re: BME Replacement
 
Bumping the thread...
Best wishes. Thank you.
_________________
Per aspera ad astra...

Raimu 2013-05-18 09:34

Re: BME Replacement
 
Methinks BME-replacement does need its own thread.

Wikiwide 2013-05-20 13:33

Re: BME Replacement
 
Bumping the thread...
Best wishes. How are you?
_________________
Per aspera ad astra...

handaxe 2013-05-21 00:05

Re: BME Replacement
 
Quote:

Originally Posted by handaxe (Post 1344267)
The only thing is that the led never goes green and the status area icon keeps pulsing.

How sad, I must correct myself. I got a green led during the last charge. Thing is, this time I forgot the phone and hours later there it was green.

It appears that "bme replacement" has a different charging "profile" to "bme stock" and takes longer to produce the green. I use "bnf" and am content frankly at anything 95% or so. Less of course is better for the battery.

handaxe 2013-05-21 01:38

Re: BME Replacement
 
Further testing. Rebooted with wall-charger attached. Booted up properly. Connected wireless and ran sshd. Connected as root via ssh.

Code:

hal-device bme
Code:

udi = '/org/freedesktop/Hal/devices/bme'
  info.addons = { 'hald-addon-bme' } (string list)
  battery.type = 'pda'  (string)
  info.subsystem = 'unknown'  (string)
  info.product = 'Battery (BME-HAL)'  (string)
  battery.reporting.design = 1297  (0x511)  (int)
  info.udi = '/org/freedesktop/Hal/devices/bme'  (string)
  battery.present = true  (bool)
  battery.voltage.current = 4082  (0xff2)  (int)
  battery.reporting.unit = 'mAh'  (string)
  battery.is_rechargeable = true  (bool)
  battery.rechargeable.is_charging = true  (bool)
  battery.rechargeable.is_discharging = false  (bool)
  battery.reporting.current = 1307  (0x51b)  (int)
  battery.reporting.last_full = 1297  (0x511)  (int)
  battery.charge_level.current = 8  (0x8)  (int)
  battery.charge_level.last_full = 8  (0x8)  (int)
  battery.charge_level.design = 8  (0x8)  (int)
  battery.charge_level.percentage = 100  (0x64)  (int)
  battery.remaining_time = 2400  (0x960)  (int)
  battery.voltage.design = 4200  (0x1068)  (int)
  battery.voltage.unit = 'mV'  (string)
  battery.charge_level.capacity_state = 'ok'  (string)
  info.category = 'battery'  (string)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  info.capabilities = { 'battery' } (string list)
  battery.charge_level.unit = 'bars'  (string)
  battery.remaining_time.calculate_per_time = false  (bool)
  maemo.charger.connection_status = 'connected'  (string)
  maemo.charger.type = 'wall charger'  (string)
  maemo.rechargeable.charging_status = 'on'  (string)
  maemo.rechargeable.positive_rate = true  (bool)
  maemo.bme.version = '1.0'  (string)

Disconnected wall-charger and then reconnected. Received message that device drawing more power than being provided. Via ssh ran
Code:

hal-device bme
:
Code:

udi = '/org/freedesktop/Hal/devices/bme'
  info.addons = { 'hald-addon-bme' } (string list)
  battery.type = 'pda'  (string)
  info.subsystem = 'unknown'  (string)
  info.product = 'Battery (BME-HAL)'  (string)
  battery.reporting.design = 1297  (0x511)  (int)
  info.udi = '/org/freedesktop/Hal/devices/bme'  (string)
  battery.present = true  (bool)
  battery.voltage.current = 3923  (0xf53)  (int)
  battery.reporting.unit = 'mAh'  (string)
  battery.is_rechargeable = true  (bool)
  battery.rechargeable.is_charging = false  (bool)
  battery.rechargeable.is_discharging = true  (bool)
  battery.reporting.current = 1318  (0x526)  (int)
  battery.reporting.last_full = 1297  (0x511)  (int)
  battery.charge_level.current = 8  (0x8)  (int)
  battery.charge_level.last_full = 8  (0x8)  (int)
  battery.charge_level.design = 8  (0x8)  (int)
  battery.charge_level.percentage = 100  (0x64)  (int)
  battery.remaining_time = 33900  (0x846c)  (int)
  battery.voltage.design = 4200  (0x1068)  (int)
  battery.voltage.unit = 'mV'  (string)
  battery.charge_level.capacity_state = 'ok'  (string)
  info.category = 'battery'  (string)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  info.capabilities = { 'battery' } (string list)
  battery.charge_level.unit = 'bars'  (string)
  battery.remaining_time.calculate_per_time = false  (bool)
  maemo.charger.connection_status = 'connected'  (string)
  maemo.charger.type = 'host 500 mA'  (string)
  maemo.rechargeable.charging_status = 'error'  (string)
  maemo.rechargeable.positive_rate = false  (bool)
  maemo.bme.version = '1.0'  (string)

Detecting wrong charger type. That may explain the differing charging profiles.

tangent 2013-07-16 16:20

Re: BME Replacement
 
How to revert back to stock bme?

pinochio 2013-10-24 17:13

Re: BME Replacement
 
I have a similar problem, but my cell phone had some circuit in the device. The cell I bouht was used and was defected. Previously, I had problems with restarts after shutdown, then with running it properly.
I installed these four packages and after a reboot my cell indicates the charging procces by the status area and by pulsing of the yellow LED.
After charging the battery and disconnecting the charger it still shows me loading and the LED stays constantly green.
When the cell is switched off, the device receives 0.35A (350mA) from battery.

Quote:

Nokia-N900:~# hal-device bme
udi = '/org/freedesktop/Hal/devices/bme'
info.addons = { 'hald-addon-bme' } (string list)
battery.type = 'pda' (string)
info.subsystem = 'unknown' (string)
info.product = 'Battery (BME-HAL)' (string)
info.udi = '/org/freedesktop/Hal/devices/bme' (string)
battery.reporting.unit = 'mAh' (string)
battery.present = true (bool)
battery.voltage.current = 4058 (0xfda) (int)
battery.is_rechargeable = true (bool)
battery.rechargeable.is_charging = true (bool)
battery.rechargeable.is_discharging = true (bool)
battery.reporting.current = 1388 (0x56c) (int)
battery.reporting.last_full = 1277 (0x4fd) (int)
battery.charge_level.current = 8 (0x8) (int)
battery.charge_level.last_full = 8 (0x8) (int)
battery.charge_level.design = 8 (0x8) (int)
battery.charge_level.percentage = 100 (0x64) (int)
battery.voltage.design = 4200 (0x1068) (int)
battery.charge_level.capacity_state = 'full' (string) - ?
battery.voltage.unit = 'mV' (string)
battery.charge_level.unit = 'bars' (string)
info.category = 'battery' (string)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.capabilities = { 'battery' } (string list)
battery.reporting.design = 1277 (0x4fd) (int)
battery.remaining_time = 51480 (0xc918) (int)
battery.remaining_time.calculate_per_time = false (bool)
maemo.charger.connection_status = 'connected' (string) - ?
maemo.charger.type = 'host 500 mA' (string) - ?
maemo.rechargeable.charging_status = 'full' (string) - ?
maemo.rechargeable.positive_rate = true (bool)
maemo.bme.version = '1.0' (string)
What's the problem?
Can this be checked diagnostically?

Kossuth 2013-10-24 18:29

Re: BME Replacement
 
I am encountering a bug that causes the status-area-applet show constantly 50% charge. If I charge the battery full overnight and still keep the charger connected I get full battery, but the second I disconnect the charger the bar drops to 50%.

The readout of the bq27200.sh (with the -f):
Code:

home/user # bq27200.sh
LOOPMODE=0
Reading values...........................done.

CSOC: 85 % RSOC: 85 %
Average Current: 281 mA
TTF: 65535 minutes TTE: 345 minutes
NAC: 1615 mAh CACD: 1615 mAh CACT: 1615 mAh
SI: 12 mA STTE: 7505 minutes
MLI: 1151 mA MLTTE: 82 minutes
AR: 0 mA ARTTE: 65535 minutes
Last Measured Discharge: 1889 mAh
Cycle Count since Learning: 23 Total Cycle Count since last full reset: 23
Reported Battery Voltage: 3874 mV
Battery Gauge die Temperature: 36 C
Flags:        0x14
        Charge:0 NOACT:0 IMIN:0 CI:1 CALIP:0 VDQ:1 EDV1:0 EDVF: 0
eeprom data:
        ILMD=1958 EDVF=3000 EDV1=3248 ISLC=19
        DMF=14700 nanoVolt SD=201 thousandths of percent per day
        AGELMD=1 TAPER=97 mA
        IMLC=979 mA

Readout of hal-device bme:
Code:

home/user # hal-device bme
udi = '/org/freedesktop/Hal/devices/bme'
  info.addons = { 'hald-addon-bme' } (string list)
  battery.type = 'pda'  (string)
  info.subsystem = 'unknown'  (string)
  info.product = 'Battery (BME-HAL)'  (string)
  battery.reporting.design = 1282  (0x502)  (int)
  info.udi = '/org/freedesktop/Hal/devices/bme'  (string)
  battery.present = true  (bool)
  battery.voltage.current = 3847  (0xf07)  (int)
  battery.reporting.unit = 'mAh'  (string)
  battery.is_rechargeable = true  (bool)
  battery.rechargeable.is_charging = false  (bool)
  battery.rechargeable.is_discharging = true  (bool)
  battery.charge_level.current = 4  (0x4)  (int)
  battery.charge_level.last_full = 0  (0x0)  (int)
  battery.charge_level.design = 8  (0x8)  (int)
  battery.charge_level.percentage = 50  (0x32)  (int)
  battery.voltage.design = 4200  (0x1068)  (int)
  battery.voltage.unit = 'mV'  (string)
  battery.charge_level.capacity_state = 'ok'  (string)
  info.category = 'battery'  (string)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  info.capabilities = { 'battery' } (string list)
  battery.charge_level.unit = 'bars'  (string)
  battery.remaining_time = 0  (0x0)  (int)
  battery.remaining_time.calculate_per_time = false  (bool)
  battery.reporting.current = 641  (0x281)  (int)
  battery.reporting.last_full = 0  (0x0)  (int)
  maemo.charger.connection_status = 'disconnected'  (string)
  maemo.charger.type = 'none'  (string)
  maemo.rechargeable.charging_status = 'off'  (string)
  maemo.rechargeable.positive_rate = false  (bool)
  maemo.bme.version = '1.0'  (string)

installed versions:
Code:

home/user # dpkg -l | grep bme
ii  bme-rx-51                                          1.0-1                                      Battery Management Entity
ii  hald-addon-bme                                      1.0-1                                      hal battery addon for bme
ii  libbmeipc0                                          1.0-1                                      shared library for communication with Battery Management Entity
home/user # dpkg -l | grep battery
ii  hald-addon-bme                                      1.0-1                                      hal battery addon for bme
ii  status-area-applet-battery                          0.1.24+0m5                                status area battery applet

Otherwise the bme seems to work normally.

pinochio 2013-10-24 19:47

Re: BME Replacement
 
You can downgroad it to stock bme version:
Code:

apt-get install bme-rx-51=0.8.55+0m5


All times are GMT. The time now is 02:18.

vBulletin® Version 3.8.8