BobRak / OpenHAB-cm11a

cm11a binding for OpenHAB
0 stars 1 forks source link

Error using /dev/ttyUSB0 #5

Closed briancday closed 7 years ago

briancday commented 7 years ago

I suspect this problem is "user error", but I thought it might be helpful to pass along my experience. I'm having an issue where the binding will not connect to the USB serial adapter on /dev/ttyUSB0.

Situation:

Expected Result:

Actual Result:

Error Messages via UI

CM11a Binding for X10 devices OFFLINE CM11a Binding for X10 devices cm11a:cm11a:MyCm11a Status: OFFLINE - COMMUNICATION_ERROR No such port exists on this machine: /dev/ttyUSB0

Error Messages in the Log

2017-01-19 13:23:22.298 [hingStatusInfoChangedEvent] - 'cm11a:cm11a:e975db78' changed from OFFLINE (COMMUNICATION_ERROR): No such port exists on this machine: /dev/ttyUSB0 to REMOVING

*** However, the port is there, and the user has access to the dialout group: crw-rw---- 1 root dialout 188, 0 Jan 19 13:19 /dev/ttyUSB0 openhab : openhab tty dialout

BobRak commented 7 years ago

Brian:

Sorry to be slow in responding. I am away from home and this is the first chance I've had to respond. Plus I only have a small Chromebook with me.

I'll be home Monday and can try to look further at my own installation then. Let me know if you make any progress.

Thanks,

Bob

On Thu, Jan 19, 2017 at 11:45 AM, briancday notifications@github.com wrote:

I suspect this problem is "user error", but I thought it might be helpful to pass along my experience. I'm having an issue where the binding will not connect to the USB serial adapter on /dev/ttyUSB0. Situation:

  • Running Openhab2 on headless Ubuntu 14
  • Plugged CM11a into USB port via serial to USB adapter
  • Verified was working by running heyu (this may be the problem... that I'm still running heyu)
  • Moved latest jar (plus org.openhab.io.transport.serial.jar ) into /usr/share/openhab2/addons
  • Configured simple cm11a.things, and cm11a.items files under /etc/openhab2/things following examples.
  • reboot server for safe measure

Expected Result:

  • Open PaperUI -- see the CM11a binder is connected -- see things -- turn things on/off, and they work

Actual Result:

  • Open PaperUI -- see the CM11a binder is NOT connected -- see things -- turn things on/off, and they do NOT work

Error Messages via UI

CM11a Binding for X10 devices OFFLINE CM11a Binding for X10 devices cm11a:cm11a:MyCm11a Status: OFFLINE - COMMUNICATION_ERROR No such port exists on this machine: /dev/ttyUSB0 Error Messages in the Log

2017-01-19 13:23:22.298 [hingStatusInfoChangedEvent] - 'cm11a:cm11a:e975db78' changed from OFFLINE (COMMUNICATION_ERROR): No such port exists on this machine: /dev/ttyUSB0 to REMOVING

*** However, the port is there, and the user has access to the dialout group: crw-rw---- 1 root dialout 188, 0 Jan 19 13:19 /dev/ttyUSB0 openhab : openhab tty dialout

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BobRak/OpenHAB-cm11a/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ7WhBnmdgeYad5tBGDIC0Wu22Fsno6iks5rT71qgaJpZM4Lohbf .

briancday commented 7 years ago

I’m running this on an Ubuntu VM under ESXi.  I suspect that heyu conflicts for the usb port.  I’ll uninstall and try again.

B

briancday commented 7 years ago

Bob:

I turned off the heyu daemon and restarted openhab2 and it is now working. 

Lesson: Don’t run heyu and openhab2 (with cm11a binding) on the same machine fighting for the same CM11a.


Brian