background image

 
 

 

 

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 

13 

      serv_addr.sin_port = htons(portno); 

      if (connect(s,(struct sockaddr *) &serv_addr,sizeof(serv_addr)) < 0)  

      { 

          printf("ERROR connecting\n"); 

          return -3; 

      } 

      printf("connected!\n"); 

   } 

  if (s != INVALID_SOCKET) { 

        help(); 

        while ( 1) { 

            ch = _getch(); 

            if (ch == 'i' || ch == 'I')  

            { 

                printf("Zoom In\n"); 

                visca_send(s, cmdVisca[0]); 

                visca_receive(s,buf,sizeof(buf), 1); 

            } 

            if (ch == 'o' || ch == 'O') 

            { 

                printf("Zoom Out\n"); 

                visca_send(s, cmdVisca[1]); 

                visca_receive(s,buf,sizeof(buf), 1); 

            } 

            if (ch == 67) //Right 

            { 

                //printf("Right\n"); 

            } 

            if (ch == 68) //Left 

            { 

                //printf("Left\n"); 

            } 

            if (ch == 86 || ch == 118 ) 

            { 

                printf("Version Inq\n"); 

                visca_send(s, cmdVisca[3]); 

Summary of Contents for HE4K-DCK-10

Page 1: ...d ZEUS are registered trademarks of Z3 Technology LLC Sony is a registered trademark of Sony Corporation This document contains proprietary information of Z3 Technology LLC Z3 This document may not be...

Page 2: ...__________________________________________________________________________________________ Z3 Technology LLC 100 N 8th ST STE 250 Lincoln NE 68508 1369 USA 1 402 323 0702 2 REVISION HISTORY Version Da...

Page 3: ...GENERAL DESCRIPTION 4 2 0 CAMERA CONTROL VIA VISCA 5 2 1 Connect and Power Up the Unit 5 2 2 Access the User Interface Using ZFinder 6 2 3 Com2TCP Setup 7 2 4 Camera Controller Software 8 2 5 Example...

Page 4: ...including cameras that support Sony s VISCA protocol VISCA commands can be sent from a remote PC using the same IP connection that carries the video Control actions include zoom focus aperture and mo...

Page 5: ...n addition to the Z3Cam 4K a Windows PC a 12V power supply and an Ethernet cable are required 2 1 Connect and Power Up the Unit 1 If you are using the HE4K DCK 10 OEM system connect your compatible ca...

Page 6: ...t any firewalls or security programs on your PC The ZFinder window appears and completes a scan of the network ZFinder then lists all Z3 systems connected to the network The Z3 unit appears 6 Click on...

Page 7: ...upporting remote access and is available online 2 Launch the Com2TCP application 3 Set the Remote IP field to the IP address of your Z3 unit This can be found using ZFinder or as the URL of the web br...

Page 8: ...oftware onto your PC 8 Launch the controller software application 9 Set the port name to match the COM Port selected previously 10 Set the Baud Rate to 9600 11 Save these settings 12 Reference your ca...

Page 9: ...e your own Below is a simple example application on how to send VISCA commands from a Windows PC to the Z3 unit The following example code connects to the TCP socket of the Z3 unit and is capable of s...

Page 10: ...f 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...

Page 11: ...ve 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 0x...

Page 12: ...e exit 1 else int portno 1000 n struct sockaddr_in serv_addr WSADATA wsa printf nInitialising Winsock if WSAStartup MAKEWORD 2 2 wsa 0 printf Failed Error Code d WSAGetLastError return 1 open tcp sock...

Page 13: ...portno if connect s struct sockaddr serv_addr sizeof serv_addr 0 printf ERROR connecting n return 3 printf connected n if s INVALID_SOCKET help while 1 ch _getch if ch i ch I printf Zoom In n visca_se...

Page 14: ...E 68508 1369 USA 1 402 323 0702 14 visca_receive s buf sizeof buf 1 if ch f ch F printf Flip On n visca_send s cmdVisca 4 visca_receive s buf sizeof buf 1 if ch n ch N printf Flip Off n visca_send s c...

Reviews: