CN106250078A - A kind of display terminal control method and equipment - Google Patents

A kind of display terminal control method and equipment Download PDF

Info

Publication number
CN106250078A
CN106250078A CN201610591568.4A CN201610591568A CN106250078A CN 106250078 A CN106250078 A CN 106250078A CN 201610591568 A CN201610591568 A CN 201610591568A CN 106250078 A CN106250078 A CN 106250078A
Authority
CN
China
Prior art keywords
display terminal
server
push channel
message
described display
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
CN201610591568.4A
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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201610591568.4A priority Critical patent/CN106250078A/en
Publication of CN106250078A publication Critical patent/CN106250078A/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/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/321Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
    • H04L9/3213Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of display terminal control method and equipment, be required to, for solving to communicate between display terminal with server every time, the problem that server is authenticated caused poor real to display terminal, it is achieved the real-time control to display terminal.The method includes: display terminal receives the control message that server sends, and wherein, described control message is passed through to be to send long connection that described display terminal is set up in message push channel by described server;Described display terminal carries out processing and obtaining result according to the instruction of described control message;Described display terminal returns described result to described server, and wherein, described result is by the short connection transmission on multi-medium information spreading system interface being the foundation of described display terminal.

Description

A kind of display terminal control method and equipment
Technical field
The present invention relates to communication technical field, particularly relate to a kind of display terminal control method and equipment.
Background technology
Internet of Things is widely used in intelligent transportation, environmental conservation, public safety, intelligent fire, industry monitoring, enemy's situation investigation With fields such as information gatherings.In recent years, along with the fast development of Internet of Things, terminal be no longer isolate, single existence, terminal can To be communicated with high in the clouds or other equipment by Internet of Things, realized Weigh sensor and the management of terminal by Internet of Things.
The display terminals such as intelligent television, electronic display, digital signage are more universal in the modern life, its distribution Scope is wider, can carry out advertising, news release, popularization of knowledge etc. by these display terminals.It is distributed in not Comprovincial display terminal is connected with server by Internet of Things, and display terminal can obtain data by Internet of Things from server Rear display.
But, current display terminal is every time during server request obtains data, and server is required to this Display terminal is authenticated, and in certification by returning data with rear to this display terminal, causes the poor real obtaining data.
Summary of the invention
The embodiment of the present invention provides a kind of display terminal control method and equipment, be used for solving display terminal and server it Between every time communication be required to the problem that server is authenticated caused poor real to display terminal.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
First aspect, embodiments provides one and display terminal is controlled method, including:
Display terminal receives the control message that server sends, and wherein, described control message is passed through to disappear by described server It is to send long connection that described display terminal is set up in breath push channel;
Described display terminal carries out processing and obtaining result according to the instruction of described control message;
Described display terminal returns described result to described server, and wherein, described result passes through multimedia It is that the short connection that described display terminal is set up sends on information issuing system interface.
Second aspect, embodiments provides one and display terminal is controlled method, including:
Server was controlled to the transmission of described display terminal by long connection the set up for display terminal in message push channel Message;
Described server by multi-medium information spreading system interface be the short connection set up of described display terminal, reception The result that described display terminal returns, wherein, described result is that described display terminal enters according to described control message Row obtains after processing.
The third aspect, embodiments provides a kind of display terminal, including:
Receiving unit, for receiving the control message that server sends, wherein, described control message is led to by described server Cross and send long connection the set up eventually for described display in message push channel;
Processing unit, the instruction of the described control message for receiving according to described reception unit carries out processing and at acquisition Reason result;
Transmitting element, for returning the result that described processing unit obtains, wherein, described process to described server Result is passed through to be that the short of described display foundation eventually connects transmission on multi-medium information spreading system interface.
Fourth aspect, embodiments provides a kind of server, including:
Transmitting element, sent out to described display terminal for long connection the by setting up for display terminal in message push channel Send control message;
Receive unit, be used for the short connection by multi-medium information spreading system interface being the foundation of described display terminal, Receiving the result that described display terminal returns, wherein, described result is that described display terminal disappears according to described control Breath obtains after processing.
Based on technique scheme, in the embodiment of the present invention, display terminal receives server by message push channel The long control message connecting transmission set up for described display terminal, processes according to the instruction of described control message and obtains Result, and pass through to be that the short connection of described display terminal foundation is to this server on multi-medium information spreading system interface Return result, it is achieved that display terminal is controlled in real time by server by long connection, and display terminal is by short Connect and carry out information feedback to server, it is to avoid communicate between display terminal with server is required to be authenticated being led every time The situation of the poor real caused, improves the real-time communicated between display terminal with server.
Accompanying drawing explanation
Fig. 1 is the system architecture schematic diagram that in the embodiment of the present invention, server forms with display terminal;
Fig. 2 is the method flow schematic diagram that in first embodiment of the invention, display terminal is controlled by server;
Fig. 3 is the method flow schematic diagram that in second embodiment of the invention, display terminal is controlled by server;
Fig. 4 is the system architecture schematic diagram that in the present invention the first specific embodiment, server forms with display terminal;
Fig. 5 is propelling movement and the management process schematic controlling message in the present invention the second specific embodiment;
Fig. 6 is to set up long connection procedure schematic diagram in the present invention the 3rd specific embodiment;
Fig. 7 is the method flow schematic diagram that in the present invention the 4th specific embodiment, display terminal is controlled by server;
Fig. 8 is that in the present invention the 5th specific embodiment, display terminal carries out growing the process schematic connecting monitoring;
Fig. 9 is the structural representation of display terminal in the embodiment of the present invention;
Figure 10 is the structural representation of server in the embodiment of the present invention.
Detailed description of the invention
It is required to server to solve to communicate between display terminal with server every time and display terminal is authenticated institute The problem of the poor real caused, the embodiment of the present invention provides a kind of display terminal control method and equipment.
Below in conjunction with the accompanying drawings the preferred embodiment of the present invention is described in detail.
In the embodiment of the present invention, the system architecture of server and display terminal composition as shown in Figure 1, including server 101 and display terminal 102.
Display terminal is used for: receiving the control message that server sends, wherein, this control message is passed through message by server The long connection set up for this display terminal in push channel sends;Carry out processing and obtain process knot according to the instruction controlling message Really;Returning described result to server, wherein, this result is passed through on multi-medium information spreading system interface as display The short connection that terminal is set up sends.
Server is used for: send control by long connection the set up for display terminal in message push channel to this display terminal Message processed;By the short connection set up for display terminal on multi-medium information spreading system interface, receive what display terminal returned Result, wherein, this result is to obtain after display terminal processes according to described control message.
Based on system above framework, in first embodiment of the invention, the detailed side that display terminal is controlled by server Method flow process is as shown in Figure 2, specific as follows:
Step 201: display terminal receives the control message that server sends, and wherein, this control message is led to by this server Cross and send long connection the set up for this display terminal in message push channel.
Wherein, message push channel is that server sets up the long interface being connected with display terminal.
In enforcement, before display terminal receives the control message that server sends, server needs in message push channel Upper for the long connection of display terminal foundation.
In enforcement, display terminal sets up the long process being connected first particularly as follows: display terminal is sent out to server with server Send certification to ask, wherein, the user name of display terminal and the mark of display terminal are carried in this certification request;Server is according to aobvious After showing that display terminal certification is passed through by the user name of terminal, determine the address of the message push channel that this display terminal is corresponding, and User name according to display terminal determines, with the mark of display terminal, the token that this display terminal is corresponding, returns to this display terminal Authentication response, wherein, carries the address of this token and this message push channel in this authentication response;Display terminal is sent out to server Send the long connection establishment request of the address carrying this token and this message push channel;Server determines in the request of long connection establishment After the token carried is effective, the message indicated by the address of the message push channel carried in long connection establishment is asked pushes logical Long connection is set up for display terminal on road.
Specifically, with the mark of display terminal, server determines that this display terminal is corresponding according to the user name of display terminal The method of token includes but not limited to following two method:
First method, server is random by increasing by one after the user name of display terminal and the mark of display terminal Sequence is as token corresponding to this display terminal.
Second method, server pre-builds the user name of display terminal and the mark of display terminal and this display terminal The corresponding relation list of token, obtain, by inquiring about this corresponding relation list, the token that this display terminal is corresponding.
In enforcement, server can use the one in various protocols to be that length set up in message push channel by display terminal Connect, for example with in HTML (Hypertext Markup Language) (Hyper Text Transfer Protocol, HTTP), Bayeux agreement etc. A kind of set up long connection.Server is that after long connection set up in message push channel by display terminal, server is by setting up The control message of display terminal to be sent to is packaged by the agreement used when this length connects, and display terminal is by this agreement pair The control message received from server decapsulates, and wherein, described control message is sent by long connection by server.
In enforcement, after display terminal sets up long connection with server, display terminal judges whether at interval of setting duration Described server is received by the long connection set up for described display terminal in described message push channel in described setting duration The detection signal sent, however, it is determined that do not receive described detection signal in this setting duration, it is determined that long connection is in disconnection shape State, re-establishes this length to described server request and connects, and wherein, described detection signal is used for detecting described message push channel Whether long connection of upper foundation disconnects.Such as, if display terminal is not detected by detecting signal in 7.5ms, it is determined that long connection Disconnect.
In enforcement, display terminal if it is determined that server in message push channel for this display terminal set up long junction In off-state, need again to set up long connection with server.Display terminal re-establishes the long process being connected such as with server Under: display terminal sends the length of the token carrying local preservation and the address of local this message push channel preserved to server Connection establishment is asked;Server if it is determined that this token is effective, then the message push channel carried in long connection establishment is asked Long connection is set up for display terminal in message push channel indicated by address;Server is if it is determined that this token valid, to display Terminal returns refusal and sets up the long response message connected;After display terminal receives the response message that this refusal sets up long connection, press Set up the long method being connected according to display terminal first with server, again set up long connection with server.
Step 202: display terminal carries out processing and obtaining result according to the instruction controlling message.
In enforcement, controlling message and pre-defined by server, specifically, server defines multiple control message, each control The operation that message processed instruction display terminal is carried out is different.
Specifically, control message include obtaining the message of display terminal current state and indicate display terminal to change currently The message of state.Such as, running status message, volume adjusting message, shutdown message etc., wherein, running status message is used for referring to Showing and obtain the running status that display terminal is current, volume adjusting message is for indicating the volume of regulation display terminal, shutdown message For indicating closedown display terminal.
Specifically, the operation that display terminal is carried out according to the running status message that server sends is: intercept display terminal The image of current display interface, according to the fortune of display terminal described in the display acquisition of information of the display terminal comprised in described image Row state.The operation that the volume adjusting message that display terminal sends according to server is carried out is: heightens or turns down display terminal Volume;The operation that the shutdown message that display terminal sends according to server is carried out is: close display terminal.
Step 203: display terminal returns result to server, wherein, this result is sent out by multimedia messages The short connection set up for this display terminal on distribution system interface sends.
Wherein, multi-medium information spreading system interface is that server sets up the short interface being connected with display terminal.
In second embodiment of the invention, the method detailed flow process that display terminal is controlled by server as shown in Figure 3, Specific as follows:
Step 301: server was sent out to this display terminal by long connection the set up for display terminal in message push channel Send control message.
In enforcement, server sends to display terminal before controlling message, and needing is this display in message push channel Terminal sets up long connection.
Specifically, server receives the certification request that display terminal sends, and wherein, carries this display eventually in this certification request The user name of end and the mark of this display terminal;After display terminal certification is passed through by server according to the user name of display terminal, Determine the address of the described message push channel that this display terminal is corresponding, and according to the user name of display terminal and display terminal Mark determines the token that this display terminal is corresponding;Server responds to display terminal return authentication, wherein, takes in this authentication response Address with this token He this message push channel;Server receives this token that carries of display terminal transmission and pushes with this message The long connection establishment request of the address of passage;After server determines that described token is effectively, carry in long connection establishment is asked Described long connection is set up for described display terminal in message push channel indicated by the address of message push channel.
Specifically, server determines the address of the message push channel that display terminal is corresponding, including: server is according to each The connection number that message push channel is corresponding, determines and connects the message push channel that number is minimum, message minimum for this connection number pushed away The address sending passage is defined as the address of message push channel corresponding to this display terminal.Wherein, message push channel is corresponding Connecting number is the long number connected set up for each display terminal in this message push channel, corresponding one an of display terminal Long connect in the case of, what message push channel was corresponding connect display terminal that number connects equal to this message push channel Number.
Step 302: server, by the short connection set up for display terminal on multi-medium information spreading system interface, receives The result that this display terminal returns, wherein, this result is to obtain after this display terminal processes according to control message Arrive.
Wherein, the definition mode controlling message sees the associated description in first embodiment, is not repeated herein.
Below by way of in five specific embodiments, assist for display terminal based on Bayeux with server in message push channel As a example by the long connection that the defined cometd framework of view is set up, the process of server controls display terminal is described in detail.
First specific embodiment, the system architecture of server and display terminal composition as shown in Figure 4, including server and Display terminal.
Server includes managing module and communication module.Wherein, management module is for terminal management and controls message definition, Including NMS (Network Management System, NMS) submodule, OSS (Operation Support System, OSS) submodule and the first data base (Database, DB).Communication module is for realizing and display terminal Communication, including message queue (Message queue, MQ), message push management (Message Push Manager, MPM) Submodule, the second data base (referred to as Redis), message push channel (Message Push Channel, MPC), multimedia letter Breath delivery system interface (Multimedia Pulish System Portal, MPS Portal), content delivery network (Content Distribution Network, CDN) submodule and file server (File Server) submodule.
NMS submodule controls message for sending to display terminal.
OSS submodule is used for management and the operation of display terminal business, including the management of display terminal broadcast strategy, split screen plan Slightly manage, the display content of display terminal and message management, display terminal management and display terminal grouping management, and to aobvious Show that terminal issues broadcast strategy, split screen strategy etc..Wherein, the broadcast strategy of display terminal, the split screen strategy of display terminal preserve In file server submodule.
First database D B is used for storing data, such as the user name of display terminal, the mark of display terminal, token, and Control message that NMS sends to display terminal and the policy update message etc. that OSS sends to display terminal.
Wherein, MQ is the container preserving message in message transmitting procedure, for providing route and ensureing the transmission of message, if When sending message, display terminal cannot receive this message, and message queue can retain this message, disappears until this can successfully be transmitted Breath.
MPM submodule, for obtaining message from MQ, sets up the corresponding relation of message and display terminal, and by this message and this Corresponding relation is saved in the second data base and the first data base.
MPC is that server sets up the long interface being connected with display terminal, for obtaining message, monitoring from the second data base The state of the message that long connection status and reception display terminal are sent by the server that MPS Portal feeds back, wherein, should The state of message refers to that message pushes the most.Further, a MPC can set up with one or more display terminals and be connected.
Second data base Redis for storing the state of message and this message, and the connection number of storage and each MPC and Each MPC and the connection list of display terminal.
MPS Portal is that server sets up the short interface being connected with display terminal, for receiving recognizing of display terminal transmission Card request, and respond to display terminal return authentication, wherein, this authentication response carries token and connects display terminal number The address of few MPC.
File server submodule is used for storing and managing file, and CDN submodule, OSS submodule can be to this documents Server conducts interviews.Wherein, the file of file server submodule storage includes: display terminal video file to be play, The broadcast strategy of display terminal, the split screen strategy etc. of display terminal.
CDN submodule is for being handed down to display terminal by the file preserved in file server.
Display terminal includes message sink service module, display terminal SDK (Software Development Kit, SDK) interface, background service module and application module.
Wherein, message sink service module is for receiving the message that server sends, and sends to backstage service module This message.
SDK interface is that display terminal sends certification request and the interface of long connection establishment request to server.
Background service module is for receiving the message that message reception module sends, by broadcast notice in application module Each application, and control whether message pushes successfully by MPS Portal to server feedback.
Application module is for processing according to the instruction of the message obtained from background service module, and obtains process knot Really, this result is sent to background service module.
Background service module is additionally operable to return, to server MPS Portal, the process that application module returns by SDK interface Result.
Second specific embodiment, based on the system architecture described by the first specific embodiment, controls propelling movement and the pipe of message Reason process is as shown in Figure 5, specific as follows:
After server sets up long connection for display terminal on MPC, control message is sent to MQ by NMS submodule, wherein, This control message is carried the user name of display terminal or the mark of display terminal.MPM submodule obtains this control message from MQ, According to control the user name of display terminal carried in message or the mark of display terminal set up control message and display terminal it Between corresponding relation, and this control message and this corresponding relation are saved in the second data base Redis and the first database D B. Wherein, if server disposition multiple MPM submodule, only one of which MPM submodule receives and processes the control message that MQ sends. MPC inquires about the connection list of this MPC and the display terminal preserved in the second data base Redis, determines and sets up long company by this MPC The each display terminal connect, inquires about the corresponding relation between control message and the display terminal preserved in the second data base Redis, obtains Take this MPC and set up the control message that the long display terminal connected is corresponding, and this control message is sent to correspondence by long connection Display terminal.Wherein, all MPC of server configures all can obtain control message from the second data base Redis.
Wherein, the Servelt in Fig. 5 represents the interface realized with certain programmed language.
The message sink service module of display terminal is received server and is connected by the length set up for this display terminal on MPC After the control message received and sent, this control message is sent to background service module.This control message is led to by background service module Cross broadcast notice to apply to each of application module, and by the SDK interface state to this control message of server feedback, wherein should Control the state of message for push.
After server receives the feedback of message sink service module, the state that this control message has pushed is updated to In two data base Redis.The state of the control message of the middle preservation of MPM submodule timing inquiry the second data base Redis, and will The state of this control message is saved in the first database D B.Server is after long connection set up by new display terminal on MPC, The state of control message preserved according to the second data base Redis determines whether there is corresponding with this display terminal propelling movement Control message.
Server is that display terminal cometd based on Bayeux agreement framework sets up long connection in message push channel After, server sends control message by this long connection to display terminal, and display terminal is carried out according to the instruction of this control message After processing and obtaining result, by multi-medium information spreading system interface for this display terminal set up short connection to clothes Business device returns described result.
3rd specific embodiment, based on the system architecture described by the first specific embodiment, display terminal is built with server The vertical long detailed process connected is as shown in Figure 6, specific as follows:
Step 601: display terminal sends certification by SDK interface to server and asks, wherein this certification request carries this The user name of display terminal and the mark of this display terminal.
In enforcement, display terminal obtains user name by registration on the server, and after succeeding in registration, server preserves this use Name in an account book.Wherein, a corresponding display terminal of user name.
Step 602: the user name of the display terminal that server carries in asking according to certification determines whether display terminal leads to Cross certification, however, it is determined that this display terminal passes through certification, perform step 603, otherwise, perform step 601.
In enforcement, certification is stated the user name that the user name carried in request and server preserved and is carried out by server Join, however, it is determined that certification is stated the user name carried in request and existed, it is determined that this display terminal passes through certification.
Step 603: after server determines that display terminal is by certification, responds to this display terminal return authentication, wherein, and should Authentication response carries the address of token corresponding to this display terminal message push channel corresponding with this display terminal.
In enforcement, after server determines that display terminal is by certification, user name and this display according to this display terminal are whole The mark of end determines the token that this display terminal is corresponding.
In enforcement, after server determines that display terminal is by certification, determine the message push channel that this display terminal is corresponding The concrete grammar of address as follows: it is aobvious that server obtains from the second data base Redis that each message push channel connected Show the number of terminal, the address of message push channel minimum for described connection number is defined as the message that described display terminal is corresponding The address of push channel, and stand response by certification and return to display terminal.Meanwhile, server update the second data base Redis This message push channel of middle preservation and the connection list of display terminal.
Step 604: display terminal obtains token and the address of message push channel from authentication response, sends to server Carry the long connection establishment request of this token and this message push channel address.
Step 605: server determines that the token carried in long connection request is effective, cometd frame based on Bayeux agreement Frame sets up long connection for this display terminal in message push channel, and based on this long connection establishment server push (server- Push) communication mechanism, the communication mechanism of this server push refers to that server actively sends message to display terminal.Wherein, This message push channel is the message push channel indicated by address of the message push channel carried in the request of long connection establishment.
Step 606: server sends control message by this long connection to display terminal.
Specifically, the management module of described server controls communication module by long connection to the transmission control of described display terminal Message processed.
4th specific embodiment, based on the system architecture described by the first specific embodiment, display terminal is entered by server The detailed process that row controls is as shown in Figure 7, specific as follows:
Step 701: server uses publish-subscribe model that control message is sent to display terminal.Wherein, this control disappears Cease and sent by long connection the set up for this display terminal in message push channel by server.
Step 702: display terminal receiving control message, is carried out at associative operation acquisition according to the instruction of this control message Reason result.
Wherein, the definition mode controlling message sees the associated description in first embodiment, is not repeated herein.
In enforcement, the message sink service module of described display terminal receives described control message.
Step 703: display terminal returns result to server, wherein, this result is sent out by multimedia messages The short connection set up for this display terminal on distribution system interface sends.
5th specific embodiment, based on the system architecture described by the first specific embodiment, server pushes logical in message On road, cometd framework based on Bayeux agreement is that after long connection set up by display terminal, the shape that this length connects monitored by display terminal State, however, it is determined that this long connection disconnects, the most again sends to server and sets up the long request connected, set up long connection.Display terminal Carry out growing and connect the process of monitoring as shown in Figure 8, specific as follows:
Step 801: display terminal and server cometd framework based on Bayeux agreement in message push channel is built Vertical long connection.
Step 802: the state that this length connects monitored by display terminal.
In enforcement, the detection signal that display terminal sends by receiving server monitors described long connection status, wherein, is somebody's turn to do Detection signal is for detecting whether described long connection the set up in described message push channel disconnects, and this detection signal is by server Sent to display terminal by described long connection every 7.5ms.
Step 803: display terminal judges whether described long connection disconnects, however, it is determined that described long connection disconnects, and performs step 804, otherwise, stop this monitoring.
In enforcement, described display terminal is not if it is determined that receive server by the long described inspection connecting and sending in 7.5ms Survey signal, it is determined that this long connection disconnects.
Step 804: display terminal again sends to server and sets up the long request connected, and performs step 801.
In enforcement, re-establish the described long process connected particularly as follows: display terminal sends to server carries local guarantor The long connection establishment request of the address of the token deposited and the local message push channel preserved;Server is if it is determined that this token has Effect, the message push channel indicated by the address in this message push channel sets up long connection for display terminal;Server If it is determined that described token valid, returning refusal to display terminal and set up the long request connected, display terminal and server are according to the Long connection establishment process described by three specific embodiments sets up long connection.
Based on same inventive concept, in first embodiment of the invention, as shown in Figure 9, additionally provide a kind of display terminal, This display terminal be embodied as can be found in the description of first embodiment, repeat no more in place of repetition, this display terminal mainly wraps Include:
Receiving unit 901, for receiving the control message that server sends, wherein, described control message is by described service Device was sent by long connection the set up in message push channel;
Processing unit 902, the instruction of the described control message for receiving according to described reception unit processes and obtains Obtain result;
Transmitting element 903, for returning, to described server, the result that described processing unit obtains, wherein, described Result is sent by the short connection set up on multi-medium information spreading system interface.
In possible embodiment, described transmitting element 903 is additionally operable to: receive what server sent at described reception unit Before controlling message, send certification request to described server, wherein, described certification request is carried the use of described display terminal Name in an account book and the mark of described display terminal;
Described reception unit 901 is additionally operable to: receive the authentication response that described server returns, wherein, described authentication response In carry token corresponding to described display terminal and the address of described message push channel, described token be described server according to After described display terminal certification is passed through by the user name of described display terminal, according to the user name of described display terminal and described aobvious Showing that the mark of terminal determines, the address of described message push channel is the described server user name pair according to described display terminal Described display terminal certification determines after passing through;
Described transmitting element 903 is additionally operable to: sends to described server and carries described token and described message push channel The long connection establishment request of address, described server after determining that described token is effectively, on the ground of described message push channel It is that long connection set up by described display terminal in message push channel indicated by location.
In possible embodiment, described processing unit 902 is additionally operable to: send to described server at described transmitting element After the long connection establishment request of the address carrying described token and described message push channel, at interval of setting duration judgement it is No receive in described setting duration described server by described message push channel for described display terminal set up length Connecting the detection signal sent, wherein, described detection signal is for detecting the described length set up in described message push channel even Connect and whether disconnect.
Based on same inventive concept, in first embodiment of the invention, as shown in Figure 10, additionally provide a kind of server, This server be embodied as can be found in the description of the second embodiment, repeat no more in place of repetition, this server specifically includes that
Transmitting element 1001, showed eventually to described for long connection the by setting up for display terminal in message push channel End sends and controls message;
Receive unit 1002, for the short company by multi-medium information spreading system interface being the foundation of described display terminal Connecing, receive the result that described display terminal returns, wherein, described result is that described display terminal is according to described control Message obtains after processing.
In possible embodiment, described reception unit 1002 is additionally operable to: pushed logical by message at described transmitting element The length set up for display terminal on road connected before described display terminal sends control message, receives described display terminal and sends Certification request, wherein, user name and the mark of described display terminal of described display terminal are carried in described certification request;
Also include processing unit 1003 for: according to the user name of described display terminal, described display terminal certification is passed through After, determine the address of the described message push channel that described display terminal is corresponding, and according to the user name of described display terminal and The mark of described display terminal determines the token that described display terminal is corresponding;
Described transmitting element 1001 is additionally operable to: respond to described display terminal return authentication, wherein, in described authentication response Carry described token and the address of described message push channel;
Described reception unit 1002 is additionally operable to: receive described display terminal send carry described token and described message pushes away Send the long connection establishment request of the address of passage;
Described processing unit 1003 is additionally operable to: after determining that described token is effectively, in the address institute of described message push channel Described long connection is set up for described display terminal in the message push channel of instruction.
In possible embodiment, described processing unit 1003 specifically for: corresponding according to each message push channel Connect number, determine and connect the message push channel that number is minimum, the address of message push channel minimum for described connection number is determined Address for described message push channel corresponding to described display terminal.
Based on technique scheme, in the embodiment of the present invention, display terminal receives server by message push channel The long control message connecting transmission set up for described display terminal, processes according to the instruction of described control message and obtains Result, and pass through to be that the short connection of described display terminal foundation is to this server on multi-medium information spreading system interface Return result, it is achieved that display terminal is controlled in real time by server by long connection, and display terminal is by short Connect and carry out information feedback to server, it is to avoid communicate between display terminal with server is required to be authenticated being led every time The situation of the poor real caused, improves the real-time communicated between display terminal with server.
Further, after server sets up long connection for display terminal in message push channel, display terminal is according at interval Whether receive this server after setting duration and determine that described long connection is by the detection signal that described message push channel sends No disconnection, however, it is determined that this long connection disconnects, and re-establishes long connection so that display terminal is when long connection disconnects, it is possible in time Automatically long connection is re-established with server.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware Execute the form of example.And, the present invention can use at one or more computers wherein including computer usable program code The shape of the upper computer program implemented of usable storage medium (including but not limited to disk memory and optical memory etc.) Formula.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one The step of the function specified in individual square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof Within, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. the method that display terminal is controlled, it is characterised in that including:
Display terminal receives the control message that server sends, and wherein, described control message is pushed away by message by described server The long connection set up for described display terminal on passage is sent to send;
Described display terminal carries out processing and obtaining result according to the instruction of described control message;
Described display terminal returns described result to described server, and wherein, described result passes through multimedia messages It is that the short connection that described display terminal is set up sends on delivery system interface.
2. the method for claim 1, it is characterised in that described display terminal receives the control of described server transmission and disappears Before breath, described method also includes:
Described display terminal sends certification request to described server, wherein, carries described display terminal in described certification request User name and the mark of described display terminal;
Described display terminal receives the authentication response that described server returns, and wherein, carries described display in described authentication response Token that terminal is corresponding and the address of described message push channel, described token is that described server is according to described display terminal After described display terminal certification is passed through by user name, true according to the user name of described display terminal and the mark of described display terminal Fixed, the address of described message push channel is that described display terminal is recognized by described server according to the user name of described display terminal Demonstrate,prove by after determine;
Described display terminal sends the long connection of the address carrying described token and described message push channel to described server Set up request, described server after determining that described token is effectively, in the message indicated by the address of described message push channel It is that long connection set up by described display terminal in push channel.
3. method as claimed in claim 2, it is characterised in that described display terminal sends to described server and carries described order The long connection establishment request of the address of board and described message push channel, described server after determining that described token is effectively, It is after long connection set up by described display terminal in the message push channel indicated by address of described message push channel, described Method also includes:
Described display terminal judges whether to receive described server in described setting duration by described at interval of setting duration Being the detection signal of the long connection transmission that described display terminal is set up in message push channel, wherein, described detection signal is used for Detect whether described long connection the set up in described message push channel disconnects.
4. the method that display terminal is controlled, it is characterised in that including:
Server controls message by long connection the set up for display terminal in message push channel to the transmission of described display terminal;
Described server by be the short connection set up of described display terminal on multi-medium information spreading system interface, receive described in Display terminal return result, wherein, described result be described display terminal according to described control message at Obtain after reason.
5. method as claimed in claim 4, it is characterised in that it is display terminal that described server passes through in message push channel The long connection set up sends to described display terminal before controlling message, and described method also includes:
Described server receives the certification request that described display terminal sends, and wherein, carries described display in described certification request The user name of terminal and the mark of described display terminal;
After described display terminal certification is passed through by described server according to the user name of described display terminal, determine described display eventually The address of the described message push channel that end is corresponding, and according to the user name of described display terminal and the mark of described display terminal Determine the token that described display terminal is corresponding;
Described server responds to described display terminal return authentication, wherein, carries described token and institute in described authentication response State the address of message push channel;
Described server receives the length of the address carrying described token and described message push channel that described display terminal sends Connection establishment is asked;
After described server determines that described token is effectively, in the message push channel indicated by the address of described message push channel Upper is that described long connection set up by described display terminal.
6. method as claimed in claim 5, it is characterised in that described server determines that described display terminal disappears described in corresponding The address of breath push channel, including:
Described server, according to connection number corresponding to each message push channel, determines and connects the message push channel that number is minimum, The address of message push channel minimum for described connection number is defined as the described message push channel that described display terminal is corresponding Address.
7. a display terminal, it is characterised in that including:
Receiving unit, for receiving the control message that server sends, wherein, described control message is passed through to disappear by described server It is to send long connection that described display terminal is set up in breath push channel;
Processing unit, the instruction of the described control message for receiving according to described reception unit carries out processing and obtain process knot Really;
Transmitting element, for returning the result that described processing unit obtains, wherein, described result to described server By on multi-medium information spreading system interface being the short connection transmission of described display terminal foundation.
8. display terminal as claimed in claim 7, it is characterised in that described transmitting element is additionally operable to:
Before described reception unit receives the control message that server sends, send certification to described server and ask, wherein, Described certification request is carried user name and the mark of described display terminal of described display terminal;
Described reception unit is additionally operable to: receives the authentication response that described server returns, wherein, carries institute in described authentication response Stating token corresponding to display terminal and the address of described message push channel, described token is that described server is according to described display After described display terminal certification is passed through by the user name of terminal, according to the user name of described display terminal and described display terminal Mark determines, the address of described message push channel is that the described server user name according to described display terminal is to described display Terminal authentication determines after passing through;
Described transmitting element is additionally operable to: carry the address of described token and described message push channel to the transmission of described server Long connection establishment is asked, described server after determining that described token is effectively, indicated by the address of described message push channel Message push channel on be that long connection set up by described display terminal.
9. display terminal as claimed in claim 8, it is characterised in that described processing unit is additionally operable to:
The length of the address carrying described token and described message push channel is sent even to described server at described transmitting element After connecing foundation request, judge whether to disappear described in receiving described server in described setting duration passes through at interval of setting duration Being the detection signal of the long connection transmission that described display terminal is set up in breath push channel, wherein, described detection signal is used for examining Survey whether described long connection the set up in described message push channel disconnects.
10. a server, it is characterised in that including:
Transmitting element, sends control for long connection the by setting up for display terminal in message push channel to described display terminal Message processed;
Receive unit, be used for the short connection by multi-medium information spreading system interface being the foundation of described display terminal, receive The result that described display terminal returns, wherein, described result is that described display terminal enters according to described control message Row obtains after processing.
11. servers as claimed in claim 10, it is characterised in that described reception unit is additionally operable to:
Sent to described display terminal by long connection the set up for display terminal in message push channel at described transmitting element Before controlling message, receive the certification request that described display terminal sends, wherein, described certification request carries described display eventually The user name of end and the mark of described display terminal;
Also include processing unit for: after described display terminal certification being passed through according to the user name of described display terminal, determine The address of the described message push channel that described display terminal is corresponding, and according to the user name of described display terminal and described display The mark of terminal determines the token that described display terminal is corresponding;
Described transmitting element is additionally operable to: respond to described display terminal return authentication, wherein, carries described in described authentication response Token and the address of described message push channel;
Described reception unit is additionally operable to: receive that described display terminal sends carries described token and described message push channel The long connection establishment request of address;
Described processing unit is additionally operable to: after determining that described token is effectively, disappearing indicated by the address of described message push channel Described long connection is set up for described display terminal in breath push channel.
12. servers as claimed in claim 11, it is characterised in that described processing unit specifically for:
According to the connection number that each message push channel is corresponding, determine and connect the message push channel that number is minimum, by described connection The address of the message push channel that number is minimum is defined as the address of described message push channel corresponding to described display terminal.
CN201610591568.4A 2016-07-26 2016-07-26 A kind of display terminal control method and equipment Pending CN106250078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610591568.4A CN106250078A (en) 2016-07-26 2016-07-26 A kind of display terminal control method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610591568.4A CN106250078A (en) 2016-07-26 2016-07-26 A kind of display terminal control method and equipment

Publications (1)

Publication Number Publication Date
CN106250078A true CN106250078A (en) 2016-12-21

Family

ID=57603969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610591568.4A Pending CN106250078A (en) 2016-07-26 2016-07-26 A kind of display terminal control method and equipment

Country Status (1)

Country Link
CN (1) CN106250078A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908401A (en) * 2017-12-13 2018-04-13 上海幻维数码创意科技有限公司 Multimedia file producing method based on Unity engines
CN108540376A (en) * 2018-04-02 2018-09-14 广东能龙教育股份有限公司 Server message real-time distribution method based on Redis mode
CN109246053A (en) * 2017-05-26 2019-01-18 阿里巴巴集团控股有限公司 A kind of data communications method, device, equipment and storage medium
CN110659006A (en) * 2019-08-20 2020-01-07 北京捷通华声科技股份有限公司 Cross-screen display method and device, electronic equipment and readable storage medium
CN117692695A (en) * 2023-08-31 2024-03-12 荣耀终端有限公司 Display method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195930A (en) * 2010-03-02 2011-09-21 华为技术有限公司 Security access method among equipment and communication equipment
CN104125565A (en) * 2013-04-23 2014-10-29 中兴通讯股份有限公司 Method for realizing terminal authentication based on OMA DM, terminal and server
CN104468547A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Long connection establishing method, device and system
CN104486291A (en) * 2014-11-24 2015-04-01 北京奇虎科技有限公司 Method, device and system for building connection
CN105553712A (en) * 2016-02-15 2016-05-04 上海斐讯数据通信技术有限公司 Server for realizing double-channel connection, terminal, method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195930A (en) * 2010-03-02 2011-09-21 华为技术有限公司 Security access method among equipment and communication equipment
CN104125565A (en) * 2013-04-23 2014-10-29 中兴通讯股份有限公司 Method for realizing terminal authentication based on OMA DM, terminal and server
CN104486291A (en) * 2014-11-24 2015-04-01 北京奇虎科技有限公司 Method, device and system for building connection
CN104468547A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Long connection establishing method, device and system
CN105553712A (en) * 2016-02-15 2016-05-04 上海斐讯数据通信技术有限公司 Server for realizing double-channel connection, terminal, method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246053A (en) * 2017-05-26 2019-01-18 阿里巴巴集团控股有限公司 A kind of data communications method, device, equipment and storage medium
CN109246053B (en) * 2017-05-26 2022-05-24 阿里巴巴集团控股有限公司 Data communication method, device, equipment and storage medium
CN107908401A (en) * 2017-12-13 2018-04-13 上海幻维数码创意科技有限公司 Multimedia file producing method based on Unity engines
CN108540376A (en) * 2018-04-02 2018-09-14 广东能龙教育股份有限公司 Server message real-time distribution method based on Redis mode
CN110659006A (en) * 2019-08-20 2020-01-07 北京捷通华声科技股份有限公司 Cross-screen display method and device, electronic equipment and readable storage medium
CN110659006B (en) * 2019-08-20 2023-08-22 北京捷通华声科技股份有限公司 Cross-screen display method and device, electronic equipment and readable storage medium
CN117692695A (en) * 2023-08-31 2024-03-12 荣耀终端有限公司 Display method and related equipment

Similar Documents

Publication Publication Date Title
CN106250078A (en) A kind of display terminal control method and equipment
US8239525B2 (en) Server apparatus and communication system
CN107566786B (en) Method and device for acquiring monitoring video and terminal equipment
CN105471869B (en) A kind of connection multiplexing method and system of internet television content requests
CN102790798B (en) Transparent proxy implementation, equipment and system in a kind of content distributing network
CN103312593B (en) A kind of message distributing system and method
EP3128713B1 (en) Page push method and system
CN103124263A (en) Advertisement serving system, advertisement serving device and advertisement server
WO2017161760A1 (en) Data transmission method and device
CN102111814A (en) Method, device and system for identifying service type
US20190260837A1 (en) Method and system of data packet transmission
CN103457956B (en) HTTP streaming media live broadcasting method and system based on multiple TCP links
CN109964467A (en) The control based on node type for auxiliary data flow transmission
CN103401946A (en) HTTP (hyper text transfer protocol) uploading acceleration method and system
KR20160011304A (en) System and method for providing advertisement based on web using wifi network
CN105141660A (en) Stream media management method and system
CN109788301A (en) A kind of live broadcasting method of Streaming Media, terminal device, live broadcast system and computer readable storage medium
EP3024225A1 (en) System and method of video streaming
US8780708B2 (en) Transmission control system
CN104283849A (en) Popup window data pushing and displaying method, device and system
CN111427703A (en) Industrial data real-time display method and system
CN107426029A (en) A kind of information acquisition method, apparatus and system
CN107395582A (en) Portal authentication devices and system
CN105721231B (en) A kind of quality of service perception detection method and device
US20090182881A1 (en) Network communication device and internet protocol session distributing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161221