Battery Powered X1

Hi everyone, I’ve seen this topic be discussed once but not in detail, I was wondering what the process was for powering the X1 with batteries, i know that i would require a Voltage regulator to ensure the board gets a consistent 12V, however, how does the SBC know what the charge of the battery is? it uses a 5525 Jack so there cant be any information being transferred, i appreciate any help on this matter, thanks!

i would also appreciate any resources for learning about this myself!

You can connect a high-precision DC voltage measurement module externally, and read the voltage value through the serial port