OpenZWave / open-zwave-control-panel

UNMAINTAINED - We are looking for someone to maintain ozwcp! The OpenZWave Control Panel (ozwcp for short) is an application built on the OpenZWave library that permits users to query, manage and monitor Z-Wave nodes and networks. It provides a web based user interface using AJAX principles.
Other
131 stars 72 forks source link

How to run in ttyACM? #55

Closed rubyhsu closed 7 years ago

rubyhsu commented 7 years ago

I run Ubuntu 14.04 thru VMWare Player. I using Sigma disign UZB and I can see /dev/ttyACM0 after plug in UZB device. I type /dev/ttyACM0 as device name ,then press "Initialize", but it'll show error as below,

2017-02-24 12:25:12.840 Info, mgr, Added driver for controller /dev/ttyACM0 2017-02-24 12:25:12.840 Info, Opening controller /dev/ttyACM0 2017-02-24 12:25:12.840 Info, Trying to open serial port /dev/ttyACM0 (attempt 1) 2017-02-24 12:25:12.840 Error, ERROR: Cannot open serial port /dev/ttyACM0. Error code 13 2017-02-24 12:25:12.840 Error, ERROR: Failed to open serial port /dev/ttyACM0 2017-02-24 12:25:12.840 Warning, WARNING: Failed to init the controller (attempt 0)

daradib commented 7 years ago

Do you have write permission to /dev/ttyACM0? For example, on Debian/Raspbian (probably same for Ubuntu I imagine):

$ ls -l /dev/ttyACM0
crw-rw---- 1 root dialout /dev/ttyACM0

I need to be in the dialout group. Check your groups by running groups. Run adduser <user> <group> and logout/login to join a group.

rubyhsu commented 7 years ago

Thanks, I add the permission to /dev/ttyACM0 then it works.