Appendix F Serial Commands Serial Commands Serial Command Syntax = Required argument. Replace appropriately. For example: -u becomes -u av where av replaces DB_User_name . | = Mutually exclusive arguments. Choose one from the list. { } = Used with | to specify a list of choices for an argument. [ ] = Optional parameter. Important: Unless otherwise stated, commands will respond with !OK on success and !ERROR on failure. AUTOCAL [-exp={0|1}] [-expval={60-100000}] [-gain={0|1}] [-gainval ={0-100}] [-focus={0|1}] [-focval{0-9999}] Initiates camera calibration of gain, exposure, and focus. Each parameter is independent. Ranges are device-dependent.
-exp enable=1 or disable=0 autocalibrate exposure. -expval value of exposure in μs. -gain enable=1 or disable=0 autocalibrate gain. -gainval value of gain in percentage. -focus enable=1 or disable=0 autocalibrate focus -focval value of focus in mm. Example 1: Command: AUTOCAL Response: 0;4632;134;50;300 (gain=0, exposure=4632 μs, focus=134, min allowable focus=50, max allowable focus=300) Example 2: Command: OFFLINE Response: !OK Command: QUERYAUTOCAL Response: 0;4632;134;50;300 (Gain was 0.) Command: AUTOCAL -exp=1 -gain=0 -gainval=18 (Fixed gain at 18%.) Response: 18;3308;128;50;300 (Gain did not change and exposure has changed from 4632 μs to 3308 μs.) F-2 HAWK MV-4000 Smart Camera Guide