Home

C1182 Video Compression Module User Manual

image

Contents

1. Pits 0 Packet Size Byte N 1 End Code 2 bytes Low byte high byte End Code gt 2 byte end code 0x55AA V1 0 4 1 4 2 4 3 C1182 USER MANUAL DATE COMMAND AA02H C1182 can accept date time stamp on the image By default D T stamp is off parameter 4 OOH User can select stamp either date or time or both Data time info will be stamped on the right hand bottom of the image This command is in YYMMDD format differ from other hexadecimal Date time info will keep update as long as the module is powered Command format e g To input date of Dec 25 2011 stamp on AA 02 11 12 2501 Note this is only good for VGA resolution video TIME COMMAND AA03H Time display is in 24Hr format Again this command is in HHMMSS format differ from other hexadecimal Command format e g To input time of 12 30 00 stamp off AA 03 12 30 00 00 Note this is only good for VGA resolution video PREVIEW COMMAND AA04H Host to issue this command for capturing a sequence of I frame or P frame continuously Once the host issues this command the module will send out the data packets continuously without any handshaking command in between In this case the amount of command data overheads and also the CPU loading at the host side can be reduced Due to the nature of this uncontrolled data transmission it is the host s responsibility to handle the received data packet in a right timing and manner START STOP Parameter 1
2. To start 01H or stop OOH the preview operation l frame Interval Parameter 2 To set the number of P frames to be inserted between successive I frames e g OOH IPPPPP first frame and then all P frames OTH T ee all l frames O2H IPIPIPIP 03H IPPIPPIPP CIC siete Packet Interval Parameter 3 To set the minimum time interval between each packet transmission It can be used to control the data rate of the video stream sending out from the module 00H Oms The next packet will be sent out immediately after the current packet is sent 01H 2 1 2ms 02H 2 2 4 ms FEH 2 254 508 ms FFH use system default CAPTURE COMMAND AA05H Host to issue this command for capture either l frame or P frame such case video format can be all l frame or any combination of I P frame such as IPIP IPPIPP etc C1182 will send out an ACK command and Data Length command to the host if the operation success Otherwise an NAK command will be sent out C1182 USER MANUAL 6 DATA LENGTH COMMAND AA06H C1182 issues this command for telling the host the size of the image data which is ready for transmitting out to the host These three bytes LOW MID HIGH represent the length of the image data User needs to calculate the number of packets by using this length data 7 GET DATA COMMAND AA07H The host can issue this command to request image data packet with desired packet ID
3. after receiving Data Length command from C1182 After receiving this command C1182 will send a data packet to the host The details about the content of the data packet please refer to the previous page in the manual 7 1 Packet ID Data packet ID starts from 0000h to FOFOh Package TD 0000h AA 06 00 00 FF FF 0001h AA 06 01 00 FF FF 0002h AA 06 02 00 FF FF 0003h AA 06 03 00 FF FF FOFOh AA 06 FO FO FF FF 7 2 Packet Number Number of packet Image size Packet size 8 8 SYNC COMMAND AA08H The host needs to send this command to sync with C1182 when power up 9 PWR CTRL COMMAND AAO9 C1182 has no sleep mode but auto off mode to save power By default it is auto off mode user can turn this mode on or off by setting the parameter of this command 9 1 Turn on off the auto off mode The module has built in timer to turn off itself if system idle more than 30sec To turn off this feature issue this command and set parameter 1 to OOH such case the module will be ON forever until power removed or receiving force power off command Command format e g Turn off the auto off feature AA 09 00 01 00 00 9 2 Power off the module User can turn off the module immediately after operation completed to save power by sending parameter 2 of OOH It doesn t care what the power mode is Command format e g Turn off the module any time AA 09 xx 00 00 00 10 ACK COMMAND AAOAH This command indicates the success of last operat
4. C1182 Video Compression Module User Manual Release Note 1 Release Aug 01 2012 www electronics123 com C1182 USER MANUAL General Description This is a series of camera modules which perform video compression and output video stream through UART port It can be attached to a wireless host and performing a remote video camera System block diagram Features Small in size 32x32mm On board VGA color sensor Lens included option 3 3V Operation Advance H 264 CODEC provide excellent image at low bit rate Simple and user friendly command Interface to external host via RS 232 UART 128Kbps max for data transfer Built in down sampling clamping and windowing circuits for VGA 640 x480 QVGA 320x240 Power saving mode power on by RS232 trigger CAR RR OR Board Layout and Pin Description The module consists of 2 boards sensor and controller board They are interconnected by using flexible flat cable They can be bind together by using 4 screws Sensor board it has been designed to be mounted in standard camera house for 32x32mm PCB Either 14mm or 20mm lens holder can be used If use C CS Mount lens just remove the lens holder and cover the holes by any means Controller board it can be mounted on the back of sensor board The 4pin 1 25mm pitch board connector is provided for UART cable Due to the high speed operation the controller board needs more space for heat dissipation and therefore the bigger housing will b
5. Get Data Get Data Packet ID 0001h AA 07 01 00 FF FF Get Last Data Packet ID XXXXh AA 07 XX XX FF FF 5 Capture P frame Capture AA 05 00 FF FF FF Get Data Packet ID 0001h AA 07 01 00 FF FF Get Last Data Packet ID XXXXh AA 07 XX XX FF FF E 6 Repeat 4 or 5 to get more I frame or P frame 7 Power off the module PWR CRT AA 09 xx 00 00 01 C1182 USER MANUAL V1 0 C1182 USER MANUAL Example 2 Preview VGA image Below is another example to preview a VGA image at baud rate 115Kb packet size of 2KB insert 30 P frame between two I frames without date time stamping on the picture and stop the preview after some time 1 Initial Command Initial VGA i Q 8 p Q 8 HOST 115K 2048 bytes AA 01 02 88 01 02 ens 2 Date time Command Date AA 02 xx xx xx 00 Time AA 03 xx xx xx 00 3 Start Preview Preview Start AA 04 01 31 FF FF 4 Stop Preview Preview Stop AA 04 00 xx FF FF 11 V1 0
6. e recommended Connector 1 25 mm pitch 4 pin single row C1182 USER MANUAL Serial Interface 1 Baud Rate C1182 use a settled baud rate 115200 bps It can be configured to other baud rate at max 128Kb Refer to the command set 0x01 2 Single Byte Timing Diagram Asingle 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 Single Byte Transmission T7 T WU NUA S S E E SF EBRI 6 Yo o Ruaan Weg 0a RS 232 single byte timing diagram 3 Command Timing Diagram A single command consists of 6 continuous single byte RS 232 transmissions Below is an example for Capture Command AA 05 01 FF FF FF J Capture Command ________ gt AA 05 01 FF FF FF PS aers psi psi pisi psi P P Stop bit S Start bit Command Summary 1 INITIAL To configure the image size quality baud rate and packet size 2 DATE Send from Host the Date info for stamping purpose 3 TIME Send from Host the Time info for stamping purpose 4 PREVIEW Command to get video frame data continuously 5 CAPTURE Command to take a frame for transmission 6 DATA LENGTH Information about the image data length 7 GET DATA Get the image data packet from module 8 SYNC Sync the host to the module 9 POWER CONTROL Turn off the module all parameter reset 10 ACK Command
7. into 2 parts l frame and P frame Format IPH where is for l frame and P for P frame Compression rate can be set from OH FH The bigger the number the higher compression or smaller image size Higher compression will result the poor image quality 1 3 Baud Rate Parameter 3 Default baud rate is 115 2Kb but user can set this to other baud rate after connection After change user needs to change host baud rate before connection C1182 USER MANUAL 1 4 Packet Size Parameter 4 C1182 can support 4 different Data Packet Size as below 512 Bytes O1H 2048 Bytes 4096 Bytes 8192 Bytes The host issues this command to change the size of data packet which is used to transmit image data from the C1182 to the host This command should be issued before sending Capture command or Get Data command to C1182 1 4 1 Data Packet Content For Capture Command B Byte N 1 yte0 Packet Size yte N I M Ch Data Size Reserved Verify Code 2 bytes 2 bytes 2 bytes Low byte high byte OxFFFF Low byte high byte gt Actual size of available image data in the packet gt Error detection code equals to the lower byte of sum of the whole data packet except the verify code field The higher byte of this code is always zero Verify Code i e verify code low byte sum byte 0 to byte N 3 packet size Note The size of the last data packet varies for different image 1 4 2 Data Packet Content For Preview Command
8. ion After receiving any valid command ACK command must be sent out except when getting image data 10 1 Command ID The command with that ID is acknowledged by this command 10 2 ACK Counter ACK counter indicates the amount of ACK 7 V1 0 11 NAK COMMAND AAOBH This command indicates corrupted transmission or unsupported features 11 1 NAK Counter Parameter 1 NAK counter indicates the amount of NAK 11 2 Error Number Parameter 2 Number Description 01H Parameter 1 error 02H Parameter 2 error 03H Parameter 3 error 04H Parameter 4 error 05H Command ID error 06H Picture not ready 07H Packet ID error C1182 USER MANUAL V1 0 C1182 USER MANUAL Command Protocol SYNC Command Before the host to talk to module host needs to send SYNC command until receiving ACK command from the module If connection is good usually ACK command will be received within 10times of SYNC command SYNC HOST AA 08 00 00 00 00 AA 0A 08 02 FF FF Synchronize complete Example 1 capture a QVGA image Below is an example of getting a QVGA image at baud rate 115Kb packet size of 2KB with date time stamping on the picture power off the module after completion 1 Initial Command Initial QVGA i Q 8 p Q 8 HOST 115K 2048 bytes AA 01 01 88 02 02 ens 2 Date time Command Date AA 02 11 12 25 01 Time AA 03 12 30 00 01 3 Capture frame Capture 9 V1 0 4
9. to indicate the communication success 11 NAK Command to indicate the communication fail with error code Power control of the module The module power is controlled by UART When power is applied to the module and UART cable is connected the module will not operate by itself To power on the module issue Sync AA08 command to turn on the module and start operation When Power Off AA09 command is sent the module will cut the power and the standby current will be less than 1mA If by accident the host to activate the module and no other operation the module will consume power until power disconnected C1182 USER MANUAL Command Set The C1182 module supports total 11 commands for interfacing to host as following owe wo n SS rm ei poer wow Sr See eee oe omn anos perme et ere ert Data Ea BE Length Byte Length Byte Packet ID Packet ID Auto OFF pi H ON urh 1 INITIAL COMMAND AA01H The host issues this command to configure the image size quality baud rate and data packet size After receiving this command the module will send out an ACK command to the host if the configuration success Otherwise an NAK command will be sent out 1 1 Image Size Parameter 1 To define image size Note that the bigger the image size the longer transmission time for one picture QVGA 320 x 240 VGA 640 x 480 1 2 Image Quality Parameter 2 To define the compression rate of image It is divided

Download Pdf Manuals

image

Related Search

Related Contents

Philips SWV3533W 3 ft HDMI-HDMI Cable  講演資料1  MANUEL D`UTILISATION Hygrothermomètre, Modèle RH10  INSERT 60 DE RAIS  

Copyright © All rights reserved.
Failed to retrieve file