# Trying to simulate Fenecon Battery Home

**URL:** <https://community.openems.io/t/trying-to-simulate-fenecon-battery-home/2069>\
**Category:** English Forum\
**Created:** [November 3, 2023, 9:59am UTC](https://community.openems.io/t/trying-to-simulate-fenecon-battery-home/2069 "2023-11-03T09:59:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EEMChula](https://community.openems.io/user_avatar/community.openems.io/eemchula/32/786_2.png) [@EEMChula](https://community.openems.io/u/EEMChula)\
**Post date:** [November 3, 2023, 9:59am UTC](https://community.openems.io/t/trying-to-simulate-fenecon-battery-home/2069/1 "2023-11-03T09:59:07Z")

</div>

Hello everyone,

I am trying to simulate Fenecon Battery Home. I followed the page [Implementing a device :: Open Energy Management System](https://openems.github.io/openems.io/openems/latest/edge/implement.html)

In BatterySimulatedImpl.java, I changed the defineModbusProtocol() function:

 ![image](https://community.openems.io/uploads/default/original/1X/601aaa71fea60a20d7d999c6bf91a86c4a1eaa40.png)

In Config.java, I added Battery-Type attribute:

 ![image](https://community.openems.io/uploads/default/original/1X/d60e4ac56262795ac21f707547d6c1606b7c9d92.png)

I got the following log output, and State: FAULT.

2023-11-03T16:49:42,236 [\_cycle] INFO [ebuglog.ControllerDebugLogImpl] [ctrlDebugLog0] \_sum[State:Fault Ess SoC:80 %|L:910 W Grid:0 W Production:27 W Consumption:937 W] battery0[Battery Implementation|State:FAULT: Modbus Communication failed] ess0[SoC:80 %|L:910 kW|Allowed:-10000;10000 W] meter0[0 W] meter1[27 W] modbus0[CycleDelay:988 ms]

Could anyone suggest? If my implementation is wrong, where should I modify it?  
Thank you in advance.

Regards

---

<div class="post-metadata">

**Author:** ![p.wimmer](https://community.openems.io/user_avatar/community.openems.io/p.wimmer/32/50_2.png) [@p.wimmer](https://community.openems.io/u/p.wimmer)\
**Post date:** [November 3, 2023, 6:51pm UTC](https://community.openems.io/t/trying-to-simulate-fenecon-battery-home/2069/2 "2023-11-03T18:51:42Z")

</div>

hi @EEMChula ,

i guess the idea was good, but why do you want to “specially” simulate Fenecon Battery home? What is the difference to a “normal” simulated ESS?

You cannot (i assume) use in the simulation the modbus-protocol because than the implementation will try to comunicate over modbus (what makes no sense in a simulation).

Or perhaps i missunderstood what you wanna try to do.

best regards

Paul

---

<div class="post-metadata">

**Author:** ![EEMChula](https://community.openems.io/user_avatar/community.openems.io/eemchula/32/786_2.png) [@EEMChula](https://community.openems.io/u/EEMChula)\
**Post date:** [November 6, 2023, 1:05am UTC](https://community.openems.io/t/trying-to-simulate-fenecon-battery-home/2069/3 "2023-11-06T01:05:44Z")

</div>

hi @p.wimmer ,

thank you for your reply. We want to use simulation first before we try with a real physical battery. Also, we want realistic battery dynamics. But we are not sure yet to use a physical Fenecon Battery.
