Text this: Charge and Discharge Control of Li-ion Battery in Static VA Generator Device