Closed rubyhsu closed 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.
Thanks, I add the permission to /dev/ttyACM0 then it works.
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)