| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The Processing serial library allows for easily reading and writing data to and from external machines. It allows two computers to send and receive data and gives you the flexibility to communicate with custom microcontroller devices, using them as the input or output to Processing programs. The serial port is a nine pin I/O port that exists on many PCs and can be emulated through USB.
All Platforms
If you're using a program to check to see if the serial port is working, then it won't be available to Processing. That means that if you're using HyperTerminal or whatever to see if your serial device is working, then you need to quit out of that application before using that port with Processing.
Serial.list() will only list the ports that are currently available. So if you have a program that's using the serial port that you want to use for your Processing sketch, it's not going to be available, or even listed.
Mac OS X
/dev/cu.USA28X21P1.1.
You'll probably have something similar. Don't mind the frightening names.
Linux
If you're having trouble getting things to run, i.e. the port menu stays grayed out or you get error message spew to the console when starting the application saying "Permission denied" and "No permission to create lock file", this is because you probably need to add yourself to both the uucp or lock groups so that processing can write to /var/lock so it doesn't get in a fight with other applications talking on the serial port.
Alan Kilian contributes this description:
It's important that you're in both groups, and that you completely log out and log back in again.
NOTE: In modern versions of Ubuntu (14.04, 16.04...) and derivatives, the group to add yourself must be "dialout" (at least, to communicate to Arduino UNO or similar, which is seen as a /dev/ttyACMx device)
| Back | FazBrowse Home | New Git URL |