CN104135443B - Router control method and device - Google Patents

Router control method and device Download PDF

Info

Publication number
CN104135443B
CN104135443B CN201410302846.0A CN201410302846A CN104135443B CN 104135443 B CN104135443 B CN 104135443B CN 201410302846 A CN201410302846 A CN 201410302846A CN 104135443 B CN104135443 B CN 104135443B
Authority
CN
China
Prior art keywords
router
application
control
control data
instruction
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
Application number
CN201410302846.0A
Other languages
Chinese (zh)
Other versions
CN104135443A (en
Inventor
李政
程亮
刘铁俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410302846.0A priority Critical patent/CN104135443B/en
Publication of CN104135443A publication Critical patent/CN104135443A/en
Application granted granted Critical
Publication of CN104135443B publication Critical patent/CN104135443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure is directed to a kind of router control method and devices, belong to remote control field.The method includes:Control data is generated for the application in router, at least one application is installed in the router;The control data is sent to the router by public network network, the router is used to the control data passing to the application.The disclosure carries out remote control by public network network to the application of router and its installation, solves the problems, such as that the control method of router in the related technology is only applicable to the computer being connected by inner-mesh network with router;Achieve the effect that remote control can be carried out to the application of router and its installation.

Description

Router control method and device
Technical field
This disclosure relates to remote control field, more particularly to a kind of router control method and device.
Background technology
Router is the network equipment for connecting each LAN and wide area network in internet.With the electricity in user family Sub- equipment and intelligent appliance become increasingly popular, and router gradually occupies more and more important position in people's daily life.
In the related technology, user is usually used controls router by the computer that inner-mesh network is connected with router System.Briefly, the control process, including:User controls the page by the Web of computer to access router, and page is controlled in the Web Administrator's account and password are inputted in face;Router is shown in authentic administrator account and correct password in Web controls the page Show control option, which generally includes outer net setting options, Intranet setting options, wireless network setting options etc..So Afterwards, user clicks corresponding button or list in Web controls the page, to be arranged or change the configuration content of router.
The above method is only applicable to the computer being connected by inner-mesh network with router, if at equipment used by a user In public network environment, then router can not be controlled.
Invention content
It is only applicable to be connected by inner-mesh network with router to solve router control method in the related technology The problem of computer, the embodiment of the present disclosure provide a kind of router control method and device, and the technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of router control method is provided, is used in client, the side Method includes:
Control data is generated for the application in router, at least one application is installed in the router;
The control data is sent to the router by public network network, the router is used for the control data Pass to the application.
Optionally, the application in router generates control data, including:
Control instruction is generated for the application in the router, the control instruction includes open command, out code At least one of with parameter setting instruction;
It encapsulates to obtain the control data according to the application identities of the application and the control instruction.
Optionally, described that the control data is sent to the router by public network network, including:
The mark of the router is sent to server;
Receive public network IP address and the port of the router of the server feedback, the public network IP address and port The router is reported to the server;
According to the public network IP address of the router and port the control data is sent to the router.
Optionally, described that the control data is sent to the router by public network network, including:
The mark of the router and the control data are sent to Relay Server, the Relay Server is used for basis The control data is transmitted to the router by the mark of the router.
Optionally, it is corresponding to the router in the application in application, the control data is described for controlling The router execution predetermined operation is closed or controls using opening, controlling the application;Or,
The application be corresponding to the other terminals for being in same LAN with the router in application, the control Request is made to open for controlling the application, control the application closing, control the application from other terminals acquisition numbers According to, or other terminals execution predetermined operations described in the instruction application control.
According to the second aspect of the embodiment of the present disclosure, a kind of router control method is provided, is used in router, the side Method includes:
The control data that client is sent by public network network is received, the control data is the client for described In router application generate and send, at least one application is installed in the router;
The control data is transferred to the application execution control operation.
Optionally, described that the control data is transferred to the application execution control operation, including:
The control data is parsed, the application identities carried in the control data and control instruction, the control are obtained Instruction includes at least one of open command, out code and parameter setting instruction;
The control instruction is passed into application corresponding with the application identities.
Optionally, the control data for receiving client and being sent by public network network, including:
It receives the client and the control is sent to the router according to the public network IP address and port of the router System request;After the public network IP address and port are the mark that the client sends the router to the server, by The server feedback is to the client, and the public network IP address and port are the routers in advance to the service What device reported.
Optionally, the control data for receiving client and being sent by public network network, including:
Receive the control data that Relay Server is sent;The control data is the client to the middle following the service After business device sends mark and the control data of the router, the Relay Server turns according to the mark of the router Hair.
Optionally, it is corresponding to the router in the application in application, the control data is described for controlling The router execution predetermined operation is closed or controls using opening, controlling the application;Or,
The application be corresponding to the other terminals for being in same LAN with the router in application, the control Request is made to open for controlling the application, control the application closing, control the application from other terminals acquisition numbers According to, or other terminals execution predetermined operations described in the instruction application control.
According to the third aspect of the embodiment of the present disclosure, a kind of router control device is provided, described device includes:
Module is requested to generate, is configured as generating control data for the application in router, be installed in the router There is at least one application;
Request sending module is configured as sending the control data, the road to the router by public network network It is used to the control data passing to the application by device.
Optionally, described to request to generate module, including:Instruction generation unit and request to generate unit;
Described instruction generation unit is configured as generating control instruction, the control for the application in the router Instruction includes at least one of open command, out code and parameter setting instruction;
It is described to request to generate unit, it is configured as encapsulating to obtain according to the application identities and the control instruction of the application The control data.
Optionally, the request sending module, including:Identify transmission unit, address receiving unit and request transmitting unit;
The mark transmission unit is configured as sending the mark of the router to server;
Described address receiving unit, be configured as receiving the router of the server feedback public network IP address and Port, the public network IP address and port are that the router is reported to the server;
The request transmitting unit is configured as according to the public network IP address of the router and port to the router Send the control data.
Optionally, the request sending module, including:
Transmission unit is relayed, is configured as sending the mark of the router and the control data to Relay Server, The Relay Server is used to that the control data to be transmitted to the router according to the mark of the router.
Optionally, it is corresponding to the router in the application in application, the control data is described for controlling The router execution predetermined operation is closed or controls using opening, controlling the application;Or,
The application be corresponding to the other terminals for being in same LAN with the router in application, the control Request is made to open for controlling the application, control the application closing, control the application from other terminals acquisition numbers According to, or other terminals execution predetermined operations described in the instruction application control.
According to the fourth aspect of the embodiment of the present disclosure, a kind of router control device is provided, described device includes:
Request receiving module is configured as receiving the control data that client is sent by public network network, and the control is asked What client described in Seeking Truth was generated and was sent for the application in the router, at least one answer is installed in the router With;
Transmission module is asked, is configured as the control data being transferred to the application execution control operation.
Optionally, the request transmission module, including:Request analysis unit and instruction transfer unit;
The request analysis unit is configured as parsing the control data, and obtain carrying in the control data answers Include at least one of open command, out code and parameter setting instruction with mark and control instruction, the control instruction;
Described instruction transfer unit is configured as the control instruction passing to answer corresponding with the application identities With.
Optionally, the request receiving module, including:Client receiving unit;
The client receiving unit, be configured as receiving the client according to the public network IP address of the router and Port sends the control data to the router;The public network IP address and port are the clients to the server After the mark for sending the router, the client, and the public network IP address and port are given by the server feedback The router is reported to the server in advance.
Optionally, the request receiving module, including:
Relay reception unit is configured as receiving the control data that Relay Server is sent;The control data is After the client sends mark and the control data of the router to the Relay Server, the Relay Server According to the mark forwarding of the router.
Optionally, it is corresponding to the router in the application in application, the control data is described for controlling The router execution predetermined operation is closed or controls using opening, controlling the application;Or,
The application be corresponding to the other terminals for being in same LAN with the router in application, the control Request is made to open for controlling the application, control the application closing, control the application from other terminals acquisition numbers According to, or other terminals execution predetermined operations described in the instruction application control.
According to a fifth aspect of the embodiments of the present disclosure, a kind of router control device is provided, described device includes:
Processor;
Memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
Control data is generated for the application in router, at least one application is installed in the router;
The control data is sent to the router by public network network, the router is used for the control data Pass to the application.
According to the 6th of the embodiment of the present disclosure the aspect, a kind of router control device is provided, described device includes:
Processor;
Memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
The control data that client is sent by public network network is received, the control data is the client for described In router application generate and send, at least one application is installed in the router;
The control data is transferred to the application execution control operation.
The technical solution that the embodiment of the present disclosure provides can include the following benefits:
Remote control is carried out to the application of router and its installation by public network network, solves routing in the related technology The control method of device is only applicable to the problem of computer being connected by inner-mesh network with router;Reached can to router and Its application installed carries out the effect of remote control.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of schematic diagram of the implementation environment for the router control method that one embodiment of the disclosure provides;
Fig. 2 is a kind of flow chart of router control method shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of the router control method shown according to another exemplary embodiment;
Fig. 4 A are a kind of flow charts of the router control method shown according to another exemplary embodiment;
Fig. 4 B are a kind of operation charts of the router control method shown according to another exemplary embodiment;
Fig. 5 is the schematic diagram of the implementation environment for the router control method that the another two embodiment of the disclosure provides;
Fig. 6 is a kind of flow chart of the router control method shown according to another exemplary embodiment;
Fig. 7 is a kind of flow chart of the router control method shown according to another exemplary embodiment;
Fig. 8 is a kind of block diagram of router control device shown according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of the router control device device shown according to another exemplary embodiment;
Figure 10 is a kind of block diagram of the router control device shown according to another exemplary embodiment;
Figure 11 is a kind of block diagram of the router control device shown according to another exemplary embodiment;
Figure 12 is a kind of block diagram of device for router control shown according to an exemplary embodiment;
Figure 13 is a kind of block diagram of device for router control shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate the concept of the disclosure.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Client referred to herein can be the control program of the router control method for implementing the disclosure, this Control program may be mounted in any terminal for having network accessibility and can implementing the disclosure, this terminal can be Smart mobile phone, tablet computer, computer and pocket computer on knee etc..
It is referred to herein that be in other terminals of same LAN with router be the intelligence being connected directly with router Electronic equipment, such as intelligent refrigerator, smart television, intelligent air condition, electronic computer, intelligent electric lamp control device, intelligent door and window control Device processed etc..
Referring to FIG. 1, a kind of implementation ring of the router control method provided it illustrates one embodiment of the disclosure The schematic diagram in border, first terminal 110, router 120 and the second terminal 130 which includes.
First terminal 110 is equipped with router control client, it can be any electronic equipment that can access network.
First terminal 110 is connected by public network network with router 120.
Router 120 is equipped at least one application.These applications include but not limited to airconditioning control using 121, TV Control applies 124 using the control of 122, computer using 123 and router control.
Router 120 is connected by LAN and second terminal 130.
Second terminal 130 is to belong to the terminal of same LAN with router 120, it can be visited by router 120 The equipment for asking public network network;Can also be the equipment of the terminal of the application control in receiving router, second terminal 130 include but It is not limited to intelligent air condition 131, smart television 132 and computer 133.
Fig. 2 is a kind of flow chart of router control method shown according to an exemplary embodiment, and the present embodiment is with this Router control method is applied to illustrating in the first terminal 110 in Fig. 1.The router control method may include as Under several steps:
In step 201, control data is generated for the application in router, at least one answer is installed in router With;
In step 202, control data is sent to router by public network network, router is for transmitting control data To application.
In conclusion router control method provided in this embodiment, by public network network to router and its installation Using remote control is carried out, the control method for solving router in the related technology is only applicable to pass through Intranet net with router The problem of computer that network is connected;Achieve the effect that remote control can be carried out to the application of router and its installation.
Fig. 3 is a kind of flow chart of the router control method shown according to another exemplary embodiment, the present embodiment with The router control method is applied to illustrating in the router 120 in Fig. 1.The router control method may include as Under several steps:
In step 301, the control data that client is sent by public network network is received, control data is that client is directed to In router application generate and send, at least one application is installed in router;
In step 302, control data is transferred to application execution control operation.
In conclusion router control method provided in this embodiment, client is received to router by public network network And its remote control of the application of installation, the control method for solving router in the related technology are only applicable to lead to router The problem of crossing the computer that inner-mesh network is connected;The application of router and its installation can be carried out the effect of remote control by having reached Fruit.
Fig. 4 A are a kind of flow charts of the router control method shown according to another exemplary embodiment, the present embodiment with The router control method is illustrated applied to the implementation environment in Fig. 1.The router control method may include as follows Several steps:
In step 401, client generates control data for the application in router, and at least one is equipped in router A application;
Only there are one in application, the control data of client generation can be only included and be answered this for installation in the router Control instruction;
More than one is installed in the router in application, control data may include the corresponding application of the control data Mark and control instruction.That is, client encapsulates to obtain control data according to the application identities and control instruction of application, wherein controlling System instruction includes at least one of open command, out code and parameter setting instruction.
For example, client will generate the control data of control air-conditioning, it is assumed that the application identities for controlling air-conditioning are:air- conditioning;Control instruction is indicated for opening the open command of air-conditioning:Open, the then control that client encapsulates Request can be:<Air-conditioning, open>.
The application installed in router is divided into two kinds, and accordingly, the purposes of control data is also different:
The first, when application for corresponding to router in application, control data for control router open, control answer Predetermined operation is executed with closing or controlling router;
Second, when application is asking in application, controlling corresponding to the other terminals for being in same LAN with router It asks for controlling application unlatching, control application is closed, control is using other from other data acquisition of terminal, or instruction application control Terminal executes predetermined operation.
I.e. application is divided into the application of control router 120 and that control and router 120 be in same LAN is second whole The application at end 130.
In the present embodiment, user can utilize client, refer to according to wishing to want the order input control that router executes It enables and application identities, client encapsulates control instruction input by user and application identities to obtain control data.
In step 402, client sends control data by public network network to router;
In the present embodiment, router 120 is connected directly between on public network, and user can directly obtain road at router 120 By IP (interconnection agreement between Internet Protocol networks) address of device 120, user obtains the IP address of router 120 Afterwards, client and router 120 can be made to establish communication connection, control data is sent to by client by public network network later In router 120.
In the present embodiment, router 120 receives the control data that client is sent from public network network.
In step 403, router parses control data, obtains the application identities carried in control data and control refers to It enables, control instruction includes at least one of open command, out code and parameter setting instruction;
Router 120 parses it after obtaining control data, obtain the application identities carried in control data and Control instruction.
In step 404, control data is transferred to application execution control operation by router;
Be equipped in the router it is more than one in application, router control instruction is passed to it is corresponding with application identities Application.
In the present embodiment, the control instruction after parsing is passed to the corresponding application of application identities by router 120.This is answered It is operated accordingly with that can be executed according to control instruction.
In conclusion router control method provided in this embodiment, by public network network to router and its installation Using remote control is carried out, the control method for solving router in the related technology is only applicable to pass through Intranet net with router The problem of computer that network is connected;Achieve the effect that remote control can be carried out to the application of router and its installation.
In a schematical example, the flow of this method embodiment is such:As shown in Figure 4 B, user is going home When preceding 2 hours, operating terminal 110 opens client, and client can establish communication relations, client pop-up with router 120 It is successfully established connection prompt column 41.Later, user can click airconditioning control application button 42, be applied into airconditioning control The current various parameters of the intelligent air condition received can be sent to terminal 110 by interface 43, router;Interface 43 shows air-conditioning Current working status and three setting options, the temperature of air-conditioning can be arranged in user and timing is opened and timed-shutoff;User It clicks and sends the transmission control data of order button 44, request content includes:Application identities are airconditioning control application, and control instruction is Air-conditioning starts after 1 hour, and set temperature is 24 degree.The effect of the airconditioning control application in remote control router is thus reached Fruit.
Likewise, terminal can be by the method for above-mentioned example to the intelligent refrigerator, electronic computer, intelligent electric lamp of family Control device, Intelligent door window control device etc. carry out remote control, and detailed process no longer applies state herein;In addition, working as router When possessing built-in hard disk or being connected with NAS (Network Attached Storage, network attached storage), user can pass through Client remote control router is downloaded task.
In actual implementation, router is probably connected to NAT (Network Address Translation, network Address conversion) after equipment, and NAT device is connected on public network, router can only learn that NAT device distributes to the privately owned of oneself IP address and port can not directly learn that the public network IP of oneself, client also just can not directly establish a connection with router, So that can not control data be successfully sent to router.
To solve the above problems, when following two embodiment is connected to router after NAT device, control data is transmitted Two ways illustrate respectively.
Referring to FIG. 5, a kind of implementation ring of the router control method provided it illustrates one embodiment of the disclosure The schematic diagram in border, first terminal 110, router 120, second terminal 130 and the server 140 which includes.
First terminal 110 is equipped with router control client, it can be any electronic equipment that can access network.
Router 120 is connected to after NAT device, and router 120 be equipped with but be not limited to airconditioning control using 121, TV control applies 124 using the control of 122, computer using 123 and router control.
Second terminal 130 is not the terminal of a physical presence, it refers to the end of the application control in receiving router The general name at end, it includes but not limited to intelligent air condition 131, smart television 132 and computer 133.
The tool of server 140 is there are one well known IP address and is connected on public network, and server 140 can be a STUN In (the User Datagram Protocol simple traversal of Simple Traversal of UDP over NATs NAT) server or one After server, when server 140 is Relay Server, it can be pre-established with communication connection with router 120.
Router 120 is connected by LAN and second terminal 130.
Fig. 6 is a kind of flow chart of the router control method shown according to another exemplary embodiment, the present embodiment with The router control method is illustrated applied to the implementation environment in Fig. 5 and server 140 for STUN servers.The routing Device control method may include the following steps:
In step 601, router reports the mark of public network IP address, port and router to STUN servers;
Due to the server of the present embodiment be possess the STUN servers of well-known IP address, thus router can in advance on Report oneself public network IP address, port and router mark.That is, although router can not learn the public network IP address of itself And port, but router can send the registration of a mark for carrying router according to well-known IP address to STUN servers Request, after which can be public network IP address and port by NAT device by the private IP address of router and port mapping Be sent to STUN servers, STUN servers parse the public network IP address that router can be known after the registration request, port and The mark of router.
The mark for public network IP address, port and the router that STUN server receiving routers report, and by the router Public network IP address, port and router mark be associated storage.
In step 602, client sends Router Distinguisher to STUN servers;
Because STUN servers possess well known IP address, thus client can send institute to this well known IP address The mark of the router for the router to be controlled.Router Distinguisher is unique fixed letter specific to each router Breath, client send it to STUN servers after the mark of router is obtained ahead of time, and STUN servers can be according to routing The mark of device learns which router is terminal will control.
In step 603, public network IP address and port of the STUN servers to client feedback router
STUN servers are after receiving the mark of router of client transmission, according to the inquiry pair of the mark of the router The public network IP address answered and port, then to the public network IP address of client feedback router corresponding with the mark of the router The port and.
After client obtains public network IP address and the port of router 120, so that it may be connected with establishing communication with router 120 It connects.
In step 604, client generates control data for the application in router, and at least one is equipped in router A application;
Only there are one in application, the control data that client generates is only included to this application for installation in the router Control instruction;
Be equipped in the router more than one in application, control data include the corresponding application of control data mark and Control instruction, client encapsulate to obtain control data according to the application identities and control instruction of application;Wherein control instruction includes At least one of open command, out code and parameter setting instruction.
And the application installed in router is divided into two kinds:
The first application is the application corresponding to router, and control data is opened for controlling router, control application is closed It closes or controls router and execute predetermined operation;
Second of application is the application corresponding to the other terminals for being in same LAN with router, and control data is used for Control application is opened, control application is closed, control application is held from other data acquisition of terminal, or the instruction other terminals of application control Row predetermined operation.
I.e. application is divided into the application of control router 120 and that control and router 120 be in same LAN is second whole The application at end 130.
In the present embodiment, user can utilize client, be instructed according to the order input control that desired router executes And application identities, client encapsulate control instruction input by user and application identities to obtain control data.
In step 605, client sends control data according to the public network IP address and port of router to router.
Router receives the control data that client is sent by public network network.
In step 606, control data is transferred to application execution control operation by router.
In conclusion router control method provided in this embodiment, by public network network to router and its installation Using remote control is carried out, the control method for solving router in the related technology is only applicable to pass through Intranet net with router The problem of computer that network is connected;Achieve the effect that remote control can be carried out to the application of router and its installation.
It should be added that step 604 needs to execute before step 605, the execution sequence of step 607 is originally Embodiment is not limited.
It should be added that since the use of current NAT device is very universal, and the present embodiment is by using STUN Server allows client to establish connection with the router being connected to after NAT device, allows client to being connected to NAT Router after equipment carries out remote control, greatly strengthens disclosure practicability.
Fig. 7 is a kind of flow chart of the router control method shown according to another exemplary embodiment, the present embodiment with The router control method is applied to illustrate when the implementation environment in Fig. 5 and server 140 are Relay Server.The routing Device control method may include the following steps:
In step 701, router and Relay Server establish communication connection;
Since there are one well known IP address for Relay Server tool, thus router can send one to Relay Server Registration request after Relay Server receives the registration request, establishes communication connection, router is by itself router with router Mark be sent to Relay Server, Relay Server binds the mark received and the router.
In a step 702, client generates control data for the application in router, and at least one is equipped in router A application;
Only there are one in application, the control data that client generates is only included to this application for installation in the router Control instruction;
Be equipped in the router more than one in application, control data include the corresponding application of control data mark and Control instruction, client encapsulate to obtain control data according to the application identities and control instruction of application;Wherein control instruction includes At least one of open command, out code and parameter setting instruction.
And the application installed in router is divided into two kinds:
The first application is the application corresponding to router, and control data is opened for controlling router, control application is closed It closes or controls router and execute predetermined operation;
Second of application is the application corresponding to the other terminals for being in same LAN with router, and control data is used for Control application is opened, control application is closed, control application is held from other data acquisition of terminal, or the instruction other terminals of application control Row predetermined operation.
I.e. application is divided into the application of control router 120 and that control and router 120 be in same LAN is second whole The application at end 130.
In the present embodiment, user can utilize client, be instructed according to the order input control that desired router executes And application identities, client encapsulate control instruction input by user and application identities to obtain control data.
In step 703, client sends the mark and control data of router to Relay Server;
Because Relay Server is gathered around, there are one well known IP address, thus control data can be directly sent to by client Relay Server.
In the present embodiment, client sends control data and the router 120 to be controlled to Relay Server 140 Mark.
In step 704, control data is transmitted to router by Relay Server according to the mark of router.
Relay Server is connect according to the mark inquiry of router with the communication of the mark binding of the router, then should Control data is transmitted to router by communication connection.
Router receives the control data that Relay Server is sent;Control data is that client sends road to Relay Server After the mark and control data of device, Relay Server is forwarded according to the mark of router;
Because Relay Server and router foundation have communication relations, thus Relay Server can will be received from client It is transmitted to router to control data.
In the present embodiment, Relay Server 140 is in the control data for receiving client transmission and the road to be controlled After mark by device 120, according to the mark of router 120, control data is transmitted to router 120.
In step 705, router parses control data, obtains the application identities carried in control data and control refers to It enables, control instruction includes at least one of open command, out code and parameter setting instruction;
The Relay Server of the present embodiment meaning is gathered around has communication there are one well known IP address and in advance with router foundation Relationship thus while client is not aware that IP address and the port of router, but can be controlled by Relay Server transfer Request, to achieve the effect that remote control.
In step 706, control data is transferred to application execution control operation by router;
In conclusion router control method provided in this embodiment, by public network network to router and its installation Using remote control is carried out, the control method for solving router in the related technology is only applicable to pass through Intranet net with router The problem of computer that network is connected;Achieve the effect that remote control can be carried out to the application of router and its installation.
It should be added that since the use of current NAT device is very universal, and the present embodiment is by using relaying Transit server control data allows client to carry out remote control to the router after being connected to NAT device, increases greatly Strong disclosure practicability.
Fig. 8 is a kind of block diagram of router control device shown according to an exemplary embodiment, router control dress Setting being implemented in combination with as some or all of of terminal by software, hardware or both.The router control device May include:Request to generate module 810 and request sending module 830;
Module 810 is requested to generate, is configured as generating control data for the application in router, is equipped in router At least one application;
Request sending module 830 is configured as sending control data to router by public network network, and router is used for will Control data passes to application.
In conclusion router control device provided in this embodiment, by public network network to router and its installation Using remote control is carried out, the control method for solving router in the related technology is only applicable to pass through Intranet net with router The problem of computer that network is connected;Achieve the effect that remote control can be carried out to the application of router and its installation.
Fig. 9 is a kind of block diagram of the router control device shown according to another exemplary embodiment, router control Device being implemented in combination with as some or all of of terminal by software, hardware or both.Router control dress It sets and may include:Request to generate module 810 and request sending module 830;
Module 810 is requested to generate, is configured as generating control data for the application in router, is equipped in router At least one application;
Request sending module 830 is configured as sending control data to router by public network network, and router is used for will Control data passes to application.
Optionally, module 810 is requested to generate, including:Instruction generation unit 811 and request to generate unit 812;
Instruction generation unit 811 is configured as generating control instruction for the application in router, and control instruction includes opening Open at least one of instruction, out code and parameter setting instruction;
Unit 812 is requested to generate, is configured as encapsulating to obtain control data according to the application identities and control instruction of application.
Optionally, request sending module 830, including:Transmission unit 831, address receiving unit 832 and request is identified to send Unit 833;
Transmission unit 831 is identified, is configured as sending the mark of router to server;
Address receiving unit 832 is configured as receiving public network IP address and the port of the router of server feedback, public network IP address and port are that router is reported to server;
Request transmitting unit 833 is configured as sending control to router according to the public network IP address and port of router Request.
Optionally, request sending module 830 further include:
Transmission unit 834 is relayed, is configured as sending the mark and control data of router, middle following the service to Relay Server Business device is used to that control data to be transmitted to router according to the mark of router.
Optionally, application for corresponding to router in application, control data for control application open, control apply It closes or control router executes predetermined operation;Or,
Application for corresponding to the other terminals for be in same LAN with router in application, control data be used for control System application is opened, control application is closed, control application is executed from other data acquisition of terminal, or the other terminals of instruction application control Predetermined operation.
In conclusion router control device provided in this embodiment, by public network network to router and its installation Using remote control is carried out, the control method for solving router in the related technology is only applicable to pass through Intranet net with router The problem of computer that network is connected;Achieve the effect that remote control can be carried out to the application of router and its installation.
Figure 10 is a kind of block diagram of the router control device shown according to another exemplary embodiment, router control Device being implemented in combination with as some or all of of terminal by software, hardware or both.Router control dress It sets and may include:Request receiving module 1010 and request transmission module 1030;
Request receiving module 1010 is configured as receiving the control data that client is sent by public network network, and control is asked What Seeking Truth client was generated and was sent for the application in router, at least one application is installed in router;
Transmission module 1030 is asked, is configured as control data being transferred to application execution control operation.
In conclusion router control device provided in this embodiment, by public network network to router and its installation Using remote control is carried out, the control method for solving router in the related technology is only applicable to pass through Intranet net with router The problem of computer that network is connected;Achieve the effect that remote control can be carried out to the application of router and its installation.
Figure 11 is a kind of block diagram of the router control device shown according to another exemplary embodiment, router control Device being implemented in combination with as some or all of of terminal by software, hardware or both.Router control dress It sets and may include:Request receiving module 1010 and request transmission module 1030;
Request receiving module 1010 is configured as receiving the control data that client is sent by public network network, and control is asked What Seeking Truth client was generated and was sent for the application in router, at least one application is installed in router;
Transmission module 1030 is asked, is configured as control data being transferred to application execution control operation.
Optionally, transmission module 1030 is asked, including:Request analysis unit 1031 and instruction transfer unit 1032;
Request analysis unit 1031, be configured as parsing control data, obtain the application identities carried in control data and Control instruction, control instruction include at least one of open command, out code and parameter setting instruction;
Transfer unit 1032 is instructed, is configured as control instruction passing to application corresponding with application identities.
Optionally, request receiving module 1010, including:
Client receiving unit 1011 is configured as receiving client according to the public network IP address of router and port to road The control data sent by device;Public network IP address and port be user end to server send router mark after, by servicing Device feeds back to client, and public network IP address and port are that router is reported to server in advance.
Optionally, receiving module 1010 is asked, further includes:
Relay reception unit 1012 is configured as receiving the control data that Relay Server is sent;Control data is client It holds after the mark and control data that Relay Server sends router, Relay Server is forwarded according to the mark of router.
Optionally, application for corresponding to router in application, control data for control application open, control apply It closes or control router executes predetermined operation;Or,
Application for corresponding to the other terminals for be in same LAN with router in application, control data be used for control System application is opened, control application is closed, control application is executed from other data acquisition of terminal, or the other terminals of instruction application control Predetermined operation.
In conclusion router control device provided in this embodiment, by public network network to router and its installation Using remote control is carried out, the control method for solving router in the related technology is only applicable to pass through Intranet net with router The problem of computer that network is connected;Achieve the effect that remote control can be carried out to the application of router and its installation.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 12 is a kind of block diagram of device 1200 for router control shown according to an exemplary embodiment.Example Such as, device 1200 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, and tablet is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig.1 2, device 1200 may include following one or more components:Processing component 1202, memory 1204, Power supply module 1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor module 1214 and communication component 1216.
The integrated operation of 1202 usual control device 1200 of processing component, such as with display, call, data communication, Camera operation and record operate associated operation.Processing component 1202 may include one or more processors 1220 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more moulds Block, convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module, To facilitate the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in device 1200.These data Example includes the instruction for any application program or method that are operated on device 1200, contact data, telephone book data, Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1206 provides electric power for the various assemblies of device 1200.Power supply module 1206 may include power management System, one or more power supplys and other generated with for device 1200, management and the associated component of distribution electric power.
Multimedia component 1208 is included in the screen of one output interface of offer between device 1200 and user.At some In embodiment, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Touch screen is may be implemented as, to receive input signal from the user.Touch panel includes one or more touch sensors To sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, But also it detects and touch or the relevant duration and pressure of slide.In some embodiments, multimedia component 1208 Including a front camera and/or rear camera.When device 1200 is in operation mode, such as screening-mode or video mode When, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition camera shooting Head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes a wheat Gram wind (MIC), when device 1200 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1204 or via communication Component 1216 is sent.In some embodiments, audio component 1210 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 1212 provide interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor module 1214 includes one or more sensors, and the state for providing various aspects for device 1200 is commented Estimate.For example, sensor module 1214 can detect the state that opens/closes of device 1200, the relative positioning of component, such as group Part is the display and keypad of device 1200, and sensor module 1214 can be with 1,200 1 groups of detection device 1200 or device The position change of part, the existence or non-existence that user contacts with device 1200,1200 orientation of device or acceleration/deceleration and device 1200 temperature change.Sensor module 1214 may include proximity sensor, be configured to connect in not any physics It is detected the presence of nearby objects when tactile.Sensor module 1214 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1200,2G or 3G or combination thereof.It is exemplary at one In embodiment, communication component 1216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 1216 further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application application-specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 1220 of device 1200 to complete the above method.Example Such as, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and Optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is held by the processor of device 1200 When row so that device 1200 is able to carry out the router control method that above-mentioned each embodiment provides.
Figure 13 is a kind of block diagram of device 1300 for router control shown according to an exemplary embodiment.Example Such as, device 1300 may be provided as a router.Referring to Fig.1 3, device 1300 includes processing component 1322, is further wrapped One or more processors are included, and by the memory resource representated by memory 1332, it can be by processing component for storing 1322 instructions executed, such as application program.The application program stored in memory 1332 may include one or more Each correspond to one group of instruction module.In addition, processing component 1322 is configured as executing instruction, to execute above-mentioned routing Device control method.
Device 1300 can also include that a power supply module 1326 be configured as the power management of executive device 1300, one Wired or wireless network interface 1350 is configured as device 1300 being connected to network and input and output (I/O) interface 1358.Device 1300 can be operated based on the operating system for being stored in memory 1332, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (14)

1. a kind of router control method, which is characterized in that it is used in client, the method includes:
Control data is generated for the application in router, at least one application is installed in the router;
The mark of the router is sent to server;
Public network IP address and the port of the router of the server feedback are received, the public network IP address and port are institutes State what router was reported to the server;
The control data is sent to the router according to the public network IP address of the router and port, the router is used In the control data is passed to the application;
The application be corresponding to the other terminals for being in same LAN with the router in application, the control is asked It asks and is opened for controlling the application, control the application closing, control the application from other data acquisition of terminal, or Indicate that other terminals described in the application control execute predetermined operation.
2. according to the method described in claim 1, it is characterized in that, the application in router generates control data, Including:
Control instruction is generated for the application in the router, the control instruction includes open command, out code and ginseng At least one of number setting instruction;
It encapsulates to obtain the control data according to the application identities of the application and the control instruction.
3. method according to claim 1 or 2, which is characterized in that the method further includes:
The application be corresponding to the router in application, the control data opened for controlling the application, control It makes the application and closes or control the router execution predetermined operation.
4. a kind of router control method, which is characterized in that it is used in router, the method includes:
Receive the control data that client is sent according to the public network IP address and port of the router to the router; It is anti-by the server after the public network IP address and port are the mark that the user end to server sends the router It feeds the client, and the public network IP address and port are that the router is reported to the server in advance, institute State control data to be the client generate and send for the application in the router, be equipped in the router to A few application;
The control data is transferred to the application execution control operation;
The application be corresponding to the other terminals for being in same LAN with the router in application, the control is asked It asks and is opened for controlling the application, control the application closing, control the application from other data acquisition of terminal, or Indicate that other terminals described in the application control execute predetermined operation.
5. according to the method described in claim 4, it is characterized in that, described be transferred to the application execution by the control data Control operation, including:
The control data is parsed, the application identities carried in the control data and control instruction, the control instruction are obtained Including at least one of open command, out code and parameter setting instruction;
The control instruction is passed into application corresponding with the application identities.
6. method according to claim 4 or 5, which is characterized in that the method further includes:
The application be corresponding to the router in application, the control data opened for controlling the application, control It makes the application and closes or control the router execution predetermined operation.
7. a kind of router control device, which is characterized in that described device includes:
Request to generate module, be configured as generating control data for the application in router, be equipped in the router to A few application;
Transmission unit is identified, is configured as sending the mark of the router to server;
Address receiving unit is configured as receiving public network IP address and the port of the router of the server feedback, institute It is that the router is reported to the server to state public network IP address and port;
Request transmitting unit is configured as public network IP address and port according to the router to described in router transmission Control data, the router are used to the control data passing to the application;
For the application be corresponding to the other terminals for being in same LAN with the router in application, the control Request is made to open for controlling the application, control the application closing, control the application from other terminals acquisition numbers According to, or other terminals execution predetermined operations described in the instruction application control.
8. device according to claim 7, which is characterized in that it is described to request to generate module, including:Instruction generation unit and Request to generate unit;
Described instruction generation unit is configured as generating control instruction, the control instruction for the application in the router Including at least one of open command, out code and parameter setting instruction;
It is described to request to generate unit, it is configured as being encapsulated to obtain according to the application identities and the control instruction of the application described Control data.
9. device according to claim 7 or 8, which is characterized in that corresponding device further includes:
The application be corresponding to the router in application, the control data opened for controlling the application, control It makes the application and closes or control the router execution predetermined operation.
10. a kind of router control device, which is characterized in that described device includes:
Client receiving unit is configured as receiving client according to the public network IP address of the router and port to the road The control data sent by device;The public network IP address and port are that the user end to server sends the router Mark after, by the server feedback to the client, and the public network IP address and port are that the router is pre- It is first reported to the server, at least one application is installed in the router;
Transmission module is asked, is configured as the control data being transferred to the application execution control operation;
For the application be corresponding to the other terminals for being in same LAN with the router in application, the control Request is made to open for controlling the application, control the application closing, control the application from other terminals acquisition numbers According to, or other terminals execution predetermined operations described in the instruction application control.
11. device according to claim 10, which is characterized in that the request transmission module, including:Request analysis unit With instruction transfer unit;
The request analysis unit is configured as parsing the control data, obtains the application mark carried in the control data Know and control instruction, the control instruction include at least one of open command, out code and parameter setting instruction;
Described instruction transfer unit is configured as the control instruction passing to application corresponding with the application identities.
12. the device according to claim 10 or 11, which is characterized in that corresponding device further includes:
The application be corresponding to the router in application, the control data opened for controlling the application, control It makes the application and closes or control the router execution predetermined operation.
13. a kind of router control device, which is characterized in that including:
Processor;
Memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
Control data is generated for the application in router, at least one application is installed in the router;
The mark of the router is sent to server;
Public network IP address and the port of the router of the server feedback are received, the public network IP address and port are institutes State what router was reported to the server;
The control data is sent to the router according to the public network IP address of the router and port, the router is used In the control data is passed to the application;
The application be corresponding to the other terminals for being in same LAN with the router in application, the control is asked It asks and is opened for controlling the application, control the application closing, control the application from other data acquisition of terminal, or Indicate that other terminals described in the application control execute predetermined operation.
14. a kind of router control device, which is characterized in that including:
Processor;
Memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
Receive the control data that client is sent according to the public network IP address and port of the router to the router; It is anti-by the server after the public network IP address and port are the mark that the user end to server sends the router It feeds the client, and the public network IP address and port are that the router is reported to the server in advance, institute It states and at least one application is installed in router;
The control data is transferred to the application execution control operation;
The application be corresponding to the other terminals for being in same LAN with the router in application, the control is asked It asks and is opened for controlling the application, control the application closing, control the application from other data acquisition of terminal, or Indicate that other terminals described in the application control execute predetermined operation.
CN201410302846.0A 2014-06-27 2014-06-27 Router control method and device Active CN104135443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410302846.0A CN104135443B (en) 2014-06-27 2014-06-27 Router control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410302846.0A CN104135443B (en) 2014-06-27 2014-06-27 Router control method and device

Publications (2)

Publication Number Publication Date
CN104135443A CN104135443A (en) 2014-11-05
CN104135443B true CN104135443B (en) 2018-07-27

Family

ID=51807967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410302846.0A Active CN104135443B (en) 2014-06-27 2014-06-27 Router control method and device

Country Status (1)

Country Link
CN (1) CN104135443B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539454B (en) 2014-12-24 2018-09-04 小米科技有限责任公司 Device management method, apparatus and system
CN104615456B (en) 2014-12-30 2019-02-05 联想(北京)有限公司 A kind of information processing method and control device
CN105991698A (en) * 2015-02-06 2016-10-05 中科云网科技集团股份有限公司 Method, system and device for mobile terminal remotely managing intelligent router file
CN105245359B (en) * 2015-09-07 2018-09-28 上海斐讯数据通信技术有限公司 A kind of router method for remote management, system and equipment
CN105429884A (en) * 2015-10-30 2016-03-23 上海斐讯数据通信技术有限公司 Method and system of managing routers in different networks through terminal
CN108199933B (en) * 2017-12-29 2021-05-28 美的智慧家居科技有限公司 Household appliance operation control method, system, router and computer readable storage medium
CN109995660B (en) * 2017-12-29 2021-12-17 深圳市优必选科技有限公司 Streaming media transmission method and device, terminal equipment and computer readable storage medium
CN114510303A (en) * 2020-10-27 2022-05-17 华为技术有限公司 Remote assistance method, electronic device, system and storage medium
CN113572886A (en) * 2021-06-08 2021-10-29 荣耀终端有限公司 Router control method, router control device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915627A (en) * 2012-09-25 2013-02-06 金同磊 Method, system and household electrical appliance controller for controlling traditional household electrical appliances
CN103529788A (en) * 2013-10-16 2014-01-22 陈迪 Remote cloud household electric appliance control equipment
CN103812921A (en) * 2012-11-12 2014-05-21 (株)庆东One Heating system remote control and management device using a smart phone application and its method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101438256B (en) * 2006-03-07 2011-12-21 索尼株式会社 Information processing device, information communication system, information processing method
CN103699073A (en) * 2013-12-11 2014-04-02 周良文 Household appliance control system and method based on intelligent routing equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915627A (en) * 2012-09-25 2013-02-06 金同磊 Method, system and household electrical appliance controller for controlling traditional household electrical appliances
CN103812921A (en) * 2012-11-12 2014-05-21 (株)庆东One Heating system remote control and management device using a smart phone application and its method
CN103529788A (en) * 2013-10-16 2014-01-22 陈迪 Remote cloud household electric appliance control equipment

Also Published As

Publication number Publication date
CN104135443A (en) 2014-11-05

Similar Documents

Publication Publication Date Title
CN104135443B (en) Router control method and device
CN104639549B (en) Apparatus bound method and apparatus
US11132275B2 (en) Accessory communication control
RU2646390C1 (en) Method and device of binding device
CN104460365B (en) Apparatus control method and device
CN104936304B (en) Smart machine binding method, smart machine and server
US9270931B2 (en) Intercom system utilizing Wi-Fi
CN104765990B (en) The setting method and device of intelligent device management account
CN105163366B (en) Wireless network connecting method and device
CN105245595B (en) service response method and device
CN105162728B (en) Method for network access, equipment and system
CN109391634A (en) Establish method, terminal and the computer readable storage medium of communication
CN103888290A (en) Configuration information recovery method and device
KR20210153017A (en) Device network configuration method and apparatus, and medium
CN109407528A (en) Safety access method, device, server and storage medium
CN106452924A (en) Method and device for synchronizing wireless network configuration
CN106506562B (en) Method for connecting network, device and the smart machine of smart machine
CN104113530A (en) Method and apparatus for router access
CN105099517B (en) Connect method for building up and device
CN104036626A (en) Method and device for remote control on intelligent terminal
CN106789470A (en) terminal resource sharing method, device and system
CN104837178A (en) Network accessing method and device
CN106535194B (en) Screen content sharing method, apparatus and system
CN107302478A (en) The long-range control method and system of a kind of smart home
US9226223B2 (en) Network connection system of network electronic device and method allowing a terminal device to access an electronic device connected behind a router without a NAT loopback function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant