Host communication protocol
Note
This demo is based on a 5MP camera
Communication protocol block diagram
Start |
Command |
Parameter |
Stop |
---|---|---|---|
0X55 |
CMD |
parameter |
0xAA |
Communication protocol command
CMD |
Command effect |
parameter |
---|---|---|
0x01 |
Set camera resolution |
|
0x02 |
Start streaming mode |
|
0x03 |
Set brightness |
|
0x04 |
Set contrast |
|
0x05 |
Set saturation |
|
0x06 |
Set EV |
|
0x07 |
Set white balance |
|
0x08 |
Set special effects |
|
0x09 |
Focus control |
|
0x0a |
Exposure control |
|
0x0b |
Gain control |
|
0x0c |
White balance control |
|
0x0d |
Manual gain |
|
0x0e |
Manual exposure |
|
0x0f |
getting information |
Get the basic information of the camera. For example: the resolution supported by the camera, whether the camera supports auto focus |
0x10 |
Taking Pictures |
|
0x11 |
Set sharpness |
|
0x12 |
Debug mode |
|
0x21 |
Stop streaming mode |