• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2427
  • Last Modified:

EVI-D31, VISCA protocol

I have a Sony EVI-D31 camera. I want to control the movement of this camera with an application written in Visual Basic 5.
I have the command list for controlling the cam, but I don't know the VISCA protocol.
How do I initialize the communication?
It is neccesary to send any string before or after the command?

Thanks in advance for your colaboration,

Best regards

Sergio Preciado
TECISA'74
0
tecisa74
Asked:
tecisa74
1 Solution
 
tecisa74Author Commented:
Adjusted points to 200
0
 
mitrakisCommented:
Hi,

the VISCA protocol was developed by SONY.
The most important thing to know is that each command is answered with an acknowledge (ACK) and after its completion the controller sends completion message (or error message).
In case you send an inquiry, an ACK is sent by the camera controller and after completion an inquiry message (or error message) is sent !

The command list you have IS the VISCA protocol =;-))
To start communication via COM-Port, just use a simple terminal program like "tera term pro".

(I just have the list for a EVI-G21 here, but this works also !)

Example:
- cam is connected to COM1
- switch cam on (let pan/tilt initialize until ready)
- from the terminal sent the following strings exactly as I post it here, to initialize camera

88 30 01 FF (sets the address of camera. If only 1 cam connected, address is 1)
88 01 00 01 FF (resets the command buffer of the EVI-D31

then, you can send almost every command or inquiry you want.

Another simple example, let us move the camera to the maximum left down position, with high speed:

81 01 06 02 7F 7F 0C 03 02 06 0E 01 09 03 FF

The contoller receives the command and immediately sends ACKNOWLEDGE or better:
90 41 FF (or 90 42 FF) it depends which command buffer has received the command

after completing the movement, the controller send completion:
90 51 FF (or 90 52 FF) see above for further info

if an error occured, you'll get:
90 60 xx FF where xx is an described error code.

I've already developed a remote control for exactly this camera =;-)
In addition to this, I wrote an applet to control it via internet.

If you wanna have a look on it, please visit:
http://bvlab12.fh-reutlingen.de

If you want further details, please contact me via email:
mitrakis@bvlab.fh-reutlingen.de

Best regards
-Stavi-
0
 
qlongCommented:
mitrakis ,can you tell me the list of the codes of EVI-D31 and connection level  between computer serial port and EVI-D31,example 1 to 1 or 1 to 6 .Now I want to write a programme with C++Builder to control the camera.Thank you!

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now