Home

CAM-VGA100-User-Manual V2-0

image

Contents

1. The module will keep using the detected baud rate until physically power off 5 1 Baudrate Divider Baudrate 14 7456MHz 2 x 2nd Divider 1 2 x 1st Divider 1 Baudrate 1 279 Baudrate 1 ane Divider Divider Divider Divider 7200 bps ffh Oih 28800 3fh Oih bps 9600 bps bfh Oih 38400 2fh Oih bps 14400 bps 7fh Oih 57600 1fh Oih bps 19200 bps 5fh Oih 115200 ofh Oih bps 6 Reset AAO8h The host reset CAM VGA100 by issuing this command 6 1 Reset Type 00h resets the whole system CAM VGA100 will reboot and reset all registers and state machines 01h resets state machines only 7 Power Off AAOQh CAM VGA100 will go into sleep mode after receiving this command SYNC command AAODh must be sent to wake up CAM VGA100 for certain period until receiving ACK command from CAM VGA100 8 Data AAOAh CAM VGA100 issues this command for telling the host the type and the size of the image data which is ready for transmitting out to the host 8 1 Data Type Snapshot Picture Oih Preview Picture 02h JPEG Preview 05h Picture 8 2 Length These three bytes represent the length of data of the Snapshot Picture Preview Picture or JPEG Preview Picture 9 SYNC AAODh Either the host or the CAM VGA100 can issue this command to make connection An ACK command must be sent out after receiving this command CAM VGA100 camera with JPEG compression Page 8 10 06 2005 Round Solutions GmbH amp Co KG Tel 49 6103 96051
2. EEPROM provides a command based interface to external host via RS 232 gt UART 115 2Kbps for transferring JPEG still pictures or 160x128 preview 8bpp with 0 75fps gt On board OmniVision OV7640 8 VGA color sensor gt Built in JPEG CODEC for different resolutions gt Built in down sampling clamping and windowing circuits for VGA QVGA 160x120 or 80x60 image resolutions gt Built in color conversion circuits for 2 bit gray 4 bir gray 8 bit gray 12 bit RGB 16 bit RGB or standard JPEG preview images gt No external DRAM required System Configuration 1 Camera Sensor The CAM VGA100 module uses OmniVision OV7640 8 VGA color digital CameraChips with an 8 bit YCbCr interface 2 OV528 Serial Bridge The OV528 Serial Bridge is a JPEG CODEC embedded controller chip that can compress and transfer image data from CameraChips to external device The OV528 takes 8 bit YCbCr 422 progressive video data from an OV7640 8 CameraChip The camera interface synchronizes with input video data and performs down sampling clamping and windowing functions with desired resolution as well as color conversion that is requested by the user through serial bus host commands The JPEG CODEC can achieve higher compression ratio and better image quality for various image resolutions CAM VGA100 camera with JPEG compression Page 2 10 06 2005 Round Solutions GmbH amp Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww rou
3. GmbH amp Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com round K solutions Specialists in M2 M Communications 5 Getting JPEG preview pictures video for RS232 Make sure connection is made before the following communication 5 1 JPEG Preview Picture Initial JPEG preview VGA AA 01 00 07 07 07 ACK AA OE 01 xx 00 00 Set Package Size 512 bytes size AA 06 08 00 02 00 ACK AA OE 06 xx 00 00 Get Picture JPEG preview picture AA 04 05 00 00 00 ACK AA OE 04 xx 00 00 Data JPEG preview picture ACK AA 0A 05 package ID 0000h AA OE 00 00 00 00 Image Data Package ACK package ID 0001h AA OE 00 00 01 00 Image Data Package 512 bytes ID 0001h The Last Image Data Package ACK package ID FOFOh Note AA 0E 00 00 FO FO xx Don t care Image size returned by C328 CAM VGA100 camera with JPEG compression Page 13 10 06 2005 Round Solutions GmbH amp Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com round K solutions 5 2 Preview Picture uncompressed preview picture Initial AA 01 00 06 07 07 ACK AA OE 01 xx 00 00 Get Picture preview picture AA 04 02 00 00 00 ACK AA OE 04 xx 00 00 Data preview picture 1 frame AA 0A 02 Image Data whole picture Note xx Don t care Image size returned by C3
4. a Snapshot for RS232 Initial JPEG preview VGA AA 01 00 07 07 07 ACK AA OE 01 xx 00 00 Set Package Size 512 bytes size AA 06 08 00 02 00 ACK AA OE 06 xx 00 00 Snapshot compressed picture AA 05 00 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 ACK AA 0A 01 package ID 0000h AA OE 00 00 00 00 Image Data Package 512 bytes ID 0000h ACK package ID 0001h AA OE 00 00 01 00 Image Data Package 512 bytes ID 0001h The Last Image Data Package ACK package ID FOFOh Note AA OE 00 00 FO FO xx Don t care Image size returned by C328 CAM VGA100 camera with JPEG compression Page 11 10 06 2005 Round Solutions GmbH amp Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com round K solutions Specialists in M2 M Communications 4 2 Snapshot Picture uncompressed snapshot picture Initial preview VGA AA 01 00 06 07 07 ACK AA OE 01 xx 00 00 Snapshot 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 Data snapshot picture AA 0A 01 Image Data whole picture AA OE OA xx 00 00 Note xx Don t care Image size returned by C328 CAM VGA100 camera with JPEG compression Page 12 10 06 2005 Round Solutions
5. 0 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com Communications round f solutions Specialists in M2 M ACK AAOEh This command indicates the success of last operation After receiving any valid command ACK command must be sent out except when getting preview data The host can issue this command to request image data package with desired package ID after receiving Data command from CAM VGA100 The host should send this command with package ID FOFOh after receiving a package to end the package transfer Note that the field command ID should be OOh when request image data package 10 1 Command ID The command with that ID is acknowledged by this command 10 2 ACK Counter No use 10 3 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 indicates corrupted transmission or unsupported features 11 1 NAK Counter No use 11 2 Error Number Picture Type Error Oih Parameter Error Obh Picture Up Scale 02h Send Register Timeout Och Picture Scale Error 03h Command ID Error Odh Unexpected Reply 04h Picture Not Ready Ofh Send Picture Timeout O5h Transfer Package Number 10h Error Unexpected Command 06h Set Transfer Package Size 11h Wrong SRAM JPEG Type Error 07h Command Header Error FOh SRAM JPEG Size Error 08h Command Length Error Fih Picture Format E
6. 28 CAM VGA100 camera with JPEG compression Page 14 10 06 2005 Round Solutions GmbH amp Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com Specialists in M2M Communications
7. Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com Command Set The CAM VGA100 module supports total 11 commands for interfacing to host round f solutions Specialists in M2 M as following Command ID Parameter1i Parameter2 Parameter3 Parameter4 Number Initial AAOth 00h Color Type Preview JPEG Resolution Resolution Get Picture AA04h Picture Type 00h 00h 00h Snapshot AA05h Snapshot Skip Frame Skip Frame 00h Type Low Byte High Byte Set AAO6h 08h Package Size Package Size 00h Package Low Byte High Byte Size Set AAO7h ist Divider 2nd Divider 00h 00h Baudrate Reset AAO8h Reset Type 00h 00h xxh Power Off AA09h 00h 00h 00h 00h Data AAOAh Data Type Length Byte Length Byte Length Byte 0 1 2 SYNC AAODh 00h 00h 00h 00h ACK AAOEh Command ID ACK counter 00h 00h Package ID Package ID Byte 0 Byte 1 NAK AAOFh 00h NAK counter Error 00h Number If the parameter is OxFF the command is a special Reset command and the firmware responds to it immediately CAM VGA100 camera with JPEG compression Page 5 10 06 2005 Round Solutions GmbH amp Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com Communications round K solutions Specialists in M2 M Communications 1 Initial AAO1h The host issues this command to configure the preview image size and
8. color type After receiving this command the module will send out an ACK command to the host if the configuration success Otherwise an NACK command will be sent out 1 1 Color Type CAM VGA100 can support 7 different color types as follow 2 bit Gray Scale Oih 4 bit Gray Scale 02h 8 bit Gray Scale 03h 12 bit Color 05h 16 bit Color 06h JPEG 07h 1 2 Preview Resolution 80x60 Oih 160x120 03h 1 3 JPEG Resolution Since the Embedded JPEG Code can support only multiple of 16 the JPEG preview mode can support following image sizes It is different from normal preview mode 80x64 Oih 160x128 03h 320x240 O5h 640x480 07h CAM VGA100 camera with JPEG compression Page 6 10 06 2005 Round Solutions GmbH amp Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com round f solutions Specialists in M2 M 2 Get Picture AA04h AOT The host gets a picture from CAM VGA100 by sending this command 2 1 Picture Type Snapshot Picture Oih Preview Picture 02h JPEG Preview 05h Picture 3 Snapshot AAO5h CAM VGA100 keeps a single frame of JPEG still picture data in the buffer after receiving this command 3 1 Snapshot Type Compressed Picture 00h Uncompressed Oih Picture 3 2 Skip Frame Counter The number of dropped frames can be defined before compression occurs 0 keeps the current frame 1 captures the next frame and so forth 4 Set Package Size AAO6h The host issu
9. es this command to change the size of data package which is used to transmit JPEG image data from the CAM VGA100 to the host This command should be issued before sending Snapshot command or Get Picture command to CAM VGA100 It is noted that the size of the last package varies for different image 4 1 Package Size The default size is 64 bytes and the maximum size is 512 bytes Byte0 ByteN ID Data Size Image Data Verify Code 2 bytes 2 bytes Package size 6 bytes 2 bytes lt 4 Package Size __ gt ID gt Package ID starts from zero for an image Data Size gt Size of image data in the package Verify gt Error detection code equals to the lower byte of sum Code of the whole package data except the verify code field The higher byte of this code is always zero i e verify code lowbyte sum byte 0 to byte N 2 Note As the transmission of uncompressed image is not in package mode it is not necessary to set the package size for uncompressed image CAM VGA100 camera with JPEG compression Page 7 10 06 2005 Round Solutions GmbH amp Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com round f solutions Specialists in M2 M Set Baudrate AA07h Set the CAM VGA100 baud rate by issuing this command As the module can auto detect the baud rate of the incoming command host can make connection with one of the following baud rate in the table
10. ndsolutions com Communications round K solutions Specialists in M2 M Communications 3 Program EEPROM A serial type program memory is built in for CAM VGA100 to provide a set of user friendly command interfacing to external host Board Layout RS 232 J1 EEPROM J1 3 3V Tx Rx GND Binim OV7640 8 OV528 Top View Bottom View Figure 2 Serial interface pin assignment Serial Interface 1 Single Byte Timing Diagram A single byte RS 232 transmission consists of the start bit 8 bit contents and the stop bit A start bit is always 0 while a stop bit is always 1 LSB is sent out first and is right after the start bit lt q Single Byte Transmission p A DBD yya D oo o gt gt o gt oo o gt gt fo 32 0 FPF NW FW DA TD Figure 3 RS 232 single byte timing diagram 2 Command Timing Diagram A single command consists of 6 continuous single byte RS 232 transmissions The following is an example of SYNC AAODOOO00000h command CAM VGA100 camera with JPEG compression Page 3 10 06 2005 Round Solutions GmbH amp Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com round r solutions Specialists in M2 M Communications tHH SYNC Command _ gt Single Byte Figure 4 RS 232 SYNC command timing diagram CAM VGA100 camera with JPEG compression Page 4 10 06 2005 Round Solutions GmbH amp
11. round K solutions Specialists in M2 M Communications CAM VGA100 User Manual Release Note 1 Jan 28 2004 official released v1 0 2 Feb 24 2004 official released v1 1 Fix the definition of verify code Fix the bug of unable jump to power save mode Fix the incorrect connection speed after wake up from power save mode 3 Apr 24 2004 official released v2 0 Add auto baud rate detection Add support of 9600bps 19200bps 38400bps e Disable the 8 bit colour for uncompressed picture CAM VGA100 camera with JPEG compression Page 1 15 01 2005 Round Solutions GmbH amp Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com round i solutions Specialists in M2M General Description The CAM VGA100 module is a highly integrated serial camera board that can be attached to a wireless or PDA host performing as a video camera or a JPEG compressed still camera It provides a serial interface RS 232 and JPEG compression engine to act as a low cost and low powered camera module for high resolution serial bus security system with GPRS GSM modules or PDA accessory applications OV7640 8 OV528 VGA Image 7 Compression Sensor Engine EEPROM C328 camera module Program Features Figure 1 System block diagram gt Small in size low cost and low powered 3 3V camera module for high resolution serial bus security system or PDA accessory applications gt On board
12. rror 09h Send Picture Error F5h Picture Size Error Oah Send Command Error ffh CAM VGA100 camera with JPEG compression Page 9 10 06 2005 Round Solutions GmbH amp Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com Communications round K solutions Specialists in M2 M Communications Command Protocol 1 SYNC Command SYNC a AA OD 00 00 00 00 os ACK C328 AA OE OD xx 00 00 SYNC AA OD 00 00 00 00 ACK AA OE OD xx 00 00 2 Make Connection with CAM VGA100 Send the SYNC command at 14400bps until receiving ACK command from CAM VGA100 usually an ACK command is receive after sending 25 times of SYNC command This must be done after power up SYNC AA OD 00 00 00 00 SYNC AA OD 00 00 00 00 SYNC AA OD 00 00 00 00 Max 60 times j SYNC AA OD 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 CAM VGA100 camera with JPEG compression Page 10 10 06 2005 Round Solutions GmbH amp Co KG Tel 49 6103 960510 Fax 49 6103 960509 info roundsolutions com wwww roundsolutions com round g solutions Specialists in M2 M Communications 3 Initial Get Picture Snapshot Set Package Size Set Baudrate and Power Off Command SYNC Get Picture Snapshot Set Package Size Set Baudrate Reset Power Off Make sure connection is made before the following communication 4 1 JPEG Snapshot Picture 4 Getting

Download Pdf Manuals

image

Related Search

Related Contents

RB-RBL-RBM RC-RCL-RCM  View - PAHO/WHO  Attachment B - Roadsafe LLC  MARENIUS  第6号 - 横浜市  Salora DVD363HDMI User's Manual  mAnuAl - QC Supply      東芝水銀庭園灯取扱説明書  

Copyright © All rights reserved.
Failed to retrieve file