Home

C628 User Manual

image

Contents

1. Oxaa 01 38 00 8c aa Length of the return I byte Command ID to ACK 0x38 Return 0x00 OK Checksum Ox8 amp d Page 15 of 30 Rev 1 1 C628 Enhanced JPEG Module USER MANUAL 81 0x51 Set the resolution and the compression ratio of the AVI recorded ID 0x51 Description Set the resolution and the compression ratio of the AVI recorded Parameter Resolution 320 x 240 Default 640 x 480 Compression ratio 1x 45x Default 30x ID Command Oxaa 02 51 a7 aa Parameter Command Oxaa Z3Z ZZ ChyCho aa Z3Zy Resolution Z Zo Compression ratio Ch Chp Checksum 0x00 320 x 240 Default 0x01 640 x 480 0x00 0x2c for 1x 45x Default 0x 1d Return from the JPEG 0x00 OK Module 0x01 Failed Example Set 320 x 240 for the resolution and 20x for the compression ratio of the video recorded Host Camera Oxaa 02 51 a7 aa Oxaa 01 51 00 a6 aa Oxaa 00 13 67 aa Length of the return 1 byte Wait for OK Command ID to ACK 0x51 Return 0x00 OK Checksum Oxa6 83 0x53 Start Stop recording AVI ID 0x53 Description Start Stop recording AVI Parameter Start Stop ID Command Oxaa 01 53 a8 aa Parameter Command Oxaa ZZ Ch Chp aa ZZo Start Stop 0x00 Start 0x01 Stop Ch Chp Checksum Return from the JPEG 0x00 OK Module 0x01 Failed 0x02 USB mode 0x03 Mode error 0x04 Not enough memory RAM 0
2. 0x00 Oxff Zs5Z4 0x00 Oxff ZZ 0x00 Oxff ZZ 0x01 0x0b Ch Chp Checksum Z21229 0x00 Enable 0x01 Disable Z15sZ14Z13Z 2 0x00 Width of the picture Z11Z19Z9Z3 0x00 Height of the picture String ASCII code of the characters to display Return from the JPEG 0x00 OK Module 0x01 Failed Example Stamp the string Hello of that the font size is W 80 H 90 and the RGB ratio is 0 0 255 at the 160 150 of the picture Host Oxaa 10 36 9a aa Oxaa 01 50 5a 00 a0 00 96 00 00 ff 03 48 65 6c 6c 6f 2b aa Wait for OK Camera Oxaa 01 36 00 8b aa Length of the return 1 byte Command ID to ACK 0x36 Return 0x00 OK Checksum Ox8b Page 14 of 30 Rev 1 1 C628 Enhanced JPEG Module 56 0x38 Sequence capture USER MANUAL ID 0x38 Description Capture a number of pictures in a chain Available for Capture JPG Mode ONLY Parameter Number of picture s 1 byte ID Command Oxaa 01 38 8d aa Parameter Command Oxaa ZZ Ch Cho aa ZZo Number of picture s 0x01 Oxff Ch Cho Checksum Return from the JPEG 0x00 OK Module 0x01 Failed 0x02 USB mode 0x03 Mode error 0x04 Not enough memory RAM 0x05 Not enough memory Flash 0x06 External memory card write protect Example Set to take a chain of 5 pictures with a single snapshot Host Oxaa 01 38 8d aa Oxaa 05 59 aa Wait for OK Camera
3. 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 Oxaa 07 03 5e aa Parameter Command Oxaa Y3Y gt YiYo M Mo D Do H Ho Mi Mio S1So Ch Cho aa Y3Y gt 2 Y Yo Year in hex M Mo Month in hex D Do Day in hex H Ho Hour in hex Mi Mio Minutes in hex S1So Second in hex Ch Cho Checksum Return from the JPEG Module 0x00 OK 0x01 Failed Example Set the system clock to 2004 11 19 18 00 00 Host Oxaa 07 03 5e aa Oxaa 07 d4 Ob 13 12 0a 00 69 aa Wait for OK Camera Oxaa 01 03 00 58 aa Length of the return I byte Command ID to ACK 0x03 Return 0x00 OK Checksum 0x58 Page 8 of 30 Rev 1 1 C628 Enhanced JPEG Module USER MANUAL 4 0x04 Request the system time ID 0x04 Description Request the system time Parameter n a ID Command Oxaa 00 04 58 aa Parameter Command n a Return from the JPEG 0xY3Y2 Y Yo M Mo DiDo HiHo Mi Mio S1So Module 0xY3Y2 Y Yo Year in hex OxM Mpo Month in hex OxD Do Day in hex OxH Ho Hour in hex Mi Mig Minutes in hex S1So Second in hex 0x01 Failed Example Set the system clock Host Camera Oxaa 00 04 58 aa Oxaa 07 04 07 d5 04 OF 17 1e 05 81 aa Wait for Response Length of the r
4. 00 ce aa Wait for Packet 0001 Camera Oxaa 00 01 File data 61434 bytes checksum 2 bytes aa Packet total size 0xf000 61440 bytes Host ACK Oxaa 01 79 00 ce aa Wait for Packet 0002 Camera Oxaa 00 02 File data 61434 bytes checksum 2 bytes aa Packet total size 0xf000 61440 bytes Host ACK Oxaa 01 79 00 ce aa Wait for Packet 0003 Oxaa 00 Id File data 15894 bytes checksum 2 bytes aa Packet total size 0xf000 15900 bytes Host ACK Oxaa 01 79 00 ce aa Download Completed Page 20 of 30 Rev 1 1 122 0x7a Delete the targeted file C628 Enhanced JPEG Module USER MANUAL ID Ox7a Description Delete the targeted file Parameter File ID ID Command Oxaa 02 7a dO aa Parameter Command Oxaa Z322 Z Zo Ch Cho aa Z3Z ZZo File ID 0x0000 Oxffff The upper limit depend on the memory size Ch Cho Checksum Return from the JPEG Module 0x00 OK 0x01 Failed 0x02 USB mode 0x06 External memory card wirte protect 0x09 File does not exist Example Delete the file of that the ID is 3 Host Oxaa 02 7a d0 aa Oxaa 00 03 57 aa Wait for OK Camera Oxaa 01 7a 00 cf aa Length of the return I byte Command ID to ACK 0x7a Return 0x00 OK Checksum Oxcf 123 0x7b Copy Move the targeted file from the resident to the external memory ID 0x7b Description Copy Move the targeted file form the reside
5. 0x00 Normal Default 0x01 Smooth 0x02 Sharpen Ch Cho Checksum Return from the JPEG Module 0x00 OK 0x01 Failed Example Set daylight for White Balance 0 for EV normal for Contrast B amp W for ColorEff and Sharpen for sharpness Host Oxaa 05 06 5f aa Oxaa 01 04 00 01 02 5c aa Wait for OK Camera Oxaa 01 06 00 5b aa Length of the return I byte Command ID to ACK 0x06 Return 0x00 OK Checksum OxSb Page 10 of 30 Rev 1 1 C628 Enhanced JPEG Module USER MANUAL 30 Oxle 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 Parameter Command Oxaa ZZ Ch Cho aa Z Zo Operation Mode 0x03 Idle 0x04 Capture JPG 0x05 Capture AVI 0x06 Playback Ch Chp Checksum Return from the JPEG 0x00 OK Module 0x01 Failed 0x02 USB mode Example Select IDLE as the operation mode Host Camera Oxaa 01 1e 73 aa Oxaa 01 1e 00 73 aa Oxaa 03 57 aa Length of the return 1 byte Wait for OK Command ID to ACK 0x07 Return 0x00 OK Checksum OxSc Page 11 of 30 Rev 1 1 31 0x1f Request the
6. 0x9c Request the TV connection status ID Ox9c Description Parameter n a Request the TV connection status ID Command Oxaa 00 9c f0 aa Parameter Command n a Return from the JPEG 0x07 Connect Module 0x08 Disconnect Example Request the TV connection status Hast Oxaa 00 9c f0 aa Wait for Response Camera Oxaa 01 9c 08 f9 aa Length of the return 1 byte Command ID to ACK 0x9c Return 0x08 Disconnect Checksum Oxf9 Page 22 of 30 Rev 1 1 C628 Enhanced JPEG Module USER MANUAL 159 0x9f Select the Baud rate ID Ox9f Description Select the Baud rate Parameter 115200 57600 ID Command Oxaa 01 9f f4 aa Parameter Command Oxaa ZZ Ch Cho aa Z Zo Baud rate 0x04 57600bps 0x05 115200bps Default Ch Chp Checksum Return from the JPEG Module 0x00 OK 0x01 Failed Example Select 115200bps for baud rate Host Oxaa 01 9f f4 aa Oxaa 05 59 aa Wait for OK Camera Oxaa 01 9f 00 f4 aa Length of the return I byte Command ID to ACK 0x9f Return 0x00 OK Checksum Ox5f 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 Parameter Command n a Return from the JPEG Module 0x06 External memory card write protect 0x07 Con
7. 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 Parameter Command Oxaa Z3L9 Z Zo Ch Cho aa Z322 Z Zo File ID 0x0001 Oxffff The upper limit depend on the memory size Ch Cho Checksum Return from the JPEG Module OxY35Y34 Y33Y32 Y31Y30 Y29Y28 Y27Y 26 Y25Y24 Yo3Y20 Y21Y20 YoY 18 Yi7Y 16 YisYi4 YBYi2 Yu Yio YoYs Y7Y6 YsY4 Y3Y2 YiYo Y35Y34 Y33 32 Y31Y30 Y29Y28 Y27Y 26 Y25Y24 Y3Y22 Y21Y20 YioY ig YY 16 YisYi4 Yi3Yj0 Filename Yi Yio YoY YIY6 Y5Ya File size Y3Y gt Y Yo Video length for AVI ONLY 0x01 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 Camera For requesting a JPG file Oxaa 18 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 PICTOO002 JPG Ox00080fb2 File size 528306 bytes Checksum 0x87 Camera For requesting an AVI file Oxaa 20 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 0x50
8. NC 5 GND Ground Power UART I F Pin out 4 x 1 2 0mm Pitch Socket DIP Type Pin Signal TVO Function Type 1 C3V3 Digital 3 3V Power 2 TXD O UART serial transmitter output Data 3 RXD I UART serial receiver input Data 4 DGND Digital ground Power Page 1 of 30 Rev 1 1 C628 Enhanced JPEG Module USER MANUAL PART II Command List Basic Operation Hardware ON OFF To turn on the JPEG Module the PWRON KEY SW1 must be pressed for at least one second and then released The same circuitry can be used for power off Software Shutdown To shutdown the camera through software Send the shutdown command Oxaa 00 01 55 aa and then wait for the OK response Oxaa 00 01 00 56 aa After sending the OK response the camera will be shutdown immediately Page 2 of 30 Rev 1 1 C628 Enhanced JPEG Module USER MANUAL Command Definitions of Commands To perform the functions of the JPEG Module corresponding commands must be sent to it The commands are string of the hexadecimal number There are three types of commands being used for the JPEG Module ID Command Parameter Command and ACK Command All the commands contain synchronization bytes and checksum Synchronization byte Oxaa 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 o
9. and the compression ratio of the AVI recorded 83 0x53 Start Stop recording AVI Page 5 of 30 Rev 1 1 C628 Enhanced JPEG Module USER MANUAL 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 123 0x7b Copy Move the targeted file from the resident to the external memory 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 Interface Management ID in Dec ID in Hex Function 155 0x9b Select the TV Standard 156 Ox9c Request the TV connection status 169 Oxa9 Request the connection status of the external memory Page 6 of 30 Rev 1 1 List of Commands C628 Enhanced JPEG Module USER MANUAL 0 0x00 Restore factory configuration ID 0x00 Description Restore the configuration of the JPEG Module to the factory one Parameter n a ID Command Oxaa 00 00 54 aa Parameter Command n ak Return from the JPEG 0x00 OK Module 0x01 Failed 0x02 USB Mode Example Restore the configuration of the JPEG Module to the factory one Host Oxaa
10. bits on board NAND flash and supports up to 1GB optional external memory card Display The JPEG Module provides composite video output Users can select between two different TV standards NTSC and 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 Page 1 of 30 Rev 1 1 C628 Enhanced JPEG Module USER MANUAL Interface Connectors The JPEG Module has 4 interface connectors Connector Description USB Mini USB to connect PC for data transfer TVout Phone Jack to connect TV for image display DCin Mini DC Jack to connect the DC adapter for power input UART UART cable connector to the backend device The positions of the connectors are shown below Mini SD USB TV Out DC in Figure 2 Positions of the connectors The pin assignments of the interface connectors are shown in the following USB I F Pin out USB mini B Pin Signal VO Function Type 1 Vbus Power from PC USB port SVDC Power 2 D VO USB D minus signal Data 3 D I O USB D plus signal Data 4 NC Not connected
11. 00 00 54 aa Wait for OK Camera Oxaa 01 00 00 55 aa Length of the return I byte Command ID to ACK 0x00 Return 0x00 OK Checksum 0x55 1 0x01 Shutdown ID 0x01 Description Software shutdown the JPEG Module Parameter n a ID Command Oxaa 00 01 55 aa Parameter Command n a Return from the JPEG 0x00 OK Module 0x01 Failed Example Software shutdown the JPEG Module Host Oxaa 00 01 55 aa Wait for OK Camera Oxaa 01 01 00 56 aa Length of the return 1 byte Command ID to ACK 0x01 Return 0x00 OK Checksum 0x56 Page 7 of 30 Rev 1 1 C628 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 Parameter Command n a Return from the JPEG Module OxYisY1a Y13Y12 Y11Y10 YoYs Y7Y6 YsY4 Y3Y2 YiYo YisY14 Y13Y12 Hardware Version Yi Yio YoYs Coach Version Y7Y Sensor Version Ys5Y4 XX Y3Y2 Y Yo HCE Version 0x01 Failed Example Request the revision numbers of the hardware COACH Sensor and HCE Host Oxaa 00 02 56 aa Wait for Response Camera Oxaa 08 02 07 02 03 9e 08 03 01 08 Ic aa Length of the return 8 bytes Command ID to ACK 0x02 Return 0x0702 Hardware ver 0x039e COACH Ver 0x08 Sensor Ver xx Ox0108
12. 20 Host Camera Oxaa 02 ca 20 aa Oxaa 01 ca 00 If aa Oxaa 00 14 68 aa Length of the return 1 byte Wait for OK Command ID to ACK Oxca Return 0x00 OK Checksum Ox1f Page 26 of 30 Rev 1 1 C628 Enhanced JPEG Module USER MANUAL Document Change Log 1 May 2 2006 official released v1 0 Page 27 of 30 Rev 1 1
13. 4 Backward Ch Chp Checksum Return from the JPEG Module 0x00 OK 0x01 Failed 0x02 USB mode 0x03 Mode error Example Play the current AVI Host Oxaa 01 c8 Id aa Oxaa 00 54 aa Wait for OK Camera Oxaa 01 c8 00 1d aa Length of the return I byte Command ID to ACK 0xc8 Return 0x00 OK Checksum Oxld 201 0xc9 Select the Previous Next file ID Oxc9 Description Select the Previous Next file Parameter Previous Next ID Command Oxaa 01 c9 le aa Parameter Command Oxaa ZZ Ch Chy aa Z Zo Direction 0x00 Previous 0x01 Next Ch Chp Checksum Return from the JPEG Module 0x00 OK 0x01 Failed 0x02 USB mode 0x03 Mode error Example Select the next file Host Oxaa 01 c9 le aa Oxaa 01 55 aa Wait for OK Camera Oxaa 01 c9 00 le aa Length of the return I byte Command ID to ACK 0xc9 Return 0x00 OK Checksum Oxle Page 25 of 30 Rev 1 1 C628 Enhanced JPEG Module USER MANUAL 202 Oxca Select a particular file ID Oxca Description Select a particular file Parameter File ID ID Command Oxaa 02 ca 20 aa Parameter Command Oxaa ZZ ZZ ChyCho aa Z Z2 Z Zo File ID 0x0000 Oxffff The upper limit depend on the memory size Ch Cho Checksum Return from the JPEG 0x00 OK Module 0x01 Failed 0x02 USB mode Example Select the file of that the ID is
14. 494354303030322 e4156490000 File name PICTOO02 AVI _ 0x0022ef80 File size 2289536 bytes 0x0006 Video length 6 seconds Checksum 0x83 Page 19 of 30 Rev 1 1 C628 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 Parameter Command Oxaa Z Z Z Zo Ch Choaa Z3Z2 ZZo File ID 0x0000 Oxffff The upper limit depend on the memory size Ch Chp Checksum Return from the JPEG OXY3sY34 Y33Y32 Y31Y30 Y29Y2s Y27Y26 YosYoa Yo3 22 Y21Y20 YioYis Yi7Y 16 YisYi4 Y13Y12 Y11Y10 YoYs Y7Yo6 YsY4 Y3Y2 YiYo Module Y3sY34 Y33 39 Y31 39 YoY File size Yo7Y 26 Y25Y24 Number of packets Yo3 22 Yor Y20 YioYis Yi7Yi6 YisYi4 Y13Y12 Y11Y10 YoYs Y7Y6 YsYa Y3Y2 Y 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 Oxaa 02 79 cf aa Oxaa 00 02 56 aa Wait for Response Camera Oxaa 12 79 00 1a 7d 6e 00 1d 50 49 43 54 30 30 30 33 2e 41 56 49 02 aa Length of the return 18 bytes Command ID to ACK 0x79 Return O0x001a7d6e File size 1736046 bytes OxOO1d Number of packets 29 0x50494354303030332e415649 File name PICTO003 AVI Checksum 0x02 Host ACK Oxaa 01 79
15. 65 ba aa Parameter Command Oxaa ZZ Ch Chy aa Z Zo Resident external 0x00 Resident 0x01 External Ch Chop 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 Oxaa 01 65 ba aa Oxaa 0155 aa Wait for OK Camera Oxaa 01 65 00 ba aa Length of the return I byte Command ID to ACK 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 Parameter Command n a Return from the JPEG Module OxYi9Yis Y17Y16 YisY14 Y13Y12 YurYio YoY Y7Y6 Y5Y4 Y3Y2 YiYo YioYis Yi7Y16 YisY 14 Y13Y 12 Empty space Yi Yio YoYs File count Y7Y6 YsYu4 Picture left for JPG Y3Y Y Yo Available time for AVI 0x01 Failed 0x02 USB mode Example Request the information of the current storage media Host Oxaa 00 66 ba aa Wait for Response Camera Oxaa 10 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 Empty space 6749440 bytes 0x0011 File count 17 0x0009 Picture left 9 Ox0018 Time available for AVI 24 seconds Checksum Ox5f Page 18 of 30 Rev 1 1 C628 Enhanced JPEG
16. 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 Page 3 of 30 Rev 1 1 C628 Enhanced JPEG Module USER MANUAL ACK Command is a varied length command containing the acknowledgement and the results returned for the ID and parameter commands such as 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 in unit of 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 Data Packet Beside the three types of command discussed above there is one more packet called Data Packet used for the JPEG Module 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 0x0001 Oxffff Example Oxaa 0x0001 0x03 0x12 Oxf655 Oxaa 0x77 OxSe Please notice that the checksum 16 bits in the data packets is equal to the lowe
17. C628 Enhanced JPEG Module User Manual v1 1 Release Note 1 May 2 2006 official released v1 0 2 Dec 27 2006 revise electrical characteristics Table of Contents Part I Hardware Diea aaa Sn keene eee eee eee re eS eee em oer em ene eee te 1 EU n EE EE 1 Module Specifications 0 ccc ccccccec cece cece eee eeeeeceeeseeeaeeeeeeaeeeaes 1 Electrical Ciaracterigticss ccs sicessaceus sdedcadeuveavsucsstaeesnydadendavesegseecaveus 2 General Product Description 0 cee eee cence eee ence eee eeaens 3 Interface OnmGQ6 8 ccc sores ee orcs eee WA eS 4 Part II Command List Basic Operation Hard ware ON OFF ccccscaccets sucka cas chavaseweenoces seusbe sas Guaseuevesnoeus yeutwanas Gee copes 5 Soltware SMMdOWN errar Seo ae ene ave wed wh ADK menos nh de Vad BL RM ee eee 5 Command Definitions OF Commands oc cccivcc cesceccccedecccconsdecccuncegceuesseecdeedoeeccuesyeecauevevecenvesessauedvevccuasdesceueuee 6 Summary Gt C onmag ena ee ar eee er Pe cere on nn Beran eee e ener peat 8 E OE UPS oes iw dd cde E EEE A E A T A EE 10 Document Change LO ccccccc ccc ccc ec cece eee ee acca eeae sessesssessseseseseies eee 20 C628 Enhanced JPEG Module USER MANUAL PART I Hardware Overview The Purpose of this document is the description of the features functions and interfaces of C628 Enhanced JPEG Camera Module The Enhanced JPEG Module is a small ligh
18. current operation mode C628 Enhanced JPEG Module USER MANUAL ID Oxlf Description Request the current operation mode Parameter n a ID Command Oxaa 00 1f 73 aa Parameter Command n a Return from the JPEG Module 0x01 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 0x08 Playback Playback the taken pictures and video Example Request the current operation mode Host Oxaa 00 1f 73 aa Wait for Resopnse Camera Oxaa 01 1f 05 79 aa Length of the return I byte Command ID to ACK OxIf 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 1x 45x Default 30x ID Command Oxaa 02 32 88 aa Parameter Command Oxaa Z3Z ZZ ChyChy aa Z3Zy Resolution 0x00 1280 x 960 0x01 640 x 480 Z Zo Compression ratio 0x00 Ox2c for 1x 45x Default 0x18 Ch Chp Checksum Return from the JPEG Module 0x00 OK 0x01 Failed 0x02 USB mode For example Set 1280 x 960 for the picture resolution and 45x for the compression rati
19. e USER MANUAL Electrical Characteristics Operation at DC 5 0V Condition Min Max Units Standby 1 mA Idle Peak downloading 170 175 mA Capture JPG Peak capturing 250 281 mA Capture AVI Peak recording 250 302 mA TV output Condition Min Max Units Standby 1 mA Idle Peak downloading 170 175 mA Capture JPG Peak capturing 250 281 mA Capture AVI Peak recording 250 302 mA Playback JPG 188 218 mA Playback AVI 205 225 mA Page 2 of 30 Rev 1 1 C628 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 5V 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 depenpent on the memory size with two optional resolutions 640 x 480 30fps 320 x 240 30fps in AVI Audio Video Interleave format which is currently the most common file format for storing audio video data The JPEG Module provides different compression ratios to users from 1x 45x Storage The JPEG Module features a 16MB 16M x 8
20. eturn 7 bytes Command ID to ACK 0x04 Return 0x07d5 Year 2005 0x04 Month 04 OxOf Day 15 0x17 Hour 23 Oxle Minute 30 0x05 Second 05 2005 04 15 23 30 05 Checksum 0x81 Page 9 of 30 Rev 1 1 C628 Enhanced JPEG Module 5 0x05 Select the light frequency USER MANUAL ID 0x05 Description Select the light frequency Parameter 50Hz Default 60Hz ID Command Oxaa 01 05 Ch Cho aa Ch Chp Checksum Parameter Command Oxaa ZZ Ch Chy aa Z Zo Light frequency 0x00 50Hz 0x01 60Hz Ch Cho Checksum Return from the JPEG Module 0x00 OK 0x01 Failed Example Select the light frequency 60Hz Host Oxaa 01 05 5a aa Oxaa 01 55 aa Wait for OK Camera Oxaa 01 05 00 5a aa Length of the return I byte Command ID to ACK 0x05 Return 0x00 OK Checksum OxSa 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 Parameter Command Oxaa ZoZg ZL ZsZ4 Z3Z2 Z Zo Ch Cho aa ZoZg White Balance 0x00 Normal Default 0x01 Day Light 0x02 Tungsten 0x03 Fluorescent 0x04 Cloudy ZyLe EV 0x00 0x08 represent 2 0 2 0 in step of 0 5 Default 0x04 ZsZ4 Contrast 0x00 Normal Default 0x01 Stretch Z3Zy Color Effect 0x00 Normal Default 0x01 B amp W 0x02 Sepia Z Zo Sharpness
21. f the sum of all the other bytes in the corresponding command It is used for the verification of the command ID Command is a fixed five byte command containing the command ID the length of the parameters in the following parameter command and the checksum 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 OxSe Oxaa 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 Oxaa 0x07 0x03 Oxaa 0x15e Ox5e Parameter Command is a varied length command containing the parameters corresponding to the previous ID command such as the EV white balance value and 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
22. nect 0x08 Disconnect Example Request the connection status of the external memory Host Oxaa 00 a9 fd aa Wait for Response Camera Oxaa 01 a9 07 05 aa Length of the return I byte Command ID to ACK Oxa9 Return 0x07 connect Checksum 0x05 Page 23 of 30 Rev 1 1 176 0xb0 Synchronization signal C628 Enhanced JPEG Module USER MANUAL ID Oxb0 Description Send this command to the camera for synchronization until receiving OK Parameter n a ID Command Oxaa 00 b0 04 aa Parameter Command n a Return from the JPEG 0x00 OK Module Example Send a series of sychronization signal to the camera Host Oxaa 00 b0 04 aa Wait for Response 10ms for 115200bps Camera No response Host Oxaa 00 b0 04 aa Wait for Response 10ms for 115200bps Camera No response Host Oxaa 00 b0 04 aa Wait for Response 10ms for 115200bps Camera Oxaa 01 b0 00 05 aa Length of the return 1 byte Command ID to ACK Oxb0 Return 0x00 OK Checksum 0x05 Page 24 of 30 Rev 1 1 C628 Enhanced JPEG Module 200 Oxc8 Playback the current AVI USER MANUAL ID Oxc8 Description Playback the current AVI Parameter Play Pause Stop Fast Forward Backward ID Command Oxaa 01 c8 Id aa Parameter Command Oxaa ZZ Ch Cho aa Z Zo Playback operation 0x00 Play 0x01 Pause 0x02 Stop 0x03 Fast Forward 0x0
23. nt to the external memory Parameter File ID 2 bytes Operation Copy Move 1 byte ID Command Oxaa 03 7b d2 aa Parameter Command Oxaa ZsZ4 Z3Z Z Zo Ch Cho aa ZsZ4 Z327 File ID 0x0000 Oxffff The upper limit depend on the memory size Z Zo Operation 0x00 Copy 0x01 Move Ch Cho Checksum Return from the JPEG Module 0x00 OK 0x01 Failed 0x02 USB mode 0x03 Mode error 0x05 Not enough memory Flash 0x06 External memory card write protect 0x09 File does not exist Example Move the file of that the ID is 3854 from the resident to the external memory Host Oxaa 03 7b d2 aa Oxaa Of 0e 01 7b aa Wait for OK Camera Oxaa 01 7b 09 d9 aa Length of the return 1 byte Command ID to ACK 0x7b Return 0x09 File does not exist Checksum Oxd9 Page 21 of 30 Rev 1 1 C628 Enhanced JPEG Module 155 0x9b Select the TV Standard USER MANUAL ID Ox9b Description Select the TV Standard Parameter NTSC PAL ID Command Oxaa 01 9b f0 aa Parameter Command Oxaa ZZ Ch Cho aa Z Zo NTSC PAL 0x00 NTSC 0x01 PAL Default Ch Chp Checksum Return from the JPEG 0x00 OK Module 0x01 Failed Example Select NTSC as the TV standard Host Camera Oxaa 01 9b f0 aa Oxaa 01 9b 00 f0 aa Oxaa 00 54 aa Length of the return 1 byte Wait for OK Command ID to ACK 0x9b Return 0x00 OK Checksum Oxf0 156
24. o Host Oxaa 02 32 88 aa Oxaa 00 2c 80 aa Wait for OK Camera Oxaa 01 32 00 87 aa Length of the return I byte Command ID to ACK 0x32 Return 0x00 OK Checksum 0x87 Page 12 of 30 Rev 1 1 51 0x33 Request the current Luminance C628 Enhanced JPEG Module USER MANUAL ID 0x33 Description Request the current Luminance Parameter n a ID Command Oxaa 00 33 87 aa Parameter Command n a Return from the JPEG 9XZ3Z2 Z Zo Z3Z Z Zo Luminance Module 0x01 Failed 0x03 Mode error Example Request the current light frequency Host Camera Oxaa 02 33 00 0d 96 aa Oxaa 00 33 87 aa Length of the return 2 bytes Wait for Response Command ID to ACK 0x33 Return 0x000d Luminance 0x000d Checksum 0x96 53 0x35 Date Time Stamping ID 0x35 Description Parameter Format 2 bits Corner 2 bits Style 2 bits Enable 1 bit NC 1 bit Must be 0 Stamp the date time on the picture The format to display the date time Which corner to stamp the date time The style of the date time Enable the function ID Command Oxaa 01 35 8a aa Parameter Command b b Format 2 bits bsb Corner 2 bits b3b Style bibo Enable Ch Chp Checksum Oxaa Obb7be bsbyb3b2b bo OxCh Cho aa 00 yyyy mm dd 01 yyyy mm dd 10 dd mm yyyy 11 mm dd yyyy 00 Bottom right 01 Bottom left 10 Top right 11 Top lef
25. st 16 bits of the sum of the synchronization bytes the serial number and the file content Please notice that the checksum 16 bits in the data packet is equal to the lowest 16 bits of the sum of the synchronization 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 Oxff Transmission termination Page 4 of 30 Rev 1 1 C628 Enhanced JPEG Module Summary of Commands USER MANUAL System Configurations ID in Dec ID in Hex Function 0 0x00 Restore factory configuration 1 0x01 Shutdown 2 0x02 Request the revision identification 3 0x03 Set the system clock 4 0x04 Resquest the system time 5 0x05 Select the light frequency 6 0x06 Snapshot configuration 30 Oxle Select the operation mode 31 Oxlf Request the current operation mode 159 Ox9f Select the Baud rate 176 Oxb0 Synchronization signal JPEG Capture ID in Dec ID in Hex Function 50 0x32 Set the picture 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
26. t 00 Stamp only the date 01 Stamp only the time 10 Stamp both the date and the time 00 Enable 10 Disable Return from the JPEG 0x00 OK Module 0x01 Failed Example Stamp the date in the format of dd mm yyyy and the time on the bottom right of the current picture Host Camera Oxaa 01 35 00 8a aa Oxaa 01 35 8a aa Length of the return I byte Oxaa 88 dc aa Command ID to ACK 0x35 Wait for OK Return 0x00 OK Checksum Ox amp a Page 13 of 30 Rev 1 1 54 0x36 String Stamping C628 Enhanced JPEG Module USER MANUAL ID 0x36 Description Stamp a string on the picture 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 PosyY 2 bytes Red 1 byte Green 1 byte Blue 1 byte StringLength 1 byte String at most 11 bytes X coordinate of the string increase from left to right Y coordinate of the string increase from top to bottom Red component of the RGB value Green component of the RGB value Blue component of the RGB value Number of characters in the string at most 11 ASCII code of the characters to display ID Command Oxaa N No 36 Ch Cho aa N No Number of parameters Ch Chp Checksum Parameter Command Oxaa Zy1Zo9 ZyoZig Zi7Zi6 ZysZi4g Zy3Zj2 ZijZjo ZoLZg Z Z6 ZsZy Z3Z2 Z Zo String Ch Cho aa ZioL 8 0x00 Oxff ZZ 6 0x00 Oxff ZZ
27. tweight 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 Mini SD card interface Real time composite video data output USB mass storage Module Specifications Image Sensor MegaPixels CMOS sensor Image Processor ZORAN COACH 6E On Board Memory 64 Mb 8 Mbytes Storage External memory card up to 1GB Resident 16MB 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 1 Mass storage mode Supported OS Win2000 XP ME Power DC 5V Page 1 of 30 Rev 1 1 C628 Enhanced JPEG Modul
28. x05 Not enough memory Flash 0x06 External memory card write protect Page 16 of 30 Rev 1 1 C628 Enhanced JPEG Module USER MANUAL Example Start recording AVI Host Camera Oxaa 01 53 a8 aa Oxaa 01 53 00 a8 aa Oxaa 00 54 aa Length of the return 1 byte Wait for OK Command ID to ACK 0x53 Return 0x00 OK Checksum Oxa amp Example Stop recording AVI Host Oxaa 01 53 a8 aa Oxaa 0155 aa Wait for OK Camera Oxaa 01 53 00 a8 aa Length of the return I byte Command ID to ACK 0x53 Return 0x00 OK Checksum Oxa8 100 0x64 Select the storage media ID 0x64 Description Select the storage media Parameter Resident external ID Command Oxaa 01 64 b9 aa Parameter Command Oxaa ZZ Ch Chpy aa Z Zo Resident external 0x00 Resident 0x01 External Ch Chop Checksum Return from the JPEG 0x00 OK Module 0x01 Failed 0x02 USB mode 0x03 Mode error Example Select the external memory as the storage media Host Oxaa 01 64 b9 aa Oxaa 00 54 aa Wait for OK Camera Oxaa 01 64 00 b9 aa Length of the return 1 byte Command ID to ACK 0x64 Return 0x00 OK Checksum Oxb9 Page 17 of 30 Rev 1 1 C628 Enhanced JPEG Module 101 0x65 Format the storage media USER MANUAL ID 0x65 Description Format the storage media Parameter Resident external ID Command Oxaa 01

Download Pdf Manuals

image

Related Search

Related Contents

AZ Buch NEU.qxp - Das Forum für Familienunternehmen und  Manual  Jeep® Tandem Stroller Instructions Instrucciones para carriola  Samsung M1610N User Manual  取扱説明書③  User manual – 2013 SEDT Systems Motu  

Copyright © All rights reserved.
Failed to retrieve file