background image

 

 

Hawk Instruction Manual 

 

Document number 

Revision 

File name 

Date 

Page 

2015-07-22-05 

V1.1 

HK82x_IM_v1_1 

30

th

 Jul 2015 

10 of 14 

 

 

4  SERIAL COMMUNICATION (RS485) 

4.1 

Overview 

For version 2.7 of the Micro firmware, the Power on default settings for camera serial port are;

 

-

 

115200 baud 

-

 

1 start bit  

-

 

8 data bits 

-

 

1 stop bit 

 
UART message format from Host to camera 
 

Command 

Data 1 

Data 2 

........ 

Data n 

ETX 

Chk_Sum 

 

The first Byte is the command to the Microcontroller in the camera, following bytes contain data required by the 
command, and the ETX byte terminates the command. 0x50 is always used to terminate the command. An 
additional check sum byte may also be required to be sent by the host if check sum mode is enabled. 
 
UART message format from camera to Host 
 

Data 1 

Data 2 

........ 

Data n 

ETX 

Chk_Sum 

 

All or none of the above bytes may be sent in response to commands from the host depending on the commands 
sent by the host. 
 
An optional mode of operation is included in the firmware for command acknowledge. Once enabled the camera 
will respond to all commands send by the host. After the camera has received and processed the command from 
the host, a single command acknowledge byte will be sent at the end of transmission (ETX) i.e. should the host 
command require data to be sent from the camera then the ETX byte will be sent at the end of the requested 
data. 
 
Another optional mode of operation is included in the firmware is for check sum operation, this mode should only 
be used when the command acknowledge mode is enabled. Once the check sum mode is enabled the camera 
will only act upon commands that are received with the correct check sum byte sent at the end of the command 
packet. Note that if the check sum feature is not enabled check sum bytes may still be sent at the end of a 
command packet, the command will be processed and the check sum will be ignored. The check sum byte should 
be the result of the Exclusive OR of all bytes in the Host command packet including the ETX byte.  
 
When check sum mode is enabled data returned from the camera will include an echo of the checksum from the 
host command 
 
By default the camera will boot up with both command acknowledge and check sum operation disabled. 
 
It is intended that the camera be operated from a higher level perspective whereby complete UART messages or 
groups of UART messages are used to achieve required camera functionality. 
Bits in registers that have not been identified in the documentation should be ignored. 
 
Once a command has been received by the camera all sub sequent commands from the host will be ignored until 
the command has been processed. 
 

Содержание Hawk

Страница 1: ...0th Jul 2015 1 of 14 This document is the property of Raptor Photonics Limited and must not be copied shown or in any way be communicated to persons other than those requiring the information for the...

Страница 2: ...e Date Prepared Paul Carson Principal Engineer Raptor Photonics Ltd 22nd July 2015 Reviewed B Rolston CTO 30 07 15 Reviewed Approved Authorized DOCUMENT CHANGE RECORD Issue Date Name Pages sections af...

Страница 3: ...ign 8 3 1 1 Power Input 8 3 1 2 Communications Interface 8 3 1 3 Trigger Output 8 3 1 4 Analogue Video out 8 3 1 5 Iris Control 9 3 2 Functionality 9 3 2 1 Automatic Light Control ALC 9 4 SERIAL COMMU...

Страница 4: ...82x_IM_v1_1 30th Jul 2015 4 of 14 ACRONYMS ALC Automatic Light Control CCD Charge Coupled Device EEPROM Electrically Erasable Programmable Read Only Memory FPGA Field Programmable Gate Array LSB Least...

Страница 5: ...IM_v1_1 30th Jul 2015 5 of 14 1 SCOPE This document details the design for the Hawk 829 mono PAL colour PAL NTSC cameras P N HK829 AP HK829 AC HK247 AE Details of the camera electrical interfaces and...

Страница 6: ...range 3 In Out Trigger Red 4 GND Brown 5 In 12V Black 6 Reserved Grey 7 Reserved Violet 8 O Reserved Blue 9 GND Green Figure 2 9 Pin MDM connector 2 1 2 Video Output SMA The camera has a 50 characteri...

Страница 7: ...ile Figure 3 Mechanical external dimensions Notes Drawing shown with CS mount ring fitted to camera CS mount has a flange focal distance of 12 50mm From the above drawing the estimated focal plane of...

Страница 8: ...be altered TIA EIA 485A Standard Compliant 120 termination 3 1 3 Trigger Output The trigger output has a 51 source impedance with a 3 3V pulse synchronised to the video out Vertical Sync pulse a HIGH...

Страница 9: ...red with the average video in each video field to determine the required digital gain to reach equilibrium If ALC is disabled digital gain remains fixed at the last level 2 Auto EXP Auto EXP will auto...

Страница 10: ...TX i e should the host command require data to be sent from the camera then the ETX byte will be sent at the end of the requested data Another optional mode of operation is included in the firmware is...

Страница 11: ...command packet received camera timed out waiting for end of packet Command not processed 0x52 ETX_CK_SUM_ERR Check sum transmitted by host did not match that calculated for the packet Command not proc...

Страница 12: ...ate 0x4F 0xYY 0x50 Default 0x16 YY Bit 6 1 to enable check sum mode YY Bit 4 1 to enable command ack YY Bit 1 0 to Hold FPGA in RESET YY Bit 0 1 to enable EEPROM communications YY Bits 7 5 3 2 reserve...

Страница 13: ...Default YY Bit 7 0 Gamma Disabled Bit 3 Bit 2 Bit 1 Bit0 of YY 0 0 0 0 Disabled Default 0 0 1 0 Full White 0 0 1 1 White 0 1 0 0 White 1 0 0 0 Black 1 0 0 1 Vertical Stripes Get internal temperature 0...

Страница 14: ...o camera RX d bytes from camera Get Micro version 0x56 0x50 0x02 0x07 V2 7 4 5 3 Read internal temperature Command TX bytes to camera RX d bytes from camera Get internal temperature 0x53 0xE0 0x01 0x7...

Отзывы: