
In Windows, the Device Manager shows which port name is assigned to the Pololu USB AVR
Programmer’s USB-to-TTL-serial adapter.
To determine the port name in Linux, type
ls /dev/ttyACM*
. The port name will be one of
the devices listed there. If there are only two ports, then the USB-to-TTL-serial adapter will
be
/dev/ttyACM1
(and the programming port will be
/dev/ttyACM0
). If you see more than
two ports, then you should look at the output from
dmesg
when you plug in the USB AVR
programmer to see which two ports are created; the second port is the USB-to-TTL-serial
adapter. In Linux, the port name depends on how many other devices are using the USB CDC
ACM driver to create virtual serial ports at the time the USB AVR Programmer is plugged
in.
The USB AVR Programmer’s two serial ports in Linux.
After determining the port name, you can use any serial port software to communicate on
that port.
There
are
many
free
terminal
programs
available,
including
[http://www.chiark.greenend.org.uk/~sgtatham/putty/]
(Windows
or
Linux),
[http://hp.vector.co.jp/authors/VA002416/teraterm.html]
(Windows),
and
[http://braypp.googlepages.com/terminal]
(Windows). Advanced users developing
scripted applications may prefer the free terminal program
. To use any of these terminal programs with the USB-to-TTL-serial adapter, you must
specify the port name determined above and your desired baud rate. The characters you
type will be transmitted on the programmer’s
TX
line. Bytes received by the programmer on
the
RX
line will be displayed on the screen by the terminal program.
PuTTY is a free Windows terminal program that can send and receive bytes on a serial port.
If you need to send and receive non-ASCII bytes, you can use the
[http://www.pololu.com/docs/0J23]
.
Pololu USB AVR Programmer User's Guide
© 2001–2010 Pololu Corporation
5. Communicating via the USB-to-TTL-Serial Adapter
Page 25 of 36