Home

C6820 Enhanced JPEG Module User Manual

image

Contents

1. 36 Ch Ch aa Number of parameters Ch Ch Checksum Operation Mode Preview playback mode Parameter Command ZoiZoo 219218 417216 ZisZia 213712 711710 27216 2574 7372 Z Zo String Ch Ch aa 721220 0x00 Enable 0x01 Disable 719218 0x00 Oxff width of the font 717216 0x00 Oxff height of the font 715214213712 0x00 X coordinate of string 7112102978 0x00 Y coordinate of string 7176 0x00 Oxff Red 7524 0x00 Oxff Green 7372 0x00 Oxff Blue 2120 0x01 OxOb string length max 11 String ASCII code of the characters to display only capital letter is active Ch Ch Checksum Return from the JPEG Module 0x00 OK 0 01 Failed Example Stamp the string HELLO of that the font size is W 50 H 90 and the RGB ratio is 0 0 255 at the 160 150 of the picture Host Oxaa 10 36 9a aa Module 01 36 00 8b aa aa 00 50 5a 00 a0 00 96 00 00 ff 05 48 45 4c 4c df acaa Length of the return 1 byte Wait for Ok Command ID to 0x36 Return 0x00 OK Checksum Ox amp b Page 17 of 29 Rev 2 0 56 0x38 Sequence capture C6820 Enhanced JPEG Module USER MANUAL Parameter Command ID 0x38 Description Capture a number of pictures NOT for video clip Parameter Number of picture s 1 byte ID Command Oxaa 01 38 8d aa Operation Mode capture mode
2. 4140 Ch Ch aa 7120 Number of picture s Module 0x01 Oxff Ch Chp Checksum Return from the JPEG 0x00 0x01 Failed 0x02 USB mode 0x03 Mode error 0x04 Memory full RAM 0x05 Memory full Flash 0x06 External memory card write protect Example Host aa 01 le 73 aa aa 04 58 aa 01 38 8d 05 59 aa Wait for OK Set to take a chain of 5 pictures with a single snapshot Module 01 38 00 8c aa Length of the return I byte Command ID to 0x38 Return 0x00 OK Checksum 8 81 0x51 Set the resolution and the compression ratio for AVI ID 0x51 Description Set the resolution and the compression ratio for AVI Resolution 320 x 240 Default 640 x 480 Compression ratio 1x 45x Default 30x ID Command Oxaa 02 51 a7 aa Operation Mode Preview playback mode Parameter Command Oxaa 7372 2120 Ch Ch aa 7372 Resolution 0x00 320 x 240 Default 0x01 640 x 480 7170 Compression ratio 0x00 2 for 45x Default 0x 1d Ch Cho Checksum Return from the JPEG Module 0x00 OK 0 01 Failed Example Host 02 51 a7 Oxaa 00 13 67 aa Wait for OK Set 320 x 240 for the resolution and 20x for the compression ratio of the video Module 01 51 00 Length of the return I byte Command ID to 0x51 Return 0
3. 4 Y3Y2 YiYo Y35V 34 Y33Y32 Y31Y30 YY 28 File size Y Y25Y 24 Number of packets Y23Y22 YioYis Yi7Y16 Y isY i4 Y13Y12 YoYs Y5Y Y3Y2 Yo File name 0x01 Failed 0x02 USB mode 0x03 Mode error 0x09 File does not exist Example Download the file of that the ID is 3 from the JPEG Module Host Module aa 01 le 73 aa Oxaa 12 79 00 1a 7d 6e 00 1d 50 49 43 54 30 30 30 aa 03 57 aa 33 2e 41 56 49 02 aa Oxaa 02 79 cf aa Length of the return 18 bytes Oxaa 00 02 56 aa Command ID to 0x79 Wait for Response Return 0x001a7d6e File size 1736046 bytes Host ACK 01 79 00 ce aa Wait for Packet 0001 Host ACK 01 79 00 ce aa Wait for Packet 0002 Host ACK 01 79 00 ce aa Wait for Packet 0003 Host ACK 01 79 00 ce aa Download Completed 0 001 Number of packets 29 0 50494354303030332 415649 File name PICTOO03 AVI Checksum 0x02 Module 0xaa 00 01 File data 61434 bytes checksum 2 bytes aa Packet total size 0xf000 61440 bytes Module 0xaa 00 02 File data 61434 bytes checksum 2 bytes aa Packet total size 0xf000 61440 bytes 0xaa 00 Id File data 15894 bytes checksum 2 bytes aa Packet total size 0xf000 15900 bytes Page 22 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL 122 0x7a Delete the targeted file ID Ox7a Description Delete the targeted file Param
4. Yi Yo 4 Hardware Version YoYg Coach Version Y Ys Sensor Version XX HCE Version 0 01 Failed Example Request the revision numbers of the hardware COACH Sensor and HCE Host Oxaa 00 02 56 aa Wait for Response Module Oxaa 08 02 62 b0 03 9e 08 03 01 08 1c aa Length of the return 8 bytes Command ID to 0x02 Return 0x0702 Hardware ver 0x039e COACH Ver 0x08 Sensor Ver xx 0x0108 HCE Ver Checksum OxIc 3 0x03 Set the system clock ID 0x03 Description Set the system clock Parameter Year 2 bytes Month 1 byte Day 1 byte Hour 1 byte Minute 1 byte and Second 1 byte ID Command 07 03 5e aa Operation Mode Preview playback mode Parameter Command Y4Y Y Yo DjDo Hi Ho Mi Mig 150 Ch Ch aa Y3Y gt Y Yo Year in hex Month in hex D Do Day in hex H Hp Hour in hex Mi Mig Minutes in hex 190 Second in hex Ch Ch Checksum Return from the JPEG Module 0x00 OK 0x01 Failed Example Set the system clock to 2004 11 19 18 10 00 Host 07 03 5 aa Oxaa 07 44 Ob 13 12 0a 00 69 Wait for OK Module 01 03 00 58 aa Length of the return I byte Command ID to ACK 0x03 Return 0x00 OK Checksum 0 58 Page 12 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL 4 0x04 Reque
5. Oxff Transmission termination Operation of the Commands Operation Modes There are 3 operation modes ie Idle capture and playback mode The command should be operated at its relevant operation mode Some can be operated at either mode but some only effective at particular mode Below are some examples 1 system setup can be either mode 2 set picture parameter should be in capture mode 3 down load data should be in idle mode Details refer to the command Ox1e 30 Operation Sequence Some commands need to be sent in sequence before it can be executed Refer to the details in command description In addition if there is a mistake during command sending the host needs to resend the command otherwise it always Acks the fail message Page 9 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL Summary of Commands System Configurations ID in Dec ID in Hex Function 0 0x00 Restore factory configuration 1 0 01 Shutdown 2 0x02 Request the revision identification 3 0x03 Set the system clock 4 0x04 Resquest the system time 6 0x06 Snapshot configuration 30 Oxle Select the operation mode 31 Ox1f Request the current operation mode 159 Ox9f Select the Baud rate 176 OxbO Synchronization signal JPEG Capture ID in Dec ID in Hex Function 50 0x32 Set the pic
6. Every function to be performed by the JPEG Module is labeled with a command ID With the command ID the camera knows which function will be performed and what kind of parameter will be received in the following The format of ID command is shown in the following Format Fixed Sync Byte Length of the Command ID in Checksum Sync Byte Length of 5 bytes 8 bits parameter in unit of HEX 8 bits 8 bits 8 bits byte 8 bits Example Set the Oxaa 0x07 0x03 5 system clock As shown in the example the command ID is 0x03 setting the system clock and the size of the parameters in the following parameters is seven bytes Also checksum the lowest eight bits of 0xaa 0x07 0x03 Oxaa 0 15 Ox5e Parameter Command is a varied length command contains the parameters corresponding to the previous ID command such as date time need to set It is normally sent following the ID command If the size of the parameter contained in the ID command is zero no parameter command is required The format of parameter command is shown in the following Format Sync Byte Parameter variable Checksum Sync Byte 8 bits 8 bits 8 bits Example Set the Oxaa 0x07 Oxd5 0x04 Ox0c 0x11 0x36 0x00 0x87 Oxaa system clock 2005 04 12 11 54 00 ACK Command is a varied length command containing the acknowledgement and the results returned for the ID and parameter commands such as
7. 1 Mass storage mode Supported OS Win2000 XP ME Power DC 5V Page 3 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL Electrical Characteristics Operation at DC 5 0V No TV connect Condition Min Max Units Idle Peak downloading 164 168 mA Capture JPG Peak capturing 225 270 mA Capture AVI Peak recording 286 295 mA TV output Condition Min Max Units Idle Peak downloading 165 168 mA Capture JPG Peak capturing 226 272 mA Capture AVI Peak recording 286 300 mA Playback JPG 180 220 mA Playback AVI 195 225 mA Mechanical Dimension Main Board R1 0x4 Sensor Board Page 4 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL General Product Description Voltage Supply The external power supply must be connected to the camera and fulfill the following requirements e Nominal operating voltage DC 5 0V e Operation voltage range DC 4 5V 5 5 Sensor It is a CMOS type image sensor of Mega pixels The flexible PCB connector is used to connect sensor board to main board Photo Capture The JPEG Module supports 1280 x 960 640x480 resolution and different compression ratios from 1x 45x Video Capture The JPEG Module features unlimited video capturing dependent on the memory size with two optional resolutions 640 x 480 30fps 320 x 240 30fps in AVI The JPEG Module provides different compression
8. Operation Mode playback mode Parameter Command 4140 Ch Ch aa 7120 Direction 0x00 Previous 0 01 Next Ch Cho Checksum Return from the JPEG Module 0x00 OK 0 01 Failed 0x02 USB mode 0x03 Mode error Example Select the next file Host 01 c9 le aa Oxaa 01 55 aa Wait for OK Module 0 01 c9 00 1e aa Length of the return I byte Command ID to ACK 0xc9 Return 0x00 OK Checksum Oxle 202 0xca Select a particular file ID Oxca Description Select a particular file Parameter File ID ID Command Oxaa 02 ca 20 aa Operation Mode Playback mode Parameter Command Oxaa 7372 Z Zo Ch Ch aa 7372 7120 File ID 0 0000 Oxffff The upper limit depend on the memory size Ch Ch Checksum Return from the JPEG Module 0x00 0 01 Failed 0x02 USB mode Example Select the file of that the ID is 20 Host Oxaa 02 ca 20 aa Oxaa 00 14 68 aa Wait for OK Module 0 01 CA 00 1F AA Length of the return I byte Command ID to ACK Oxca Return 0x00 OK Checksum 0 1 Page 26 of 29 Rev 2 0 1 Example flow of functions a Capture a JPEG 1 synchronization 2 select capture JPG Mode 3 capture a JPG b Capture a video clip 1 synchronization 2 select video mode 3 start video 4 stop video Transits a JPG to host 1 synchroni
9. Set 1280 x 960 for the picture resolution and 45x for the compression ratio Host Oxaa 02 32 88 aa 00 2c 80 aa Wait for OK Module 01 32 00 87 aa Length of the return I byte Command ID to ACK 0x32 Return 0x00 OK Checksum 0x87 Page 15 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL 51 0x33 Request the current Luminance ID 0x33 Description Request the current Luminance Parameter n a ID Command Oxaa 00 33 87 aa Operation Mode Preview playback mode Parameter Command n a Return from the JPEG 0 757 2120 Module Z3Z7 7170 Luminance 0 01 Failed 0x03 Mode error Example Request the current luminace Host Module 00 33 87 02 33 00 04 96 Wait for Response Length of the return 2 bytes Command ID to ACK 0x33 Return 0x000d Luminance 0x000d Checksum 0x96 53 0x35 Date Time Stamping ID 0x35 Description Stamp the date time on the picture note NOT video clip Parameter Format 2 bits The format of the date time Corner 2 bits Which corner to stamp the date time Style 2 bits The style of the date time Enable 1 bit Enable the function NC 1 bit Must be 0 ID Command Oxaa 01 35 8a aa Operation Mode Preview mode Parameter Command Obb bgbsb4bsbsb bo OxCh Chy aa b b Format 2 bits 00 yyyy mm dd 01 yyyy mm dd 10 dd mm yy
10. YisYi4 Yi3Y12 memory available to be used Y Yo YoYs File count YsY4 number of picture can be snapped for JPG Available time for AVI 0 01 Failed 0x02 USB mode Example Host Oxaa 00 66 ba aa Wait for Response Page 20 of 29 Request the information of the current storage media Module 66 00 66 fd 00 00 11 00 09 00 18 5f aa Length of the return 10 bytes Command ID to ACK 0x66 Return 0x0066fd00 Available space 6749440 bytes 0x0011 File count 17 0 0009 Picture left 9 0x0016 Time available for AVI 24 seconds Checksum 0 5 2 0 C6820 Enhanced JPEG Module USER MANUAL 120 0x78 Request the file information ID 0x78 Description Request the targeted file information File name File size and Video length For AVI ONLY Memory Unit Byte Time Unit Second Parameter File ID ID Command Oxaa 02 78 ce aa Operation Mode modes Parameter Command Z3Z 7120 ChyChy aa 7372 7170 File ID 0 0001 Oxffff The upper limit depend the memory size Checksum Return from the JPEG Module OxY35Y34 Y31Y30 YooYos Yo7Y26 5 Yo3Y22 YoiYoo YioYis Yi7Y16 Y 5Y 14 2 YoYs YsY4 Y35Y 34 Y 33Y 32 Y31 30 Yo7 26 YosYo4 Yo3Y 22 Y21 Y20 YisY14 Yi3Y 12 Filename YoY YsY4 File size Yo Video length for AVI ONL
11. ratios from 1x 45x Storage The JPEG Module features a 32MB 32M x 8 bits on board NAND flash and supports up to 4GB optional external memory card Display The JPEG Module provides composite video output Users can select TV standards NTSC or PAL Serial Interface The JPEG Module features an UART core based on the industry standard PCI116550 UART device It supports full duplex such that users can communicate with it on flexible platforms The supported baud rates are 115200bps 57600bps USB The JPEG Module provides a USB Mass Storage interface such that user can upload the image from the module to PC without driver installation For Windows 2K XP or Later Version Interface Connectors The JPEG Module has 3 interface connectors Connector Description USB Mini USB to connect PC for data transfer DC TV Adapter Cable provided for Video and DC input UART UART cable connector to the backend device The positions of the connectors are shown below DC TV UART Mini USB Socket SD Card Socket PWR On Switch Page 5 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL The pin assignments of the interface connectors are shown in the following USB I F Pin out USB mini B Pin Signal I O Function Type Vbus Power from PC USB port SVD
12. the requested date time and the version code It contained also the length of the results and checksum for verification The format of ACK Command is shown in the following Format Sync Byte Length of the Command Return Checksum Sync Byte 8 bits return inunitof ID to ACK variable 8 bits 8 bits byte 8 bits 8 bits Example Oxaa 0x07 0x04 0x07 Oxd5 0x92 Oxaa Request the 0x04 Ox0c 0x11 system 0x36 0x00 clock 2005 04 12 11 54 00 Page 8 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL Data Packet It is used to transmit the picture or video files from the camera to the host machine when performing the download function The format of data packet is shown in the following Format Sync Byte Serial number of the File content Checksum Sync Byte 8 bits packet 16 bits from 16 bits 8 bits 0 0001 Oxffff Example Oxaa 0 0001 0 03 0 12 Oxf655 Oxaa 0x77 5 The checksum 16 bits in the data packets is equal to the lowest 16 bits of the sum of the synchronization bytes the serial number and the file content This is different to other command with 8 bit checksum After receiving a data packet the host machine should return an ACK command for acknowledgement A list of return code for packet transmission is shown in the following Return 0x00 Verification pass ask for the next packet 0x01 Verification failed ask to resent the current packet
13. 01 Failed 0x02 USB mode 0x03 Mode error Example Select the external memory as the storage media Host Module Oxaa 01 64 b9 01 64 00 b9 aa 01 55 Length of the return 1 byte Wait for OK Command ID to ACK 0x64 Return 0x00 OK Checksum Oxb9 Page 19 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL 101 0x65 Format the storage media Parameter Command ID 0x65 Description Format the storage media Parameter Resident external ID Command Oxaa 01 65 ba aa Operation Mode Preview mode 4140 Ch Ch aa 7120 Resident external 0x00 Resident 0x01 External Ch Ch Checksum Return from the JPEG Module 0x00 OK 0x01 Failed 0x02 USB mode 0x03 Mode error 0x06 External memory card write protect Example Format the external memory Host 01 65 ba aa 01 55 aa Wait for OK Module 0 01 65 00 ba aa Length of the return I byte Command ID to 0x65 Return 0x00 OK Checksum Oxba 102 0x66 Request the information of the current storage media ID 0x66 Description Request the information of the current storage media Parameter n a ID Command Oxaa 00 66 ba aa Operation Mode Preview playback mode Parameter Command n a Return from the JPEG Module OxY j9Y ig YisY14 Y13Y12 Y i Y i9 YoY 4 Y3Y2 YiYo Y i7 Y 16
14. 02 Sharpen Ch Ch Checksum Return from the JPEG 0x00 Module 0 01 Failed Page 13 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL Example Set daylight for White Balance 0 for EV normal for Contrast B amp W for ColorEff and Sharpen for sharpness Host Module Oxaa 05 06 5f aa 01 06 00 5b Oxaa 01 04 00 01 02 5c aa Length of the return 1 byte Wait for OK Command ID to ACK 0x06 Return 0x00 OK Checksum Ox5b 30 0 1 Select the operation mode ID Oxle Description Select the operation mode Parameter Idle Mode For downloading and reviewing pictures and videos Capture JPG Default Capture still picture s when receiving the snapshot command Capture AVI Capture a video when receiving the record command Playback Playback the taken pictures and video ID Command Oxaa 01 le 73 aa Operation Mode Preview playback mode Parameter Command 4140 Ch Ch aa 7120 Operation Mode 0x03 Idle 0x04 Capture JPG 0x05 Capture AVI 0x06 Playback Ch Ch Checksum Return from the JPEG 0x00 OK Module 0x01 Failed 0x02 USB mode Example Select IDLE as the operation mode Host Module 01 1e 73 aa 0 01 1e 00 73 aa Oxaa 03 57 aa Length of the return 1 byte Wait for OK Command ID to 0x07 Return 0x00 OK Checksum OxSc Page 14 of 29 Rev 2 0 31 0x1f Req
15. 04 Page 28 of 29 Character SP COIDNAWNHO TASH TMOMMONWDWPS rvViA s 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 04D 04 04 050 051 052 053 054 055 056 057 058 059 05 05B 05C 05D 05 OSF 060 061 062 063 064 065 066 067 068 069 06A 06B 06C 06D 06E 06 070 071 072 073 074 075 076 077 078 079 07 C6820 Enhanced JPEG Module PU ONKKESCHHYDAOVOZE lt _ USER MANUAL Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL Document Change Log Feb 08 2007 official released v1 0 Nov 16 2007 modify commands add operation mode Page 29 of 29 Rev 2 0
16. C Power 2 D USB D minus signal Data 3 D USB D plus signal Data 4 NC Not connected NC 5 GND Ground Power UART VF Pin out 4 x 1 2 0mm Pitch Socket DIP Type Pin Signal Function Type C3V3 Digital 3 3V Power 2 TXD UART serial transmitter output Data 3 RXD I UART serial receiver input Data 4 DGND Digital ground Power DC TV Pin out 5x1 2 0mm Pitch Socket DIP Type Pin Signal I O Function Type 1 Vin Power 5VDC Power 2 GND Power Ground Power 3 NC Not connect NC 4 Video Out O Digital ground Analog 5 NC Not connect NC Connector pin assignment SVDC _ Le GND GND UM m e aan NC 3V3 1 gee Page 6 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL PART II Command List Basic Operation Hardware ON OFF To turn on the JPEG Module press and hold the PWRON switch for one second and then released LED will turn on The same circuitry can be used for power off Synchronization to the module Before talking to the module the host should send sync command to the module and make connection 00 bO 04 aa wait 10118 Repeat until the module response Oxaa 01 bO 00 05 aa Refer to command OxbO 176 for details Software Shutdown To shutdown the camera through software Send the shutdown command Oxaa 00 01 55 aa wait for the OK response Oxaa 00 01 00 56 aa After sending the OK response the camera will be shu
17. C6820 Enhanced JPEG Module User Manual V2 0 Release Note 1 Feb 8 2007 official released v1 0 2 Nov 16 2007 released V2 0 COMedia Ltd M 3 BARRA Rm 802 Nan Fung Ctr Castle Peak Rd Tsuen Wan NT Hong Kong Fax 852 2414 3050 Tel 852 2498 6248 Email sales comedia com hk tp www comedia com hk ht C6820 Enhanced JPEG Module USER MANUAL Table of Contents Part I Hardware E 3 Feat ros ARP Ee PR Re 3 Module Specifications sss 3 Electrical Characteristics eese 4 Mechanical Dimension eee 5 General Product Description sse 5 Interface Connectors 6 Part II Command List Basic Operation Hardware CINE oc ccs 7 Sy chronizatian to th Module CC QE 7 Sotware s tdowi eee 7 Connecting to TV monitor Connecting to PC Command Definitions of Commands o tee 8 Summary gf Command EE M 9 Leol C Onai 11 Appendix Example Flow IE 27 28 Document Change 29 Page 2 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL PART I Hardware Overview The Purpose of th
18. Y 0 01 Failed 0x02 USB mode 0x09 File does not exist Example Request the information of the file of that the ID is 2 Host Oxaa 02 78 ce aa Oxaa 00 02 56 aa Wait for Response Module For JPG file 12 78 50 49 43 54 30 30 30 32 2e 4a 50 47 00 00 00 08 Of b2 ae aa Length of the return 18 bytes Command ID to ACK 0x78 Return 0x50494354303030322e4a50470000 File name PICTO002 JPG Ox00080fb2 File size 528306 bytes Checksum 0 87 Module For AVI file Oxaa 14 78 50 49 43 54 30 30 30 32 2e 41 56 49 00 00 00 22 ef 80 00 06 83 aa Length of the return 20 bytes Command ID to ACK 0x78 Return 0 50494354303030322 4156490000 File name PICTOO02 AVI 0 0022 80 File size 2289536 bytes 0x0006 Video length 6 seconds Checksum 0x63 Page 21 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL 121 0x79 Download file from the JPEG Module Function in IDLE mode ONLY ID 0x79 Description Download the targeted file from the Module Function in IDLE mode ONLY Parameter File ID ID Command Oxaa 02 79 cf aa Operation Mode Idle mode Parameter Command Oxaa 7372 2120 7372 7 120 File ID 0 0000 Oxffff The upper limit depend on the memory size Ch Chy Checksum Return from the JPEG OxY35Y 34 Y33Y32 Y31Y30 Y20Y 2g 5 Y3Y YioY ig Module Y13Y12 Yur Yio YoYg
19. eter File ID ID Command Oxaa 02 7a dO aa Operation Mode All modes Parameter Command Oxaa 7372 7420 Ch Cho aa 7372 7120 File ID 0 0000 Oxffff The upper limit depend on the memory size Ch Ch Checksum Return from the JPEG Module 0x00 OK 0 01 Failed 0x02 USB mode 0x06 External memory card wirte protect 0x09 File does not exist Example Host 02 7a d0 aa 00 03 57 aa Wait for OK Delete the file of that the ID is 3 Module 0 01 7a 00 cf aa Length of the return I byte Command ID to 0x7a Return 0x00 OK Checksum Oxcf 155 0x9b Select the TV Standard ID Ox9b Description Select the TV Standard Parameter NTSC PAL ID Command 01 9b 0 aa Operation Mode modes Parameter Command Return from the JPEG Module 714 Ch Ch aa 7120 NTSC PAL 0x00 NTSC 0x01 PAL Default Ch Ch Checksum 0x00 OK 0x01 Failed Example Select NTSC as the TV standard Host 01 9b f0 aa Oxaa 00 54 aa Wait for OK Module 01 9b 00 f0 aa Length of the return I byte Command ID to 0x9b Return 0x00 OK Checksum Page 23 of 29 Rev 2 0 C6820 Enhanced JPEG Module 159 0x9f Select the Baud rate USER MANUAL ID Ox9f Description Select the Baud rate Parameter 115200 57600 ID Command Oxaa 01 9f f4 aa O
20. is document is the description of the features functions and interfaces of C6820 Enhanced JPEG Camera Module The Enhanced JPEG Module is a small lightweight and low power consumption device including most of the features of a Digital Still Camera DSC such as snapshot video capture date time stamp file management and many system configurations A series of user friendly command is well developed By sending these commands to the camera users can perform the functions of the camera In this document all the functions of the JPEG Module will be taken into account and for each of the functions a proper command sequence will be suggested Features UART interface for camera control User friendly commands Different baud rate setting to meet most of MCU and PC software SD card interface Real time composite video data output USB mass storage Module Specifications Image Sensor CMOS sensor OV3620 Image Processor ZORAN COACH 6E On Board Memory 128 Mb 8 Mbytes Storage External memory card up to 4GB Resident 32MB NAND Flash Display Connector Composite video out Video Capture 640 x 480 30 fps 320 x 240 30 fps Unlimited Motion JPEG capturing time depends on available memory space Photo Resolution 1280 x 960 640 x 480 JPEG format White Balance Normal Daylight Tungsten Fluorescent Cloudy UART Baud Rate 115200 57600 bps TV out NTSC PAL USB Interface USB 1
21. peration Mode Modes Parameter Command 4140 Ch Ch aa 712 0 Baud rate 0x04 57600bps 0x05 115200bps Default Ch Ch Checksum Return from the JPEG Module 0x00 OK 0x01 Failed Example Select 115200bps for baud rate Host Module Oxaa 01 9f f4 aa Oxaa 01 9f 00 f4 aa 0 05 59 aa Length of the return 1 byte Wait for OK Command ID to ACK 0 9 Return 0x00 OK Checksum 0 5 169 0xa9 Request the connection status of the external memory ID Oxa9 Description Request the connection status of the external memory Parameter n a ID Command Oxaa 00 a9 fd aa Operation Mode All modes Parameter Command n a Return from the JPEG Module 0x06 External memory card write protect 0x07 Connect 0x08 Disconnect Example Request the connection status of the external memory Host 00 a9 fd aa Module 01 a9 07 05 Wait for Response Length of the return I byte Command ID to ACK 0 9 Return 0x07 connect Checksum 0 05 Page 24 of 29 Rev 2 0 176 0xb0 Synchronization signal C6820 Enhanced JPEG Module USER MANUAL ID Oxb0 Description Send this command to the Module for synchronization until receiving OK Parameter n a ID Command Oxaa 00 b0 04 Operation Mode All modes Parameter Command n a Return from the JPEG 0x00 OK Mod
22. st the system time ID 0x04 Description Request the system time Parameter n a ID Command Oxaa 00 04 58 aa Operation Mode Preview playback mode Parameter Command n a Return from the JPEG Y Yo DiD Hi Hy 150 Module OxY3Y gt Y Yo Year in hex OxM Mpo Month in hex OxD D Day in hex OxH Ho Hour in hex Mi Mio Minutes in hex 5150 Second in hex 0x01 Failed Example Set the system clock Host Module Oxaa 00 04 58 aa Oxaa 07 04 07 d5 04 OF 17 1e 05 81 aa Wait for Response Length of the return 7 bytes Command ID to 0x04 Return 0x07d5 Year 2005 0x04 Month 04 Day 15 0x17 Hour 23 Oxle Minute 30 0x05 Second 05 2005 04 15 23 30 05 Checksum 0 81 6 0x06 Snapshot configuration ID 0x06 Description Set the snapshot parameter Parameter WhiteBalance Mode EV Contrast ColorEff and Sharpness ID Command Oxaa 05 06 5f aa Operation Mode Preview playback mode Parameter Command Oxaa ZoZ 7 106 70574 7372 ZiZo Ch Cho aa ZoZg White Balance 0x00 Normal Default 0x01 Day Light 0x02 Tungsten 0x03 Fluorescent 0x04 Cloudy 717 6 0x00 0x08 represent 2 0 2 0 in step of 0 5 Default 0x04 ZsZ4 Contrast 0x00 Normal Default 0 01 Stretch 7372 Color Effect 0x00 Normal Default 0x01 B amp W 0x02 Sepia Z4Zo Sharpness 0x00 Normal Default 0x01 Smooth 0x
23. store the configuration of the JPEG Module to the factory one Host 00 00 54 aa Wait for OK Module 01 00 00 55 aa Length of the return I byte Command ID to ACK 0x00 Return 0x00 OK Checksum 0 55 Remark factory configuration includes the following parameters wSize eTVStd eWBMode eStrobeMode eColorEffect elmgQty eImgRes eAviQty uAviRes eContrast eEV uFrequency eSharpness uAviTriTime uTrigMask bTrigMode bAudioOn 1 0x01 Shutdown ID 0x01 Description Software shutdown the JPEG Module Parameter n a Note after shut down need to press the PWRON KEY to restart again ID Command Oxaa 00 01 55 aa Operation Mode Preview playback mode Parameter Command n a Return from the JPEG 0x00 OK Module 0x01 Failed Example Software shutdown the JPEG Module Host 0 00 01 55 aa Wait for OK Module 0 01 01 00 56 aa Length of the return 1 byte Command ID to ACK 0x01 Return 0x00 OK Checksum 0x56 Page 11 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL 2 0x02 Request the revision identification ID 0x02 Description Request the revision numbers of the hardware COACH Sensor and HCE Parameter n a ID Command Oxaa 00 02 56 aa Operation Mode Preview playback mode Parameter Command n a Return from the JPEG Module OxY i5 Y i4 Y i3Y i Y Y i9 YoYs
24. tdown immediately Refer to command 0x01 1 for details Note after shut down need to press the PWRON KEY to restart again Connecting to TV monitor Connect the DC TV adapter cable RCA socket to TV monitor will display the video image on TV set and perform playback function when control thru the UART interface This is NOT a must in real application It is required when setup the camera or playback the files to TV set Connecting to PC Connect USB cable to PC the module acts as mass storage device Note no other functions can be performed when this USB connection existed Page 7 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL Commands Definition of Commands To perform the functions of the JPEG Module corresponding commands must be sent The commands are string of the hexadecimal number There are four types of commands being used for the JPEG Module ID Command Parameter Command ACK Command and Data Packet All the commands contain synchronization bytes and checksum Synchronization byte 0xaa placed at the front and the end of every command is used for the synchronization between the host machine and the JPEG Module Checksum is equal to the lowest eight bits of the sum of all the other bytes in the corresponding command It is used for the verification of the command ID Command is fixed five byte command containing the command ID the length of the parameters in the following parameter command and the checksum
25. ture resolution and the compression ratio 51 0x33 Request the current Luminance 53 0x35 Date Time Stamping 54 0x36 String Stamping 56 0x38 Sequence capture AVI Capture ID in Dec ID in Hex Function 81 0x51 Set the resolution and the compression ratio of the AVI recorded 84 0x54 Start Stop recording AVI File Management ID in Dec ID in Hex Function 120 0x78 Request the file information 121 0x79 Download file from the JPEG Module Function in IDLE mode ONLY 122 0x7a Delete the targeted file 200 Oxc8 Playback the current AVI 201 Oxc9 Select the Previous Next file 202 Oxca Select a particular file Storage Media Management ID in Dec ID in Hex Function 100 0x64 Select the storage media 101 0x65 Format the storage media 102 0x66 Request the information of the current storage media Interface Management ID in Dec ID in Hex Function 155 Ox9b Select the TV Standard 169 9 Request the connection status of the external memory Page 10 of 29 Rev 2 0 List of Commands C6820 Enhanced JPEG Module USER MANUAL 0 0x00 Restore factory configuration ID 0x00 Description Restore the configuration of the JPEG Module to the factory setting Parameter n a ID Command Oxaa 00 00 54 aa Operation Mode Preview playback mode Parameter Command n a Return from the JPEG 0x00 OK Module 0 01 Failed 0x02 USB Mode Example Re
26. uest the current operation mode C6820 Enhanced JPEG Module USER MANUAL ID Oxlf Description Request the current operation mode Parameter n a ID Command Oxaa 00 1f 73 aa Operation Mode All modes Parameter Command n a Return from the JPEG Module 0 01 Failed 0x02 USB Mode Connected with the host through the USB port 0x03 Idle Mode Perform no function 0x04 Capture JPG Capture still picture s when receiving the snapshot command 0x05 Capture AVI Capture a video when receiving the record command 0x06 Playback Playback the taken pictures and video Example Request the current operation mode Host Oxaa 00 1f 73 aa Wait for Resopnse Module Oxaa 01 1f 05 79 aa Length of the return 1 byte Command ID to 0 1 Return 0x05 Mode Capture AVI Checksum 0x79 50 0x32 Set the picture resolution and the compression ratio ID 0x32 Description Set the picture resolution and the compression ratio Parameter Resolution 1280 x 960 640 x 480 Compression ratio 1 45x Default 30x ID Command Oxaa 02 32 88 aa Operation Mode All modes Parameter Command Oxaa 7372 Z Zo Ch Cho aa 7372 Resolution 0x00 1280 x 960 0x01 640 x 480 7120 Compression ratio 0x00 2 for 1 45x Default 0x18 Ch Ch Checksum Return from the JPEG Module 0x00 OK 0x01 Failed 0x02 USB mode For example
27. ule Example Send a series of sychronization signal to the Module Host 00 b0 04 aa Wait for Response 10ms for 115200bps Host 00 b0 04 aa Wait for Response 10ms for 115200bps Host 00 b0 04 aa Wait for Response 10ms for 115200bps Module No response Module No response Module 01 b0 00 05 Length of the return I byte Command ID to ACK Oxb0 Return 0x00 OK Checksum 0 05 200 0xc8 Playback the current AVI ID Oxc8 Description Playback the current AVI Parameter Play Pause Stop Fast Forward Backward ID Command 01 8 14 Operation Mode playback mode Parameter Command 7120 Ch Chy aa 2120 Playback operation 0x00 Play 0x01 Pause 0x02 Stop 0x03 Fast Forward 0x04 Backward Ch Ch Checksum Return from the JPEG Module 0x00 OK 0x01 Failed 0x02 USB mode 0x03 Mode error Example Play the current AVI Host 01 c8 1d 0 00 54 aa Wait for OK Module 01 c8 00 1d aa Length of the return I byte Command ID to ACK Oxc8 Return 0x00 OK Checksum 0 1 Page 25 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL 201 0xc9 Select the Previous Next file ID Oxc9 Description Select the Previous Next file Parameter Previous Next ID Command Oxaa 01 c9 1e aa
28. x00 OK Checksum Oxa6 Page 18 of 29 Rev 2 0 84 0x54 Start Stop recording AVI C6820 Enhanced JPEG Module USER MANUAL ID 0x54 Description Start Stop recording AVI Parameter Start Stop ID Command aa 01 54 a9 aa Operation Mode AVI capture mode 4140 Ch Chy aa 7120 Start Stop Parameter Command 0 00 Start 0x01 Stop Ch Ch Checksum Return from the JPEG 0x00 OK 0x01 Failed Module 0x02 USB mode Example Start recording AVI Host aa 01 1e 73 aa aa 05 59 aa 01 54 a9 aa 0 00 54 aa Wait for OK Stop recording AVI Host 01 54 a9 aa 01 55 aa Wait for OK 0x04 Memory full RAM 0x03 Mode error 0x05 Memory full Flash 0x06 External memory card write protect Module AA 01 54 00 A9AA Length of the return I byte Command ID to 0x54 Return 0x00 OK Checksum Ox A9 Module 01 54 00 A9 AA Length of the return I byte Command ID to ACK 0x54 Return 0x00 OK Checksum A9 100 0x64 Select the storage media ID 0x64 Description Select the storage media Parameter Resident external ID Command Oxaa 01 64 b9 aa Operation Mode Preview mode Parameter Command 7 7 Ch Chp aa 0x00 Resident 0x01 External Checksum 7120 Resident external Return from the JPEG 0x00 Module 0
29. yy 11 mm dd yyyy bsb 4 Corner 2 bits 00 Bottom right 01 Bottom left 10 Top right 11 Top left bib Style 00 Stamp only the date 01 Stamp only the time 10 Stamp both the date and the time bo Enable 00 Enable 10 Disable Ch Ch Checksum Return from the JPEG 0x00 OK Module 0 01 Failed Example Stamp the date in the format of dd mm yyyy and the time on the bottom right of the current picture Host Module 01 35 8a 01 35 00 8 Oxaa 88 dc Length of the return 1 byte Wait for OK Command ID to ACK 0x35 Return 0x00 OK Checksum 8 Page 16 of 29 Rev 2 0 C6820 Enhanced JPEG Module USER MANUAL 54 0x36 String Stamping ID 0x36 Description Stamp a string on the picture NOT for video clip This string will not see on the preview screen only on the photo when play back Parameter Enable 1 byte Enable the function FontW 1 byte Width of the font s FontH 1 byte Height of the font s PosX 2 bytes X coordinate of the string from left to right 2 bytes coordinate of the string from top to bottom Red 1 byte Red component of the RGB value Green 1 byte Green component of the RGB value Blue 1 byte Blue component of the RGB value StringLength 1 byte Number of characters in the string max 11 String at most 11 bytes ASCII code of the characters to display ID Command
30. zation 2 select idle mode 3 select file 1 and transit 4 send ACK 5 send ACK again 6 completed Page 27 of 29 Host aa 00 bO 04 aa repeat until module acks aa 01 le 73 aa aa 04 58 aa aa 01 38 8d aa aa 01 55 aa Host aa 00 bO 04 aa repeat until module acks aa 01 le 73 aa aa 05 59 aa aa 01 54 a9 aa aa 00 54 aa aa 01 54 a9 aa 01 55 aa Host aa 00 bO 04 aa aa 01 le 73 aa aa 03 57 aa aa 02 79 cf aa aa 00 01 55 aa aa 01 79 00 ce aa aa 01 79 00 ce aa aa 01 79 00 ce aa C6820 Enhanced JPEG Module USER MANUAL Module aa 01 bO 00 05 aa aa 01 1e 00 73 aa aa 01 38 00 8d aa Module aa 01 bO 00 05 aa aa 01 1e 00 73 aa aa 01 54 00 a9 aa aa 01 54 00 a9 aa Module aa 01 bO 00 05 aa aa 01 1e 00 73 aa aa 12 79 00 01 df b3 00 02 50 49 43 54 30 30 32 2e 4a 50 47 75 aa that mean it has 122803byte 2packets aa 00 01 ff db ff el 6b 45 78 received first pack of the image data received another pack of the picture s data Rev 2 0 2 ASCII code table Dec Hex 032 020 033 021 034 022 035 023 036 024 037 025 038 026 039 027 040 028 041 029 042 02 043 02B 044 02C 045 02D 046 02E 047 02 048 030 049 031 050 032 051 033 052 034 053 035 054 036 055 037 056 038 057 039 058 03A 059 03B 060 03C 061 03D 062 03E 063 03F 064 040 065 041 066 042 067 043 068 044 069 045 070 046 071 047 072 048 073 049 074 04A 075 04B 076

Download Pdf Manuals

image

Related Search

Related Contents

SpectraSuite Installation and Operation Manual  Sony S2 User's Manual  Sony CD-9255 User's Manual  USER MANUAL  Télécharger le Manuel d`installation  309756D - Reactor, Electric, Heated, Plural Component  1 Contribution au débat sur la responsabilité des juges: entre  Samsung DVD-HD755 User's Manual  Olympus IS-1 Digital Camera User Manual  KT33813UG, KIT33813AEEVBE Evaluation Board  

Copyright © All rights reserved.
Failed to retrieve file