Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add batterydump tool for dump the battery info #1937

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

DannyPlusPlus
Copy link
Contributor

@DannyPlusPlus DannyPlusPlus commented Aug 10, 2023

Summary

armv8a> batterydump -h
batterydump -h
batterydump [arguments...] <command>
        [-h      ]  batterydump commands help
        [-t   val]  0:charger 1:gauge 2:monitor
        [-f      ]  poll the battery state and dump
 command:
        <batttery_node_name> ex:/dev/charge/goldfish_battery
armv8a> 

Impact

Testing

armv8a> batterydump -f -t 1 /dev/charge/goldfish_battery
batterydump -f -t 1 /dev/charge/goldfish_battery
state:2, online:0, vol:5.000000, capacity:71%,current:900.000000, temperature:25.000000

Copy link
Contributor

@jerpelea jerpelea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a commit message describing the change

Copy link
Contributor

@jerpelea jerpelea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please copy the PR message as commit message

@xiaoxiang781216 xiaoxiang781216 merged commit 6534f3d into apache:master Aug 10, 2023
25 checks passed
@DannyPlusPlus DannyPlusPlus deleted the batterydump branch August 11, 2023 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants