c++ - Qt - serial port name in ubuntu -
c++ - Qt - serial port name in ubuntu -
i have problem finding serial port name on ubuntu. know, reading serial port on windows, can utilize code example:
serial->setportname("com3"); but when compile code on ubuntu, can't utilize code:
serial->setportname("/dev/ttyacm0"); i know serial port name ttyacm0 , can read info on issuing command:
cat /dev/ttyacm0 but why cannot utilize name in code? should do?
in order permission regular user, please sysadmin add together grouping in charge of serial ports emulated on usb.
it either tty, uucp or something. varies distribution distribution, can check running next command:
ls -l /dev/ttyacm0 then check grouping column , sysadmin this:
sudo usermod -a -g grouping username please not introduce security vulnerabilities giving global write access others this:
sudo chmod 666 /dev/ttyacm0 c++ qt ubuntu serial-port qtserialport
Comments
Post a Comment