-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
UsbSerialDiscovery service based on Windows registry #3934
Conversation
Signed-off-by: Andrew Fiddian-Green <[email protected]>
This reverts commit 14e3349.
@mherwege 4yi |
@mherwege it will probably fail the Karaf build (as usual) due to missing feature :( -- EDIT: fixed :) |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Holger Friedrich <[email protected]>
f453d38
to
56e1b6e
Compare
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
@mherwege I added the missing serial port and interface information |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
As #3922 is now merged, this one is also ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems useful for Windows users. 👍
I only have a few minor comments:
...g/openhab/core/config/discovery/usbserial/windowsregistry/test/WindowsUsbDiscoveryTests.java
Outdated
Show resolved
Hide resolved
...nhab/core/config/discovery/usbserial/windowsregistry/internal/WindowsUsbSerialDiscovery.java
Outdated
Show resolved
Hide resolved
...nhab/core/config/discovery/usbserial/windowsregistry/internal/WindowsUsbSerialDiscovery.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
@wborn there is still the question of which UsbSerialDiscovery components should be loaded on which platforms .. I guess the following .. => WDYT? And the next question is how to program the dependencies and karaf stuff .. which is probably beyond my capabilities :(
|
Yes that probably makes sense.
It doesn't use any native dependency which is very convenient because Linux runs on so many platforms. So it will result in fewer issues compared to javaxusb.
It uses native libraries and only supports Linux, Windows and macOS. So it probably only makes sense to use it on macOS.
You may be able to use |
@wborn the following is simply a wild guess idea .. but I would like to have some feedback from more knowledgeable Karaf experts before even attempting to make such a commit. .. in particular if the
|
I haven't used this myself yet. Just give it a try and see what happens. 🙂 |
Yeah. I just ran a full build of OH this afternoon (it takes ages on my machine; I probably need to buy a new one). The build succeeded without error. But I will test it tomorrow. |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
@wborn below is a screenshot in Windows showing that this (Windows) discovery is installed, and the existing (Linux) discovery is not. To be ultra safe we would need to check the opposite case on a Linux machine. However I currently don't have a Linux test machine, so I wonder if you could eventually test it for me? |
I just gave it a test on Ubuntu and the linuxsysfs bundle keeps getting installed while the windowsregistry bundle is not. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the new UsbSerialDiscovery!
Signed-off-by: Andrew Fiddian-Green <[email protected]> Signed-off-by: Ciprian Pascu <[email protected]>
This is a new implementation of the UsbSerialDiscovery interface for Windows, which discovers USB devices by reading from the Windows registry.
This may be an alternative, or an extension, to #3930
Signed-off-by: Andrew Fiddian-Green [email protected]