Linux – “Unable to open parallel port I/O driver” when trying to connect “RS232 to USB” cable on Linux

linuxmicrocontrollerpicrs232usb

I have a JDM programmer for pic micro-controllers, but it came with RS232 port. I have bought a "RS232 to USB" cable with its driver for Windows only and I use Xubuntu 14.04 LTS.

I have tried dmesg and lsusb, it shows that the cable is connected. But when I try to burn hex file to the programmer, it gives me this output:

PICPgm Development Programmer Version 2.8.1.0
http://picpgm.picprojects.net
Copyright 2002-2014 Christian Stadler (picpgm@gmx.at)
(built on Dec 29 2014 at 22:32:45)
==================================================================

Autodetecting Programmer ...

Warning: Unable to open parallel port I/O driver!
         Installing driver requires admin/root rights!

Error! PIC Programmer not found! Check connection!

Best Answer

In ubuntu, regular users don't have permission to access the serial ports, you need to be root, use sudo or add your user to the "dialout" group.