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 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, obtaining a gateway container S0And sensor list S ═ (S)1,S2,S3,……,Sm) Wherein S isiThe number of the ith sensor container is defined, i is 1 … … m, and m is the number of the 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, according to the target display width W and the designated display width
For comparison, W satisfies the following condition:
wherein, W0Means S0Width of (W)iThe width of Si is referred to, and 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.
Specifically, W refers to 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 is a display width coefficient of a first display area, and B is the display width of the first display area;
specifically, the
Refers to the maximum display width of the first display region.
Specifically, the first display area refers to an area where a gateway container and the sensor container are displayed in the display, and preferably, the first display area is an entire display area of the display.
Preferably, K ranges from 2 to Z, Z being the upper limit value of K, Z satisfying the following condition:
s105, when
Displaying S in a first display area according to the serial connection sequence of the gateway and the sensor
0And S;
preferably, in step S105, when
Then, the distance between two adjacent target containers is reduced to obtain a reduced distance D
0,D
0The following conditions are met:
D0=D-L;
wherein L is the reduced distance between two adjacent target containers in the X-axis direction, namely D0Can be understood as a reduced phaseThe 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 serially connected order, for example, when m is 10, in the first display area, S is sequentially displayed0、S1、S2……S10。
S107, when
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 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
By contrast, when
Displaying S in a first display area according to the serial connection sequence of the gateway and the sensor
0And S, when
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 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 capacityDevice S0And sensor list S ═ (S)1,S2,S3,……,Sm) Wherein S isiThe number of the ith sensor container is defined, i is 1 … … m, and m is the number of the 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 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.
Specifically, W refers to 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.
According to the followingA piece:
wherein, K is the display width coefficient of the first display area, B is the display width of the first display area;
in particular, the amount of the solvent to be used,
refers to the maximum display width of the first display region.
Specifically, the first display area is an area in the display where the gateway container and the sensor container are displayed, and preferably, the first display area is an entire display area of the display.
Preferably, K ranges from 2 to Z, Z being the upper limit value of K, Z satisfying the following condition:
s205, when
Displaying S in a first display area according to the serial connection sequence of the gateway and the sensor
0And S;
preferably, in 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:
D0=D-L;
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 serially connected order, for example, when the m is 10, in the first display area, S is sequentially displayed0、S1、S2……S10。
S207, when
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 first container group, in the first display area, and the target container groups in the first row are displayed 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 target container groups in the next row are displayed by moving up and down in the Y-axis direction of the first display area, the second container group, which is the second container group, and the target container groups in the R rows are displayed according to the serial connection sequence of the n sensor containers, and so on, 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 air conditioner is provided with a fan,the first container group comprises a gateway container and n-1 sensor containers, wherein Wi≤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 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
By contrast, when
Displaying S in a first display area according to the serial connection sequence of the gateway and the sensor
0And S, when
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 R lines of target container groups in the first display area according to a scroll instruction, wherein in the X-axis direction of the first display area, each line of target container groups displays n target containers, and when receiving the scroll instruction, namely a mouse scroll instruction, the target container groups move up and down in the Y-axis direction of the first display area to display the next line of target container groups, namely a second container groupUploading data quickly and simultaneously; 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 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 isiThe number of the ith sensor container is defined, i is 1 … … m, and m is the number of the 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, according to the target display width W and the appointed display 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.
Specifically, W refers to 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, W0Wi, i.e. the width of the gateway container is larger than the width of the sensor container.
The following conditions are met:
wherein, K is the display width coefficient of the first display area, B is the display width of the first display area;
in particular, the amount of the solvent to be used,
refers to the maximum display width of the first display region.
Specifically, the first display area is an area in the display where the gateway container and the sensor container are displayed, and preferably, the first display area is an entire display area of the display.
Preferably, K ranges from 2 to Z, Z being the upper limit value of K, Z satisfying the following condition:
s305, when
Displaying S in a first display area according to the serial connection sequence of the gateway and the sensor
0And S;
preferably, in 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:
D0=D-L;
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 serially connected order, for example, when m is 10, in the first display area, S is sequentially displayed0、S1、S2……S10。
S307, when
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 consistent, 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,
means thatA display height of the first display area.
Preferably, in step S309, when
Then, the distance between two adjacent target containers in the Y-axis direction is reduced to obtain
D
0The 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, the H
1The height of the target container is consistent, namely the height of the gateway container is consistent with that of the sensor container; the above-mentioned
The distance between two adjacent target containers in the Y-axis direction is defined; said 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 above-mentioned
The distance between adjacent target containers and text containers in the Y-axis direction is defined; the above-mentioned
Is a display height coefficient of the first display region, said
Refers to the display height of the first display area.
Preferably, in step S309, when
And is
Then, the distance between the adjacent target container and the text container in the Y-axis direction is reduced to obtain
D
0The 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 touch display device, which can pass through a gateway container S
0And a sensor list S for displaying the target display width W and the designated display width
By contrast, when
Displaying S in a first display area according to the serial connection sequence of the gateway and the sensor
0And S, when W is larger than W, judging that the operation state corresponding to the display is a touch state orA non-touch state, when the operation state is a non-touch state, judging whether the display state of the text container meets a pop-up display state or a parallel display 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 should not be taken as limiting the scope of the present invention, which is intended to cover any modifications, equivalents, improvements, etc. within the spirit and scope of the present invention.