Point Grey Flea3 USB 3.0 Technical Reference 4 Input/Output Control
4.5.2.1 Example: Receiving Characters from a PC
This example describes how to send four (4) characters from the PC to the camera’s serial port. Microsoft’s
HyperTerminal program (Start Menu > All Programs > Accessories > Communications) is used to send the characters
received from the camera.The process detailed by the table below involves the user enabling receive, having
characters sent to the camera, checking to insure that the receive buffer is ready to be read, verifying that the
characters have arrived and then having them transferred to the data access registers before they are read out.
Step Action Register Input/Expected Output
1. Repeat steps 1 to 4 described in
Example: Transmitting Characters to
a PC (page 52)
2. Enable the serial input (receive).
Set Register 0x70004 0x80000000
3. Verify no receive data framing
errors. (page 54)
Get Register 0x70004
0x80000000
n 0x80040000 indicates a receive
data framing error, possibly due
to a noisy RS-232 line or
incorrect baud rate/port
settings.
n 0x80020000 indicates a receive
data parity error
4. Send four (4) characters to the input
buffer on the camera. For test
purposes, type the characters
“ABCD” in the HyperTerminal
window.
By default, characters will not be displayed
in the HyperTerminal window. To echo
typed characters to the screen, select File >
Properties > Settings tab > ASCII Setup…
5. Verify that the receive data buffer is
ready to be read.
Get Register 0x70004 0x80200000
6. Verify that the receive buffer is
currently storing 4 bytes worth of
characters, which are waiting to be
read.
Get Register 0x70008 0x04000000
7. Send four (4) characters from the
input buffer to the data access
register.
Set Register 0x70008 0x00040000
8. Verify that four (4) characters are
ready to be read from the data
access register.
Get Register 0x70008 0x00040000
9. Read the four (4) characters from
the data access register.
Get Register 0x70100
0x41424344
n Assumes input was “ABCD”
To receive more than four characters, either:
Revised 9/27/2012
Copyright ©2011-2012 Point Grey Research Inc.
54