Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by tom_alexander

3 hours ago

> it seems like there's no standard reporting of charge level over the wire

Isn't that the "Battery_Status" message in the USB PD spec? Page 152 in this pdf: https://e2e.ti.com/cfs-file/__key/communityserver-discussion...

Combine that with the "Battery_Capabilities" message (page 163) to get the total capacity, and you can calculate the charge percentage.

0 comments

tom_alexander

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities