One kind regards networked terminals control method and system
Technical field
The present invention relates to regarding networking technology field, networked terminals control method and system are regarded more particularly to one kind.
Background technology
With the fast development of science and technology, digital broadcast television, delay TV, video on demand are enjoyed by video terminal, regarded
The service of frequency meeting, video teaching etc. is widely available in the life of user, work, study etc., in service process is enjoyed,
Remote control video terminal is generally realized using remote controler, obtains resource.
Existing hardware remote controler is sent to control of the terminal realization to video terminal by infrared mode order is performed,
However it need used in setpoint distance, cannot be worked normally beyond setpoint distance, and using when need to make remote controler
It is inconvenient to use against the receiver of video terminal.
In short, inventor has found that there are remote control distances for control of the prior art to video terminal in application said program
It is short and need that the receiver of remote controler against video terminal is made to cause inconvenient problem with use.
The content of the invention
The technical problems to be solved by the invention are:There is provided that a kind of remote control distance is long and video terminal control easy to use
Method and system processed.
To solve the above-mentioned problems, the embodiment of the invention discloses one kind to regard networked terminals control method and system.This hair
Bright embodiment applies the characteristic regarding networking, is directed to from mobile terminal by Internet protocol to communication server transmission and regards networking eventually
The remote control command at end;Communication server receives and above-mentioned remote control command is converted into the order under networking protocol, and passes through and regard
Networking protocol is sent to regarding networked terminals;It is received depending on networked terminals and corresponding behaviour is performed according to the above-mentioned order under networking protocol
Make, achieve the purpose that regard networked terminals using mobile terminal remote control.
One kind regards networked terminals control method, and the method is applied to regard in networking, including:
Remote interface is generated in the specified application of mobile terminal;The remote interface includes remote control button;When
The remote interface receives the trigger action for remote control button, and the specified application control mobile terminal passes through internet
Agreement sends remote control request to communication server;The remote control request includes:It specifies using account and the first operational order;Institute
It states communication server and receives the remote control request, obtain the specified application account in the remote control request and the first operation refers to
Order;The communication server is according to described specified using account, in pre-set specified application account and regarding networked terminals mark
It is searched in the corresponding table of knowledge and regards networked terminals accordingly;The communication server is converted to first operational order regarding networking
Second operational order of agreement, and it is described regarding networked terminals by being sent to second operational order depending on networking protocol;Institute
It states and receives second operational order regarding networked terminals, and corresponding operating is performed according to second operational order.
Preferably, described when receiving the trigger action for remote control button in the remote interface, described specify should
The step of sending remote control request to communication server by Internet protocol with control mobile terminal includes:When in the remote controler
Interface receives the trigger action for remote control button, and the specified application control mobile terminal passes through http protocol
(HyperText Transfer Protocol, hypertext transfer protocol) sends request to the communication server and completes first
It is secondary to shake hands;The specified application control mobile terminal sends remote control request by WebSocket agreements to the communication server;
The remote control request includes:It specifies using account and the first operational order.
Preferably, the networked terminals that regard receive second operational order, and are performed according to second operational order
The step of corresponding operating, includes:The networked terminals that regard receive second operational order, therefrom read characterization second behaviour
Make the data instructed;It is described to regard data of the networked terminals according to the second operational order of the characterization, transfer corresponding application program
Interface performs corresponding operating.
Preferably, the method further includes:It is generated in the specified application of the mobile terminal and specifies application interface;It is described
Application interface is specified to include regarding the Internet services icon;When being received in the specified application interface the Internet services figure is regarded for described
Target trigger action, the specified application are sent to the communication server by Internet protocol and regard the Internet services request;Institute
The communication server reception the Internet services that regard are stated to ask;The communication server is asked for the Internet services that regard, to institute
It states and at least one networked terminals that regard of application return is specified to identify;The specified application receives the networked terminals that regard and identifies, display
It is described corresponding to be illustrated at the specified application interface depending on networked terminals depending on networked terminals mark;When in the specified application interface
It receives for the trigger action for regarding networked terminals icon, the specified application obtains the networked terminals icon that regards and corresponds to
Regard networked terminals identify, by Internet protocol to the communication server send the first pairing request, it is described first pairing
Request includes:The specified application account, the networked terminals that regard identify;The communication server receives first pairing please
It asks, obtains the specified application account in first pairing request and the networked terminals that regard identify;It is default when meeting
During condition, the communication server storage specified application account and the corresponding networked terminals that regard identify.
Further, it is described when meeting preset condition, the communication server storage specified application account and
Corresponding described the step of being identified depending on networked terminals, includes:The communication server is converted to first pairing request regarding connection
Second pairing request of fidonetFido, and it is described regarding networked terminals mark by being sent to second pairing request depending on networking protocol
Know corresponding regarding networked terminals;The communication server reception is described to receive response depending on networked terminals return first, obtains institute
It states the specified application account in the first receiving response and the corresponding networked terminals that regard identifies;Described first receives sound
Should be it is described depending on networked terminals shown for second pairing request receive icon when, receive for the receiving figure
Target clicking operation and the response made;The communication server storage specified application account and corresponding described regard join
Network termination identifies.
Preferably, first operational order is converted to operate depending on the second of networking protocol and referred to by the communication server
Order, and described included by being sent to second operational order depending on networking protocol depending on the step of networked terminals:The communication
First operational order is converted to first and regards the intermediate command of networking protocol by server, and is passed through first and incited somebody to action regarding networking protocol
The intermediate command is sent to described corresponding regarding networked node server regarding networked terminals;Networked node service is regarded by described
The intermediate command is converted to second and regards the second operational order of networking protocol by device, and is passed through second and regarded networking protocol by described in
Second operational order is sent to described regarding networked terminals.
One kind regards networked terminals control system, and the system is applied to regard in networking, including communication server, at least one
Depending on networked terminals, at least one mobile terminal;The mobile terminal is equipped with specified application;
The mobile terminal includes:Remote controller module, for generating remote interface in the specified application of mobile terminal;
The remote interface includes remote control button;Request module is remotely controlled, for being received when in the remote interface for remote control
The trigger action of button sends remote control request by Internet protocol to communication server;The remote control request includes:Specifying should
With account and the first operational order;
The communication server includes:Remote control request module is received, for receiving the remote control request, obtains the remote control
Specified application account and the first operational order in request;Searching module is matched, for according to described specified using account,
It is pre-set it is specified using account and regarding networked terminals mark corresponding table in search accordingly regard networked terminals;Operational order
Sending module for first operational order to be converted to the second operational order regarding networking protocol, and passes through regarding networking association
Second operational order is sent to described regarding networked terminals by view;
It is described to include depending on networked terminals:Execution module is received, for receiving second operational order, and according to described the
Two operational orders perform corresponding operating.
Preferably, the remote control request module includes:HTTP request module receives for working as in the remote interface
For the trigger action of remote control button, request is sent to the communication server by http protocol and completes to shake hands for the first time;
WebSocket is remotely controlled request module, and remote control request is sent to the communication server for passing through WebSocket agreements;It is described
Remote control request includes:It specifies using account and the first operational order.
Preferably, the reception execution module includes:Receiving module for receiving second operational order, is therefrom read
Take the data for characterizing second operational order;Execution module for the data according to the second operational order of the characterization, is transferred
Corresponding application programming interfaces perform corresponding operating.
Preferably, the mobile terminal further includes:Interface module, for being generated in the specified application of the mobile terminal
Specify application interface;The specified application interface includes regarding the Internet services icon;Unpaired message request module, for when described
Specified application interface is received for the trigger action for regarding the Internet services icon, by Internet protocol to the communication garment
Device transmission be engaged in regarding the Internet services request;Unpaired message display module is identified for receiving the networked terminals that regard, regarded described in display
Networked terminals mark is corresponding to be illustrated at the specified application interface depending on networked terminals;First pairing request module, for working as
The specified application interface is received for the trigger action for regarding networked terminals icon, and acquisition is described to regard networked terminals icon
It is corresponding regard networked terminals identify, by Internet protocol to the communication server send the first pairing request, described first
Pairing request includes:The specified application account and the networked terminals that regard identify;
The communication server further includes:Depending on the Internet services request receiving module, for receive it is described please regarding the Internet services
It asks;Unpaired message returns to module, is asked for being directed to the Internet services that regard, and connection is regarded to the specified application return is at least one
Network termination identifies;First pairing request receiving module for receiving first pairing request, obtains first pairing request
In it is described it is specified application account and it is described regard networked terminals identify;Storage module is matched, for when meeting preset condition,
It stores the specified application account and the corresponding networked terminals that regard identifies.
Further, the pairing storage module includes:Second pairing request module, for by first pairing request
The second pairing request regarding networking protocol is converted to, and by the way that second pairing request is sent to described regard depending on networking protocol
Networked terminals mark is corresponding to regard networked terminals;First receives response receiving module, is returned for receiving the networked terminals that regard
First receive response, obtain described first and receive the specified application account in response and corresponding described regard networking eventually
End mark;Described first receive response be described in depending on networked terminals receive icon being shown for second pairing request
When, receive the response made for the clicking operation for receiving icon;Storage module, for storing the specified application
Account and the corresponding networked terminals that regard identify.
Preferably, the operational order sending module includes:Intermediate command sending module, for the described first operation to be referred to
Order is converted to first and regards the intermediate command of networking protocol, and passes through first and regard described in the intermediate command is sent to by networking protocol
It is corresponding depending on networked terminals to regard networked node server;Second operational order sending module, it is described regarding networked node for passing through
The intermediate command is converted to second and regards the second operational order of networking protocol by server, and is passed through second and incited somebody to action regarding networking protocol
Second operational order is sent to described regarding networked terminals.
The embodiment of the present invention includes advantages below:
Because using the terminal for the remote control command that communication server is sent as mobile terminal, and mobile terminal is to communication
It is using Internet protocol by the way of that server, which sends remote control command, therefore is remotely controlled and is limited without distance and need not make mobile terminal
It is easy to use against the receiver for regarding networked terminals.
Description of the drawings
Fig. 1 is a kind of networking schematic diagram for regarding networking of the present invention;
Fig. 2 is a kind of hardware architecture diagram of node server of the present invention;
Fig. 3 is a kind of hardware architecture diagram of access switch of the present invention;
Fig. 4 is the hardware architecture diagram that a kind of Ethernet association of the present invention turns gateway;
Fig. 5 a are the designing scheme schematic diagrams of the present invention;
Fig. 5 b are the designing scheme schematic diagrames of the present invention;
Fig. 6 is a kind of step flow chart regarding networked terminals control method that the embodiment of the present invention one provides;
Fig. 7 is another step flow chart for regarding networked terminals control method provided by Embodiment 2 of the present invention;
Fig. 8 is a kind of structure diagram regarding networked terminals control system that the embodiment of the present invention three provides;
Fig. 9 is the structure diagram that the another kind that the embodiment of the present invention four provides regards networked terminals control system.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can realize HD video real-time Transmission,
Push numerous the Internet, applications to HD video, high definition is face-to-face.
It, can be such as high in a network platform by required service depending on networking using real-time high-definition video switching technology
Clear video conference, video monitoring, emergency command, digital broadcast television, delay TV, the Web-based instruction, show Intellectualized monitoring analysis
Field live streaming, VOD program requests, TV Mail, individual character recording (PVR), Intranet (manage) channel, intelligent video Broadcast Control, information issue by oneself
The services such as etc. tens of kinds videos, voice, picture, word, communication, data are all incorporated into a system platform, by TV or
Computer realizes that high-definition quality video plays.
For those skilled in the art is made to more fully understand the embodiment of the present invention, below to being introduced depending on networking:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Network technology innovation depending on networking improves traditional ethernet (Ethernet), potential huge on network to face
Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
Switching), Streaming demands are met using Packet Switching depending on networking technology.Possesses grouping depending on networking technology
Flexible, the simple and low price exchanged, is provided simultaneously with quality and the safety assurance of circuit switching, it is virtually electric to realize the whole network switch type
Road and the seamless connection of data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch of Ethernet are used depending on networking, eliminating Ethernet on the premise of full compatibility lacks
It falls into, possesses the end-to-end seamless connection of the whole network, direct user terminal directly carries IP data packets.User data is in network-wide basis
It is not required to any format conversion.It is the higher level form of Ethernet depending on networking, is a real-time exchange platform, can realizes at present mutually
The whole network large-scale high-definition realtime video transmission that networking can not be realized pushes numerous Internet video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform
Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, and single network layer is with regard to energy
Enough include signaling and data transmission.For voice and video business, handled depending on networking and unified video platform Streaming Media
Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and
State-of-the-art real time operating system is employed, the programme information in server instruction is mapped to specific hard drive space, media
Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time to be less than 0.2 second.It optimizes
Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of ad eundem IP internets, but
The concurrent flow more than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Structural design depending on networking by servicing independent licence system, equipment and the modes such as user data is completely isolated every time
The network security problem of puzzlement internet has thoroughly been eradicated from structure, antivirus applet, fire wall is generally not required, has prevented black
Visitor and the attack of virus, provide structural carefree secure network to the user.
Service innovative technology (Service Innovation Technology)
Business and transmission are merged by unified video platform, whether single user, private user or a net
The sum total of network is all only once to connect automatically.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich
The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type "
Complicated applications program, and can use considerably less code that complicated application can be realized, and realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class
Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, it is divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes:Node server, access switch, terminal is (including various machines
Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases
Even, and Ethernet can be connected.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.
Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes:Metropolitan area server, node switch, node serve
Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end
Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve
Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area
The network controlled under server can be the various structures such as tree-shaped, star-like, annular.
Visually claim, access mesh portions can form unified video platform (empty thiol point), and multiple unified videos are put down
Platform can be formed regarding networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes depending on the equipment in networking:Server, interchanger is (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or
National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes:Node server, access switch is (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The particular hardware structure of each access network equipment is:
Node server:
As shown in Fig. 2, mainly include Network Interface Module 201, switching engine module 202, CPU module 203, disk array
Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine
Module 202;Switching engine module 202 to the bag come in look into the operation of address table 205, so as to obtain the navigation information of bag;
And the bag is stored according to the navigation information of bag the queue of corresponding pack buffer 206;If the queue of pack buffer 206 approaches
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine module, are forwarded to if meeting the following conditions:1) end
Mouthful send caching less than;2) the queue package counting facility is more than zero.Disk array module 204 mainly realizes the control to hard disk, bag
Include the operations such as initialization, the read-write to hard disk;CPU module 203 be mainly responsible for access switch, terminal (not shown) it
Between protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table)
Configuration and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly include Network Interface Module (downstream network interface module 301, uplink network interface module
302), switching engine module 303 and CPU module 304;
Wherein, the bag (upstream data) that downstream network interface module 301 is come in enters bag detection module 305;Bag detection mould
Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection bag of block 305 meet the requirements, if met,
Corresponding flow identifier (stream-id) is then distributed, and into switching engine module 303, is otherwise abandoned;Uplink network interface mould
The bag (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine
Module 303;Switching engine module 303 to the bag come in look into the operation of address table 306, so as to obtain the navigation information of bag;
It is gone if the bag into switching engine module 303 is downstream network interface toward uplink network interface, with reference to flow identifier
(stream-id) bag is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
It abandons;If the bag into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to bag
Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
It is gone if the queue is downstream network interface toward uplink network interface, meets the following conditions and be forwarded to:1)
The port send caching less than;2) the queue package counting facility is more than zero;3) token that rate control module generates is obtained;
It is gone if the queue is not downstream network interface toward uplink network interface, meets the following conditions and be forwarded to:
1) port send caching less than;2) the queue package counting facility is more than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval
The pack buffer queue that interface is gone toward uplink network interface generates token, to control the code check of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, configuration to address table 306 and,
Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly include Network Interface Module (downstream network interface module 401, uplink network interface module
402), switching engine module 403, CPU module 404, bag detection module 405, rate control module 408, address table 406, Bao Huan
Storage 407 and MAC add modules 409, MAC removing modules 410.
Wherein, the data packet that downstream network interface module 401 is come in enters bag detection module 405;Bag detection module 405 is examined
The ethernet mac DA of measured data bag, ethernet mac SA, Ethernet length or frame type, regarding networking mesh way address
DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting
Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing modules 410
(2byte), and enter corresponding order caching, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, if there is Bao Ze regarding with networking mesh according to bag
Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway
SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
Mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network
Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine
Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes:Node server, node switch, metropolitan area server.
Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes
Network Interface Module, switching engine module and CPU module are formed.
2nd, regarding networking data package definition
2.1 access network data package definitions
Accessing the data packet of net mainly includes following sections:Destination address (DA), source address (SA), reserve bytes,
payload(PDU)、CRC。
As shown in the table, accessing the data packet of net mainly includes following sections:
DA |
SA |
Reserved |
Payload |
CRC |
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section represents type (such as the various associations of data packet
Discuss bag, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address,
Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical with destination address (DA);
Reserve bytes are made of 2 bytes;
Payload parts have different length according to the type of different datagrams, if being if various protocol packages
64 bytes, if single group unicast packets words be 32+1024=1056 byte, be not restricted to certainly more than 2 kinds;
CRC is made of 4 bytes, and computational methods follow the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment
2 kinds can be all can exceed that between machine and node server, node switch and node switch, node switch and node server
Connection.But the metropolitan area net address of metropolitan area network equipment is unique, is closed to accurately describe the connection between metropolitan area network equipment
System, introduces parameter in embodiments of the present invention:Label uniquely describes a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification
Change) label definition it is similar, it is assumed that between device A and equipment B there are two connection, then data packet slave device A to equipment B just
There are 2 labels, data packet slave device B to device A also there are 2 labels.Label is divided into label, outgoing label, it is assumed that data packet enters
The label (entering label) of device A is 0x0000, and the label (outgoing label) when this data packet leaves device A may reform into
0x0001.The networking flow of Metropolitan Area Network (MAN) is to enter network process under centralized Control, also means that address distribution, the label of Metropolitan Area Network (MAN)
Distribution is all dominated by metropolitan area server, and node switch, node server are all passive execution, this point with
The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are consulted mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA |
SA |
Reserved |
Label |
Payload |
CRC |
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its
In, the form of label may be referred to be defined as below:Label is 32bit, wherein high 16bit retains, only with low 16bit, its position
Put is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic regarding networking, it is proposed that one of the core concepts of the embodiments of the present invention, reference Fig. 5 a and Fig. 5 b,
Fig. 5 a are designing scheme schematic diagram of the present invention, and Fig. 5 b are designing scheme schematic diagram of the present invention.Internet protocol is passed through by mobile terminal
The remote control command being directed to regarding networked terminals is sent to communication server;Communication server receives and is converted into above-mentioned remote control command
Depending on the order under networking protocol, and by being sent to depending on networking protocol regarding networked terminals;It is received depending on networked terminals and according to above-mentioned
Corresponding operating is performed depending on the order under networking protocol, achievees the purpose that regard networked terminals using mobile terminal remote control.
Embodiment one:
With reference to Fig. 6, a kind of step flow chart regarding networked terminals control method embodiment of the invention, this method are shown
It can be applied to regard in networking, specifically may include steps of:
Step 501, remote interface is generated in the specified application of mobile terminal;The remote interface includes remote control and presses
Button.
In the concrete realization, mobile terminal needs first to install specified application, and it can be wechat, QQ, blue letter etc. to specify application
Using or other application;When mobile terminal detects remote control demand, for example mobile terminal detects user to specifying
The pressing operation of remote control icon or mobile terminal receive certain that communication server is sent and regard networked terminals to distant in
The response of control demand, then generate remote interface in the specified application of mobile terminal, and above-mentioned remote interface includes remote control and presses
Button;Above-mentioned remote control button can include a upper program, next program, volume amplification, volume reduce etc. button or its
It includes the button of remote information.
Step 502, when receiving the trigger action for remote control button, the specified application control in the remote interface
Mobile terminal processed sends remote control request by Internet protocol to communication server;The remote control request includes:It specifies using account
Number and the first operational order.
When mobile terminal detects the trigger action for the remote control button of above-mentioned remote interface and for above-mentioned triggering
Operation generates the first operational order, and the above-mentioned specified above-mentioned mobile terminal of application control refers to specified application account and the first operation
Order is packaged as remote control request, and passes through Internet protocol and be sent to communication server;Above-mentioned remote control request includes:It specifies using account
Number and the first operational order.In practical applications, above-mentioned remote control request includes above-mentioned mobile terminal identification.It is implementing
In, above-mentioned trigger action can be pressed by the remote control button on the touch-screen to mobile terminal, slide or other behaviour
Make or the remote control button on above-mentioned remote interface is operated by the button of mobile terminal.Above-mentioned specify should
With the account all having for user, which is the account of above-mentioned specified application;Above-mentioned specified application is needed communication garment
The corresponding account of business device is added in address list or needs to obtain the information for including above-mentioned communication server network address, such as
Scanning includes the Quick Response Code of above-mentioned communication server network address, so can be by the way that application is specified to ask above-mentioned remote control directly
It is sent to above-mentioned communication server.Above-mentioned first operational order can be the character string or number for including operation information, can also
It is other forms.
Step 503, the communication server receives described be remotely controlled and asks, and obtains specified using account in the remote control request
Number and the first operational order.
Above-mentioned communication server receives above-mentioned remote control request, and follows internet by way of corresponding to above-mentioned packing
Agreement obtains above-mentioned specified application account and above-mentioned first operational order from the data packet of remote control request.In practical application
In, if above-mentioned specified application account is communicates with communication server for the first time, above-mentioned communication server is needed for above-mentioned finger
Surely establish corresponding tables of data using account, by corresponding to the above-mentioned specified information record using account in corresponding tables of data
In.Above-mentioned communication server is connected by the internet network interface card of double netcard with above-mentioned specified application.
Step 504, the communication server is according to described specified using account, in pre-set specified application account and
Networked terminals are regarded accordingly depending on being searched in the corresponding table of networked terminals mark.
The included above-mentioned specified tables of data using account of above-mentioned communication server is found above-mentioned specified using account in table
Number corresponding networked terminals that regard identify, confirm it is above-mentioned regarding networked terminals mark it is corresponding regarding networked terminals regarding networking protocol
Location.In practical applications, be remotely controlled for the first time using method provided in an embodiment of the present invention will be after operation for mobile terminal
It is recorded in above-mentioned communication server, records the information regarding networked terminals being accordingly remotely controlled.Usually, networking is regarded to one eventually
, it is necessary to before manipulation when end carries out straighforward operation for the first time, the process first matched, by the finger of communication server record pairing
Surely identified using account with the corresponding networked terminals that regard.
Step 505, first operational order is converted to operate depending on the second of networking protocol and referred to by the communication server
Order, and it is described regarding networked terminals by being sent to second operational order depending on networking protocol.
Above-mentioned first operational order is converted to the second operational order regarding networking protocol by above-mentioned communication server, and is passed through
Depending on networking protocol by above-mentioned second operational order be sent to it is above-mentioned regard networked terminals.
Above-mentioned communication server is connected by the networking network interface card that regards of double netcard with above-mentioned depending on networked terminals.
Above-mentioned first operational order can be converted to regarding networking protocol by above-mentioned communication server by 8785 agreements
Two operational orders, the specification of 8785 agreement can be as shown in the table:
8785 agreements can be sent by above-mentioned communication server, length be 32W short signaling, above-mentioned communication server order
It is above-mentioned to make some straighforward operations specified depending on networked terminals.
Step 506, the networked terminals that regard receive second operational order, and are performed according to second operational order
Corresponding operating.
The above-mentioned data packet that above-mentioned second operational order is included regarding networked terminals reception, therefrom parses operation information, and
According to aforesaid operations information, corresponding application programming interfaces are transferred, perform corresponding operation.Such as operation information is put for volume
Greatly, then it is above-mentioned depending on networked terminals transfer volume amplification application programming interfaces, perform volume amplification operation.
The embodiment of the present invention includes advantages below:
Because using the terminal for the remote control command that communication server is sent as mobile terminal, and mobile terminal is to communication
It is using Internet protocol by the way of that server, which sends remote control command, therefore is remotely controlled and is limited without distance and need not make mobile terminal
It is easy to use against the receiver for regarding networked terminals.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group
It closes, but those skilled in the art should know, the embodiment of the present invention and from the limitation of described sequence of movement, because according to
According to the embodiment of the present invention, some steps may be employed other orders or be carried out at the same time.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
Embodiment two:
With reference to Fig. 7, show that the another kind of the present invention regards the step flow chart of networked terminals control method embodiment, the party
Method can be applied to regard in networking, specifically may include steps of:
Step 601, remote interface is generated in the specified application of mobile terminal;The remote interface includes remote control and presses
Button.
Step 602, when receiving the trigger action for remote control button, the specified application control in the remote interface
Mobile terminal processed sends request to the communication server by http protocol and completes to shake hands for the first time.
When receiving the trigger action for remote control button in above-mentioned remote interface, above-mentioned specified application control movement is eventually
End is sent to communication server by http protocol and asked, and above-mentioned communication server responds and returns to above-mentioned mobile terminal,
Thus complete to shake hands for the first time.
Step 603, the specified application control mobile terminal is sent by WebSocket agreements to the communication server
Remote control request;The remote control request includes:It specifies using account and the first operational order.
Above-mentioned specified application control mobile terminal sends remote control by WebSocket agreements to above-mentioned communication server please
It asks, above-mentioned remote control request includes:It specifies using account and the first operational order.WebSocket agreements are HTML5 a kind of new
Agreement, it realizes client and server full-duplex communication, and still, needs of shaking hands at the beginning are completed by HTTP request.
Step 604, the communication server receives described be remotely controlled and asks, and obtains specified using account in the remote control request
Number and the first operational order.
Step 605, the communication server is according to described specified using account, in pre-set specified application account and
Networked terminals are regarded accordingly depending on being searched in the corresponding table of networked terminals mark.
Step 606, first operational order is converted to first and referred to depending on the centre of networking protocol by the communication server
Order, and pass through first and regard networking protocol and the intermediate command is sent to described to regard networked terminals corresponding regarding networked node service
Device.
In networking practical application, above-mentioned steps 606 can include step 60601-60604:
Step 60601, above-mentioned communication server is identified according to the above-mentioned networked terminals that regard in the pre-set networked terminals that regard
With corresponding node server is searched in the corresponding table of node server.
Step 60602, above-mentioned communication server regards networking protocol by first and regards the corresponding node of networked terminals to above-mentioned
Server sends control service request instruction.
In networking, above-mentioned communication server can control service request to instruct by 8e01 protocol generations, the 8e01
The specification of agreement can be as shown in the table:
Above-mentioned first, which regards networking protocol, includes above-mentioned 8e01 agreements.
Step 60603, above-mentioned communication server receives above-mentioned node server for above-mentioned control service request instruction hair
The application response message sent;Above-mentioned application response message is above-mentioned node server according to the configured to above-mentioned communication server
One downstream communications link is returned to above-mentioned communication server.
Above-mentioned node server can return after above-mentioned control service request instruction is received to above-mentioned communication server
Apply for response message, expression has been received by service request instruction.
In networking, above-mentioned node server can pass through 8e02 protocol generation application response messages, the 8e02 agreements
Specification can be as shown in the table:
In the present embodiment, 8e02 is the service request response of node server, is sent by node server, length is
The short signaling of 32W, wherein, 8e01 protocol specifications can be met according to different by meeting the service request response of 8e02 protocol specifications
Service request instruction the inside service type (service_type), reply corresponding answer signal (signal_type).
In this practical application, networking is regarded as the network with centralized control functions, including main control server and undernet
Equipment, the undernet equipment include terminal, are depending on one of core idea of networking, by notifying to exchange by main control server
Equipment is directed to when time downstream communications link of service is with table, and the table for being then based on the configuration carries out the transmission of data packet.
That is, include depending on the communication means in networking:
Main control server configuration is when time downstream communications link of service;
Work as time data packet of service by what source terminal was sent, target terminal is sent to (such as according to the downstream communications link
Above-mentioned communication server, as virtual terminal).
In embodiments of the present invention, configuration is worked as time downstream communications link of service and is included:Notice is led to when time downlink of service
Believe that the switching equipment involved by link matches somebody with somebody table;
Furthermore, include according to downstream communications link transmission:Inquiry configured table, switching equipment is to being received
Data packet is transmitted by corresponding port.
In the concrete realization, service includes unicast communication service and Multicast Communication Service.I.e. either cast communication is still
Unicast communication, can use it is above-mentioned with table-realize the communication regarded in networking with the core idea of table.
As previously mentioned, including accessing mesh portions regarding networking, in access is netted, which is node server, under
The grade network equipment includes access switch and terminal.
For the unicast communication service during access is netted, above-mentioned node server configuration is when time downlink communication chain of service
The step of road, may comprise steps of:
Sub-step S11, the service request protocol package that above-mentioned node server is initiated according to source terminal are obtained when time service
Downstream communications link information, downstream communications link information include, and participate in exchanging when time above-mentioned node server of service and access
The downstream communication ports information of machine;
Sub-step S12, downstream communication ports information of the above-mentioned node server according to above-mentioned node server, inside it
Data packet addressed table in set when the downlink port that is oriented to of data packet of time service;And the downlink according to access switch is led to
Port information is believed, to corresponding access switch sending port configuration order;
Sub-step S13, access switch according in port configuration command data packet addressed table inside it, set when time
The downlink port that the data packet of service is oriented to.
For the Multicast Communication Service (as remote control regards networked terminals) during access is netted, above-mentioned node server, which obtains, works as
The step of downstream communications link information of secondary service, can include following sub-step:
Sub-step S21, above-mentioned node server obtain the clothes for the application Multicast Communication Service that above-mentioned communication server is initiated
Business request protocol bag, service request protocol package include service type information, service content information and above-mentioned communication server
Access net address;Wherein, service content information includes service number;
Sub-step S22, above-mentioned node server in preset content-address mapping table, are carried according to the service number
Take the access net address of source terminal;
Sub-step S23, above-mentioned node server obtains the corresponding multicast address of source terminal, and distributes to above-mentioned Communications service
Device;And the access net address according to service type information, source terminal and above-mentioned communication server, it obtains when time multicast services
Communication link information.
Step 60604, above-mentioned first operational order is converted to the first centre for regarding networking protocol by above-mentioned communication server
Instruction, and pass through first and above-mentioned intermediate command is sent to above-mentioned node server depending on networking protocol.
In networking, above-mentioned communication server parses above-mentioned first operational order, can be by 8f85 protocol generations
Intermediate command is stated, the specification of the 8f85 agreements can be as shown in the table:
Above-mentioned first, which regards networking protocol, includes above-mentioned 8f85 agreements.
8f85 agreements can be the intermediate command of above-mentioned communication server, be sent by above-mentioned communication server, length 32W
Short signaling, for above-mentioned communication server to above-mentioned node server application make some specify straighforward operations.
In embodiments of the present invention, straighforward operation code and above-mentioned node server Shen can be write in " opt_para "
Please operation is remotely controlled depending on networked terminals to above-mentioned.
In the concrete realization, the straighforward operation code can include one or more of:Volume, program selection
(such as upper and lower, left and right).Certainly, above-mentioned straighforward operation code is intended only as example, can basis when implementing the embodiment of the present invention
Actual conditions set other straighforward operation codes, and the embodiment of the present invention is not any limitation as this.In addition, except above-mentioned straighforward operation code
Outside, those skilled in the art can also use other straighforward operation codes according to actual needs, and the embodiment of the present invention is also not added with this
With limitation.
Step 607, the intermediate command is converted to by the communication server by described depending on networked node server
Two regard the second operational order of networking protocol, and pass through second and second operational order is sent to described regard depending on networking protocol
Networked terminals.
Above-mentioned intermediate command is converted to the second operation depending on networked node server and is referred to by above-mentioned communication server by above-mentioned
Order;Above-mentioned second operational order is for above-mentioned node server according to above-mentioned the second downlink communication chain regarding networked terminals configuration
Road is sent to above-mentioned regarding networked terminals.
In networking, according to above-mentioned intermediate command, above-mentioned node server can be grasped by 8785 protocol generations second
It instructs, the specification of 8785 agreement can be as shown in the table:
Above-mentioned second, which regards networking protocol, includes above-mentioned 8785 agreement.
8785 agreements are sent by above-mentioned node server, and length is the short signaling of 32W, and above-mentioned communication server passes through above-mentioned
Node server order is above-mentioned to make some straighforward operations specified depending on networked terminals.
In embodiments of the present invention, " dev_type " in intermediate command can write " the dev_ in the second operational order
type”;" dev_no " in intermediate command can write " dev_no " in the second operational order;" opt_ in intermediate command
Para " can write " opt_para " in the second operational order, i.e., corresponding straighforward operation code, and order is above-mentioned to regard networked terminals
Carry out corresponding straighforward operation.
Above-mentioned node server is sent to above-mentioned regard according to above-mentioned the second downstream communications link depending on networked terminals configuration
During networked terminals, above-mentioned node server configuration is when time process of the second downstream communications link of service is with reference to above-mentioned sub-step
Rapid S11 to S13 or sub-step S21 to S23.
Step 608, the networked terminals that regard receive second operational order, therefrom read characterization second operation and refer to
The data of order.
The above-mentioned data packet that above-mentioned second operational order is included regarding networked terminals reception therefrom parses corresponding second behaviour
Make the data instructed.
Step 609, it is described to regard data of the networked terminals according to the second operational order of the characterization, it transfers accordingly using journey
Sequence interface performs corresponding operating.
The above-mentioned networked terminals that regard parse corresponding operation information, transfer corresponding according to the data of above-mentioned second operational order
Application programming interfaces, perform corresponding operation.Such as aforesaid operations information is amplified for volume, then it is above-mentioned to be transferred depending on networked terminals
The application programming interfaces of volume amplification, perform the operation of volume amplification.
Preferably, it is described to be further included depending on networked terminals control method:
Step 610, generated in the specified application of the mobile terminal and specify application interface;The specified application interface bag
It includes regarding the Internet services icon.
It is generated in the specified application of above-mentioned mobile terminal and specifies application interface;Above-mentioned specified application interface includes regarding networking
Service icon.For example, when above-mentioned specified application is wechat, the public platform specified can be paid close attention to, it is above-mentioned can depending on the Internet services icon
Think the icon of the public platform.
Step 611, received when in the specified application interface for the trigger action for regarding the Internet services icon, institute
It states and application is specified to be asked by Internet protocol to communication server transmission regarding the Internet services.
It is received when in above-mentioned specified application interface for the above-mentioned trigger action regarding the Internet services icon, above-mentioned specify should
The Internet services request is regarded with being sent by Internet protocol to above-mentioned communication server.Above-mentioned trigger action include but not limited to pair
Above-mentioned click regarding the Internet services icon, slide further include other modes, for example, specify application for wechat when, concern refers to
Determine the operation of public platform.
Step 612, the communication server receives the Internet services that regard and asks.
Above-mentioned communication server receives the above-mentioned the Internet services that regard and asks, it is above-mentioned regard the Internet services request and include above-mentioned specify answer
With account, above-mentioned mobile terminal identification.
Step 613, the communication server is asked for the Internet services that regard, and at least one is returned to the specified application
A networked terminals that regard identify.
Above-mentioned communication server is asked for the above-mentioned the Internet services that regard, and is returned to above-mentioned specified application at least one regarding networking
Terminal iidentification, it is above-mentioned depending on networked terminals mark be uniquely labeled with it is corresponding regard networked terminals.
Step 614, the specified application receives the networked terminals that regard and identifies, and the display networked terminals mark that regards corresponds to
Be illustrated at the specified application interface depending on networked terminals.
Above-mentioned specified application receives the above-mentioned networked terminals that regard and identifies, and display is above-mentioned to regard networked terminals mark is corresponding to regard networking
Terminal icon is in above-mentioned specified application interface.
Step 615, received when in the specified application interface for the trigger action for regarding networked terminals icon, institute
It states and application is specified to obtain the corresponding networked terminals that regard of networked terminals icon that regard identify, by Internet protocol to the communication
Server sends the first pairing request, and first pairing request includes:It is described it is specified application account, it is described regard networked terminals mark
Know.
User is concerned about in above-mentioned specified application interface regarding networked terminals icon, some is selected to regard networked terminals icon;
It is received when in above-mentioned specified application interface for the above-mentioned trigger action regarding networked terminals icon, above-mentioned specified application obtains
It states and is identified regarding the corresponding networked terminals that regard of networked terminals icon, sending first to above-mentioned communication server by Internet protocol matches somebody with somebody
To request, above-mentioned first pairing request includes:Above-mentioned specified application account, the above-mentioned networked terminals that regard identify.
Step 616, the communication server receives first pairing request, obtains the institute in first pairing request
It states to specify and be identified using account and the networked terminals that regard.
Above-mentioned communication server receives above-mentioned first pairing request, and above-mentioned specify obtained in above-mentioned first pairing request should
It is identified with account and the above-mentioned networked terminals that regard.
Step 617, when meeting preset condition, the communication server storage specified application account and corresponding
The networked terminals that regard identify.
When meeting preset condition, the above-mentioned above-mentioned specified application account of communication server storage and corresponding above-mentioned regard join
Network termination identifies.Above-mentioned preset condition can not have, or need to obtain the corresponding agreement regarding networked terminals, Huo Zheqi
Its condition.
Further, it is described when meeting preset condition, the communication server storage specified application account and
The corresponding step 617 depending on networked terminals mark includes:
Step 61701, first pairing request is converted to the second pairing regarding networking protocol by the communication server
Request, and by depending on networking protocol by second pairing request be sent to it is described regard networked terminals and identify corresponding regard networking eventually
End.
Above-mentioned first pairing request is converted to the second pairing request regarding networking protocol by above-mentioned communication server, and is passed through
Depending on networking protocol by above-mentioned second pairing request be sent to it is above-mentioned regard networked terminals mark it is corresponding regard networked terminals.
In practical applications, above-mentioned communication server with can be by regarding networked terminals with the above-mentioned communication depending on networked terminals
Corresponding node server carries out, and detailed process can refer to the description of above-mentioned steps 606 and 607 in the present embodiment.
Step 61702, the communication server receive it is described first receive response regarding networked terminals return, described in acquisition
First receives the specified application account in response and the corresponding networked terminals that regard identify;Described first receives response
For it is described depending on networked terminals shown for second pairing request receive icon when, receive and receive icon for described
Clicking operation and the response made.
The above-mentioned networked terminals that regard receive above-mentioned second pairing request, and are shown for above-mentioned second pairing request and receive icon
With refusing icon;It is above-mentioned to make the first receiving depending on networked terminals if received for the above-mentioned clicking operation for receiving icon
Response;Above-mentioned clicking operation can be that user completes;Above-mentioned first, which receives response, includes above-mentioned specified application account and correspondence
It is above-mentioned regard networked terminals identify;Above-mentioned communication server reception is above-mentioned to receive response depending on networked terminals return first, obtains
Above-mentioned specified application account and the corresponding above-mentioned networked terminals that regard in above-mentioned first receiving response identify.
The above-mentioned networked terminals that regard receive above-mentioned second pairing request, and are shown for above-mentioned second pairing request and receive icon
With refusing icon;It is above-mentioned to make the first refusal depending on networked terminals if receiving the clicking operation for above-mentioned refusal icon
Response;Above-mentioned clicking operation can be that user completes;Above-mentioned first refusal respond includes above-mentioned specified application account and correspondence
It is above-mentioned regard networked terminals identify;Above-mentioned communication server receives above-mentioned the first refusal respond returned regarding networked terminals, obtains
Above-mentioned specified application account and the corresponding above-mentioned networked terminals that regard in above-mentioned first refusal respond identify, and send refusal and carry
Show to above-mentioned specified using account.
Step 61703, the communication server storage specified application account and corresponding described networked terminals are regarded
Mark.
Above-mentioned communication server obtains the above-mentioned agreement asked regarding networked terminals the above-mentioned specified remote control using account,
It stores above-mentioned specified application account and the corresponding above-mentioned networked terminals that regard identifies.
The embodiment of the present invention includes advantages below:
Because using the terminal for the remote control command that communication server is sent as mobile terminal, and mobile terminal is to communication
It is by the way of http protocol and WebSocket agreements that server, which sends remote control command, and is received and parsed through depending on networked terminals
Second operational order transfers corresponding application programming interfaces, performs corresponding operating, reaches using specified application control mobile terminal
Remote control regards the purpose of networked terminals, therefore is remotely controlled and is limited without distance and need not make mobile terminal against the reception regarding networked terminals
Device, it is easy to use.
Because it in the preferred embodiment of the embodiment of the present invention, further includes and specifies using account and the pairing regarding networked terminals
Journey, and unpaired message is stored by communication server so that remote control process become more directly with safety;Further, matched
Journey also adds the specific aim and safety for regarding receiving response of the networked terminals to pairing process, further improving remote control process
Property.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group
It closes, but those skilled in the art should know, the embodiment of the present invention and from the limitation of described sequence of movement, because according to
According to the embodiment of the present invention, some steps may be employed other orders or be carried out at the same time.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
Embodiment three:
With reference to Fig. 8, a kind of system architecture diagram regarding networked terminals control system embodiment of the present invention is shown, this is
System can be applied to regard in networking, can specifically include such as lower structure:
Communication server 80, it is at least one regard networked terminals 90, at least one mobile terminal 70;The mobile terminal 70 is pacified
Equipped with specified application;
The mobile terminal 70 includes:
Remote controller module 701, for generating remote interface in the specified application of mobile terminal;The remote interface
Including remote control button;
Request module 702 is remotely controlled, for when receiving the trigger action for remote control button in the remote interface, leading to
It crosses Internet protocol and sends remote control request to communication server;The remote control request includes:It specifies using account and the first behaviour
It instructs;
The communication server 80 includes:
Remote control request module 801 is received, for receiving the remote control request, obtains the specified application in the remote control request
Account and the first operational order;
Searching module 802 is matched, for according to described specified using account, in pre-set specified application account and regarding
It is searched in the corresponding table of networked terminals mark and regards networked terminals accordingly;
Operational order sending module 803, for first operational order to be converted to the second operation regarding networking protocol
Instruction, and it is described regarding networked terminals by being sent to second operational order depending on networking protocol;
In practical applications, above-mentioned communication server 80 includes double netcard, and above-mentioned double netcard includes internet network interface card with regarding
Networking network interface card;Above-mentioned internet network interface card is used to be connected with above-mentioned mobile terminal;The above-mentioned networking network interface card that regards is used to regard networking with above-mentioned
Terminal connects.
It is described to include depending on networked terminals 90:
Execution module 901 is received, for receiving second operational order, and phase is performed according to second operational order
It should operate.
The embodiment of the present invention includes advantages below:
Because using the terminal for the remote control command that communication server is sent as mobile terminal, and mobile terminal is to communication
It is using Internet protocol by the way of that server, which sends remote control command, therefore is remotely controlled and is limited without distance and need not make mobile terminal
It is easy to use against the receiver for regarding networked terminals.
For device embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Example IV:
With reference to Fig. 9, a kind of system architecture diagram regarding networked terminals control system embodiment of the present invention is shown, this is
System can be applied to regard in networking, can specifically include such as lower structure:
Communication server 80, it is at least one regard networked terminals 90, at least one mobile terminal 70;The mobile terminal 70 is pacified
Equipped with specified application;
The mobile terminal 70 includes:
Remote controller module 701, for generating remote interface in the specified application of mobile terminal;The remote interface
Including remote control button;
HTTP request module 70201 receives the trigger action for remote control button for working as in the remote interface,
Request is sent by http protocol to the communication server to complete to shake hands for the first time;
WebSocket is remotely controlled request module 70202, is sent for passing through WebSocket agreements to the communication server
Remote control request;The remote control request includes:It specifies using account and the first operational order;
The communication server 80 includes:
Remote control request module 801 is received, for receiving the remote control request, obtains the specified application in the remote control request
Account and the first operational order;
Searching module 802 is matched, for according to described specified using account, in pre-set specified application account and regarding
It is searched in the corresponding table of networked terminals mark and regards networked terminals accordingly;
Intermediate command sending module 80301 is regarded for first operational order to be converted to first in networking protocol
Between instruct, and pass through first and be sent to the intermediate command depending on networking protocol and described regard networked terminals are corresponding to regard networked node
Server;
In practical applications, above-mentioned intermediate command sending module 80301 includes:
Node server searching module, for according to it is above-mentioned regard networked terminals it is pre-set regard networked terminals mark and
Corresponding node server is searched in the corresponding table of node server;
Service request instruction sending module is controlled, for regarding the corresponding node of networked terminals to above-mentioned by regarding networking protocol
Server sends control service request instruction;
Apply for response message receiving module, for receiving above-mentioned node server for above-mentioned control service request instruction hair
The application response message sent;Above-mentioned application response message is above-mentioned node server according to the configured to above-mentioned communication server
One downstream communications link is returned to above-mentioned communication server;
Intermediate command modular converter refers to for above-mentioned first operational order to be converted to first depending on the centre of networking protocol
Order, and pass through first and above-mentioned intermediate command is sent to above-mentioned node server depending on networking protocol;
Second operational order sending module 80302, for passing through the networked node server that regards by the intermediate command
It is converted to second and regards the second operational order of networking protocol, and pass through second and send second operational order regarding networking protocol
Networked terminals are regarded to described.
It is described to include depending on networked terminals 90:
Receiving module 90101 for receiving second operational order, therefrom reads and characterizes second operational order
Data;
Execution module 90102 for the data according to the second operational order of the characterization, is transferred corresponding application program and is connect
Mouthful, perform corresponding operating.
Preferably, the mobile terminal 70 further includes:
Interface module 703 specifies application interface for being generated in the specified application of the mobile terminal;Described specify should
Included regarding the Internet services icon with interface;
Unpaired message request module 704, for being received when in the specified application interface for described regarding the Internet services
The trigger action of icon is sent to the communication server by Internet protocol and regards the Internet services request;
Unpaired message display module 705 identifies for receiving the networked terminals that regard, and the display networked terminals that regard identify
It is corresponding to be illustrated at the specified application interface depending on networked terminals;
First pairing request module 706, for being received when in the specified application interface for described regarding networked terminals
The trigger action of icon obtains the corresponding networked terminals that regard of networked terminals icon that regard and identifies, by Internet protocol to institute
It states communication server and sends the first pairing request, first pairing request includes:It the specified application account and described regards
Networked terminals identify;
The communication server 80 further includes:
Depending on the Internet services request receiving module 804, asked for receiving the Internet services that regard;
Unpaired message returns to module 805, asks for being directed to the Internet services that regard, is returned at least to the specified application
One regards networked terminals and identifies;
First pairing request receiving module 806 for receiving first pairing request, obtains first pairing request
In it is described it is specified application account and it is described regard networked terminals identify;
Storage module 807 is matched, for when meeting preset condition, storing the specified application account and corresponding institute
It states and is identified regarding networked terminals.
Further, the pairing storage module 807 includes:
Second pairing request module is asked for being converted to match first pairing request regarding the second of networking protocol
Ask, and by depending on networking protocol by second pairing request be sent to it is described regard networked terminals and identify corresponding regard networking eventually
End;
First receives response receiving module, described first receives response, acquisition institute regarding what networked terminals returned for receiving
It states the specified application account in the first receiving response and the corresponding networked terminals that regard identifies;Described first receives sound
Should be it is described depending on networked terminals shown for second pairing request receive icon when, receive for the receiving figure
Target clicking operation and the response made;
Storage module identifies for storing the specified application account and the corresponding networked terminals that regard.
The embodiment of the present invention includes advantages below:
Because using the terminal for the remote control command that communication server is sent as mobile terminal, and mobile terminal is to communication
It is by the way of http protocol and WebSocket agreements that server, which sends remote control command, and is received and parsed through depending on networked terminals
Second operational order transfers corresponding application programming interfaces, performs corresponding operating, reaches using specified application control mobile terminal
Remote control regards the purpose of networked terminals, therefore is remotely controlled and is limited without distance and need not make mobile terminal against the reception regarding networked terminals
Device, it is easy to use.
Because it in the preferred embodiment of the embodiment of the present invention, further includes and specifies using account and the pairing regarding networked terminals
Journey, and unpaired message is stored by communication server so that remote control process become more directly with safety;Further, matched
Journey, which is also added, responds the reception for matching process regarding networked terminals, further improves the specific aim and safety of remote control process
Property.
For device embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, the highlights of each of the examples are with
The difference of other embodiment, just to refer each other for identical similar part between each embodiment.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that it can realize flowchart and/or the block diagram by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided
Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments
Capable instruction generation is used to implement in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments
In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory generates bag
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps is performed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction offer performed on computer or other programmable terminal equipments is used to implement in one flow of flow chart or multiple flows
And/or specified in one box of block diagram or multiple boxes function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, those skilled in the art once know base
This creative concept can then make these embodiments other change and modification.So appended claims are intended to be construed to
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped
Those elements are included, but also including other elements that are not explicitly listed or are further included as this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, it is wanted by what sentence "including a ..." limited
Element, it is not excluded that also there are other identical elements in the process including the element, method, article or terminal device.
Networked terminals control system is regarded with a kind of to a kind of networked terminals control method that regards provided by the present invention above, into
It has gone and has been discussed in detail, specific case used herein is set forth the principle of the present invention and embodiment, implements above
The explanation of example is only intended to help the method and its core concept for understanding the present invention;Meanwhile for the general technology people of this field
Member, thought according to the invention, there will be changes in specific embodiments and applications, in conclusion this explanation
Book content should not be construed as limiting the invention.