CN110379394B - Industrial serial port screen content display control method based on layered integration model - Google Patents

Industrial serial port screen content display control method based on layered integration model Download PDF

Info

Publication number
CN110379394B
CN110379394B CN201910493402.2A CN201910493402A CN110379394B CN 110379394 B CN110379394 B CN 110379394B CN 201910493402 A CN201910493402 A CN 201910493402A CN 110379394 B CN110379394 B CN 110379394B
Authority
CN
China
Prior art keywords
frame
display
serial port
port screen
industrial serial
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
Application number
CN201910493402.2A
Other languages
Chinese (zh)
Other versions
CN110379394A (en
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.)
Tong Fang Electronic Science & Technology Co ltd
Original Assignee
Tong Fang Electronic Science & Technology Co 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 Tong Fang Electronic Science & Technology Co ltd filed Critical Tong Fang Electronic Science & Technology Co ltd
Priority to CN201910493402.2A priority Critical patent/CN110379394B/en
Publication of CN110379394A publication Critical patent/CN110379394A/en
Application granted granted Critical
Publication of CN110379394B publication Critical patent/CN110379394B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/003Details of a display terminal, the details relating to the control arrangement of the display terminal and to the interfaces thereto
    • G09G5/006Details of the interface to the display terminal

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The invention relates to an industrial serial port screen content display control method based on a layered integration model, which comprises the following specific steps: determining the maximum value of a communication frame buffer area of the used industrial serial port screen; decomposing into a plurality of functional frame interfaces; calculating the total quantity PxNb of communication commands required by the current frame content display and the industrial serial port screen; judging whether the current frame communication command quantity PxNb is less than UNb; classifying according to the relevance of the display content of the current frame; judging whether NPxNb is less than UNb; judging the current frame as a qualified display frame, and avoiding the phenomenon of frame loss in the subsequent display; judging whether the serial number Px of the currently analyzed frame interface is less than the total frame number PX; and (5) completing the display layering, integration and planning of all frame contents of the project. The invention has the beneficial effects that: the number of interactive command frames between the external control unit and the industrial serial port screen is reduced, the number of processing command frames in a short time of the industrial serial port screen is reduced, and a guarantee is provided for realizing an expected function, so that an expected display effect is achieved.

Description

Industrial serial port screen content display control method based on layered integration model
Technical Field
The invention relates to the embedded field, in particular to a content display control method of an industrial serial port screen based on a layered integration model.
Background
The industrial serial port screen can expand the display function only by being connected with any module single chip microcomputer with serial port communication, a system on chip and other chips, the excellent expandability is shown, the serial port communication speed is not high, the industrial serial port screen is provided with a communication frame buffer area to store communication control commands during design, and the industrial serial port screen is limited by the serial port communication speed, the size of the buffer area, the human eye visual effect and the like, and the industrial serial port screen is friendly in use and development mode, so that the industrial serial port screen can be widely applied to the fields of industry, military, automation and the like. However, for an application scenario with a large content of display items and a fast refresh rate, with the increase of the number of display items and contents required at the current time, a frame loss phenomenon occurs, in which some data contents are not displayed, which is expressed as a phenomenon in which some contents are not displayed on a screen. Therefore, due to the limitation of the size of the communication frame buffer area of the industrial serial port screen and the capacity of communication and processing speed, the external control module of the industrial serial port screen cannot simply send the display contents to the industrial serial port screen module one by one for display.
The industrial serial screen module adopts a standard HMI and a standard full duplex serial port (UART), the serial screen module is generally provided with a communication frame buffer zone, and the transmission rate of the serial port is certain. When the serial port screen is applied to scenes with a large number of display items and contents and a high refreshing rate, a frame loss phenomenon often occurs, namely certain data contents are not displayed.
Disclosure of Invention
Aiming at the technical problems in the related art, the method integrates the discrete data content in layering and reprocessing from the perspective of an application layer, optimizes display by designing a reasonable control method, improves development efficiency, and well finishes the expected display effect of the serial port screen.
The purpose of the invention is realized by the following technical scheme: a content display control method for an industrial serial port screen based on a layered integration model comprises the following specific steps:
s1, searching technical data of the used industrial serial port screen, determining the maximum value of a communication frame buffer zone of the used industrial serial port screen, and defining the maximum value of the buffer zone as UNb;
s2, planning all display contents required by project specification, and decomposing the display contents into a plurality of function frame interfaces, wherein: defining each display interface after decomposition as a frame, marking each frame interface as Px, and taking x as the serial number of the frame; decomposing to obtain all frames, defining the frames as total frame number, and recording as PX;
s3, calculating the total quantity PxNb of communication commands required by the content display of the current frame and the industrial serial port screen, wherein: px is marked as a current frame, and Nb is the number commanded by the current frame;
s4, judging whether the current frame communication command quantity PxNb is less than UNb, if so, entering S7, otherwise, judging that a layered integration interface is needed to be performed, and entering step S5;
s5, classifying according to the relevance of the display content of the current frame, finishing preliminary classification, calculating a communication command required by content display after hierarchical integration, and defining the communication command as NPxNb;
s6, judging whether NPxNb is less than UNb, if so, entering S7, otherwise, repeating the step S5, and continuing to integrate and stratify;
s7, judging the current frame as qualified display frame, and executing the step S8 without frame loss in the subsequent display;
s8, judging whether the currently analyzed frame interface serial number Px is less than the total frame number PX, if yes, finishing the Px +1 th frame analysis judgment, executing the step S3, and if not, executing the step S9;
and S9, completing the display layering, integration and planning of all the frame contents of the project.
The hierarchical model includes the following:
layer 1 is the display base frame layer: dividing and constructing functional areas of the display interface to lay a foundation for displaying the whole effect;
layer 2 is a conventional parameter display layer: displaying the current operation main parameters concerned and concerned by the user in relation to the function realization;
layer 3 is a status display layer: displaying the whole system and the running state, such as displaying a running log and the like;
layer 4 is the operation identification layer: the method mainly provides interactive operation identification and marking for users.
The invention has the beneficial effects that: the method for controlling the content display of the industrial serial port screen based on the layered integration model is combined with a use scene from the perspective of an application layer, carries out data layering and data integration, optimizes the control and processing flow, reduces the number of interactive command frames between an external control unit and the industrial serial port screen, reduces the number of processing command frames in a short time of the industrial serial port screen under the condition of not losing any content to be displayed, provides guarantee for the realization of an expected function, and achieves an expected display effect.
Drawings
The invention is explained in further detail below with reference to the drawing.
Fig. 1 is a flowchart of a content display control method for an industrial serial port screen based on a layered integration model according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a layer model according to an embodiment of the present invention;
FIG. 3 is a functional block diagram of an embodiment of the present invention;
FIG. 4 is a schematic model diagram of classification according to an embodiment of the present invention.
Detailed Description
Each layer is a type and a data set, and a hierarchical model diagram is shown in fig. 2:
layer 1 is the display base frame layer: dividing and constructing functional areas of the display interface to lay a foundation for displaying the whole effect;
layer 2 is a conventional parameter display layer: displaying the current operation main parameters concerned and concerned by the user in relation to the function realization;
layer 3 is a status display layer: and displaying the whole system and the running state, such as displaying a running log and the like.
Layer 4 is the operation identification layer: the method mainly provides interactive operation identification and marking for users;
the industrial serial port screen can expand the display function only by being communicated with any module single chip microcomputer with serial port and chips such as a system on chip, and the like, and shows excellent expandability, and the schematic block diagram of the industrial serial port screen is shown in a figure 3.
Firstly, implementation and configuration:
(1) model of industrial serial port screen: diwen DMG32240S035-01WT (1 block);
(2) an external control module: PowerPC P1012 module, VxWorks6.9 system (set 1);
the serial port communication baud rate is 38400, and the full-duplex RS232 interface is adopted.
Secondly, the implementation method comprises the following steps:
1. searching technical data of the used industrial Diwen serial port screen (DMG 32240S035-01 WT), determining the maximum value of a communication frame buffer of the used industrial serial port screen, and defining the maximum value of the buffer as UNb, namely UNb equals to 24.
2. The man-machine interface display of the short wave communication device plans all display contents required by project regulation and decomposes the display contents into a plurality of functional frame interfaces, wherein: defining each display interface after decomposition as a frame, marking each frame interface as Px, and taking x as the serial number of the frame; and decomposing to obtain all frames, defining the frames as the total frame number and recording the total frame number as PX.
3. The implementation method takes a scanning waiting interface with autonomous frequency selection as an example, and currently, the implementation method is the x-th frame, for example: and the current frame display items are 28 items, and the total quantity PxNb of communication commands with the industrial serial port screen required by the current frame content display is calculated. Wherein, 3 font sizes (3 commands), 4 colors (4 commands), and 28 items of display items (refresh covers 1, displays 1, and accumulates 56 commands) need to be set, so at least the total communication command is: PxNb = 61.
4. Whether the current frame communication command number PxNb is less than UNb, as can be seen by one and three, PxNb (equal to 61) is much greater than UNb (equal to 24), and therefore, it needs to be hierarchically integrated.
5. And classifying according to the relevance of the display content of the current frame to finish primary classification, and layering 4 layers in total.
Layer 1 is the basic display frame layer, and the required commands are: font color (1 command), font size (1 command), refresh and content display (2 commands);
layer 2 is a conventional parameter display layer, and the required commands are: font color (1 command), font size (1 command), refresh and content display (2 commands);
layer 3 is a status display layer, and the required commands are: font size (1 command), color (4 commands), refresh and display (2 commands);
layer 4 bit operation identification layer: font color (1 command), font size (1 command), refresh and content display (2 commands).
And calculating a communication command required by content display after hierarchical integration, wherein NPxNb is equal to 19.
6. The current NPxNb (equal to 19) is less than UNb (equal to 24) and the current frame is a qualifying display frame.
7. And repeating the steps by analogy for other frame images, and completing the display layering, integration and planning of all frame contents of the project.
Classifying the displayed item contents required by the current interface, dividing a plurality of data into one type, integrating the data, regarding the integrated type as a basic layer, decomposing a complete interface into a plurality of basic layers, and displaying a complete final display effect by the combination of the basic layers, wherein a classification schematic model diagram is shown in fig. 4.
The method is not simple to combine any item contents at will, the displayed item contents between two adjacent different interfaces or in a certain current interface have certain correlation, the correlation characteristic is the main basis and principle for classification, the stronger the correlation of the displayed item contents is, the higher the adhesion degree is, the more the number of integration is, the fewer communication frames are required with the serial port screen after integration, thereby reducing the resource cost of the industrial serial port screen and eliminating the phenomenon of frame loss.
In the embodiment, several typical application scenarios are intercepted in the man-machine interaction of the short-wave communication device, such as: the scanning waiting state, the calling detection state, the fixed frequency, the system parameter time setting and the like, the result display shows that the actual display content is complete and clear, and the phenomenon of frame loss does not occur.
In summary, by means of the technical scheme of the invention, qualitative analysis (classification and layering) and quantitative calculation are carried out on the display control through the early-stage display control principle design, the required communication command overhead is obtained through the quantitative calculation, a reasonable interface display layering model is constructed after classification, the use and development efficiency of the industrial serial port screen in the code design stage is improved, and the realization of the target display effect is ensured.
The display control is designed according to the method from the perspective of an application layer, classification is carried out according to the relevance characteristics of the interface display item content, the integrated data after classification is regarded as a local matrix layer, and a complete display interface can be decomposed into a plurality of local matrix layers. The method comprises the steps that a plurality of display contents are classified and integrated to obtain a new display data command after fusion, and the command has all item content information of a fused object before fusion; the larger the relevance and the larger the quantity of the display item content in one local layer are, the more the number of the command pieces needing to communicate with the serial port screen after fusion is reduced, and therefore the processing load of the serial port screen is reduced. The method can effectively improve the use and development efficiency of the industrial serial port screen, the display control method is optimized and integrated from the design principle stage, and the realization of the target display effect is guaranteed.
The present invention is not limited to the above-mentioned preferred embodiments, and any other products in various forms can be obtained by anyone in the light of the present invention, but any changes in the shape or structure thereof, which have the same or similar technical solutions as those of the present application, fall within the protection scope of the present invention.

