This document describes an energy management system for a grid-connected hybrid energy storage system. It proposes a new energy management strategy that provides effective power sharing between battery and supercapacitor storage under different operating modes. The key advantages of the proposed strategy are faster DC link voltage regulation, dynamic power sharing between battery and grid based on state of charge, and reduced battery charge/discharge rates. The effectiveness is validated through simulation and experimental results. The system aims to improve power quality when connected to the grid and allow for seamless transitions between operating modes.