openPort(); Exception type - Permission denied - BUT already in dialout group

I’m using Ubuntu 16.04 and IDE Arduino 1,8,5.

I Bought an Arduino Due Board; Added myself to dialout and tty group, then connected an Adruino Due board, with the Programming port.

BUT trying to load the blink example, I got the ERROR below.

Consider that, as shown below, the board can be found by sudo lsusb command, by the IDE still can not connect to the board (As normal user).

Any Ideas how to connect to the Arduino Due Board ??


Caused by: jssc.SerialPortException: Port name - /dev/ttyACM0; Method name - openPort(); Exception type - Permission denied.
	at jssc.SerialPort.openPort(SerialPort.java:170)
	at processing.app.Serial.touchForCDCReset(Serial.java:101)
giuliano@hotbird13:~$ groups giuliano
giuliano : giuliano adm tty dialout cdrom sudo dip plugdev lpadmin sambashare kismet
giuliano@hotbird13:~$ ls -l /dev/ttyACM*
crw-rw---- 1 root dialout 166, 0 set 28 21:04 /dev/ttyACM0
giuliano@hotbird13:~$ sudo lsusb -d 0x2341:0x003d -v

Bus 003 Device 008: ID 2341:003d Arduino SA 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            2 Communications
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x2341 Arduino SA
  idProduct          0x003d 
  bcdDevice            0.01
  iManufacturer           1 Arduino (www.arduino.cc)
  iProduct                2 Arduino Due Prog. Port
  iSerial               220 557393236373516192C0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           62
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface              0 
      CDC Header:
        bcdCDC               10.01
      CDC ACM:
        bmCapabilities       0x06
          sends break
          line coding and serial state
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval             255
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
Device Status:     0x0000
  (Bus Powered)
giuliano@hotbird13:~$ dmesg tail
[ 1484.510914] usb 3-6: new full-speed USB device number 8 using xhci_hcd
[ 1484.640694] usb 3-6: New USB device found, idVendor=2341, idProduct=003d
[ 1484.640699] usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[ 1484.640701] usb 3-6: Product: Arduino Due Prog. Port
[ 1484.640704] usb 3-6: Manufacturer: Arduino (www.arduino.cc)
[ 1484.640706] usb 3-6: SerialNumber: 557393236373516192C0
[ 1484.640855] usb 3-6: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040 microframes
[ 1484.641247] cdc_acm 3-6:1.0: ttyACM0: USB ACM device

Removed IDE version 1.8.5 & downloaded the Installed version 1.8.7 from

At first run the IDE 1.8.7 recognized the Arduino Due connected board, and asked me to install the Due board drivers to program it (!!)

Then Example file flashed easily !!

Was there a documented problem with version 1.8.5 and Ubuntu usb ports ?

BR

After adding yourself to the dialout group, did you logout and login again?

The system only once checks which groups you belong to and that is at login.

1 Like