Configuring the Camera
Basler A400k
4-49
DRAFT
4.3.1.1 Error Checking and Responses
ACK/NAK
When the camera receives a frame, it checks to see if the order of the bytes in the frame is correct.
If the FTF field indicates that the frame includes a BCC, the camera checks to see if the XOR sum
of the relevant frame fields matches the block check character. The camera also checks to see if
the number of bytes in the data field is equal to the number specified in the DataLen field.
If all checks are correct, an ACK is sent to the host. If any check is incorrect, a NAK is sent.
Byte Time-outs
The camera checks the time between the receipt of each byte in the frame. If the time between
any two bytes exceeds 0.5 seconds, the camera enters a “garbage state” and discards any more
incoming bytes. The camera remains in this state until it sees a new BFS.
Read Commands
In the normal case, when a read command is sent to the camera, the camera responds with an
ACK and a returned frame. The returned frame will contain the data requested.
If the camera receives a read command with an unknown or invalid address in the Address field
of the frame, it will respond with an ACK but will send no frame.
If the host sends a read command and gets no ACK/NAK, the host can assume that no camera is
present or the camera is in a “garbage state” for some reason.
If the host sends a read command and gets an ACK/NAK but does not receive a frame within
500 ms, the host can assume that there was a problem with the read command.
Write Command
In the normal case, when a write command is sent to the camera, the camera responds with an
ACK.
If the camera receives a write command with an unknown or invalid address in the Address field
of the frame, it will respond with an ACK but will not perform the write.
After a write command has been issued by the host, the host can verify the write by issuing a
corresponding read command and checking that the returned data is as expected (unless the
address is “write-only”). The host can read the
Camera Status fields in the Camera Status inquiry
) and check the returned data to see if an error condition has been detected.
L
For many of the write commands listed in the tables on pages
through
,
only data within a specified range or a specified group of values is valid. If the data
in a write command is not within the allowed range or specified group of allowed val-
ues, the camera
will not
execute the write command.
Содержание A400K
Страница 1: ...Basler A400k USER S MANUAL Document Number DA00062410 Release Date 27 September 2007 ...
Страница 4: ......
Страница 25: ...Camera Interface Basler A400k 2 9 DRAFT Figure 2 5 A402k Camera Frame Grabber Interface ...
Страница 26: ...Camera Interface 2 10 Basler A400k DRAFT Figure 2 6 A403k Camera Frame Grabber Interface ...
Страница 27: ...Camera Interface Basler A400k 2 11 DRAFT Figure 2 7 A404k Camera Frame Grabber Interface ...
Страница 52: ...Camera Interface 2 36 Basler A400k DRAFT ...
Страница 154: ...Configuring the Camera 4 54 Basler A400k DRAFT ...
Страница 168: ...Troubleshooting 6 10 Basler A400k DRAFT ...
Страница 172: ...Feedback iv Basler A400k DRAFT ...
Страница 176: ...Index viii Basler A400k DRAFT ...