NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Microcontroller Programming » /dev/ttyUSB0 "should work"--but doesnt! Help :)

July 19, 2009
by BenjaminLynus
BenjaminLynus's Avatar

Just received my kit today, everything has been working great, except a few kinks with my Ubuntu distro. I checked the directory /dev/ for ttyUSB0, and it's there, but when I try to run "ttyUSB0" terminal returns "command not found".

Thanks for the help!

July 19, 2009
by BenjaminLynus
BenjaminLynus's Avatar

NVM.. I didn't realize that the last line after the command "dmesg" is: "usb 2-2: pl2303 converter now attached to ttyUSB0".

I guess it helps sometimes to pay attention.

Me = 0 ; Computer = 1

We will get even soon! :D

January 19, 2010
by treymd
treymd's Avatar

A note here.. If you are being a good linux user and not running as root, /dev/ttyUSB0 will not be writeable. Change to root momentarily and do something like:

chmod a+rw /dev/ttyUSB0

and then you should be able to communicate with your MCU without problems.

I know that there is a more elegant way of making the port r/w on a more permanent basis, but this was the easy way.

Post a Reply

Please log in to post a reply.

Did you know that inductors try to keep their current constant over short periods of time? Learn more...