Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of an implementation environment related to a router management method according to an embodiment of the present invention. The implementation environment includes: aserver 110, aterminal 120, and at least onerouter 130 bound to the terminal.
Theserver 110 may be a server, a server cluster composed of several servers, or a cloud computing service center. Theserver 110 is used to provide a communication data streaming service to the terminal.
Theterminal 120 is a mobile communication device. Theterminal 120 may be a mobile phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, mpeg Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, mpeg Audio Layer 3), a laptop, a desktop computer, or the like.
The terminal 120 and theserver 110 may be connected through a wireless network or a wired network.
Therouter 130 and theserver 110 may be connected through a wireless network or a wired network.
Referring to fig. 2, a flowchart of a method for managing a router according to an embodiment of the present invention is shown. The embodiment is illustrated by applying the router management method to the implementation environment shown in fig. 1. On the server side, the router management method comprises the following steps:
step 201, receiving a terminal identifier and a route management instruction sent by a terminal.
And step 202, inquiring a router bound with the terminal according to the terminal identification.
Step 203, sending the route management command to the router according to the management connection established with the router.
The router is used for executing predetermined operation according to the routing management instruction.
In summary, in the router management method provided in this embodiment, the server receives the terminal identifier and the route management instruction sent by the terminal, queries the router bound to the terminal according to the terminal identifier, and sends the route management instruction to the router according to the management connection established with the router. The invention solves the problem that the router cannot be controlled when the equipment used by the user is in a public network environment, thereby expanding the network types suitable for the user to manage the router through the used terminal.
Referring to fig. 3, a flowchart of a router management method according to another embodiment of the present invention is shown. The embodiment is illustrated by applying the router management method to the implementation environment shown in fig. 1. On the router side, the router management method comprises the following steps:
step 301, receiving a route management command sent by a server.
The route management instruction is sent by the server according to the management connection established with the router after the server receives the terminal identification and the route management instruction sent by the terminal, inquires the router bound with the terminal according to the terminal identification.
Step 302, according to the route management instruction, executing the predetermined operation.
In summary, in the router management method provided in this embodiment, the router receives the route management instruction sent by the server, and executes the predetermined operation corresponding to the route management instruction. The invention solves the problem that the router cannot be controlled when the equipment used by the user is in a public network environment, thereby expanding the network types suitable for the user to manage the router through the used terminal.
Referring to fig. 4, a flowchart of a router management method according to another embodiment of the present invention is shown. The embodiment is illustrated by applying the router management method to the implementation environment shown in fig. 1. On the terminal side, the router management method comprises the following steps:
step 401, a route management instruction for managing the router bound with the terminal is generated.
Step 402, sending a terminal identification and a route management instruction to a server.
The server is used for inquiring a router bound with the terminal according to the terminal identification; and sending the routing management instruction to the router according to the management connection established with the router, wherein the router is used for executing the preset operation according to the routing management instruction.
In summary, in the router management method provided in this embodiment, the terminal generates a route management instruction for managing the router bound to the terminal, and sends the terminal identifier and the route management instruction to the server, so that the server sends the route management instruction to the router that establishes management connection with the server according to the terminal identifier and the route management instruction, so that the router performs a predetermined operation according to the route management instruction. The invention solves the problem that the router cannot be controlled when the equipment used by the user is in a public network environment, thereby expanding the network types suitable for the user to manage the router through the used terminal.
The method for implementing router management in the embodiment shown in fig. 5 includes the following 3 stages, among them:
in the first stage, a terminal acquires a router identifier and sends a request for binding with a router to a server;
in the second stage, a management connection is established between the router and the server;
and in the third stage, the terminal logs in the server to remotely manage the router. The details are as follows:
referring to fig. 5, a flowchart of a method for managing a router according to another embodiment of the present invention is shown. As a more preferred embodiment provided based on any one of the embodiments shown in fig. 2 to fig. 4, in this embodiment, a specific implementation manner of a user logging in a server through a terminal used by the user to remotely manage a router bound to the terminal is described in detail. The router management method comprises the following steps:
the first stage is as follows:
step 501, the terminal obtains the router identifier through a predetermined mode.
Wherein, predetermined mode includes: and receiving user input, calculating according to the network card address of the router to obtain, scan any one of the two-dimensional code and the bar code.
In the embodiment provided by the present invention, the method for acquiring a router identifier is described by taking an example that a terminal calculates according to a network card address of a router, where the terminal acquires a network card MAC address of the router, converts a binary system of 6 bytes into a character string corresponding to a binary system of 16, generates a binary system of 32 bytes by using an MD5 (fifth version of Message Digest MD 5) Algorithm, and then converts the binary system into a character string corresponding to a binary system of 16, and the finally obtained character string of 16 is the router identifier.
In addition, in the process of acquiring the route identifier, the following method is also included:
for example, in the mode a, the router identifier is located on the parameter detail of the router device in a character string form, and the terminal obtains the router identifier through user input;
and b, the router identification is positioned on the parameter detail of the router equipment in a two-dimensional code or bar code mode, the terminal converts the two-dimensional code or bar code in the picture form into a character string by scanning the two-dimensional code or bar code, and the character string is used as the router identification.
The method for acquiring the router identifier in the embodiment of the invention is explained by taking the calculation of the terminal according to the network card address of the router as an example, and the method for realizing the router management is subject to no limitation on the acquisition mode of the router identifier.
Step 502, the terminal sends a binding request to the server.
Wherein, the binding request carries the terminal identifier and the router identifier.
In step 503, the server receives the binding request sent by the terminal.
In step 504, the server adds the terminal identifier and the router identifier to the first mapping relationship.
The server binds the terminal identifier and the router identifier sent by the terminal according to the binding request, and stores the binding relationship between the bound router identifier and the terminal identifier as a first corresponding relationship. Therefore, when the user needs to manage the router, the first corresponding relation with the router can be selected through the login server, and a management instruction is issued to the router.
Referring to fig. 6, it shows the process of binding the terminal id and the router id in the server when the user logs in the server for the first time through the used terminal. The terminal in fig. 6 is exemplified by a computer, and a user inputs an address of a server in an address bar of a browser through the computer used by the user to log in the server, and inputs a terminal identifier "PCXWAD" and a router identifier "2345 AFD" into a routing management system of the server, thereby completing registration and binding of the terminal and the router in the server.
The server here adding the terminal identification and the router identification to the first correspondence may be as shown in table 1, where table 1,
TABLE 1
| Terminal identification | Router identification |
| PCXWAD | 2345AFD |
Wherein the terminal identity and the router identity are stored in the first correspondence as shown in table 1.
The terminal identifier "PCXWAD" and the router identifier "2345 AFD" provided in step 504 are only illustrated for the purpose of implementing the management method of the router provided in the present invention, and the specific representation manner of the terminal identifier and the router identifier is based on the actual terminal identifier and the router identifier, and is not limited specifically.
And a second stage:
step 505, the router establishes a management connection with the server.
Before the router establishes the management connection with the server, the router can start the downloaded management program in the router to connect with the server, so that the management connection between the router and the server is established.
The router sends the router identification to the server via the management connection, step 506.
In step 507, the server receives the router identification sent by the router through the management connection.
The server adds the management connection and the router identification to the second correspondence, step 508.
The server stores the router identification and the second corresponding relation of the management connection.
Optionally, in step 509, the router sends a heartbeat signal to the server.
The heartbeat signal sent by the router to the server may be a state signal of the router sent to the server in a predetermined period.
For example, the router sends a status signal to the server every 5 minutes, so that the server can know the current running state of the router according to the status signal.
For example, when a router is "stuck" in transmitting data, the server may know that the router is currently "stuck" based on the state signal when transmitting the latest state signal to the server.
Step 510, the server receives the heartbeat signal sent by the router.
Step 511, the server maintains the management connection with the router according to the heartbeat signal.
When the heartbeat signal received by the server is abnormal, the server sends prompt information to a terminal used by the user to inform the user that the current router is blocked, so that the user can enter a third stage according to the received prompt information and manage the router through a login server.
And a third stage:
in step 512, the terminal generates a routing management command for managing the router bound to the terminal.
The method for generating the route management instruction for managing the router bound with the terminal by the terminal comprises the following steps:
(1) generating a starting instruction, wherein the starting instruction is used for triggering the router to execute starting operation;
for example, when the terminal needs to open the router, an opening instruction is generated, so that the opening instruction is sent to the router through the management connection between the server and the router, and the router executes the boot program according to the opening instruction.
(2) Generating a closing instruction, wherein the closing instruction is used for triggering the router to execute shutdown operation;
in addition, when the user forgets to turn off the power supply of the router when going out of the door, a turn-off instruction for turning off the router can be generated through the terminal, so that the server sends the turn-off instruction to the router through the management connection with the router, and the router executes a shutdown program according to the turn-off instruction.
(3) Generating a router operation parameter setting instruction, wherein the router operation parameter setting instruction is used for triggering a router to execute parameter setting operation;
or, when the user avoids the situation that the utilization rate of the used bandwidth is low, the user adjusts the uplink and downlink bandwidth peak values through the used terminal, and takes the adjusted uplink and downlink bandwidth peak values as the router operation parameter setting instruction, so that the server sends the router operation parameter setting instruction to the router through the management connection with the router, and the router executes to readjust the uplink and downlink bandwidth peak values according to the router operation parameter setting instruction, thereby improving the bandwidth utilization rate problem.
(4) Generating a new downloading task instruction, wherein the new downloading task instruction is used for triggering the router to execute the new downloading task operation;
or when the user wants to download the movie A, the user generates a new download task instruction through the used terminal, so that the server sends the new download task instruction to the router through the management connection with the router, and the router executes the download of the movie A according to the new download task instruction.
(5) Generating a pause downloading task instruction, wherein the pause downloading task instruction is used for triggering the router to execute pause downloading task operation;
moreover, when the user finds that the currently downloaded movie A occupies 90% of the bandwidth proportion and affects bandwidth requirements required by other online devices currently and simultaneously, the user generates a pause downloading task instruction through the used terminal, so that the server sends the pause downloading task instruction to the router through the management connection with the router, and the router executes pause downloading of the movie A according to the pause downloading task instruction.
(6) Generating a download task deleting instruction, wherein the download task deleting instruction is used for triggering the router to execute the download task deleting operation;
in addition, when the user finds that the used terminal memory reaches the storage limit, in order to ensure the normal use of the terminal, the user generates a download task deleting instruction through the used terminal, so that the server sends the download task deleting instruction to the router through the management connection with the router, and the router executes the deletion of the download of the movie A according to the download task deleting instruction.
(7) And generating a multimedia resource access instruction, wherein the multimedia resource access instruction is used for triggering the router to execute the resource transmission operation.
Here, the multimedia resource in the multimedia resource access command may be: movies, television dramas, animations, micro-movies, online friends autodyne uploading videos, news, music, online reading and other resources.
When a user wants to watch the video A on line, the user generates a multimedia resource access instruction through a used terminal, so that the server sends the multimedia resource access instruction to the router through the management connection with the router, and the router executes a data request when the video A is sent to the server according to the multimedia resource access instruction.
In the third stage of the embodiment provided by the present invention, the route management instruction is described by taking a newly-built download task instruction as an example.
Step 513, the terminal sends the terminal identifier and the route management instruction to the server.
And the terminal sends the terminal identification and the newly-built downloading task instruction to the server. In the embodiment provided by the present invention, the terminal is described by taking a computer as an example, and therefore the terminal identifier is represented by taking "PCXWAD" as an example. It should be noted that the terminal identifier is used to identify the identity of the user, and different terminals of the same user may share the same terminal identifier.
Here, the terminal identifier and the route management instruction sent by the terminal to the server have the following two cases:
the first condition is as follows: and the terminal encapsulates the terminal identification in the routing management instruction and sends the routing management instruction to the server.
For example, when a user needs to download movie a, the terminal generates a new download task instruction, and sends the terminal identifier of the used terminal and the new download task instruction to the server.
Case two: and the terminal respectively sends the terminal identification and the route management instruction to the server.
For example, when a user logs in a server through a used terminal, the terminal identifier is first sent to the server, and then, in the use process after logging in, a routing management instruction can be sent separately along with the change of the demand on the movie a. The route management instruction may be: newly building a download task instruction, suspending the download task instruction or deleting the download task instruction. Namely, different route management instructions are sent according to the requirements of users.
In step 514, the server receives the terminal identifier and the route management command sent by the terminal.
And the server receives a terminal identifier 'PCXWAD' and a newly-built downloading task instruction sent by the terminal.
Step 515, the server queries the router bound to the terminal according to the terminal identifier.
The server queries, according to the terminal identifier, the router bound to the terminal in the stored first correspondence, as shown in table 2,
TABLE 2
| Terminal identification | Router identification |
| PCXWAD | 2345AFD |
| PadUWSD | 2648BFD |
Specifically, the server querying a router bound to the terminal according to the terminal identifier includes:
and the server inquires the router bound with the terminal in the first corresponding relation according to the terminal identifier.
Wherein, the first corresponding relation comprises the binding relation between different terminal identifications and different router identifications.
The server queries the terminal identifier "PCXWAD" in table 2 to obtain the router bound with the "PCXWAD" as the router identified as "2345 AFD".
Optionally, after the server queries the router bound to the terminal in the first corresponding relationship according to the terminal identifier, the method further includes:
a. and if the number of the routers which are inquired by the server and bound with the terminal is two or more, receiving a selection signal sent by the terminal.
And if the number of the routers bound with the PCXWAD inquired by the server is at least two, the server receives a selection signal sent by the terminal.
That is, if the routers bound to the "PCXWAD" inquired by the server are the router a and the router B, the server receives the selection signal transmitted from the terminal. As shown in table 3 in detail,
TABLE 3
| Terminal identification | Router identification |
| PCXWAD | 2345AFD |
| PCXWAD | 2548DBC |
| PadUWSD | 2648BFD |
| PHONEQWSD | 3425CFD |
As shown in Table 3, a computer with a terminal identification of "PCXWAD" is bound to a router A with a router identification of "2345 AFD" and a router B with a router identification of "2548 DBC".
b. And the server determines a router corresponding to the routing management instruction according to the selection signal.
And the server determines a router corresponding to the routing management instruction according to the selection signal.
That is, when the selection signal received by the server is the selected router a, the server determines that the router a is the router to which the user needs to send the newly-built download task instruction.
The server sends 516 a route management instruction to the router based on the management connection established with the router.
Here, the route management command differs from the route management command transmitted by the terminal in that the encapsulation form of the route management command may be different, but the content of the route management command is not changed.
Step 517, the router receives the route management command sent by the server.
In step 518, the router performs predetermined operations according to the route management instructions.
The router executes predetermined operations according to the route management instruction, and the predetermined operations comprise:
when the routing management instruction is a starting instruction, executing starting operation;
when the routing management instruction is a closing instruction, executing shutdown operation;
when the routing management instruction is an instruction for setting the running parameters of the router, executing parameter setting operation;
when the routing management instruction is a new downloading task instruction, executing new downloading task operation;
when the route management instruction is a download task pause instruction, executing download task pause operation;
when the routing management instruction is a download task deleting instruction, executing download task deleting operation;
and when the routing management instruction is a multimedia resource access instruction, executing resource transmission operation.
The router performs the corresponding predetermined operation according to the received route management instruction, as shown in step 512.
That is, the router a executes the operation of downloading the movie a according to the received new download task instruction.
Referring to fig. 7, the third stage of combining steps 512 to 518 shows a process in which a user logs in a server through a computer, and then issues a routing management instruction by selecting a binding router.
That is, as shown in fig. 7, the user inputs the website of the server, selects the router a bound with the terminal identifier "PCXWAD", selects the "new download task instruction" from the route management instruction, and sends the "new download task instruction" to the router a, thereby implementing remote management of the router a by the user.
In summary, in the router management method provided in this embodiment, the server receives the terminal identifier and the route management instruction sent by the terminal, queries the router bound to the terminal according to the terminal identifier, and sends the route management instruction to the router according to the management connection established with the router. The invention solves the problem that the router can not be controlled when the equipment used by the user is in the public network environment, thereby expanding the network types suitable for the user to manage the router through the used terminal;
on the other hand, the server maintains the management connection with the router through the heartbeat signal, so that the user can manage the router in time according to the prompt message sent by the server according to the heartbeat signal.
Referring to fig. 8, a block diagram of a router management apparatus according to an embodiment of the present invention is shown. The router management device is applied to a server, and comprises: a receivingmodule 610, afirst querying module 620, and a sendingmodule 630, wherein,
areceiving module 610, configured to receive a terminal identifier and a route management instruction sent by a terminal;
afirst query module 620, configured to query a router bound to a terminal according to a terminal identifier;
a sendingmodule 630, configured to send the route management instruction received by the receivingmodule 610 to the router queried by thefirst querying module 620 according to the management connection established with the router, where the router is configured to execute a predetermined operation according to the route management instruction.
In summary, in the router management apparatus provided in this embodiment, the server receives the terminal identifier and the route management instruction sent by the terminal, queries the router bound to the terminal according to the terminal identifier, and sends the route management instruction to the router according to the management connection established with the router. The invention solves the problem that the router cannot be controlled when the equipment used by the user is in a public network environment, thereby expanding the network types suitable for the user to manage the router through the used terminal.
Referring to fig. 9, a block diagram of another router management apparatus according to an embodiment of the present invention is shown. The router management device is applied to a server, and comprises: a receivingmodule 610, afirst query module 620, a sendingmodule 630, and asecond query module 640, wherein,
areceiving module 610, configured to receive a terminal identifier and a route management instruction sent by a terminal;
afirst query module 620, configured to query a router bound to a terminal according to a terminal identifier;
a sendingmodule 630, configured to send the route management instruction received by the receivingmodule 610 to the router queried by thefirst querying module 620 according to the management connection established with the router, where the router is configured to execute a predetermined operation according to the route management instruction.
Optionally, thefirst query module 620 includes:
thequery unit 621 is configured to query, according to the terminal identifier, a router bound to the terminal in the first corresponding relationship;
wherein, the first corresponding relation comprises the binding relation between different terminal identifications and different router identifications.
Optionally, thefirst query module 620 further includes:
a receivingunit 622, configured to receive a binding request sent by a terminal before querying, according to the terminal identifier, a router bound to the terminal in the first corresponding relationship, where the binding request carries the terminal identifier and the router identifier;
an addingunit 623, configured to add the terminal identifier and the router identifier received by the receivingunit 622 into the first corresponding relationship.
Optionally, thefirst query module 620 further includes:
a firstsignal receiving unit 624, configured to, after querying the router bound to the terminal in the first corresponding relationship according to the terminal identifier, receive a selection signal sent by the terminal if the queried router bound to the terminal is two or more;
and an identifyingunit 625, configured to determine, according to the selection signal, a router corresponding to the route management instruction.
Optionally, the router management apparatus further includes:
asecond query module 640, configured to query, according to the router identifier of the router, the management connection established with the router in the second corresponding relationship before sending the routing management instruction to the router according to the management connection established with the router;
wherein the second correspondence comprises a correspondence between different router identities and different management connections.
Further, thesecond query module 640 further includes:
theconnection establishing unit 641 is configured to establish a management connection with the router before querying the management connection established with the router in the second corresponding relationship according to the router identifier of the router;
anidentifier receiving unit 642, configured to receive a router identifier sent by a router through a management connection;
arelationship adding unit 643, configured to add the management connection established by theconnection establishing unit 641 and the router identification received by theidentification receiving unit 642 into the second corresponding relationship.
Further, optionally, thesecond query module 640 further includes:
a secondsignal receiving unit 644, configured to receive a heartbeat signal sent by the router after establishing a management connection with the router;
and a maintainingunit 645, configured to maintain the management connection with the router according to the heartbeat signal.
In summary, in the router management apparatus provided in this embodiment, the server receives the terminal identifier and the route management instruction sent by the terminal, queries the router bound to the terminal according to the terminal identifier, and sends the route management instruction to the router according to the management connection established with the router. The invention solves the problem that the router cannot be controlled when the equipment used by the user is in a public network environment, thereby expanding the network types suitable for the user to manage the router through the used terminal.
Referring to fig. 10, a block diagram of a router management apparatus according to another embodiment of the present invention is shown. The router management device is applied to a router, and comprises: acommand reception module 710 and acommand execution module 720, wherein,
acommand receiving module 710, configured to receive a routing management instruction sent by a server; the route management instruction is sent by the server according to the management connection established with the router after the server receives the terminal identification and the route management instruction sent by the terminal, and the router bound with the terminal is inquired according to the terminal identification;
acommand executing module 720, configured to execute a predetermined operation according to the routing management instruction received by thecommand receiving module 710.
In summary, in the router management apparatus provided in this embodiment, the router receives the route management instruction sent by the server, and executes the predetermined operation corresponding to the route management instruction. The invention solves the problem that the router cannot be controlled when the equipment used by the user is in a public network environment, thereby expanding the network types suitable for the user to manage the router through the used terminal.
Referring to fig. 11, a block diagram of another router management apparatus according to another embodiment of the present invention is shown. The router management device is applied to a router, and comprises: acommand reception module 710, acommand execution module 720, a connection establishment module 730, atransmission module 740, and asignal transmission module 750, wherein,
acommand receiving module 710, configured to receive a routing management instruction sent by a server; the route management instruction is sent by the server according to the management connection established with the router after the server receives the terminal identification and the route management instruction sent by the terminal, and the router bound with the terminal is inquired according to the terminal identification;
acommand executing module 720, configured to execute a predetermined operation according to the routing management instruction received by thecommand receiving module 710.
Optionally, the router management apparatus further includes:
a connection establishing module 730, configured to establish a management connection with the server before receiving the routing management instruction sent by the server;
a sendingmodule 740, configured to send the router identifier to a server through the management connection established by the connection establishing module 730, where the server is configured to add the management connection and the router identifier into a second corresponding relationship, where the second corresponding relationship includes corresponding relationships between different router identifiers and different management connections.
Further, the router management apparatus further includes:
and asignal sending module 750, configured to send a heartbeat signal to a server after establishing a management connection with the server, where the server is configured to maintain the management connection with the router according to the heartbeat signal.
Optionally, thecommand executing module 720 is specifically configured to:
when the routing management instruction is a starting instruction, executing starting operation;
when the routing management instruction is a closing instruction, executing shutdown operation;
when the routing management instruction is an instruction for setting the running parameters of the router, executing parameter setting operation;
when the routing management instruction is a new downloading task instruction, executing new downloading task operation;
when the route management instruction is a download task pause instruction, executing download task pause operation;
when the routing management instruction is a download task deleting instruction, executing download task deleting operation;
and when the routing management instruction is a multimedia resource access instruction, executing resource transmission operation.
In summary, in the router management apparatus provided in this embodiment, the router receives the route management instruction sent by the server, and executes the predetermined operation corresponding to the route management instruction. The invention solves the problem that the router cannot be controlled when the equipment used by the user is in a public network environment, thereby expanding the network types suitable for the user to manage the router through the used terminal.
Referring to fig. 12, a block diagram of a router management apparatus according to another embodiment of the present invention is shown. The router management device is applied to a terminal, and comprises: acommand generation module 810 and acommand transmission module 820, wherein,
acommand generating module 810 for generating a route management instruction for managing a router bound with a terminal;
acommand sending module 820, configured to send the terminal identifier and the route management instruction generated by thecommand generating module 810 to a server, where the server is configured to query a router bound to the terminal according to the terminal identifier; and sending the routing management instruction to the router according to the management connection established with the router, wherein the router is used for executing the preset operation according to the routing management instruction.
In summary, in the router management apparatus provided in this embodiment, the terminal generates a route management instruction for managing the router bound to the terminal, and sends the terminal identifier and the route management instruction to the server, so that the server sends the route management instruction to the router that establishes the management connection with the server according to the terminal identifier and the route management instruction, so that the router performs a predetermined operation according to the route management instruction. The invention solves the problem that the router cannot be controlled when the equipment used by the user is in a public network environment, thereby expanding the network types suitable for the user to manage the router through the used terminal.
Referring to fig. 13, a block diagram of another router management apparatus according to another embodiment of the present invention is shown. The router management device is applied to a terminal, and comprises: acommand generation module 810, acommand transmission module 820, atransmission module 830, and anidentification acquisition module 840, wherein,
acommand generating module 810 for generating a route management instruction for managing a router bound with a terminal;
acommand sending module 820, configured to send the terminal identifier and the route management instruction generated by thecommand generating module 810 to a server, where the server is configured to query a router bound to the terminal according to the terminal identifier; and sending the routing management instruction to the router according to the management connection established with the router, wherein the router is used for executing the preset operation according to the routing management instruction.
Optionally, the router management apparatus further includes:
a sendingmodule 830, configured to send a binding request to a server before sending a terminal identifier and a route management instruction to the server, where the binding request carries the terminal identifier and a router identifier; the server is used for adding the terminal identification and the router identification into a first corresponding relation, wherein the first corresponding relation comprises the binding relation between different terminal identifications and different router identifications.
Optionally, the router management apparatus further includes:
anidentifier obtaining module 840, configured to obtain the router identifier in a predetermined manner before sending the binding request to the server, where the predetermined manner includes: and receiving user input, calculating according to the network card address of the router to obtain, scan any one of the two-dimensional code and the bar code.
Optionally, thecommand generating module 810 is specifically configured to:
generating a starting instruction, wherein the starting instruction is used for triggering the router to execute starting operation;
generating a closing instruction, wherein the closing instruction is used for triggering the router to execute shutdown operation;
generating a router operation parameter setting instruction, wherein the router operation parameter setting instruction is used for triggering a router to execute parameter setting operation;
generating a new downloading task instruction, wherein the new downloading task instruction is used for triggering the router to execute the new downloading task operation;
generating a pause downloading task instruction, wherein the pause downloading task instruction is used for triggering the router to execute pause downloading task operation;
generating a download task deleting instruction, wherein the download task deleting instruction is used for triggering the router to execute the download task deleting operation;
and generating a multimedia resource access instruction, wherein the multimedia resource access instruction is used for triggering the router to execute the resource transmission operation.
In summary, in the router management apparatus provided in this embodiment, the terminal generates a route management instruction for managing the router bound to the terminal, and sends the terminal identifier and the route management instruction to the server, so that the server sends the route management instruction to the router that establishes the management connection with the server according to the terminal identifier and the route management instruction, so that the router performs a predetermined operation according to the route management instruction. The invention solves the problem that the router cannot be controlled when the equipment used by the user is in a public network environment, thereby expanding the network types suitable for the user to manage the router through the used terminal.
Referring to fig. 14, a schematic structural diagram of a server according to an embodiment of the present invention is shown. Theserver 900 includes a Central Processing Unit (CPU)901, asystem memory 904 including a Random Access Memory (RAM)902 and a Read Only Memory (ROM)903, and asystem bus 905 connecting thesystem memory 904 and thecentral processing unit 901. Theserver 900 also includes a basic input/output system (I/O system) 906 for facilitating information transfer between devices within the computer, and amass storage device 907 for storing anoperating system 913,application programs 910, and other program modules 915.
The basic input/output system 906 includes adisplay 908 for displaying information and aninput device 909 such as a mouse, keyboard, etc. for user input of information. Wherein thedisplay 908 and theinput device 909 are connected to thecentral processing unit 901 through aninput output controller 910 connected to thesystem bus 905. The basic input/output system 906 may also include an input/output controller 910 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 910 also provides output to a display screen, a printer, or other type of output device.
Themass storage device 907 is connected to thecentral processing unit 901 through a mass storage controller (not shown) connected to thesystem bus 905. Themass storage device 907 and its associated computer-readable media provide non-volatile storage for theserver 900. That is, themass storage device 907 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. Thesystem memory 904 andmass storage device 907 described above may be collectively referred to as memory.
Theserver 900 may also operate as a remote computer connected to a network via a network, such as the internet, in accordance with various embodiments of the invention. That is, theserver 900 may be connected to thenetwork 912 through thenetwork interface unit 911 coupled to thesystem bus 905, or thenetwork interface unit 911 may be used to connect to other types of networks or remote computer systems (not shown).
The memory further includes one or more programs, the one or more programs are stored in the memory, and the processor is configured to execute the router management method according to the programs stored in the memory, as shown in fig. 1 to 5.
Referring to fig. 15, which shows a block diagram of a terminal according to an embodiment of the present invention, the terminal 1000 may include acommunication unit 1010, amemory 1020 including one or more computer-readable storage media, aninput unit 1030, adisplay unit 1040, a sensor 1050, anaudio circuit 1060, a WIFI (Wireless Fidelity)module 1070, aprocessor 1080 including one or more processing cores, and apower supply 1090. Those skilled in the art will appreciate that the terminal structure shown in fig. 15 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
thecommunication unit 1010 may be used for receiving and transmitting information or signals during a call, and thecommunication unit 1010 may be a Radio Frequency (RF) circuit, a router, a modem, or other network communication devices. In particular, when thecommunication unit 1010 is an RF circuit, downlink information of a base station is received and then processed by the one ormore processors 1080; in addition, data relating to uplink is transmitted to the base station. Generally, the RF circuit as a communication unit includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, thecommunication unit 1010 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), etc. Thememory 1020 may be used to store software programs and modules, and theprocessor 1080 executes various functional applications and data processing by operating the software programs and modules stored in thememory 1020. Thememory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 1000, and the like. Further, thememory 1020 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly,memory 1020 may also include a memory controller to provide access tomemory 1020 byprocessor 1080 andinput unit 1030.
Theinput unit 1030 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Preferably, theinput unit 1030 may include a touch-sensitive surface 1031 andother input devices 1032. The touch-sensitive surface 1031, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (such as operations by a user on or near the touch-sensitive surface 1031 using any suitable object or attachment, such as a finger, a stylus, etc.) on or near the touch-sensitive surface 1031 and drive the corresponding connection device according to a preset program. Optionally, the touchsensitive surface 1031 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 1080, and can receive and execute commands sent by theprocessor 1080. In addition, the touch-sensitive surface 1031 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. Theinput unit 1030 may also includeother input devices 1032 in addition to the touch-sensitive surface 1031. Preferably,other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, or the like.
Display unit 1040 can be used to display information entered by or provided to a user as well as various graphical user interfaces of terminal 1000, which can be comprised of graphics, text, icons, video, and any combination thereof. TheDisplay unit 1040 may include aDisplay panel 1041, and optionally, theDisplay panel 1041 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 1031 may overlay thedisplay panel 1041, and when a touch operation is detected on or near the touch-sensitive surface 1031, the touch operation is transmitted to theprocessor 1080 for determining the type of the touch event, and theprocessor 1080 then provides a corresponding visual output on thedisplay panel 1041 according to the type of the touch event. Although in fig. 15 touch-sensitive surface 1031 anddisplay panel 1041 are implemented as two separate components for input and output functions, in some embodiments touch-sensitive surface 1031 may be integrated withdisplay panel 1041 for input and output functions.
Terminal 1000 can also include at least one sensor 1050, such as a light sensor, motion sensor, and other sensors. The light sensors can include an ambient light sensor that can adjust the brightness of thedisplay panel 1041 according to the intensity of ambient light, and a proximity sensor that can turn off thedisplay panel 1041 and/or a backlight when the terminal 1000 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor that can be configured for terminal 1000 are not described herein.
Audio circuitry 1060,speaker 1061, andmicrophone 1062 can provide an audio interface between a user and terminal 1000. Theaudio circuit 1060 can transmit the electrical signal converted from the received audio data to thespeaker 1061, and the electrical signal is converted into a sound signal by thespeaker 1061 and output; on the other hand, themicrophone 1062 converts the collected sound signal into an electrical signal, which is received by theaudio circuit 1060 and converted into audio data, which is then processed by the audiodata output processor 1080 and transmitted to, for example, another terminal via thecommunication unit 1010, or output to thememory 1020 for further processing.Audio circuitry 1060 may also include an earbud jack to provide communication of peripheral headphones with terminal 1000.
In order to implement wireless communication, awireless communication unit 1070 may be configured on the terminal, and thewireless communication unit 1070 may be a WIFI module. WIFI belongs to a short-range wireless transmission technology, and the terminal 1000 can help a user to send and receive e-mail, browse a web page, access streaming media, and the like through thewireless communication unit 1070, and provides the user with wireless broadband internet access. Although thewireless communication unit 1070 is shown in the drawing, it is understood that it does not belong to the essential constitution of the terminal 1000 and can be omitted entirely as needed within the scope not changing the essence of the invention.
Processor 1080 is the control center for terminal 1000, and is coupled to various components of the overall handset using various interfaces and lines to perform various functions and process data of terminal 1000 by running or executing software programs and/or modules stored inmemory 1020 and invoking data stored inmemory 1020, thereby providing overall monitoring of the handset. Optionally,processor 1080 may include one or more processing cores; preferably, theprocessor 1080 may integrate an application processor, which handles primarily the operating system, user interfaces, applications, etc., and a modem processor, which handles primarily the wireless communications. It is to be appreciated that the modem processor described above may not be integrated intoprocessor 1080.
Terminal 1000 can also include a power supply 1090 (e.g., a battery) for powering the various components, which can preferably be logically coupled toprocessor 1080 via a power management system that can facilitate managing charging, discharging, and power consumption via the power management system. Thepower supply 1060 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, terminal 1000 can also include a camera, a bluetooth module, etc., which are not described in detail herein.
In this embodiment, the terminal further includes one or more programs, which are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for performing the router management method provided by the embodiment of the present invention.
Referring to fig. 16, a block diagram of a router management system according to an embodiment of the present invention is shown. The route management system includes: aserver 1100, a terminal 1200 and at least onerouter 1300 bound to the terminal 1200, theserver 1100 being connected to the terminal 1200 and therouter 1300, respectively, wherein,
theserver 1100 is any of the router management apparatuses shown in fig. 8 or 9;
the terminal 1200 is any router management device shown in fig. 12 or fig. 13;
therouter 1300 is any one of the router management devices shown in fig. 10 or fig. 11;
or the like, or, alternatively,
theserver 1100 is the router management apparatus shown in fig. 14;
the terminal 1200 is a router management apparatus shown in fig. 15.
In summary, in the router management system provided in this embodiment, the server receives the terminal identifier and the route management instruction sent by the terminal, queries the router bound to the terminal according to the terminal identifier, and sends the route management instruction to the router according to the management connection established with the router. The invention solves the problem that the router cannot be controlled when the equipment used by the user is in a public network environment, thereby expanding the network types suitable for the user to manage the router through the used terminal.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.