Home

- MATEC Web of Conferences

image

Contents

1. IP address port number Each TCP connection is only determined by the two endpoints of communica tion 9 TCP IP socket provides three types of sockets the stream socket the datagram socket and the original socket The MFC library of Visual C 6 is a series of C class in which it encapsulates all kinds of functions to write applications for Microsoft Win dows operating system The network communication between server and the client in this paper is realized by using stream socket based on TCP connection oriented protocol programming the working princi ple is shown in Figure 5 Figure 6 Waveform of the 75 color bar signal We use the MFC control and C language to pro gram a network communication panel and a virtual panel of VM700T When we have successfully built communication between the client and the server by Create video collection resources Set the video acquisition callback mechanism Open the video capture device Set the image format Start the local preview Figure 7 Video capture process inputting the right IP address and port number we can click the virtual panel of VM700T and call the related function to send control command For example if we click the wave button then it calls the function OnWave And by calling the function Senddata it can send the command hardkey Waveform to the server then the server passes the control comm
2. Files Microsoft SDKs Windows v6 0A Include win32 mak gt When we come across the error NMAKE fatal error U1073 and don t know how to make jconfig h we need to change the jconfig vc into jconfig h If it shows NMAKE fatal error U1077 cl EXE and return code 0xc0000135 we need to input vcvars32 and enter Then it shows that lines of characters and starts are to generate the library We can start to compress and decompress after adding the libjpeg lib into the object library module The procedures of compression and decompression are alike except that the compression object is a jpeg compressed _ structure while the decompression object is a jpeg decompressed_ structure When it is tested as an independent module by using this method the image compression rate can reach 5 and it can effectively reduce redundancy and improve the trans mission rate We can merely see no difference be tween the compressed image and the original one through our naked eyes and it has better effects of display 4 3 Network transmission of the image In this paper we use the thread function method to achieve the image transmission program Thread 1s the control flow of a single order in the process Every program has at least one thread If there is only one thread then it will be the program itself The specific implementation is to add a thread function SendFile Proc LPVOID IpParameter into SERV
3. is of great flexibility Thus it can meet the need of devel oping video application program 10 Start the video data acquisition To get and process the video stream data Continue gt N Stop the video acquisition Turn off the video equipment and release resources 03001 p 4 ICETA 2015 We use the AVICAP DLL which is one of the six modules of the VFW software development kit to realize image acquisition in this paper It is a dynamic link library file that the Microsoft Corp provided for video acquisition The real time acquisition of video data is realized mainly by calling the AVICap32 dll to create the AVICap window class We can easily add the function of video capture to our applications through the AVIcap The AVIcap supports for re al time video stream capture and single frame image capture The image acquisition of this system is real ized by calling the vfw32 lib library function in the VFW software development package and the specific process is shown in Figure 7 In this paper the current frame is saved as BMP bitmap file by calling capFileSaveDIB function after being captured BMP Bitmap is a standard im age format in the Windows operating system It is supported by all kinds of image processing softwares running on Windows environment Bitmap occupies more space in memory so in order to reduce system response problems caused by limit of network trans mission bandwidth and fr
4. ERDIlg cpp and then call this thread function in sending function OnSendFile We defined a data packet class structure specially used for file transmission in the program and the member variables include packet type file size data buffer and commands for file sending We use packet to send file data in the thread function the first 128 bytes in the buffer are used to store the file name and then followed the file data when the file starts to be sent The file transmission will be finished when the other side refuses to receive file When we send the last packet we must also send the ending com mand Figure 8 shows the file transmission process in detail 5 SYSTEM TESTING The communication and control procedures which are described in this paper are applications running on the Windows operating system and they are based on the PC machine The programming language is C and the development environment is Microsoft Visual C 6 0 We use a great deal of MFC Microsoft Foun dation Classes object usage in the establishment of the VM700T control panel and the programming pro cess of network communication We also use an Ac tiveX control MSComm Microsoft Communica tions Control for serial communication programming in the Windows system We designed and imple mented a software platform which can capture and transmit images effectively and reliably by using the MFC control and employing the TCP IP network transmission protocol wh
5. MATEC Web of Conferences 22 03001 2015 DOI 10 1051 matecconf 20152203001 Owned by the authors published by EDP Sciences 2015 Research and Implementation of Software Used for the Remote Control for VM700T Video Measuring Instrument Wenjie Song amp Wenhui Zhang Information Engineering School Communication University of China Beijing China ABSTRACT In this paper the measurement software which can be used to realize remote control of the VM 700T video measuring instrument is introduced The authors can operate VM700T by a virtual panel on the client computer select the results that the measuring equipment displayed to transmit it and then display the image on the VM 700T virtual panel in real time The system does have some practical values and play an im portant role in distance learning The functions that the system realized mainly includes four aspects the re al time transmission of message based on the socket technology the serial connection between server PC and VM700T measuring equipment the image acquisition based on VFW technology and JPEG compression and decompression and the network transmission of image files The actual network transmission test is shown that the data acquisition method of this thesis is flexible and convenient and the system is of extraordinary stability It can display the measurement results in real time and basically realize the requirements of remote control In the content this paper includes
6. Network connections among client and server and transmission of instructions The remote control system is actually a C S program the server program is placed in the computer being controlled and the client is placed in the control ter minal When the programs have been successfully installed both on the client and server the client will start to search a remote computer which had been installed with a server program from the network The establish connection Request data Deal with the request Response data Finish connection TCP server Block until a client connection client send messages calling for connection and the connection between two PCs is established then you can realize the remote control through the TCP IP internet protocol 8 In this paper we can control the VM 700T video comprehensive measuring instrument by operating a virtual control panel on the client side and the communication process needs the network and serial connection to be achieved TCP Transmission Control Protocol which is connection oriented providing a reliable delivery service and a full duplex communication is a transport 03001 p 3 MATEC Web of Conferences layer protocol based on IP Each TCP connection has only two endpoints and the endpoint which TCP con nected is not the host but the Socket or called as Jack According to the definition of RFC 793 the port number and the IP address form socket socket
7. a summary of principle the detailed introduction of the system realization process and some related technology Keywords VM700T remote control network communication VEW MFC 1 INTRODUCTION measuring instrument and ensure it works through the remote control software Thus a software system for In the technological fields of radio and TV industry in remote operation is of great value and necessity order to guarantee the quality of video and audio sig nals to reach the industry standard the whole process of production processing transmission video and audio measurement equipment are widely used for the detection of signal monitoring VM700T A as a fully functional video surveillance and video measuring instrument plays an important role in student s teach ing and experiment in scientific research First when operating in the laboratory by themselves after a theo retical course students can not only carry out the re al time observation and accurate measurement of the video signal by using the instrument but also combine the theory and practice with improvements of using proficiency of the instrument Second the teachers scientific research topics can be also efficiently com bined with the equipment such as some testing work for a variety of industrial measuring signals and vari ous commercial products or developments and de signs of large system It also promotes the develop ment and innovation of the research in this fi
8. al work is properly cited Article available at fitto www matec conferences orq or MATEC Web of Conferences the intelligent instrument can be used to achieve the data communication with a computer via the commu nication interface 3 The Tektronix Inc website pro vides the users two applications on VM700T One is the VM700T terminal user program and another is the application that provides data services for the local area network 4 The communication connection of the server termi nal and the VM700T video comprehensive test in strument in this system is realized through the RS 232 serial port on the rear panel of the VM700T It is shown in Figure 2 F Figure 2 RS232 serial line As shown in Figure 3 VM700T is equipped with two RS 232 interfaces One can be connected with the serial printer to print and output the measurement results another can be connected with an external computer or a terminal to realize control function 5 In addition the Tektronix Inc provides the RS232 Fan exhaust Figure 3 Rear panel of VM700T programming manual of VM700T video measurement instrument for the users VM700T Video measure ment Set RS 232 Interface The manual includes some descriptions of programming for controlling and communicating via the RS 232 interface of the ma chine 6 7 3 THE SYSTEM FRAMEWORK The system is a C S structure on the client two panels for VM700T instrument operation and network c
9. ame loss we need to com press the data In this paper we use the JPEG com pression The JPEG image compression has so many advantages such as the adjustable compression ratio and the higher compression rate Furthermore because of good support for JPEG standard the compressed data on the receiving end can be directly conversed It is of great effect and saves a lot of resource The VFW library does not directly support the JPEG compression thus we have to generate a Libjpeg lib database file from the command line be fore the JPEG compression The libjpeg which in cludes the widely used JPEG encoding JPEG decod ing and other JPEG features is a library entirely writ ten in C language Most people choose to use the JPEG source code to compile and generate a library file It makes the libjpeg much easier to directly pro cess images in memory without using file operations The steps to generate the libjpeg lib by using com mand lines are shown as follows Download the source code of the libjpeg Run the CMD window and enter the directory Run the command nmake f makefile vc nodebug 1 If it shows nmake is an interior or exterior command then we should input path C Program Files Microsoft Visual Studio 9 0 VC bin If it shows makefile ve lt 11 gt fatal error U1052 file win32 mak not found we can open the makefile vc file and change the twelfth line into Hnclude lt C Program
10. and to VM700T The result displayed on the screen of VM700T is shown in Figure 6 Here we use the 75 color bar signal 4 2 Image acquisition compression and decompres sion of VM700T measurement results There are two methods of the VM700T interface col lection video stream and pictures We use pictures in this paper namely using the computer camera to cap ture a single frame of image It can avoid high bit rate and high bandwidth which the real time video stream acquisition needs and it can be also used to reduce the hardware requirements for equipment At present we generally adopt two ways to develop video applica tions in the Windows platform One is based on the two software development kit SDK which is at tached to the video capture card The advantage of this approach is that it is convenient for application and easy to realize But it has strong dependence on hard ware and it often can t fully meet the needs of the development of engineering video applications An other method is based on VFW The VFW is a soft ware toolkit which is provided by Microsoft Company to develop the video applications based on the Win dows platform It also provides a series of application programming interfaces API by which users can conveniently realize some general functions such as video capture video editing and video playback It has the characteristic that we don t need specialized hardware devices when playing the video and it
11. eld 2 ASIMPLE INTRODUCTION OF VM700T VIDEO MEASURING INSTRUMENT hI S Se Figure 1 VM700T video measuring instrument VM700T is a fully functional video surveillance and through a continuous in depth study 1 The network teaching is becoming more and more widely used due to the rapid development of network technology and the distance learning conveniently and efficiently solves many problems caused by some unexpected factors In some courses the real time display can help students understand the content of class more profoundly In addition when the individ ual part of the operating panel on the VM700T meas uring instrument is damaged we can still control the Corresponding author wenjieisss 163 com video measuring instrument with plenty and complete options the operation is simple and convenient It can be used to measure some basic parameters of video and audio signals such as reflection loss insertion gain signal to clutter ratio linear distortion nonlinear distortion and data frame structure error jitter of SDI signals 2 It is shown in Figure 1 VM 700T made by Tektronix Inc can be used to accurately and quickly test video index utilizing digi tal measurement and analysis techniques VM700T as This is an Open Access article distributed under the terms of the Creative Commons Attribution License 4 0 which permits unrestricted use distribution and reproduction in any medium provided the origin
12. en Jin 2014 Using VFW and simple camera to realize image acquisition and processing In Delphi Computer Programming Skills and Mainte nance 03001 p 8
13. gnal s PanelDialog YM700T Wave Picture Measure Source Freeze A B 6i Average Menu Help Configure Function Copy Selectline Control Knob up o Move Expand Direction Display Graticule k Figure 12 Vector diagram of the 75 color bar signal the server sends them to VM700T after receiving the instructions After the video measuring device re sponses the server side PC captures the results of VM700T by using its camera and then sends the im age to the client The client receives the image file for storage and real time display For example we use the 75 color bar signal in this test and the final wave form and vector diagram which are displayed at the client are shown in Figure 11 and Figure 12 6 CONCLUSIONS In this thesis the authors designed and implemented a system which realizes effective remote control of the video measuring instrument VM700T by operating the virtual panel on the client And the functions include the real time transmission of control command the serial connection between server PC and VM700T measuring equipment the image acquisition based on VFW technology and JPEG compression and decom pression and the network transmission of image file We do realize the achievement of remotely controlling the VM700T measuring equipment via the network connection of client and server and the serial connec tion between server and VM 700T The
14. ich is widely used In order to verify the performance of the system we use the TG8000 signal generator to generate a 75 03001 p 5 MATEC Web of Conferences GS Establish connection with the client Choose the file to be sent r Exist gt N y E lt sending gt Figure 8 File transmission process color bar signal to test and display the signal wave form and vector diagram in this paper The diagram of system connection is shown in Figure 9 We also need to manually set the serial port number and baud rate of VM700T video measurement instrument after having established connections TG8000 VM700T CLIENT Figure 9 Diagram of system connection For the start we should click the Configure but ton on the panel of VM700T then click the Config ure Files button and the Communication Setup Files icon The remote control port must be chosen to the serial line interface and the Message Display option must be chosen to Remote If VM700T is working in the no protocol mode non SLIP interfacing should be set to terminal Set the baud rate to 9600 the flow Control of hardware to CTS RTS and the flow Control of software to XON XOFF Set the it Create a thread to send the file Send the first data packet ps Theclient eceives ly Subcontract to send last one lt data bit t
15. o 8 the Reset Character to none and the Carrier Detect to disable We can start to test after running the communication program and input the command of control Program start Server Receive the commands open the serial port and send Linked network the command to VM700T Connection Server Capture the result successful Y Server Send the icture to the client Client send control command successfully gt sent Client Save and present the picture Figure 10 Flow chart of the remote control system Figure 10 shows the flow chart of the whole remote control system First we run the server side program and start listening and then run the client program to generate the dialog box for the network connection and the virtual panel of the VM700T video measuring instrument The network connection will be estab lished by inputting the right IP address and port num ber of the server computer Then we can call the VM700T virtual panel to send control commands and 03001 p 6 ICETA 2015 f PanelDialog a M700T Wave Vector Picture Measure Source Freeze A B c Average Menu Help Configure Function Copy Selectline Control Knob Move Expand Direction _up 0 Display Graticule Figure 11 Waveform of the 75 color bar si
16. om munication should be established The server comput er is connected with VM700T via RS232 serial port The whole working process is as follows At the be ginning the server should listen on specified terminal and open the serial port of VM700T then the client sends a connection request the server starts to connect after having received the request then the client sends control command when has received the successful connection response the server computer will send the instructions it received to VM700T through the serial port and then it will send the result that the VM700T measured after image acquisition and compression through network back to the client Then we can de compress preserve and display the images after suc cessfully received on the client side The overall re mote control function of VM700T can be achieved ultimately The remote control system can be divided into net work connection between client and server and trans mission of control command module image acquisi tion compression and decompression of VM700T measurement results module the serial connection of server and VM700T module network transmission of the image module see Figure4 PortO Alarm Port 1 connector RS 232 ports Parallel printer port 03001 p 2 ICETA 2015 Figure 4 Functional modules of the system TCP client Connect Figure 5 Working principle of stream sockets 4 DESIGN OF THE SOFTWARE SYSTEM 4 1
17. results of VM700T can be captured transmitted and displayed in real time and this system can be effectively used for actually experimental operation after debugging and some actual network tests It can be also used to avoid some inconveniencies caused by the time region or damaged instrument thus it plays an important role in distance learning REFERENCES 1 Xiuhua Jiang amp Yonghui Zhang 2007 Digital Televi sion Broadcasting Principle and Application Beijing People s Posts and Telecommunications Press 9 2 Shanyi Chen 2008 Digital Video Measurement Applica tion Technology Beijing People s Posts and Telecom munications Press 3 3 Tektronix VM700T User Manual EB OL U S 03001 p 7 4 5 6 7 MATEC Web of Conferences Ruiling Zhu 2002 Data communication between VM700T and microcomputer TV technology Ninth to tal 243rd period Li Chao Hu Shunbi et al The control system between transformer tester and host computer based on VC and MFC The 3rd International Conference on Innova tive Computing Information and Control ICICIC 08 Tektronix VM700T video measurement set RS 232 interface EB OL U S Tektronix VM700T Serial Video Measurement Set EB OL U S 8 Realization of remote control technology using VC6 0 http wenku baidu com view c7b48763ddccda383 76baf 9e html 9 Xiren Zhang Computer Networks Fifth Edition Elec tronic Industry Press 10 Gang Cheng amp Yir

Download Pdf Manuals

image

Related Search

Related Contents

FASTTRAK - Promise Technology, Inc.  SEPPmail Benutzerhandbuch  UMP300 User manual .cdr  Motorola HS850 Car Video System User Manual  Nilfisk-Advance CS7000 - Industrial Cleaning Equipment  DT-311A Manual - AutomationDirect  Philips docking speaker with Bluetooth® AD620  - Oracle Documentation  Marbella N72 User Manual  

Copyright © All rights reserved.
Failed to retrieve file