Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert ZWave binding to use ESH SerialPort classes #1152

Merged
merged 1 commit into from
Apr 3, 2019

Conversation

cdjackson
Copy link
Collaborator

This modifies the ZWave binding to use the ESH SerialPort classes. This allows serial-over-ip- as per eclipse-archived/smarthome#5560.

I have only tested the binding with a real serial port - not with the IP extension, but that should be handled through the ESH libraries.

Signed-off-by: Chris Jackson [email protected]

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/zwave-binding-updates/51080/658

@cdjackson
Copy link
Collaborator Author

@kaikreuzer is org.eclipse.smarthome.io.transport.serial still available in the new system?

@codeaholics
Copy link

Will it have moved to a new (non-ESH) package and bundle name?

@cdjackson
Copy link
Collaborator Author

I don't know - hence why I'm asking ;)

However, I'm assuming, maybe incorrectly, that everything hasn't been refactored as the binding is still using all the original package names - if this has changed it would require a major overhaul of every binding.

@cdjackson
Copy link
Collaborator Author

@kaikreuzer or @openhab/core-maintainers any idea about this?

@5iver
Copy link

5iver commented Mar 26, 2019

What is the issue? There are several other bindings using it, but using Import-Package instead of Require-Bundle in the manifest.

@cdjackson
Copy link
Collaborator Author

What is the issue?

As per the failed CI.

@5iver
Copy link

5iver commented Mar 26, 2019

I only get a 404 when clicking Details. Or is that the issue? 😄

@cdjackson
Copy link
Collaborator Author

cdjackson commented Mar 26, 2019 via email

@cdjackson cdjackson closed this Mar 26, 2019
@cdjackson cdjackson reopened this Mar 26, 2019
@5iver
Copy link

5iver commented Mar 27, 2019

19:06:18 Java HotSpot(TM) 64-Bit Server VM warning: Insufficient space for shared memory file:
19:06:18     13077

19:06:50  [ERROR] Internal error: java.lang.RuntimeException: Could not instantiate required component: com.google.inject.ProvisionException: Unable to provision, see the following errors:
19:06:50  [ERROR] 
19:06:50  [ERROR] 1) Error notifying InjectionListener org.eclipse.sisu.plexus.PlexusBeanBinder@42ae9e96 of org.eclipse.tycho.p2.resolver.P2DependencyResolver.
19:06:50  [ERROR] Reason: java.lang.RuntimeException: java.io.IOException: Could not create temp dir /tmp/tycho3657383411294228714equinox
19:06:50  [ERROR] while locating org.eclipse.tycho.p2.resolver.P2DependencyResolver
19:06:50  [ERROR] at ClassRealm[extension>org.eclipse.tycho:tycho-maven-plugin:1.3.0, parent: sun.misc.Launcher$AppClassLoader@7852e922] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
19:06:50  [ERROR] while locating org.eclipse.tycho.core.DependencyResolver annotated with @com.google.inject.name.Named(value=p2)
19:06:50  [ERROR] 
19:06:50  [ERROR] 1 error
19:06:50  [ERROR] role: org.eclipse.tycho.core.DependencyResolver
19:06:50  [ERROR] roleHint: p2
19:06:50  [ERROR] -> [Help 1]
19:06:50  org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not instantiate required component
19:06:50      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:120)

It looks like Jenkins is out of space again... openhab/openhab-core#639 (comment).

@cweitkamp
Copy link
Contributor

cweitkamp commented Mar 27, 2019

is org.eclipse.smarthome.io.transport.serial still available in the new system?

Yes, it is. We did not change the namespaces for now. We just moved the code to a different location.

@@ -49,3 +49,4 @@ Import-Package: com.google.common.collect,
Service-Component: OSGI-INF/*.xml
Export-Package: org.openhab.binding.zwave
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.smarthome.io.transport.serial
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To fix the build just remove this Require-Bundle manifest entry. Instead you should add org.eclipse.smarthome.io.transport.serial to the Import-Package entries.

@cdjackson cdjackson merged commit 552248c into openhab:master Apr 3, 2019
@cdjackson cdjackson deleted the esh_serial branch April 3, 2019 22:45
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/port-not-found-after-system-start-on-openhabianpi/73638/15

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/preparation-for-2-5m2/75738/22

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/zwave-zigbee-rfc2217-remote-serial-port-howto/81633/3

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/solved-zwave-zigbee-rfc2217-remote-serial-port-howto/81633/20

@cdjackson cdjackson added this to the 2.5 milestone Dec 14, 2019
@RafalLukawiecki
Copy link

What is the current status of this? Shows as merged but I saw comments on the OpenHAB forum that it has been removed from the binding. Hoping to remote ZWave stick away from OH server, reliability would be important but reading about issues with the socat ZWave solution after connection losses.

@cdjackson
Copy link
Collaborator Author

What is the current status of this? Shows as merged

It is merged.

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/share-z-wave-dongle-over-ip-usb-over-ip-using-ser2net-socat-guide/34895/224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants