I have been trying to use my Linux Mint computer with Visual Studio Code and have not been able to get the Photon 2 to connect and flash projects to it.
When I run $ lsusb
Bus 001 Device 002: ID 2b04:c020 Particle P2
When I try to flash the project it states it can not find the device.
I also tried to open the serial monitor and it "failed to open the serial port" It shows under the port list /dev/ttyACM0 - Particle
It appears that the computer sees the Photon 2, it just will not allow for the communications.
I added the rules to udev and no luck so far even after a shutdown and restart.
Looks like permissions are still under root only
MINT-LAPTOP:~$ ls -l /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Aug 8 15:16 /dev/ttyACM0
jake@JAKE-MINT-LAPTOP:~$ id
uid=1000(jake) gid=1000(jake) groups=1000(jake),4(adm),20(dialout),24(cdrom),27(sudo),30(dip),46(plugdev),114(lpadmin),134(sambashare)
I have tried to add the permissions from
sudo usermod -aG dialout $ jake
That has not been working. I found a thread in the Linux Mint Forum on this which says to use
sudo chown <username> /dev<device name eg. /dev/ttyACM0>
I have not been able to get that to work as I do not know what I need for device name. I will keep trying tonight.
I do not know what node I am on. I was able to use "screen" to monitor the serial port, so that is working. I will look at that link and try that. Thanks again for all the help!