CN103475907A - Multi-screen control method and device - Google Patents

Multi-screen control method and device Download PDF

Info

Publication number
CN103475907A
CN103475907A CN2013104368357A CN201310436835A CN103475907A CN 103475907 A CN103475907 A CN 103475907A CN 2013104368357 A CN2013104368357 A CN 2013104368357A CN 201310436835 A CN201310436835 A CN 201310436835A CN 103475907 A CN103475907 A CN 103475907A
Authority
CN
China
Prior art keywords
server
client device
message
communication port
default
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
CN2013104368357A
Other languages
Chinese (zh)
Other versions
CN103475907B (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.)
ZHUHAI GOTECH ELECTRONIC TECHNOLOGY Co Ltd
Original Assignee
ZHUHAI GOTECH ELECTRONIC TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHUHAI GOTECH ELECTRONIC TECHNOLOGY Co Ltd filed Critical ZHUHAI GOTECH ELECTRONIC TECHNOLOGY Co Ltd
Priority to CN201310436835.7A priority Critical patent/CN103475907B/en
Publication of CN103475907A publication Critical patent/CN103475907A/en
Application granted granted Critical
Publication of CN103475907B publication Critical patent/CN103475907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a multi-screen control method and device. According to the multi-screen control method and device, an existing mature TCP/UDP protocol is used as a standard, multiple-screen interaction control between an intelligent set top box and other smart mobile devices can be easily and conveniently achieved, and meanwhile the compatibility of the intelligent set top box with other smart mobile devices can be improved. The multi-screen control method comprises the following steps that firstly, mutual recognition between a server and a client device is executed; secondly, if mutual recognition is successful, the third step is executed, and if mutual recognition fails, the fifth step is executed; thirdly, TCP connection between the server and the client device is established; fourthly, a control mode of the server is made matched with the client device, so that virtual keys on the client device and physical control keys of the server correspond to one another; Fifthly, control connection between the server and the client device is denied.

Description

