Giter VIP home page Giter VIP logo

Comments (10)

EliasKotlyar avatar EliasKotlyar commented on June 28, 2024 1

Hello dmolner,

You need to update to the latest firmware(only sdcard). This error means that you are using a old binary.

Greating

from xiaomi-dafang-hacks.

EliasKotlyar avatar EliasKotlyar commented on June 28, 2024

Hello @whuang1965,

Thanks for your report. I suspect that there is some process/driver which is taking so much power. Also the CFW-1.1 is based on the firmware 5.5.1.177 which may include an older kernel. I have released a CFW-1.2 which is based on the 5.5.200 Firmware. I hope that it will consume lesser power. Can you please update and measure again?

Many thanks
Greating
Elias

from xiaomi-dafang-hacks.

whuang1965 avatar whuang1965 commented on June 28, 2024

@EliasKotlyar

Thanks for the new firmware, really appreciate your effort and time to make this thing working.

Just had a chance to install the latest CFW, cfw-1.2.bin, and did the measurement with the same condition in my previous post. The power consumption is around 2.0 - 2.1 watts. There is a noticeable improvement. From the top command, the idle is still almost 0% and nice uses up all the CPU time.

Mem: 30688K used, 68952K free, 0K shrd, 2944K buff, 10492K cached
CPU: 0.0% usr 1.6% sys 0.0% nic 98.3% idle 0.0% io 0.0% irq 0.0% sirq
Load average: 2.30 2.31 2.40 1/55 219

BTW, [Kill A Watt model P4482] is used for the power measurement.

Regards,
Wade

from xiaomi-dafang-hacks.

sharkoz avatar sharkoz commented on June 28, 2024

@whuang1965 I beleive you are reading it wrong, here is how you should read the top result : .

CPU:
0.0% usr
1.6% sys
0.0% nic
98.3% idle
0.0% io
0.0% irq
0.0% sirq

So your CPU is 98.3% idle which is very reasonable 😄
nic represents the low priority processes, and is at 0%
Only the system is using 1.6% which is normal

from xiaomi-dafang-hacks.

guteSeite avatar guteSeite commented on June 28, 2024

If you use the motor, the amperage increases from 200mAh up to more than 1000mAh and it doesn't drop until reboot :-(
Isn't there a motor power-off command?

BTW: very good work - thanx very much !!!

from xiaomi-dafang-hacks.

EliasKotlyar avatar EliasKotlyar commented on June 28, 2024

There is some driver option to "reset" the motor:
https://github.com/EliasKotlyar/Xiaomi-Dafang-Software/blob/master/drivers/misc/sample_motor/motor.c

I suppose that it may decrease the power consuption.

from xiaomi-dafang-hacks.

EliasKotlyar avatar EliasKotlyar commented on June 28, 2024

Hey,

I have intregrated a option to "stop" the motors:

Run it with following command(after you are done rotating)

/system/sdcard/bin/motor -d s

@guteSeite : Could you please have a test if this helps to decrease power consumption?

from xiaomi-dafang-hacks.

dmolner avatar dmolner commented on June 28, 2024

@EliasKotlyar : I test the instruction but no change.
I have a 0.6A if move to right and 0.8A move to left, after move the consumption not decrease.
If I type the command
/system/sdcard/bin/motor -d s
the consumption is the same.
In the terminal I have the message
Invalid Direction Argument

from xiaomi-dafang-hacks.

guteSeite avatar guteSeite commented on June 28, 2024

Hi Elias, it's great! With the command "motor -d s" after camera moving the amperage is back to 130 mAh. The lowest value I ever had!

from xiaomi-dafang-hacks.

EliasKotlyar avatar EliasKotlyar commented on June 28, 2024

So yeah, its the motors which are causing the high demand on power. I hope it could resolve your issue.

from xiaomi-dafang-hacks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.