EasyManua.ls Logo

Point Grey Flea3 FL3-U3 - Serial Input Transaction (Receiving Data)

Point Grey Flea3 FL3-U3
173 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Point Grey Flea3 USB 3.0 Technical Reference 4 Input/Output Control
Step Action Register Input/Expected Output
4. Open a HyperTerminal window
and create a new connection,
setting the COM Port Settings
to match the current camera
settings obtained in step 3.
5. Enable the serial output
(transmit).
Set Register 0x70004 0x40000000
6. Verify transmit buffer ready.
Get Register 0x70004 0x40800000
7. Send four (4) characters to the
output buffer on the camera.
Set Register 0x70100
0x31323334
n ASCII = 1234
8. Verify that the transmit buffer
is currently storing 4 bytes
worth of characters.
Get Register 0x7000C
0xFF040000
n 0xFF = 255 bytes of buffer space
remaining
n 0x04 = 4 bytes currently stored and
waiting to be transmitted
9. Send the characters from the
output buffer to the PC’s serial
port.
Set Register 0x7000C
0xFF040000
n HyperTerminal should echo the
characters 1234
To send more than four characters, either:
n Repeat steps 7 through 9 above, and send characters in sets of four using register 0x70100; or
n Do a block write of all the characters using registers 0x70104 0x701FF (see the FlyCapture API
documentation for information on doing block transfers).
Although both types of writes to the transmit buffer may have to be 32-bit aligned, the number of characters
transmitted does not.Subsequent writes to the buffer will simply overwrite characters that were not transmitted
during a previous transmit.
The actual transmit buffer size may be larger than that reported in step 3 above. See SIO Buffers on previous page .
When this is the case, the “buffer space remaining that is reported in step 8 will not decrease until the actual buffer
space remaining is less than 255 bytes.
4.5.2 Serial Input Transaction (Receiving Data)
A general overview of the steps for a serial input transaction, where the camera is receiving data from a transmitting
serial port, is as follows:
1. In RECEIVE_BUFFER_STATUS_CONTROL register 70008h, read the valid data size of current receive buffer
RBUF_ST.
2. Write the input data length to RBUF_CNT field.
3. Read received characters from SIO_DATA_REGISTER 70100h.
4. To input more characters, repeat step 1.
Revised 9/27/2012
Copyright ©2011-2012 Point Grey Research Inc.
53

Table of Contents

Related product manuals