Pololu Orangutan SVP User Manual
Page 28

the second port is the USB Communication Port. 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 Orangutan SVP is plugged in.
To determine the port name in Mac OS X, type
ls /dev/tty.usb*
. There should be three entries for the
Orangutan SVP, and the USB Communication Port should be the second one.
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
(Windows or Linux),
(Windows), and
(Windows). To use any of these terminal programs, you must
specify the port name determined above.
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
.
Advanced users developing scripted applications may prefer the free terminal program
(Windows or Linux).
You can also write a computer program to use the serial port. The freely available Microsoft .NET framework for
Windows contains a SerialPort class that makes it easy to read and write bytes from a serial port. Here is some
example C# .NET code that uses the USB Communication Port:
// Choose the port name and baud rate.
// Port Name must be determined from the Device Manager.
// Baud rate is irrelevant for the USB Communication Port.
System.IO.Ports.SerialPort port = new System.IO.Ports.SerialPort("COM4", 115200);
// Connect to the port.
port.Open();
// Set the DTR line to 1.
port.DtrEnable = true;
// Transmit two bytes to the AVR: 0x61, 0x62
port.Write(new byte[]{0x61, 0x62}, 0, 2);
// Wait for a byte to be received on the RX line.
int response = port.ReadByte();
// Show the user what byte was received.
MessageBox.Show("Received byte: " + response);
Pololu Orangutan SVP User's Guide
© 2001–2012 Pololu Corporation
8. Using the USB Communication Port
Page 28 of 37