CN109558148A - Plug-in unit installation method, device, equipment and the storage medium of router - Google Patents

Plug-in unit installation method, device, equipment and the storage medium of router Download PDF

Info

Publication number
CN109558148A
CN109558148A CN201811446828.4A CN201811446828A CN109558148A CN 109558148 A CN109558148 A CN 109558148A CN 201811446828 A CN201811446828 A CN 201811446828A CN 109558148 A CN109558148 A CN 109558148A
Authority
CN
China
Prior art keywords
router
plug
unit
client device
request
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.)
Granted
Application number
CN201811446828.4A
Other languages
Chinese (zh)
Other versions
CN109558148B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201811446828.4A priority Critical patent/CN109558148B/en
Publication of CN109558148A publication Critical patent/CN109558148A/en
Application granted granted Critical
Publication of CN109558148B publication Critical patent/CN109558148B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures
    • 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]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides plug-in unit installation method, device, equipment and the storage medium of a kind of router, and this method may include the attribute information for obtaining router;Long-range control is established with router to connect;Plug-in unit corresponding with router is downloaded from server according to the attribute information of router by remotely controlling connection control router;It determines that plug-in unit is successfully downloaded to router, then controls router and the plug-in unit is installed.The present invention can simplify the operation complexity of user, improve the installation success rate of plug-in unit.

Description

Plug-in unit installation method, device, equipment and the storage medium of router
Technical field
The present invention relates to the plug-in unit installation method of network technique field more particularly to a kind of router, device, equipment and deposit Storage media.
Background technique
With the development of network technology, the function of router is no longer limited to route, and router can have operating system, can By installing plug-in unit, to realize corresponding pin function.
Currently, the plug-in unit installation on router can be selected by user according to model of router and operating system etc. mostly Plug-in version is selected, is then installed on router.
However, the program, more demanding for the operation of user, and it is complicated for operation, it is time-consuming long, and failure rate is higher.
Summary of the invention
The present invention provides plug-in unit installation method, device, equipment and the storage medium of a kind of router, to simplify the behaviour of user Make complexity, improves the installation success rate of plug-in unit.
In a first aspect, the present invention provides a kind of plug-in unit installation method of router, which comprises
Obtain the attribute information of router;
Long-range control is established with the router to connect;
The router is controlled according to the attribute information of the router under server by the long-range control connection Carry plug-in unit corresponding with the router;
It determines that the plug-in unit is successfully downloaded to the router, then controls the router and the plug-in unit is installed.
Second aspect, the present invention provide a kind of plug-in unit installation method of router, which comprises
Long-range control is established with client device to connect;
In the case where the client device is by the control that remotely controls connection, according to the attribute information of the router, from Server downloads plug-in unit corresponding with the router;
The plug-in unit is installed under the control of the client device.
The third aspect, the present invention also provides a kind of plug-in unit mounting devices of router, comprising:
Module is obtained, for obtaining the attribute information of router;
Module is established, is connected for establishing long-range control with the router;
Control module, for controlling the router according to the attribute of the router by the long-range control connection Information downloads plug-in unit corresponding with the router from server;And determining that the plug-in unit is successfully downloaded to the router When, it controls the router and the plug-in unit is installed.
Fourth aspect, the present invention also provides a kind of plug-in unit mounting devices of router, comprising:
Module is established, is connected for establishing long-range control with client device;
Download module, in the case where the client device is by the control that remotely controls connection, according to the router Attribute information, download the corresponding plug-in unit of the router from server;
Module is installed, for installing the plug-in unit under the control of the client device.
A kind of client device can also be provided in 5th aspect, the present invention, comprising: memory and processor;The memory It is connected to the processor;
The memory, for storing program instruction;
The processor realizes the plug-in unit installation of the router of above-mentioned first aspect for being performed in program instruction Method.
A kind of computer readable storage medium can also be provided in 6th face, the present invention, is stored thereon with computer program, described Realize that power realizes the plug-in unit installation method of the router of above-mentioned first aspect when computer program is executed by processor.
A kind of router can also be provided in 7th aspect, the present invention, comprising: memory and processor;The memory and institute State processor connection;
The memory, for storing program instruction;
The processor realizes the plug-in unit of router described in above-mentioned second aspect for being performed in program instruction Installation method.
A kind of computer readable storage medium can also be provided in eighth aspect, the present invention, is stored thereon with computer program, institute State the plug-in unit installation method that router described in above-mentioned second aspect is realized when computer program is executed by processor.
The present invention provides plug-in unit installation method, device, equipment and the storage medium of a kind of router, can be routed by obtaining The attribute information of device, and establish long-range control with the router and connect, is connected by the long-range control, control the router according to The attribute information of the router downloads the corresponding plug-in unit of the router from server, determines that the plug-in unit is successfully downloaded to the routing Device then controls the router and installs the plug-in unit, the installation of plug-in unit on the router is realized, without carrying out the selection of plug-in unit by user And installation, reduce the time-consuming of plug-in unit installation, improves the success rate of plug-in unit installation.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to do one simply to introduce, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is by a kind of signal for the network system that the plug-in unit installation method of router is applicable provided in an embodiment of the present invention Figure;
Fig. 2 is a kind of flow chart of the plug-in unit installation method of router provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the plug-in unit installation method of another router provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the plug-in unit installation method of another router provided in an embodiment of the present invention;
Fig. 5 is the flow chart of the plug-in unit installation method of another router provided in an embodiment of the present invention;
Fig. 6 is a kind of interface schematic diagram of the user interface of the application program of client device provided in an embodiment of the present invention One;
Fig. 7 is a kind of interface schematic diagram of the user interface of the application program of client device provided in an embodiment of the present invention Two;
Fig. 8 is a kind of interface schematic diagram of the user interface of the application program of client device provided in an embodiment of the present invention Three;
Fig. 9 is a kind of interface schematic diagram of the user interface of the application program of client device provided in an embodiment of the present invention Four;
Figure 10 is a kind of interface signal of user interface of the application program of client device provided in an embodiment of the present invention Figure five;
Figure 11 is the structural schematic diagram one of the plug-in unit mounting device of router provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram for the client device that one embodiment of the invention provides;
Figure 13 is the structural schematic diagram two of the plug-in unit mounting device of router provided in an embodiment of the present invention;
Figure 14 is the structural schematic diagram for the router that one embodiment of the invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
It should be noted that term " first ", " second " and " third " etc. in each section of the embodiment of the present invention and attached drawing It is to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that the number used in this way According to being interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein can be in addition to illustrating herein or describing Those of other than sequence implement.In addition, term " includes " and " having " and their any deformation, it is intended that covering is not Exclusive includes, for example, the process, method, system, product or equipment for containing a series of steps or units be not necessarily limited to it is clear Step or unit those of is listed on ground, but is not clearly listed or for these process, methods, product or is set Standby intrinsic other step or units.
Method flow diagram involved in the following embodiments of the present invention is merely illustrative, it is not necessary in all Appearance and step, nor is it necessary that and execute in the described sequence.For example, some steps can also decompose, and some steps can To merge or partially merge, therefore, the sequence actually executed can change according to the actual situation.
Functional module in block diagram involved in the following embodiments of the present invention is only functional entity, not necessarily must be with Physically separate entity is corresponding.I.e., it is possible to realize these functional entitys using software form, or in one or more hardware It is realized in module or integrated circuit in these functional entitys or heterogeneous networks and/or processor and/or microcontroller and realizes this A little functional entitys.
Before introducing scheme provided in an embodiment of the present invention, first technical term involved in the embodiment of the present invention is carried out Description below.
Router: alternatively referred to as network router can be wireless router, also known as radio network router.Router A kind of communication equipment for connecting wired and wireless network, can be used wireless connection as (WIreless-Fidelity, Abbreviation Wi-FI) connection terminal device, so that terminal device accesses internet by the router.It should be pointed out that pair In wireless router, can also have wireline interface, i.e., wired mode also can be used, terminal device be connected, so that terminal device Internet is accessed by the router.
The firmware of router: it is the operating system of router, is a kind of software being embedded into router.
The plug-in unit of router: operating in the program on the firmware of router, can be shell (Shell) shell script, Or binary executable compiled in advance etc..By installing plug-in unit in router, it may make router is realized should The corresponding function of plug-in unit.
Server: its installation procedure that can be stored with plug-in unit etc., it is possible to provide resource downloading service allows client device The resources such as the installation procedure of plug-in unit of router are downloaded by preset agreement.
Terminal device: internet provided by the router, accessible services device can be accessed by connecting with router On Internet resources.
Application program: its is mountable on the terminal device, so that terminal device can be used as client device, to realize road By the operation such as the detection of the attribute information of device, the installation procedure for controlling router plug-in unit downloaded and installed.
First the network system that the embodiment of the present invention is applicable in is illustrated as follows.Fig. 1 is provided in an embodiment of the present invention A kind of schematic diagram for the network system that the plug-in unit installation method of router is applicable in.As shown in Figure 1, the embodiment of the present invention is provided Router the network system that is applicable in of plug-in unit installation method can include: client device, router and server etc..Client End equipment can be the terminal device for being equipped with the application program of router, which for example can be desktop computer, pen Remember that sheet, personal digital assistant (Personal Digital Assistant, abbreviation PDA), smart phone, tablet computer etc. are any Equipment.Wherein, the application program of the router can be for the application program for being configured or controlling to router.Terminal is set It is standby by establishing connection with router, the local area network of couple in router, since the router is also connect with the gateway of internet, because And terminal device can realize the access of internet by the connection with router.
In scheme provided in an embodiment of the present invention, client device can be after establishing connection with router, in the router Local area network in, obtain the attribute information of the router, and establish long-range control with the router and connect, pass through the long-range control Connection controls the router and downloads the corresponding plug-in unit of the router from server according to the attribute information of the router, should determining When plug-in unit is successfully downloaded to the router, then controls the router and the plug-in unit is installed.After the plug-in unit installation of the router, it can pass through The plug-in unit is run, so that the host equipment connecting with the router, realizes the corresponding function of the plug-in unit.The host equipment for example may be used Think game (PlayStation, abbreviation PS) equipment.Plug-in unit according to the present invention certainly can may be used to accelerate class plug-in unit Think other feature cards.For accelerating class plug-in unit, the router is remotely controlled by client device, the acceleration class is installed Plug-in unit, it can be achieved that the host equipment being connect with the router acceleration.
As follows combine multiple examples to the plug-in unit installation method of router provided in an embodiment of the present invention, device, equipment and Storage medium is illustrated.
Fig. 2 is a kind of flow chart of the plug-in unit installation method of router provided in an embodiment of the present invention.The side shown in Fig. 2 Method can be executed by client device and router interaction.As shown in Fig. 2, the plug-in unit installation side of router shown in the present embodiment Method may include as follows:
S201, client device obtain the attribute information of router.
In a kind of mode, client device can be obtained from router, the attribute information of the router.
For example, the client device just can send to router and request, and to the routing after establishing connection with router The response that device returns is parsed, to obtain the attribute information of the router.In practical applications, which can be as Under any agreement send the request: Simple Service Discovery Protocol (Simple Service Discovery Protocol, referred to as SSDP), transmission control protocol (Transmission Control Protocol, abbreviation TCP), User Datagram Protocol (User Datagram Protocol, abbreviation UDP), alternatively, hypertext transfer protocol (Hyper Text Transport Protocol, Abbreviation HTTP) etc..Here, the client device and router establish connection, may refer to, the client device and router It establishes and is wirelessly connected such as WIFI connection, to access the local area network of the router.
In a further mode of operation, which can also obtain the attribute information of the router from historical record.It should The attribute information that other modes obtain the router also can be used in client device, and details are not described herein.
Optionally, the attribute information of the router may include following at least one information: the device model of the router is somebody's turn to do The product ID of router, the manufacturer of the router, the network address of the router, firmware version of the router etc..
Since different routers may use different processor and firmware, the fortune for the processor that some routers use Row instruction set is the instruction of advanced Reduced Instruction Set Computer machine (Advanced RISC Machines, abbreviation ARM)-V7 Collection, and the operating instruction for the processor that some routers use integrates and can averagely execute speed as single-length fixed point instruction (Million Instructions Per Second, abbreviation MIPS) instruction set.Not for a kind of plug-in unit that instruction set is compiled It can operate on the processor of another instruction set.Thus, for guarantee download plug-in version accuracy, guarantee plug-in unit installation at Power, in the embodiment of the present invention, client device need to first obtain the attribute information of the router.The attribute information of the router is extremely It can be used for characterizing the information such as the operating instruction collection of processor on the router less.
S202, client device and router are established long-range control and are connected.
The client device can be by logging in the router, and controls router and open remote functionality, to establish and be somebody's turn to do The long-range control of router connects.
S203, client device connect the attribute information for controlling router according to the router from clothes by the long-range control Business device downloads plug-in unit corresponding with the router.
The client device can be connected by the long-range control, send the attribute information including the router to router Control message, the control message are used for so that router downloads the router from server according to the attribute information of the router Corresponding plug-in unit.The corresponding plug-in unit of the router can for the router attribute from the server identified plug-in unit.Its In, the corresponding plug-in unit of the router is downloaded, refers to the installation procedure etc. for downloading the plug-in unit.
In client device in the case where obtaining the attribute information of the router, it can be connected by the long-range control of foundation It connects, the control message of the attribute information including the router is sent to router, so that category of the router according to the router Property information downloads the corresponding plug-in unit of the router from server.
S204, router are believed in the case where client device passes through the control for remotely controlling connection according to the attribute of the router Breath downloads plug-in unit corresponding with the router from server.
In the specific implementation, can send and wrap to server after the router gets the control message from the client device The downloading request of the attribute information of the router is included, and receives the installation procedure of the plug-in unit of server return, realizes that this is inserted The downloading of part.The plug-in unit can be server plug-in unit according to determined by the attribute information of the router.Wherein, which requests It such as can be HTTP request.
The router can check whether deposit under the predetermined directory of the router during downloading the plug-in unit from server In the plug-in unit of legacy version, if so, then first being deleted according to the plug-in unit of legacy version.The plug-in unit of the legacy version can the router The plug-in unit of version before mounted.
S205, if it is determined that the plug-in unit is successfully downloaded to the router, then client device control router installs the plug-in unit.
S206, router install the plug-in unit under the control of client device.
The router can inform the client device, the download progress of the plug-in unit during plug-in download.The client Equipment can determine whether the plug-in unit is successfully downloaded based on the download progress, however, it is determined that the plug-in unit is successfully downloaded to the router, then Can client device can also be connected by the long-range control, control the router and the plug-in unit is installed, that is, control router operation The installation procedure of the plug-in unit realizes the installation of plug-in unit.
The plug-in unit that the router can will be downloaded from server, stores to the predetermined directory of the router, then at this The installation procedure that the plug-in unit is run under predetermined directory realizes the installation of the plug-in unit.
The router can also start the plug-in unit after the plug-in unit is installed, if the plug-in unit can star, can determine this Plug-in unit is installed successfully;Conversely, if plug-in unit starting failure, can determine the plug-in unit install failure.
If the plug-in unit is installed successfully, router can return to the notice including the first instruction information to the client device and disappear Breath, the first instruction information is to indicate that the plug-in unit is installed on the router.The client device receive including In the case where the notification message of the first instruction information, the first instruction letter can be also shown in the user interface of application program Breath, to show user.
If the plug-in unit install failure, router can delete the plug-in unit downloaded, and can also return and wrap to the client device The notification message of the second indication information included, the second indication information is to indicate plug-in unit install failure on the router. The client device, can also be in the use of application program in the case where receiving the notification message including the second indication information The second indication information is shown on the interface of family, to show user.Wherein, second indication information can include: plug-in unit installation The error code of failure.
The router, by running the plug-in unit, can control the host equipment connecting with the router after plug-in unit installation. The router can just run the plug-in unit after plug-in unit installation, thus the host equipment that control is connect with the router.The routing Device can also send to client device and notify after plug-in unit installation, and receive the control message of client device transmission In the case of, the plug-in unit is run, thus the host equipment that control is connect with the router.
The plug-in unit installation method of router provided in an embodiment of the present invention, can by obtain router attribute information, and Long-range control is established with the router to connect, and is connected by the long-range control, is controlled the router according to the attribute of the router Information downloads the corresponding plug-in unit of the router from server, determines that the plug-in unit is successfully downloaded to the router, then controls the road The plug-in unit is installed by device, without carrying out the selection and installation of plug-in unit by user, reduces the time-consuming of plug-in unit installation, improves plug-in unit The success rate of installation.
On the basis of the plug-in unit installation method of above-mentioned router shown in Fig. 2, one kind is can also be provided in the embodiment of the present invention The plug-in unit installation method of router.The embodiment, which can provide a kind of client device and obtain the attribute information of the router, to be shown Example.Fig. 3 is the flow chart of the plug-in unit installation method of another router provided in an embodiment of the present invention.As shown in figure 3, institute as above Client device obtains the attribute information of router in the S201 shown can include:
S301, client device send the first request to router.
If first request is the request that client device uses SSDP to send, which can be to pass through SSDP Discovery (discover) request message of transmission, alternatively, capture (alive) request message.The discovery request message is alternatively referred to as Mobile discovery message, the capture request message are also referred to as notification message.
In a kind of mode, which can establish connection with router, so that the client device is installed Client application couple in router local area network, then mobile discovery (M-SEARCH) side can be used in the client device Method sends discovery request message to the port SSDP of preset unicast or multicast address, which can be " SSDP:discover " message.In the discovery request message can include: the information of the port SSDP.The port SSDP can be Application programming interfaces (API) on router corresponding to the preset unicast or multicast address.
In a further mode of operation, which can establish connection with router, and no matter the client device is pacified The client application of dress whether the local area network of router, then the client device can use notice (NOTIFY) method, To the port SSDP of preset unicast or multicast address send capture request message, the capture request message can for " SSDP: Alive " message.It may also comprise in the capture request message: the information of the port SSDP.It the port SSDP can be preset for this Application programming interfaces (API) on router corresponding to unicast or multicast address.
S302, client device receive the router in the case where listening to first request, the unified money returned Source finger URL (Uniform Resource Locator, abbreviation URL).
The router can return to the response including the URL to client device in the case where listening to first request. The URL may point to the resource location on the router, and the attribute information of the router can be stored on the resource location.
S303, client device obtain the attribute letter of the router by the resource of the URL on the access router Breath.
The client device can send the access request including the URL to router in the case where getting the URL, The access request is used to access the resource on the router on the URL, and receive router return includes the router The access response of attribute information, to realize the access to the resource of the URL on the router.
The plug-in unit installation method of router provided in an embodiment of the present invention, can be by providing a kind of attribute for obtaining router The implementation of information, so that the attribute information of the router got is more accurate, to guarantee the success rate of plug-in unit installation.
On the basis of the plug-in unit installation method of above-mentioned router shown in Fig. 2, one kind is can also be provided in the embodiment of the present invention The plug-in unit installation method of router.The embodiment can provide a kind of client device obtain the router attribute information it is another Example.Fig. 4 is the flow chart of the plug-in unit installation method of another router provided in an embodiment of the present invention.As shown in figure 4, as above Shown in S201 client device obtain the attribute information of router can include:
S401, client device send the second request to router.
Second request can be the request sent by agreement any in TCP, UDP or HTTP, then second request It can be probe message.The probe message alternatively referred to as services probe message, or service sends request.
The management of router can usually be carried out by preset service, which can take for the management of router Business.And the service can have corresponding agreement and port.Therefore, which can be used the preset agreement to the end Mouth sends the second request, to detect to the port.The preset agreement can be for example in TCP, UDP or HTTP One agreement.
S402, client device receive the router in the case where listening to second request, the domain name returned.
Router can return to the response including the domain name to client device in the case where listening to second request. The domain name can be the management domain name of the router.
S403, client device obtain Internet protocol pointed by the domain name according to the domain name access router The address (Internet Protocol, abbreviation IP).
The client device can send the access request including the domain name to router in the case where getting the URL, The access request is used to access the service of the domain name on the router, and receives the category including the router of router return Property information access response, to realize access to the domain name on the router.
S404, client device parse the IP address, obtain the attribute information of the router.
The IP address is IP address pointed by the domain name, which can be by continuing the IP of domain name direction Location obtains the attribute information of the router.
On the other hand, client device can also obtain the router according to the domain name access router The URL of upper management service, the resources such as page verbal description, and by analyzing the resource, obtain the attribute of the router Information.
The plug-in unit installation method of router provided in an embodiment of the present invention, can be by providing another category for obtaining router Property information implementation so that the attribute information of the router got is more accurate, to guarantee the success of plug-in unit installation Rate.
In above-mentioned Fig. 2-Fig. 4 on the basis of the plug-in unit installation method of any router, the embodiment of the present invention is also It can provide a kind of plug-in unit installation method of router.The embodiment can provide a kind of objective end equipment control router and carry out under plug-in unit The example for carrying and installing.Fig. 5 is the flow chart of the plug-in unit installation method of another router provided in an embodiment of the present invention.Such as figure Shown in 5, client device and router are established before long-range control connection in S202 as shown above, and this method may also include that
S501, client device send third request to router, wherein the logging request includes: log-on message.
Third request is for so that the router is verified to the log-on message.
Third request can be logging request, what third request can be sent for the client device with http protocol Request, such as HTTP publication (POST) request.The log-on message can be carried the message body requested in the third by the client device In, third request is sent to router.The log-on message is for example can include: the login username and login password of the router Etc. information.Third request is for so that the router verifies the log-on message.
S502, client device receiving router, which respond the third, requests what is returned to log in token.
The login token is used to indicate the log-on message member and is verified, i.e., the client device has logged in the router.
S503, client device send the 4th request to router, and the 4th request includes: that the login token and permission are set Set parameter.
4th request is for so that the router opens the remote functionality of the router according to the priority assignation parameter.It should Priority assignation parameter can be the setting parameter of the remote functionality of router.
Optionally, the remote functionality of the router includes: remote access function, and/or, remote control function.Wherein, should Remote access function can be Secure Shell (Secure Shell, abbreviation SSH) function.The remote control function can be Telnet function, also known as Telnet function.
In the priority assignation parameter, the setting parameter of SSH function for example can be the enabled parameter of SSH function, can indicate For SSH_enable;In the priority assignation parameter, the setting parameter of telnet function can be for example the enabled of telnet function Parameter is represented by telnet_enable.
The 4th request that client device is sent to router includes the login token and priority assignation parameter, then client The login token can be used in end equipment, controls the router according to the priority assignation parameter and opens remote functionality.
S504, router open the remote functionality of router according to the priority assignation parameter.
After router receives the 4th request, whether correct the login token can detect, if the login token is correct, it is determined that Whether the priority assignation parameter is correct, if the priority assignation parameter is correct, can open router according to the priority assignation parameter Remote functionality.Wherein, which correctly refers to that the login token is what the router issued, and, the login token It does not fail i.e. before the deadline.The priority assignation parameter is correct, refers to it for the parameter in preset setting parameter library.
In the scheme that the embodiment provides, it can be sent in the case where client device logs in the router to router Priority assignation parameter, so that the long-range control established with router connects, guarantees the visitor to open the remote functionality of the router Long-range control of the family end equipment to router, controls it convenient for client device, to download and install the installation of plug-in unit Program improves the success rate of plug-in unit installation.
Based on the above method, may also include that
S505, client device receiving router are directed to the response of the 4th request.
S506, client device determine whether the router opens remote functionality according to the response.
If login token is correct in the 4th request, and, priority assignation parameter is correct, then router can be set to client It is standby to return to the sound including updated hypertext markup language (HyperText Markup Language, abbreviation HTML) content It answers, to indicate that the remote functionality of the router has been opened.
If the login token is correct, and, the priority assignation parameter is incorrect, and it includes current for can returning to client device HTML content response, to indicate that the remote functionality of the router is unopened.
If the login token is incorrect, router can client device return include login page content response, with refer to Router need to be logged in again by showing.The login token is incorrect, refers to that the login token is not that the router issues, alternatively, The login token is what the router issued, but the login token has failed.
In the embodiment, the router is also to client device returning response, with so that client device determines the road Whether remote functionality is opened by device.
If the client device determines that the router has opened remote functionality, it can determine that the long-range control connection is built Vertical, then client device is connected by the long-range control and controls router according to the attribute of the router in S203 as shown above Information downloads plug-in unit corresponding with the router from server can include:
If S507, the router open remote functionality, client device passes through the long-range control connection control router Plug-in unit corresponding with the router is downloaded from server according to the attribute information of the router.
In the scheme that the embodiment provides, client device can be the case where the remote functionality for determining the router be opened Under, router is controlled according to the attribute information of the router and downloads the corresponding plug-in unit of the router from server, can be effectively improved The success rate of plug-in unit installation.
The example that a kind of client device remotely carries out the plug-in unit installation of router is provided as follows.Fig. 6 is that the present invention is implemented A kind of interface schematic diagram one of the user interface of the application program for client device that example provides.As shown in fig. 6, application program There can be control group on the welcome page of plug-in unit installation, can have " acceleration " control button and user setting in the control group Button is as shown in Figure 6 " I ".Can also have START button on the welcome interface of the plug-in unit installation of the application program. START button can user receive user input operational order.After the welcome page can for example be opened for the application program The page, alternatively, the page that plug-in unit is installed in the application program function or acceleration function are shown after opening.
The client device is receiving the operational order inputted for START button, then can carry out testing process.
Fig. 7 is a kind of interface schematic diagram of the user interface of the application program of client device provided in an embodiment of the present invention Two.When the client device receives the operational order that START button is inputted in the page shown for Fig. 6, then can show The page shown in Fig. 7.The detection page that the page shown in Fig. 7 can accelerate for router.The page shown in Fig. 7, can show Show the connection status of client device and router and the ambient condition of router.Client device is being received for " opening The operational order that beginning ", button was inputted, can detect whether the client device connect with the router, if connection, the page In face, in the connection status of client device and router, the information such as the wifi title of the router can be shown.If the client Equipment and router establish connection, then can client device can obtain the attribute information of the router, wherein can include: the road The information such as the model by device can show the model of router then in the ambient condition of the router.
In the page shown in Fig. 7, can also have operation button, such as the Next button.
Fig. 8 is a kind of interface schematic diagram of the user interface of the application program of client device provided in an embodiment of the present invention Three.When the client device receives the operational order that the Next button is inputted in the page shown for Fig. 7, then can show Show the page shown in Fig. 8.The page shown in Fig. 8 can be the login page of router.There can be letter in the login page Input frame is ceased, which can be used for receiving the username and password of input.In the login page, can also have operation by Button, such as the Next button.
Fig. 9 is a kind of interface schematic diagram of the user interface of the application program of client device provided in an embodiment of the present invention Four.When the client device receives the operational order that the Next button is inputted in the page shown for Fig. 8, then can show Show the page shown in Fig. 9.The page shown in Fig. 9 can be the plug-in download page of router.In the downloading page, it can show There is the plug-in download progress of the router.
Client device is in the username and password for receiving input, and in the page that shows for Fig. 8 " next step " In the case where the operational order that button is inputted, it can send and request to router, so that router is to the username and password It is verified, and after being verified, remote functionality is opened by router.After the remote functionality, client device control should Router downloads the installation procedure of the plug-in unit of the server from server, meanwhile, the road which can also be shown in Fig. 9 The plug-in download progress of the router is shown by the plug-in download page of device.
Figure 10 is a kind of interface signal of user interface of the application program of client device provided in an embodiment of the present invention Figure five.Router can run the installation procedure of the plug-in unit, realize the plug-in unit after the installation procedure of the plug-in unit downloads completion Installation, after the plug-in unit is installed, may also display the installation results page shown in Fig. 10, can in the installation results page Show the notification information that the plug-in unit is installed.
In the installation results page shown in Fig. 10, can also have an operation button, such as " open and accelerate " button.Work as client End equipment is received for the operational order that " should open and accelerate " button, can send control message, the control message to router For making router according to the control message, the plug-in unit is run, so that the host equipment that control is connect with the router carries out Accelerate.
Following is apparatus of the present invention embodiment, can be used for executing above method embodiment of the present invention, realization principle and Technical effect is similar.
Figure 11 is the structural schematic diagram one of the plug-in unit mounting device of router provided in an embodiment of the present invention.Such as Figure 11 institute Show, the plug-in unit mounting device 110 of the router of the present embodiment may include:
Module 111 is obtained, for obtaining the attribute information of router.
Module 112 is established, is connected for establishing long-range control with the router.
Control module 113, for controlling the router according to the attribute of router letter by the long-range control connection Breath downloads plug-in unit corresponding with the router from server;And when determining that the plug-in unit is successfully downloaded to the router, control should Router installs the plug-in unit.
Optionally, the plug-in unit mounting device 110 of router can also carry out client in any one of above-mentioned Fig. 2-Figure 10 Other functions of equipment, specifically participate in above-mentioned, and details are not described herein.
Figure 12 is the structural schematic diagram for the client device that one embodiment of the invention provides.As shown in figure 12, the present embodiment Client device 120 include: memory 121 and processor 122.Wherein, memory 121 is connected by bus and processor 122 It connects.
Memory 121, for storing program instruction.
Processor 122 executes holding for any client equipment in above-mentioned Fig. 2-Figure 10 for being performed in program instruction The plug-in unit installation method of capable router.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, the calculating Machine program can the processor 122 described in above-mentioned Figure 12 execute and realize the execution of any client equipment in above-mentioned Fig. 2-Figure 10 The plug-in unit installation method of router.
Plug-in unit mounting device, client device and the computer-readable storage medium of router provided in an embodiment of the present invention The plug-in unit installation method of the router of the execution of any client equipment in above-mentioned Fig. 2-Figure 10 can be performed in matter, specific implementation And effective effect, reference can be made to above-mentioned, details are not described herein.
Figure 13 is the structural schematic diagram two of the plug-in unit mounting device of router provided in an embodiment of the present invention.Such as Figure 13 institute Show, the plug-in unit mounting device 130 of the router of the present embodiment may include:
Module 131 is established, is connected for establishing long-range control with client device.
Download module 132, in the case where the client device is by the control that remotely controls connection, according to the router Attribute information downloads the corresponding plug-in unit of the router from server.
Module 133 is installed, for installing the plug-in unit under the control of the client device.
Optionally, the plug-in unit mounting device 130 of router can also carry out router in any one of above-mentioned Fig. 2-Figure 10 Other functions, specifically participate in above-mentioned, details are not described herein
Figure 14 is the structural schematic diagram for the router that one embodiment of the invention provides.As shown in figure 14, the road of the present embodiment It include: memory 141 and processor 142 by device 140.Wherein, memory 141 is connect by bus with processor 142.
Memory 141, for storing program instruction.
Processor 142 executes router in any one of above-mentioned Fig. 2-Figure 10 and holds for being performed in program instruction The plug-in unit installation method of capable router.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, the calculating Machine program can the processor 142 described in above-mentioned Figure 14 execute and realize that router in any one of above-mentioned Fig. 2-Figure 10 executes The plug-in unit installation method of router.
Plug-in unit mounting device, router and the computer readable storage medium of router provided in an embodiment of the present invention, can The plug-in unit installation method for the router that router executes in any one of above-mentioned Fig. 2-Figure 10 is executed, is implemented and effective Effect, reference can be made to above-mentioned, details are not described herein.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Computer program above-mentioned can store in a computer-readable storage medium In.When being executed, execution includes the steps that above-mentioned each method embodiment to the program;And storage medium above-mentioned includes: in read-only Deposit (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or light The various media that can store program code such as disk.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (15)

1. a kind of plug-in unit installation method of router, which is characterized in that the described method includes:
Obtain the attribute information of router;
Long-range control is established with the router to connect;
By the long-range control connection control the router according to the attribute information of the router from server downloading with The corresponding plug-in unit of the router;
It determines that the plug-in unit is successfully downloaded to the router, then controls the router and the plug-in unit is installed.
2. the method according to claim 1, wherein the attribute information for obtaining router, comprising:
The first request is sent to the router;
The router is received in the case where listening to the described first request, the uniform resource position mark URL returned;
By accessing the resource of the URL on the router, the attribute information of the router is obtained.
3. according to the method described in claim 2, it is characterized in that, first request is to pass through Simple Service Discovery Protocol The discovery request message that SSDP is sent, alternatively, capture request message.
4. the method according to claim 1, wherein the attribute information for obtaining router, comprising:
The second request is sent to the router;
The router is received in the case where listening to the described second request, the domain name returned;
The router is accessed according to domain name, obtains internet protocol address pointed by domain name;
The IP address is parsed, the attribute information of the router is obtained.
5. according to the method described in claim 4, it is characterized in that, second request is to pass through transmission control protocol TCP, use User data datagram protocol UDP, alternatively, the probe message that any agreement is sent in hypertext transfer protocol HTTP.
6. the method according to claim 1, wherein the step for establishing long-range control connection with the router Suddenly, comprising:
Third request is sent to the router, the third request includes: log-on message, wherein the third request is used for So that the router is verified to the log-on message;
Receive that the router responds that third request returns logs in token;
The 4th request is sent to the router, the 4th request includes the login token and priority assignation parameter, wherein 4th request is for so that the router opens the remote functionality of the router according to the priority assignation parameter.
7. according to the method described in claim 6, it is characterized in that, the remote functionality of the router includes: remote access function Can, and/or, remote control function.
8. method according to any one of claims 1-7, which is characterized in that the attribute information of the router includes such as It is lower at least one information: the device model of the router, the product ID of the router, the router manufacturer, The firmware version of the network address of the router, the router.
9. a kind of plug-in unit installation method of router, which is characterized in that the described method includes:
Long-range control is established with client device to connect;
In the case where the client device passes through the control for remotely controlling connection, according to the attribute information of the router, from service Device downloads plug-in unit corresponding with the router;
The plug-in unit is installed under the control of the client device.
10. a kind of plug-in unit mounting device of router characterized by comprising
Module is obtained, for obtaining the attribute information of router;
Module is established, is connected for establishing long-range control with the router;
Control module, for controlling the router according to the attribute information of the router by the long-range control connection Plug-in unit corresponding with the router is downloaded from server;And when determining that the plug-in unit is successfully downloaded to the router, control It makes the router and the plug-in unit is installed.
11. a kind of plug-in unit mounting device of router characterized by comprising
Module is established, is connected for establishing long-range control with client device;
Download module, in the case where the client device is by the control that remotely controls connection, according to the category of the router Property information, download the corresponding plug-in unit of the router from server;
Module is installed, for installing the plug-in unit under the control of the client device.
12. a kind of client device characterized by comprising memory and processor;The memory and the processor connect It connects;
The memory, for storing program instruction;
The processor realizes inserting for router of any of claims 1-8 for being performed in program instruction Part installation method.
13. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The plug-in unit installation method of router of any of claims 1-8 is realized when being executed by processor.
14. a kind of router characterized by comprising memory and processor;The memory is connected to the processor;
The memory, for storing program instruction;
The processor realizes the plug-in unit installation side of router as claimed in claim 9 for being performed in program instruction Method.
15. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The plug-in unit installation method of router as claimed in claim 9 is realized when being executed by processor.
CN201811446828.4A 2018-11-29 2018-11-29 Router plug-in installation method, device, equipment and storage medium Active CN109558148B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811446828.4A CN109558148B (en) 2018-11-29 2018-11-29 Router plug-in installation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811446828.4A CN109558148B (en) 2018-11-29 2018-11-29 Router plug-in installation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109558148A true CN109558148A (en) 2019-04-02
CN109558148B CN109558148B (en) 2020-01-14

Family

ID=65868005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811446828.4A Active CN109558148B (en) 2018-11-29 2018-11-29 Router plug-in installation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109558148B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124483A (en) * 2021-11-09 2022-03-01 浙江航芯科技有限公司 Method, system and equipment for acquiring authority of router background super administrator
CN114221893A (en) * 2021-12-16 2022-03-22 上海市共进通信技术有限公司 Method for realizing dynamic extension of software function for household router
CN115913956A (en) * 2022-11-30 2023-04-04 网易(杭州)网络有限公司 Network acceleration method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060031828A1 (en) * 2004-08-06 2006-02-09 Samsung Electronics Co., Ltd. Methodof apparatus for updating software of network device
WO2011028022A2 (en) * 2009-09-01 2011-03-10 Samsung Electronics Co., Ltd. Apparatus and method for remote control in a short-range network, and system supporting the same
CN104052796A (en) * 2014-04-23 2014-09-17 小米科技有限责任公司 Plug-in processing method, device, system and terminal
CN105763461A (en) * 2016-04-26 2016-07-13 深圳市共进电子股份有限公司 Router upgrading method and system
CN108491236A (en) * 2018-03-23 2018-09-04 努比亚技术有限公司 A kind of plug-in loading method, device and computer readable storage medium
CN108845812A (en) * 2018-05-31 2018-11-20 康键信息技术(深圳)有限公司 Update of plug-in method, apparatus, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060031828A1 (en) * 2004-08-06 2006-02-09 Samsung Electronics Co., Ltd. Methodof apparatus for updating software of network device
WO2011028022A2 (en) * 2009-09-01 2011-03-10 Samsung Electronics Co., Ltd. Apparatus and method for remote control in a short-range network, and system supporting the same
CN104052796A (en) * 2014-04-23 2014-09-17 小米科技有限责任公司 Plug-in processing method, device, system and terminal
CN105763461A (en) * 2016-04-26 2016-07-13 深圳市共进电子股份有限公司 Router upgrading method and system
CN108491236A (en) * 2018-03-23 2018-09-04 努比亚技术有限公司 A kind of plug-in loading method, device and computer readable storage medium
CN108845812A (en) * 2018-05-31 2018-11-20 康键信息技术(深圳)有限公司 Update of plug-in method, apparatus, computer equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124483A (en) * 2021-11-09 2022-03-01 浙江航芯科技有限公司 Method, system and equipment for acquiring authority of router background super administrator
CN114124483B (en) * 2021-11-09 2024-04-30 浙江航芯科技有限公司 Method, system and equipment for obtaining router background super manager authority
CN114221893A (en) * 2021-12-16 2022-03-22 上海市共进通信技术有限公司 Method for realizing dynamic extension of software function for household router
CN115913956A (en) * 2022-11-30 2023-04-04 网易(杭州)网络有限公司 Network acceleration method and device and electronic equipment

Also Published As

Publication number Publication date
CN109558148B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
EP3011444B1 (en) Method and apparatus for code virtualization and remote process call generation
US8468255B2 (en) Data card and method for internet access of data card
CN109558148A (en) Plug-in unit installation method, device, equipment and the storage medium of router
CN105450463B (en) Adjustment method, the device and system of hardware device
CN105407172B (en) A kind of router long-distance management system based on http protocol
US20130346591A1 (en) Clientless Cloud Computing
CN110519379A (en) Request processing method and equipment based on micro services
CN112221121A (en) Application software networking acceleration method and device and storage medium
CN106679095B (en) A kind of method, apparatus and intelligent air-conditioning system of interconnection access
CN103607502B (en) Method and apparatus for upgrading applications of mobile device
CN110011875A (en) Dial testing method, device, equipment and computer readable storage medium
CN108600377B (en) Method, device, terminal and storage medium for suspending file downloading
CN109257803A (en) Intelligent door lock network-building method, device and intelligent door lock
CN112422557A (en) Attack testing method and device for industrial control network
CN112954717A (en) Household appliance network distribution method and device based on H5 page
CN109408090A (en) Upgrade method, data converter and the readable storage medium storing program for executing of device software
CN111538922B (en) Link jump method, application client, device and storage medium
CN108600378B (en) File downloading method, device, terminal and storage medium
US20150326435A1 (en) Parameter setting system, program management apparatus, and information processing apparatus
CN108848077A (en) The login method and device of application program
US20130124715A1 (en) Applet synchronization across multiple routers
US20170116181A1 (en) Cloud service supplementing embedded natural language processing engine
KR100663498B1 (en) Apparatus and method for improving web service using a user identity module of terminal , and the system thereof
Cisco In-Band Management
US11804986B2 (en) Method for the remote management of a device connected to a residential gateway

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