Home

CJ - CAM User Manual OV528 Protocol

image

Contents

1. ACK AAOEh Command ID ACK Package ID Byte Package ID Byte counter 0 1 AAOFh 00h NAK Error Number 00h counter If the parameter is FFh firmware will respond immediately Interface Commands Details 1 Initial AA01h The host issues this command to configure the preview image size and color type After receiving this command the camera will send out an ACK command to the host if the configuration success Otherwise an NACK command will be sent out 03h 16 bit Color 06 JPEG 07 Preview Resolution 80 60 160 120 03h JPEG Resolution 80 64 160 128 03 320 240 640 480 07 2 Get Picture AA04h Host issues this command to get a picture from camera OTF Preview Picture JPEG Preview 03h Picture 3 Snapshot AA05h Camera keeps a single frame of JPEG still picture data in the buffer after receiving this command Snapshot Setting Picture Uncompressed 01h Picture Skip Frame the number of dropped frames can be defined before compression occurs 0 keeps the current frame 1 captures the next frame ect 4 Set Package Size AA06h Host will send out the size of JPEG still picture after receiving this command issued by camera Type of package is as follows ID Date Size Image Data Verify Code 2 byte 2 byte Package Size 6 byte 2 byte ID Package ID stars from zero for an image Data Size Size of image data in this package Verify Code Error detection c
2. CCGE ShenZhen Top Create Electronic Co Ltd Website www szccge cn alibaba com Tel 86 755 25937 185 85 CJ CAM User Manual OV528 Protocol OV528 PROTOCOL Serial Interface Single byte Timing Diagram RS232 single byte transmission consists of the start bit 8 data bits and the stop bit Start bit is fixed at 0 stop bit is fixed at 1 LSB is sent our first and is right after the start bit Please check the chart below Diagram 1 RS232 Single byte Timing Diagram 4 Single Byte Transmission r r z _ _ _ _ _ _ _ x a 3 5 gt N A a Command Timing Diagram One single command consists of 6 continuous single bytes Please find the example of SYNC AA0D00000000h command Diagram 2 RS232 SYNC Command Timing SYNC 4 SYNC Command gt i AAh ODh H 00h 7 00h H 00h 7 00h Single Byte Command Set Camera can support 11 commands for interfacing to host as following No Command Command ID Parameter 1 Parameter Parameter 3 Parameter 4 2 1 Initial AA01h 00h Color Preview JPEG Resolution Setting Resolution Get Picture _ AAOah___ Get Setting 00h Snapshot Snapshot Setting Skip Frame Skip Frame low byte high byte 4 Set Package AAO6h 08h Package Package Size 00h Size Size high byte low byte e Res Aah AROS Pa AAOAh Date Type Length byte Length byte 1 Length byte 2 0 a fene RADDA 00h 10
3. at most 3 Initial Get Picture Snapshot Set Baud Rate Reset Power down Command Initial AA01 OO xx xx xx ACK AA 0E 01 xx 00 00 Get Picture AA 04 xx 00 00 00 ACK AA OE 04 xx 00 00 AA 05 xx xx xx 00 ACK Set Baud Rate AA 07 xx xx 00 00 Reset AA 08 xx 00 00 00 Power down AA 09 xx 00 00 00 ACK AA 0E 07 xx 00 00 ACK AA 0E 08 xx 00 00 ACK AA OE 09 xx 00 00 4 Getting a Snapshot through RS232 Please make assure that connection is already made before the following communication 4 1 JPEG Snapshot Picture ACK AA OE 01 xx 00 00 ACK AA OE 06 xx 00 00 ACK AA OE 05 xx 00 00 ACK AA OE 04 xx 00 00 Data snapshot picture AA 0A 01 mie o Image Data Package 512 bytes ID 0000h Image Data Package 512 bytes ID 0001h The Last Image Data Package Note xx Don t care Image size returned Remark 1 xx any number 2 image size returned 4 2 Uncompressed Snapshot Picture Initial preview VGA AA 01 00 06 07 07 ACK F AA OE 01 xx 00 00 napsh uncompressed picture AA 05 01 00 00 00 ACK AA OE 05 xx 00 00 Get Picture snapshot picture AA 04 01 00 00 00 ACK AA OE 04 xx 00 00 Data snapshot picture AA 0A 01 Image Data whole picture AA OE 0A xx 00 00 Note xx Don t care Image size returned Remark 1 xx any number 2 image size returne
4. d 5 Getting a preview Picture through RS232 Please make assure that connection is already made before the following communication 5 1 JPEG Preview Picture ACK AA OE 01 xx 00 00 ACK AA OE 06 xx 00 00 operant ACK AA OE 04 xx 00 00 Data JPEG preview picture AA DA 05 1 frame tH2 SE R ug ie f 2 z 1 ell g Remark 1 xx any number 2 image size returned 5 2 Preview un impressed image tn ACK AA OE 01 xx 00 00 ACK AA OE 04 xx 00 00 Data preview picture 1 frame AA 0A 02 Image Data whole picture e A Note xx Don t care Image size returned Remark 1 xx any number 2 image size returned
5. is command 10 ACK AAOEh This command indicates the success of the last operation After receiving any valid command ACK command must be sent out except when getting preview data The host can issue this command request image data package with desired package ID after receiving Data command from camera and send this command with package ID OFOFh when finishing with receiving data package Note Command ID is 00h when host requesting image data package Command ID The command with that ID is acknowledged by this command ACK Counter Not in use Package ID For acknowledging Data Command these two bytes represent the requested package ID While for acknowledging other commands these two bytes are set to 00h 11 NAK AAOFh This command shows corrupted transmission or unsupported features NAK Counter Not in use Error Number Please read the following chart Command Protocol 1 SYNC Command SYNC AA 0D 00 00 00 00 ACK AAOE OE xx 00 00 SYNC AA 0D 00 00 00 ACK AA OE OD xx 00 00 2 Make connection with camera Host issues SYNC baud rate 9600bps to await ACK from camera usually an ACK command is received after sending 25 times of SYNC command SYNC AA OD 00 00 00 00 SYNC AA OD 00 00 00 00 SYNC AA OD 00 00 00 00 Max 60 times SYNC AA 0D 00 00 00 00 ACK AA OE OD xx 00 00 SYNC AA OD 00 00 00 00 ACK AA OE OD xx 00 00 Note SYNC commands are 60 times
6. ode equals to the lower byte of sum of the whole package data except the verify code field The higher byte of this code is always zero i e verify code low byte sum byte 0 to byte N 21 Note As the transmission of uncompressed image is not the package mode it is not necessary to set the package size for the uncompressed image 5 Set Baud Rate AA07h Host issues this command to set camera s baud rate Camera auto detects the baud rate issued by host and keep the baud rate to communicate with host reconfiguration should be made if power off The baud rates were supported by camera as follows Baud Rate 14 7456MHz 2 2 divider 1 2 1 divider 1 S nd S ng E ees 6 Reset AA08h Reset Setting 00h Reset the whole system Camera will reboot and reset all registers and state machine Reset state machine only 7 Power down AAOQh Camera will go into sleep mode after receiving this command and get resumed after sending out an ACK against SYNC command issued by host 8 Data AAOAh The type and size of image data prepared for transmitting out to host would be advised to host when camera issuing this command Data Type Snapshot Picture JPEG Picture Data Length these 3 bytes represent the length of Snapshot Picture Preview Picture and JPEG Preview Picture 9 SYNC AAODh Either the host or the camera can issue this command to make connection An ACK command must be sent out after receiving th

Download Pdf Manuals

image

Related Search

Related Contents

Read Instructions - JR International  Module Droit  Février 2009 Version 29 Juillet 2009  ECO Plus - Manual de garantía  Eaton EX EXB 1000/1500  Service Bulletin - DriveAccord.net  User`s Manual  Philips Spiral 929689628308  Manual de instalación - Software Engineering Tutor  Bluetooth Enlarging Meter User Manual  

Copyright © All rights reserved.
Failed to retrieve file