VISCA Camera Control Instructions
DOC-USR-0115-01 DRAFT
___________________________________________________________________________________________
Z3 Technology, LLC
♦
100 N 8
th
ST, STE 250
♦
Lincoln, NE 68508-1369 USA
♦
+1.402.323.0702
11
while (ret == -1)
{
again:
ret = recv(soc, (void *)receive, size,0);
Sleep(1);
}
if (ret > 0 && do_dump) {
hex_dump(receive, ret);
}
if (ret > 2 &&
(receive[1] >= 0x40 && receive[1] <= 0x4f))
{
if (ret <= 3) //need another response
{
ret = -1;
goto again;
}
}
}
int main(int argc, char *argv[])
{
int res, i;
int ch = 0, chant = 0;
SOCKET s;
char buf[255];
unsigned char cmdVisca[6][10]=
{{0x06,0x81,0x01,0x04,0x07,0x02,0xFF,0x00,0x00,0x00}, //zoom in
{0x06,0x81,0x01,0x04,0x07,0x03,0xFF,0x00,0x00,0x00}, //zoom out
{0x06,0x81,0x01,0x04,0x07,0x00,0xFF,0x00,0x00,0x00}, //zoom stop
{0x05,0x81,0x09,0x00,0x02,0xFF,0x00,0x00,0x00,0x00}, //Version Inq
{0x06,0x81,0x01,0x04,0x66,0x02,0xFF,0x00,0x00,0x00}, //Pic flip on
{0x06,0x81,0x01,0x04,0x66,0x03,0xFF,0x00,0x00,0x00}, //Pic flip off
};