CN104486561A - Matrix control system based on Python - Google Patents

Matrix control system based on Python Download PDF

Info

Publication number
CN104486561A
CN104486561A CN201410851470.9A CN201410851470A CN104486561A CN 104486561 A CN104486561 A CN 104486561A CN 201410851470 A CN201410851470 A CN 201410851470A CN 104486561 A CN104486561 A CN 104486561A
Authority
CN
China
Prior art keywords
matrix
order
module
protocol
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410851470.9A
Other languages
Chinese (zh)
Inventor
康晓林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vtron Technologies Ltd
Original Assignee
Vtron Technologies Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201410851470.9A priority Critical patent/CN104486561A/en
Publication of CN104486561A publication Critical patent/CN104486561A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

The invention relates to a matrix control system based on the Python. The matrix control system based on the Python comprises an instruction receiving module, a protocol conversion module and an instruction sending module. The instruction receiving module receives a matrix switching instruction issued by a control software, then the matrix switching instruction is sent to the protocol conversion module, the protocol conversion module converts the matrix switching instruction into a matrix control protocol instruction recognized by a matrix, then the converted matrix control protocol instruction is sent to the instruction receiving module, and the instruction receiving module sends the matrix control protocol instruction to the instruction sending module. The instruction sending module builds connection with the matrix according to the control method of the matrix and then sends the matrix control protocol instruction to the matrix. The matrix control system based on the Python carries out programming through the Python language, it is not needed to recompile the whole control software when a new matrix specification and control mode are added, the Python language is easy to learn, use, modify and debug, operation can be carried out without professionals, and the matrix control system based on the Python is easier to popularize.

Description

A kind of matrix control system based on Python
Technical field
The present invention relates to Inverse problem field, more specifically, relate to a kind of matrix control system based on Python.
Background technology
In video signal application, matrix is as a kind of signal switching apparatus, requisite often.Due to matrix, producer is numerous, its control protocol and control mode ever-changing, therefore, the control software design designing a flexible compatible numerous model matrix of energy is vital.At present conventional method is that the matrix majorization agreement for each model writes a plug-in unit (dll file or lib file), is loaded by control software design, and generates the corresponding table of a matrix model and target plug-in.Meanwhile, control software design provide several conventional control mode as selective in TCP, UDP, serial ports etc.When needs issue control switching command to matrix, select corresponding control mode and matrix model, control software design finds corresponding target plug-in according to model, the passage bridge interface of invocation target plug-in unit generates corresponding control command code, then by corresponding control mode, control command code is issued, and then realize the switching controls to matrix.
Although existing method implements fairly simple, it has following shortcoming.The first, plug-in unit realizes often needing to use professional language to realize, and as C/C++, C#, VB etc., needs professional and realizes, for amateur developer, have certain technical difficulty; The second, when often increasing a kind of matrix model and control mode, all must compile whole control software design, more time-consuming; 3rd, the method extensibility is poor, and field engineering personnel are difficult to debug.
Summary of the invention
The invention provides a kind of matrix control system based on Python, the Inverse problem order that control software design can issue by the protocol conversion module in this system is converted to the discernible matrix majorization protocol command of matrix, because this system adopts Python to programme, therefore when increasing new matrix model and control mode, without the need to recompilating whole control software design.
For realizing above object, the technical scheme of collection of the present invention is:
Based on a matrix control system of Python, convert matrix majorization protocol command to for the Inverse problem order issued by control software design, comprise order receiver module, protocol conversion module and order sending module;
Wherein order receiver module receives the Inverse problem order that control software design issues, then Inverse problem order is sent to protocol conversion module, Inverse problem order is converted to the discernible matrix majorization protocol command of matrix by protocol conversion module, again the matrix majorization protocol command of conversion is sent to order receiver module, matrix majorization protocol command is sent to order sending module by order receiver module; Order sending module according to the control mode of matrix and matrix create be connected after matrix majorization protocol command is sent to matrix.
Compared with prior art, the beneficial effect of technical solution of the present invention is: the matrix control system based on Python provided by the invention, the Inverse problem order that control software design can issue by the protocol conversion module of its inside is converted to the discernible matrix majorization protocol command of matrix, because this system adopts Python to programme, therefore when increasing new matrix model and control mode, without the need to recompilating whole control software design, Python is easy to learn and use simultaneously, easily modified debugging, therefore can also operate without the need to professional, therefore more easily popularize.
Accompanying drawing explanation
Fig. 1 is the structural representation of matrix control system.
Embodiment
Accompanying drawing, only for exemplary illustration, can not be interpreted as the restriction to this patent;
Below in conjunction with drawings and Examples, the present invention is further elaborated.
Embodiment 1
The invention provides a kind of matrix control system based on Python, convert matrix majorization protocol command to for the Inverse problem order issued by control software design, as shown in Figure 1, comprise order receiver module, protocol conversion module and order sending module;
Wherein order receiver module receives the Inverse problem order that control software design issues, then Inverse problem order is sent to protocol conversion module, Inverse problem order is converted to the discernible matrix majorization protocol command of matrix by protocol conversion module, again the matrix majorization protocol command of conversion is sent to order receiver module, matrix majorization protocol command is sent to order sending module by order receiver module; Order sending module according to the control mode of matrix and matrix create be connected after matrix majorization protocol command is sent to matrix.
In such scheme, protocol conversion module preserves matrix majorization script, and matrix majorization script adopts Python to write, and the matrix majorization script write is kept in protocol conversion module in the mode of character string.
The system of this method, when starting, first carries out Python context initialization, then creates a dictionary variable, for depositing relevant information.Matrix majorization protocol command, after receiving Inverse problem order, by this order press-in dictionary, then according to the order of this Inverse problem command calls corresponding matrix majorization script generator matrix control protocol, then is sent to order receiver module by protocol conversion module.
The detailed process that wherein control software design issues Inverse problem order to order receiver module is: control software design obtains IP address and the port of order receiver module, set up TCP network with order receiver module to be again connected, control software design, when needs carry out Inverse problem, is connected by this network and Inverse problem order is handed down to order receiver module.
In such scheme, order receiver module is designed to a TCP network service thread, the process of its receiving matrix switching command is specially: order receiver module obtains the listening port of control software design, create again and monitor socket, monitor socket to connect for the network monitoring control software design, after the network listening to control software design request connects, read this network and connect the Inverse problem order sent.
Similarly, order sending module is designed to a TCP network service thread, order sending module to create with matrix according to the control mode of matrix and is connected, the process again matrix majorization protocol command being sent to matrix is specially: order sending module creates communication handle or web socket according to the control mode of matrix, then the matrix majorization order of reception is sent to matrix by communication handle or web socket.
In the present embodiment, matrix majorization protocol command is sent to order sending module by the mode of Thread Messages by order receiver module, order sending module is after receiving Thread Messages, parse matrix majorization protocol command by message parameter, then this order is sent to matrix by communication handle or socket.
Matrix control system based on Python provided by the invention, the Inverse problem order that control software design can issue by the protocol conversion module of its inside is converted to the discernible matrix majorization protocol command of matrix, because this system adopts Python to programme, therefore when increasing new matrix model and control mode, without the need to recompilating whole control software design, Python is easy to learn and use simultaneously, easily modified debugging, therefore can also operate without the need to professional, therefore more easily popularize.
Obviously, the above embodiment of the present invention is only for example of the present invention is clearly described, and is not the restriction to embodiments of the present invention.For those of ordinary skill in the field, can also make other changes in different forms on the basis of the above description.Here exhaustive without the need to also giving all execution modes.All any amendments done within the spirit and principles in the present invention, equivalent to replace and improvement etc., within the protection range that all should be included in the claims in the present invention.

