Satelbinding- instantly closing connection

for of your jar being active the bundle list gives me following states:

223 | Active   |  80 | 1.10.0                 | openHAB Satel Action
224 | Active   |  80 | 1.10.0                 | openHAB Satel Binding
225 | Active   |  80 | 1.11.0.201707251139    | openHAB Satel Binding
226 | Active   |  80 | 1.11.0.201707160110    | openHAB Satel Action

so it seems to me that both are active.

regarding the new code, same download link ?

kind regards

Yes, the download link is the same.

You need to uninstall the 1.10.0 versions.

uninstalled the action and binding from the paperui pasted your snapshort into the addons folder restartet the server

On startup:

14:59:34.867 [INFO ] [.internal.GenericScriptEngineFactory] - Activated scripting support for ECMAScript
14:59:34.981 [DEBUG] [org.openhab.binding.exec            ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=org.openhab.binding.exec.internal.ExecHandlerFactory, component.id=20, service.id=121, service.bundleid=201, service.scope=bundle} - org.openhab.binding.exec
14:59:34.983 [DEBUG] [org.openhab.binding.exec            ] - BundleEvent STARTING - org.openhab.binding.exec
14:59:34.983 [DEBUG] [org.openhab.binding.exec            ] - BundleEvent STARTED - org.openhab.binding.exec
14:59:34.987 [DEBUG] [org.openhab.binding.exec            ] - BundleEvent [unknown:512] - org.openhab.binding.exec
14:59:35.291 [ERROR] [org.openhab.action.satel            ] - FrameworkEvent ERROR - org.openhab.action.satel
org.osgi.framework.BundleException: Could not resolve module: org.openhab.action.satel [226]
  Unresolved requirement: Import-Package: org.openhab.binding.satel
    -> Export-Package: org.openhab.binding.satel; bundle-symbolic-name="org.openhab.binding.satel"; bundle-version="1.11.0.201707260153"; version="0.0.0"
       org.openhab.binding.satel [228]
         Unresolved requirement: Import-Package: gnu.io

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]

and

15:00:20.027 [ERROR] [org.openhab.binding.satel           ] - FrameworkEvent ERROR - org.openhab.binding.satel
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.satel [228]
  Unresolved requirement: Import-Package: gnu.io

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]

furthermore it stopped the repeating connection process

EDIT:

i just checked the status of these bindings they dont appear to be active

226 | Installed |  80 | 1.11.0.201707160110    | openHAB Satel Action
228 | Installed |  80 | 1.11.0.201707260153    | openHAB Satel Binding

Try checking the bindings this way:

bundle:diag 226
bundle:diag 228

I don’t know what causes this to happen, though. A quick google found a few threads in the forum, but I don’t see an obvious solution in them.

I get those:

openhab>  bundle:diag 226
openHAB Satel Action (226)
--------------------------
Status: Installed
Unsatisfied Requirements:
osgi.wiring.package; filter:="(osgi.wiring.package=org.openhab.binding.satel)"
osgi.wiring.package; filter:="(osgi.wiring.package=org.openhab.binding.satel.command)"


openhab>  bundle:diag 228
openHAB Satel Binding (228)
---------------------------
Status: Installed
Unsatisfied Requirements:
osgi.wiring.package; filter:="(osgi.wiring.package=gnu.io)"

Have you tried restarting OH? If a couple restarts doesn’t change anything, check the status of the openhab-transport-serial feature, and install it if it’s not running. I profer this suggestion based on this thread that was reporting the gnu.io error.

feature:info | grep openhab-transport-serial
feature:install openhab-transport-serial

restarted ,gave me this

07:33:49.554 [ERROR] [org.openhab.action.satel            ] - FrameworkEvent ERROR - org.openhab.action.satel
org.osgi.framework.BundleException: Could not resolve module: org.openhab.action.satel [226]
  Unresolved requirement: Import-Package: org.openhab.binding.satel
    -> Export-Package: org.openhab.binding.satel; bundle-symbolic-name="org.openhab.binding.satel"; bundle-version="1.11.0.201707260153"; version="0.0.0"
       org.openhab.binding.satel [228]
         Unresolved requirement: Import-Package: gnu.io

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]

