OpenHAB and S7-300 from Siemens

Hi Vita, Hi All,

I’m trying to setup Openhab 2.4.
The package installs but did not starts.

Can someone give me a tip??

thanks

if I start Manually the following appears:

202 | Installed | 80 | 1.9.0.201901290812 | openHAB Simatic Binding
openhab> bundle:start 202
Error executing command: Error executing command on bundles:
Error starting bundle 202: Could not resolve module: org.openhab.binding.simatic [202]
Unresolved requirement: Import-Package: org.openhab.core.binding

################################

In file openhab-2.4.0\userdata\logs\openhab.log the log is:

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.simatic [202]
Unresolved requirement: Import-Package: org.openhab.core.binding

at org.eclipse.osgi.container.Module.start(Module.java:444) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1614) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) ~[?:?]
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [?:?]

Did you install compatibility layer?

Hi Vita,

thanks so much!!!

Now I installed and Active.

I do have another error seenable from terminal: Interface.write:
java.net.SocketException: Connection reset by peer: socket write error

I can Ping the plc and via wireshark I see the request and the reply from PLC.

openhab.cnf
simatic:refresh=2000
simatic:plc=192.168.15.200:0.2

simatic.item
Number Item08 “Value[%f]” {simatic=“plc:DB100.DBD50:float:I”}

In openhab.log I can read but do not understand why this…

2019-03-19 01:07:59.093 [DEBUG] [ding.simatic.internal.SimaticBinding] - InfoItemsConfig(Size=0):{}

2019-03-19 01:07:59.093 [DEBUG] [ding.simatic.internal.SimaticBinding] - Devices(Size=2):{plc=isoTCP:192.168.15.200, plc315=isoTCP:192.168.15.200}

2019-03-19 01:07:59.093 [DEBUG] [imatic.internal.SimaticGenericDevice] - isoTCP:192.168.15.200 - prepareData Locked

2019-03-19 01:07:59.093 [DEBUG] [imatic.internal.SimaticGenericDevice] - isoTCP:192.168.15.200 - readAreas(Size=1):DB100.DBB50-DB100.DBB54;

2019-03-19 01:07:59.108 [DEBUG] [imatic.internal.SimaticGenericDevice] - isoTCP:192.168.15.200 - prepareData Unlocking

2019-03-19 01:07:59.108 [DEBUG] [.binding.simatic.internal.SimaticTCP] - isoTCP:192.168.15.200 - open() - connecting

2019-03-19 01:08:01.472 [ERROR] [.binding.simatic.internal.SimaticTCP] - isoTCP:192.168.15.200 - cannot connect to PLC due: Connection reset by peer: socket write error

2019-03-19 01:08:01.472 [DEBUG] [imatic.internal.SimaticGenericDevice] - isoTCP:192.168.15.200 - prepareData Locked

2019-03-19 01:08:01.472 [DEBUG] [imatic.internal.SimaticGenericDevice] - isoTCP:192.168.15.200 - readAreas(Size=0):

2019-03-19 01:08:01.472 [DEBUG] [imatic.internal.SimaticGenericDevice] - isoTCP:192.168.15.200 - prepareData Unlocking

2019-03-19 01:08:01.472 [DEBUG] [.binding.simatic.internal.SimaticTCP] - isoTCP:192.168.15.200 - open() - connecting

2019-03-19 01:08:03.842 [ERROR] [.binding.simatic.internal.SimaticTCP] - isoTCP:192.168.15.200 - cannot connect to PLC due: Connection reset by peer: socket write error

2019-03-19 01:08:03.842 [DEBUG] [ding.simatic.internal.SimaticBinding] - setProperlyConfigured: true

2019-03-19 01:08:03.842 [INFO ] [b.core.service.AbstractActiveService] - Simatic communication service has been started

2019-03-19 01:08:03.842 [DEBUG] [ding.simatic.internal.SimaticBinding] - execute() method is called!

2019-03-19 01:08:03.842 [DEBUG] [imatic.internal.SimaticGenericDevice] - reconnectWithDelaying(): 0/0/15

2019-03-19 01:08:03.842 [INFO ] [imatic.internal.SimaticGenericDevice] - isoTCP:192.168.15.200: Trying to reconnect

2019-03-19 01:08:03.842 [DEBUG] [.binding.simatic.internal.SimaticTCP] - isoTCP:192.168.15.200 - close() - disconnecting

2019-03-19 01:08:03.842 [DEBUG] [.binding.simatic.internal.SimaticTCP] - isoTCP:192.168.15.200 - open() - connecting

2019-03-19 01:08:03.952 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui

Have you any Idea?

thanks