I compiled the example and connected my new CFA-635 to my laptop running Ubuntu 10.04 with the parameters
example-635 /dev/ttyUSB0 115200
and it ran without any problems.
Next, I tried the program on Ubuntu 12.04 with the same commands and got:
Serial_Init:: Open() failed
Could not open port "/dev/ttyUSB0" at "115200" baud.
After trying different things, I finally figured out that I it worked once I ran it as superuser:
sudo example-635 /dev/ttyUSB0 115200
I have no idea what causes the different behavior. I'll post if I find out whether there is a way to run it as a regular user on Ubuntu 12.04.
example-635 /dev/ttyUSB0 115200
and it ran without any problems.
Next, I tried the program on Ubuntu 12.04 with the same commands and got:
Serial_Init:: Open() failed
Could not open port "/dev/ttyUSB0" at "115200" baud.
After trying different things, I finally figured out that I it worked once I ran it as superuser:
sudo example-635 /dev/ttyUSB0 115200
I have no idea what causes the different behavior. I'll post if I find out whether there is a way to run it as a regular user on Ubuntu 12.04.
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.