The Intelligent Battery Sensor (IBS) monitors the battery voltage and can determine the current flow in and out of the battery.
This information is sent to the PCM.
This is why it's important to disconnect all battery power from the IBS when replacing your batteries, so it can clear the history and learn the new batteries.
See the attached theory of operation for the IBS.
Bookmarks