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 obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
The embodiment provides a gateway sensor visualization system based on a non-touch display device, the system includes: the system comprises an upper computer, a gateway and a sensor, wherein the upper computer is in communication connection with the gateway, and the gateway is in communication connection with the sensor;
the display is used for displaying a plurality of target containers according to the serial connection sequence of the gateway and the sensor, wherein the target containers are gateway containers and/or sensor containers;
a memory for storing a gateway image corresponding to the gateway and a sensor image corresponding to the sensor;
a processor, configured to execute any one of the instructions or programs sent by the upper computer, as shown in fig. 1, specifically including the following steps:
s101, acquiring gateway container S0And sensor list S = (S)1,S2,S3,……,Sm) Wherein S isiRefers to the ith sensor container, i =1 … … m, m is the number of sensors;
specifically, the gateway container refers to a control capable of containing the gateway image, and the gateway image represents an image of the overall connection state of the gateway.
Specifically, the sensor container refers to a control capable of containing the sensor image, and the sensor image represents an image of the overall connection state of the sensor.
S103, displaying the target width W and the preset width
For comparison, W satisfies the following condition:
wherein, W0Means S0Width of (W)iMeans SiThe width of (D) is a distance between two adjacent target containers in the first display area in the X-axis direction, for example, in the first display area, a distance between a gateway container and an adjacent sensor container in the X-axis direction is D, and a distance between two adjacent sensor containers in the X-axis direction is also D.
In particular, W may be understood as the overall display width of the gateway container and the sensor container.
Preferably, W1=W2=W3=……=WmI.e. the width of all the sensor containers is uniform.
Preferably, W0>WiI.e. the width of the gateway container is larger than the width of the sensor container.
The following conditions are met:
wherein, K refers to the display width coefficient of the first display area, and B refers to the display width of the first display area;
in particular, the amount of the solvent to be used,
which may be understood as the maximum display width of the first display region.
Specifically, the first display area is an area where the gateway container and the sensor container are displayed on the display, and preferably, the first display area is an entire display area on the display.
Preferably, K ranges from 2 to Z, Z is the upper limit value of K, and Z meets the following conditions:
s105, when W is less than or equal to
Displaying S in the first display area according to the serial connection sequence of the gateway and the sensor
0And S;
preferably, in the step S105, when
While in opposite phaseThe distance between two adjacent target containers is reduced to obtain a reduced distance D
0,D
0The following conditions are met:
wherein L is the reduced distance between two adjacent target containers in the X-axis direction, namely D0This can be understood as the reduced distance between two adjacent target containers in the X-axis direction.
Preferably, L satisfies the following condition:
specifically, in the first display area, a plurality of the sensor containers in S are also displayed in a serial connection order, for example, when m is 10, in the first display area, S is sequentially displayed0、S1、S2……S10。
S107, when W >)
And judging whether the operation state corresponding to the display is a touch state or a non-touch state.
S109, when the operation state is a touch state, displaying S in the first display area according to the serial connection sequence of the gateway and the sensor according to a sliding instruction0And S, e.g. displaying S in the first display area0And the partial sensor container in the S slides the display left and right when receiving the sliding instruction, and displays the residual sensor container in the S in the first display area.
In a specific embodiment, the display area of the display further includes a second display area, the second display area is located on one side of the first display area, and the second display area is an area where an operation image is displayed in the display.
The gateway sensor visualization system based on the non-touch display device provided by the embodiment can pass through the gateway container S
0And a sensor list S for displaying the target display width W and the designated display width
Comparing, when W is less than or equal to
Displaying S in the first display area according to the serial connection sequence of the gateway and the sensor
0And S, when W >
Judging whether the operation state corresponding to the display is a touch state or a non-touch state, and when the operation state is the touch state, displaying S in the first display area according to the serial connection sequence of the gateway and the sensor according to a sliding instruction
0S, it can be seen that the embodiment enables a plurality of sensors to upload data rapidly and simultaneously through the gateway; and under the touch state, according to the width of gateway container, the width of sensor container and the width of display, the operating condition of gateway container and a plurality of sensor container is shown simultaneously to reasonable and orderly, and the operating personnel of being convenient for monitors gateway and a plurality of sensor in real time, avoids leaking unusual gateway or sensor because of unable demonstration, influences industrial production.
Example two
The second embodiment provides a gateway sensor visualization system based on a non-touch display device, the system includes: the system comprises an upper computer, a gateway and a sensor, wherein the upper computer is in communication connection with the gateway, and the gateway is in communication connection with the sensor;
the display is used for displaying a plurality of target containers according to the serial connection sequence of the gateway and the sensor, wherein the target containers are gateway containers and/or sensor containers;
a memory for storing a gateway image corresponding to the gateway and a sensor image corresponding to the sensor;
a processor, configured to execute any one of the instructions or programs sent by the upper computer, as shown in fig. 2, specifically including the following steps:
s201, acquiring gateway container S0And sensor list S = (S)1,S2,S3,……,Sm) Wherein S isiRefers to the ith sensor container, i =1 … … m, m is the number of sensors;
specifically, the gateway container refers to a control capable of containing the gateway image, and the gateway image represents an image of the overall connection state of the gateway.
Specifically, the sensor container refers to a control capable of containing the sensor image, and the sensor image represents an image of the overall connection state of the sensor.
S203, according to the target display width W and the appointed display width
For comparison, W satisfies the following condition:
wherein, W0Means S0The width of (W) ofiMeans SiD is a distance between two adjacent target containers in the first display area in the X-axis direction; for example, in the first display area, a distance between a gateway container and an adjacent sensor container in the X-axis direction is D, and a distance between two adjacent sensor containers in the X-axis direction is also D.
In particular, W may be understood as the overall display width of the gateway container and the sensor container.
Preferably, W1=W2=W3=……=WmI.e. the width of all the sensor containers is uniform.
Preferably, W0>WiI.e. the width of the gateway container is larger than the width of the sensor container.
The following conditions are met:
wherein, K refers to the display width coefficient of the first display area, and B refers to the display width of the first display area;
in particular, the amount of the solvent to be used,
may be understood as the maximum display width of the first display region.
Specifically, the first display area is an area where the gateway container and the sensor container are displayed on the display, and preferably, the first display area is an entire display area on the display.
Preferably, K ranges from 2 to Z, Z is the upper limit value of K, and Z meets the following conditions:
s205, when W is less than or equal to
Displaying S in the first display area according to the serial connection sequence of the gateway and the sensor
0And S;
preferably, in the step S205, when
Then, the distance between two adjacent target containers is reduced to obtain a reduced distance D
0,D
0The following conditions are met:
wherein L is the reduced distance between two adjacent target containers in the X-axis direction, namely D0This can be understood as the reduced distance between two adjacent target containers in the X-axis direction.
Preferably, L satisfies the following condition:
specifically, in the first display area, a plurality of the sensor containers in S are also displayed in a serial connection order, for example, when m is 10, in the first display area, S is sequentially displayed0、S1、S2……S10。
S207, when W >
Judging whether the operation state corresponding to the display is a touch state or a non-touch state;
s209, when the operation state is a non-touch state, displaying R rows of target container groups in the first display area according to a scroll instruction, wherein the target container groups in each row display n target containers in the X-axis direction of the first display area, wherein the target container groups comprise a first container group or a second container group, for example, the first container group, which is the target container group in the first row, is displayed in the first display area, and the display is performed according to the serial connection sequence of the gateway container and the n-1 sensor containers, when the scroll instruction, which is the mouse scroll instruction, is received, the display is performed up and down in the Y-axis direction of the first display area, the second container group, which is the target container group in the next row, is displayed according to the serial connection sequence of the n sensor containers, and the like, and the R rows of target container groups are displayed, those skilled in the art can adopt any method to determine to accept the scrolling command and move the display up and down according to the scrolling command without dragging the scroll bar, which is not described herein.
Specifically, n satisfies the following condition:
further, the first container group comprises one gateway container and n-1 sensor containers, wherein W isi≤W0≤2Wi。
Further, the second container group includes: n of the sensor containers.
Specifically, R satisfies the following condition:
in a specific embodiment, the display area of the display further includes a second display area, the second display area is located on one side of the first display area, and the second display area is an area where an operation image is displayed in the display.
The second embodiment provides a gateway sensor visualization system based on a non-touch display device, which can pass through the gateway container S
0And a sensor list S for displaying the target display width W and the designated display width
Comparing, when W is less than or equal to
Displaying S in the first display area according to the serial connection sequence of the gateway and the sensor
0And S, when W >
Judging whether the operation state corresponding to the display is a touch state or a non-touch state, when the operation state is the non-touch state, displaying a target container group of R rows in the first display area according to a scroll instruction, wherein the target container group of each row displays n target containers in the X-axis direction of the first display area, and when receiving the scroll instruction, namely a mouse scroll instruction, moving up and down in the Y-axis direction of the first display area to display a target container group of the next row, namely a second container group, therefore, the embodiment can enable a plurality of sensors to upload data quickly and simultaneously through a gateway; and under the non-touch state, according to the width of gateway container, the width of sensor container and the width of display, according to the instruction of rolling, adjust the operating condition that shows gateway container and a plurality of sensor container simultaneously and correspond in the display area, simultaneously to unable sensor container and the gateway container that show totally in same line, it is complete to make its demonstration through the interval that reduces the correspondence, be convenient for operating personnel in real time to the control of gateway and a plurality of sensor, avoid resulting in omitting unusual gateway or sensor because of unable demonstration, influence industrial production.
EXAMPLE III
The third embodiment provides a gateway sensor visualization system based on a non-touch display device, the system includes: the system comprises an upper computer, a gateway and a sensor, wherein the upper computer is in communication connection with the gateway, and the gateway is in communication connection with the sensor;
the display is used for displaying a plurality of target containers according to the serial connection sequence of the gateway and the sensor, wherein the target containers are gateway containers and/or sensor containers;
a memory for storing a gateway image corresponding to the gateway and a sensor image corresponding to the sensor;
a processor, configured to execute any one of the instructions or programs sent by the upper computer, as shown in fig. 3, specifically including the following steps:
s301, acquiring gateway container S0And sensor list S = (S)1,S2,S3,……,Sm) Wherein S isiRefers to the ith sensor container, i =1 … … m, m is the number of sensors;
specifically, the gateway container refers to a control capable of containing the gateway image, and the gateway image represents an image of the overall connection state of the gateway.
Specifically, the sensor container refers to a control capable of containing the sensor image, and the sensor image represents an image of the overall connection state of the sensor.
S303, displaying the target width W and the preset width
For comparison, W satisfies the following condition:
wherein, W0Means S0Width of (W)iMeans SiD is a distance between two adjacent target containers in the first display area in the X-axis direction; for example, in the first display area, a distance between a gateway container and an adjacent sensor container in the X-axis direction is D, and a distance between two adjacent sensor containers in the X-axis direction is also D.
In particular, W may be understood as the overall display width of the gateway container and the sensor container.
Preferably, W1=W2=W3=……=WmI.e. the width of all the sensor containers is uniform.
Preferably, W0>WiI.e. the width of the gateway container is larger than the width of the sensor container.
The following conditions are met:
k is the display width coefficient of the first display area, and B is the display width of the first display area;
in particular, the amount of the solvent to be used,
may be understood as the maximum display width of the first display region.
Specifically, the first display area is an area where the gateway container and the sensor container are displayed on the display, and preferably, the first display area is an entire display area on the display.
Preferably, K ranges from 2 to Z, Z is the upper limit value of K, and Z meets the following conditions:
s305, when W is less than or equal to
Displaying S in the first display area according to the serial connection sequence of the gateway and the sensor
0And S;
preferably, in the step S205, when
Then, the distance between two adjacent target containers in the X-axis direction is reduced to obtain a reduced distance D
0,D
0The following conditions are met:
wherein L is the reduced distance between two adjacent target containers in the X-axis direction, namely D0Can be understood as reducedThe distance between two adjacent target containers in the X-axis direction.
Preferably, L satisfies the following condition:
specifically, in the first display area, a plurality of the sensor containers in S are also displayed in a serial connection order, for example, when m is 10, in the first display area, S is sequentially displayed0、S1、S2……S10。
S307, when W >
Judging whether the operation state corresponding to the display is a touch state or a non-touch state;
s309, when the operation state is a non-touch state, judging whether the display state of the text container meets a popup display state or a parallel display state, so that a third container group of T lines is displayed in the first display area at the same time according to a judgment result;
specifically, the third container group includes a text container and/or a target container, that is, any one of the third container groups includes a text container and a target container, where the text container includes a first text container and a second text container, the first text container refers to a control for storing the gateway parameter, and the second text container refers to a control for storing the sensor parameter.
Specifically, according to the determination result, the step of simultaneously displaying the third container group of T rows in the first display area further includes the steps of:
when the display state is the popup display state, displaying T rows of target containers in the first display area, wherein T meets the following conditions:
wherein H
1The height of the target container is defined, namely the height of the gateway container is consistent with that of the sensor container;
the distance between two adjacent target containers in the Y-axis direction is defined;
refers to the display height factor of the first display area,
refers to the display height of the first display area.
Preferably, in the step S309, when
Then, the distance between two adjacent target containers in the Y-axis direction is reduced to obtain
,
The following conditions are met:
when the display state is the parallel display state, simultaneously displaying a third container group of T lines in the first display area, wherein the third container group of each line comprises a text container and a target container, and T meets the following conditions:
wherein H
1The height of the target container is defined, namely the height of the gateway container is consistent with that of the sensor container;
the distance between two adjacent target containers in the Y-axis direction is defined; h
2The height of the text container is defined, namely the heights of the first text container and the second text container are consistent;
the distance between adjacent target containers and text containers in the Y-axis direction is defined;
refers to the display height factor of the first display area,
refers to the display height of the first display area.
Preferably, in the step S309, when
And is and
then, the distance between the adjacent target container and the text container in the Y-axis direction is reduced to obtain
,
The following conditions are met:
specifically, the X-axis refers to the horizontal direction of the display, and the Y-axis refers to the vertical direction of the display.
In a specific embodiment, the display area of the display further includes a second display area, the second display area is located on one side of the first display area, and the second display area is an area where an operation image is displayed in the display.
The third embodiment provides a gateway sensor visualization system based on a non-touch display device, which can pass through the gateway container S
0And a sensor list S for displaying the target display width W and the designated display width
Comparing, when W is less than or equal to
Displaying S in the first display area according to the serial connection sequence of the gateway and the sensor
0And S, when W >
Judging whether the operation state corresponding to the display is a touch state or a non-touch state, and judging whether the display state of the text container meets a popup display state or a parallel display state when the operation state is the non-touch state, so that a third container group of T lines is displayed in the first display area simultaneously according to a judgment result; therefore, the embodiment can enable a plurality of sensors to upload data rapidly and simultaneously through the gateway; and in a non-touch state, the sensor container and the gateway container are displayed, the text container is also displayed, parameters of the sensor and the gateway are stored in the text container, and parameter information in the text container and working states corresponding to the sensor container/the gateway container are simultaneously displayed in a reasonable and orderly display area according to the height of the text container, the height of the sensor container/the gateway container and the height of the display, and meanwhile, for the text container and the sensor container/the gateway container which cannot be completely displayed on the same line, the corresponding distance between the text container and the sensor container/the gateway container is reduced to ensure that the text container and the sensor container/the gateway container are completely displayed, so that an operator can conveniently monitor the gateway and the sensors in real time, and the influence on industrial production caused by missing abnormal gateways or sensors due to the incapability of display is avoided.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.