With the rapid development of economy and society, various traffic and public order issues are increasingly prominent,in modern society,people are taking more attention to the safety of work and life environment, so video surveillance has become an integral part of modern societyitems, it is playing an increasingly important role in common life.The PTZ is an important component of video surveillance.
This paper describes the use of Pelco_D protocol prepared by Visual C++ 6.0 control procedures, by sending control commands through the serial port, to achieve PTZ rotation speed and rotation direction, zoom close, zoom far, larger aperture, smaller aperture, focus near, focus far the control of a series of functions.At the same time, it makes a brief introduction on the use of Visual C++ 6.0 and some basics,PTZ control and conduct the actual functional test,essential to achieve the above functions.
Keywords: Pelco_D Protocol, PTZ, communication of serial port.