CN103475907B - Multi-screen control method and device - Google Patents
Multi-screen control method and device Download PDFInfo
- Publication number
- CN103475907B CN103475907B CN201310436835.7A CN201310436835A CN103475907B CN 103475907 B CN103475907 B CN 103475907B CN 201310436835 A CN201310436835 A CN 201310436835A CN 103475907 B CN103475907 B CN 103475907B
- Authority
- CN
- China
- Prior art keywords
- server
- client device
- data message
- udp data
- preset format
- 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.)
- Active
Links
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
Technical field
The present embodiments relate to field of intelligent control is and in particular to a kind of multi-screen control method and system.
Background technology
Popular with android intelligence system and Intelligent mobile equipment, a lot of invent and innovate, all to this direction
Draw close, Set Top Box industry is no exception, the appearance of android Set Top Box seems naturally, but how in Intelligent set top box
Realize interactive control and other Intelligent mobile equipments between, and provide more friendly convenient Consumer's Experience, to each practitioner
For be all one challenge and chance.
Also there is no a set of really complete, ripe and standard the scheme realizing multi-screen control in the market, more only
Each producer is self-ordained to realize certain simple function, and such as media portion controls shared relevant criterion, and relevant criterion is such as
Dlna (digital living network alliance), airplay or miracast etc..
Yet with incompatible between each standard, and it is not widely used, therefore can not be formed complete
Unified standard scheme.The process of the standard implementation multi-screen control simultaneously being differed greatly according to these is considerably complicated, cost compares
High, compatibility is poor.It is not specifically designed for the scheme of Set Top Box correlation technique at present simultaneously yet.
Content of the invention
Embodiments provide a kind of multi-screen control method and system, using existing maturation tcp/udp agreement as mark
Standard, the multi-screen interactive that can simply and easily realize between Intelligent set top box and other Intelligent mobile equipments controls, simultaneously permissible
Significantly improve the compatibility between Intelligent set top box and other Intelligent mobile equipments.
Multi-screen control method provided in an embodiment of the present invention, comprising:
S1: being mutually distinguishable between execute server and client device;
S2: if described be mutually distinguishable successfully, execution step s3, otherwise execution step s5;
S3: the tcp setting up between described server and described client device connects;
S4: the control model of described server is matched to described client device so that on described client device
Virtual key is corresponding with the physical control button of described server;
S5: the control refused between described server and described client device connects.
Alternatively,
Described server is based on the Intelligent set top box with network function for the android operating system;
Described client device is the android smart machine with network function.
Alternatively,
Described step s1 includes:
S11: server client device preset monitored COM1 message and by described default COM1 to institute
State client device described in server send preset format udp data message;
S12: when described server described in client device receive the described default lattice from described default COM1
During formula udp data message, described preset format udp data message is parsed, obtains analysis result;
S13: described server described in client device judge whether analysis result meets access conditions respectively, if described
Server and described client device are met the judged result of access conditions simultaneously, then judge to be mutually distinguishable successfully, otherwise
Judge to be mutually distinguishable failure.
Alternatively,
Described preset format udp data message includes five fields, and the wherein first field represents udp data message carrier
Type, the second field is decollator, and the 3rd field is the ip address of described carrier, and the 4th field is decollator, and the 5th field is
Coupling checking information.
Multi-screen control method provided in an embodiment of the present invention, comprising:
S1: the message of server preset monitored COM1 is simultaneously sent to client device by described default COM1
Preset format udp data message;
S2: when described server receives from the preset format udp data message of described default COM1, to institute
State preset format udp data message to be parsed, obtain analysis result;
S3: described server judges whether described analysis result meets server end condition of contact, if execution step s4,
Otherwise refuse described client device to access;
S4: described server sends to described client device sets up the request letter carrying out that tcp needed for multi-screen control connects
Breath;
S5: described client device checks that the machine has identified the ip in list of devices with the presence or absence of described server, if
Set up and connect, otherwise execution step s6;
S6: described client device is parsed and is judged whether to preset format udp data message in described server
Meet client condition of contact, if set up according to the ip address that the described preset format udp data message of parsing obtains connecting simultaneously
Execution step s7, otherwise returns the message setting up connection failure;
The machine control model is matched to described client device so that on described client device by s7: described server
Virtual key corresponding with the physical control button of described server.
Alternatively,
Described identify that list of devices includes currently identifying list of devices and history recognized list;
Described front identification list of devices and described history recognized list are made a distinction by different marks.
Multi-screen control method provided in an embodiment of the present invention, comprising:
S1: the message of client device preset monitored COM1 is simultaneously sent to server by described default COM1
Preset format udp data message;
S2: when described client device receives from the preset format udp data message of described default COM1,
Described preset format udp data message is parsed, obtains analysis result;
S3: described client device judges whether described analysis result meets client device condition of contact, if being carried out
Step s4, otherwise refuses described server and accesses;
S4: described client device sends to described server sets up the request letter carrying out that tcp needed for multi-screen control connects
Breath;
S5: described server checks that the machine has identified the ip in list of devices with the presence or absence of described client device, if
Set up and connect, otherwise execution step s6;
S6: described server is parsed and is judged whether to preset format udp data message in described client device
Meet server condition of contact, if set up according to the ip address that the described preset format udp data message of parsing obtains connecting simultaneously
Execution step s7, otherwise returns the message setting up connection failure;
S7: described client device obtains the control model of described server and described control model is mapped to described visitor
Virtual key in the end equipment of family is so that described virtual key is corresponding with the physical control button of described server.
Multi-screen control system provided in an embodiment of the present invention, comprising: server and client side's equipment;
Described server includes:
First monitoring sending module, the message for preset monitored COM1 simultaneously passes through described default COM1 to visitor
Family end equipment sends preset format udp data message;
First parsing module, for when receiving from the preset format udp data message of described default COM1,
Described preset format udp data message is parsed, obtains analysis result;
First judge module, for judging whether described analysis result meets server end condition of contact;
First sending module, carries out asking of tcp connection needed for multi-screen control for sending to described client device to set up
Seek information;
, for there is not described server in list of devices when identifying of described client device in first processing module
During ip, preset format udp data message in described server is parsed and is judged whether to meet client condition of contact, and
Set up according to the ip address that the described preset format udp data message of parsing obtains when meeting client condition of contact and connect, when
Do not meet and during client condition of contact, return the message setting up connection failure;
First matching module, for being matched to described client device so that described client sets by the machine control model
Standby upper virtual key is corresponding with the physical control button of described server;
Described client device includes:
Second monitoring sending module, the message for preset monitored COM1 simultaneously passes through described default COM1 to clothes
Business device sends preset format udp data message;
Second parsing module, for when receiving from the preset format udp data message of described default COM1,
Described preset format udp data message is parsed, obtains analysis result;
Second judge module, for judging whether described analysis result meets client device condition of contact;
Second sending module, sets up, for sending to described server, the request letter carrying out that tcp needed for multi-screen control connects
Breath;
, for there is not described client device in list of devices when identifying of described server in Second processing module
During ip, preset format udp data message in described client device is parsed and is judged whether to meet server connection strap
Part, and set up even according to the ip address that the described preset format udp data message of parsing obtains when meeting server condition of contact
Connect, return the message setting up connection failure when not meeting server condition of contact;
Mapping block, for obtaining the control model of described server and described control model being mapped to described client
Virtual key on equipment is so that described virtual key is corresponding with the physical control button of described server.
Alternatively,
Described server is based on the Intelligent set top box with network function for the android operating system.
Alternatively,
Described client device is the android smart phone with network function or android panel computer.
In the embodiment of the present invention, being mutually distinguishable of server and client side equipment room is first carried out;If described be mutually distinguishable
Success, the tcp setting up between described server and described client device connects, and the control model of described server is matched to
Described client device is so that the virtual key on described client device is relative with the physical control button of described server
Should;If described be mutually distinguishable failure, the control refused between described server and described client device connects.Because the present invention is real
Apply multi-screen control method and the system of example, using existing maturation tcp/udp agreement as standard, by server and client side's equipment
Between be mutually distinguishable, connect and virtual key, can simply and easily realize Intelligent set top box and other Intelligent mobile equipments
Between multi-screen interactive control, can significantly improve compatible between Intelligent set top box and other Intelligent mobile equipments simultaneously
Property.
Brief description
Fig. 1 is multi-screen control method first embodiment flow chart in the embodiment of the present invention;
Fig. 2 is multi-screen control method second embodiment flow chart in the embodiment of the present invention;
Fig. 3 is multi-screen control method 3rd embodiment flow chart in the embodiment of the present invention;
Fig. 4 is multi-screen control method fourth 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.
Specific embodiment
Embodiments provide a kind of multi-screen control method and system, using existing maturation tcp/udp agreement as mark
Standard, the multi-screen interactive that can simply and easily realize between Intelligent set top box and other Intelligent mobile equipments controls, simultaneously permissible
Significantly improve the compatibility between Intelligent set top box and other Intelligent mobile equipments.
Refer to Fig. 1, in the embodiment of the present invention, the first embodiment of multi-screen control method includes:
101st, being mutually distinguishable between execute server and client device;
Automatically it is mutually distinguishable between server and client side's equipment, including the identity to server and client side's equipment
The identification of ability.For server, above-mentioned identity ability represents whether this server possesses becomes multi-screen control server
Ability;For client device, above-mentioned identity ability represents whether this client device possesses becomes multi-screen control client
The ability of equipment.
If 102 are mutually distinguishable successfully, execution step 103, otherwise execution step 105;
If server and client side's equipment is mutually distinguishable successfully, that is, server and client side's equipment confirms other side respectively
Identity ability, execution step 103, otherwise execution step 105.
103rd, the tcp setting up server and client side's equipment room connects;
After determining that server and client side's equipment is mutually distinguishable successfully, server and client side's equipment room can be set up
Tcp connects.Above-mentioned tcp connects through the ip address obtaining other side and sets up, and above-mentioned ip address can be in execute server
Obtain during being mutually distinguishable and between client device.
104th, the control model of server is matched to client device so that the virtual key on client device and clothes
The physical control button of business device is corresponding;
The tcp setting up server and client side's equipment room connects, and the control model of server can be matched to client
Equipment is so that the virtual key on client device is corresponding with the physical control button of server.
105th, the control of refusal server and client side's equipment room connects.
After determining that server and client side's equipment is mutually distinguishable unsuccessfully, the control of refusal server and client side's equipment room is even
Connect, can also send, to both sides, the result controlling connection failure.
In the embodiment of the present invention, being mutually distinguishable of server and client side equipment room is first carried out;If being mutually distinguishable successfully,
Set up server and client side's equipment room tcp connect, and the control model of server is matched to client device so that visitor
Virtual key in the end equipment of family is corresponding with the physical control button of server;If being mutually distinguishable failure, refusal server and
Control between client device connects.Due to the multi-screen control method of the embodiment of the present invention, made with existing maturation tcp/udp agreement
For standard, being mutually distinguishable, connecting and virtual key by server and client side's equipment room, can simply and easily realize
Multi-screen interactive between Intelligent set top box and other Intelligent mobile equipments controls, can significantly improve simultaneously Intelligent set top box with
Compatibility between other Intelligent mobile equipments.
The first embodiment of of the present invention multi-screen control method is as briefly described above, below to multi-screen control method of the present invention
Second embodiment be described in detail, refer to Fig. 2, multi-screen control method second embodiment bag in the embodiment of the present invention
Include:
201st, being mutually distinguishable between execute server and client device;
Automatically it is mutually distinguishable between server and client side's equipment, including the identity to server and client side's equipment
The identification of ability.For server, above-mentioned identity ability represents whether this server possesses becomes multi-screen control server
Ability;For client device, above-mentioned identity ability represents whether this client device possesses becomes multi-screen control client
The ability of equipment.Above-mentioned server can be based on the Intelligent set top box with network function for the android operating system;Above-mentioned
Client device can be the android smart machine with network function.
The detailed process being mutually distinguishable of server and client side's equipment room may include that server client device prison
Listen default COM1 message and by default COM1 to client device server send preset format udp data
Message;When server client device receive from the preset format udp data message of default COM1 when, to default
Form udp data message is parsed, and obtains analysis result;Server client device judge that analysis result is whether full respectively
Sufficient access conditions, if server and client side's equipment is met the judged result of access conditions simultaneously, judges to be mutually distinguishable
Success, otherwise judges to be mutually distinguishable failure.The message of above-mentioned server preset monitored COM1 can be by self-starting of starting shooting
Service program realize.
Above-mentioned preset format udp data message can include five fields, and the wherein first field represents that udp data message carries
The type of body, the second field is decollator, and the 3rd field is the ip address of carrier, and the 4th field is decollator, and the 5th field is
Coupling checking information, the decollator of the wherein second field and the 4th field can be any spcial character, be mainly used in distinguishing it
Its field character.When the udp data message that preset format udp data message is above-mentioned five fields of inclusion, above-mentioned judgement solution
Analysis result whether meet access conditions detailed process may include that first server client device identify the first field, the
What one field characterized is the identity ability of sender, can determine whether sender meets access bar by the identification of the first field
Part, determines after meeting access conditions, can obtain setting up the ip address that tcp connects needs by identifying the 3rd field, pass through
When ip address is attached, can pass through further to identify that the 5th field is verified again, to ensure the safety and precise connecting.
It should be noted that the form of preset format udp data message be not limited to above-mentioned comprise five fields, but can
To need to carry out additions and deletions according to function on the basis of comprising the first field and the 3rd field, do not limit herein.
If 202 are mutually distinguishable successfully, execution step 203, otherwise execution step 205;
If server and client side's equipment is mutually distinguishable successfully, that is, server and client side's equipment confirms other side respectively
Identity ability, execution step 203, otherwise execution step 205.
203rd, the tcp setting up server and client side's equipment room connects;
After determining that server and client side's equipment is mutually distinguishable successfully, server and client side's equipment room can be set up
Tcp connects.Above-mentioned tcp connects through the ip address obtaining other side and sets up, and above-mentioned ip address can be in execute server
Obtain during being mutually distinguishable and between client device.
204th, 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 visitor
Family end equipment is so that the virtual key on client device is corresponding with the physical control button of server.
205th, the control of refusal server and client side's equipment room connects.
After determining that server and client side's equipment is mutually distinguishable unsuccessfully, the control of refusal server and client side's equipment room is even
Connect, can also send, to both sides, the result controlling connection failure.
In the embodiment of the present invention, being mutually distinguishable of server and client side equipment room is first carried out;If being mutually distinguishable successfully,
Set up server and client side's equipment room tcp connect, and the control model of server is matched to client device so that visitor
Virtual key in the end equipment of family is corresponding with the physical control button of server;If being mutually distinguishable failure, refusal server and
Control between client device connects.Due to the multi-screen control method of the embodiment of the present invention, made with existing maturation tcp/udp agreement
For standard, being mutually distinguishable, connecting and virtual key by server and client side's equipment room, can simply and easily realize
Multi-screen interactive between Intelligent set top box and other Intelligent mobile equipments controls, can significantly improve simultaneously Intelligent set top box with
Compatibility between other Intelligent mobile equipments.
Above the second embodiment of multi-screen control method of the present invention is described in detail, particularly server and client side
The process that equipment room is mutually distinguishable, is described below the 3rd embodiment of multi-screen control method of the present invention, refers to Fig. 3, the present invention
The 3rd embodiment of multi-screen control method includes:
301st, the message of server preset monitored COM1 sent pre- by default COM1 to client device
If form udp data message;
Server can by the message of the service program preset monitored COM1 of self-starting of starting shooting, and pass through pre-
If COM1 sends preset format udp data message to client device.
302nd, when server receives from the preset format udp data message of default COM1, to preset format
Udp data message is parsed, and obtains analysis result;
Server receives after the preset format udp data message of default COM1, can be to preset format udp
Data message is parsed, and obtains corresponding analysis result.Above-mentioned analysis result can comprise each word in udp data message
Section content and corresponding implication are explained.
303rd, server judges whether analysis result meets server end condition of contact, if execution step 304, otherwise refuses
Client device accesses absolutely;
After obtaining explanation results, server judges whether analysis result meets server end condition of contact, if being carried out
Step 304, otherwise refusal client device access.
304th, server sends to client device and sets up the solicited message carrying out that tcp needed for multi-screen control connects;
After server determines that client device meets server end condition of contact, server and client side's equipment can be set up
Between tcp connect.Above-mentioned tcp connects through and obtains the ip address of client device and set up, and above-mentioned ip address can be
Server parsing obtains during the preset format udp data message of default COM1.
305th, client device checks that the machine has identified the ip in list of devices with the presence or absence of server, if the company of foundation
Connect, otherwise execution step 306;
After client device receives the connection request of server transmission, can check that the machine has identified in list of devices
With the presence or absence of the ip of server, if set up connecting, otherwise execution step 306.Above-mentioned identify that list of devices includes currently knowing
Other list of devices and history recognized list;Above-mentioned front identification list of devices and history recognized list carry out area by different marks
Point.
306th, client device is parsed and is judged whether to meet client to preset format udp data message in server
End condition of contact, if set up according to the ip address that parsing preset format udp data message obtains connecting and execution step 307,
Otherwise return the message setting up connection failure;
Client device checks the machine to identify in list of devices does not have the ip of presence server, to lattice default in server
Formula udp data message is parsed and is judged whether to meet client condition of contact, if according to parsing preset format udp data
The ip address that message obtains is set up and is connected and execution step 307, otherwise returns the message setting up connection failure.
307th, server the machine control model is matched to client device so that virtual key on client device with
The physical control button of server is corresponding.
After client device determines that server is met client condition of contact and is connected with server, server can be by this
Machine control model is matched to client device so that the physical control button phase of virtual key on client device and server
Corresponding.
The multi-screen control method of the embodiment of the present invention, using existing maturation tcp/udp agreement as standard, by server and
Being mutually distinguishable, connecting and virtual key between client device, can simply and easily realize Intelligent set top box and other intelligence
Can the multi-screen interactive between mobile device control, can significantly improve simultaneously Intelligent set top box and other Intelligent mobile equipments it
Between compatibility.
Above the 3rd embodiment of multi-screen control method of the present invention is described in detail, of the present invention multi-screen control is described below
The fourth embodiment of method processed, refers to Fig. 4, and the fourth embodiment of multi-screen control method of the present invention includes:
401st, the message of client device preset monitored COM1 sent pre- by default COM1 to server
If form udp data message;
Client device by the message of the service program preset monitored COM1 of self-starting of starting shooting, and can lead to
Cross default COM1 and send preset format udp data message to server.
402nd, when client device receives from the preset format udp data message of default COM1, to default
Form udp data message is parsed, and obtains analysis result;
Client device receives after the preset format udp data message of default COM1, can be to default lattice
Formula udp data message is parsed, and obtains corresponding analysis result.Above-mentioned analysis result can comprise udp data message
Interior each byte content and corresponding implication are explained.
403rd, client device judges whether analysis result meets client device condition of contact, if execution step 404,
Otherwise refusal server accesses;
After obtaining explanation results, client device judges whether analysis result meets client device condition of contact, if
It is carried out step 404, otherwise refusal server accesses.
404th, client device sends to server and sets up the solicited message carrying out that tcp needed for multi-screen control connects;
After client device determines that server meets client device condition of contact, client device and service can be set up
Tcp between device connects.Above-mentioned tcp connects through the ip address obtaining server and sets up, and above-mentioned ip address can be in visitor
Family end equipment parsing obtains during the preset format udp data message of default COM1.
405th, server checks that the machine has identified the ip in list of devices with the presence or absence of client device, if the company of foundation
Connect, otherwise execution step 406;
After server receives the connection request of client device transmission, can check that the machine has identified in list of devices
With the presence or absence of the ip of server, if set up connecting, otherwise execution step 406.Above-mentioned identify that list of devices includes currently knowing
Other list of devices and history recognized list;Above-mentioned front identification list of devices and history recognized list carry out area by different marks
Point.
406th, server is parsed to preset format udp data message in client device and is judged whether to meet service
Device condition of contact, if set up according to the ip address that parsing preset format udp data message obtains connecting and execution step 407,
Otherwise return the message setting up connection failure;
Server checks the machine to identify in list of devices does not have the ip of presence server, to preset format in server
Udp data message is parsed and is judged whether to meet client condition of contact, if according to parsing preset format udp datagram
The ip address that literary composition obtains is set up and is connected and execution step 307, otherwise returns the message setting up connection failure.
407th, client device obtains the control model of server and control model maps to the void on client device
Intend button so that virtual key is corresponding with the physical control button of server.
After server determines that client device is met server condition of contact and is connected with client device, client sets
The standby control model obtaining server and control model is mapped to virtual key on client device so that virtual key with
The physical control button of server is corresponding.
The multi-screen control method of the embodiment of the present invention, using existing maturation tcp/udp agreement as standard, by server and
Being mutually distinguishable, connecting and virtual key between client device, can simply and easily realize Intelligent set top box and other intelligence
Can the multi-screen interactive between mobile device control, can significantly improve simultaneously Intelligent set top box and other Intelligent mobile equipments it
Between compatibility.
Above the fourth embodiment of multi-screen control method of the present invention is described in detail, of the present invention multi-screen control is described below
System embodiment processed, refers to Fig. 5, and multi-screen control system embodiment of the present invention includes: server 1 and client device 2;
Server 1 includes:
First monitoring sending module 11, the message for preset monitored COM1 and by default COM1 to client
End equipment sends preset format udp data message;
First parsing module 12, for when receiving from the preset format udp data message of default COM1, right
Preset format udp data message is parsed, and obtains analysis result;
First judge module 13, for judging whether analysis result meets server end condition of contact;
First sending module 14, sets up, for sending to client device, the request carrying out that tcp needed for multi-screen control connects
Information;
First processing module 15, for when client device is when identifying the not ip of presence server in list of devices,
Preset format udp data message in server is parsed and is judged whether to meet client condition of contact, and objective when meeting
Set up according to the ip address that obtains of parsing preset format udp data message during the condition of contact of family end and connect, when not meeting client
The message setting up connection failure is returned during condition of contact;
First matching module 16, for being matched to client device by the machine control model so that on client device
Virtual key is corresponding with the physical control button of server;
Client device 2 includes:
Second monitoring sending module 21, the message for preset monitored COM1 and by default COM1 to service
Device sends preset format udp data message;
Second parsing module 22, for when receiving from the preset format udp data message of default COM1, right
Preset format udp data message is parsed, and obtains analysis result;
Second judge module 23, for judging whether analysis result meets client device condition of contact;
Second sending module 24, sets up, for sending to server, the solicited message carrying out that tcp needed for multi-screen control connects;
Second processing module 25, for when server is when identifying the ip that there is not client device in list of devices,
Preset format udp data message in client device is parsed and is judged whether to meet server condition of contact, and when full
Set up according to the ip address that obtains of parsing preset format udp data message during sufficient server condition of contact and connect, when not meeting clothes
Return, during business device condition of contact, the message setting up connection failure;
Mapping block 26, for obtaining the control model of server and control model mapping to the void on client device
Intend button so that virtual key is corresponding with the physical control button of server.
Automatically it is mutually distinguishable between server 1 and client device 2, including to server 1 and client device 2
The identification of identity ability.For server 1, above-mentioned identity ability represents whether this server 1 possesses becomes multi-screen control clothes
The ability of business device;For client device 2, above-mentioned identity ability represents whether this client device 2 possesses becomes multi-screen control
The ability of client device processed.
If server 1 and client device 2 are mutually distinguishable successfully, that is, server 1 and client device 2 confirm respectively
The identity ability of other side, the tcp that can set up between server 1 and client device 2 connects, then by the control mould of server 1
Formula is matched to client device 2 so that the virtual key on client device 2 is corresponding with the physical control button of server 1,
Otherwise the control between refusal server 1 and client device 2 connects, and can also send, to both sides, the result controlling connection failure.
Above-mentioned tcp connects through the ip address obtaining other side and sets up, and above-mentioned ip address can be in execute server 1 and client
Obtain during being mutually distinguishable between equipment 2.
With a specific application examples, the system of the embodiment of the present invention is described in detail below:
Server 1 and client device 2 are set up after connecting, after clicking on virtual key, on client device 2
The standard installation data bag form of apk(android system) keycode of corresponding button will be passed through just now to set up
Tcp link is sent to server 1, after server 1 receives data, will obtain corresponding keycode, then basis
The value of keycode, sends corresponding key-press event to Android platform, this process is provided by Android platform
Instrumentation interface is realized:
instrumentation inst=new instrumentation();
inst.sendkeydownupsync(keycode);
Sendkeydownupsync (int keycode) method of instrumentation interface, can simulate transmission one
Individual key assignments is that the button of keycode presses the event upspring to Android system, after Android system receives this event
Event will be given the application program being currently running to go to process, execute corresponding action, similarly be that physical remote control is pressed
The same, thus having reached the function by client control server end.
When assuming that client device 2 needs the TV programme/audio-video frequency media watching Set Top Box, client device 2 provides
Menu, and send corresponding tcp protocol data to server 1, provide identification request to play TV in above-mentioned tcp protocol data
The mark of program/audio-video frequency media, parses for server 1 and differentiates operation to be performed, when server 1 is resolved to tcp agreement
When data is that TV programme are play in request, then call corresponding functional module, the TV Festival first having had above Set Top Box
The related information of mesh list, is sent to client device 2, client device 2 parses and shown, client device 2 selects
Then the information of this program be sent to server 1 by program to be play, and server 1 goes out accordingly further according to these information analysis
The audio, video data of program, and it is sent to the rtsp multimedia server on Set Top Box, now, client device 2 can pass through
The audio frequency and video OPADD of rtsp multimedia server is playing TV programme/audio-video frequency media it is achieved that TV programme/sound regards
Frequency media are in the broadcasting of client device 2 and control.
The multi-screen control system of the embodiment of the present invention, using existing maturation tcp/udp agreement as standard, by server and
Being mutually distinguishable, connecting and virtual key between client device, can simply and easily realize Intelligent set top box and other intelligence
Can the multi-screen interactive between mobile device control, can significantly improve simultaneously Intelligent set top box and other Intelligent mobile equipments it
Between compatibility.
One of ordinary skill in the art will appreciate that it is permissible for realizing all or part of step in above-described embodiment method
The hardware being instructed correlation by program is completed, and program therein can be stored in a kind of computer-readable recording medium, on
Stating the storage medium mentioned 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 this area
Those skilled in the art, according to the thought of the embodiment of the present invention, all will change in specific embodiments and applications,
In sum, this specification content should not be construed as limitation of the present invention.
Claims (9)
1. a kind of multi-screen control method is it is characterised in that include:
S1: being mutually distinguishable between execute server and client device;
S2: if described be mutually distinguishable successfully, execution step s3, otherwise execution step s5;
S3: the tcp setting up between described server and described client device connects;
S4: the control model of described server is matched to described client device so that virtual on described client device
Button is corresponding with the physical control button of described server;
S5: the control refused between described server and described client device connects;
Wherein, described step s1 includes:
S11: server client device preset monitored COM1 message and by described default COM1 to described visitor
Family end equipment described in server send preset format udp data message;
S12: when described server described in client device receive the described preset format from described default COM1
During udp data message, described preset format udp data message is parsed, obtains analysis result;
S13: described server described in client device judge whether analysis result meets access conditions respectively, if described service
Device and described client device are met the judged result of access conditions simultaneously, then judge to be mutually distinguishable successfully, otherwise judge
It is mutually distinguishable failure.
2. multi-screen control method according to claim 1 it is characterised in that
Described server is based on the Intelligent set top box with network function for the android operating system;
Described client device is the android smart machine with network function.
3. multi-screen control method according to claim 1 it is characterised in that
Described preset format udp data message includes five fields, and the wherein first field represents the class of udp data message carrier
Type, the second field be decollator, the 3rd field is the ip address of described carrier, the 4th field be decollator, the 5th field be
Join checking information.
4. a kind of multi-screen control method is it is characterised in that include:
S1: the message of server preset monitored COM1 is simultaneously sent default by described default COM1 to client device
Form udp data message;
S2: when described server receives from the preset format udp data message of described default COM1, to described pre-
If form udp data message is parsed, obtain analysis result;
S3: described server judges whether described analysis result meets server end condition of contact, if execution step s4, otherwise
Refuse described client device to access;
S4: described server sends to described client device and sets up the solicited message carrying out that tcp needed for multi-screen control connects;
S5: described client device checks that the machine has identified the ip in list of devices with the presence or absence of described server, if setting up
Connect, otherwise execution step s6;
S6: described client device is parsed to preset format udp data message in described server and is judged whether to meet
Client condition of contact, if set up according to the ip address that the described preset format udp data message of parsing obtains and connecting and execute
Step s7, otherwise returns the message setting up connection failure;
The machine control model is matched to s7: described server described client device so that void on described client device
Intend button corresponding with the physical control button of described server.
5. multi-screen control method according to claim 4 it is characterised in that
Described identify that list of devices includes currently identifying list of devices and history recognized list;
Described current identification list of devices and described history recognized list are made a distinction by different marks.
6. a kind of multi-screen control method is it is characterised in that include:
S1: the message of client device preset monitored COM1 is simultaneously sent default by described default COM1 to server
Form udp data message;
S2: when described client device receives from the preset format udp data message of described default COM1, to institute
State preset format udp data message to be parsed, obtain analysis result;
S3: described client device judges whether described analysis result meets client device condition of contact, if execution step
S4, otherwise refuses described server and accesses;
S4: described client device sends to described server and sets up the solicited message carrying out that tcp needed for multi-screen control connects;
S5: described server checks that the machine has identified the ip in list of devices with the presence or absence of described client device, if setting up
Connect, otherwise execution step s6;
S6: described server is parsed to preset format udp data message in described client device and is judged whether to meet
Server condition of contact, if set up according to the ip address that the described preset format udp data message of parsing obtains and connecting and execute
Step s7, otherwise returns the message setting up connection failure;
S7: described client device obtains the control model of described server and described control model is mapped to described client
Virtual key on equipment is so that described virtual key is corresponding with the physical control button of described server.
7. a kind of multi-screen control system is it is characterised in that include: server and client side's equipment;
Described server includes:
First monitoring sending module, the message for preset monitored COM1 and by described default COM1 to client
Equipment sends preset format udp data message;
First parsing module, for when receiving from the preset format udp data message of described default COM1, to institute
State preset format udp data message to be parsed, obtain analysis result;
First judge module, for judging whether described analysis result meets server end condition of contact;
First sending module, sets up, for sending to described client device, the request letter carrying out that tcp needed for multi-screen control connects
Breath;
First processing module, for identifying, when described client device, the ip that there is not described server in list of devices
When, preset format udp data message in described server is parsed and is judged whether to meet client condition of contact, and worked as
Meet according to parsing the ip address foundation connection that described preset format udp data message obtains during client condition of contact, when not
Meet and during client condition of contact, return the message setting up connection failure;
First matching module, for being matched to described client device by the machine control model so that described client device
Virtual key corresponding with the physical control button of described server;
Described client device includes:
Second monitoring sending module, the message for preset monitored COM1 simultaneously passes through described default COM1 to server
Send preset format udp data message;
Second parsing module, for when receiving from the preset format udp data message of described default COM1, to institute
State preset format udp data message to be parsed, obtain analysis result;
Second judge module, for judging whether described analysis result meets client device condition of contact;
Second sending module, sets up, for sending to described server, the solicited message carrying out that tcp needed for multi-screen control connects;
Second processing module, for identifying, when described server, the ip that there is not described client device in list of devices
When, preset format udp data message in described client device is parsed and is judged whether to meet server condition of contact,
And when meeting server condition of contact, connection is set up according to the ip address that the described preset format udp data message of parsing obtains,
Return the message setting up connection failure when not meeting server condition of contact;
Mapping block, for obtaining the control model of described server and described control model being mapped to described client device
On virtual key so that described virtual key is corresponding with the physical control button of described server.
8. multi-screen control method according to claim 7 it is characterised in that
Described server is based on the Intelligent set top box with network function for the android operating system.
9. multi-screen control method according to claim 7 it is characterised in that
Described client device is the android smart phone with network function or android panel computer.
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 CN103475907A (en) | 2013-12-25 |
CN103475907B true 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) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2629562C1 (en) * | 2013-12-26 | 2017-08-30 | Сейко Эпсон Корпорейшн | System of video transmission and display |
CN103873472A (en) * | 2014-03-18 | 2014-06-18 | 广州市纬志电子科技有限公司 | Method for automatically having access to network |
US9992307B2 (en) * | 2015-02-03 | 2018-06-05 | Google Llc | Interoperability of discovery and connection protocols between client devices and first screen devices |
CN104618802A (en) * | 2015-02-03 | 2015-05-13 | 深圳市米家互动网络有限公司 | Mobile terminal, network set-top box based on Android and system recovery method thereof |
CN104935571B (en) * | 2015-04-22 | 2018-11-23 | 深圳橙子互动股份有限公司 | A kind of exchange method of video game server-side and client |
CN105611362B (en) * | 2016-02-18 | 2018-12-07 | 四川长虹电器股份有限公司 | The method for controlling set-top box by 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 |
CN114679504B (en) * | 2022-05-27 | 2022-09-06 | 成都数联云算科技有限公司 | UDP message parsing method and device and computer equipment |
Citations (10)
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 |
-
2013
- 2013-09-23 CN CN201310436835.7A patent/CN103475907B/en active Active
Patent Citations (10)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103475907A (en) | 2013-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103475907B (en) | Multi-screen control method and device | |
US7865198B2 (en) | Method for message exchanging service between residential device and mobile terminal | |
CN102802071B (en) | Intelligent television, mobile terminal, multi-screen interaction system and wireless communication method | |
CN104635501B (en) | Intelligent home furnishing control method and system | |
CN101697245B (en) | Home appliance control method, home appliance control device and mobile terminal | |
EP2474127B1 (en) | Method and apparatus for controlling remote user interface in a home network | |
CN102713814A (en) | Apparatus for controlling multimedia device and method for providing graphic user interface | |
CN108289110A (en) | Equipment correlating method, device, terminal device and operating system | |
CN103067340A (en) | Authentication method for remote control network information domestic appliance, and system and internet domestic gateway | |
CN103595775B (en) | The sharing method and system of media file | |
CN102484595B (en) | Use long-range control method and the system controlling user interface | |
CN106899603A (en) | A kind of smart machine monitoring method and device | |
CN102185728A (en) | Communication system and method with unified management platform | |
CN105681877A (en) | Set-top box, television, platform, remote controller and method and apparatus for establishing connection | |
CN102932423A (en) | Method for controlling limited area and equipment | |
CN104821929A (en) | Multimedia data sharing method and terminal | |
CN105763898A (en) | Method and system for controlling IPTV set-top box by voice | |
JP2007243458A (en) | Method and system of authenticating contents transmitting receiving destination | |
US20160285949A1 (en) | Wireless login-based remote control method and device | |
CN103618967A (en) | Method and device for interaction of mobile terminal and television end | |
CN107948566A (en) | Realize that plug and play passes the method and device of screen | |
CN107948567A (en) | The method and device of the wired biography screens of USB | |
CN114666097B (en) | Communication method and system of Internet of things equipment | |
CN103684992B (en) | Home gateway, terminal and data sharing method | |
CN113596593A (en) | Multi-terminal interaction method, television and computer readable storage medium |
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 for 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 |