I recently started working with connecting my Arduino Uno to my raspberry pi in serial so I could get sensor reading onto my web server. I started working with the serialport library of nodejs, and it works fine in the terminal.
My problem is, all of a sudden, the tty port 'ttyACM0' wasn't recognized by the terminal. Don't get me wrong, I checked and it was listed in the /dev folder, but if I tried to just list it and nothing else, or to do anything else with it, the terminal just told me there is no such file or directory.
If anyone could point me in the right direction on how to solve this, it would be greatly appreciated.
The error message in the raspberry pi just says that there is no ttyACMO. If I do ls /dev/tty* it is shown but if I do cd /dev and then ls ttyACMO it tells me there is no file.
If I try to edit it it makes a new file, but for other tty files it just tells me that I cannot edit a device file.
Haha I had this happen to me also, your next issue might be the one I also faced with my Pi interface, the number 0 can sometimes increase to 1 then 2 when your Arduino resets (I'm working with a Due). Here are two references that helped me out: