Org.openhab.io.transport.serial missing in action?


(Karel Goderis) #1

Did I miss something, but I can not find back org.openhab.io.transport.serial in any of the repos? Where should it be?


(SiHui) #2

For OH2: \runtime\karaf\system\org\openhab\core


(Karel Goderis) #3

Ok, but I meant in the source code bundles


(Markus Storm) #4

I have the same question: what do I need to set in addons.cfg or wherever to get openhab-transport-serial started at OH startup ?


(Chris Jackson) #5

The serial transport will automatically be added assuming it’s a dependancy of the package you’re installing. So, for example if you install Z-Wave or the serial binding, then the serial driver will automatically be resolved.


(Markus Storm) #6

yes, but that isn’t the case if I’m using your refactored zwave addon jar, that’s why I was looking for a method to autoload it


(Chris Jackson) #7

Then you can use the command -:

feature:install openhab-transport-serial 

(Markus Storm) #8

I know, and I do, but that’s what I wanted to happen automatically.
Still having a major problem on OH (re)start, keeps hanging (will open another thread for it)
For now, it does not work unless I delete Karaf cache and do feature:install openhab-transport-serial and copy the jar afterwards every time.


(Chris Jackson) #9

Sorry - maybe someone else can help. I think for most people the feature install is working ok here :frowning: .


(Scott Rushworth) #10

I have not experienced this, but I have seen similar posted by others and sounds like a bug somewhere. Are you on a recent snapshot build? I installed the serial binding through PaperUI and also have this in addons.cfg, along with other bindings that I trimmed out for the example:

binding = serial1

(Sherwin Amiran) #11

I had exactly the same problem; each update of openhab through the package manager required me to go into the console and do feature:install openhab-transport-serial

Installing the serial binding, and doing nothing else, fixed it. I’m assuming that openhab-transport-serial is a dependency of the serial binding.


(Chris Jackson) #12

Yes - it should be a dependency of any binding that uses the serial ports. If you’re installing a binding that requires the serial port, and it doesn’t install the serial driver, then please raise an issue so that this can be resolved.


(Scott Rushworth) #13

Wouldn’t this behavior be expected from a manual install of the binding? If so, you may want to qualify your statement. :slightly_smiling_face:

Installing Z-Wave or Zigbee through a UI will resolve the serial transport dependency. This does not happen when installing through Karaf or dropping a new jar into addons. I have manual installs of both and need to reinstall the serial transport every time I upgrade OH.


(Chris Jackson) #14

Yes, you’re right. I had assumed that if people are manually installing bindings, then they should know that they have to manually install any dependancy, and this should be understood (ie, it’s not a “problem” - it’s just what you have to do if you’re manually installing stuff) :wink: .

Really? I’m a bit surprised - if you install a feature, then I would think it should resolve dependancies in the same way as if it’s installed through the UI as it’s doing the same thing. It’s true that if you install individual JAR files, then you need to sort this out yourself though.


(Scott Rushworth) #15

I misspoke… installing the binding through Karaf is the same as through a UI and the serial transport gets installed. But specifically installing the serial transport through Karaf does not persist after an upgrade.


(Łukasz Dywicki) #16

That is correct, updated installation is bootstraped according to addons.cfg.