Hi all,
i have a similar problems or at least i’m trying to get my 4x Logo 7 to connect with openhab too.
Currently i have LogoControl running with the Logo’s and want to switch to openHAB.
I’d like to jump on your topic, as Siemens Logo with openHAB don’t seem to be that common and i’m glad i found some other’s working on it.
I had the bcu, too, but it wasn’t in my plclogo.cfg. So i removed the plclogo.jar and cfg file - restartet openHAB and now i only have the logos from my plclogo.cfg file.
Try removing the plclogo, restart and check you don’t have anything on: config:list “(service.pid=org.openhab.p*)”
my plclogo.cfg:
# plclogo:.host= IP address of the LOGO! PLC
Logo1.host=192.168.0.181
Logo2.host=192.168.0.182
Logo3.host=192.168.0.183
Logo4.host=192.168.0.184
# plclogo:.remoteTSAP= the TSAP (in hex) of the remote LOGO! PLC, as configured by LogoSoft Comfort. Common used value is 0x0200.
Logo1.remoteTSAP=0x0200
Logo2.remoteTSAP=0x0200
Logo3.remoteTSAP=0x0200
Logo4.remoteTSAP=0x0200
# plclogo::localTSAP= the TSAP (in hex) to be used by the local instance. Common used value is 0x0300.
Logo1.localTSAP=0x0100
Logo2.localTSAP=0x0100
Logo3.localTSAP=0x0100
Logo4.localTSAP=0x0100
# plclogo:refresh= polling interval in milliseconds to be used when querying the LOGO!. Default is 5000mS
refresh=1000
Logo1.model=0BA7
Logo2.model=0BA7
Logo3.model=0BA7
Logo4.model=0BA7
openhab> config:list "(service.pid=org.openhab.plclogo)"
----------------------------------------------------------------
Pid: org.openhab.plclogo
BundleLocation: file:/usr/share/openhab2/addons/org.openhab.binding.plclogo-1.10.0.jar
Properties:
Logo1.host = 192.168.0.181
Logo1.localTSAP = 0x0100
Logo1.model = 0BA7
Logo1.remoteTSAP = 0x0200
Logo2.host = 192.168.0.182
Logo2.localTSAP = 0x0100
Logo2.model = 0BA7
Logo2.remoteTSAP = 0x0200
Logo3.host = 192.168.0.183
Logo3.localTSAP = 0x0100
Logo3.model = 0BA7
Logo3.remoteTSAP = 0x0200
Logo4.host = 192.168.0.184
Logo4.localTSAP = 0x0100
Logo4.model = 0BA7
Logo4.remoteTSAP = 0x0200
refresh = 1000
service.pid = org.openhab.plclogo
i get in log:
20:54:40.581 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set host of Logo1: 192.168.0.181
20:54:40.584 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set local TSAP for Logo1: 0x0100
20:54:40.588 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set model for Logo1: 0BA7
20:54:40.591 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set remote TSAP for Logo1: 0x0200
20:54:40.595 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set host of Logo2: 192.168.0.182
20:54:40.598 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set local TSAP for Logo2: 0x0100
20:54:40.601 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set model for Logo2: 0BA7
20:54:40.605 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set remote TSAP for Logo2: 0x0200
20:54:40.608 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set host of Logo3: 192.168.0.183
20:54:40.612 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set local TSAP for Logo3: 0x0100
20:54:40.615 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set model for Logo3: 0BA7
20:54:40.617 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set remote TSAP for Logo3: 0x0200
20:54:40.619 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set host of Logo4: 192.168.0.184
20:54:40.621 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set local TSAP for Logo4: 0x0100
20:54:40.623 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set model for Logo4: 0BA7
20:54:40.625 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Set remote TSAP for Logo4: 0x0200
20:54:40.627 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - About to connect to Logo1
20:54:40.638 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Connected to PLC LOGO! device Logo1
20:54:40.640 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - About to connect to Logo2
20:54:40.647 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Connected to PLC LOGO! device Logo2
20:54:40.649 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - About to connect to Logo3
20:54:40.658 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Connected to PLC LOGO! device Logo3
20:54:40.661 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - About to connect to Logo4
20:54:40.667 [INFO ] [ding.plclogo.internal.PLCLogoBinding] - Connected to PLC LOGO! device Logo4
So i put in some items:
Switch ReadOutputLogo {plclogo="Logo2:Q6"}
Switch TestSwitchQ6 "Test Switch Q6" {plclogo="Logo2:VB204.1"}
and sitemap:
Frame label="Logo Test"{
Text item= ReadOutputLogo
Switch item= TestSwitchQ6
}
but then i get in log: (solved - see next post)
21:06:54.346 [WARN ] [ding.plclogo.internal.PLCLogoBinding] - Failed to read memory: Data Receiving timeout.. Reconnecting...
21:06:54.359 [WARN ] [ding.plclogo.internal.PLCLogoBinding] - Reconnect successful
and: (solved - see next post)
21:07:02.873 [ERROR] [ding.plclogo.internal.PLCLogoBinding] - Could not connect to PLC LOGO! device Logo2 : Data Receiving timeout.
21:07:02.875 [ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.event.EventHandler, org.osgi.service.cm.ManagedService, id=297, bundle=255/file:/usr/share/openhab2/addons/org.openhab.binding.plclogo-1.10.0.jar]: Updating property Could not connect to PLC LOGO! device of configuration org.openhab.plclogo caused a problem: Logo2 192.168.0.182
org.osgi.service.cm.ConfigurationException: Could not connect to PLC LOGO! device : Logo2 192.168.0.182
at org.openhab.binding.plclogo.internal.PLCLogoBinding.updated(PLCLogoBinding.java:447)[255:org.openhab.binding.plclogo:1.10.0.201703042113]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1772)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)[3:org.apache.felix.configadmin:1.8.12]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
my Logo setting:
Maybe i did not understand how items need to be defined?
Do i have to change configuration on Logo’s?
Could you post part’s of your configuration? items? sitemap?
My Logocontrol is working without any problems…