A kind of multi-screen control method and system
Technical field
The embodiment of the present invention relates to field of intelligent control, is specifically related to a kind of multi-screen control method and system.
Background technology
Popular along with Android intelligent system and Intelligent mobile equipment, a lot of inventions and innovation, all to this direction, draw close, the Set Top Box industry is no exception, the appearance of Android Set Top Box seems naturally, but how realizing interactive control between Intelligent set top box and other Intelligent mobile equipments, and more close friend's user's experience easily is provided, is a challenge and chance for each practitioner.
The scheme that multi-screen is controlled that realizes that also there is no in the market a set of really complete, ripe also standard, only has self-ordained certain simple function of realizing of some each producers, for example media portion is controlled shared relevant criterion, and relevant criterion is as DLNA (Digital Living Network Alliance), Airplay or Miracast etc.
Yet due to incompatible between each standard, and be not widely used, therefore can not form complete unified standard scheme.Process very complex, the cost compare that the standard implementation multi-screen differed greatly according to these is controlled high, compatible poor simultaneously.There is no at present the special scheme for the Set Top Box correlation technique simultaneously yet.
Summary of the invention
The embodiment of the present invention provides a kind of multi-screen control method and system, using and have mature T CP/UDP agreement now as standard, can realize simply and easily the multi-screen interactive control between Intelligent set top box and other Intelligent mobile equipments, can improve significantly the compatibility between Intelligent set top box and other Intelligent mobile equipments simultaneously.
The multi-screen control method that the embodiment of the present invention provides comprises:
S1: carry out the mutual identification of server and client side's equipment room;
S2: if described mutual identification successfully, execution step S3, otherwise execution step S5;
S3: set up described server and be connected with the TCP between described client device;
S4: the control model of described server is matched to described client device, makes the virtual key on described client device corresponding with the physical control button of described server;
S5: refuse the control connection between described server and described client device.
Alternatively,
Described server is the Intelligent set top box based on Android operating system band network function;
Described client device is the Android smart machine with network function.
Alternatively,
Described step S1 comprises:
S11: the message of the default communication port of Fu Wuqi client device listen also sends default form UDP message message by described default communication port to the described server of described Ke Huduanshebei;
S12: when the described client device of described Fu Wuqi receives the described default form UDP message message from described default communication port, described default form UDP message message is resolved, obtain analysis result;
S13: described server described client device judge respectively whether analysis result meets access conditions, if described server and described client device are met the judged result of access conditions simultaneously, judge and mutually identify successfully, otherwise judge mutual recognition failures.
Alternatively,
Described default form UDP message message comprises five fields, and wherein the first field means the type of UDP datagram literary composition carrier, and the second field is decollator, the IP address that the 3rd field is described carrier, and the 4th field is decollator, the 5th field is the coupling authorization information.
The multi-screen control method that the embodiment of the present invention provides comprises:
S1: the message of server preset monitored communication port also sends default form UDP message message by described default communication port to client device;
S2: when described server receives the default form UDP message message from described default communication port, described default form UDP message message is resolved, obtain analysis result;
S3: described server judges whether described analysis result meets the server end condition of contact, if execution step S4, otherwise refuse described client device access;
S4: described server sends to set up to described client device and carries out the solicited message that multi-screen is controlled required TCP connection;
S5: described client device checks whether the machine exists the IP of described server in the identification equipment list, if connect, otherwise execution step S6;
S6: described client device is resolved and is judged whether to meet the client condition of contact to default form UDP message message in described server, if the IP address obtained according to the described default form UDP message message of parsing connects and performs step S7, otherwise returns to the failure that connects;
S7: described server is matched to described client device by the machine control model, makes the virtual key on described client device corresponding with the physical control button of described server.
Alternatively,
The list of described identification equipment comprises current identification equipment list and historical recognized list;
Described front identification equipment list and described historical recognized list are distinguished by different signs.
The multi-screen control method that the embodiment of the present invention provides comprises:
S1: the message of the default communication port of client device listen also sends default form UDP message message by described default communication port to server;
S2: when described client device receives the default form UDP message message from described default communication port, described default form UDP message message is resolved, obtain analysis result;
S3: described client device judges whether described analysis result meets the client device condition of contact, if execution step S4, otherwise refuse described server access;
S4: described client device sends to set up to described server and carries out the solicited message that multi-screen is controlled required TCP connection;
S5: described server checks whether the machine exists the IP of described client device in the identification equipment list, if connect, otherwise execution step S6;
S6: described server is resolved and is judged whether to meet the server condition of contact to default form UDP message message in described client device, if the IP address obtained according to the described default form UDP message message of parsing connects and performs step S7, otherwise returns to the failure that connects;
S7: described client device obtains the control model of described server and described control model is mapped to the virtual key on described client device, makes described virtual key corresponding with the physical control button of described server.
The multi-screen control system that the embodiment of the present invention provides comprises: server and client side's equipment;
Described server comprises:
First monitors sending module, for the message of preset monitored communication port, also by described default communication port, to the client device transmission, presets form UDP message message;
The first parsing module, during for the default form UDP message message when receiving from described default communication port, resolved described default form UDP message message, obtains analysis result;
Whether the first judge module, meet the server end condition of contact for judging described analysis result;
The first sending module, carry out for sending to described client device to set up the solicited message that multi-screen is controlled required TCP connection;
The first processing module, for when there is not the IP of described server in the list of identification equipment of described client device, default form UDP message message in described server is resolved and is judged whether to meet the client condition of contact, and according to resolving the IP address that described default form UDP message message obtains, connect when meeting the client condition of contact, return to the failure that connects when not meeting the client condition of contact;
The first matching module, for the machine control model is matched to described client device, make the virtual key on described client device corresponding with the physical control button of described server;
Described client device comprises:
Second monitors sending module, for the message of preset monitored communication port, also by described default communication port, to the server transmission, presets form UDP message message;
The second parsing module, during for the default form UDP message message when receiving from described default communication port, resolved described default form UDP message message, obtains analysis result;
Whether the second judge module, meet the client device condition of contact for judging described analysis result;
The second sending module, carry out for sending to described server to set up the solicited message that multi-screen is controlled required TCP connection;
The second processing module, for when there is not the IP of described client device in the list of identification equipment of described server, default form UDP message message in described client device is resolved and is judged whether to meet the server condition of contact, and according to resolving the IP address that described default form UDP message message obtains, connect when meeting the server condition of contact, return to the failure that connects when not meeting the server condition of contact;
Mapping block, for the control model of obtaining described server and described control model is mapped to the virtual key on described client device, make described virtual key corresponding with the physical control button of described server.
Alternatively,
Described server is the Intelligent set top box based on Android operating system band network function.
Alternatively,
Described client device is with the Android smart mobile phone of network function or Android panel computer.
In the embodiment of the present invention, at first carry out the mutual identification of server and client side's equipment room; If described mutual identification successfully, setting up described server is connected with the TCP between described client device, and the control model of described server is matched to described client device, make the virtual key on described client device corresponding with the physical control button of described server; If described mutual recognition failures, refuse the control connection between described server and described client device.Multi-screen control method and system due to the embodiment of the present invention, using and have mature T CP/UDP agreement now as standard, mutual identification, connection and virtual key by server and client side's equipment room, can realize simply and easily the multi-screen interactive control between Intelligent set top box and other Intelligent mobile equipments, can improve significantly the compatibility between Intelligent set top box and other Intelligent mobile equipments simultaneously.
The accompanying drawing explanation
Fig. 1 is multi-screen control method the first embodiment flow chart in the embodiment of the present invention;
Fig. 2 is multi-screen control method the second embodiment flow chart in the embodiment of the present invention;
Fig. 3 is multi-screen control method the 3rd embodiment flow chart in the embodiment of the present invention;
Fig. 4 is multi-screen control method the 4th embodiment flow chart in the embodiment of the present invention;
Fig. 5 is multi-screen control system example structure schematic diagram in the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of multi-screen control method and system, using and have mature T CP/UDP agreement now as standard, can realize simply and easily the multi-screen interactive control between Intelligent set top box and other Intelligent mobile equipments, can improve significantly the compatibility between Intelligent set top box and other Intelligent mobile equipments simultaneously.
Refer to Fig. 1, in the embodiment of the present invention, the first embodiment of multi-screen control method comprises:
101, carry out the mutual identification of server and client side's equipment room;
Carry out identification mutually automatically between server and client side's equipment, comprise the identification to the identity ability of server and client side's equipment.For server, above-mentioned identity ability means whether this server possesses the ability that becomes the multi-screen Control Server; For client device, above-mentioned identity ability means whether this client device possesses the ability that multi-screen is controlled client device that becomes.
If 102 identify successfully mutually, perform step 103, otherwise perform step 105;
If server and client side's equipment is identified successfully mutually, that is server and client side's equipment confirmed respectively the other side's identity ability, performs step 103, otherwise performs step 105.
103, set up the TCP connection of server and client side's equipment room;
After determining that server and client side's equipment is identified successfully mutually, the TCP that can set up server and client side's equipment room connects.Above-mentioned TCP connection is set up by the IP address that obtains the other side, and above-mentioned IP address can obtain in the process of the mutual identification of carrying out server and client side's equipment room.
104, the control model of server is matched to client device, makes the virtual key on client device corresponding with the physical control button of server;
The TCP that sets up server and client side's equipment room connects, and the control model of server can be matched to client device, makes the virtual key on client device corresponding with the physical control button of server.
105, the control connection between denial of service device and client device.
After determining the mutual recognition failures of server and client side's equipment, the control connection between denial of service device and client device, can also send to both sides the result of control connection failure.
In the embodiment of the present invention, at first carry out the mutual identification of server and client side's equipment room; If mutually identify successfully, the TCP that sets up server and client side's equipment room connects, and the control model of server is matched to client device, makes the virtual key on client device corresponding with the physical control button of server; If mutual recognition failures, the control connection between denial of service device and client device.Multi-screen control method due to the embodiment of the present invention, using and have mature T CP/UDP agreement now as standard, mutual identification, connection and virtual key by server and client side's equipment room, can realize simply and easily the multi-screen interactive control between Intelligent set top box and other Intelligent mobile equipments, can improve significantly the compatibility between Intelligent set top box and other Intelligent mobile equipments simultaneously.
The above has simply introduced the first embodiment of multi-screen control method of the present invention, below the second embodiment of multi-screen control method of the present invention is described in detail, and refers to Fig. 2, and in the embodiment of the present invention, multi-screen control method the second embodiment comprises:
201, carry out the mutual identification of server and client side's equipment room;
Carry out identification mutually automatically between server and client side's equipment, comprise the identification to the identity ability of server and client side's equipment.For server, above-mentioned identity ability means whether this server possesses the ability that becomes the multi-screen Control Server; For client device, above-mentioned identity ability means whether this client device possesses the ability that multi-screen is controlled client device that becomes.Above-mentioned server can be the Intelligent set top box based on Android operating system band network function; Above-mentioned client device can be the Android smart machine with network function.
The detailed process of the mutual identification of server and client side's equipment room can comprise: the message of the default communication port of Fu Wuqi client device listen also sends default form UDP message message by default communication port to Ke Huduanshebei server; When Fu Wuqi client device receives the default form UDP message message from default communication port, default form UDP message message is resolved, obtain analysis result; Fu Wuqi client device judges respectively whether analysis result meets access conditions, if server and client side's equipment is met the judged result of access conditions simultaneously, judges and mutually identifies successfully, otherwise judge mutual recognition failures.The message of above-mentioned server preset monitored communication port can realize by the Service program of start self-starting.
Above-mentioned default form UDP message message can comprise five fields, wherein the first field means the type of UDP datagram literary composition carrier, the second field is decollator, the IP address that the 3rd field is carrier, the 4th field is decollator, the 5th field is the coupling authorization information, and wherein the decollator of the second field and the 4th field can be any spcial character, is mainly used in distinguishing other field character.When default form UDP message message is the above-mentioned UDP message message that comprises five fields, the above-mentioned detailed process that judges whether analysis result meets access conditions can comprise: at first server client device identify the first field, what the first field characterized is the identity ability of transmit leg, can determine by the identification of the first field whether transmit leg meets access conditions, after determining and meeting access conditions, can obtain setting up the IP address that the TCP connection needs by identifying the 3rd field, while being connected by the IP address, can further by identification the 5th field, do checking again, to guarantee the safety and precise connected.
It should be noted that, the form of default form UDP message message is not limited to above-mentioned five fields that comprise, but can on the basis that comprises the first field and the 3rd field, according to function, need to carry out additions and deletions, does not do herein restriction.
If 202 identify successfully mutually, perform step 203, otherwise perform step 205;
If server and client side's equipment is identified successfully mutually, that is server and client side's equipment confirmed respectively the other side's identity ability, performs step 203, otherwise performs step 205.
203, set up the TCP connection of server and client side's equipment room;
After determining that server and client side's equipment is identified successfully mutually, the TCP that can set up server and client side's equipment room connects.Above-mentioned TCP connection is set up by the IP address that obtains the other side, and above-mentioned IP address can obtain in the process of the mutual identification of carrying out server and client side's equipment room.
204, the control model of server is matched to client device;
After setting up the TCP connection of server and client side's equipment room, the control model of server can be matched to client device, make the virtual key on client device corresponding with the physical control button of server.
205, the control connection between denial of service device and client device.
After determining the mutual recognition failures of server and client side's equipment, the control connection between denial of service device and client device, can also send to both sides the result of control connection failure.
In the embodiment of the present invention, at first carry out the mutual identification of server and client side's equipment room; If mutually identify successfully, the TCP that sets up server and client side's equipment room connects, and the control model of server is matched to client device, makes the virtual key on client device corresponding with the physical control button of server; If mutual recognition failures, the control connection between denial of service device and client device.Multi-screen control method due to the embodiment of the present invention, using and have mature T CP/UDP agreement now as standard, mutual identification, connection and virtual key by server and client side's equipment room, can realize simply and easily the multi-screen interactive control between Intelligent set top box and other Intelligent mobile equipments, can improve significantly the compatibility between Intelligent set top box and other Intelligent mobile equipments simultaneously.
The above is described in detail the second embodiment of multi-screen control method of the present invention, the process that particularly server and client side's equipment room is identified mutually, below introduce the 3rd embodiment of multi-screen control method of the present invention, refer to Fig. 3, the 3rd embodiment of multi-screen control method of the present invention comprises:
301, the message of server preset monitored communication port also sends default form UDP message message by default communication port to client device;
Server can pass through the message of the Service program preset monitored communication port of start self-starting, and sends and preset form UDP message message to client device by default communication port.
302, when server receives the default form UDP message message from default communication port, default form UDP message message is resolved, obtained analysis result;
After server receives the default form UDP message message from default communication port, can be resolved default form UDP message message, and be obtained corresponding analysis result.Above-mentioned analysis result can comprise each byte content and corresponding implication explanation in the UDP message message.
303, server judges whether analysis result meets the server end condition of contact, if perform step 304, otherwise the access of refusal client device;
After obtaining explanation results, server judges whether analysis result meets the server end condition of contact, if perform step 304, otherwise the access of refusal client device.
304, server sends to set up to client device and carries out the solicited message that multi-screen is controlled required TCP connection;
After server determines that client device meets the server end condition of contact, the TCP that can set up server and client side's equipment room connects.Above-mentioned TCP connection is set up by the IP address that obtains client device, and above-mentioned IP address can obtain in the process from the default form UDP message message of default communication port in server parses.
305, client device is checked the machine IP of presence server whether in the identification equipment list, if connect, otherwise performs step 306;
After client device receives the connection request that server sends, can check the machine IP of presence server whether in the identification equipment list, if connect, otherwise perform step 306.The list of above-mentioned identification equipment comprises current identification equipment list and historical recognized list; Above-mentioned front identification equipment list and historical recognized list are distinguished by different signs.
306, client device is resolved and is judged whether to meet the client condition of contact to default form UDP message message in server, if the IP address obtained according to the default form UDP message message of parsing connects and performs step 307, otherwise returns to the failure that connects;
Client device checks that the machine has not had the IP of presence server in the identification equipment list, default form UDP message message in server is resolved and is judged whether to meet the client condition of contact, if the IP address obtained according to the default form UDP message message of parsing connects and performs step 307, otherwise returns to the failure that connects.
307, server is matched to client device by the machine control model, makes the virtual key on client device corresponding with the physical control button of server.
Client device determines that server meets the client condition of contact and, with after server is connected, server can be matched to client device by the machine control model, makes the virtual key on client device corresponding with the physical control button of server.
The multi-screen control method of the embodiment of the present invention, using and have mature T CP/UDP agreement now as standard, mutual identification, connection and virtual key by server and client side's equipment room, can realize simply and easily the multi-screen interactive control between Intelligent set top box and other Intelligent mobile equipments, can improve significantly the compatibility between Intelligent set top box and other Intelligent mobile equipments simultaneously.
The above is described in detail the 3rd embodiment of multi-screen control method of the present invention, below introduces the 4th embodiment of multi-screen control method of the present invention, refers to Fig. 4, and the 4th embodiment of multi-screen control method of the present invention comprises:
401, the message of the default communication port of client device listen also sends default form UDP message message by default communication port to server;
Client device can pass through the message of the Service program preset monitored communication port of start self-starting, and sends and preset form UDP message message to server by default communication port.
402, when client device receives the default form UDP message message from default communication port, default form UDP message message is resolved, obtained analysis result;
After client device receives the default form UDP message message from default communication port, can be resolved default form UDP message message, and be obtained corresponding analysis result.Above-mentioned analysis result can comprise each byte content and corresponding implication explanation in the UDP message message.
403, client device judges whether analysis result meets the client device condition of contact, if perform step 404, otherwise the access of denial of service device;
After obtaining explanation results, client device judges whether analysis result meets the client device condition of contact, if perform step 404, otherwise the access of denial of service device.
404, client device sends to set up to server and carries out the solicited message that multi-screen is controlled required TCP connection;
After client device determines that server meets the client device condition of contact, can set up client device and be connected with the TCP between server.Above-mentioned TCP connection is set up by the IP address that obtains server, and above-mentioned IP address can be resolved in the process from the default form UDP message message of presetting communication port and obtain at client device.
405, server checks that whether the machine exists the IP of client device in the identification equipment list, if connect, otherwise performs step 406;
After server receives the connection request that client device sends, can check the machine IP of presence server whether in the identification equipment list, if connect, otherwise perform step 406.The list of above-mentioned identification equipment comprises current identification equipment list and historical recognized list; Above-mentioned front identification equipment list and historical recognized list are distinguished by different signs.
406, server is resolved and is judged whether to meet the server condition of contact to default form UDP message message in client device, if the IP address obtained according to the default form UDP message message of parsing connects and performs step 407, otherwise returns to the failure that connects;
Server checks that the machine has not had the IP of presence server in the identification equipment list, default form UDP message message in server is resolved and is judged whether to meet the client condition of contact, if the IP address obtained according to the default form UDP message message of parsing connects and performs step 307, otherwise returns to the failure that connects.
407, client device obtains the control model of server and control model is mapped to the virtual key on client device, makes virtual key corresponding with the physical control button of server.
Server determines that client device meets the server condition of contact and with after client device is connected, client device obtains the control model of server and control model is mapped to the virtual key on client device, makes virtual key corresponding with the physical control button of server.
The multi-screen control method of the embodiment of the present invention, using and have mature T CP/UDP agreement now as standard, mutual identification, connection and virtual key by server and client side's equipment room, can realize simply and easily the multi-screen interactive control between Intelligent set top box and other Intelligent mobile equipments, can improve significantly the compatibility between Intelligent set top box and other Intelligent mobile equipments simultaneously.
The above is described in detail the 4th embodiment of multi-screen control method of the present invention, below introduces multi-screen control system embodiment of the present invention, refers to Fig. 5, and multi-screen control system embodiment of the present invention comprises: server 1 and client device 2;
Server 1 comprises:
First monitors sending module 11, for the message of preset monitored communication port and by presetting communication port to the default form UDP message message of client device transmission;
The first parsing module 12, during for the default form UDP message message when receiving from default communication port, resolved default form UDP message message, obtains analysis result;
Whether the first judge module 13, meet the server end condition of contact for judging analysis result;
The first sending module 14, carry out for sending to client device to set up the solicited message that multi-screen is controlled required TCP connection;
The first processing module 15, for when the list of identification equipment of client device not during the IP of presence server, default form UDP message message in server is resolved and is judged whether to meet the client condition of contact, and according to resolving the IP address that default form UDP message message obtains, connect when meeting the client condition of contact, return to the failure that connects when not meeting the client condition of contact;
The first matching module 16, for the machine control model is matched to client device, make the virtual key on client device corresponding with the physical control button of server;
Client device 2 comprises:
Second monitors sending module 21, for the message of preset monitored communication port and by presetting communication port to the default form UDP message message of server transmission;
The second parsing module 22, during for the default form UDP message message when receiving from default communication port, resolved default form UDP message message, obtains analysis result;
Whether the second judge module 23, meet the client device condition of contact for judging analysis result;
The second sending module 24, carry out for sending to server to set up the solicited message that multi-screen is controlled required TCP connection;
The second processing module 25, for when there is not the IP of client device in the list of identification equipment of server, default form UDP message message in client device is resolved and is judged whether to meet the server condition of contact, and according to resolving the IP address that default form UDP message message obtains, connect when meeting the server condition of contact, return to the failure that connects when not meeting the server condition of contact;
Mapping block 26, for the control model of obtaining server and control model is mapped to the virtual key on client device, make virtual key corresponding with the physical control button of server.
Carry out identification mutually automatically between server 1 and client device 2, comprise the identification to the identity ability of server 1 and client device 2.For server 1, above-mentioned identity ability means whether this server 1 possesses the ability that becomes the multi-screen Control Server; For client device 2, above-mentioned identity ability means whether this client device 2 possesses the ability that multi-screen is controlled client device that becomes.
If server 1 and client device 2 are identified successfully mutually, that is server 1 and client device 2 have been confirmed respectively the other side's identity ability, can set up server 1 is connected with the TCP of 2 of client devices, then the control model of server 1 is matched to client device 2, make the virtual key on client device 2 corresponding with the physical control button of server 1, otherwise the control connection that denial of service device 1 and client device are 2, can also send to both sides the result of control connection failure.Above-mentioned TCP connection is set up by the IP address that obtains the other side, and above-mentioned IP address can obtain in the process of the mutual identification of carrying out 2 of server 1 and client devices.
Below with a concrete application examples, the system to the embodiment of the present invention is described in detail:
After server 1 and client device 2 connect, after clicking virtual key, the standard installation data packet format of the apk(Android system on client device 2) will send to server 1 to the keycode of corresponding button by the TCP link of just now setting up, after server 1 receives data, will obtain corresponding keycode, then according to the value of keycode, send corresponding key-press event to the Android platform, the Instrumentation Interface realization that this process provides by the Android platform:
Instrumentation?inst=new?Instrumentation();
inst.sendKeyDownUpSync(KeyCode);
The sendKeyDownUpSync of Instrumentation interface (int keyCode) method, can simulation send button that a key assignments is keyCode and press the event of upspringing to the Android system, the Android system receives after this event will give event the application program of moving and go to process, carry out corresponding action, similarly be that the physics remote controller has been pressed, thereby reached by the function of client Control Server end.
While supposing that client device 2 need to be watched the TV programme of Set Top Box/audio-video frequency media, client device 2 provides menu, and send corresponding Transmission Control Protocol data to server 1, in above-mentioned Transmission Control Protocol data, provide identification request to play the sign of TV programme/audio-video frequency media, resolve and differentiate for server 1 operation that will carry out, when server 1 is resolved to the Transmission Control Protocol data, be while asking the broadcasting TV programme, call corresponding functional module, first by the TV program list relevant information had above Set Top Box, send to client device 2, client device 2 is resolved and is shown, client device 2 is selected the program that will play, then the information of this program is sent to server 1, server 1 goes out the audio, video data of respective program again according to these information analysis, and send to the RTSP multimedia server on Set Top Box, now, client device 2 can be play TV programme/audio-video frequency media by the audio frequency and video OPADD of RTSP multimedia server, realized broadcasting and the control of TV programme/audio-video frequency media at client device 2.
The multi-screen control system of the embodiment of the present invention, using and have mature T CP/UDP agreement now as standard, mutual identification, connection and virtual key by server and client side's equipment room, can realize simply and easily the multi-screen interactive control between Intelligent set top box and other Intelligent mobile equipments, can improve significantly the compatibility between Intelligent set top box and other Intelligent mobile equipments simultaneously.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, program wherein can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
Above a kind of multi-screen control method provided by the present invention and system are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a multi-screen control method, is characterized in that, comprising:
S1: carry out the mutual identification of server and client side's equipment room;
S2: if described mutual identification successfully, execution step S3, otherwise execution step S5;
S3: set up described server and be connected with the TCP between described client device;
S4: the control model of described server is matched to described client device, makes the virtual key on described client device corresponding with the physical control button of described server;
S5: refuse the control connection between described server and described client device.
2. multi-screen control method according to claim 1, is characterized in that,
Described server is the Intelligent set top box based on Android operating system band network function;
Described client device is the Android smart machine with network function.
3. multi-screen control method according to claim 1, is characterized in that, described step S1 comprises:
S11: the message of the default communication port of Fu Wuqi client device listen also sends default form UDP message message by described default communication port to the described server of described Ke Huduanshebei;
S12: when the described client device of described Fu Wuqi receives the described default form UDP message message from described default communication port, described default form UDP message message is resolved, obtain analysis result;
S13: described server described client device judge respectively whether analysis result meets access conditions, if described server and described client device are met the judged result of access conditions simultaneously, judge and mutually identify successfully, otherwise judge mutual recognition failures.
4. multi-screen control method according to claim 3, is characterized in that,
Described default form UDP message message comprises five fields, and wherein the first field means the type of UDP datagram literary composition carrier, and the second field is decollator, the IP address that the 3rd field is described carrier, and the 4th field is decollator, the 5th field is the coupling authorization information.
5. a multi-screen control method, is characterized in that, comprising:
S1: the message of server preset monitored communication port also sends default form UDP message message by described default communication port to client device;
S2: when described server receives the default form UDP message message from described default communication port, described default form UDP message message is resolved, obtain analysis result;
S3: described server judges whether described analysis result meets the server end condition of contact, if execution step S4, otherwise refuse described client device access;
S4: described server sends to set up to described client device and carries out the solicited message that multi-screen is controlled required TCP connection;
S5: described client device checks whether the machine exists the IP of described server in the identification equipment list, if connect, otherwise execution step S6;
S6: described client device is resolved and is judged whether to meet the client condition of contact to default form UDP message message in described server, if the IP address obtained according to the described default form UDP message message of parsing connects and performs step S7, otherwise returns to the failure that connects;
S7: described server is matched to described client device by the machine control model, makes the virtual key on described client device corresponding with the physical control button of described server.
6. multi-screen control method according to claim 5, is characterized in that,
The list of described identification equipment comprises current identification equipment list and historical recognized list;
Described front identification equipment list and described historical recognized list are distinguished by different signs.
7. a multi-screen control method, is characterized in that, comprising:
S1: the message of the default communication port of client device listen also sends default form UDP message message by described default communication port to server;
S2: when described client device receives the default form UDP message message from described default communication port, described default form UDP message message is resolved, obtain analysis result;
S3: described client device judges whether described analysis result meets the client device condition of contact, if execution step S4, otherwise refuse described server access;
S4: described client device sends to set up to described server and carries out the solicited message that multi-screen is controlled required TCP connection;
S5: described server checks whether the machine exists the IP of described client device in the identification equipment list, if connect, otherwise execution step S6;
S6: described server is resolved and is judged whether to meet the server condition of contact to default form UDP message message in described client device, if the IP address obtained according to the described default form UDP message message of parsing connects and performs step S7, otherwise returns to the failure that connects;
S7: described client device obtains the control model of described server and described control model is mapped to the virtual key on described client device, makes described virtual key corresponding with the physical control button of described server.
8. a multi-screen control system, is characterized in that, comprising: server and client side's equipment;
Described server comprises:
First monitors sending module, for the message of preset monitored communication port, also by described default communication port, to the client device transmission, presets form UDP message message;
The first parsing module, during for the default form UDP message message when receiving from described default communication port, resolved described default form UDP message message, obtains analysis result;
Whether the first judge module, meet the server end condition of contact for judging described analysis result;
The first sending module, carry out for sending to described client device to set up the solicited message that multi-screen is controlled required TCP connection;
The first processing module, for when there is not the IP of described server in the list of identification equipment of described client device, default form UDP message message in described server is resolved and is judged whether to meet the client condition of contact, and according to resolving the IP address that described default form UDP message message obtains, connect when meeting the client condition of contact, return to the failure that connects when not meeting the client condition of contact;
The first matching module, for the machine control model is matched to described client device, make the virtual key on described client device corresponding with the physical control button of described server;
Described client device comprises:
Second monitors sending module, for the message of preset monitored communication port, also by described default communication port, to the server transmission, presets form UDP message message;
The second parsing module, during for the default form UDP message message when receiving from described default communication port, resolved described default form UDP message message, obtains analysis result;
Whether the second judge module, meet the client device condition of contact for judging described analysis result;
The second sending module, carry out for sending to described server to set up the solicited message that multi-screen is controlled required TCP connection;
The second processing module, for when there is not the IP of described client device in the list of identification equipment of described server, default form UDP message message in described client device is resolved and is judged whether to meet the server condition of contact, and according to resolving the IP address that described default form UDP message message obtains, connect when meeting the server condition of contact, return to the failure that connects when not meeting the server condition of contact;
Mapping block, for the control model of obtaining described server and described control model is mapped to the virtual key on described client device, make described virtual key corresponding with the physical control button of described server.
9. multi-screen control method according to claim 8, is characterized in that,
Described server is the Intelligent set top box based on Android operating system band network function.
10. multi-screen control method according to claim 8, is characterized in that,
Described client device is with the Android smart mobile phone of network function or Android panel computer.
CN201310436835.7A 2013-09-23 2013-09-23 Multi-screen control method and device Active CN103475907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310436835.7A CN103475907B (en) 2013-09-23 2013-09-23 Multi-screen control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310436835.7A CN103475907B (en) 2013-09-23 2013-09-23 Multi-screen control method and device

