CN110717136B - Monitoring picture WEB publishing method, device and system - Google Patents
Monitoring picture WEB publishing method, device and system Download PDFInfo
- Publication number
- CN110717136B CN110717136B CN201910954159.XA CN201910954159A CN110717136B CN 110717136 B CN110717136 B CN 110717136B CN 201910954159 A CN201910954159 A CN 201910954159A CN 110717136 B CN110717136 B CN 110717136B
- Authority
- CN
- China
- Prior art keywords
- monitoring
- bitmap
- industrial control
- control terminal
- window
- 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.)
- Active
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 362
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000006870 function Effects 0.000 claims description 59
- 230000005540 biological transmission Effects 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 7
- 238000013507 mapping Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a monitoring picture WEB publishing method, a monitoring picture WEB publishing device and a monitoring picture WEB publishing system. According to the technical scheme provided by the invention, the handle of the monitoring window is displayed in the industrial control terminal through the industrial control software acquired by calling the window handle function in the operating system of the industrial control terminal, the bitmap displayed in the monitoring window is acquired, and the acquired bitmap of the monitoring picture is uploaded to the WEB server, so that the WEB server can conveniently release the bitmap of the monitoring picture, the cost can be reduced, and the WEB release of the monitoring picture can be realized without being influenced by the format of the monitoring picture.
Description
Technical Field
The invention relates to the technical field of computer software, in particular to a monitoring picture WEB publishing method, device and system.
Background
With the rapid development of computer software technology, the industrial automation industry is also rapidly developing. The industrial control software is often applied to industrial automation industry, real-time parameters generated by the industrial control software in the field equipment in the production process and monitoring pictures of control interaction are obtained, and the monitored pictures are uploaded to a WEB server for WEB release. The industrial control software refers to tool software for data acquisition and real-time control of a production field in the industrial automation industry.
The existing monitoring picture WEB release mainly comprises the steps of analyzing and reconstructing a monitoring picture so as to realize the monitoring picture WEB release. However, this method needs to adopt different parsing-reconstructing strategies for monitoring pictures of different formats to implement WEB publishing of the monitoring pictures, and the publishing cost is high, and some manufacturers cannot implement parsing-reconstructing of the pictures monitored by the manufacturers without disclosing the format of the monitoring pictures, and further cannot implement text publishing of the monitoring pictures.
Therefore, how to provide a monitoring picture WEB publishing method, device and system is not affected by the monitoring picture format on the basis of reducing the cost, and the monitoring picture WEB publishing is realized.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, an apparatus, and a system for monitoring screen WEB publishing, which are not affected by the format of the monitoring screen on the basis of reducing the cost, and implement the monitoring screen WEB publishing.
In order to achieve the above object, the proposed solution is as follows:
the first aspect of the invention discloses a monitoring picture WEB publishing method, which comprises the following steps:
calling a window handle function in an industrial control terminal operating system to obtain a handle of a monitoring window displayed by industrial control software in the industrial control terminal;
acquiring a bitmap of a monitoring picture displayed in the monitoring window according to the handle of the monitoring window;
and uploading the bitmap of the monitoring picture to a WEB server so that the WEB server can conveniently release the bitmap of the monitoring picture.
Optionally, the calling a window handle function in an operating system of the industrial control terminal to obtain a handle of a monitoring window displayed by industrial control software in the industrial control terminal includes:
responding to the selection operation of a user on each monitoring window displayed on the current industrial control terminal, and determining the monitoring window of industrial control software to be subjected to WEB release of a monitoring picture;
and calling a window handle function in an operating system of the industrial control terminal to obtain the determined handle of the monitoring window.
Optionally, the obtaining a bitmap of a monitoring screen displayed in the monitoring window according to the handle of the monitoring window includes:
calling a bitmap information acquisition function of the operating system to acquire bitmap information of the monitoring window, wherein the bitmap information comprises bitmap bits corresponding to the monitoring picture;
copying the bitmap information to a buffer area of the industrial control terminal memory;
and serializing the bitmap information in the buffer area to obtain the bitmap of the monitoring picture.
Optionally, the serializing the bitmap information in the buffer to obtain the bitmap of the monitoring picture includes:
mapping pixel information in the bitmap information in the buffer area into a bitmap of the monitoring picture.
Optionally, the uploading the bitmap of the monitoring picture to a WEB server includes:
and uploading the bitmap of the monitoring picture to a WEB server based on a data transmission protocol.
Optionally, the method further includes: and storing the bitmap of the monitoring picture in a hardware storage device.
The second aspect of the present invention discloses a monitoring screen WEB publishing apparatus, including:
the monitoring window handle acquiring unit is used for calling a window handle function in an industrial control terminal operating system to acquire a monitoring window handle displayed in the industrial control terminal by industrial control software;
the bitmap acquiring unit of the monitoring picture is used for acquiring the bitmap of the monitoring picture displayed in the monitoring window according to the handle of the monitoring window;
and the uploading unit is used for uploading the bitmap of the monitoring picture to a WEB server so that the WEB server can issue the bitmap of the monitoring picture.
Optionally, the handle obtaining unit of the monitor window includes:
the monitoring window determining unit is used for responding to the selection operation of a user on each monitoring window displayed on the current industrial control terminal and determining the monitoring window of industrial control software to be subjected to monitoring picture WEB release;
and the handle determining unit of the monitoring window is used for calling a window handle function in an operating system of the industrial control terminal and acquiring the determined handle of the monitoring window.
Optionally, the bitmap acquiring unit of the monitoring screen includes:
a bitmap information obtaining unit, configured to call a bitmap information obtaining function of the operating system to obtain bitmap information of the monitoring window, where the bitmap information includes a bitmap bit corresponding to the monitoring picture;
the copying unit is used for copying the bitmap information to a buffer area of the industrial control terminal memory;
and the bitmap information serialization processing unit is used for serializing the bitmap information in the buffer area to obtain a bitmap of the monitoring picture.
The third aspect of the present invention discloses a monitoring picture WEB publishing system, comprising:
the industrial control terminal is used for calling a window handle function in an industrial control terminal operating system to obtain a handle of a monitoring window displayed by industrial control software in the industrial control terminal; acquiring a bitmap of a monitoring picture displayed in the monitoring window according to the handle of the monitoring window; uploading the bitmap of the monitoring picture to a WEB server;
and the WEB server is used for publishing the bitmap of the monitoring picture uploaded by the at least one industrial control terminal.
The invention provides a monitoring picture WEB publishing method, a monitoring picture WEB publishing device and a monitoring picture WEB publishing system. According to the technical scheme provided by the invention, the handle of the monitoring window is displayed in the industrial control terminal through the industrial control software obtained by calling the window handle function in the operating system of the industrial control terminal, the bitmap displayed in the monitoring window is obtained, and the obtained bitmap of the monitoring picture is uploaded to the WEB server, so that the WEB server can release the bitmap of the monitoring picture, the cost can be reduced, and the WEB release of the monitoring picture can be realized without being influenced by the format of the monitoring picture.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a monitoring screen WEB publishing method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for calling a window handle function in an operating system of an industrial control terminal to obtain a handle of a monitoring window displayed by industrial control software in the industrial control terminal according to the embodiment of the present invention;
fig. 3 is a schematic flowchart illustrating a process of obtaining a bitmap of a monitoring screen displayed in a monitoring window according to a handle of the monitoring window according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a monitoring screen WEB publishing device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a monitoring screen WEB publishing system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
As can be seen from the above background art, the existing monitoring picture WEB release mainly implements monitoring picture WEB release by parsing and reconstructing a monitoring picture. The specific process of the analysis-reconstruction is a process of subdividing the monitoring picture into the granularity of each primitive, character and object, converting the granularity of the subdivided primitives, characters and objects into a standard universal markup language description file, and reconstructing and reproducing the granularity in a WEB browser through a front-end redrawing technology of a WEB server and a data service technology at the front end of the WEB server.
However, this method needs to adopt different parsing-reconstructing strategies for monitoring pictures with different formats to implement WEB publishing of the monitoring pictures, and the publishing cost is high, and some manufacturer monitoring pictures are not published in a format that can not implement parsing-reconstructing of the pictures monitored by the manufacturer, and further cannot implement text publishing of the monitoring pictures.
Therefore, embodiments of the present invention provide a monitoring screen WEB publishing method, apparatus, and system, which can not only reduce cost, but also implement monitoring screen WEB publishing without being affected by a monitoring screen format.
It should be noted that the WEB publishing refers to a process of accessing, on a WEB server through a WEB service, content of a monitoring screen displayed in a monitoring window displayed in an industrial control terminal by industrial control software using a WEB browser client.
Referring to fig. 1, a schematic flowchart of a monitoring screen WEB publishing method according to an embodiment of the present invention is shown. The monitoring picture WEB publishing method comprises the following steps:
s101: and calling a window handle function in an operating system of the industrial control terminal to obtain a handle of the monitoring window displayed in the industrial control terminal.
It should be noted that the industrial Control terminal operating System may be a Distributed Control System (DCS), a Supervisory Control And Data Acquisition (SCADA), and the like, and the window handle function in the industrial Control terminal operating System may be an enum desktop windows function. The industrial control terminal operating system and the window handle function in the industrial control terminal operating system in the embodiment of the invention can be set according to practical application, and the embodiment of the invention is not limited.
In the process of executing step S101 specifically, the industrial control terminal determines the monitoring window of the industrial control software to be subjected to the monitoring picture WEB release, and after determining the monitoring window of the industrial control software to be subjected to the monitoring picture WEB release, calls a window handle function in the industrial control operating system to obtain a handle of the monitoring window displayed in the industrial control terminal.
It should be noted that, a plurality of monitoring windows may be included in one industrial control terminal.
S102: and acquiring a bitmap of a monitoring picture displayed in the monitoring window according to the handle of the monitoring window.
In the specific process of executing step S102, the industrial control terminal obtains the bitmap information corresponding to the function monitoring window by calling the bitmap information of the operating system of the industrial control terminal, copies the bitmap information to the buffer area of the internal memory of the industrial control terminal, and serializes the bitmap information in the buffer area, so as to obtain the bitmap corresponding to the monitoring picture.
Further, in the embodiment of the present invention, when the industrial control terminal obtains the monitoring picture of the industrial control software in the monitoring window displayed in the industrial control terminal according to the bitmap information obtaining function calling the operating system of the industrial control terminal to capture, that is, when the bit of the bitmap of the monitoring picture displayed in the monitoring window displayed in the industrial control terminal by the industrial control software is obtained, the monitoring picture displayed in the monitoring window may be shielded by the monitoring pictures displayed in other monitoring windows or moved to the outside of the screen, and the like, and therefore, the bitmap information corresponding to the complete function monitoring window is obtained through the bitmap information obtaining function.
S103: and uploading the bitmap of the monitoring picture to a WEB server so that the WEB server can conveniently release the bitmap of the monitoring picture.
In the specific process of executing step S103, the industrial control terminal may upload the bitmap of the monitoring picture to the WEB server through the data transmission protocol, so that the WEB server can issue the bitmap of the monitoring picture.
The data Transfer Protocol may be based on a Trivial File Transfer Protocol (TFTP) or a File Transfer Protocol (FTP). The present invention can be set according to practical applications, and the embodiments of the present invention are not limited.
It should be noted that the industrial control terminal can quickly upload the bitmap of the monitoring picture displayed in the monitoring window to the WEB server through the TFTP protocol without providing a browsing directory, so that the WEB server can issue the bitmap of the monitoring picture.
Furthermore, it should be noted that the embodiment of the present invention supports that a plurality of industrial control terminals call a window handle function in an operating system of the industrial control terminal at the same time to obtain handles of monitoring windows, which are correspondingly displayed in each industrial control terminal, of industrial control software corresponding to each industrial control terminal, and obtain bitmaps of corresponding monitoring pictures displayed in the monitoring windows according to the handles of the monitoring windows corresponding to each industrial control terminal, and simultaneously upload the bitmaps of the monitoring pictures displayed in the monitoring windows, which are correspondingly obtained by each industrial control terminal, to a WEB server, so that the WEB server simultaneously issues the bitmaps of the monitoring pictures uploaded by each industrial control terminal.
The invention provides a monitoring picture WEB publishing method, which is characterized in that a handle of a monitoring window displayed in an industrial control terminal by industrial control software is obtained by calling a window handle function in an operating system of the industrial control terminal, a bitmap of the monitoring picture displayed in the monitoring window is obtained according to the handle of the monitoring window, and the bitmap of the monitoring picture is uploaded to a WEB server so as to be convenient for the WEB server to publish the bitmap of the monitoring picture. According to the technical scheme provided by the invention, the handle of the monitoring window is displayed in the industrial control terminal through the industrial control software obtained by calling the window handle function in the operating system of the industrial control terminal, the bitmap displayed in the monitoring window is obtained, and the obtained bitmap of the monitoring picture is uploaded to the WEB server, so that the WEB server can conveniently release the bitmap of the monitoring picture, the cost can be reduced, and the WEB release of the monitoring picture can be realized without being influenced by the format of the monitoring picture.
In the foregoing embodiment of the present invention, as shown in fig. 2, the step S101 disclosed in fig. 1 calls a window handle function in an industrial control system to obtain a handle of a monitoring window displayed by industrial control software in an industrial control terminal, and specifically includes the following steps:
s201: and responding to the selection operation of the user on each monitoring window displayed on the current industrial control terminal, and determining the monitoring window of the industrial control software to be subjected to WEB release of the monitoring picture.
In the process of specifically executing step S201, the selection operation of the user on each monitoring window displayed on the current industrial control terminal means that when the user accesses the bitmap of the monitoring picture displayed in the monitoring window displayed in the industrial control terminal by the industrial control software through the WEB server by using the WEB browser client, the monitoring list including each monitoring window displayed on the industrial control terminal is first obtained, the user can determine the monitoring window of the industrial control software to be subjected to the WEB publishing of the monitoring picture by performing the selection operation on each monitoring window in the monitoring list, and after the user performs the selection operation on the monitoring window in the monitoring list, the industrial control terminal responds to the selection operation of the user on each monitoring window displayed on the industrial control terminal, so as to determine the monitoring window of the monitoring software to be subjected to the WEB publishing.
S202: and calling a window handle function in an operating system of the industrial control terminal to obtain the determined handle in the monitoring window.
In the process of specifically executing step S202, the industrial control terminal obtains, by calling a window handle function in the operating system of the industrial control terminal, a handle of the monitoring window of the industrial control software to be subjected to the WEB publishing of the monitoring screen, which is determined when the user selects and operates each monitoring window displayed on the current industrial control terminal.
In the implementation of the invention, after the monitoring window of the industrial control software of the WEB service of the monitoring picture is determined, a window handle function in an operating system of the industrial control terminal can be called to obtain the determined handle of the monitoring window, and then the bitmap of the monitoring picture displayed in the monitoring window is obtained according to the handle of the monitoring window.
In the embodiment of the present invention, step S102 disclosed in fig. 1 obtains a bitmap of a monitoring picture displayed in a monitoring serial port according to a handle of a monitoring window, as shown in fig. 3, specifically includes the following steps:
s301: and calling a bitmap information acquisition function of the operating system to acquire the bitmap information of the monitoring window.
The bitmap information comprises the bits of the bitmap corresponding to the monitoring picture.
Note that, the bit of the bitmap of the monitor screen is pixel information.
In the embodiment of the invention, the bitmap information of the monitoring window acquired by the bitmap information acquisition function of the industrial control terminal operating system is a DIB (digital information base) equipment-independent bitmap, wherein the independent bitmap is not influenced by peripheral information such as the model of equipment.
It should be noted that the bitmap information obtaining function of the operating system of the industrial control terminal may be a GetDIBits function, and may be set according to actual applications, which is not limited in the embodiment of the present invention.
In the process of specifically executing step S301, the industrial control terminal obtains specified compatible bitmap information of a monitoring picture displayed in a monitoring window displayed in the industrial control terminal by calling a GetDIBits function of an operating system of the industrial control terminal.
S302: and copying the bitmap information to a buffer area of an industrial control terminal memory.
In the process of specifically executing step S302, the industrial control terminal copies the obtained bitmap information to the buffer area of the internal memory of the industrial control terminal by calling the bitmap information obtaining function of the operating system of the industrial control terminal, where it is to be noted that the buffer area of the internal memory of the industrial control terminal is the working area of the currently operating industrial control terminal.
S303: and serializing the bitmap information in the buffer area to obtain a bitmap of the monitoring picture.
In the process of executing step S303, the industrial control terminal sequences the bitmap information in the buffer area to obtain a bitmap of the monitoring image, and specifically, maps the pixel information (bit) in the bitmap information in the buffer area to the bitmap of the monitoring image.
It should be noted that, in the embodiment of the present invention, the industrial control terminal obtains the bitmap of the monitoring screen by serializing the bitmap information in the buffer area, specifically, the industrial control terminal performs serialization processing on the bitmap information in the buffer area through "CFile" of a Microsoft Foundation Classes (MFC), that is, the pixel information (bit) in the bitmap information in the buffer area is mapped into the bitmap of the monitoring screen through the CFile "in the MFC, so as to obtain the bitmap of the monitoring screen.
It should be noted that Microsoft Foundation Classes (MFC) is a programming tool for Microsoft, and CFile "in MFC is a function for performing serialization processing.
Further, in the embodiment of the present invention, because the bitmap information of the monitoring window acquired by the bitmap information acquiring function of the industrial control terminal operating system is a DIB device independent bitmap, the bitmap information of the monitoring window only needs to be copied to the memory buffer area of the industrial control terminal, and then the pixel information (bit) in the bitmap information in the buffer area is mapped into the bitmap of the monitoring picture by the "CFile" of the MFC, so that the bitmap of the monitoring picture can be acquired.
In the embodiment of the invention, the bitmap information of the monitoring window is copied to the buffer area of the industrial control terminal by calling the bitmap information acquisition function of the operating system of the industrial control terminal, and the bitmap information in the buffer area is serialized, so that the bitmap of the monitoring picture can be obtained.
Optionally, on the basis of the monitoring picture WEB publishing method disclosed above in the embodiment of the present invention, the method further includes:
and the industrial control terminal stores the bitmap of the monitoring picture into the hardware storage device.
It should be noted that the storage device for storing the bitmap of the monitoring picture may be a magnetic disk. When the storage device for storing the bitmap of the monitoring picture can be a disk, the industrial control terminal stores the bitmap of the monitoring picture into the disk in a bmp bitmap mode. The storage device for storing the bitmap of the monitoring picture may be set according to practical applications, and the embodiment of the present invention is not limited.
Compared with the monitoring picture WEB publishing method disclosed by the invention, the bitmap of the monitoring picture is stored in the hardware storage device, so that the bitmap of the monitoring picture displayed in the monitoring window displayed in the industrial control terminal can be better stored.
Corresponding to the monitoring picture WEB publishing method disclosed in the embodiment of the present invention, referring to fig. 4, an embodiment of the present invention further provides a schematic structural diagram of a monitoring picture WEB publishing device, where the monitoring picture WEB publishing device 400 includes: a handle acquisition unit 401 of the monitoring window, a bitmap acquisition unit 402 of the monitoring screen, and an upload unit 403.
And a handle acquiring unit 401 of the monitor window, configured to call a window handle function in the operating system of the industrial control terminal to acquire a handle of the monitor window displayed in the industrial control terminal by the industrial control software.
And a bitmap acquiring unit 402 of the monitoring picture, configured to acquire a bitmap of the monitoring picture displayed in the monitoring window according to the handle of the monitoring window.
An uploading unit 403, configured to upload the bitmap of the monitoring screen to the WEB server, so that the WEB server issues the bitmap of the monitoring screen.
The specific principle and the execution process of each unit in the monitoring picture WEB publishing device disclosed in the embodiment of the present invention are the same as those of the monitoring picture WEB publishing method disclosed in the embodiment of the present invention, and reference may be made to corresponding parts in the monitoring picture WEB publishing method disclosed in the embodiment of the present invention, which are not described herein again.
The invention provides a monitoring picture WEB publishing device, which acquires a handle of a monitoring window displayed in an industrial control terminal by industrial control software by calling a window handle function in an operating system of the industrial control terminal, acquires a bitmap of the monitoring picture displayed in the monitoring window according to the handle of the monitoring window, and uploads the bitmap of the monitoring picture to a WEB server so as to facilitate the WEB server to publish the bitmap of the monitoring picture. According to the technical scheme provided by the invention, the handle of the monitoring window is displayed in the industrial control terminal through the industrial control software obtained by calling the window handle function in the operating system of the industrial control terminal, the bitmap displayed in the monitoring window is obtained, and the obtained bitmap of the monitoring picture is uploaded to the WEB server, so that the WEB server can conveniently release the bitmap of the monitoring picture, the cost can be reduced, and the WEB release of the monitoring picture can be realized without being influenced by the format of the monitoring picture.
Preferably, the handle obtaining unit 401 for monitoring the window includes: a monitor window determination unit 4011, and a handle of monitor window determination unit 4012.
The monitoring window determining unit 4011 is configured to determine a monitoring window of the industrial control software to be subjected to monitoring screen WEB publishing in response to a selection operation of a user on each monitoring window displayed on the current industrial control terminal;
and the handle determining unit 4012 of the monitor window is configured to call a window handle function in an operating system of the industrial control terminal, and obtain the determined handle of the monitor window.
In the implementation of the invention, after the monitoring window of the industrial control software of the WEB service of the monitoring picture is determined, a window handle function in an operating system of the industrial control terminal can be called to obtain the determined handle of the monitoring window, and then the bitmap of the monitoring picture displayed in the monitoring window is obtained according to the handle of the monitoring window.
Preferably, the bitmap acquiring unit 402 of the monitoring screen includes: a bitmap information acquiring unit 4021, a copying unit 4022, and a bitmap information serialization processing unit 4023.
A bitmap information acquiring unit 4021, configured to call a bitmap information acquiring function of the operating system to acquire bitmap information of the monitoring window, where the bitmap information includes a bitmap bit corresponding to the monitoring picture.
The copying unit 4022 is configured to copy the bitmap information to a buffer in the internal memory of the industrial control terminal.
The bitmap information serialization processing unit 4023 is configured to serialize the bitmap information in the buffer to obtain a bitmap of the monitoring picture.
In the embodiment of the invention, the bitmap information of the monitoring window is copied into the buffer area of the industrial control terminal by calling the bitmap information acquisition function of the operating system of the industrial control terminal, and the bitmap information in the buffer area is serialized, so that the bitmap of the monitoring picture can be obtained.
Preferably, the bitmap information serialization processing unit 4023 includes: and a mapping unit.
And a mapping unit for mapping the pixel information in the bitmap information in the buffer area into a bitmap of the monitoring picture.
Preferably, the uploading unit 403 includes: and an uploading subunit.
And the uploading subunit is used for uploading the bitmap of the monitoring picture to the WEB server based on the data transmission protocol.
Preferably, on the basis of the monitoring screen WEB publishing device provided in the foregoing embodiment of the present invention, the monitoring screen WEB publishing device 400 further includes: and a memory unit.
And the storage unit is used for storing the bitmap of the monitoring picture into the hardware storage equipment.
Compared with the monitoring picture WEB publishing device disclosed by the invention, the bitmap of the monitoring picture is stored in the hardware storage equipment through the storage unit, so that the bitmap of the monitoring picture displayed in the monitoring window displayed in the industrial control terminal can be better stored.
Corresponding to the monitoring picture WEB publishing method disclosed in the embodiment of the present invention, referring to fig. 5, an embodiment of the present invention further provides a monitoring picture WEB publishing system, where the monitoring picture WEB publishing system 500 includes: at least one industrial control terminal 501 and a WEB server 502.
The industrial control terminal 501 is used for calling a window handle function in an industrial control terminal operating system to obtain a handle of a monitoring window displayed by industrial control software in the industrial control terminal; acquiring a bitmap of a monitoring picture displayed in a monitoring window according to a handle of the monitoring window; and uploading the bitmap of the monitoring picture to a WEB server.
It should be noted that, each industrial control terminal 501 in the monitoring picture WEB publishing system may call a window handle function in an operating system of the industrial control terminal based on a preset time interval to obtain a handle of a monitoring window displayed in the corresponding industrial control terminal by the corresponding industrial control software, obtain a bitmap of a monitoring picture displayed in the monitoring window displayed in each industrial control terminal according to the handle of the corresponding monitoring window, and upload the bitmap of the monitoring picture corresponding to each industrial control terminal to the WEB server, thereby implementing real-time update of the bitmap of the monitoring picture in the WEB server.
It should be noted that the predetermined time interval may be 500 milliseconds or 1 second, which may be set according to practical applications, and the embodiment of the present invention is not limited thereto.
In the embodiment of the present invention, the monitoring screen WEB publishing system may include 3 industrial control terminals, or 4 industrial control terminals. The number of industrial control terminals included in the monitoring picture WEB publishing system can be set according to practical application, and the embodiment of the invention is not limited.
For a better understanding of the above, the following examples are given.
Such as: when at least one industrial control terminal in the monitoring picture WEB publishing system is 3 industrial control terminals which are respectively an industrial control terminal 1, an industrial control terminal 2 and an industrial control terminal 3, the industrial control terminal 1 calls a window handle function in an operating system of the industrial control terminal to obtain a handle 1 of a monitoring window displayed by the industrial control software 1 in the industrial control terminal 1, the industrial control terminal 2 calls a window handle function in the operating system of the industrial control terminal to obtain a handle 2 of the monitoring window displayed by the industrial control software 2 in the industrial control terminal 2, and the industrial control terminal 3 calls a window handle function in the operating system of the industrial control terminal to obtain a handle 3 of the monitoring window displayed by the industrial control software 3 in the industrial control terminal 3; the industrial control terminal 1 acquires a bitmap 1 of a monitoring picture displayed in the monitoring window according to the handle 1 of the monitoring window, the industrial control terminal 2 acquires a bitmap 2 of the monitoring picture displayed in the monitoring window according to the handle 2 of the monitoring window, and the industrial control terminal 3 acquires a bitmap 3 of the monitoring picture displayed in the monitoring window according to the handle 3 of the monitoring window; the industrial control terminal 1 uploads the bitmap 1 of the monitoring picture to a WEB server, the industrial control terminal 2 uploads the bitmap 2 of the monitoring picture to the WEB server, and the industrial control terminal 3 uploads the monitoring picture 3 to a WEB server.
It should be noted that the industrial control terminal 1, the industrial control terminal 2, and the industrial control terminal 3 may simultaneously call the window handle function of the operating system of the industrial control terminal and perform corresponding subsequent work, and may also call the window handle function of the operating system of the industrial control terminal according to the order and perform corresponding subsequent work according to the order. The present invention is not limited to the embodiment, which is set according to the practical application.
The implementation principle and the execution process of at least one industrial control terminal in the monitoring picture WEB publishing system disclosed in the embodiment of the present invention are the same as those of the monitoring picture WEB publishing method disclosed in the embodiment of the present invention, and reference may be made to corresponding parts in the monitoring picture WEB publishing method disclosed in the embodiment of the present invention, and details are not repeated here.
And the WEB server 502 is used for issuing a bitmap of a monitoring picture uploaded by at least one industrial control terminal.
It should be noted that, after acquiring the bitmap of the monitoring screen corresponding to each industrial control terminal uploaded based on the data transmission protocol, the WEB server 502 publishes the monitoring screen uploaded by each industrial control terminal 501 by using the WEB server technology conforming to the W3C standard.
Further, in the embodiment of the present invention, after each industrial control terminal uploads the bitmap of the corresponding monitoring picture to the WEB server 502 based on the data transmission protocol, the WEB server 502 may publish the monitoring picture uploaded by each industrial control terminal 501 by using the WEB server technology conforming to the W3C standard, so that a user may access the WEB server 502 by using various intelligent devices, and further obtain the bitmap displayed in the monitoring picture displayed in the monitoring window displayed in the corresponding industrial control terminal.
The monitoring picture WEB publishing system provided by the embodiment of the invention obtains the handle of the monitoring window displayed by industrial control software in the industrial control terminal by calling the window handle function in the operating system of the industrial control terminal through at least one industrial control terminal, obtains the bitmap of the monitoring picture displayed in the monitoring window according to the handle of the monitoring window, uploads the bitmap of the monitoring picture to the WEB server, and the WEB server publishes the bitmap of the monitoring picture uploaded by at least one industrial control terminal after receiving the bitmap of the monitoring picture uploaded by at least one industrial control terminal.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, the system or system embodiments, which are substantially similar to the method embodiments, are described in a relatively simple manner, and reference may be made to some descriptions of the method embodiments for relevant points. The above-described system and system embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present application and it should be noted that, as will be apparent to those skilled in the art, numerous modifications and adaptations can be made without departing from the principles of the present application and such modifications and adaptations are intended to be considered within the scope of the present application.
Claims (8)
1. A monitoring picture WEB publishing method is characterized by comprising the following steps:
calling a window handle function in an industrial control terminal operating system to obtain a handle of a monitoring window displayed by industrial control software in the industrial control terminal;
calling a bitmap information acquisition function of the operating system to acquire bitmap information of the monitoring window according to the handle of the monitoring window, wherein the bitmap information is a DIB (digital information bus) device-independent bitmap and comprises bitmap bits corresponding to the monitoring picture;
copying the bitmap information to a buffer area of the industrial control terminal memory;
serializing the bitmap information in the buffer area to obtain a bitmap of a monitoring picture displayed in the monitoring window;
and uploading the bitmap of the monitoring picture to a WEB server through a data transmission protocol so that the WEB server can conveniently release the bitmap of the monitoring picture.
2. The method of claim 1, wherein the calling a window handle function in an operating system of an industrial control terminal to obtain a handle of a monitoring window displayed in the industrial control terminal by industrial control software comprises:
responding to the selection operation of a user on each monitoring window displayed on the current industrial control terminal, and determining the monitoring window of industrial control software to be subjected to WEB release of a monitoring picture;
and calling a window handle function in an operating system of the industrial control terminal to obtain the determined handle of the monitoring window.
3. The method of claim 1, wherein the bits are pixel information, and the serializing the bitmap information in the buffer to obtain the bitmap of the monitoring picture comprises:
mapping pixel information in the bitmap information in the buffer area into a bitmap of the monitoring picture.
4. The method according to claim 1, wherein the uploading the bitmap of the monitoring picture to a WEB server comprises:
and uploading the bitmap of the monitoring picture to a WEB server based on a data transmission protocol.
5. The method of claim 1, further comprising: and storing the bitmap of the monitoring picture in a hardware storage device.
6. A monitoring screen WEB publishing apparatus, comprising:
the handle acquisition unit of the monitoring window is used for calling a window handle function in an industrial control terminal operating system to acquire the handle of the monitoring window displayed by industrial control software in the industrial control terminal;
the bitmap acquiring unit of the monitoring picture is used for acquiring the bitmap of the monitoring picture displayed in the monitoring window according to the handle of the monitoring window;
the uploading unit is used for uploading the bitmap of the monitoring picture to a WEB server so that the WEB server can release the bitmap of the monitoring picture conveniently;
the bitmap acquiring unit of the monitoring picture comprises:
a bitmap information obtaining unit, configured to call a bitmap information obtaining function of the operating system to obtain bitmap information of the monitoring window, where the bitmap information is a DIB device-independent bitmap and includes bits of a bitmap corresponding to the monitoring picture;
the copying unit is used for copying the bitmap information to a buffer area of the industrial control terminal memory;
and the bitmap information serialization processing unit is used for serializing the bitmap information in the buffer area to obtain a bitmap of the monitoring picture.
7. The apparatus of claim 6, wherein the handle obtaining unit of the monitor window comprises:
the monitoring window determining unit is used for responding to the selection operation of a user on each monitoring window displayed on the current industrial control terminal and determining the monitoring window of industrial control software to be subjected to monitoring picture WEB release;
and the handle determining unit of the monitoring window is used for calling a window handle function in an operating system of the industrial control terminal and acquiring the determined handle of the monitoring window.
8. A monitoring picture WEB publishing system is characterized by comprising:
the industrial control terminal is used for calling a window handle function in an industrial control terminal operating system to obtain a handle of a monitoring window displayed by industrial control software in the industrial control terminal; calling a bitmap information acquisition function of the operating system to acquire bitmap information of the monitoring window according to the handle of the monitoring window, wherein the bitmap information is a DIB (digital information bus) device-independent bitmap and comprises bitmap bits corresponding to the monitoring picture; copying the bitmap information to a buffer area of the industrial control terminal memory; serializing the bitmap information in the buffer area to obtain a bitmap of a monitoring picture displayed in the monitoring window; uploading the bitmap of the monitoring picture to a WEB server through a data transmission protocol;
and the WEB server is used for publishing the bitmap of the monitoring picture uploaded by the at least one industrial control terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910954159.XA CN110717136B (en) | 2019-10-09 | 2019-10-09 | Monitoring picture WEB publishing method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910954159.XA CN110717136B (en) | 2019-10-09 | 2019-10-09 | Monitoring picture WEB publishing method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110717136A CN110717136A (en) | 2020-01-21 |
CN110717136B true CN110717136B (en) | 2022-11-18 |
Family
ID=69212305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910954159.XA Active CN110717136B (en) | 2019-10-09 | 2019-10-09 | Monitoring picture WEB publishing method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110717136B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104298173A (en) * | 2014-09-26 | 2015-01-21 | 北京卫星制造厂 | Networked real-time monitoring-oriented numerically-controlled machine tool machining process parameter acquiring method |
CN106547547A (en) * | 2016-10-18 | 2017-03-29 | 广州酷狗计算机科技有限公司 | Collecting method and device |
CN106603681A (en) * | 2016-12-21 | 2017-04-26 | 凯迈(洛阳)机电有限公司 | Integrated use method of industrial equipment real-time monitoring software and information system |
-
2019
- 2019-10-09 CN CN201910954159.XA patent/CN110717136B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104298173A (en) * | 2014-09-26 | 2015-01-21 | 北京卫星制造厂 | Networked real-time monitoring-oriented numerically-controlled machine tool machining process parameter acquiring method |
CN106547547A (en) * | 2016-10-18 | 2017-03-29 | 广州酷狗计算机科技有限公司 | Collecting method and device |
CN106603681A (en) * | 2016-12-21 | 2017-04-26 | 凯迈(洛阳)机电有限公司 | Integrated use method of industrial equipment real-time monitoring software and information system |
Also Published As
Publication number | Publication date |
---|---|
CN110717136A (en) | 2020-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109491743A (en) | Visual Report Forms generation method, device, electronic equipment and storage medium | |
CN104112002B (en) | A kind of methods, devices and systems of list adaptation | |
US20060179118A1 (en) | Platform-specific application user interface remoting | |
JP2009507306A (en) | High level graphics system | |
JP2006285780A (en) | Use method of function and function use program | |
EP2827597A1 (en) | Adaptive content delivery | |
CN111352913A (en) | File compression method and device, storage medium and terminal equipment | |
JP6849029B2 (en) | Data collection systems, data collection methods, and programs | |
CN108023905B (en) | Internet of things application system and method | |
CN110717136B (en) | Monitoring picture WEB publishing method, device and system | |
CN112799664A (en) | Configuration method and system supporting heterogeneous environment | |
US20230136504A1 (en) | Method for generating application for controlling external electronic device and electronic apparatus for supporting the same | |
US7417754B2 (en) | Wireless printing interface kit and method | |
CN112130817A (en) | Multi-version interface implementation method, system, device and readable storage medium | |
CN112394809A (en) | Method, device and communication equipment for realizing augmented reality | |
CN113949601B (en) | Inter-controller station communication method, device and computer readable storage medium | |
JP2006155333A (en) | Information browsing system, information transfer server, mobile terminal, and its program | |
CN114615646B (en) | Network element switching method, device, electronic equipment and computer readable storage medium | |
CN113938475B (en) | Data transmission method | |
JP2019049857A (en) | Edi system, server, and method and program for controlling edi system | |
KR101658129B1 (en) | Script editor for gateway apparatus supporting the connection of electric power devices | |
JP2007241932A (en) | Remote monitoring system | |
CN117675887A (en) | Internet of things equipment access method and system | |
JP2005352589A (en) | Image processing method | |
CN113283730A (en) | Universal approval process application method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: No. 309 Liuhe Road, Binjiang District, Hangzhou City, Zhejiang Province (High tech Zone) Patentee after: Zhongkong Technology Co.,Ltd. Country or region after: China Address before: No. six, No. 309, Binjiang District Road, Hangzhou, Zhejiang Patentee before: ZHEJIANG SUPCON TECHNOLOGY Co.,Ltd. Country or region before: China |