and this,

07:34:47.495 [ERROR] [org.openhab.binding.satel           ] - FrameworkEvent ERROR - org.openhab.binding.satel
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.satel [228]
  Unresolved requirement: Import-Package: gnu.io

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]

after i installed the feature i restarted and got these on startup

07:40:01.383 [DEBUG] [org.openhab.binding.exec            ] - BundleEvent [unknown:512] - org.openhab.binding.exec
07:40:01.385 [DEBUG] [org.openhab.binding.exec            ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=org.openhab.binding.exec.internal.ExecHandlerFactory, component.id=20, service.id=126, service.bundleid=201, service.scope=bundle} - org.openhab.binding.exec
07:40:01.386 [DEBUG] [org.openhab.binding.exec            ] - BundleEvent STARTING - org.openhab.binding.exec
07:40:01.386 [DEBUG] [org.openhab.binding.exec            ] - BundleEvent STARTED - org.openhab.binding.exec

but again the satel connection gets closed

07:41:25.094 [DEBUG] [.satel.internal.protocol.SatelModule] - Communication thread started
07:41:25.095 [INFO ] [.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 192.168.91.100:7090
07:41:25.107 [INFO ] [.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
07:41:25.107 [DEBUG] [.satel.internal.protocol.SatelModule] - Sending message: Message: command = 7E, payload =
07:41:25.107 [TRACE] [satel.internal.protocol.SatelMessage] - Calculated checksum = D860
07:41:25.107 [TRACE] [.satel.internal.protocol.SatelModule] - Waiting for response
07:41:25.125 [DEBUG] [.satel.internal.protocol.SatelModule] - Response was null. Communication loop will exit.
07:41:25.125 [INFO ] [.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module
07:41:25.125 [DEBUG] [satel.internal.event.EventDispatcher] - Distributing event: org.openhab.binding.satel.internal.event.ConnectionStatusEvent: connected = false
07:41:25.125 [TRACE] [satel.internal.event.EventDispatcher] - Distributing to org.openhab.binding.satel.internal.protocol.Ethm1Module@1b35ac61
07:41:25.125 [TRACE] [satel.internal.event.EventDispatcher] - Distributing to org.openhab.binding.satel.internal.SatelBinding@1fef8869
07:41:25.125 [TRACE] [.binding.satel.internal.SatelBinding] - Handling incoming event: org.openhab.binding.satel.internal.event.ConnectionStatusEvent: connected = false
07:41:25.126 [DEBUG] [.satel.internal.protocol.SatelModule] - Communication thread stopped
07:41:26.092 [TRACE] [.satel.internal.protocol.SatelModule] - Checking communication thread: true, false
07:41:26.092 [TRACE] [.satel.internal.protocol.SatelModule] - Command enqueued: Message: command = 7E, payload =
07:41:26.096 [DEBUG] [.satel.internal.protocol.SatelModule] - Communication thread started
07:41:26.096 [INFO ] [.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 192.168.91.100:7090
07:41:26.108 [INFO ] [.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
07:41:26.108 [DEBUG] [.satel.internal.protocol.SatelModule] - Sending message: Message: command = 7E, payload =
07:41:26.108 [TRACE] [satel.internal.protocol.SatelMessage] - Calculated checksum = D860
07:41:26.108 [TRACE] [.satel.internal.protocol.SatelModule] - Waiting for response
07:41:26.127 [DEBUG] [.satel.internal.protocol.SatelModule] - Response was null. Communication loop will exit.
07:41:26.127 [INFO ] [.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module

Edit:
set the log mode to debug and found that there was no answeer or null

07:44:59.800 [DEBUG] [.satel.internal.protocol.SatelModule] - Communication thread started
07:44:59.801 [INFO ] [.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 192.168.91.100:7090
07:44:59.814 [INFO ] [.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
07:44:59.814 [DEBUG] [.satel.internal.protocol.SatelModule] - Sending message: Message: command = 7E, payload =
07:44:59.832 [DEBUG] [.satel.internal.protocol.SatelModule] - Response was null. Communication loop will exit.
07:44:59.832 [INFO ] [.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module
07:44:59.832 [DEBUG] [satel.internal.event.EventDispatcher] - Distributing event: org.openhab.binding.satel.internal.event.ConnectionStatusEvent: connected = false
07:44:59.832 [DEBUG] [.satel.internal.protocol.SatelModule] - Communication thread stopped

So not much left to do, then.

The only things you might try:

  • check your configs. make sure you’re using the right address and port
  • take a network sniff of the exchange to verify what’s being sent/received

Using wireshark to sniff but cant really read the things sent (not human readable)

but maybe you can get more information out of it. for me it seems like everything is fine if i wouldnt know better since OH sends and receives messages.

wireshark

If you want to post the file I could take a look. The screen capture doesn’t show the actual data transmitted/received.

hope that helps

This shows clearly that OH sends the 7E command and receives an empty response:

Sent:

0000   00 00 5e 00 01 18 00 1e c9 34 93 06 08 00 45 00  ..^......4....E.
0010   00 2d 7b 03 40 00 80 06 00 00 ac 18 01 0a c0 a8  .-{.@...........
0020   5b 64 ff 35 1b b2 43 0e 86 46 1b 44 27 22 50 18  [d.5..C..F.D'"P.
0030   ff 70 c9 4e 00 00 7e d8 60 fe 0d                 .p.N..~.`..

Response:

0000   00 00 5e 00 01 18 00 1e c9 34 93 06 08 00 45 00  ..^......4....E.
0010   00 28 7b 04 40 00 80 06 00 00 ac 18 01 0a c0 a8  .({.@...........
0020   5b 64 ff 35 1b b2 43 0e 86 4b 1b 44 27 22 50 11  [d.5..C..K.D'"P.
0030   ff 70 c9 49 00 00                                .p.I..

If you have any external tools that communicate to the same Satel system using the same protocol, comparing those conversations could be interesting, but it looks like everything is good here.

so basically the satel doest answer to my request, since we can look into it via the software meaning the satel works this suggest that the satel just dont answer me.

since i m really a noob in this topic my question is is it possible that the satel can only communicate with 1 other device at the same time? or why else wouldnt it answer or answer empty

I don’t know enough about Satel to answer that. @druciak might be able to answer.

Hi guys, really interesting conversation. I learned some useful tricks :slight_smile:
Regarding the main topic/problem: as @namraccr pointed out there must be some misconfiguration. It seems that ethm-1 does not understand what the binding says. I would suggest to check the following:

  1. Port is correct (should be integration protocol port)
  2. Integration protocol is enabled
  3. Encryption is on both sides disabled or
  4. Encryption is on both sides enabled and encryption key is same on both sides.
  5. You don’t have anything else connected to the same port of ethm-1

In some cases reinstalling oh2 from the scratch helped, but I would try it if all other failed.

That’s true, it can communicate with only one client per port (protocol).

hi druciak,

if i got the right information about the satel from my system admin the configuration shoud be right.

i entered an IP-adress,an port and commented the rest out since i m told that it isnt encrypted.

i ll look closer into the matter regarding 1connection/Port.

I forgot about another reason that could make such problems:
5. Make sure integration protocol is enabled.

What port did you enter to OH configuration?

7090

Most likely this is not the correct port. Ports can be reconfigured in Dload X, but here are the defaults:
7090 - DloadX
7091 - GuardX / Java
7094 - Integration protocol

Usually nobody touches these defaults, so I suspect you are using DloadX port, which obviously won’t work.
You could try to put 7094 to your configuration, but if it is not enabled, it won’t work either. If this is the case, you need to ask your sys admin to enable it.

will try thx for the advice