Help with serial binding

I’m having problems with serial binding.

I’m using an USB to serial cable on a raspberry pi with openhabian (2.2)

This is how i defined the item:

String XAP800 "XAP800"  { serial="/dev/ttyUSB0@34200" }

And this is the message I get:

2018-05-10 08:47:52.109 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type 'serial' of item 'XAP800' could not be parsed correctly.
org.eclipse.smarthome.model.item.BindingConfigParseException: Could not open serial port /dev/ttyUSB0: openHAB
	at org.openhab.core.binding.internal.BindingConfigReaderDelegate.processBindingConfiguration( [210:org.openhab.core.compat1x:2.2.0]
	at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings( [135:org.eclipse.smarthome.model.item:0.10.0.b1]
	at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings( [135:org.eclipse.smarthome.model.item:0.10.0.b1]
	at org.eclipse.smarthome.model.item.internal.GenericItemProvider.processBindingConfigsFromModel( [135:org.eclipse.smarthome.model.item:0.10.0.b1]
	at org.eclipse.smarthome.model.item.internal.GenericItemProvider.modelChanged( [135:org.eclipse.smarthome.model.item:0.10.0.b1]
	at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.notifyListeners( [134:org.eclipse.smarthome.model.core:0.10.0.b1]
	at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.addOrRefreshModel( [134:org.eclipse.smarthome.model.core:0.10.0.b1]
	at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.checkFile( [134:org.eclipse.smarthome.model.core:0.10.0.b1]
	at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.processWatchEvent( [134:org.eclipse.smarthome.model.core:0.10.0.b1]
	at [109:org.eclipse.smarthome.core:0.10.0.b1]
	at [?:?]

I did put openhab (and openhabian just to be sure) to the dialout group, but I don’t think it’s this kind of problem, as it states that the port is in use by openHAB (?!?)

My lsusb (at the moment the usb<->rs232 cable with the device is the only usb connected)

[08:57:03] openhabian@openHABianPi:~$ lsusb
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Can anyone help me?

I can’t help with your specific issue, but I have noticed your item name is XAP800…

I’ve got one sat next to me, and I’m trying to put together a Binding for it when I have time :slight_smile: So far I can select a Preset and run a Macro :slight_smile:

How were you planning on using it, and how would you like to control it via OH - some extra input will always be useful! :slight_smile:

To avoid going off-topic it’s better if you write me in private and i’ll send you all my configs.

1 Like

Someone made some fixes to the serial binding and posted a jar that needs testing. See here.