Results 1 to 3 of 3
  1.    #1  
    my Veer cannot start webosdoctor because it stay battery charging for ever.

    i wanna say, my veer's battery is 100%

    how can i repair it ?
    Attached Images Attached Images
  2.    #2  
    Quote Originally Posted by chupaculi View Post
    connect veer to computer
    hold power button
    flick mute botton badck and forth 3x.
    hold volume button up while veer reboots
    you see a usb icon, you run doctor.
    thank you for your reply,
    but i used the recovery MODE..

    and now i open the doctor.jar with rar, com\palm\nova\installer\core\stages\ChargeBatteryStage.class

    but i can't read it correct

    // Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov Date: 2012/7/12 23:51:59
    // Home Page: http://members.fortunecity.com/neshkov/dj.html DJ Java Decompiler - java disassembler decompiler and editor - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name: ChargeBatteryStage.java

    package com.palm.nova.installer.core.stages;

    import com.palm.nova.installer.core.*;
    import com.palm.novacom.*;
    import java.io.IOException;

    // Referenced classes of package com.palm.nova.installer.core.stages:
    // BaseStage, GoIntoUpdateModeStage

    public class ChargeBatteryStage extends BaseStage
    implements IInstallerStage
    {

    public ChargeBatteryStage(INovacomDevice device)
    {
    jobId = null;
    progress = null;
    currentChargeLevel = 0;
    this.device = device;
    }

    public String toString()
    {
    return "Battery Charger";
    }

    private void chargeBattery()
    throws NovacomException, IOException
    {
    INovacomStream stream = device.runProgram("", null);
    String command = (new StringBuilder()).append("charging enable ").append(REQUIRED_POWER_PERCENTAGE).toString();
    byte bytes[] = command.getBytes("US-ASCII");
    stream.write(bytes);
    stream.closeOutput();
    String streamReturn = stream.readLine();
    do
    {
    streamReturn = stream.readLine();
    if(streamReturn == null)
    {
    progress.commentOnJob(jobId, "stream interupted");
    throw new NovacomException(-1, "stream interupted");
    }
    if(streamReturn.length() == 0)
    {
    progress.commentOnJob(jobId, "power charged up");
    break;
    }
    int start;
    int end;
    if((start = streamReturn.indexOf("p=")) >= 0 && (end = streamReturn.indexOf(" ", start + 2)) >= 2)
    {
    start += 2;
    String strReadBatteryPercentage = streamReturn.substring(start, end);
    try
    {
    int readBatteryPercentage = (new Integer(strReadBatteryPercentage)).intValue();
    if(readBatteryPercentage > currentChargeLevel)
    {
    currentChargeLevel = readBatteryPercentage;
    progress.updateJob(jobId, currentChargeLevel);
    progress.commentOnJob(jobId, (new StringBuilder()).append("battery percentage changed: ").append(currentChargeLevel).toString());
    }
    Thread.sleep(500L);
    }
    catch(NumberFormatException e)
    {
    progress.commentOnJob(jobId, (new StringBuilder()).append("+++++").append(streamReturn).append("-----").toString());
    }
    catch(InterruptedException e) { }
    } else
    {
    progress.commentOnJob(jobId, (new StringBuilder()).append("+++++").append(streamReturn).append("-----").toString());
    }
    stream.flush();
    } while(true);
    stream.close();
    }

    public void run()
    throws NovacomException, IOException
    {
    progress = getProgressHandler();
    jobId = progress.startJob("Battery Charger Stage", 100);
    if(device.getState() != com.palm.novacom.Novacom.DeviceState.BOOTLOADER)
    {
    GoIntoUpdateModeStage intoUpdateMode = new GoIntoUpdateModeStage(device);
    intoUpdateMode.run();
    }
    BootieUtilities bootie = new BootieUtilities(device);
    int currentPercentage = bootie.checkPowerStatus().intValue();
    if(REQUIRED_POWER_PERCENTAGE.intValue() > currentPercentage)
    {
    progress.commentOnJob(jobId, (new StringBuilder()).append("Battery at ").append(currentPercentage).append("%").toString());
    int count = 0;
    do
    {
    progress.commentOnJob(jobId, "Battery Charging Started");
    progress.commentOnJob(jobId, (new StringBuilder()).append("Charging to Sufficient Power (").append(REQUIRED_POWER_PERCENTAGE).append("%), this may take a couple of minutes").toString());
    chargeBattery();
    if(++count > RECHARGE_RETRY_COUNT.intValue())
    throw new NovacomException(-1, "failed to charge batttery");
    } while(REQUIRED_POWER_PERCENTAGE.intValue() > currentChargeLevel);
    }
    progress.endJob(jobId);
    }

    private static final Integer REQUIRED_POWER_PERCENTAGE = Integer.valueOf(25);
    private static final Integer RECHARGE_RETRY_COUNT = Integer.valueOf(5);
    private final INovacomDevice device;
    private Object jobId;
    private IStageProgressReporter progress;
    private int currentChargeLevel;

    }
  3.    #3  
    Quote Originally Posted by chupaculi View Post
    connect veer to computer
    hold power button
    flick mute botton badck and forth 3x.
    hold volume button up while veer reboots
    you see a usb icon, you run doctor.
    it's not work for me ,but still thank you, i used it in recovery MODE~!

    i open the doctor.jarcom\palm\nova\installer\core\stages\ChargeBatteryStage.class

    but i modify it not correct ... work it !

Tags for this Thread

Posting Permissions