I am having trouble accessing Particle Identify on my new computer. A Dell XPS 13 running Ubuntu 16.04. I have my electon in listening mode, and am trying to connect using using the Particle CLI. However, I am getting a strange error.
Any suggestions? running particle setup says it “sees” a particle electron, so it can’t be that far off. I’d like to be able to read the SIM card ICCD from this device.
Thanks!
adam@adam-XPS-13-9370:~$ particle identify
Serial err: Error: Error: Permission denied, cannot open /dev/ttyACM0
Serial problems, please reconnect the device.
! serial: Serial problems, please reconnect the device.
adam@adam-XPS-13-9370:~$
Here’s a photo of the device connected to my computer. It is blinking blue in listening mode.
adam@adam-XPS-13-9370:~$ particle identify
Serial err: Error: Error: Permission denied, cannot open /dev/ttyACM0
Serial problems, please reconnect the device.
! serial: Serial problems, please reconnect the device.
I am going to check this problem is not electron specific. This particular unit is acting strangely (not holding listening mode)
The particle CLI installer should have installed a udev rule in /etc/udev/rules.d. “particle” should be in the filename. That’s what normally allows non-root users to access /dev/ttyACM0.
I attempted the latest recommendation from nrobinson2000 but still no luck.
adam@adam-XPS-13-9370:~$ sudo ls -la /dev/ttyACM0
[sudo] password for adam:
crw-rw---- 1 root dialout 166, 0 May 26 17:32 /dev/ttyACM0
adam@adam-XPS-13-9370:~$ particle identify
Serial err: Error: Error: Permission denied, cannot open /dev/ttyACM0
Serial problems, please reconnect the device.
! serial: Serial problems, please reconnect the device.
I'm still getting used to Ubuntu, so may be I could get your help. It sounds like from rickkas7 there should be a udev rule added. What is a udev rule?
Thank you for the recommendation. I see you've got a pretty cool contribution to the particle community.
I'm having trouble with the installation of po-util. I was hoping you could provide a recommendation.
adam@adam-XPS-13-9370:~$ bash <(curl -sL get.po-util.com)
Are you ready to install po-util?
Please be sure to follow any prompts or instructions
during the installation process.
ENTER / CTRL-C:
Continuing installation...
[sudo] password for adam:
curl: (23) Failed writing body (0 != 1919)
chmod: cannot access '/usr/local/bin/po': No such file or directory
/dev/fd/63: line 44: po: command not found
po-util has been installed on your system.
If you are unsure about how to start with po-util
please check out the quickstart guide:
https://docs.po-util.com/quick-start.html
What would cause it to not have access to '/usr/local/bin/po'?
Could it be a problem on my end? any recommendations?
> adam@adam-XPS-13-9370:~$ bash <(curl -sL get.po-util.com)
>
> Are you ready to install po-util?
> Please be sure to follow any prompts or instructions
> during the installation process.
> ENTER / CTRL-C:
>
> Continuing installation...
>
> [sudo] password for adam:
> curl: (23) Failed writing body (0 != 1919)
> chmod: cannot access '/usr/local/bin/po': No such file or directory
> /dev/fd/63: line 44: po: command not found
> po-util has been installed on your system.
> If you are unsure about how to start with po-util
> please check out the quickstart guide:
> https://docs.po-util.com/quick-start.html
>
> adam@adam-XPS-13-9370:~$
Error: Cannot find module ‘core-js/modules/es.array.index-of’
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/usr/local/lib/node_modules/particle-cli/dist/app/cli.js:3:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions…js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)