HN Top New Show Ask Jobs

settings

Theme

Hand Mode

Feed

Comment by tom_alexander

Comment by tom_alexander 2 days ago

0 replies

View on Hacker News

> 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.