How to identify the battery in the microgrid system