Claims (1)

1. A content display control method of an industrial serial port screen based on a layered integration model is characterized by comprising the following steps: the method comprises the following steps:
s1, searching technical data of the used industrial serial port screen, determining the maximum value of a communication frame buffer zone of the used industrial serial port screen, and defining the maximum value of the buffer zone as UNb;
s2, planning all display contents required by project specification, and decomposing the display contents into a plurality of function frame interfaces, wherein: defining each display interface after decomposition as a frame, marking each frame interface as Px, and taking x as the serial number of the frame; decomposing to obtain all frames, defining the frames as total frame number, and recording as PX;
s3, calculating the total quantity PxNb of communication commands required by the content display of the current frame and the industrial serial port screen, wherein: px is marked as a current frame, and Nb is the number commanded by the current frame;
s4, judging whether the current frame communication command quantity PxNb is less than UNb, if so, entering S7, otherwise, judging that a layered integration interface is needed to be performed, and entering step S5;
s5, classifying according to the relevance of the display content of the current frame, finishing preliminary classification, calculating a communication command required by content display after hierarchical integration, and defining the communication command as NPxNb;
s6, judging whether NPxNb is less than UNb, if so, entering S7, otherwise, repeating the step S5, and continuing to integrate and stratify;
s7, judging the current frame as qualified display frame, and executing the step S8 without frame loss in the subsequent display;
s8, judging whether the currently analyzed frame interface serial number Px is less than the total frame number PX, if yes, finishing the Px +1 th frame analysis judgment, executing the step S3, and if not, executing the step S9;
and S9, completing the display layering, integration and planning of all the frame contents of the project.
CN201910493402.2A 2019-06-06 2019-06-06 Industrial serial port screen content display control method based on layered integration model Active CN110379394B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910493402.2A CN110379394B (en) 2019-06-06 2019-06-06 Industrial serial port screen content display control method based on layered integration model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910493402.2A CN110379394B (en) 2019-06-06 2019-06-06 Industrial serial port screen content display control method based on layered integration model

