CN107045514B - Control method of routing equipment, client and server - Google Patents

Control method of routing equipment, client and server Download PDF

Info

Publication number
CN107045514B
CN107045514B CN201610576800.7A CN201610576800A CN107045514B CN 107045514 B CN107045514 B CN 107045514B CN 201610576800 A CN201610576800 A CN 201610576800A CN 107045514 B CN107045514 B CN 107045514B
Authority
CN
China
Prior art keywords
operation code
operation information
code
client
management
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
CN201610576800.7A
Other languages
Chinese (zh)
Other versions
CN107045514A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610576800.7A priority Critical patent/CN107045514B/en
Publication of CN107045514A publication Critical patent/CN107045514A/en
Application granted granted Critical
Publication of CN107045514B publication Critical patent/CN107045514B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a control method of routing equipment, which is applied to a client, and comprises the following steps: obtaining an interface display instruction, wherein the interface display instruction is used for displaying a management interface of the routing equipment; executing the interface display instruction, acquiring a preset operation code set, and creating a webpage browsing control; injecting the operation codes in the operation code set into the webpage browsing control to generate the management interface, wherein the management interface comprises operation objects corresponding to the operation codes; displaying the management interface; receiving a first operation of a user on the operation object in a management interface; and responding to the first operation, and sending a first operation instruction to the routing equipment, wherein the first operation instruction is used for controlling the routing equipment to complete a first function. The embodiment of the invention also provides the client and the server.

Description

Control method of routing equipment, client and server
Technical Field
The present invention relates to the field of terminal control, and in particular, to a control method for a routing device, a client, and a server.
Background
With the continuous development of science and technology, electronic technology has also gained rapid development, and the variety of electronic products is also more and more, and people also enjoy various conveniences brought by the development of science and technology. People can enjoy comfortable life brought along with the development of science and technology through various types of electronic equipment.
At present, after a user accesses a mobile terminal, such as a smart phone, a tablet computer, or a laptop computer, to a router, if operations such as password modification, address filtering, or restarting of the router are required, first, a login address in a router specification is input into a browser, a management interface of the router provided by a router manufacturer is opened, then, a user name and a password are input to log in the management interface of the router, and after the login is successful, the user can click an operation object in the management interface of the router to operate the router.
However, since the management interfaces of the routers are all provided by the router manufacturers, the login addresses provided by different manufacturers are different, and the router is not universal, which is very inconvenient for the user to operate.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a method for controlling a router, a client, and a server, so as to provide a general router management interface, facilitate user operations, and improve the intelligence of an electronic device.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for controlling a routing device, where the method is applied to a client, and the method includes: obtaining an interface display instruction, wherein the interface display instruction is used for displaying a management interface of the routing equipment; executing the interface display instruction, acquiring a preset operation code set, and creating a webpage browsing control; injecting the operation codes in the operation code set into the webpage browsing control to generate the management interface, wherein the management interface comprises operation objects corresponding to the operation codes; displaying the management interface; receiving a first operation of a user on the operation object in a management interface; and responding to the first operation, and sending a first operation instruction to the routing equipment, wherein the first operation instruction is used for controlling the routing equipment to complete a first function.
In a second aspect, an embodiment of the present invention provides a method for controlling a routing device, where the method is applied to a server, and the method includes: receiving an operation code request message from a client, wherein the operation code request message carries an operation information set, and the operation information set is composed of operation information of at least one first management operation; searching at least one second operation code corresponding to the operation information in the operation information set in a preset operation code set; generating the operation code set based on the at least one second operation code, wherein the operation code set is used for injecting a webpage browsing control of the client to generate a management interface of the routing device; and sending the operation code set to the client.
In a third aspect, an embodiment of the present invention provides a client, including: the first obtaining unit is used for obtaining an interface display instruction, and the interface display instruction is used for displaying a management interface of the routing equipment; the first acquisition unit is used for executing the interface display instruction and acquiring a preset operation code set; the control creating unit is used for executing the interface display instruction and creating a webpage browsing control; a code injection unit, configured to inject an operation code in the operation code set into the web browsing control, and generate a management interface of the routing device, where the management interface includes an operation object corresponding to the operation code; the display unit is used for displaying the management interface; the operation receiving unit is used for receiving a first operation of a user on the operation object in a management interface; and the first sending unit is used for responding to the first operation and sending a first operation instruction to the routing equipment, wherein the first operation instruction is used for controlling the routing equipment to complete a first function.
In a fourth aspect, an embodiment of the present invention provides a server, including: a first receiving unit, configured to receive an operation code request message from a client, where the operation code request message carries an operation information set, and the operation information set is composed of operation information of at least one first management operation; the second obtaining unit is used for searching at least one second operation code corresponding to the operation information in the operation information set in a preset operation code set; generating the operation code set based on the at least one second operation code, wherein the operation code set is used for injecting a webpage browsing control of the client to generate a management interface of the routing device; and the second sending unit is used for sending the operation code set to the client.
In a fifth aspect, an embodiment of the present invention provides a client, including: the first processor is used for obtaining an interface display instruction, and the interface display instruction is used for displaying a management interface of the routing equipment; executing the interface display instruction to obtain a preset operation code set; executing the interface display instruction, and creating a webpage browsing control; injecting the operation codes in the operation code set into the webpage browsing control to generate a management interface of the routing equipment, wherein the management interface comprises operation objects corresponding to the operation codes; displaying the management interface; receiving a first operation of a user on the operation object in a management interface; and the first transmitter is used for responding to the first operation and transmitting a first operation instruction to the routing equipment, and the first operation instruction is used for controlling the routing equipment to complete a first function.
In a sixth aspect, an embodiment of the present invention provides a server, including: a second receiver, configured to receive an operation code request message from a client, where the operation code request message carries an operation information set, and the operation information set is composed of operation information of at least one first management operation; the second processor is used for searching at least one second operation code corresponding to the operation information in the operation information set in a preset operation code set; generating the operation code set based on the at least one second operation code, wherein the operation code set is used for injecting a webpage browsing control of the client to generate a management interface of the routing device; a second transmitter for transmitting the set of operation codes to the client.
The embodiment of the invention provides a control method of routing equipment, a client and a server, wherein the client firstly obtains an interface display instruction, the interface display instruction is used for displaying a management interface of the routing equipment, then the client executes the interface display instruction, obtains a preset operation code set and creates a webpage browsing control, and the third step is that the client injects operation codes in the operation code set into the webpage browsing control to generate the management interface, the management interface comprises operation objects corresponding to the operation codes, and then the management interface is displayed. Therefore, for the routing equipment produced by different manufacturers, the client injects the operation code for operating the routing equipment into the web browsing control, so that the user can operate the routing equipment through the universal management interface in the client. Therefore, the method in the embodiment of the invention can provide a universal router management interface, is convenient for a user to operate, and improves the intelligence degree of the electronic equipment.
Drawings
Fig. 1 is a schematic diagram of a connection relationship between a client, a routing device, and a server according to an embodiment of the present invention;
fig. 2 is a first flowchart illustrating a control method of a routing device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a management interface of a routing device in an embodiment of the present invention;
fig. 4 is a second flowchart illustrating a control method of a routing device according to an embodiment of the present invention;
fig. 5 is a third flowchart illustrating a control method of a routing device according to an embodiment of the present invention;
fig. 6 is a fourth flowchart illustrating a control method for a routing device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an operation information list of a routing device in the embodiment of the present invention;
fig. 8 is a fifth flowchart illustrating a control method of a routing device according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a client according to an embodiment of the present invention;
FIG. 10 is a block diagram of a server according to an embodiment of the present invention;
FIG. 11 is a schematic structural diagram of a client according to an embodiment of the present invention;
fig. 12 is another schematic structural diagram of a server in the embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
An embodiment of the present invention provides a method for controlling a routing device, which is applied between a client, a routing device and a server, and fig. 1 is a schematic diagram of a connection relationship between the client, the routing device and the server in the embodiment of the present invention, and referring to fig. 1, the client 1 accesses a routing device 2 and is connected to a server 4 through a network 3.
In this embodiment of the present invention, the Client may be installed in a terminal such as a smart phone, a tablet computer, a notebook computer, etc., the routing device 2 may be a device having a routing function such as a wireless router, a wired router, etc., and the Server 3 may be a Server corresponding to the Client in a C/S (Client/Server) structure.
With reference to the above system, a method for controlling a routing device according to an embodiment of the present invention is described.
Fig. 2 is a first flowchart illustrating a method for controlling a routing device in an embodiment of the present invention, and referring to fig. 2, the method includes:
s201: the client side obtains an interface display instruction;
the interface display instruction is used for displaying a management interface of the routing equipment;
here, when a user needs to open a management interface of the routing device, the user can open an application icon of the client, the terminal responds to the operation to generate an interface display instruction and transmits the interface display instruction to the client, and at this time, the client obtains the interface display instruction; or when an application with networking requirements, such as an instant communication application, a mail application, an online music application and the like, calls the client, the client obtains an interface display instruction. Of course, other situations may exist in practical applications, and the embodiments of the present invention are not particularly limited.
S202: the client executes an interface display instruction, acquires a preset operation code set and creates a webpage browsing control;
here, after obtaining the interface display instruction, the client executes the interface display instruction, and obtains a preset operation code set from the local or from the server, where the preset operation code set is a code set for operating the routing device, for example, an operation code set composed of Java Script codes corresponding to at least one operation performed on the routing device.
S203: the client side injects the operation codes in the operation code set into the webpage browsing control to generate a management interface;
the management interface comprises an operation object corresponding to the operation code;
here, after acquiring the preset operation code set, the client injects the operation codes in the operation code set into a Web browsing control, such as a Web View control, so that the client can generate a management interface of the routing device. Since at least one operation for the routing device is generated based on the operation code, the management interface includes the operation object corresponding to the operation code, so that the user can implement the corresponding operation for the routing device by operating the operation code. Furthermore, because the operation code is common to the routing devices produced by different manufacturers, the management interface generated after the operation code is injected into the web browsing control is also common, so that the user can operate the routing device through the common management interface in the client. Therefore, the method in the embodiment of the invention can provide a universal router management interface, is convenient for a user to operate, and improves the intelligence degree of the electronic equipment.
S204: the client displays a management interface;
for example, assume that the client injects JavaScript codes corresponding to "acquire connected device list" and "add blacklist" into Web View to generate a management interface as shown in fig. 3, the management interface includes an operation object 31 generated based on the Java Script codes of "acquire connected device list" and "add blacklist", and then the client displays the management interface to the user.
S205: the method comprises the steps that a client receives first operation of an operation object in a management interface by a user;
here, the client waits for the operation of the management interface by the user after displaying the management interface. When a user wants to perform a certain operation on the routing device, a first operation, such as a click operation, a double click operation, a long press operation, etc., may be performed on an operation object corresponding to the operation, and at this time, the client receives the first operation.
For example, if the user wants to obtain the connected device list, at this time, the user may click on the operation object 31 of "obtain connected device list" on the management interface as shown in fig. 3, and at this time, the client receives this operation.
S206: the client responds to the first operation and sends a first operation instruction to the routing equipment;
the first operation instruction is used for controlling the routing equipment to complete a first function.
S207: and the routing equipment executes the first operation instruction to complete the corresponding first function.
Here, S206 to S207 may be: after receiving the first operation, the client may generate a corresponding first operation instruction according to the operation object, and send the first operation instruction to the routing device through the wireless network, and after receiving the first operation instruction, the routing device executes the first operation instruction to complete the corresponding first function.
For example, after receiving an operation of clicking the operation object 31 of "obtaining a connected device list" by the user, the client generates a corresponding hypertext Transfer Protocol (HTTP) instruction according to the operation, and then sends the HTTP instruction according to an Internet Protocol (IP) address of the routing device, so that the routing device executes the HTTP instruction after receiving the HTTP instruction, obtains the connected device list, and returns the list to the client, and the client displays the connected device list on the management interface after receiving the connected device list, so as to be viewed by the user. In this manner, the routing device performs the first function.
In the embodiment of the invention, for the routing equipment produced by different manufacturers, as the client injects the operation code for operating the routing equipment into the webpage browsing control, a user can operate the routing equipment through a universal management interface in the client. Therefore, the method in the embodiment of the invention can provide a universal router management interface, is convenient for a user to operate, and improves the intelligence degree of the electronic equipment.
Based on the foregoing embodiment, in the embodiment of the present invention, in order to reduce resource occupation of a client on a terminal, fig. 4 is a second flowchart illustrating a control method of a routing device in the embodiment of the present invention, and referring to fig. 4, where S202 may include:
s401: the client executes the interface display instruction and generates an operation code request message;
the operation code request message is used for indicating the server to issue the operation code set;
here, in order to reduce the resource occupation of the client on the terminal, the preset operation code set may be stored in the server, and then, after obtaining the interface display instruction through S201, the client may execute the interface display instruction to generate the operation code request message.
S402: the client sends the operation code request message to the server;
s403: the server responds to the operation code request message and reads a preset operation code;
s404: and the server sends the preset operation code to the client.
In this way, the client acquires the preset operation code from the server. After that, the client sequentially executes S203 to S206 to realize control of the routing device.
In other embodiments of the present invention, in order to implement offline display of a management interface of a routing device without network support, fig. 5 is a third flowchart illustrating a control method of the routing device in an embodiment of the present invention, where as shown in fig. 5, S202 may include:
s501: the client executes the operation code request instruction and searches the installation data of the client in the local storage unit;
s502: the client obtains the set of operation codes from the installation data.
Here, S501 to S502 may be that, in a case where there is no network support, that is, the terminal is not networked, the terminal cannot communicate with the server, and at this time, in order to display the management interface of the routing device, the client may search its own installation data from the local storage unit, that is, the client may search its own installation root directory locally, and then search the preset operation code set from the root directory.
It should be noted that the client may carry a preset operation code set in the installation program; the client can also request the server to send a preset operation code set in a pushing or pulling mode during data communication with the server, and then the preset operation code set is stored locally.
Of course, the client may also have other manners of acquiring the preset operation code set, and the present invention is not limited in particular.
Based on the foregoing embodiment, in the embodiment of the present invention, in order to facilitate user operation, a user may configure codes in an operation code set according to needs or operation habits, so that only an operation object required by the user is displayed in a management interface. Then, the above method may further include the following two cases for different storage locations of the operation code sets.
In a first case, for the case that the operation code set is stored locally at the client, fig. 6 is a fourth flowchart illustrating a control method of the routing device in the embodiment of the present invention, referring to fig. 6, where the method further includes:
s601: a client acquires an operation information set;
wherein the operation information set is composed of operation information of at least one first management operation;
here, during the use of the client by the user, the client may display an operation information list in the management interface, as shown in fig. 7, where the operation information list 71 includes operation information of at least one second management operation; these second management operations may be at least one management operation that the user can perform on the routing device, the operation information is a function name that each operation can implement, such as "get connected device list", "add blacklist", "restart routing device", "modify password", then, the user selects the operation information in the operation information list, at this time, the client receives the operation of selecting the operation information of at least one second management operation by the user, next, the client determines the operation information of at least one first management operation from the operation information list in response to the selection operation, and generating an operation information set, namely, determining at least one first management operation from at least one second management operation by the client according to the selection operation of the user, and generating the operation information set based on the operation information of the at least one first management operation.
S602: the client searches a first operation code corresponding to each operation information in the operation information set in a preset operation code set;
here, the client searches for each operation information in the operation information set, that is, the first operation code corresponding to the first management operation one-to-one, in a preset operation code set acquired from a local or server after acquiring the operation information set.
S603: the client generates an operation code set based on the first operation code;
here, the client composes all the first operation codes into an operation information set.
S604: the client saves the set of operation codes.
In a second case, for the case that the operation code set is stored in the server, fig. 8 is a fifth flowchart illustrating a control method of the routing device in the embodiment of the present invention, and referring to fig. 8, the method further includes:
s801: the server receives an operation code request message from the client;
the operation code request message carries an operation information set, wherein the operation information set is composed of operation information of at least one first management operation;
here, if the user wants to customize the operation of the routing device during the use of the client, at this time, the user may select a customization operation function and select a desired first management operation, and then the client transmits the above-mentioned operation code request message to the server.
S802: the server responds to the operation code request message, and at least one second operation code corresponding to the operation information in the operation information set is searched in a preset operation code set;
here, the server searches for the second operation code corresponding one-to-one to each of the operation information sets, i.e., the first management operation, from a preset operation code set in response to the operation code request message.
S803: the server generates an operation code set based on the at least one second operation code;
here, the server groups all the second operation codes into an operation information set.
S804: the server sends the set of operation codes to the client.
In other embodiments of the present invention, when a user customizes the operation of the routing device, a plurality of basic operations can be combined into a combined operation, so that the client has the capability of automatically operating the router.
Then, the above method further comprises: the server receives combined operation information from the client, wherein the combined operation information consists of operation information of at least one third management operation; searching a third operation code corresponding to the operation information of each third management operation in the combined operation information in a preset operation code set; generating a code sequence of the combined operation based on the third operation code; the code sequence of the combined operation is added to the operation code set.
Here, the user can select at least one third management operation desired to be combined on the management interface of the routing device of the client, then, the client packages the operation information of the third management operation and sends the packaged operation information to the server as combined operation information, and after the server receives the combined operation information, searching a third operation code corresponding to the operation information of each third management operation in a preset operation code set, the server may then generate a code sequence of the combined operations according to a preset operation combination rule, for example, the third management operation is an "acquire connected device list" operation and an "add black list" operation, the server performs the operations according to a preset operation sequence, the two operations described above may be combined into a "add newly connected device to blacklist" operation and then a corresponding code sequence, i.e. a code sequence of the combined operation, is generated. And finally, the server adds the code sequence of the combined operation to a preset operation code set, so that in a display interface generated after the code sequence of the combined operation is injected into a web browsing control, a user can operate an operation object corresponding to the code sequence of the combined operation, and the routing equipment automatically completes the function of adding the newly connected equipment into a blacklist.
It should be noted that the process of combining multiple basic operations into one combined operation may also be performed on the client side, and the embodiment of the present invention is not particularly limited.
Based on the foregoing embodiments, an embodiment of the present invention provides a client, fig. 9 is a schematic structural diagram of the client in the embodiment of the present invention, and referring to fig. 9, the client 90 includes: a first obtaining unit 91, configured to obtain an interface display instruction, where the interface display instruction is used to display a management interface of the routing device; a first obtaining unit 92, configured to execute an interface display instruction and obtain a preset operation code set; a control creating unit 93, configured to execute an interface display instruction and create a web browsing control; a code injection unit 94, configured to inject an operation code in the operation code set into the web browsing control, and generate a management interface of the routing device, where the management interface includes an operation object corresponding to the operation code; a display unit 95 for displaying a management interface; an operation receiving unit 96, configured to receive a first operation on an operation object in a management interface by a user; the first sending unit 97 is configured to send a first operation instruction to the routing device in response to the first operation, where the first operation instruction is used to control the routing device to complete the first function.
In other embodiments of the present invention, the client further includes: a second obtaining unit and a first storing unit; a second obtaining unit configured to obtain an operation information set, the operation information set being composed of operation information of at least one first management operation; searching a first operation code corresponding to each operation information in the operation information set in a preset operation code set; generating an operation code set based on the first operation code; the first storage unit is used for storing the operation code set.
In other embodiments of the present invention, the display unit is configured to display an operation information list in the management interface, where the operation information list includes operation information of at least one second management operation; a second obtaining unit configured to receive a selection operation of the user on operation information of at least one second management operation; in response to the selection operation, operation information of at least one first management operation is determined from the operation information list, and an operation information set is generated.
In other embodiments of the present invention, the first obtaining unit is configured to execute the operation code request instruction, and search the local storage unit for its own installation data; the set of operation codes is obtained from the installation data.
In other embodiments of the present invention, the first obtaining unit is configured to execute an interface display instruction and generate an operation code request message, where the operation code request message is used to instruct a server to issue an operation code set; sending an operation code request message to a server; and receiving an operation code set issued by the server.
Here, it should be noted that: the above description of the client-side embodiment is similar to the above description of the method embodiment, and has similar beneficial effects to the method embodiment, and therefore, the description thereof is omitted. For technical details that are not disclosed in the embodiment of the client terminal of the present invention, please refer to the description of the embodiment of the method of the present invention for understanding, and therefore, for brevity, will not be described again.
Based on the foregoing embodiments, an embodiment of the present invention provides a server, and fig. 10 is a schematic structural diagram of the server in the embodiment of the present invention, and referring to fig. 10, the server 100 includes: a first receiving unit 101, configured to receive an operation code request message from a client, where the operation code request message carries an operation information set, and the operation information set is composed of operation information of at least one first management operation; a second obtaining unit 102, configured to respond to the operation code request message, and search, in a preset operation code set, for at least one second operation code corresponding to operation information in the operation information set; generating an operation code set based on at least one second operation code, wherein the operation code set is used for injecting a webpage browsing control of the client to generate a management interface of the routing equipment; a second sending unit 103, configured to send the operation code set to the client.
In other embodiments of the present invention, the first receiving unit is further configured to receive combination operation information from the client, where the combination operation information is composed of operation information of at least one third management operation; the second obtaining unit is further configured to search, in a preset operation code set, a third operation code corresponding to the operation information of each third management operation in the combined operation information; generating a code sequence of the combined operation based on the third operation code; the code sequence of the combined operation is added to the operation code set.
Here, it should be noted that: the above description of the server embodiment is similar to the above description of the method embodiment, and has similar beneficial effects to the method embodiment, and therefore, the description thereof is omitted. For technical details that are not disclosed in the server embodiment of the present invention, please refer to the description of the method embodiment of the present invention for understanding, and therefore, for brevity, will not be described again.
Based on the foregoing embodiments, an embodiment of the present invention provides a client, fig. 11 is a schematic structural diagram of the client in the embodiment of the present invention, and referring to fig. 11, the client 110 includes: the first processor 111 is configured to obtain an interface display instruction, where the interface display instruction is used to display a management interface of the routing device; executing an interface display instruction, and acquiring a preset operation code set; executing an interface display instruction, and creating a webpage browsing control; injecting the operation codes in the operation code set into a webpage browsing control to generate a management interface of the routing equipment, wherein the management interface comprises operation objects corresponding to the operation codes; displaying a management interface; receiving a first operation of a user on an operation object in a management interface; and a first transmitter 112, configured to send, in response to the first operation, a first operation instruction to the routing device, where the first operation instruction is used to control the routing device to complete the first function.
In other embodiments of the present invention, the first processor is further configured to obtain an operation information set, where the operation information set is composed of operation information of at least one first management operation; searching a first operation code corresponding to each operation information in the operation information set in a preset operation code set; generating an operation code set based on the first operation code; the set of operation codes is saved.
In another embodiment of the present invention, the client further includes: a first receiver; the first processor is used for displaying an operation information list in the management interface, wherein the operation information list comprises operation information of at least one second management operation; a first receiver configured to receive a selection operation of the user on operation information of at least one second management operation; in response to the selection operation, operation information of at least one first management operation is determined from the operation information list, and an operation information set is generated.
In other embodiments of the present invention, the first processor is configured to execute the operation code request instruction, and search the local storage unit for its own installation data; the set of operation codes is obtained from the installation data.
In another embodiment of the present invention, the client further includes: a first receiver; the first processor is used for executing the interface display instruction and generating an operation code request message, wherein the operation code request message is used for indicating the server to issue an operation code set; a first transmitter for transmitting an operation code request message to a server; and the first receiver is used for receiving the operation code set issued by the server.
In practical applications, the first Processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor; the first transmitter and the first receiver may be Radio Frequency Identification (RFID) antennas. It is to be understood that, for different communication systems, the electronic devices for implementing the functions of the first processor, the first receiver, and the first transmitter may be other devices, and the embodiments of the present invention are not particularly limited.
Further, the first transmitter and the first receiver may be physically separated or combined, and the embodiment of the present invention is not particularly limited.
Here, it should be noted that: the above description of the client-side embodiment is similar to the above description of the method embodiment, and has similar beneficial effects to the method embodiment, and therefore, the description thereof is omitted. For technical details that are not disclosed in the embodiment of the client terminal of the present invention, please refer to the description of the embodiment of the method of the present invention for understanding, and therefore, for brevity, will not be described again.
Based on the foregoing embodiments, an embodiment of the present invention provides a server, and fig. 12 is a schematic structural diagram of the server in the embodiment of the present invention, and referring to fig. 12, the server 120 includes: a second receiver 121, configured to receive an operation code request message from a client, where the operation code request message carries an operation information set, and the operation information set is composed of operation information of at least one first management operation; the second processor 122, configured to respond to the operation code request message, and search, in a preset operation code set, for at least one second operation code corresponding to operation information in the operation information set; generating an operation code set based on at least one second operation code, wherein the operation code set is used for injecting a webpage browsing control of the client to generate a management interface of the routing equipment; a second transmitter 123 for transmitting the set of operation codes to the client.
In other embodiments of the present invention, the second receiver is configured to receive the combined operation information from the client, where the combined operation information is composed of operation information of at least one third management operation; the second processor is used for searching a third operation code corresponding to the operation information of each third management operation in the combined operation information in a preset operation code set; generating a code sequence of the combined operation based on the third operation code; the code sequence of the combined operation is added to the operation code set.
In practical applications, the second processor may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor; the second transmitter and the second receiver may be RFID antennas. It is to be understood that, for different communication systems, the electronic devices for implementing the functions of the second processor, the second receiver and the second transmitter may be other devices, and the embodiments of the present invention are not particularly limited.
Further, the second transmitter and the second receiver may be physically separated or combined, and the embodiment of the present invention is not particularly limited.
Here, it should be noted that: the above description of the server embodiment is similar to the above description of the method embodiment, and has similar beneficial effects to the method embodiment, and therefore, the description thereof is omitted. For technical details that are not disclosed in the server embodiment of the present invention, please refer to the description of the method embodiment of the present invention for understanding, and therefore, for brevity, will not be described again.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (13)

1. A control method of a routing device is applied to a client, and is characterized in that the method comprises the following steps:
obtaining an interface display instruction, wherein the interface display instruction is used for displaying a management interface of the routing equipment;
executing the interface display instruction, and sending an operation code request message to a server, wherein the operation code request message carries an operation information set, and the operation information set is composed of operation information of at least one first management operation, so that the operation information set is used for enabling the server to execute the interface display instruction and send the operation code request message to the server
The server searches at least one second operation code corresponding to the operation information in the operation information set in a preset operation code set, and generates an operation code set based on the searched at least one second operation code;
acquiring the generated operation code set sent by the server, and creating a webpage browsing control;
injecting the operation codes in the generated operation code set into the webpage browsing control to generate the management interface, wherein the management interface comprises operation objects corresponding to the operation codes;
displaying the management interface;
receiving a first operation of a user on the operation object in a management interface;
and responding to the first operation, and sending a first operation instruction to the routing equipment, wherein the first operation instruction is used for controlling the routing equipment to complete a first function.
2. The method of claim 1, further comprising:
obtaining the operation information set;
searching a first operation code corresponding to each operation information in the operation information set in the preset operation code set;
generating a corresponding operation code set based on the first operation code;
and saving the corresponding generated operation code set.
3. The method of claim 2, wherein the obtaining the set of operational information comprises:
displaying an operation information list in the management interface, wherein the operation information list comprises operation information of at least one second management operation;
receiving a selection operation of the user on the operation information of the at least one second management operation;
and responding to the selection operation, determining the operation information of the at least one first management operation from the operation information list, and generating the operation information set.
4. The method of claim 1, further comprising:
transmitting combined operation information composed of operation information of at least one third management operation to the server so that
The server searches a third operation code corresponding to the operation information of each third management operation in the combined operation information in the preset operation code set, and generates a code sequence of the combined operation based on the third operation code;
adding the code sequence of the combined operation to the preset operation code set.
5. A control method of a routing device is applied to a server, and is characterized in that the method comprises the following steps:
receiving an operation code request message from a client, wherein the operation code request message carries an operation information set, and the operation information set is composed of operation information of at least one first management operation;
responding to the operation code request message, and searching at least one second operation code corresponding to the operation information in the operation information set in a preset operation code set;
generating a corresponding operation code set based on the at least one second operation code, wherein the corresponding generated operation code set is used for injecting a webpage browsing control of the client to generate a management interface of the routing device;
and sending the correspondingly generated operation code set to the client.
6. The method of claim 5, further comprising:
receiving combined operation information from the client, wherein the combined operation information consists of operation information of at least one third management operation;
searching a third operation code corresponding to the operation information of each third management operation in the combined operation information in the preset operation code set;
generating a code sequence of a corresponding combined operation based on the third operation code;
and adding the code sequence of the corresponding generated combined operation to the preset operation code set.
7. A client, comprising:
the first obtaining unit is used for obtaining an interface display instruction, and the interface display instruction is used for displaying a management interface of the routing equipment;
a first acquisition unit configured to:
executing the interface display instruction, and sending an operation code request message to a server, wherein the operation code request message carries an operation information set, and the operation information set is composed of operation information of at least one first management operation, so that the operation information set is used for enabling the server to execute the interface display instruction and send the operation code request message to the server
The server searches at least one second operation code corresponding to the operation information in the operation information set in a preset operation code set, and generates an operation code set based on the searched at least one second operation code;
acquiring the generated operation code set sent by the server;
the control creating unit is used for executing the interface display instruction and creating a webpage browsing control;
a code injection unit, configured to inject an operation code in the generated operation code set into the web browsing control, and generate a management interface of the routing device, where the management interface includes an operation object corresponding to the operation code;
the display unit is used for displaying the management interface;
the operation receiving unit is used for receiving a first operation of a user on the operation object in a management interface;
and the first sending unit is used for responding to the first operation and sending a first operation instruction to the routing equipment, wherein the first operation instruction is used for controlling the routing equipment to complete a first function.
8. The client of claim 7, further comprising: a second obtaining unit and a first storing unit;
the second obtaining unit is configured to obtain the operation information set; searching a first operation code corresponding to each operation information in the operation information set in the preset operation code set; generating a corresponding operation code set based on the first operation code;
the first storage unit is used for storing the correspondingly generated operation code set.
9. A server, comprising:
a first receiving unit, configured to receive an operation code request message from a client, where the operation code request message carries an operation information set, and the operation information set is composed of operation information of at least one first management operation;
a second obtaining unit, configured to search, in a preset operation code set, at least one second operation code corresponding to operation information in the operation information set in response to the operation code request message; generating a corresponding operation code set based on the at least one second operation code, wherein the corresponding generated operation code set is used for injecting a webpage browsing control of the client to generate a management interface of the routing device;
and the second sending unit is used for sending the correspondingly generated operation code set to the client.
10. The server according to claim 9, wherein the first receiving unit is further configured to receive combination operation information from the client, where the combination operation information is composed of operation information of at least one third management operation; the second obtaining unit is further configured to search, in the preset operation code set, a third operation code corresponding to operation information of each third management operation in the combined operation information; generating a code sequence of a corresponding combined operation based on the third operation code; and adding the code sequence of the corresponding generated combined operation to the preset operation code set.
11. A client, comprising:
the first processor is used for obtaining an interface display instruction, and the interface display instruction is used for displaying a management interface of the routing equipment; executing the interface display instruction, and sending an operation code request message to a server, wherein the operation code request message carries an operation information set, and the operation information set is composed of operation information of at least one first management operation, so that the operation information set is used for enabling the server to execute the interface display instruction and send the operation code request message to the server
The server searches at least one second operation code corresponding to the operation information in the operation information set in a preset operation code set, and generates an operation code set based on the searched at least one second operation code; acquiring the generated operation code set sent by the server; executing the interface display instruction, and creating a webpage browsing control; injecting the operation codes in the generated operation code set into the webpage browsing control to generate a management interface of the routing equipment, wherein the management interface comprises operation objects corresponding to the operation codes; displaying the management interface; receiving a first operation of a user on the operation object in a management interface;
and the first transmitter is used for responding to the first operation and transmitting a first operation instruction to the routing equipment, and the first operation instruction is used for controlling the routing equipment to complete a first function.
12. A server, comprising:
a second receiver, configured to receive an operation code request message from a client, where the operation code request message carries an operation information set, and the operation information set is composed of operation information of at least one first management operation;
the second processor is used for responding to the operation code request message and searching at least one second operation code corresponding to the operation information in the operation information set in a preset operation code set; generating a corresponding operation code set based on the at least one second operation code, wherein the corresponding generated operation code set is used for injecting a webpage browsing control of the client to generate a management interface of the routing device;
a second transmitter for transmitting the generated set of operation codes to the client.
13. A computer storage medium characterized in that executable instructions are stored, which when executed, are adapted to implement the control method of a routing device according to any one of claims 1 to 4, or the control method of a routing device according to any one of claims 5 to 6.
CN201610576800.7A 2016-07-20 2016-07-20 Control method of routing equipment, client and server Active CN107045514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610576800.7A CN107045514B (en) 2016-07-20 2016-07-20 Control method of routing equipment, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610576800.7A CN107045514B (en) 2016-07-20 2016-07-20 Control method of routing equipment, client and server

Publications (2)

Publication Number Publication Date
CN107045514A CN107045514A (en) 2017-08-15
CN107045514B true CN107045514B (en) 2020-03-17

Family

ID=59542627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610576800.7A Active CN107045514B (en) 2016-07-20 2016-07-20 Control method of routing equipment, client and server

Country Status (1)

Country Link
CN (1) CN107045514B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716811A (en) * 2014-01-10 2014-04-09 余华生 Method and device for controlling wireless router through intelligent terminal
CN104639354A (en) * 2013-11-14 2015-05-20 腾讯科技(深圳)有限公司 Router management method and device
CN105407172A (en) * 2015-12-15 2016-03-16 南京途牛科技有限公司 Router remote management system based on hypertext transport protocol (HTTP)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7072946B2 (en) * 2001-05-31 2006-07-04 Juniper Networks, Inc. Network router management interface with API invoked via login stream

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639354A (en) * 2013-11-14 2015-05-20 腾讯科技(深圳)有限公司 Router management method and device
CN103716811A (en) * 2014-01-10 2014-04-09 余华生 Method and device for controlling wireless router through intelligent terminal
CN105407172A (en) * 2015-12-15 2016-03-16 南京途牛科技有限公司 Router remote management system based on hypertext transport protocol (HTTP)

Also Published As

Publication number Publication date
CN107045514A (en) 2017-08-15

Similar Documents

Publication Publication Date Title
US10893094B2 (en) System and method for appliance detection and app configuration
US11469941B2 (en) Configuration for IoT device setup
CN107515764B (en) Application page opening method, terminal and computer readable storage medium
US7877461B1 (en) System and method for adding dynamic information to digitally signed mobile applications
EP3640849B1 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
TWI528282B (en) Method for customizing launching of applications
US10908889B2 (en) Method, user equipment, and application server for downloading application
US11496459B2 (en) Registration process using multiple devices
CN104657201A (en) Method, device, equipment and system for pushing application program
CN103279540A (en) Method and device for pushing application
CN103152392A (en) Providing method, acquisition method, equipment and system of installation package
CN105100141A (en) Multimedia content network sharing method, multimedia content network sharing device and multimedia content network sharing system
CN104333598A (en) Two-dimension code and network adaption based mobile terminal and web terminal interconnection method
CN102163196B (en) Implementation method and system thereof for intelligent browser of mobile terminal
CN108370500B (en) Optimized settings for wireless devices
CN104301419A (en) Non-local-machine remote download control system and method
CN107045514B (en) Control method of routing equipment, client and server
CN107798008B (en) Content pushing system, method and device
CN104244225A (en) Optimal configuration of mobile application in obtaining process
CN114401300B (en) Cloud application control method, device, equipment, medium and program product
CN112667261A (en) Method and device for updating shortcut key function, network terminal equipment and server
CN110392105A (en) A kind of document transmission method, device, system and electronic equipment and storage medium

Legal Events

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