CN117008862A - Multi-screen linked data display method, device, equipment and storage medium - Google Patents

Multi-screen linked data display method, device, equipment and storage medium Download PDF

Info

Publication number
CN117008862A
CN117008862A CN202311063233.1A CN202311063233A CN117008862A CN 117008862 A CN117008862 A CN 117008862A CN 202311063233 A CN202311063233 A CN 202311063233A CN 117008862 A CN117008862 A CN 117008862A
Authority
CN
China
Prior art keywords
controlled
scene
main control
gateway layer
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311063233.1A
Other languages
Chinese (zh)
Inventor
刘勇
邹磊
白云
胡鹏
李磊
李�浩
李英爱
张子睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Third Engineering Bureau Information Technology Co ltd
Original Assignee
China Construction Third Engineering Bureau Information 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 China Construction Third Engineering Bureau Information Technology Co ltd filed Critical China Construction Third Engineering Bureau Information Technology Co ltd
Priority to CN202311063233.1A priority Critical patent/CN117008862A/en
Publication of CN117008862A publication Critical patent/CN117008862A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Abstract

The application relates to a multi-screen linkage data display method, a device, equipment and a storage medium, which are applied to a multi-screen linkage data display system, wherein the system comprises a gateway layer, a service end, a main control end and a plurality of controlled ends, and the method comprises the following steps: respectively establishing connection between the gateway layer and the main control end and connection between the gateway layer and the controlled end, and storing connection information; after the main control terminal switches the scene page, generating a scene switching instruction and controlling the controlled terminals to enter a scene home page; and when the plurality of controlled terminals are required to display the service data, acquiring and displaying the service data from the server terminal according to the connection information. The application solves the problems of untimely picture switching and even mistakes caused by unsmooth interaction among different operators, and can realize the control of a plurality of controlled ends by only one operator through the main control end, thereby realizing the data display of multi-screen linkage and saving manpower and material resources.

Description

Multi-screen linked data display method, device, equipment and storage medium
Technical Field
The present application relates to the field of multimedia presentation technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying data in a multi-screen linkage manner.
Background
With the continuous development of computer technology, product display and technology communication increasingly depend on multimedia presentation, in order to improve display effect and provide a more flexible display mode, generally, a data display system has multiple screens, each screen needs to display different service scenes (such as a safety data plate, a monitoring picture plate and an enterprise business data plate), each scene is mutually independent, interaction forms are different, and the linkage display of multiple screens is very important.
The traditional large-screen data display system is based on a BS architecture, and is usually that a computer corresponds to a large display screen, the large display screen is composed of a plurality of small display screens in a pieced mode, each small display screen is connected with a display card of a host computer through an HDMI data line to synchronously display a display picture of the computer, and a WEB browser is used for opening pages on the computer.
The traditional large screen display mode needs to train a plurality of operators in advance, for the condition that a plurality of large screens need to be displayed in a linkage way, each large screen needs to be connected with one computer in advance when a system is deployed, meanwhile, the system is switched to different pictures, then a plurality of persons operate different computers simultaneously to switch the display content of a plurality of screens, the operation of linkage interaction is met, the operation is required to be limited by the communication among the persons, the problems of unsmooth interaction, untimely switching and even mistakes are easy to occur, time and labor are wasted, and the defect of the interaction mode is obvious when the system faces some important occasions.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method, an apparatus, a device and a storage medium for displaying data in multi-screen linkage, so as to solve the problems that in the prior art, a plurality of operators need to be trained in advance for displaying the data in multi-screen linkage, and because different operators easily have unsmooth interaction, the switching of pictures is not timely or even is wrong, and a plurality of operators need to operate, and the multi-screen linkage is time-consuming and labor-consuming for displaying the data.
In order to achieve the technical purpose, the application adopts the following technical scheme:
in a first aspect, the present application provides a multi-screen linked data display method, applied to a multi-screen linked data display system, where the multi-screen linked data display system includes a gateway layer, a server, a master control end and a plurality of controlled ends, and the multi-screen linked data display method includes:
establishing connection between a gateway layer and a main control end through a preset login account password, generating a linkage code, establishing connection between the gateway layer and a controlled end through the linkage code, and storing connection information;
after the main control terminal switches the scene page, generating a scene switching instruction and controlling a plurality of controlled terminals to enter a scene home page;
when a plurality of controlled terminals are required to display service data, the service data are acquired and displayed from the server terminal according to the connection information.
In some possible implementations, after the master terminal switches the scene page, generating a scene switching instruction and controlling the plurality of slave terminals to enter the scene home page, including:
when the main control terminal switches the scene page according to the scene switching request, the main control terminal generates a scene switching instruction according to the switched scene;
transmitting a scene switching instruction to a plurality of controlled terminals according to the connection information and the gateway layer;
and according to the scene switching instruction, the controlled ends enter the scene home page through the scene switching route.
In some possible implementations, the sending, according to the connection information and the gateway layer, a handover scene instruction to the plurality of controlled ends includes:
the main control terminal sends a scene switching instruction to the gateway layer according to the connection information;
the gateway layer determines a plurality of controlled ends controlled by the main control end according to the connection information;
and the gateway layer sends a scene switching instruction to a plurality of controlled terminals controlled by the main control terminal according to the connection information.
In some possible implementations, when a plurality of controlled terminals are required to display service data, the service data is acquired and displayed from the server terminal according to the connection information, including:
the gateway layer requests the server to acquire the service data of the current page through the connection information;
the gateway layer maps the service data of the current page to the Model layer through the connection information;
modifying the appearance field of the ViewModel layer through the Model layer to generate an execution command;
and driving the View layer to modify the View and display the service data according to the service data of the current page and the execution command.
In some possible implementations, the connection information includes a linkage code and master channel information; establishing connection between a gateway layer and a main control end through presetting a login account password, generating a linkage code, comprising:
the method comprises the steps that a main control end logs in a multi-screen linkage data display system through a preset account number and password, and connection between a gateway layer and the main control end is established;
the gateway layer generates and stores a linkage code and channel information of a main control end;
and the gateway layer returns the linkage code to the main control end for display.
In some possible implementations, the connection information includes controlled-end channel information and connection parameter information; establishing connection between the gateway layer and the controlled end through the linkage code, comprising:
the controlled end logs in the multi-screen linkage data display system through the linkage code, and connection between the gateway layer and the controlled end is established;
the gateway layer binds the main control terminal and the linkage code to generate and store the channel information and the connection parameter information of the controlled terminal.
In some possible implementations, the multi-screen linked data display method further includes: judging whether the controlled end is broken accidentally, and when the controlled end is reconnected due to the accidental broken wire, recovering the broken controlled end to a scene page before the broken wire according to scene routing information when the controlled end is broken wire;
judging whether the controlled end is broken accidentally, and when the controlled end is reconnected due to the accidental broken wire, recovering the broken controlled end to a scene page before the broken wire according to scene routing information when the controlled end is broken, wherein the method comprises the following steps:
performing heartbeat detection on a plurality of controlled ends through a gateway layer, and judging whether unexpected disconnection occurs at the controlled ends;
if the controlled end is broken by accident, recording scene route information when the controlled end is broken;
when the gateway layer detects that the disconnected controlled end is reconnected according to the connection information, pushing scene routing information when the controlled end is disconnected to the reconnected controlled end;
and the reconnected controlled terminal restores to the scene page before disconnection according to the scene route information when the controlled terminal is disconnected.
In a second aspect, the present application further provides a multi-screen linked data display device, including:
the connection module is used for establishing connection between the gateway layer and the main control end through a preset login account password, generating a linkage code, establishing connection between the gateway layer and the controlled end through the linkage code, and storing connection information;
the switching module is used for generating a scene switching instruction and controlling a plurality of controlled terminals to enter a scene home page after the main control terminal switches the scene page;
and the display module is used for acquiring and displaying the service data from the server according to the connection information when a plurality of controlled terminals are required to display the service data.
In a third aspect, the present application also provides a multi-screen device comprising a memory and a processor, wherein,
a memory for storing a program;
and the processor is coupled with the memory and is used for executing the program stored in the memory so as to realize the steps in the multi-screen linkage data display method in any implementation mode.
In a fourth aspect, the present application further provides a computer readable storage medium, configured to store a computer readable program or instructions, where the program or instructions, when executed by a processor, implement the steps in a data presentation method of multi-screen linkage in any one of the above implementations.
The beneficial effects of adopting the embodiment are as follows: the application relates to a multi-screen linkage data display method, a device, equipment and a storage medium, which are applied to a multi-screen linkage data display system, wherein the system comprises a gateway layer, a service end, a main control end and a plurality of controlled ends, and the method comprises the following steps: establishing connection between a gateway layer and a main control end through a preset login account password, generating a linkage code, establishing connection between the gateway layer and a controlled end through the linkage code, and storing connection information; after the main control terminal switches the scene page, generating a scene switching instruction and controlling the controlled terminals to enter a scene home page; and when the plurality of controlled terminals are required to display the service data, acquiring and displaying the service data from the server terminal according to the connection information. According to the application, the main control end and the controlled end are respectively connected with the gateway after logging in through the logging code and the linkage code, the gateway stores the association relation between the main control end and the controlled end, the main control end switches the display page of the controlled end through the gateway layer, and only one operator can realize the control of a plurality of controlled ends through the main control end, so that the data display of multi-screen linkage is realized, meanwhile, the main control end and the controlled end in the multi-screen linkage system are flexible and expandable through the logging code and the linkage code, the controlled end can be quickly and automatically restored to the scene page before disconnection after disconnection, the problems of untimely and even error picture switching caused by unsmooth interaction among different operators are solved, and the manpower and material resources are saved.
Drawings
FIG. 1 is a flow chart of an embodiment of a method for displaying multi-screen linked data according to the present application;
FIG. 2 is a schematic diagram of a multi-screen linked data display system according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating an embodiment of the step S102 in FIG. 1 according to the present application;
FIG. 4 is a flowchart illustrating an embodiment of the step S302 in FIG. 3 according to the present application;
FIG. 5 is a flowchart illustrating an embodiment of step S103 in FIG. 1 according to the present application;
FIG. 6 is a flowchart illustrating an embodiment of the step S104 in FIG. 1 according to the present application;
fig. 7 is a flow chart of an embodiment of establishing a connection between a gateway layer and a master control terminal according to the present application;
FIG. 8 is a schematic diagram illustrating a structure of an embodiment of a multi-screen linked data display device according to the present application;
fig. 9 is a schematic structural diagram of a multi-screen device according to an embodiment of the present application.
Detailed Description
The following detailed description of preferred embodiments of the application is made in connection with the accompanying drawings, which form a part hereof, and together with the description of the embodiments of the application, are used to explain the principles of the application and are not intended to limit the scope of the application.
Before describing embodiments of the present application, related words are explained:
redis: the method is not only a middleware, but also a database, namely a non-relational database;
WebSocket: is a protocol for full duplex communication over a single TCP connection;
token: the server generates a Token and returns the Token to the client after the first login, and the client only needs to carry the Token to request data without carrying a user name and a password again;
hash value: an arbitrary length input (also called pre-mapped pre-image) is transformed by a hashing algorithm into a fixed length output, which is a hash value.
In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The application provides a multi-screen linkage data display method, a device, equipment and a storage medium, which are respectively described below.
Referring to fig. 1, fig. 1 is a flow chart of an embodiment of a multi-screen linked data display method provided by the present application, and in one embodiment of the present application, a multi-screen linked data display method is disclosed, which is applied to a multi-screen linked data display system, wherein the multi-screen linked data display system includes a gateway layer, a server, a master control end and a plurality of controlled ends, and the multi-screen linked data display method includes:
s101, establishing connection between a gateway layer and a main control end through a preset login account password, generating a linkage code, establishing connection between the gateway layer and a controlled end through the linkage code, and storing connection information;
s102, after a main control terminal switches a scene page, generating a scene switching instruction and controlling a plurality of controlled terminals to enter a scene home page;
and S103, when a plurality of controlled terminals are required to display the service data, acquiring and displaying the service data from the server terminal according to the connection information.
In the above embodiment, the master control end and the slave end may be computer computers, except that the login modes of the master control end and the slave end are different, the master control end logs in through a set account password, after logging in, establishes a connection with the gateway, the gateway layer generates and returns a linkage code to be displayed for the master control end, then the computer logged in to the multi-screen linkage data display system through the linkage code can be used as the slave end, the slave end establishes a connection with the gateway after logging in through the linkage code, after establishing the connection between the gateway layer and the master control end and the connection between the gateway layer and the slave end, the gateway layer stores the association relationship between the master control end and the slave end, the gateway layer communicates with the master control end through the master control end WebSocket channel information, and the gateway layer communicates with the slave end through the slave end WebSocket channel information. After the main control end and the controlled end are logged in, the multi-screen linkage data display system can be operated by only one operator, the multi-screen linkage data display is completed, and meanwhile, the main control end and the controlled end in the multi-screen linkage system are flexible and extensible through login codes and linkage codes.
Referring to fig. 2, fig. 2 is a schematic diagram of a relationship between a gateway layer, a server, a master control end and a plurality of controlled ends according to an embodiment of the multi-screen linkage data display system provided by the present application, and fig. 2 can be used to see a connection relationship between the gateway layer and the server, the master control end and the plurality of controlled ends, where the gateway layer is respectively connected with the server, the master control end and the plurality of controlled ends, and is used as a relay of other parts.
When the display page needs to be switched, the main control end is used for controlling, after the main control end finishes switching of the scene page, a scene switching instruction is automatically generated, a plurality of controlled ends are controlled to enter the scene home page through the WebSocket channel information of the main control end and the WebSocket channel information of the controlled ends, and one data comprehensive display page is provided, which is called the scene home page.
The connection information comprises Token, the service end is required to acquire service data of the current page through the Token, the service end is required to inquire a database for the service data and return the database to the gateway layer, and the gateway layer pushes the data to the corresponding controlled end for display.
Compared with the prior art, the multi-screen linkage data display method provided by the embodiment is applied to a multi-screen linkage data display system, and the system comprises a gateway layer, a service end, a main control end and a plurality of controlled ends, and comprises the following steps: establishing connection between a gateway layer and a main control end through a preset login account password, generating a linkage code, establishing connection between the gateway layer and a controlled end through the linkage code, and storing connection information; after the main control terminal switches the scene page, generating a scene switching instruction and controlling the controlled terminals to enter a scene home page; and when the plurality of controlled terminals are required to display the service data, acquiring and displaying the service data from the server terminal according to the connection information. According to the application, the main control end and the controlled end are respectively connected with the gateway after logging in through the logging code and the linkage code, the gateway stores the association relation between the main control end and the controlled end, the main control end can switch the display page of the controlled end through the gateway layer, and only one operator can realize the control of a plurality of controlled ends through the main control end, so that the data display of multi-screen linkage is realized, meanwhile, the main control end and the controlled end in the multi-screen linkage system are flexible and expandable through the logging code and the linkage code, the controlled end can be quickly and automatically restored to the scene page before disconnection after disconnection, the problems of untimely and even error picture switching caused by unsmooth interaction among different operators are solved, and the manpower and material resources are saved.
Referring to fig. 3, fig. 3 is a flowchart of an embodiment of step S102 in fig. 1 provided by the present application, in some embodiments of the present application, after a master terminal switches a scene page, a scene switching instruction is generated and a plurality of slave terminals are controlled to enter a scene home page, including:
s301, when a main control terminal switches a scene page according to a scene switching request, the main control terminal generates a scene switching instruction according to a scene after switching;
s302, sending a scene switching instruction to a plurality of controlled terminals according to the connection information and the gateway layer;
s303, according to the scene switching instruction, a plurality of controlled terminals enter a scene home page through a scene switching route.
In the above embodiment, for the multi-screen linkage display system, the displayed content, that is, the scene page, can be adjusted according to the need, and the scene switching can be realized by an operator through the master control terminal, and the scene switching request is an actually required scene switching request and is generated according to the actual need.
After the operation main control terminal switches the scene page according to the scene switching request, the main control terminal automatically generates a scene switching instruction according to the switched scene, establishes connection between the main control terminal and the controlled terminals through the gateway layer, sends the scene switching instruction to the controlled terminals according to the connection information, and then the controlled terminals enter the scene home page through the scene switching route.
Each page in the master control end has a unique identifier similar to a path to mark each different page, which can be a security or a first page, when a certain specific page needs to be jumped, the jump is performed according to the security or the first page, and the like, namely, scene routing.
Referring to fig. 4, fig. 4 is a flowchart of an embodiment of step S302 in fig. 3, where in some embodiments of the present application, a switching scenario instruction is sent to a plurality of controlled ends according to connection information and a gateway layer, including:
s401, the main control terminal sends a scene switching instruction to the gateway layer according to the connection information;
s402, the gateway layer determines a plurality of controlled ends controlled by the main control end according to the connection information;
s403, the gateway layer sends a scene switching instruction to a plurality of controlled terminals controlled by the main control terminal according to the connection information.
In the above embodiment, the master control end sends the switching scene instruction to the gateway layer through the master control end WebSocket channel information in the connection information, after receiving the switching scene instruction, the gateway layer can learn the scene of the master control end switching, after the slave control end logs in through the linkage code, the master control end WebSocket channel information can be automatically stored in the Redis, after receiving the switching scene instruction, the gateway layer takes out the WebSocket channel information of the multiple slave control ends corresponding to the current master control end from the Redis, that is, determines the multiple slave control ends controlled by the master control end, distributes the switching scene instruction to the multiple slave control ends controlled by the master control end, at this time, the multiple slave control ends controlled by the master control end can receive the switching scene instruction, the flow consumes time in millisecond level, and the multiple slave control ends controlled by the master control end can receive the switching scene instruction in the moment.
Referring to fig. 5, fig. 5 is a flowchart of an embodiment of step S103 in fig. 1 provided by the present application, in some embodiments of the present application, when a plurality of controlled terminals are required to display service data, the method for acquiring and displaying service data from a server according to connection information includes:
s501, a gateway layer requests a server to acquire service data of a current page through connection information;
s502, the gateway layer maps the service data of the current page to the Model layer through the connection information;
s503, modifying the expression field of the ViewModel layer through the Model layer to generate an execution command;
s504, driving the View layer to modify the View and display the service data according to the service data of the current page and the execution command.
In the above embodiment, the server is a back-end service specifically querying the database, the gateway layer requests the server to obtain the service data of the current page through the Token in the connection information, and the server queries the database to obtain the service data of the current page, and then returns the service data of the current page to the gateway layer.
As can be seen from fig. 2, after the controlled terminal requests the server terminal for the service data of the current page through the connection information, the controlled terminal checks whether the request is legal through the Token, if so, the service data of the current page is mapped to the Model layer, and then the performance field of the View Model layer is modified through the Model layer, the View Model layer provides the service data of the current page and the execution command, and the View layer is driven to modify the View and display the service data of the current page.
The process adopts an MVVM framework, and because the MVVM framework adopts bidirectional data binding, when a main control terminal switches scene pages, the data change in a View layer of the main control terminal is automatically reflected to the View Model layer, when a user performs interactive operation on the main control terminal, the data change in the View layer can be caused, the View Model layer drives the data change in the Model layer and transmits the data change to a gateway layer, and the gateway layer reflects the change to a controlled terminal, so that the picture change of the whole main control terminal is synchronous to the change of the controlled terminal.
Referring to fig. 6, fig. 6 is a flowchart of an embodiment of step S104 in fig. 1 provided in the present application, and in some embodiments of the present application, the method for displaying data with multi-screen linkage further includes: judging whether the controlled end is broken accidentally, and when the controlled end is reconnected due to the accidental broken wire, recovering the broken controlled end to a scene page before the broken wire according to scene routing information when the controlled end is broken wire;
judging whether the controlled end is broken accidentally, and when the controlled end is reconnected due to the accidental broken wire, recovering the broken controlled end to a scene page before the broken wire according to scene routing information when the controlled end is broken, wherein the method comprises the following steps:
s601, performing heartbeat detection on a plurality of controlled ends through a gateway layer, and judging whether accidental disconnection occurs at the controlled ends;
s602, if the controlled terminal is broken by accident, recording scene route information when the controlled terminal is broken;
s603, pushing scene routing information when the controlled terminal is disconnected to the reconnected controlled terminal when the gateway layer detects that the disconnected controlled terminal is reconnected according to the connection information;
s604, the reconnected controlled terminal restores to the scene page before disconnection according to the scene route information when the controlled terminal is disconnected.
In the above embodiment, when the data display is performed by the multi-screen linkage, it is inevitable that the controlled end is broken due to some unexpected reasons or faults, and after the repair, the controlled end needs to be reconnected to the multi-screen linkage data display system and continue displaying the page before the broken line, and then it is required to determine whether the controlled end is broken due to the unexpected reasons or the display ends to normally break the line.
The gateway layer carries out heartbeat detection according to the WebSocket channel information of the controlled terminal, wherein the heartbeat detection means that the controlled terminal sends a data packet to the gateway layer according to a preset period, and if the gateway layer does not receive a client message for a long time, the controlled terminal is indicated to be disconnected for some reason.
Whether the controlled end is disconnected or not can be judged through heartbeat detection, if the controlled end is detected to be disconnected, and if the controlled end is not the main control end to exit the display scene and send an exit instruction to the gateway layer, the gateway layer immediately distributes the exit instruction to a plurality of controlled ends, the plurality of controlled ends normally exit after receiving the exit instruction, and the controlled ends are considered to have unexpected disconnection.
The gateway layer can record the information of the controlled end of the disconnection and the current access scene page, namely the scene route information when the controlled end is disconnected, because the heartbeat information of the controlled end of the unexpected disconnection is not monitored.
When the disconnected controlled end uses the linkage code to log in again and returns to the multi-screen linkage display system, the gateway layer can detect that the previously disconnected controlled end is reconnected and push the scene route information of the last time the client end is located when the previous disconnected controlled end to the reconnected controlled end.
After receiving the scene routing information, the reconnected controlled terminal automatically jumps to the corresponding scene page, and automatically restores to the scene page before exiting. The whole process is carried out without a plurality of operators, and the scene page before the exit can be automatically restored only by carrying out linkage code re-login by the operators, so that manpower and material resources are saved.
Referring to fig. 7, fig. 7 is a schematic flow chart of an embodiment of establishing a connection between a gateway layer and a master control end according to the present application, wherein in some embodiments of the present application, connection information includes a link code and master control end channel information; establishing connection between a gateway layer and a main control end through presetting a login account password, generating a linkage code, comprising:
s701, a main control terminal logs in a multi-screen linkage data display system through a preset account number and password, and connection between a gateway layer and the main control terminal is established;
s702, the gateway layer generates and stores a linkage code and channel information of a main control end;
s703, the gateway layer returns the linkage code to the main control terminal for display.
In the above embodiment, the preset account password login is set according to the actual use process, which is not further limited in the application, after the main control terminal logs in the multi-screen linkage data display system through the preset account password, the gateway layer will automatically generate the linkage code of the login and return the linkage code to the main control terminal for display, the screen of the main control terminal will display the linkage code, and the subsequent controlled terminal device can bind with the corresponding main control terminal according to the specific linkage code, but will not directly connect with the main control terminal. Meanwhile, channel information of the master control end, namely WebSocket channel information of the master control end, is automatically generated and serves as a basis for establishing connection between the master control end and the gateway layer, and interaction between the master control end and the gateway layer is conducted based on the WebSocket channel information of the master control end.
It should be noted that, the linkage code uses the atomic self-increment property of Redis, and when the login request of the master control terminal is received each time, id+1 of the self-increment Redis can ensure that the linkage code has no repetition, and then the self-increment id is converted into a 62-bit character string with the length of 6 bits, which is used as a globally unique Hash value.
In some embodiments of the present application, the connection information includes controlled-end channel information and connection parameter information; establishing connection between the gateway layer and the controlled end through the linkage code, comprising:
the controlled end logs in the multi-screen linkage data display system through the linkage code, and connection between the gateway layer and the controlled end is established;
the gateway layer binds the main control terminal and the linkage code to generate and store the channel information and the connection parameter information of the controlled terminal.
In the above embodiment, after the controlled terminal inputs the linkage code and logs in the multi-screen linkage data display system, the gateway layer queries the information of the main control terminal corresponding to the linkage code from the Redis according to the linkage code, then establishes WebSocket connection with the controlled terminal, that is, obtains the WebSocket channel connection information of the controlled terminal, binds the linkage code and the main control terminal at the same time, stores the following information in the Redis, the linkage code, the WebSocket channel information of the main control terminal, the WebSocket channel information of the controlled terminal, and automatically generates the connection parameter information, including but not limited to Token, session start time, account number password of the main control terminal, ip address, account number authority and other information, and uniformly stores the information to the Redis. Then other computers use the linkage code to log in the system, at the moment, the computer continues to establish WebSocket connection with the identity of the controlled terminal and the gateway layer, as 1 controlled terminal is already bound in front of the linkage code, the computer at this time will be numbered as the controlled terminal 2 automatically, the gateway layer returns Token to the controlled terminal, each service data request of the subsequent controlled terminal carries the Token as permission verification, so that the push can realize that a plurality of controlled terminals log in the multi-screen linkage data display system according to the linkage code.
In order to better implement the multi-screen linked data display method according to the embodiment of the present application, referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of a multi-screen linked data display device provided by the present application, where the multi-screen linked data display device 800 includes:
the connection module 810 is configured to establish a connection between the gateway layer and the master control terminal through a preset login account password, generate a linkage code, establish a connection between the gateway layer and the slave control terminal through the linkage code, and store connection information;
the switching module 820 is configured to generate a scene switching instruction and control the plurality of controlled terminals to enter the scene home page after the master terminal switches the scene page;
and the display module 830 is configured to obtain and display service data from the server according to the connection information when a plurality of controlled terminals are required to display the service data.
What needs to be explained here is: the device 800 provided in the foregoing embodiments may implement the technical solutions described in the foregoing method embodiments, and the specific implementation principles of the foregoing modules or units may be referred to the corresponding content in the foregoing method embodiments, which is not described herein again.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a multi-screen device according to an embodiment of the application. The application further provides a multi-screen device based on the multi-screen linkage data display method, and the multi-screen device can be a mobile terminal, a desktop computer, a notebook computer, a palm computer, a server and other computing devices. The multi-screen device includes a processor 910, a memory 920, and a display 930. Fig. 9 shows only some of the components of the multi-screen device, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead.
Memory 920 may be an internal storage unit of the multi-screen device in some embodiments, such as a hard disk or memory of the multi-screen device. The memory 920 may also be an external storage device of the multi-screen device in other embodiments, such as a plug-in hard disk provided on the multi-screen device, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. Further, the memory 920 may also include both internal storage units and external storage devices of the multi-screen device. The memory 920 is used for storing application software installed on the multi-screen device and various data, such as program codes installed on the multi-screen device. Memory 920 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 920 stores a multi-screen linked data presentation program 940, where the multi-screen linked data presentation program 940 is executable by the processor 910 to implement the multi-screen linked data presentation method according to embodiments of the present application.
The processor 910 may be, in some embodiments, a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chip for executing program code or processing data stored in the memory 920, such as performing a multi-screen linked data presentation method, etc.
The display 930 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like in some embodiments. The presenter 930 is used to present information at a multi-screen device and to present a visual user interface. The components 910-930 of the multi-screen device communicate with each other over a system bus.
In one embodiment, the steps in the multi-screen linked data presentation method described above are implemented when the processor 910 executes the multi-screen linked data presentation program 940 in the memory 920.
The present embodiment also provides a computer-readable storage medium having stored thereon a multi-screen linked data presentation program which when executed by a processor implements the steps of:
establishing connection between a gateway layer and a main control end through a preset login account password, generating a linkage code, establishing connection between the gateway layer and a controlled end through the linkage code, and storing connection information;
after the main control terminal switches the scene page, generating a scene switching instruction and controlling a plurality of controlled terminals to enter a scene home page;
when a plurality of controlled terminals are required to display service data, the service data are acquired and displayed from the server terminal according to the connection information.
In summary, the method, device, equipment and storage medium for displaying multi-screen linked data provided in this embodiment are applied to a multi-screen linked data display system, where the system includes a gateway layer, a server, a master control end and a plurality of controlled ends, and the method includes: establishing connection between a gateway layer and a main control end through a preset login account password, generating a linkage code, establishing connection between the gateway layer and a controlled end through the linkage code, and storing connection information; after the main control terminal switches the scene page, generating a scene switching instruction and controlling the controlled terminals to enter a scene home page; and when the plurality of controlled terminals are required to display the service data, acquiring and displaying the service data from the server terminal according to the connection information. According to the application, the main control end and the controlled end are respectively connected with the gateway after logging in through the logging code and the linkage code, the gateway stores the association relation between the main control end and the controlled end, the main control end can switch the display page of the controlled end through the gateway layer, and only one operator can realize the control of a plurality of controlled ends through the main control end, so that the data display of multi-screen linkage is realized, meanwhile, the main control end and the controlled end in the multi-screen linkage system are flexible and expandable through the logging code and the linkage code, the controlled end can be quickly and automatically restored to the scene page before disconnection after disconnection, the problems of untimely and even error picture switching caused by unsmooth interaction among different operators are solved, and the manpower and material resources are saved.
The present application is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present application are intended to be included in the scope of the present application.

