CN110099461A - Communication means, device, system, electronic equipment and storage medium between terminal - Google Patents

Communication means, device, system, electronic equipment and storage medium between terminal Download PDF

Info

Publication number
CN110099461A
CN110099461A CN201910380358.4A CN201910380358A CN110099461A CN 110099461 A CN110099461 A CN 110099461A CN 201910380358 A CN201910380358 A CN 201910380358A CN 110099461 A CN110099461 A CN 110099461A
Authority
CN
China
Prior art keywords
terminal
server
iidentification
control
sent
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.)
Granted
Application number
CN201910380358.4A
Other languages
Chinese (zh)
Other versions
CN110099461B (en
Inventor
詹海亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910380358.4A priority Critical patent/CN110099461B/en
Publication of CN110099461A publication Critical patent/CN110099461A/en
Application granted granted Critical
Publication of CN110099461B publication Critical patent/CN110099461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides communication means, device, system, electronic equipment and the storage medium between a kind of terminal, this method may include: the control command for receiving first terminal and sending, and include the terminal iidentification and operation task of second terminal in control command;Control command is sent to server, so that operation task is sent to second terminal according to terminal iidentification by server, second terminal executes corresponding operation according to the operation task received.The scheme provided through the embodiment of the present invention can realize the function that second terminal is controlled by first terminal using first terminal as remote control equipment.With this solution, it is whether compatible without the concern for the software and hardware and the software and hardware of first terminal of second terminal, the communication between first terminal and second terminal can be realized by this programme, saved the development cost of remote control equipment, better met practical application request.

Description

Communication means, device, system, electronic equipment and storage medium between terminal
Technical field
The present invention relates to network technique fields, specifically, the present invention relates to communication means, dresses between a kind of terminal It sets, system, electronic equipment and storage medium.
Background technique
In existing large-size screen monitors interaction technique, it usually needs rely on the special remote control equipment (remote controler as supported infrared ray Or remote control pen etc.) realize interacted with the communication being terminals to be remotely controlled between (such as large-size screen monitors terminal).But since different terminals is propped up The difference for the hardware and software platform held causes different terminals not to be available the incompatible remote control equipment of software and hardware, causes each flat Remote control equipment does not have versatility between platform, so that the exploitation maintenance cost of remote control equipment is very big.
Summary of the invention
The main purpose of the embodiment of the present invention is to provide communication means, device, system, electronics between a kind of terminal and sets Standby and storage medium, scheme through the embodiment of the present invention can save the development cost of remote control equipment.
In a first aspect, this method is executed by server the embodiment of the invention provides the communication means between a kind of terminal, This method comprises:
The control command that first terminal is sent is received, control command is what first terminal generated in the following manner:
User is received on terminal control interface by the terminal control interface of the second terminal shown on first terminal Operation generates the control command to second terminal according to operation, includes terminal iidentification and the operation of second terminal in control command Corresponding operation task;
Wherein, terminal control interface is that first terminal is got by the control assembly of installing terminal control interface, control Component processed is that first terminal is got based on terminal iidentification to server transmission communication connection request, and terminal iidentification is first whole End is got by the terminal scan code shown in scanning second terminal;
According to terminal iidentification, operation task is sent to second terminal, so that second terminal is appointed according to the operation received Business executes corresponding operation.
In a kind of alternative embodiment of first aspect, before receiving the control command that first terminal is sent, this method is also wrapped It includes:
The communication connection request that first terminal is sent is received, communication connection request is that first terminal is scanned by end of scan Code triggering, include terminal iidentification in terminal scan code, includes terminal iidentification in communication connection request;
According to terminal iidentification, using server as communication transfer medium, it is established that between first terminal and second terminal Communication connection;
Based on terminal iidentification, control assembly is sent to first terminal.
In a kind of alternative embodiment of first aspect, in second terminal starting, alternatively, in the institute being connect with second terminal When thering is terminal to disconnect with second terminal, this method further include:
Based on terminal iidentification, new terminal scan code is sent to second terminal, so that second terminal sweeps new terminal Code is retouched to be shown in second terminal.
In a kind of alternative embodiment of first aspect, using server as communication transfer medium, it is established that first terminal After the communication connection of second terminal, this method further include:
The terminal device information that first terminal is sent to second terminal, so that second terminal display terminal information.
In a kind of alternative embodiment of first aspect, first terminal includes mobile terminal, and second terminal includes large-size screen monitors terminal.
In a kind of alternative embodiment of first aspect, according to terminal iidentification, operation task is sent to second terminal, is wrapped It includes:
According to terminal iidentification, operation task is added in operation task queue corresponding with terminal iidentification;
The operation task in operation task queue is sent to second terminal by any one following mode:
It, will be in operation task queue corresponding with terminal iidentification when receiving the task acquisition request of second terminal transmission All operation tasks be sent to second terminal, include terminal iidentification in task acquisition request;
Operation task in operation task queue is sent to second terminal.
In a kind of alternative embodiment of first aspect, this method further include:
The connection status inquiry request that second terminal is sent is received, connection status inquiry request includes terminal iidentification;
Based on terminal iidentification, the communication connection status of second terminal is sent to second terminal, communication connection status Communication connection status between two terminals and other terminals, other terminals include first terminal, and communication connection status includes not connecting It connects, have connected and connects and any one of disconnected.
In a kind of alternative embodiment of first aspect, this method further include:
Receive first terminal transmission disconnects request, and disconnecting includes terminal iidentification in request;
Based on terminal iidentification, the first terminal set up using server as communication transfer medium and second terminal are disconnected Between communication connection.
Second aspect, the embodiment of the invention provides the communication means between a kind of terminal, this method is held by first terminal Row, this method comprises:
Receive the operation on the terminal control interface for the second terminal that user shows on first terminal;
The control command to second terminal is generated according to operation, includes terminal iidentification and the behaviour of second terminal in control command Make corresponding operation task;
Wherein, terminal control interface is that first terminal is got by the control assembly of installing terminal control interface, control Component processed is that first terminal is got based on terminal iidentification to server transmission communication connection request, and terminal iidentification is first whole End is got by the terminal scan code shown in scanning second terminal;
Control command is sent to server, so that operation task is sent to second eventually according to terminal iidentification by server End, second terminal execute corresponding operation according to the operation task received.
In a kind of alternative embodiment of second aspect, the terminal control for the second terminal that user shows on first terminal is received Before operation on interface processed, this method further include:
When detecting the scan operation to terminal scan code, parsing terminal scan code obtains terminal iidentification;
Communication connection request is sent to server based on terminal iidentification, so that server is receiving communication connection request When, using server as communication transfer medium, it is established that the communication between first terminal second terminal corresponding with terminal iidentification Connection;
The control assembly that server is sent based on terminal iidentification is received, control assembly is installed with display terminal control interface.
The third aspect, the embodiment of the invention provides the communication means between a kind of terminal, this method is held by second terminal Row, this method comprises:
Receive the operation task that server is sent, operation task is the information that carries in control command, control command the One terminal is sent to server, and control command is that first terminal generates in the following manner:
User is received on terminal control interface by the terminal control interface of the second terminal shown on first terminal Operation generates the control command to second terminal according to operation, includes terminal iidentification and the operation of second terminal in control command Corresponding operation task;
Wherein, terminal control interface is that first terminal is got by the control assembly of installing terminal control interface, control Component processed is that first terminal is got based on terminal iidentification to server transmission communication connection request, and terminal iidentification is first whole End is got by the terminal scan code shown in scanning second terminal;
Corresponding operation is executed based on the operation task received.
In a kind of alternative embodiment of the third aspect, in second terminal starting, alternatively, in the institute being connect with second terminal When thering is terminal to disconnect with second terminal, this method further include:
Scan code acquisition request is sent to server, includes terminal iidentification in scan code acquisition request;
It obtains the terminal scan code of second terminal corresponding with terminal iidentification and shows.
In a kind of alternative embodiment of the third aspect, this method further include:
Connection status inquiry request is sent to server, connection status inquiry request includes terminal iidentification;
It receives the second terminal that server is sent based on the connection status inquiry request that second terminal is sent and communicates to connect shape State, communication connection status include being not connected with, have connected and connecting any one of to have disconnected.
Fourth aspect, the present invention provides the communication device between a kind of terminal, which includes the dress in the server It sets and includes:
Control command receiving module, for receiving the control command of first terminal transmission, control command is logical for first terminal Cross following manner generation:
User is received on terminal control interface by the terminal control interface of the second terminal shown on first terminal Operation generates the control command to second terminal according to operation, includes terminal iidentification and the operation of second terminal in control command Corresponding operation task;
Wherein, terminal control interface is that first terminal is got by the control assembly of installing terminal control interface, control Component processed is that first terminal is got based on terminal iidentification to server transmission communication connection request, and terminal iidentification is first whole End is got by the terminal scan code shown in scanning second terminal;
First operation task processing module, for according to terminal iidentification, operation task to be sent to second terminal, so that the Two terminals execute corresponding operation according to the operation task received.
In a kind of alternative embodiment of fourth aspect, the device further include:
Module is established in first communication connection, for before receiving the control command that first terminal is sent, receiving first eventually The communication connection request sent is held, communication connection request is what first terminal was triggered by end of scan scan code, and terminal scans Include terminal iidentification in code, includes terminal iidentification in communication connection request;According to terminal iidentification, using server as communication transfer Medium, it is established that the communication connection between first terminal and second terminal is based on terminal iidentification, control assembly is sent to first Terminal.
In a kind of alternative embodiment of fourth aspect, the device further include:
First scan code obtains module, is used in second terminal starting, alternatively, at all ends connecting with second terminal When end is disconnected with second terminal, it is based on terminal iidentification, new terminal scan code is sent to second terminal, so that second Terminal shows new terminal scan code in second terminal.
In a kind of alternative embodiment of fourth aspect, the device further include:
Facility information display module, for using server as communication transfer medium, it is established that first terminal and second After the communication connection of terminal, the terminal device information of first terminal is sent to second terminal, so that second terminal display terminal Facility information.
In a kind of alternative embodiment of fourth aspect, first terminal includes mobile terminal, and second terminal includes large-size screen monitors terminal.
In a kind of alternative embodiment of fourth aspect, the first operation task processing module will be operated according to terminal iidentification When task is sent to second terminal, it is specifically used for:
According to terminal iidentification, operation task is added in operation task queue corresponding with terminal iidentification;
The operation task in operation task queue is sent to second terminal by any one following mode:
It, will be in operation task queue corresponding with terminal iidentification when receiving the task acquisition request of second terminal transmission All operation tasks be sent to second terminal, include terminal iidentification in task acquisition request;
Based on terminal iidentification, the operation task in operation task queue is sent to second terminal.
In a kind of alternative embodiment of fourth aspect, the device further include:
First connection status enquiry module, for receiving the connection status inquiry request of second terminal transmission, connection status Inquiry request includes terminal iidentification;Based on terminal iidentification, the communication connection status of second terminal is sent to second terminal, is communicated Communication connection status of the connection status between second terminal and other terminals, other terminals include first terminal, communication connection State includes being not connected with, have connected and connecting any one of to have disconnected.
In a kind of alternative embodiment of fourth aspect, the device further include:
Communication connection disconnect module, for receive first terminal transmission disconnect request, disconnect request in wrap Include terminal iidentification;Based on terminal iidentification, the first terminal and second set up using server as communication transfer medium is disconnected Communication connection between terminal.
5th aspect, the present invention provides the communication device between a kind of terminal, which is included in first terminal, should Device includes:
Receiving module is operated, on the terminal control interface for receiving the second terminal that user shows on first terminal Operation;
Control command generation module, for including in control command according to the control command generated to second terminal is operated The terminal iidentification and the corresponding operation task of operation of second terminal;
Wherein, terminal control interface is that first terminal is got by the control assembly of installing terminal control interface, control Component processed is that first terminal is got based on terminal iidentification to server transmission communication connection request, and terminal iidentification is first whole End is got by the terminal scan code shown in scanning second terminal;
Second operation task processing module, for control command to be sent to server, so that server is according to terminal mark Know and operation task is sent to second terminal, second terminal executes corresponding operation according to the operation task received.
In a kind of alternative embodiment of 5th aspect, the device further include:
Module is established in second communication connection, in the terminal control for receiving the second terminal that user shows on first terminal Before operation on interface processed, when detecting the scan operation to terminal scan code, parsing terminal scan code obtains terminal mark Know;Communication connection request is sent to server based on terminal iidentification, so that server is when receiving communication connection request, with clothes Device be engaged in as communication transfer medium, it is established that the communication connection between first terminal second terminal corresponding with terminal iidentification;It connects The control assembly that server is sent based on terminal iidentification is received, control assembly is installed with display terminal control interface.
6th aspect, the present invention provides the communication device between a kind of terminal, which is included in second terminal, should Device includes:
Operation task receiving module, for receiving the operation task of server transmission, operation task is to take in control command The information of band, control command are that first terminal is sent to server, and control command is that first terminal generates in the following manner :
User is received on terminal control interface by the terminal control interface of the second terminal shown on first terminal Operation generates the control command to second terminal according to operation, includes terminal iidentification and the operation of second terminal in control command Corresponding operation task;
Wherein, terminal control interface is that first terminal is got by the control assembly of installing terminal control interface, control Component processed is that first terminal is got based on terminal iidentification to server transmission communication connection request, and terminal iidentification is first whole End is got by the terminal scan code shown in scanning second terminal;
Third operation task processing module, for executing corresponding operation based on the operation task received.
In a kind of alternative embodiment of 6th aspect, the device further include:
Second scan code obtains module, is used in second terminal starting, alternatively, at all ends connecting with second terminal When end is disconnected with second terminal, scan code acquisition request is sent to server, includes terminal in scan code acquisition request Mark;It obtains the new terminal scan code of second terminal corresponding with terminal iidentification and shows.
In a kind of alternative embodiment of 6th aspect, the device further include:
Second connection status enquiry module, for sending connection status inquiry request to server, connection status inquiry is asked It asks including terminal iidentification;Receive the second terminal communication that server is sent based on the connection status inquiry request that second terminal is sent Connection status, communication connection status of the communication connection status between second terminal and other terminals, other terminals include first Terminal, communication connection status include being not connected with, have connected and connecting any one of to have disconnected.
7th aspect, the embodiment of the invention provides a kind of communication system, which includes first terminal, the second end End and server, wherein first terminal includes the communication dress between the terminal in fourth aspect or fourth aspect any embodiment It sets, includes the communication device between the terminal in the 5th aspect or the 5th aspect any embodiment, server packet in second terminal Include the communication device between the terminal in the 6th aspect or the 6th aspect any embodiment.
Eighth aspect, the embodiment of the invention provides a kind of electronic equipment, electronic equipment includes processor and memory;It deposits It is stored with readable instruction in reservoir, when readable instruction is loaded and executed by processor, realizes such as above-mentioned first aspect to third party Method shown in any alternative embodiment of face or first aspect into the third aspect.
9th aspect, the embodiment of the invention provides a kind of computer readable storage medium, being stored in storage medium can Reading instruction when readable instruction is loaded and executed by processor, is realized such as above-mentioned first aspect to the third aspect or first aspect extremely Method shown in any alternative embodiment in the third aspect.
Technical solution provided in an embodiment of the present invention have the benefit that terminal provided by the embodiment of the present invention it Between communication plan, first terminal can set up by the terminal scan code that shows in scanning second terminal by server It is the communication connection communicated between the first terminal and second terminal of transfer medium with server, and accessed by installation The control assembly at terminal control interface is by terminal control interface display, and later, first terminal can pass through terminal control circle Face receives the control command to second terminal, and the order is sent to second terminal by server, so that second terminal is held Row corresponding operation.The scheme of the embodiment of the present invention is realized and is controlled by first terminal using first terminal as remote control equipment The function of second terminal.With this solution, whether simultaneous without the concern for the software and hardware of the software and hardware of second terminal and first terminal Hold, the communication between first terminal and second terminal can be realized by this programme, saves the development cost of remote control equipment, more Good meets practical application request.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention Attached drawing to be used is needed to be briefly described.
Fig. 1 shows the configuration diagram of the communication system between a kind of terminal that the embodiment of the present invention is applicable in;
Fig. 2 shows the flow diagrams of the communication means between a kind of terminal provided in the embodiment of the present invention;
Fig. 3 shows the flow diagram of the communication means between another terminal provided in the embodiment of the present invention;
Fig. 4 shows the calling service relation schematic diagram of each service command in the server provided in the embodiment of the present invention;
Fig. 5 shows the flow diagram of the communication means between another terminal provided in the embodiment of the present invention;
The communication link that Fig. 6 a is shown between a kind of large-size screen monitors terminal provided in the embodiment of the present invention and mobile phone terminal is taken over The schematic diagram of journey;
Fig. 6 b shows the communication process between a kind of large-size screen monitors terminal provided in the embodiment of the present invention and mobile phone terminal Schematic diagram;
Fig. 7 shows the structural schematic diagram of the communication device between a kind of terminal provided in the embodiment of the present invention;
Fig. 8 shows the structural schematic diagram of the communication device between another terminal provided in the embodiment of the present invention;
Fig. 9 shows the structural schematic diagram of the communication device between another terminal provided in the embodiment of the present invention;
Figure 10 shows the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, those skilled in the art Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the accompanying drawings, wherein phase from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached drawing The embodiment of description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " " and "the" may also comprise plural form.It is to be further understood that " the packet of wording used in specification of the invention Include " refer to existing characteristics, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition it is one or more Other features, integer, step, operation, element, component and/or their group.It should be understood that when we claim element to be " connected " Or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be intermediary elements.This Outside, " connection " or " coupling " used herein may include being wirelessly connected or wirelessly coupling.Wording "and/or" packet used herein Include one or more associated wholes for listing item or any cell and all combination.
In order to better understand and illustrate the scheme of the embodiment of the present invention, below to involved in the embodiment of the present invention Some technical terms are briefly described.
B/S:B/S structure (Browser/Server, Browser/Server Mode) is a kind of net after internet rises Network tactic pattern, webpage Web browser are the main application software of client.
HTTP: hypertext transfer protocol (Hyper Text Transfer Protocol), be client browser or its Application layer communication protocol between his program and Web server, HTTP include to order and transmission information, cannot be only used for Web visit It asks, can be used for the communication between other the Internet/intranet application systems.
HTTPS: Hyper text transfer security protocol (Hypertext Transfer Protocol Secure), is a kind of net Network secure transfer protocol, on the computer network, HTTPS is communicated via hypertext transfer protocol, but utilizes SSL (Secure Socket Layer)/TLS (Transport Layer Security) carrys out encrypted packet.The master of HTTPS exploitation The authentication of syllabus being to provide to network server, the privacy and integrality of protection exchange data.
WebSocket:WebSocket agreement is a kind of new agreement based on TCP, and WebSocket is initially standardized in HTML5 In be cited as TCP connection, as the socket API's (Application Programming Interface) based on TCP Placeholder, it realizes browser and communicates with server full duplex (full-duplex), wherein transmission control protocol TCP (Transmission Control Protocol) is a kind of connection-oriented transport layer communication protocol based on byte stream.
Wechat: wechat (We Chat) is that one of Tencent's release provides exempting from for instant messaging service for intelligent terminal Take application program.
Wechat small routine: wechat small routine is the mode of completely new connection user and service a kind of, it can be in wechat Easily is obtained and propagated.
Two dimensional code: also known as two-dimensional bar code, common two dimensional code are QR Code, and QR (Quick Response) is one close A kind of in the past few years super popular coding mode in mobile device, it can deposit more letters than traditional Bar Code (bar code) Breath, can also indicate more data types.
Small routine code: small routine code is the exclusive two dimensional code of wechat, can be provided by wechat official The API such as createWXAQRCode, getWXACode, getWXACodeUnlimit create wechat small routine code.
Application server: application server (Application Server), which refers to, exposes business logic by various agreements Reveal to the program of client.It provides the approach of access business logic for client application use.Application server Using this business logic just as calling a method of object.
Poll: poll (Polling) is how a kind of CPU decision provides the mode of peripheral equipment service, also known as " program-controlled defeated Enter and leave " (Programmed I/O).The concept of polling method is to be issued and inquired by CPU timing, sequentially inquire each peripheral equipment Its service whether is needed, has to give and services, next periphery is inquired again after service, then constantly in cycles.
VR:VR (Virtual Reality) is also known as virtual reality technology, is a kind of can create and the experiencing virtual world Computer simulation system, it generates a kind of simulated environment using computer, is a kind of Multi-source Information Fusion, interactive three-dimensional The system emulation of dynamic vision and entity behavior is immersed to user in the environment.
AR:AR (Augmented Reality) is also known as augmented reality, is a kind of calculating camera image in real time Position and angle and the technology for adding respective image, video, 3D model, the target of this technology is on the screen virtual world It covers in real world and is interacted.This technology is proposed in nineteen ninety, with mentioning for accompanied electronic products C PU operational capability It rises, it is contemplated that the purposes of augmented reality will be increasingly wider.
LoT: Internet of Things (Internet of Things) is the information carriers such as internet, conventional telecommunications net, is allowed all The common objects that standalone feature can be exercised realize the network to interconnect.
Currently, the mode interacted with large-size screen monitors terminal, it usually needs rely on special remote control equipment (as supported the distant of infrared ray Control device or remote control pen etc.) realize interacted with the communication between large-size screen monitors terminal.But by different large-size screen monitors terminals supported it is soft or hard The difference of part platform causes different large-size screen monitors terminals not to be available the incompatible remote control equipment of software and hardware.For example, large-size screen monitors terminal A It is different from remote control equipment compatible corresponding to large-size screen monitors terminal B, the compatible remote control of large-size screen monitors terminal A compatible remote control equipment a, large-size screen monitors terminal B Equipment b, but be likely to be the communication that cannot achieve between large-size screen monitors terminal B by remote control equipment a, that is, can not be by distant Equipment a is controlled to control large-size screen monitors terminal, needs the remote control equipment b just achievable communication between large-size screen monitors terminal B, thus, it is desirable to Development phase is directed to the software and hardware that different large-size screen monitors terminals is compatible with, and corresponding remote control equipment is produced, so as to cause remote control equipment Development cost it is big.
In view of the problems of the existing technology, and practical application request is better met, the embodiment of the invention provides A kind of communication means between terminal can save exploitation maintenance cost by this method, promote user experience.
How technical solution of the present invention and technical solution of the present invention are solved with specifically embodiment below above-mentioned Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
Fig. 1 is shown between a kind of terminal that the communication means between terminal provided by the embodiment of the present invention is applicable in The structural schematic diagram of communication system.As shown in the figure, the communication system between the terminal mainly may include first terminal 11, Two terminals 12 and server 13.Specifically, the first terminal 11 in this example can be that smart phone, second terminal 12 can be Large-size screen monitors terminal, server can be cloud server 13.Wherein, cloud server 13 is used as application server, can be respectively with the One terminal 11 and second terminal 12 communicate, and user is if it is desired to regard first terminal 11 as remote control equipment, realization is to second terminal 12 Remote control, then need to set up the communication channel between second terminal 12 and first terminal 11.
It is logical between second terminal 12 and first terminal 11 in order to set up based on scheme provided by the embodiment of the present invention Believe channel, includes the in the present solution, show the terminal scan code of second terminal 12 in second terminal 12, in the terminal scan code The terminal iidentification of two terminals 12 when first terminal 11 scans the terminal scan code, triggers communication connection request, includes in the request The terminal iidentification of second terminal 12, and server 13 is sent the request to, terminal mark of the server 13 based on second terminal 12 Know, using server 13 as communication transfer medium, it is established that the communication connection between second terminal 12 and first terminal 11, and And after setting up connection, the control assembly of second terminal 12 is sent to first terminal 11 by server 13, so that first terminal Corresponding terminal control interface is installed and shown to the control assembly by 11, and user is based on terminal control shown on first terminal 11 Interface processed, can send control command to server 13, include terminal iidentification and the behaviour of second terminal 12 in the control command Make task;The operation task is sent to second terminal 12, second terminal by terminal iidentification of the server 13 based on second terminal 12 12 carry out corresponding operation based on the operation task.By the above-mentioned means, can be built by server 13 as communication transfer medium The communication connection between first terminal 11 and second terminal 12 is erected, and it is possible to regard first terminal 11 as remote controler, is realized Remote control to second terminal 12.As it can be seen that the communication for the system shown in Fig. 1, between the terminal of the embodiment of the present invention Method can be executed by server 13, perhaps executed by first terminal 11 or executed by second terminal 12.
It should be noted that the frame for the system that the scheme that system architecture shown in FIG. 1 is the embodiment of the present invention is applicable in The example of structure is not the restriction to the application scenarios of the embodiment of the present invention.
Fig. 2 shows the flow diagrams of the communication means between a kind of terminal provided by the invention, as shown in the figure, if This method is executed by first terminal, and this method may include step S110 to step S130, in which:
Step S110: the operation on the terminal control interface for the second terminal that user shows on first terminal is received.
Step S120: generating the control command to second terminal according to operation, includes the end of second terminal in control command End identifies and operates corresponding operation task.
Wherein, terminal control interface is that first terminal is got by the control assembly of installing terminal control interface, control Component processed is that first terminal is got based on the terminal iidentification of second terminal to server transmission communication connection request, and second eventually The terminal iidentification at end is that first terminal is got by the terminal scan code shown in scanning second terminal.
Specifically, terminal control interface is a kind of user interface interacted for user and terminal, terminal control circle Face can be equivalent to virtual remote controller, it is to be understood that can show on terminal control interface for triggering control command Control mark, for example function button, different function buttons can correspond to different control functions, can by control mark To receive the relevant control operation to second terminal.Control assembly is corresponding with the terminal control interface of second terminal, the control Component can be used for adjusting the relevant parameter of second terminal, for example, the display brightness etc. of second terminal screen, control assembly can be with bases It is configured in actual demand, for example, can correspond to based on different terminals and configure different control assemblies.
Terminal scan code is a kind of graphic code that can be scanned and identify by identification device, including but not limited to two dimensional code And bar code, the information for needing to inform or transmit can be configured based on actual demand in terminal scan code, the embodiment of the present invention It include the terminal iidentification of counterpart terminal in scheme, in terminal scan code.
Specifically, the specific implementation form of control command can be configured based on actual demand, for example, touch control terminal controls boundary The touch control operation of control mark in face, alternatively, the phonetic order based on control mark shown on terminal control interface, this The specific implementation form of control command is not limited in invention.
Terminal iidentification is used to identify the identity of terminal, and terminal iidentification can be configured based on actual demand, for example, terminal iidentification It can be the unique encodings such as device id or the device model of corresponding equipment, for convenience, below by the terminal of first terminal Mark is known as first terminal mark, and the terminal iidentification of second terminal is known as second terminal mark.Optionally, mark can be passed through According with uuid (Universally Unique Identifier, Universally Unique Identifier) indicates first terminal mark and second eventually End mark.
In the embodiment of the present invention, first terminal is that have scanning and identification terminal scan code, and network communication and information are shown The electronic equipment of function, first terminal include but is not limited to mobile phone, tablet computer, portable computer, VR equipment, AR equipment, The electronic equipments such as IOT equipment, in the embodiment of the present invention, first terminal is usually portable terminal, for example, mobile phone, plate Computer etc..
Second terminal is the electronic equipment with network communicating function and information display function, and second terminal includes but unlimited In visualization hardware large-size screen monitors terminal etc..
It should be noted that first terminal when scanning the terminal scan code in second terminal, has had in first terminal Have and decodes the corresponding decoding program of terminal scan code, then it, can in the terminal scan code in first terminal scanning second terminal To decode the mark of second terminal included in the terminal scan code.
Step S130: being sent to server for control command, so that server is identified according to second terminal by operation task It is sent to second terminal, and second terminal is made to execute corresponding operation according to the operation task received.
Specifically, server after receiving control command, can pass through service using server as communication transfer medium Operation task in the control command is sent to second terminal by device, i.e., when needing to communicate between first terminal and second terminal, Between first terminal and second terminal communication can be realized using server as terminal is communicated.
Communication means between terminal provided by the embodiment of the present invention, first terminal can be by scanning second terminals The terminal scan code of display, by server set up with server be communicate transfer medium first terminal and second terminal it Between communication connection, and by the control assembly at the accessed terminal control interface of installation by terminal control interface display, it Afterwards, first terminal can receive the control command to second terminal by the terminal control interface, and the order is passed through clothes Business device is sent to second terminal, so that second terminal executes corresponding operation.The scheme of the embodiment of the present invention, first terminal is made For remote control equipment, the function that second terminal is controlled by first terminal is realized.With this solution, without the concern for second terminal Software and hardware it is whether compatible with the software and hardware of first terminal, can be realized between first terminal and second terminal by this programme Communication, saves the development cost of remote control equipment, has better met practical application request.In addition, user is based on terminal control The interaction between first terminal and second terminal can be realized in interface, easy to operate, improves user experience.
As an optional way, terminal scan code can be small routine code, and user can be used and be installed on first terminal Application program barcode scanning functionality scan second terminal on small routine code.Wherein, application program can include but is not limited to clear Look at device, the client-side program (such as wechat) with barcode scanning function.For example, user can be by using in the wechat of its mobile phone " sweep and sweep " function scans small routine code.
In addition, it is necessary to illustrate, the concrete form at terminal control interface corresponding to control assembly can be according to reality Demand configures, and is not construed as limiting in the embodiment of the present invention to it.For example, as an optional way, the interface shape at terminal control interface Formula can be identical as the interface form of hardware remote control equipment of second terminal entity, if second terminal equipment is smart television, eventually Hold the interface form of control interface then can be same or like with the form of control interface of entity remote controler of the smart television. As another alternative, since terminal control interface is virtual user interface, can be in terminal control interface Virtual controlling function button (hereinafter referred to as function button) carries out hierarchical and shows, for example, when function button is more, terminal control Control function can be classified in the control assembly at interface processed, configuration can be corresponded to first for the control function of every one kind Corresponding next level is respectively configured in the function button of one upper level, the concrete function key under each classification again Function button, for example, it is corresponding can to directly display each classification then when showing the terminal control interface for control function option Function button can show next layer under category function again based on user to the touch control operation of category function button Grade function button (i.e. the corresponding function button of each control function, control function option), certainly, if some or Certain functions do not carry out category division, and corresponding function button can be directly displayed on interface.
As an example, for example, the classification of control function corresponding to the control assembly based on second terminal, by second The control function of terminal is divided into two levels, and first level includes two control marks, the two control marks are with different The form of function button shows that two function buttons are respectively function button A and function button B, the two function buttons are simultaneously It is shown on the terminal control interface of first terminal, the corresponding control function of function button A is the bright of adjusting second terminal screen Degree, the corresponding control function of function button B are user interface shown by switching second terminal, and in the second level, function is pressed The function button of the lower level of button A is to lighten and dim two control function options, the function button of the lower level of function button B For two control function options of page up and lower one page.When user triggers the function button B on terminal control interface, It indicates that user wants to carry out page switching to user interface shown in second terminal by first terminal, then triggers function in user After energy button B, display two control function options of page up and lower one page can be corresponded to, two control function options are based on, User can choose any one in above-mentioned two control function option, if selection is " lower one page " corresponding control mark Know, then based on the trigger action to " the lower one page " control mark, corresponding operation task is sent to second by server Terminal, at this point, control function corresponding to operation task is one page under being switched in page switching function in control command, the Two terminals are based on the operation task, and user interface shown on second terminal current page is switched to shown by lower one page Interface.
In optinal plan of the invention, terminal scan code may be displayed on the designated position of second terminal.
Specifically, designated position can be configured based on actual demand, for example, in order not to show on the screen of second terminal When information, terminal scan code shelters from information shown by second terminal, terminal scan code can be shown in second terminal screen The fringe region of curtain, for example, the upper left corner of second terminal screen, the regions such as the upper right corner, the lower left corner, the lower right corner.
In optinal plan of the invention, server can be application server.
Specifically, application server provides the method that client application can call, application server can be with By many agreements come for application program provider industry logic, then in the present solution, be based on application server, terminal can be based on Correlation technique in (first terminal or second terminal) in mounted application call application server, to realize that first is whole The communication at end and second terminal, it is user-friendly without installing other applications at the terminal, to improve user's Experience.
In optinal plan of the invention, server can also be cloud application server.Cloud Server is based on server Cluster, therefore hardware redundancy degree is higher, failure rate is low, and the computing capability of Cloud Server is higher than the separate server of comparable configuration Computing capability, the requirement of high-performance calculation can be met.Server may be local server, then if first terminal and Two terminals can be realized by local server and be communicated under the same local area network.
In optinal plan of the invention, as shown in figure 3, at the end for receiving the second terminal that user shows on first terminal Before holding the operation in control interface, this method can also include step S101 to step S105, in which:
Step S101: when detecting the scan operation to terminal scan code, parsing terminal scan code obtains second terminal Mark;
Step S102: it is identified based on second terminal to server and sends communication connection request;
Wherein, it is established in the following manner when communication connection between first terminal and second terminal:
Step S130: server is when receiving communication connection request, using server as communication transfer medium, it is established that First terminal identifies the communication connection between corresponding second terminal with second terminal;
Step S104: the control assembly that server is sent based on second terminal mark is received;
Wherein, terminal control interface is shown in the following manner:
Step S105: first terminal installs control assembly, and display terminal control interface.
Specifically, server can be based on second eventually after the terminal scan code in first terminal scanning second terminal The terminal iidentification at end, using server as communication transfer medium, it is established that the communication between first terminal and second terminal, together When, the control assembly of second terminal can be sent to first terminal, first eventually based on the terminal iidentification of second terminal by server The control assembly is installed and shows the corresponding terminal control interface of the mounting assembly in end.
Specifically, can be stored in advance in server each terminal terminal iidentification and corresponding control assembly, then exist It, can will control corresponding with terminal iidentification (second terminal mark) when server receives the communication connection request of first terminal transmission Component processed is sent to first terminal, so that the control assembly is installed in first terminal by first terminal.
In optinal plan of the invention, first terminal includes mobile terminal, and second terminal includes large-size screen monitors terminal.
Specifically, mobile terminal is the terminal with end of scan scan code function, correspondence can be shown in large-size screen monitors terminal Terminal scan code, for example, mobile terminal can be smart phone, large-size screen monitors terminal can be intelligent TV set.
Based on principle identical with method shown in Fig. 2, the embodiment of the invention also provides logical between a kind of terminal Believe connection method, this method is executed by server, and this method may include:
Step S210 receives the control command that first terminal is sent.
It is understood that step S210, that is, step shown in Fig. 2 S130, as shown in Fig. 2, the control command is the What one terminal generated in the following manner:
Step S110 receives user in terminal control by the terminal control interface of the second terminal shown on first terminal Operation on interface;
Step S120 generates the control command to second terminal according to operation, includes the end of second terminal in control command End identifies and operates corresponding operation task;
Wherein, terminal control interface first terminal is got by the control assembly of installing terminal control interface, control Component, which is first terminal, to be identified based on second terminal and sends communication connection request to server and get, and second terminal mark is First terminal is got by the terminal scan code shown in scanning second terminal.
Step S220, identifies according to second terminal, and operation task is sent to second terminal, so that second terminal is according to connecing The operation task received executes corresponding operation.
It is understood that step S220, that is, step shown in Fig. 2 S150.
Communication means between terminal provided by the embodiment of the present invention, first terminal can be by scanning second terminals The terminal scan code of display, by server set up with server be communicate transfer medium first terminal and second terminal it Between communication connection, and by the control assembly at the accessed terminal control interface of installation by terminal control interface display, it Afterwards, first terminal can receive the control command to second terminal by the terminal control interface, and the order is passed through clothes Business device is sent to second terminal, so that second terminal executes corresponding operation.The scheme of the embodiment of the present invention, first terminal is made For remote control equipment, the function that second terminal is controlled by first terminal is realized.With this solution, without the concern for second terminal Software and hardware it is whether compatible with the software and hardware of first terminal, can be realized between first terminal and second terminal by this programme Communication, saves the development cost of remote control equipment, has better met practical application request.In addition, user is based on terminal control The interaction between first terminal and second terminal can be realized in interface, easy to operate, improves user experience.
In optinal plan of the invention, as shown in figure 3, in step S210, in the control command for receiving first terminal transmission Before, this method can also include step S101 to step S105, in which:
Step S102 receives the communication connection request that first terminal is sent;
Wherein, communication connection request generates in the following manner:
Step S101, first terminal are triggered by end of scan scan code, include second terminal mark in terminal scan code Know, includes that second terminal identifies in communication connection request;
Step S103, identifies according to second terminal, using server as communication transfer medium, it is established that first terminal and the Communication connection between two terminals;
Step S104 is identified based on second terminal, will be controlled after first terminal and second terminal establish communication connection Component is sent to first terminal;
Wherein, terminal control interface is shown in the following manner:
Step S105, first terminal install control assembly and display terminal control interface.
In optinal plan of the invention, in second terminal starting, alternatively, equal in all terminals being connect with second terminal When disconnecting with second terminal, this method can also include:
It is identified based on second terminal, new terminal scan code is sent to second terminal, so that second terminal is by new end End scan code is shown in second terminal.
Specifically, the terminal iidentification and counterpart terminal scan code of each terminal can be pre-configured in server, then it is based on Second terminal mark, can be sent to second terminal for new terminal scan code by server, can specifically include following two reality Existing mode:
The first, actively obtains from second terminal to server, specifically: in second terminal starting, alternatively, with second When all terminals of terminal connection are disconnected with second terminal, scan code acquisition request, the scan code are sent to server Include that second terminal identifies in acquisition request, is identified based on second terminal, server sends corresponding new terminal scan code To second terminal.
It second, is actively sent from server to second terminal, specifically: in second terminal starting, alternatively, with second When all terminals of terminal connection are disconnected with second terminal, server is identified based on second terminal, by second terminal pair The new terminal scan code answered is sent to second terminal.
It should be noted that the terminal scan code of second terminal can also be raw based on corresponding terminal iidentification by second terminal At.
In optinal plan of the invention, triggering in connection request further includes first terminal mark, and second terminal is whole with first End is established after communication connection, and this method can also include:
It is identified based on first terminal, sends communication connection status mark to first terminal.
Specifically, communication connection status identifies the connection result for identifying second terminal and first terminal, for example, connection Success or connection failure are based on the connection result, and whether first terminal clear can be successfully established with second terminal communicates Connection.Wherein, communication connection status mark can indicate different communication connection shapes for the identifier of setting, different identifiers State when identifier is 1, indicates connection failure for example, indicating successful connection when identifier is 0.
In optinal plan of the invention, this method can also include:
The connection status inquiry request that second terminal is sent is received, connection status inquiry request includes second terminal mark;
It is identified based on second terminal, the communication connection status of second terminal is sent to second terminal, communication connection status For the communication connection status between second terminal and other terminals, other terminals include first terminal, and communication connection status includes It is not connected with, has connected and connects and any one of disconnected.
Specifically, not connected expression is the terminal for not setting up communication connection with second terminal, expression is had connected It is the terminal for thering is at least one to set up communication connection with second terminal, what connection had disconnected that target is establish with second terminal connects The terminal connect is all disconnected with second terminal.
Optionally, how to judge that all terminals connecting with second terminal are disconnected with second terminal in above scheme to connect It connects, can specifically be judged by the following manner:
The first, in preset duration, server does not receive the operational order of the transmission of any terminal in other terminals, It then may determine that all terminals connecting at this time with second terminal are disconnected with second terminal.
Second, receive that any terminal in other terminals sends disconnects request, and disconnecting in request includes times The terminal iidentification of one terminal;Terminal iidentification based on any terminal is disconnected and being set up using server as communication transfer medium First terminal and any terminal between communication connection.
It is understood that any terminal includes first terminal, if any terminal is first terminal, in first terminal User interface on can be pre-configured with for triggering the triggering mark for disconnecting request, which can be terminal control Interface processed is also possible to other users interface, and triggering mark can be function button, user touches when triggering the button The request of the communication connection between disconnection and second terminal is sent out, which is to disconnect request.
It is understood that the communication connection of disconnection first terminal and second terminal actually refers to server and no longer receives The request that any first terminal is sent no longer forwards any information of first terminal to second terminal.
In optinal plan of the invention, if second terminal and first terminal disconnect successfully, it can be sent out to first terminal Disconnection result is sent, second terminal can be identified by the disconnection result and whether first terminal disconnects success, which can It is indicated with the identifier by setting, for example, expression disconnects successfully when identifier is 0, when identifier is 1, indicates to disconnect and lose It loses;Can by directly in the form of text identify disconnection result, such as: " XX has disconnected success, alternatively, XX has disconnected failure ", Wherein, " XX " can be the title of equipment.
In the present solution, second terminal can detect whether that terminal is successfully established with second terminal by way of poll The terminal of communication connection is played, i.e. timing sends connection status inquiry request to server.
In the present solution, receive second terminal transmission communication connection status inquiry request when, can be with different Identifier identifies different communication connection status, i.e. server can be identified based on second terminal, is used for second terminal transmission The identifier of communication connection status is identified, which can configure based on actual demand, for example, indicating logical when identifier is 0 Letter connection status be it is not connected, identifier be 1 when, indicate communication connection status be have connected, identifier be 2 when, expression communicate Connection status is that connection has disconnected.
Optionally, it when all terminals connecting with second terminal are disconnected with second terminal, is sent out to second terminal The terminal scan code sent can be new terminal scan code.
It is understood that being shown in second terminal if being successfully established communication connection without terminal and second terminal The terminal scan code shown is constant.
The mode whether all terminals being connect based on above-mentioned judgement with second terminal are disconnected with second terminal, can When being disconnected with second terminal with all terminals connecting in server judgement with second terminal, server is based on second eventually End mark, by new terminal scan code active transmission to second terminal.
In optinal plan of the invention, using server as communication transfer medium, it is established that first terminal and second is eventually After the communication connection at end, this method can also include:
The terminal device information that first terminal is sent to second terminal, so that second terminal display terminal information.
Specifically, with second terminal establish connection terminal can at least one, if there is other terminals simultaneously want with Second terminal sets up communication connection, then can identify the identity of counterpart terminal based on terminal device information, i.e., be set by terminal Standby information is known that the terminal Yu second terminal of specifically which user set up communication connection.Wherein, terminal device information For the information for identifying terminal identity, for example, terminal device information can be the device model of terminal, if user is to be based on Terminal scan code on first terminal in the second terminal of the scanning function scanning of some application program, then terminal device information is also It can be User ID (identification) of the user in the application program, account title etc..
Optionally, in second terminal, the terminal device information can be shown in the form of pre-configuration, for example, being pre-configured Form can be " XX has connected ", wherein " XX " can be terminal device device name.
It in optinal plan of the invention, is identified according to second terminal, operation task is sent to second terminal, can wrap It includes:
It is identified according to second terminal, operation task is added in operation task queue corresponding with second terminal mark;
The operation task in operation task queue is sent to second terminal by any one following mode:
The first will behaviour corresponding with second terminal mark when receiving the task acquisition request of second terminal transmission Make all operation tasks in task queue and be sent to second terminal, includes that second terminal identifies in task acquisition request.
It is communicated to connect specifically, second terminal can be established to establish by the method being described above simultaneously with multiple terminals, Alternatively, first terminal can send multiple operation tasks to server, appoint for example, first terminal sends the first operation to server After business, first terminal to server has sent the second operation task again, at this point, server receives two operation tasks, then base In above-mentioned two situations, the operation task that second terminal task based access control acquisition request is got may have simultaneously it is multiple, in order to allow Second terminal can normally complete each operation task, then can establish an operation task queue, receiving second terminal After the task acquisition request of transmission, the operation task received is added in the corresponding operation task queue of second terminal, so Server can be based on received task acquisition request afterwards, and by all operation tasks in queue, i.e., all second terminals need Being done for task is sent to second terminal.
In the present solution, second terminal can obtain operation task, i.e. second terminal to server by way of poll Timing sends task acquisition request to server.
As an example, after second terminal and first terminal (terminal A) set up communication connection, terminal A passes through clothes Device be engaged in successively to second terminal two operation tasks of transmission, respectively operation task a and operation task b, server receive behaviour Make the time of task a earlier than the time for receiving operation task b, then in operation task queue, the sequence of operation task a is being grasped Before making task b, second terminal obtains operation task in a manner of poll, i.e., sends according to the preset time interval to server Task acquisition request when sending task acquisition request, while acquiring operation task a and operation task b, then second terminal can Successively to execute task corresponding to operation task in the sequence in operation task queue according to operation task a and operation task b.
It second, is identified based on second terminal, the operation task in operation task queue is sent to second terminal.
Specifically, server can also be pressed according to the time order and function of the operation task received, task based access control acquisition request Operation task in queue is sent to second terminal by sequence one by one can after that is, second terminal completes an operation task To send a mark to server, server appoints next operation according to the sequence of each operation task in operation task queue Business is sent to second terminal, alternatively, server according to preconfigured time interval, is in sequence sent out next operation task Give second terminal.
In optinal plan of the invention, if in operation task further including terminal iidentification (the first terminal mark of first terminal Know), after receiving the operation task that first terminal is sent by terminal control interface, this method can also include:
It is identified based on first terminal, sends task to first terminal and send result.
It is used to identify whether operation task transmitted by first terminal is successfully put into service specifically, task sends result In the operation task queue of device, wherein task is sent result and can be configured based on actual demand, for example, can pass through setting Identifier identifies task and sends as a result, when identifier is 0, and expression is sent successfully, when identifier is 1, indicates to send failure.
In optinal plan of the invention, after second terminal completes the corresponding operation of operation task, this method can also be wrapped It includes:
Server receives the operating result for the completion operation task that second terminal is sent, and the operating result is sent to the One terminal.
Specifically, one operating result of server, the behaviour can be fed back to after second terminal completes once-through operation task It indicates whether this operation task operates success as result, is then based on the operating result, server and first terminal are known that Whether second terminal operates success.Wherein, operating result can be configured based on actual demand, for example, can pass through the mark of setting Symbol identification operation is known as a result, indicating to operate successfully when identifier is 0, when identifier is 1, indicates operation failure.
In optinal plan of the invention, second terminal and first terminal can pass through Browser/Server Mode B/S (Browser/Server) standard communication protocol and server communication.
Specifically, B/S mode can focus on the core that system function is realized on server, i.e., will realize above Described scheme is concentrated on the server, realizes the communication connection between second terminal and first terminal by server, with And transmission of operation task etc., thus, it is possible to do not need to carry out complicated exploitation to second terminal and first terminal, so as to Simplify exploitation, maintenance and the use of system.
In optinal plan of the invention, B/S standard communication protocol includes hypertext transfer protocol HTTP (Hyper Text Transport Protocol), Hyper text transfer security protocol HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer), at least one of network protocol WebSocket.
It is understood that using server as the communication means between the terminal described in executing subject, and above In using first terminal as the communication means between terminal described in executing subject, be substantially identical technical solution, The description that only scheme is carried out from different angles.Using server as the communication between the terminal described in executing subject The detailed description of method and explanation to scheme, can with reference to hereinbefore using first terminal as executing subject when to terminal Between communication means description, details are not described herein.
Based on principle identical with method shown in Fig. 2, the embodiment of the invention also provides logical between a kind of terminal Believe connection method, this method is executed by second terminal, and this method may include:
Step S310, receives the operation task that server is sent, and operation task is the information carried in control command, control Order is that first terminal is sent to server.
It is understood that step S310, that is, step shown in Fig. 2 S140, as shown in Fig. 2, the control command is the What one terminal generated in the following manner:
Step S110 receives user in terminal control by the terminal control interface of the second terminal shown on first terminal Operation on interface;
Step S120 generates the control command to second terminal according to operation, includes the end of second terminal in control command End identifies and operates corresponding operation task.
Wherein, terminal control interface is that first terminal is got by the control assembly of installing terminal control interface, control Component processed, which is first terminal, to be identified based on second terminal and sends communication connection request to server and get, second terminal mark It is that first terminal is got by the terminal scan code shown in scanning second terminal;
Step S320 executes corresponding operation based on the operation task received.
It is understood that step S320, that is, step shown in Fig. 2 S150.
Communication means between terminal provided by the embodiment of the present invention, first terminal can be by scanning second terminals The terminal scan code of display, by server set up with server be communicate transfer medium first terminal and second terminal it Between communication connection, and by the control assembly at the accessed terminal control interface of installation by terminal control interface display, it Afterwards, first terminal can receive the control command to second terminal by the terminal control interface, and the order is passed through clothes Business device is sent to second terminal, so that second terminal executes corresponding operation.The scheme of the embodiment of the present invention, first terminal is made For remote control equipment, the function that second terminal is controlled by first terminal is realized.With this solution, without the concern for second terminal Software and hardware it is whether compatible with the software and hardware of first terminal, can be realized between first terminal and second terminal by this programme Communication, saves the development cost of remote control equipment, has better met practical application request.In addition, user is based on terminal control The interaction between first terminal and second terminal can be realized in interface, easy to operate, improves user experience.
In optinal plan of the invention, in second terminal starting, alternatively, equal in all terminals being connect with second terminal When disconnecting with second terminal, this method can also include:
Scan code acquisition request is sent to server, includes that second terminal identifies in scan code acquisition request;
Acquisition identifies the new terminal scan code of corresponding second terminal with second terminal and shows.
Optionally, second terminal can send scan code acquisition request to server by way of poll.
In optinal plan of the invention, this method can also include:
Connection status inquiry request is sent to server, connection status inquiry request includes second terminal mark;
It receives the second terminal that server is sent based on the connection status inquiry request that second terminal is sent and communicates to connect shape State, communication connection status of the communication connection status between second terminal and other terminals, other terminals include first terminal, are led to Letter connection status includes being not connected with, have connected and connecting any one of to have disconnected.
Optionally, second terminal can send connection status inquiry request to server by way of poll.
It is and preceding it is understood that using second terminal as the communication means between the terminal described in executing subject It is substantially identical using first terminal and server as the communication means between terminal described in executing subject in text Technical solution, the description that only scheme is carried out from different angles.Using second terminal as the end described in executing subject The detailed description of communication means between end and explanation to scheme, can be with reference to hereinbefore with first terminal and server To the description of the communication means between terminal when as executing subject, details are not described herein.
Technology realization principle of the invention is that have platform-neutral by software realization, is suitable for desktop platform, is moved Hardware and software devices, the first terminals such as moving platform, visualization hardware large-size screen monitors, VR/AR equipment, loT equipment are swept with end of scan The terminal of yard function is retouched, therefore, the VR/AR equipment with end of scan scan code function, loT equipment etc. can be used as first Terminal.
In optinal plan of the invention, the service life for realizing hereinbefore described scheme can be integrated in the server It enables, specifically:
A), createQrcode is serviced: obtaining terminal identifier uuid and corresponding terminal scan code for second terminal;
B), checkConnection service: for second terminal by terminal identifier uuid poll inquiry currently whether There is first terminal to be successfully connected second terminal;
C), createConnection is serviced: the terminal scan code in second terminal is scanned and identified for first terminal, To obtain the terminal iidentification uuid of second terminal, to be communication transfer medium with server, creation second terminal is whole with first The communication connection at end;
D), pushCommand is serviced: being sent control command for first terminal, is remotely operated second terminal;
E), pullCommand is serviced: obtain the operation task queue that first terminal issues in real time for second terminal, and Execute corresponding operation task in operation task queue;
F), closeConnection is serviced: being disconnected the communication connection with second terminal for first terminal operation, is terminated Communication.
Below based on above-mentioned several service commands, referring to fig. 4 shown in each service command calling service relationship signal The flow diagram of communication means between a kind of terminal shown in figure and Fig. 5, specifically retouches the solution of the present invention It states, wherein in the present embodiment, first terminal is mobile phone terminal, and second terminal is large-size screen monitors terminal;Mobile phone terminal is small by wechat Sweeping in program sweeps the terminal scan code in identification of function large-size screen monitors terminal, and corresponding terminal scan code is small routine code, application Each terminal iidentification and corresponding small routine code and each terminal iidentification and corresponding control group are pre-configured in server Part.
1, startServer, start cloud application server: cloud application server provides above-mentioned 6 service commands.
2, start large-size screen monitors terminal initialization task: starting large-size screen monitors client terminals process calls application server CreateQrcode service, is based on large-size screen monitors terminal iidentification (second terminal mark), obtains the large-size screen monitors terminal iidentification pair to server The small routine code answered, and the small routine code is shown on the screen of large-size screen monitors terminal, wherein it include large-size screen monitors terminal in small routine code Terminal identifier uuid.
3, start large-size screen monitors terminal polling query communication connection status task: cloud application server is called in large-size screen monitors terminal polling In checkConnection service, whether there are other terminals to be successfully connected to large-size screen monitors terminal by the service detection, if It is that then display has connected successful terminal device information, if detecting, mobile phone terminal A is successfully connected with large-size screen monitors terminal, it can be with " mobile phone terminal A has connected " is shown in large-size screen monitors terminal, if not detected, terminal is successfully connected with large-size screen monitors terminal, continues to show Show the small routine code, other terminals is waited to connect.
It wherein, is being communication transfer matchmaker with cloud application server if the terminal being successfully connected is mobile phone terminal A It is situated between, after the communication connection of creation mobile phone terminal A and large-size screen monitors terminal, cloud application server is whole to large-size screen monitors terminal return mark large-size screen monitors Whether end establishes the identifier of communication connection with mobile phone terminal A, for example, indicating that mobile phone terminal A and large-size screen monitors are whole when identifier is 0 The communication connection status at end be it is not connected, when identifier is 1, indicate that mobile phone terminal A and large-size screen monitors terminal have been successfully established communication link It connects, i.e. the communication connection status of mobile phone terminal A and large-size screen monitors terminal is to have connected, and when identifier is 2, indicates mobile phone terminal A and big The communication connection status of screen terminal is that connection has disconnected.
4, starting mobile phone terminal starts connection task: corresponding sweep of wechat small routine for opening mobile phone terminal A sweeps function, It identifies the small routine code in large-size screen monitors terminal, obtains the terminal identifier uuid of large-size screen monitors terminal, trigger communication connection request, the communication Include the terminal identifier uuid of large-size screen monitors terminal in connection request, which is sent to cloud application service Device calls the createConnection of cloud application server to service, and is communication transfer medium, wound with cloud application server The communication connection of mobile phone terminal A Yu large-size screen monitors terminal are built, and upon establishment of a connection, be based on large-size screen monitors terminal identifier uuid, obtained big The control assembly for shielding the terminal control interface of terminal, control assembly is mounted in mobile phone terminal A, and the control assembly is corresponding Terminal control interface display on mobile phone terminal A;
Wherein, if mobile phone terminal A and large-size screen monitors terminal have been successfully established communication connection, server can be to mobile phone terminal A It sends for identifying the whether successful identifier for establishing communication connection with large-size screen monitors terminal of mobile phone terminal A, for example, when identifier is 0, It indicates that mobile phone terminal A has succeeded and sets up communication connection with large-size screen monitors terminal.
It should be noted that above-mentioned steps 3 and step 4 can not have sequencing when being executed, large-size screen monitors terminal can be with one It is straight to execute poll inquiry communication connection status task, to detect whether the terminal being successfully established with large-size screen monitors terminal.
5, starting mobile phone terminal issues control command task: mobile phone terminal A success sets up communication connection with large-size screen monitors terminal Afterwards, user can send operation task to large-size screen monitors terminal based on mobile phone terminal A, at this point, calling cloud application server The operation task is sent to corresponding large-size screen monitors terminal by server, includes that large-size screen monitors are whole in the instruction by pushCommand service Action type corresponding to the terminal identifier uuid and operation task at end.
Wherein, whole receiving mobile phone if in operational order further including the terminal iidentification (first terminal mark) of mobile phone terminal A After the operation task that end A is sent by terminal control interface, server is based on mobile phone terminal mark, to mobile phone terminal A transmission It sends for whether identification operation task to be successfully put into the task in the operation task queue of server as a result, for example, can be with It identifies task by the identifier that sets to send as a result, when identifier is 0, expression is sent successfully, and when identifier is 1, expression is sent out Send failure.
6, starting large-size screen monitors terminal polling obtains control command task: cloud application server is called in large-size screen monitors terminal polling PullCommand service obtains the operation task queue that mobile phone terminal issues and (corresponds to operational order team shown in Fig. 4 Column), at this point, if there is multiple terminals set up communication connection with large-size screen monitors terminal simultaneously, and have at least two mobile phone terminals to clothes Business device sends operation task, then can execute corresponding according to the time sequencing for receiving operation task in operation task queue Operation task.
After being operated successfully based on operation task, server is identified based on mobile phone terminal, is sent to mobile phone terminal for marking Know and whether operate successful identifier, for example, expression operates successfully when identifier is 0, when identifier is 1, indicates that operation is lost It loses.
It should be noted that above-mentioned steps 5 and step 6 can not have sequencing when being executed, large-size screen monitors terminal can be with one It is straight to execute whether poll inquiry receives control command, i.e., whether task to be handled.
7, starting mobile phone terminal disconnects task: user can be issued based on mobile phone terminal A and disconnect request, the request In may include the terminal identifier uuid of large-size screen monitors terminal and the terminal iidentification of mobile phone terminal, at this point, being based on the request, mobile phone Terminal calls the closeConnection service in cloud application server, disconnects the communication connection with large-size screen monitors terminal.
Wherein, when mobile phone terminal and large-size screen monitors terminal disconnect, server can be sent to mobile phone terminal A for identifying The identifier whether disconnected when identifier is 1, indicates to disconnect for example, indicating that this disconnects success when identifier is 0 Connection failure can disconnect request when disconnecting unsuccessfully with retriggered, to realize large-size screen monitors terminal and mobile phone terminal A Disconnect communication connection.
8, the createQrcode service of application server is re-called: when large-size screen monitors terminal polling inquiry detects the mobile phone When terminal A connection has disconnected, the createQrcode service in cloud application server is re-called, it is similar to return in step 2, New small routine code is obtained, is waited to be received based on new the triggered communication connection request of terminal barcode scanning.
It should be noted that in the embodiment of the present application, do not limit the sequence that executes of step 1 to step 8, for example, step 3 and Step 4 may be performed simultaneously, and can also execute respectively, and those skilled in the art can be configured according to the actual situation.
Method through this embodiment, mobile phone terminal can be by scanning the small routine code shown in large-size screen monitors terminal, with cloud End application server is communication transfer medium, it is established that connection is being established in the communication connection between mobile phone terminal and large-size screen monitors terminal Afterwards, later, can pass through by the control assembly at the terminal control interface accessed by installing by terminal control interface display The terminal control interface of the large-size screen monitors terminal shown on mobile phone terminal receives the control command to large-size screen monitors terminal, is based on the order, can To be sent to large-size screen monitors terminal pole by server, using mobile phone terminal as remote control equipment, realize through mobile phone terminal to large-size screen monitors end The remote control at end.With this solution, whether compatible with the software and hardware of mobile phone terminal without the concern for large-size screen monitors terminal, mobile phone terminal The communication with large-size screen monitors terminal can be realized by this programme, save the development cost of remote control equipment.In addition, user is based on terminal The interaction between mobile phone terminal and large-size screen monitors terminal can be realized in control interface, easy to operate, improves user experience.
Method provided by embodiment in order to better understand the present invention, below with reference to the example of concrete application scene to this The scheme of inventive embodiments is further elaborated.
Example one
As an example, application scenarios are meeting, between a kind of large-size screen monitors terminal as shown in Figure 6 a and mobile phone terminal A kind of signal of communication process between large-size screen monitors terminal and mobile phone terminal shown in the schematic diagram and Fig. 6 b of communications connection procedure Figure, second terminal are visualization hardware large-size screen monitors, for example, meeting room shows equipment, hereinafter referred to as large-size screen monitors terminal, first terminal can Think mobile phone terminal, large-size screen monitors terminal can be used for need to show the information of personnel participating in the meeting to be shown in conference process, In conference process, it usually needs the content based on large-size screen monitors terminal display conference, shown conference content can in large-size screen monitors terminal To assist meeting speaker preferably to introduce conference content, same personnel participating in the meeting can also be by the letter shown in large-size screen monitors terminal Breath better understands conference content, and for the large-size screen monitors terminal, due to the compatible problem of software and hardware, meeting speaker may can only lead to Compatible with large-size screen monitors terminal remote control equipment control large-size screen monitors terminal is crossed, it can not be incompatible with the large-size screen monitors terminal distant by other Control the equipment remote-control large-size screen monitors terminal.
Based on the above issues, the solution of the present invention is applied in cloud application server, hereinafter referred to as server, it should Server can be communicated with multiple large-size screen monitors terminals, can also be communicated with other terminals, in this example, be serviced in starting When device, Cloud Server can provide hereinbefore described 6 service commands, then, when starting large-size screen monitors terminal, large-size screen monitors terminal into Row initialization is obtained corresponding small routine code to server and is shown in large-size screen monitors terminal based on the terminal iidentification of large-size screen monitors terminal, When needing using large-size screen monitors terminal, i.e., when needing content corresponding by large-size screen monitors terminal display during meeting, by Fig. 6 a Shown step a will set up communication connection by server between mobile phone terminal and large-size screen monitors terminal:
Meeting speaker can pass through sweeping in the wechat small routine in mobile phone terminal and sweep in functionality scan large-size screen monitors terminal Small routine code, include the terminal iidentification of large-size screen monitors terminal in the small routine code, communication can be triggered while scanning small routine code Connection request includes the terminal iidentification of large-size screen monitors terminal in the request, and server is based on the request, using server as communicating transfer Medium, it is established that the communication connection between large-size screen monitors terminal and mobile phone terminal, meanwhile, terminal mark of the server based on large-size screen monitors terminal Know, the control assembly of large-size screen monitors terminal is sent to mobile phone terminal, so that control assembly is mounted on mobile phone terminal by mobile phone terminal, And the corresponding terminal control interface of the control assembly is shown on mobile phone terminal, it may include multiple control marks on the interface, The different corresponding different control functions of control mark, such as two controls as shown in Figure 6b identify, " page up " and " under One page ".
Then, after the communication connection for setting up large-size screen monitors terminal and mobile phone terminal by server, meeting speaker can With in conference process, using mobile phone terminal as remote control device large-size screen monitors terminal, specific control process can pass through the step in Fig. 6 b Suddenly b is realized, the terminal control interface of shown large-size screen monitors terminal, the terminal control interface on mobile phone terminal as shown in Figure 6b Upper includes two control marks, respectively " page up " and " lower one page ", and meeting speaker can be based on terminal control interface Shown control mark triggers corresponding control command, includes that the terminal iidentification of large-size screen monitors terminal and operation are appointed in the control command Business, large-size screen monitors terminal obtains operation task to server in a manner of poll, and is executed accordingly based on the operation task got Operation, usual operating result directly can intuitively be shown in large-size screen monitors terminal, for example, operation task is next to switch to Page, then large-size screen monitors terminal can be based on content shown by currently displayed changing interface to next interface, based on mobile phone terminal Terminal control Interface Control large-size screen monitors terminal, can be convenient user's operation, and mobile phone terminal does not need additional downloads other application Program can be directly based upon the mounted application with scanning function, further improve the usage experience of user.
Finally, after the conference is over, meeting speaker can be sent by mobile phone terminal and disconnect request, i.e., request and Large-size screen monitors terminal disconnects, and server can disconnect the communication connection between large-size screen monitors terminal and mobile phone terminal based on the request, meanwhile, Shown terminal control interface disappears on mobile phone terminal, and large-size screen monitors terminal can receive the new small routine of server transmission at this time Code, large-size screen monitors terminal show new small routine code in large-size screen monitors terminal, so that other terminals pass through newly small when N/A Procedure code connects large-size screen monitors terminal.
By the method for this programme, do not need to can be realized between large-size screen monitors terminal by hardware device (remote control equipment) Communication, also without the concern for the compatibility issue of large-size screen monitors terminal and hardware device, based on small routine shown in large-size screen monitors terminal Code can be realized, and using mobile phone terminal as remote controler, using server as communication transfer medium, establishes mobile phone terminal and large-size screen monitors are whole The purpose of the communication connection at end saves the development cost of remote control equipment, and user can be realized based on mobile phone terminal and large-size screen monitors Interaction between terminal, it is easy to operate, improve user experience.
Based on principle identical with method shown in Fig. 2, the embodiment of the invention also provides logical between a kind of terminal T unit 10, the device include that in the server, as shown in Figure 7, the communication device 10 between the terminal may include control Order receiver module 110 and the first operation task processing module 120, in which:
Control command receiving module 110, for receiving the control command of first terminal transmission, control command is first terminal It generates in the following manner:
User is received on terminal control interface by the terminal control interface of the second terminal shown on first terminal Operation generates the control command to second terminal according to operation, and (second eventually for the terminal iidentification including second terminal in control command End mark) and the corresponding operation task of operation;
Wherein, terminal control interface first terminal is got by the control assembly of installing terminal control interface, control Component, which is first terminal, to be identified based on second terminal and sends communication connection request to server and get, and terminal iidentification is first Terminal is got by the terminal scan code shown in scanning second terminal;
Operation task is sent to second eventually for identifying according to second terminal by the first operation task processing module 120 End, so that second terminal executes corresponding operation according to the operation task received.
Scheme in through this embodiment, first terminal can by the terminal scan code that shows in scanning second terminal, Being set up by server with server is the communication connection communicated between the first terminal and second terminal of transfer medium, and is led to The control assembly at the accessed terminal control interface of installation is crossed by terminal control interface display, later, first terminal can The control command to second terminal is received by the terminal control interface, and the order is sent to second eventually by server End, so that second terminal executes corresponding operation.The scheme of the embodiment of the present invention is realized using first terminal as remote control equipment The function of second terminal is controlled by first terminal.With this solution, without the concern for the software and hardware of second terminal and first Whether the software and hardware of terminal is compatible with, and the communication between first terminal and second terminal can be realized by this programme, is saved distant The development cost for controlling equipment, has better met practical application request.
Optionally, which can also include:
Module is established in first communication connection, for before receiving the control command that first terminal is sent, receiving first eventually The communication connection request sent is held, communication connection request is what first terminal was triggered by end of scan scan code, and terminal scans Include that second terminal identifies in code, includes terminal iidentification in communication connection request;According to terminal iidentification, using server as communication Transfer medium, it is established that the communication connection between first terminal and second terminal, and establish and lead in first terminal and second terminal It after letter connection, is identified based on second terminal, control assembly is sent to first terminal, so that first terminal installs control assembly And display terminal control interface.
Optionally, which can also include:
First scan code obtains module, is used in second terminal starting, alternatively, at all ends connecting with second terminal When end is disconnected with second terminal, is identified based on second terminal, new terminal scan code is sent to second terminal, so that Second terminal shows new terminal scan code in second terminal.
Optionally, which can also include:
Facility information display module, for using server as communication transfer medium, it is established that first terminal and second After the communication connection of terminal, the terminal device information of first terminal is sent to second terminal, so that second terminal display terminal Facility information.
Optionally, the second operation task processing module 220 is identified according to second terminal, and operation task is sent to second When terminal, it is specifically used for:
It is identified according to second terminal, operation task is added in operation task queue corresponding with second terminal mark;
The operation task in operation task queue is sent to second terminal by any one following mode:
It, will operation task team corresponding with second terminal mark when receiving the task acquisition request of second terminal transmission All operation tasks in column are sent to second terminal, include that second terminal identifies in task acquisition request;
It is identified based on second terminal, operation task in operation task queue is sent to second terminal.
Optionally, which can also include:
First connection status enquiry module, for receiving the connection status inquiry request of second terminal transmission, connection status Inquiry request includes second terminal mark;It is identified based on second terminal, the communication connection status of second terminal is sent to second Terminal, communication connection status of the communication connection status between second terminal and other terminals, other terminals include first terminal, Communication connection status includes being not connected with, have connected and connecting any one of to have disconnected.
Optionally, which can also include:
Communication connection disconnect module, for receive first terminal transmission disconnect request, disconnect request in wrap Include second terminal mark;It is identified based on second terminal, disconnects first set up using server as communication transfer medium eventually Communication connection between end and second terminal.
Based on principle identical with method shown in Fig. 2, the embodiment of the invention also provides logical between a kind of terminal T unit 20, the device are included in first terminal, and as shown in Figure 8, the communication device 20 between the terminal may include behaviour Make receiving module 210, control command generation module 220 and the second operation task processing module 230, in which:
Receiving module 210 is operated, for receiving the terminal control interface for the second terminal that user shows on first terminal On operation.
Control command generation module 220 wraps in control command for generating the control command to second terminal according to operation It includes the second terminal mark of second terminal and operates corresponding operation task;
Wherein, terminal control interface is that first terminal is got by the control assembly of installing terminal control interface, control Component processed, which is first terminal, to be identified based on second terminal and sends communication connection request to server and get, second terminal mark It is that first terminal is got by the terminal scan code shown in scanning second terminal;
Second operation task processing module 230, for control command to be sent to server, so that server is according to second Operation task is sent to second terminal by terminal iidentification, and second terminal executes corresponding operation according to the operation task received.
Scheme in through this embodiment, first terminal can by the terminal scan code that shows in scanning second terminal, Being set up by server with server is the communication connection communicated between the first terminal and second terminal of transfer medium, and is led to The control assembly at the accessed terminal control interface of installation is crossed by terminal control interface display, later, first terminal can The control command to second terminal is received by the terminal control interface, and the order is sent to second eventually by server End, so that second terminal executes corresponding operation.The scheme of the embodiment of the present invention is realized using first terminal as remote control equipment The function of second terminal is controlled by first terminal.With this solution, without the concern for the software and hardware of second terminal and first Whether the software and hardware of terminal is compatible with, and the communication between first terminal and second terminal can be realized by this programme, is saved distant The development cost for controlling equipment, has better met practical application request.
Optionally, which can also include:
Module is established in second communication connection, in the terminal control for receiving the second terminal that user shows on first terminal Before operation on interface processed, when detecting the scan operation to terminal scan code, parsing terminal scan code obtains second eventually End mark;It is identified based on second terminal to server and sends communication connection request, so that server is receiving first terminal hair When the communication connection request sent, using server as communication transfer medium, it is established that first terminal is corresponding with second terminal mark Second terminal between communication connection;The control assembly that server is sent based on second terminal mark is received, control group is installed Part is with display terminal control interface.
Optionally, first terminal includes mobile terminal, and second terminal includes large-size screen monitors terminal.
Based on principle identical with method shown in Fig. 2, the embodiment of the invention also provides logical between a kind of terminal T unit 30, the device are included in first terminal, and as shown in Figure 9, the communication device 30 between the terminal may include behaviour Make task receiving module 310 and third operation task processing module 320, in which:
Operation task receiving module 310, for receiving the operation task of server transmission, operation task is in control command The information of carrying, operation task are the information carried in control command, and control command is that first terminal is sent to server, are controlled System order generates in the following manner:
User is received on terminal control interface by the terminal control interface of the second terminal shown on first terminal Operation generates the control command to second terminal according to operation, includes terminal iidentification and the operation of second terminal in control command Corresponding operation task;
Wherein, terminal control interface is that first terminal is got by the control assembly of installing terminal control interface, control Component processed, which is first terminal, to be identified based on second terminal and sends communication connection request to server and get, and terminal iidentification is the One terminal is got by the terminal scan code shown in scanning second terminal;
Third operation task processing module 320, for executing corresponding operation based on the operation task received.
Scheme in through this embodiment, first terminal can by the terminal scan code that shows in scanning second terminal, Being set up by server with server is the communication connection communicated between the first terminal and second terminal of transfer medium, and is led to The control assembly at the accessed terminal control interface of installation is crossed by terminal control interface display, later, first terminal can The control command to second terminal is received by the terminal control interface, and the order is sent to second eventually by server End, so that second terminal executes corresponding operation.The scheme of the embodiment of the present invention is realized using first terminal as remote control equipment The function of second terminal is controlled by first terminal.With this solution, without the concern for the software and hardware of second terminal and first Whether the software and hardware of terminal is compatible with, and the communication between first terminal and second terminal can be realized by this programme, is saved distant The development cost for controlling equipment, has better met practical application request.
Optionally, which can also include:
Second scan code obtains module, is used in second terminal starting, alternatively, at all ends connecting with second terminal When end is disconnected with second terminal, scan code acquisition request is sent to server, includes second in scan code acquisition request Terminal iidentification;It obtains the new terminal scan code of second terminal corresponding with terminal iidentification and shows.
Optionally, which can also include:
Second connection status enquiry module, for sending connection status inquiry request to server, connection status inquiry is asked It asks and is identified including second terminal;Receive the second terminal that server is sent based on the connection status inquiry request that second terminal is sent Communication connection status, believes communication connection status of the connection status for second terminal and other terminals between, other terminals include the One terminal, communication connection status include being not connected with, have connected and connecting any one of to have disconnected.
The device as provided by the embodiment of the present invention is the device that can execute the method in the embodiment of the present invention, so Based on method provided in the embodiment of the present invention, those skilled in the art can understand the device of the embodiment of the present invention Specific embodiment and its various change form, so how to realize the method in the embodiment of the present invention for the device at this No longer it is discussed in detail.As long as those skilled in the art implement device used by the method in the embodiment of the present invention, all belong to In the range that the application to be protected.
Based on principle identical with method and apparatus provided by the embodiment of the present invention, the embodiment of the invention also provides one Kind communication system, which includes first terminal, second terminal and server, wherein first terminal includes between terminal Communication device 10, include the communication device 20 between terminal in second terminal, server includes the communication device between terminal 30。
Based on principle identical with method and apparatus provided by the embodiment of the present invention, the embodiment of the invention also provides one Kind electronic equipment, which may include processor and memory.Wherein, readable instruction is stored in memory, it is readable When instruction is loaded and executed by processor, method shown in any embodiment of the present invention may be implemented.
As an example, a kind of electronic equipment 4000 that the scheme of the embodiment of the present application is applicable in is shown in Figure 10 Structural schematic diagram, as shown in Figure 10, the electronic equipment 4000 may include processor 4001 and memory 4003.Wherein, locate Reason device 4001 is connected with memory 4003, is such as connected by bus 4002.Optionally, electronic equipment 4000 can also include transmitting-receiving Device 4004.It should be noted that transceiver 4004 is not limited to one in practical application, the structure of the electronic equipment 4000 not structure The restriction of pairs of the embodiment of the present application.
Processor 4001 can be CPU (Central Processing Unit, central processing unit), general processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit, specific integrated circuit), (Field Programmable Gate Array, scene can compile FPGA Journey gate array) either other programmable logic device, transistor logic, hardware component or any combination thereof.It can be with It realizes or executes and combine various illustrative logic blocks, module and circuit described in present disclosure.Processor 4001 are also possible to realize the combination of computing function, such as combine comprising one or more microprocessors, DSP and microprocessor Combination etc..
Bus 4002 may include an access, and information is transmitted between said modules.Bus 4002 can be PCI (Peripheral Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard Architecture, expanding the industrial standard structure) bus etc..It is total that bus 4002 can be divided into address Line, data/address bus, control bus etc..Only to be indicated with a thick line in Figure 10 convenient for indicating, it is not intended that only one total Line or a type of bus.
Memory 4003 can be ROM (Read Only Memory, read-only memory) or can store static information and refer to The other kinds of static storage device enabled, RAM (Random Access Memory, random access memory) or can store The other kinds of dynamic memory of information and instruction is also possible to EEPROM (Electrically Erasable Programmable Read Only Memory, Electrically Erasable Programmable Read-Only Memory), CD-ROM (Compact Disc Read Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, number The general optical disc of word, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store Desired program code with instruction or data structure form simultaneously can be but unlimited by any other medium of computer access In this.
Memory 4003 is used to store the application code for executing application scheme, and is held by processor 4001 to control Row.Processor 4001 is for executing the application code stored in memory 4003, to realize aforementioned either method embodiment Shown in scheme.
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the invention, it is noted that those skilled in the art are come It says, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should be regarded as Protection scope of the present invention.

Claims (15)

1. the communication means between a kind of terminal, which is characterized in that the method is executed by server, comprising:
The control command that first terminal is sent is received, the control command first terminal generates in the following manner:
User is received at the terminal control interface by the terminal control interface of the second terminal shown on the first terminal On operation, generated according to the operation to the control command of the second terminal, include described second in the control command The terminal iidentification of terminal and the corresponding operation task of the operation;
Wherein, the terminal control interface is that the first terminal is obtained by installing the control assembly at the terminal control interface It arrives, the control assembly is that the first terminal is got based on the terminal iidentification to server transmission communication connection request , the terminal iidentification is that the first terminal is got by scanning the terminal scan code shown in the second terminal;
According to the terminal iidentification, the operation task is sent to the second terminal, so that the second terminal is according to connecing The operation task received executes corresponding operation.
2. the method according to claim 1, wherein it is described receive first terminal send control command before, The method also includes:
The communication connection request that the first terminal is sent is received, the communication connection request is that the first terminal passes through scanning The terminal scan code triggering, include the terminal iidentification in the terminal scan code, includes in the communication connection request The terminal iidentification;
According to the terminal iidentification, using the server as communication transfer medium, it is established that the first terminal and described the Communication connection between two terminals;
Based on the terminal iidentification, the control assembly is sent to the first terminal.
3. method according to claim 1 or 2, which is characterized in that the second terminal starting when, alternatively, with institute All terminals of second terminal connection are stated when disconnecting with the second terminal, the method also includes:
Based on the terminal iidentification, new terminal scan code is sent to the second terminal, so that the second terminal is by institute New terminal scan code is stated to be shown in the second terminal.
4. method according to claim 1 or 2, which is characterized in that using the server as communication transfer medium, build After the communication connection for erecting the first terminal and the second terminal, the method also includes:
The terminal device information of the first terminal is sent to the second terminal, so that the second terminal shows the terminal Facility information.
5. method according to claim 1 or 2, which is characterized in that the first terminal includes mobile terminal, and described second Terminal includes large-size screen monitors terminal.
6. the communication means between a kind of terminal, which is characterized in that the method is executed by first terminal, comprising:
Receive the operation on the terminal control interface for the second terminal that user shows on the first terminal;
The control command to the second terminal is generated according to the operation, includes the second terminal in the control command Terminal iidentification and the corresponding operation task of the operation;
Wherein, the terminal control interface is that the first terminal is obtained by installing the control assembly at the terminal control interface It arrives, the control assembly is that the first terminal is got based on the terminal iidentification to server transmission communication connection request , the terminal iidentification is that the first terminal is got by scanning the terminal scan code shown in the second terminal;
The control command is sent to the server, so that the server appoints the operation according to the terminal iidentification Business is sent to the second terminal, and the second terminal is made to execute corresponding operation according to the operation task received.
7. according to the method described in claim 6, it is characterized in that, for receiving user and being shown on the first terminal Before operation on the terminal control interface of two terminals, the method also includes:
When detecting the scan operation to the terminal scan code, parses the terminal scan code and obtain the terminal iidentification;
Communication connection request is sent to the server based on the terminal iidentification, so that the server is receiving described lead to When believing connection request, using the server as communication transfer medium, it is established that the first terminal and the terminal iidentification pair The communication connection between the second terminal answered;
The control assembly that the server is sent based on the terminal iidentification is received, the control assembly is installed to show State terminal control interface.
8. the communication means between a kind of terminal, which is characterized in that the method is executed by second terminal, comprising:
The operation task that server is sent is received, the operation task is the information carried in control command, the control command It is sent to the server for first terminal, the control command generates in the following manner:
User is received in the terminal control by the terminal control interface of the second terminal shown on the first terminal Operation on interface generates the control command to the second terminal according to the operation, includes described in the control command The terminal iidentification of second terminal and the corresponding operation task of the operation;
Wherein, the terminal control interface is that the first terminal is obtained by installing the control assembly at the terminal control interface It arrives, the control assembly is that the first terminal is got based on the terminal iidentification to server transmission communication connection request , the terminal iidentification is that the first terminal is got by scanning the terminal scan code shown in the second terminal;
Corresponding operation is executed based on the operation task received.
9. according to the method described in claim 8, it is characterized in that, in second terminal starting, alternatively, with described the When all terminals of two terminals connection are disconnected with the second terminal, the method also includes:
Scan code acquisition request is sent to the server, includes the terminal iidentification in the scan code acquisition request;
It obtains the terminal scan code of the second terminal corresponding with the terminal iidentification and shows.
10. the communication device between a kind of terminal, which is characterized in that described device includes in the server that described device includes:
Control command receiving module, for receiving the control command of first terminal transmission, the control command is described first whole What end generated in the following manner:
User is received at the terminal control interface by the terminal control interface of the second terminal shown on the first terminal On operation, generated according to the operation to the control command of the second terminal, include described second in the control command The terminal iidentification of terminal and the corresponding operation task of the operation;
Wherein, the terminal control interface is that the first terminal is obtained by installing the control assembly at the terminal control interface It arrives, the control assembly is that the first terminal is got based on the terminal iidentification to server transmission communication connection request , the terminal iidentification is that the first terminal is got by scanning the terminal scan code shown in the second terminal;
First operation task processing module, for according to the terminal iidentification, the operation task to be sent to described second eventually End, so that the second terminal executes corresponding operation according to the operation task received.
11. the communication device between a kind of terminal, which is characterized in that described device is included in first terminal, described device packet It includes:
Receiving module is operated, on the terminal control interface for receiving the second terminal that user shows on the first terminal Operation;
Control command generation module, for generating the control command to the second terminal, the control life according to the operation Terminal iidentification and the corresponding operation task of the operation in order including the second terminal;
Wherein, the terminal control interface is that the first terminal is obtained by installing the control assembly at the terminal control interface It arrives, the control assembly is that the first terminal is got based on the terminal iidentification to server transmission communication connection request , the terminal iidentification is that the first terminal is got by scanning the terminal scan code shown in the second terminal;
Second operation task processing module, for the control command to be sent to the server, so that the server root The operation task is sent to the second terminal according to the terminal iidentification, the second terminal is appointed according to the operation received Business executes corresponding operation.
12. the communication device between a kind of terminal, which is characterized in that described device is included in second terminal, described device packet It includes:
Operation task receiving module, for receiving the operation task of server transmission, the operation task is to take in control command The information of band, the control command are that first terminal is sent to the server, and the control command is the first terminal It generates in the following manner:
User is received at the terminal control interface by the terminal control interface of the second terminal shown on the first terminal On operation, generated according to the operation to the control command of the second terminal, include described second in the control command The terminal iidentification of terminal and the corresponding operation task of the operation;
Wherein, the terminal control interface is that the first terminal is obtained by installing the control assembly at the terminal control interface It arrives, the control assembly is that the first terminal is got based on the terminal iidentification to server transmission communication connection request , the terminal iidentification is that the first terminal is got by scanning the terminal scan code shown in the second terminal;
Third operation task processing module, for executing corresponding operation based on the operation task received.
13. a kind of communication system, which is characterized in that the communication system includes first terminal, second terminal and server, In, the first terminal includes the communication device between terminal described in claim 10, includes power in the second terminal Benefit requires the communication device between terminal described in 11, and the server includes between terminal described in claim 12 Communication device.
14. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory;
It is stored with readable instruction in the memory, when the readable instruction is loaded and executed by the processor, realizes as weighed Benefit require any one of 1 to 9 described in method.
15. a kind of computer readable storage medium, which is characterized in that be stored with readable instruction in the storage medium, it is described can When reading instruction is loaded and executed by processor, method as claimed in any one of claims 1-9 wherein is realized.
CN201910380358.4A 2019-05-08 2019-05-08 Communication method and system between terminals, electronic equipment and storage medium Active CN110099461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910380358.4A CN110099461B (en) 2019-05-08 2019-05-08 Communication method and system between terminals, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910380358.4A CN110099461B (en) 2019-05-08 2019-05-08 Communication method and system between terminals, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110099461A true CN110099461A (en) 2019-08-06
CN110099461B CN110099461B (en) 2023-11-07

Family

ID=67447258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910380358.4A Active CN110099461B (en) 2019-05-08 2019-05-08 Communication method and system between terminals, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110099461B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694488A (en) * 2020-05-08 2020-09-22 广州微算互联信息技术有限公司 Cloud mobile phone screen turning control method and system and storage medium
CN111866557A (en) * 2020-06-12 2020-10-30 广州视源电子科技股份有限公司 Configuration method and device of large-screen display equipment, storage medium and electronic equipment
WO2021103002A1 (en) * 2019-11-29 2021-06-03 京东方科技集团股份有限公司 Method for interaction between display devices, and display device
WO2021237536A1 (en) * 2020-05-27 2021-12-02 Oppo广东移动通信有限公司 Communication method, apparatus and device based on internet of things
WO2022206606A1 (en) * 2021-03-29 2022-10-06 西安青松光电技术有限公司 Control method and apparatus for led display device, storage medium, and electronic device

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340544A (en) * 2008-08-11 2009-01-07 北京中星微电子有限公司 Remote control method and apparatus
CN101394504A (en) * 2008-10-20 2009-03-25 华南理工大学 Television set remote control device and remote control method having television set game function
CN103024525A (en) * 2012-12-27 2013-04-03 深圳市茁壮网络股份有限公司 Set-top box and method of controlling the same by mobile terminal
CN103605531A (en) * 2013-09-12 2014-02-26 广东美的制冷设备有限公司 Household appliance control method and device and mobile terminal
CN103973787A (en) * 2014-05-07 2014-08-06 深圳市精准分众网络科技有限公司 Method and system for remotely controlling display terminals through mobile intelligent terminal
CN104185061A (en) * 2014-09-02 2014-12-03 上海杠点信息技术有限公司 System and method for configuring television terminal through smart mobile terminal
EP2869151A1 (en) * 2013-10-29 2015-05-06 Kabushiki Kaisha Yaskawa Denki Industrial equipment management system, industrial equipment management server, industrial equipment management method, program, and information storage medium
CN105320081A (en) * 2014-06-13 2016-02-10 上海仪电控股(集团)公司 IOT equipment unified control and management method based on two-dimensional code
CN205249421U (en) * 2015-11-25 2016-05-18 深圳市康冠技术有限公司 Intelligence TV control system
CN105632159A (en) * 2015-12-30 2016-06-01 深圳创维数字技术有限公司 Remote control management method and terminal device
CN106094547A (en) * 2016-07-07 2016-11-09 镇江惠通电子有限公司 Intelligent home equipment control method and system
CN106534558A (en) * 2016-11-25 2017-03-22 重庆杰夫与友文化创意有限公司 Method and device for controlling projector
CN106559700A (en) * 2015-09-29 2017-04-05 北京优朋普乐科技有限公司 A kind of method of lan device interaction, apparatus and system
CN106792058A (en) * 2016-12-30 2017-05-31 新东网科技有限公司 A kind of video screen long-distance remote-control method
CN107241652A (en) * 2017-06-28 2017-10-10 百视通网络电视技术发展有限责任公司 A kind of TV speech remote control system and method based on wechat small routine
CN107360454A (en) * 2017-06-28 2017-11-17 百视通网络电视技术发展有限责任公司 A kind of tv remote control system and method based on mobile terminal wechat small routine
US20180027286A1 (en) * 2012-12-25 2018-01-25 Tencent Technology (Shenzhen) Company Limited Method, terminal, and system for communication pairing of a digital television terminal and a mobile terminal
CN108123855A (en) * 2017-12-04 2018-06-05 北京小米移动软件有限公司 terminal control method and device

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340544A (en) * 2008-08-11 2009-01-07 北京中星微电子有限公司 Remote control method and apparatus
CN101394504A (en) * 2008-10-20 2009-03-25 华南理工大学 Television set remote control device and remote control method having television set game function
US20180027286A1 (en) * 2012-12-25 2018-01-25 Tencent Technology (Shenzhen) Company Limited Method, terminal, and system for communication pairing of a digital television terminal and a mobile terminal
CN103024525A (en) * 2012-12-27 2013-04-03 深圳市茁壮网络股份有限公司 Set-top box and method of controlling the same by mobile terminal
CN103605531A (en) * 2013-09-12 2014-02-26 广东美的制冷设备有限公司 Household appliance control method and device and mobile terminal
EP2869151A1 (en) * 2013-10-29 2015-05-06 Kabushiki Kaisha Yaskawa Denki Industrial equipment management system, industrial equipment management server, industrial equipment management method, program, and information storage medium
CN103973787A (en) * 2014-05-07 2014-08-06 深圳市精准分众网络科技有限公司 Method and system for remotely controlling display terminals through mobile intelligent terminal
CN105320081A (en) * 2014-06-13 2016-02-10 上海仪电控股(集团)公司 IOT equipment unified control and management method based on two-dimensional code
CN104185061A (en) * 2014-09-02 2014-12-03 上海杠点信息技术有限公司 System and method for configuring television terminal through smart mobile terminal
CN106559700A (en) * 2015-09-29 2017-04-05 北京优朋普乐科技有限公司 A kind of method of lan device interaction, apparatus and system
CN205249421U (en) * 2015-11-25 2016-05-18 深圳市康冠技术有限公司 Intelligence TV control system
CN105632159A (en) * 2015-12-30 2016-06-01 深圳创维数字技术有限公司 Remote control management method and terminal device
CN106094547A (en) * 2016-07-07 2016-11-09 镇江惠通电子有限公司 Intelligent home equipment control method and system
CN106534558A (en) * 2016-11-25 2017-03-22 重庆杰夫与友文化创意有限公司 Method and device for controlling projector
CN106792058A (en) * 2016-12-30 2017-05-31 新东网科技有限公司 A kind of video screen long-distance remote-control method
CN107241652A (en) * 2017-06-28 2017-10-10 百视通网络电视技术发展有限责任公司 A kind of TV speech remote control system and method based on wechat small routine
CN107360454A (en) * 2017-06-28 2017-11-17 百视通网络电视技术发展有限责任公司 A kind of tv remote control system and method based on mobile terminal wechat small routine
CN108123855A (en) * 2017-12-04 2018-06-05 北京小米移动软件有限公司 terminal control method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
""C1-174683-was_3810_27007_for-5G-v24"", 3GPP TSG_CT\\WG1_MM-CC-SM_EX-CN1 *
WENPING WANG: "Design_for_Automatic_Generation_of_Spacecraft_Telemetry_Software_Code_Based_on_Incremental_Model", 《IEEE XPLORE》 *
赵宇: "基于移动网的传输网络优化方案设计", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021103002A1 (en) * 2019-11-29 2021-06-03 京东方科技集团股份有限公司 Method for interaction between display devices, and display device
CN113796049A (en) * 2019-11-29 2021-12-14 京东方艺云科技有限公司 Interaction method between display devices and display devices
CN113796049B (en) * 2019-11-29 2023-05-09 京东方艺云(杭州)科技有限公司 Interaction method between display devices and display device
CN111694488A (en) * 2020-05-08 2020-09-22 广州微算互联信息技术有限公司 Cloud mobile phone screen turning control method and system and storage medium
CN111694488B (en) * 2020-05-08 2021-09-28 广州微算互联信息技术有限公司 Cloud mobile phone screen turning control method and system and storage medium
WO2021237536A1 (en) * 2020-05-27 2021-12-02 Oppo广东移动通信有限公司 Communication method, apparatus and device based on internet of things
CN111866557A (en) * 2020-06-12 2020-10-30 广州视源电子科技股份有限公司 Configuration method and device of large-screen display equipment, storage medium and electronic equipment
WO2022206606A1 (en) * 2021-03-29 2022-10-06 西安青松光电技术有限公司 Control method and apparatus for led display device, storage medium, and electronic device

Also Published As

Publication number Publication date
CN110099461B (en) 2023-11-07

Similar Documents

Publication Publication Date Title
CN110099461A (en) Communication means, device, system, electronic equipment and storage medium between terminal
US11153393B2 (en) System capable of interacting with devices on a network
US10277641B2 (en) Proximity session mobility extension
CN105471686B (en) Terminal control method, device and system
EP3425566B1 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
TWI685228B (en) Information transmission method and device
CN107040416B (en) Virtual data center visual management method based on Cairngorm framework
CN106358090B (en) Virtual reality video broadcasting method and device, video projective techniques and device
CN103763327A (en) Account number logging-in method and system
JP2019537158A (en) Resource sharing method, apparatus and system
CN104702665A (en) Information sharing method and information sharing device
KR20150003192A (en) Enabling web clients to provide web services
JP2017539103A (en) Method, apparatus, server, and system for synchronizing member gain among multiple apparatuses
WO2017020523A1 (en) Method and apparatus for remote control of terminal
CN104022945A (en) Method and device for realizing instant communication in client end
CN105872578A (en) Invoking method and server
CN105550934A (en) System and method for pushing WeChat soft advertisement in virtual reality
CN109561059A (en) A kind of account login method and its system, terminal, storage medium
CN109754329A (en) Processing method, terminal, server and the storage medium of e-sourcing
US10044777B2 (en) Method and device for communicating between at least a first terminal and a second terminal
JP7101313B2 (en) Providing virtual desktops within a computing environment
CN106162313A (en) A kind of multi-screen interaction method and system
US9749828B2 (en) Communication system and method for making telephone calls over the internet
CN103701681A (en) Information processing method and electronic equipment
CN111726396B (en) Device binding method and device, cloud 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
GR01 Patent grant
GR01 Patent grant