Publications (2)

Publication Number Publication Date
CN103475907A true CN103475907A (en) 2013-12-25
CN103475907B CN103475907B (en) 2017-01-25

Family

ID=49800584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310436835.7A Active CN103475907B (en) 2013-09-23 2013-09-23 Multi-screen control method and device

Country Status (1)

Country Link
CN (1) CN103475907B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873472A (en) * 2014-03-18 2014-06-18 广州市纬志电子科技有限公司 Method for automatically having access to network
CN104618802A (en) * 2015-02-03 2015-05-13 深圳市米家互动网络有限公司 Mobile terminal, network set-top box based on Android and system recovery method thereof
CN104935571A (en) * 2015-04-22 2015-09-23 深圳橙子游戏科技有限公司 Interaction method of TV game server and client
CN105611362A (en) * 2016-02-18 2016-05-25 四川长虹电器股份有限公司 Method for controlling set top box through intelligent terminal
CN105850148A (en) * 2013-12-26 2016-08-10 精工爱普生株式会社 Video transmission and display system
CN107211046A (en) * 2015-02-03 2017-09-26 谷歌公司 The interoperability of discovery and connection protocol between client device and the first screen equipment
CN107809663A (en) * 2017-11-06 2018-03-16 深圳创维-Rgb电子有限公司 Miracast serving starting methods, intelligent television and storage medium
CN109302634A (en) * 2018-11-27 2019-02-01 玲珑视界科技(北京)有限公司 A kind of public network Intranet interaction mechanism adaptive approach and system
CN110446065A (en) * 2019-08-02 2019-11-12 腾讯科技(武汉)有限公司 A kind of video recalls method, apparatus and storage medium
CN114679504A (en) * 2022-05-27 2022-06-28 成都数联云算科技有限公司 UDP message parsing method and device and computer equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523925A (en) * 2003-02-20 2004-08-25 �ձ�������ʽ���� Remote-control system including mobile radio-signal terminal
CN1929525A (en) * 2006-09-25 2007-03-14 深圳市杰特电信控股有限公司 Remote electric apparatus control method through mobile phone
KR20080010862A (en) * 2006-07-28 2008-01-31 한국전자통신연구원 Telephone connecting method usign set-top box and apparatus for thereof
CN201887835U (en) * 2010-10-22 2011-06-29 中国华录集团有限公司 System capable of controlling household appliances by utilizing intelligent mobile phone
CN102438090A (en) * 2011-11-01 2012-05-02 广东九联科技股份有限公司 Method for realizing remote control of set-top box by mobile phone
CN102882920A (en) * 2012-06-25 2013-01-16 深圳市同洲电子股份有限公司 Digital television system control method, system and related equipment
CN103024525A (en) * 2012-12-27 2013-04-03 深圳市茁壮网络股份有限公司 Set-top box and method of controlling the same by mobile terminal
CN202957939U (en) * 2012-08-28 2013-05-29 杭州路享科技有限公司 System using set top box to manage business condition information
CN103297586A (en) * 2012-02-23 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and remote control method
CN103313140A (en) * 2012-03-07 2013-09-18 深圳市快播科技有限公司 Television receiving terminal, text information input method and system thereof and mobile terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523925A (en) * 2003-02-20 2004-08-25 �ձ�������ʽ���� Remote-control system including mobile radio-signal terminal
KR20080010862A (en) * 2006-07-28 2008-01-31 한국전자통신연구원 Telephone connecting method usign set-top box and apparatus for thereof
CN1929525A (en) * 2006-09-25 2007-03-14 深圳市杰特电信控股有限公司 Remote electric apparatus control method through mobile phone
CN201887835U (en) * 2010-10-22 2011-06-29 中国华录集团有限公司 System capable of controlling household appliances by utilizing intelligent mobile phone
CN102438090A (en) * 2011-11-01 2012-05-02 广东九联科技股份有限公司 Method for realizing remote control of set-top box by mobile phone
CN103297586A (en) * 2012-02-23 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and remote control method
CN103313140A (en) * 2012-03-07 2013-09-18 深圳市快播科技有限公司 Television receiving terminal, text information input method and system thereof and mobile terminal
CN102882920A (en) * 2012-06-25 2013-01-16 深圳市同洲电子股份有限公司 Digital television system control method, system and related equipment
CN202957939U (en) * 2012-08-28 2013-05-29 杭州路享科技有限公司 System using set top box to manage business condition information
CN103024525A (en) * 2012-12-27 2013-04-03 深圳市茁壮网络股份有限公司 Set-top box and method of controlling the same by mobile terminal

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105850148B (en) * 2013-12-26 2019-04-02 精工爱普生株式会社 Video display system and connection method
CN105850148A (en) * 2013-12-26 2016-08-10 精工爱普生株式会社 Video transmission and display system
CN103873472A (en) * 2014-03-18 2014-06-18 广州市纬志电子科技有限公司 Method for automatically having access to network
CN104618802A (en) * 2015-02-03 2015-05-13 深圳市米家互动网络有限公司 Mobile terminal, network set-top box based on Android and system recovery method thereof
CN107211046A (en) * 2015-02-03 2017-09-26 谷歌公司 The interoperability of discovery and connection protocol between client device and the first screen equipment
US10771592B2 (en) 2015-02-03 2020-09-08 Google Llc Interoperability of discovery and connection protocols between client devices and first screen devices
CN107211046B (en) * 2015-02-03 2020-08-11 谷歌有限责任公司 Method, device and computer readable storage medium for facilitating interoperability between a first screen device and a client device
CN104935571A (en) * 2015-04-22 2015-09-23 深圳橙子游戏科技有限公司 Interaction method of TV game server and client
CN104935571B (en) * 2015-04-22 2018-11-23 深圳橙子互动股份有限公司 A kind of exchange method of video game server-side and client
CN105611362A (en) * 2016-02-18 2016-05-25 四川长虹电器股份有限公司 Method for controlling set top box through intelligent terminal
CN107809663A (en) * 2017-11-06 2018-03-16 深圳创维-Rgb电子有限公司 Miracast serving starting methods, intelligent television and storage medium
CN109302634A (en) * 2018-11-27 2019-02-01 玲珑视界科技(北京)有限公司 A kind of public network Intranet interaction mechanism adaptive approach and system
CN110446065A (en) * 2019-08-02 2019-11-12 腾讯科技(武汉)有限公司 A kind of video recalls method, apparatus and storage medium
CN114679504A (en) * 2022-05-27 2022-06-28 成都数联云算科技有限公司 UDP message parsing method and device and computer equipment