Claims (10)

1. The multi-screen linked data display method is applied to a multi-screen linked data display system, and the multi-screen linked data display system comprises a gateway layer, a service end, a main control end and a plurality of controlled ends, and is characterized by comprising the following steps:
establishing connection between the gateway layer and the master control end through a preset login account password, generating a linkage code, establishing connection between the gateway layer and the slave control end through the linkage code, and storing connection information;
after the main control terminal switches the scene page, generating a scene switching instruction and controlling the controlled terminals to enter a scene home page;
and when the plurality of controlled terminals are required to display the service data, acquiring and displaying the service data from the server terminal according to the connection information.
2. The method for displaying multi-screen linked data according to claim 1, wherein the generating a scene switching instruction and controlling the plurality of controlled terminals to enter a scene home page after the master terminal switches the scene page comprises:
after the main control terminal switches the scene page according to the scene switching request, the main control terminal generates a scene switching instruction according to the switched scene;
transmitting the scene switching instruction to the controlled ends according to the connection information and the gateway layer;
and according to the scene switching instruction, the controlled ends enter a scene home page through a scene switching route.
3. The method for displaying multi-screen linked data according to claim 2, wherein the sending the switching scene instruction to the plurality of controlled terminals according to the connection information and the gateway layer includes:
the main control terminal sends the scene switching instruction to the gateway layer according to the connection information;
the gateway layer determines a plurality of controlled ends controlled by the main control end according to the connection information;
and the gateway layer sends the scene switching instruction to the controlled ends controlled by the main control end according to the connection information.
4. The multi-screen linked data display method according to claim 1, wherein when the plurality of controlled terminals are required to display service data, the service data is acquired and displayed from the server terminal according to the connection information, including:
the gateway layer requests the server to acquire service data of a current page through the connection information;
the gateway layer maps the service data of the current page to a Model layer through the connection information;
modifying the appearance field of the ViewModel layer through the Model layer to generate an execution command;
and driving a View layer to modify a View according to the service data of the current page and the execution command and displaying the service data.
5. The multi-screen linked data display method according to claim 1, wherein the connection information comprises a linked code and master control channel information; the connection between the gateway layer and the main control terminal is established through presetting a login account password, and a linkage code is generated, and the method comprises the following steps:
the main control terminal logs in the multi-screen linkage data display system through a preset account number and password, and connection between the gateway layer and the main control terminal is established;
the gateway layer generates and stores the linkage code and the channel information of the main control end;
and the gateway layer returns the linkage code to the main control end for display.
6. The multi-screen linked data display method according to claim 5, wherein the connection information includes controlled-end channel information and connection parameter information; the establishing connection between the gateway layer and the controlled end through the linkage code comprises the following steps:
the controlled end logs in the multi-screen linkage data display system through the linkage code, and connection between the gateway layer and the controlled end is established;
and the gateway layer binds the main control terminal and the linkage code to generate and store the controlled terminal channel information and the connection parameter information.
7. The multi-screen linked data presentation method of claim 1, further comprising: judging whether the controlled end is broken accidentally, and when the controlled end is reconnected due to the accidental broken wire, recovering the broken controlled end to a scene page before the broken wire according to scene routing information when the controlled end is broken wire;
judging whether the controlled end is broken accidentally, and when the controlled end is reconnected due to the accidental broken wire, recovering the broken controlled end to a scene page before the broken wire according to scene routing information when the controlled end is broken, wherein the method comprises the following steps:
performing heartbeat detection on the controlled terminals through the gateway layer, and judging whether accidental disconnection occurs at the controlled terminals;
if the controlled end is broken by accident, recording scene route information when the controlled end is broken;
when the gateway layer detects that the disconnected controlled end is reconnected according to the connection information, pushing scene routing information when the controlled end is disconnected to the reconnected controlled end;
and the reconnected controlled terminal is restored to the scene page before disconnection according to the scene route information when the controlled terminal is disconnected.
8. A multi-screen linked data presentation device, comprising:
the connection module is used for establishing connection between the gateway layer and the main control end through a preset login account password, generating a linkage code, establishing connection between the gateway layer and the controlled end through the linkage code, and storing connection information;
the switching module is used for generating a scene switching instruction and controlling the controlled ends to enter a scene home page after the main control end switches the scene page;
and the display module is used for acquiring and displaying the service data from the server according to the connection information when the plurality of controlled terminals are required to display the service data.
9. A multi-screen device comprising a memory and a processor, wherein,
the memory is used for storing programs;
the processor, coupled to the memory, is configured to execute the program stored in the memory to implement the steps in the multi-screen linked data presentation method of any one of claims 1 to 7.
10. A computer readable storage medium storing a computer readable program or instructions which, when executed by a processor, enable the steps in a multi-screen linked data presentation method according to any one of claims 1 to 7.
CN202311063233.1A 2023-08-22 2023-08-22 Multi-screen linked data display method, device, equipment and storage medium Pending CN117008862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311063233.1A CN117008862A (en) 2023-08-22 2023-08-22 Multi-screen linked data display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311063233.1A CN117008862A (en) 2023-08-22 2023-08-22 Multi-screen linked data display method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117008862A true CN117008862A (en) 2023-11-07

Family

ID=88561799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311063233.1A Pending CN117008862A (en) 2023-08-22 2023-08-22 Multi-screen linked data display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117008862A (en)

Similar Documents

Publication Publication Date Title
US7197751B2 (en) Real-time collaboration client
US9740515B2 (en) Exception handling method, apparatus, and client
US8595377B1 (en) Apparatus and method for flexible delivery of multiple digital video streams
CN104199723B (en) Camera mapping method based on virtual equipment
US8762544B2 (en) Selectively communicating data of a peripheral device to plural sending computers
CN102646031A (en) Method for controlling large screen to display contents by mobile terminal
US20070185959A1 (en) Control unit operations in a real-time collaboration server
CN107479957A (en) A kind of switching method of Multiple system, device, equipment and storage medium
KR20160069442A (en) Service error detection apparatus for cloud streaming service, end to end service monitoring system and method thereof
CN102404641A (en) Method and system for remotely controlling television by using smart phone
CN103995567B (en) A kind of dual system intelligent interaction all-in-one and its dual system switching method
US20060265665A1 (en) Terminal apparatus, network system, window display method, and computer program
JP6615997B2 (en) Synchronization of server-side keyboard layout and client-side keyboard layout in virtual sessions
EP3122008A1 (en) Cloud desktop pushing method and system, pushing end and receiving end
WO2016202102A1 (en) Message transmission method and device
CN104918105A (en) Media file multi-screen playing method, device and system
US20150256446A1 (en) Method and apparatus for relaying commands
CN102438022A (en) Method and device, and system for logging in server system
JP2002320212A (en) Moving image linked program
CN113765712A (en) Server management method and device, electronic equipment and readable storage medium
CN110266701A (en) Smart machine data transmission method, device, medium and electronic equipment
CN117008862A (en) Multi-screen linked data display method, device, equipment and storage medium
CN111444670A (en) Document annotation method and device, computer equipment and storage medium
CN116233209A (en) Remote management scheduling method for GPU cloud rendering service
CN108959153B (en) All-in-one machine, data continuous transmission method, device, equipment and storage medium

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