Claims (6)

1. based on a matrix control system of Python, convert matrix majorization protocol command to for the Inverse problem order issued by control software design, it is characterized in that: comprise order receiver module, protocol conversion module and order sending module;
Wherein order receiver module receives the Inverse problem order that control software design issues, then Inverse problem order is sent to protocol conversion module, Inverse problem order is converted to the discernible matrix majorization protocol command of matrix by protocol conversion module, again the matrix majorization protocol command of conversion is sent to order receiver module, matrix majorization protocol command is sent to order sending module by order receiver module; Order sending module according to the control mode of matrix and matrix create be connected after matrix majorization protocol command is sent to matrix.
2. the matrix control system based on Python according to claim 1, it is characterized in that: described protocol conversion module preserves matrix majorization script, protocol conversion module is after receiving Inverse problem order, transfer the order of corresponding matrix majorization script generator matrix control protocol according to this Inverse problem order, then matrix majorization protocol command is sent to order receiver module.
3. the matrix control system based on Python according to claim 2, it is characterized in that: described order receiver module is designed to a TCP network service thread, the process of its receiving matrix switching command is specially: order receiver module obtains the listening port of control software design, create again and monitor socket, monitor socket to connect for the network monitoring control software design, after the network listening to control software design request connects, read this network and connect the Inverse problem order sent.
4. the matrix control system based on Python according to claim 1, it is characterized in that: described order sending module is designed to a TCP network service thread, the course of work of order sending module is specially: order sending module creates communication handle or web socket according to the control mode of matrix, then the matrix majorization order of reception is sent to matrix by communication handle or web socket.
5. the matrix control system based on Python according to claim 4, it is characterized in that: matrix majorization protocol command is sent to order sending module in the mode of Thread Messages by described order receiver module, after order sending module receiving thread message, parse matrix majorization protocol command by message parameter, then this order is sent to matrix by communication handle or socket.
6. the matrix control system based on Python according to claim 4, it is characterized in that: the detailed process that control software design issues Inverse problem order to order receiver module is: control software design obtains IP address and the port of order receiver module, set up TCP network with order receiver module to be again connected, Inverse problem order, when needs carry out Inverse problem, is handed down to order receiver module by control software design.
CN201410851470.9A 2014-12-26 2014-12-26 Matrix control system based on Python Pending CN104486561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410851470.9A CN104486561A (en) 2014-12-26 2014-12-26 Matrix control system based on Python

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410851470.9A CN104486561A (en) 2014-12-26 2014-12-26 Matrix control system based on Python

Publications (1)

Publication Number Publication Date
CN104486561A true CN104486561A (en) 2015-04-01

Family

ID=52761060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410851470.9A Pending CN104486561A (en) 2014-12-26 2014-12-26 Matrix control system based on Python

Country Status (1)

Country Link
CN (1) CN104486561A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055819A1 (en) * 2007-08-20 2009-02-26 Red Hat, Inc. Method and an apparatus to conduct software release
CN101500151A (en) * 2009-02-03 2009-08-05 长峰科技工业集团公司 Video monitoring method, monitoring system and video communication controller
CN101719991A (en) * 2009-10-30 2010-06-02 深圳市迪威视讯股份有限公司 video matrix protocol converter
CN102104504A (en) * 2009-12-21 2011-06-22 中兴通讯股份有限公司 Platform and method for testing northbound interface
US20110160877A1 (en) * 2009-12-30 2011-06-30 Honeywell International Inc. Approach for switching between point types without affecting control logic
CN102289403A (en) * 2010-06-15 2011-12-21 微软公司 Script debugging
CN102402209A (en) * 2010-09-14 2012-04-04 广州致远电子有限公司 Embedded data acquisition and equipment control system
CN104090259A (en) * 2014-07-04 2014-10-08 宁波三星电气股份有限公司 Automatic gauge test platform and method based on Python script

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055819A1 (en) * 2007-08-20 2009-02-26 Red Hat, Inc. Method and an apparatus to conduct software release
CN101500151A (en) * 2009-02-03 2009-08-05 长峰科技工业集团公司 Video monitoring method, monitoring system and video communication controller
CN101719991A (en) * 2009-10-30 2010-06-02 深圳市迪威视讯股份有限公司 video matrix protocol converter
CN102104504A (en) * 2009-12-21 2011-06-22 中兴通讯股份有限公司 Platform and method for testing northbound interface
US20110160877A1 (en) * 2009-12-30 2011-06-30 Honeywell International Inc. Approach for switching between point types without affecting control logic
CN102289403A (en) * 2010-06-15 2011-12-21 微软公司 Script debugging
CN102402209A (en) * 2010-09-14 2012-04-04 广州致远电子有限公司 Embedded data acquisition and equipment control system
CN104090259A (en) * 2014-07-04 2014-10-08 宁波三星电气股份有限公司 Automatic gauge test platform and method based on Python script

Similar Documents

Publication Publication Date Title
CN107688548B (en) System, device and method for expanding sequence communication and system for expanding communication port
CN103927256A (en) Method for controlling multiple Android devices
CN104331063A (en) Industrial field equipment remote diagnosis maintenance system and method
CN102447738B (en) A kind of method and device realizing base station remote debugging
CN112276943A (en) Robot teaching control method, teaching control system, computer device, and medium
CN105653461A (en) System for converting single USB interface into plurality of UART debugging interfaces
CN103873592A (en) Data transmission method and system
CN204989857U (en) Remote control device based on pioneer robot
CN114691509A (en) Method for carrying out HDC debugging by utilizing Bluetooth communication based on Hongmon system
CN105141484A (en) Android equipment remote debugging method based on cloud server
CN102884515B (en) Serial ports re-orientation processes method, apparatus and system
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
CN107172013B (en) Data transmission method and system
CN107911157B (en) Universal satellite command automation technology data processing system and method
CN109634856B (en) IOS intelligent terminal remote real machine debugging system and method based on cloud service
CN104486561A (en) Matrix control system based on Python
CN108196866B (en) Firmware updating method and device
CN103457645A (en) Method for maintaining industrial device on posts through Bluetooth wireless technology
CN104461629B (en) PC terminals and its method for installing application program of mobile phone
CN103200031A (en) Communication processing method and device
CN102075387B (en) Method and device for communication of monitoring system
KR20210045200A (en) Computer program for driving DDS data conversion and transmission device
CN204883266U (en) Field device's monitoring device
CN104035422A (en) Data calculation method based on smart mobile terminal
CN104636302A (en) Experimental device, experimental client, experimental system and experimental method of experimental system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150401