Also Published As

Publication number Publication date
CN103475907B (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN103475907A (en) Multi-screen control method and device
KR100782503B1 (en) Method And System For Transforming Contents of Broadcasting in DLNA Network
CN102484596B (en) Method and apparatus for controlling remote user interface in a home network
CN102932423B (en) A kind of control method limited in region and equipment
EP2963933A1 (en) Remote control processing method, apparatus and system
CN102713814A (en) Apparatus for controlling multimedia device and method for providing graphic user interface
CN109104416B (en) Multi-device cooperation cloud service platform based on PON (Passive optical network) local area network
US20170171496A1 (en) Method and Electronic Device for Screen Projection
CN103516418B (en) A kind of multimedia interaction communication system, method and the equipment of reception
CN113741762A (en) Multimedia playing method, device, electronic equipment and storage medium
CN107948568A (en) Realize the method and device of wired biography screen
CN107948567A (en) The method and device of the wired biography screens of USB
CN107948566A (en) Realize that plug and play passes the method and device of screen
CN111988660A (en) DLNA equipment screen projection method, gateway, terminal and system
CN105763898A (en) Method and system for controlling IPTV set-top box by voice
CN107197077B (en) Method, device and system for communication between devices
US20160285949A1 (en) Wireless login-based remote control method and device
CN101304349A (en) Method and apparatus for implementing remote white plate
CN114666097B (en) Communication method and system of Internet of things equipment
CN108235111B (en) Information sharing method and intelligent set top box
CN109510743B (en) Rapid clustering method for intelligent sound box system
CN103684992A (en) Home gateway, terminal and data sharing method
CN103685303A (en) Method and system for processing connection content delivery network
CN102611759A (en) Internet of things (IOT) household appliance management system and IOT household appliance management method
US10079728B2 (en) System and method for discovery of devices on a network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 519000 Guangdong city of Zhuhai province Hongqi Town Jinwan District Zhuhai Yongda Road No. 66 No. 2 building

Applicant after: ZHUHAI MAIKE INTELLIGENT TECHNOLOGY CO., LTD.

Address before: 519000 Guangdong city in Zhuhai Province town of Red Bay Area Yongda Road No. 66 No. 2 building

Applicant before: Zhuhai Gotech Electronic Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: ZHUHAI GOTECH ELECTRONIC TECHNOLOGY CO., LTD. TO: ZHUHAI MAIKE INTELLIGENT TECHNOLOGY CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant