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
10
int status;
void usage()
{
printf("Usage: z3visca cameraip port\n");
}
void help()
{
printf("The Following key combinations are supported:\n");
printf("\tI:\t Zoom In\n\tO:\t Zoom Out\n\tSpace:\t Stop Zoom\n\tV:\t Prints version inquiry\n\tF:\t Sets
picture to fliped\n\tN:\t Sets picture to normal.\n\tH:\t Prints this message\n\tX:\t Exits\n");
}
void hex_dump(void *hex, int size)
{
int i;
char *hex_c = (char *)hex;
for (i = 0; i<size; i++)
{
printf("%02x ", hex_c[i] & 0xff);
if ((i+1 % 16) == 0 )
printf("\n");
}
printf("\n");
}
int visca_send(SOCKET soc, char *cmd)
{
send(soc, &cmd[1], (size_t)cmd[0],0);
}
int visca_receive(SOCKET soc, char* receive, int size, int do_dump)
{
int ret = -1;