Publications (2)

Publication Number Publication Date
CN110379394A CN110379394A (en) 2019-10-25
CN110379394B true CN110379394B (en) 2021-04-27

Family

ID=68249909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910493402.2A Active CN110379394B (en) 2019-06-06 2019-06-06 Industrial serial port screen content display control method based on layered integration model

Country Status (1)

Country Link
CN (1) CN110379394B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0266431A1 (en) * 1986-04-25 1988-05-11 Fanuc Ltd. Image processor
CN101025913A (en) * 2005-09-29 2007-08-29 英特尔公司 Apparatuses and methods for switching between buffers using a video frame buffer flip queue
CN102508806A (en) * 2011-11-03 2012-06-20 山东超越数控电子有限公司 Method for reducing serial communication packet loss based on WINDOWS CE
CN104199783A (en) * 2014-09-15 2014-12-10 烽火通信科技股份有限公司 Method and device for caching and transmitting of Ethernet data frames in FPGA (field programmable gate array)
CN105635160A (en) * 2016-01-09 2016-06-01 中国人民解放军63686部队 Method for designing changeable data network communication
KR101633582B1 (en) * 2015-01-14 2016-06-24 주식회사 디지트로그 Apparatus and method for processing data frame of asynchronous communication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150025594A (en) * 2013-08-29 2015-03-11 삼성전자주식회사 Method for compositing multi image layers

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0266431A1 (en) * 1986-04-25 1988-05-11 Fanuc Ltd. Image processor
CN101025913A (en) * 2005-09-29 2007-08-29 英特尔公司 Apparatuses and methods for switching between buffers using a video frame buffer flip queue
CN102508806A (en) * 2011-11-03 2012-06-20 山东超越数控电子有限公司 Method for reducing serial communication packet loss based on WINDOWS CE
CN104199783A (en) * 2014-09-15 2014-12-10 烽火通信科技股份有限公司 Method and device for caching and transmitting of Ethernet data frames in FPGA (field programmable gate array)
KR101633582B1 (en) * 2015-01-14 2016-06-24 주식회사 디지트로그 Apparatus and method for processing data frame of asynchronous communication
CN105635160A (en) * 2016-01-09 2016-06-01 中国人民解放军63686部队 Method for designing changeable data network communication

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《典型实时嵌入式操作系统应用分析》;陈华强 张盼华;《电子测试》;20181231(第23期);22-23 *
《嵌入式系统串口通信分层结构设计与实现》;宋国明 王成云;《微计算机信息》;20060430;第22卷(第4-2期);14-16 *

Also Published As

Publication number Publication date
CN110379394A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
US10303495B2 (en) Robot system including CNC and robot controller connected through communication network
US8442933B2 (en) Web-based visualization mash-ups for industrial automation
US7676294B2 (en) Visualization of workflow in an industrial automation environment
US8026933B2 (en) Visualization system(s) and method(s) for preserving or augmenting resolution and data associated with zooming or paning in an industrial automation environment
US8191005B2 (en) Dynamically generating visualizations in industrial automation environment as a function of context and state information
US8677262B2 (en) Presentation of industrial automation data as a function of relevance to user
JP2863347B2 (en) Future planning and dynamic management method of flow process by visualization
US20090086021A1 (en) Dynamically generating real-time visualizations in industrial automation environment as a function of contect and state information
CN108021084A (en) The production line three-dimension monitoring system that a kind of actual situation combines
CA2827833C (en) System and method for improved consumption models for summary analytics
Haricha et al. Recent technological progress to empower smart manufacturing: Review and potential guidelines
CN114035515A (en) Digital twin system for discrete workshop production process and construction method thereof
CN115423289A (en) Intelligent plate processing workshop data processing method and terminal
CN114707430B (en) Multi-user encryption based federated learning visualization system and method
CN103674270A (en) Thermal image information recording device and thermal image information recording method
CN116128254A (en) Embedded intelligent manufacturing resource configuration method and terminal system based on edge calculation
CN110379394B (en) Industrial serial port screen content display control method based on layered integration model
CN110457368B (en) Visualization method, system and storage medium for supply chain
CN116665305A (en) Method and system for detecting worker behaviors based on computer vision and knowledge graph
EP3850502A1 (en) Method for detection of temporal pattern anomalies in video streams
CN104391741B (en) A kind of multiwindow control and data processing method, apparatus and system based on chain type
CN107451283A (en) The analysis method and device of data
CN115525267B (en) Machine vision platform software development method
CN109492745A (en) A kind of intelligence machine describes method and device
CN105242976A (en) Method and system for data transmission among logical units in program

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